1import{cf as Qr,cg as Pe,r as b,an as v,jr as Gn,js as u0,jt as vE,ju as Wt,jv as gE,jw as He,jx as Qs,jy as bE,jz as Hf,jA as yE,jB as d0,jC as _E,ao as Zr,jD as f0,jE as wE,jF as EE,jG as CE,jH as xE,jI as IE,jJ as SE,jK as OE,db as RE,dc as TE,dd as AE,ar as kE,de as PE,j as B,a1 as DE,jL as NE,jM as LE,f5 as $E,jN as $t,c6 as No,a5 as ME,bo as qf}from"./appBoot-Dxz8j10y.js";import{D as jf}from"./DeleteIcon-DgHJlhTb.js";import{R as Uf}from"./RefreshIcon-C6ENIr8L.js";import"./index-ljb57BpO.js";const FE={noItemsSelected:()=>"",addNamedItem:()=>"Click to upload files",addImage:"Click to upload files"};function BE(e,t,r){const n=Math.max(0,e-t);return t===0?`Add up to ${n} ${r}${n===1?"":"s"}`:n===1?`Add 1 more ${r}`:`Add up to ${n} more ${r}s`}var ea,Wf;function p0(){if(Wf)return ea;Wf=1;var e=typeof Qr=="object"&&Qr&&Qr.Object===Object&&Qr;return ea=e,ea}var ta,Vf;function St(){if(Vf)return ta;Vf=1;var e=p0(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return ta=r,ta}var ra,zf;function go(){if(zf)return ra;zf=1;var e=St(),t=e.Symbol;return ra=t,ra}var na,Kf;function h0(){if(Kf)return na;Kf=1;function e(t,r){for(var n=-1,o=t==null?0:t.length,s=Array(o);++n<o;)s[n]=r(t[n],n,t);return s}return na=e,na}var oa,Gf;function Ot(){if(Gf)return oa;Gf=1;var e=Array.isArray;return oa=e,oa}var sa,Yf;function HE(){if(Yf)return sa;Yf=1;var e=go(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,o=e?e.toStringTag:void 0;function s(a){var i=r.call(a,o),l=a[o];try{a[o]=void 0;var c=!0}catch{}var u=n.call(a);return c&&(i?a[o]=l:delete a[o]),u}return sa=s,sa}var aa,Xf;function qE(){if(Xf)return aa;Xf=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return aa=r,aa}var ia,Zf;function Tr(){if(Zf)return ia;Zf=1;var e=go(),t=HE(),r=qE(),n="[object Null]",o="[object Undefined]",s=e?e.toStringTag:void 0;function a(i){return i==null?i===void 0?o:n:s&&s in Object(i)?t(i):r(i)}return ia=a,ia}var la,Jf;function Jt(){if(Jf)return la;Jf=1;function e(t){return t!=null&&typeof t=="object"}return la=e,la}var ca,Qf;function bo(){if(Qf)return ca;Qf=1;var e=Tr(),t=Jt(),r="[object Symbol]";function n(o){return typeof o=="symbol"||t(o)&&e(o)==r}return ca=n,ca}var ua,ep;function jE(){if(ep)return ua;ep=1;var e=go(),t=h0(),r=Ot(),n=bo(),o=e?e.prototype:void 0,s=o?o.toString:void 0;function a(i){if(typeof i=="string")return i;if(r(i))return t(i,a)+"";if(n(i))return s?s.call(i):"";var l=i+"";return l=="0"&&1/i==-1/0?"-0":l}return ua=a,ua}var da,tp;function Ad(){if(tp)return da;tp=1;var e=jE();function t(r){return r==null?"":e(r)}return da=t,da}var fa,rp;function UE(){if(rp)return fa;rp=1;var e=Ad(),t=0;function r(n){var o=++t;return e(n)+o}return fa=r,fa}var WE=UE();const ln=Pe(WE),np="wds_1_319_0",VE=np.startsWith("wds_")?np:"",op="wds",Qo=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),zE=(...e)=>e.filter(Boolean).join(" "),KE=(e,t)=>{const r=Object.entries(e.variants??{}).map(([o,s])=>{const a=t[o];return!a||!s.includes(a)?null:`--${Qo(o)}-${Qo(a)}`}).filter(Boolean),n=(e.states??[]).filter(o=>t[o]).map(o=>`--${Qo(o)}`);return[...r,...n]},GE=(e,t={},r=VE)=>{const n=r?[op,r]:[op],o=(a,i)=>(l={},...c)=>{const u=["",...KE(i,l)];return zE(...n.flatMap(d=>u.map(p=>`${d}-${a}${p}`)),...c)};return{...Object.fromEntries(Object.entries(t).filter(([a])=>a!=="root").map(([a,i])=>[a,o(`${e}__${Qo(a)}`,i??{})])),root:o(e,t.root??{})}},$e=(e,t={})=>GE(e,t),Fn=$e("dropdown-base",{root:{states:["withWidth"]},trigger:{},content:{states:["withWidth"]},drawerContent:{},list:{}}),m0=({size:e,...t})=>b.createElement("svg",{viewBox:"0 0 63 63",fill:"currentColor",width:e||"63",height:e||"63",...t},b.createElement("path",{d:"M31 31V0h1v31h31v1H32v31h-1V32H0v-1z"}));m0.displayName="AddItemLarge";var YE=m0;const v0=({size:e,...t})=>b.createElement("svg",{viewBox:"0 0 47 47",fill:"currentColor",width:e||"47",height:e||"47",...t},b.createElement("path",{d:"M23 23V0h1v23h23v1H24v23h-1V24H0v-1z"}));v0.displayName="AddItemMedium";var XE=v0;const g0=({size:e,...t})=>
1b.createElement("svg",{viewBox:"0 0 23 23",fill:"currentColor",width:e||"23",height:e||"23",...t},b.createElement("path",{d:"M11.026 11L11 0h.974L12 11h11v1H12l-.026 11H11l.026-11H0v-1z"}));g0.displayName="AddItemSmall";var ZE=g0;const b0=({size:e,...t})=>b.createElement("svg",{viewBox:"0 0 31 31",fill:"currentColor",width:e||"31",height:e||"31",...t},b.createElement("path",{d:"M15 15H0v1h15v15h1V16h15v-1H16V0h-1z"}));b0.displayName="AddMedia";var JE=b0;const y0=({size:e,...t})=>b.createElement("svg",{viewBox:"0 0 7 7",fill:"currentColor",width:e||"7",height:e||"7",...t},b.createElement("path",{d:"M1.809 7 1 6.397 2.74 3.94 0 3.026l.31-.974L3 2.948V0h1v2.976l2.69-.924.31.975-2.719.934L6 6.397 5.19 7 3.503 4.609 1.809 7Z"}));y0.displayName="Asterisk";var QE=y0;const _0=({size:e,...t})=>b.createElement("svg",{viewBox:"0 0 10 8",fill:"currentColor",width:e||"10",height:e||"8",...t},b.createElement("path",{d:"M3.5 5.2 1.2 3 0 4.2 3.5 7.8 10 1.2 8.8 0z"}));_0.displayName="CheckboxChecked";var w0=_0;const E0=({size:e,...t})=>b.createElement("svg",{viewBox:"0 0 8 2",fill:"currentColor",width:e||"8",height:e||"2",...t},b.createElement("path",{d:"M0 0H8V2H0z"}));E0.displayName="CheckboxIndeterminate";var eC=E0;const C0=({size:e,...t})=>b.createElement("svg",{viewBox:"0 0 19 14",fill:"currentColor",width:e||"19",height:e||"14",...t},b.createElement("path",{d:"M16.4482656,0.439339828 C17.034052,-0.146446609 17.9837995,-0.146446609 18.5695859,0.439339828 C19.1553723,1.02512627 19.1553723,1.97487373 18.5695859,2.56066017 L7.56066017,13.5695859 C6.97487373,14.1553723 6.02512627,14.1553723 5.43933983,13.5695859 L0.439339828,8.5695859 C-0.146446609,7.98379946 -0.146446609,7.03405199 0.439339828,6.44826555 C1.02512627,5.86247912 1.97487373,5.86247912 2.56066017,6.44826555 L6.5,10.3876054 L16.4482656,0.439339828 Z"}));C0.displayName="CircleLoaderCheck";var sp=C0;const x0=({size:e,...t})=>b.createElement("svg",{viewBox:"0 0 11 8",fill:"currentColor",width:e||"11",height:e||"8",...t},b.createElement("path",{d:"M1.70710678,3.29289322 C1.31658249,2.90236893 0.683417511,2.90236893 0.292893219,3.29289322 C-0.0976310729,3.68341751 -0.0976310729,4.31658249 0.292893219,4.70710678 L3.29289322,7.70710678 C3.68341751,8.09763107 4.31658249,8.09763107 4.70710678,7.70710678 L10.7071068,1.70710678 C11.0976311,1.31658249 11.0976311,0.683417511 10.7071068,0.292893219 C10.3165825,-0.0976310729 9.68341751,-0.0976310729 9.29289322,0.292893219 L4,5.58578644 L1.70710678,3.29289322 Z"}));x0.displayName="CircleLoaderCheckSmall";var tC=x0;const I0=({size:e,...t})=>b.createElement("svg",{viewBox:"0 0 6 6",fill:"currentColor",width:e||"6",height:e||"6",...t},b.createElement("path",{d:"M5.2 0 3 2.2.8 0 0 .8 2.2 3 0 5.3.8 6 3 3.8 5.2 6 6 5.3 3.8 3 6 .8z"}));I0.displayName="Close";var rC=I0;const S0=({size:e,...t})=>b.createElement("svg",{viewBox:"0 0 8 8",fill:"currentColor",width:e||"8",height:e||"8",...t},b.createElement("path",{d:"M7.2 0 4 3.2.8 0 .1.7 3.3 4 0 7.3.7 8 4 4.7 7.3 8 8 7.3 4.7 4 7.9.7z"}));S0.displayName="CloseLarge";var nC=S0;const O0=({size:e,...t})=>b.createElement("svg",{viewBox:"0 0 8 5",fill:"currentColor",width:e||"8",height:e||"5",...t},b.createElement("path",{d:"M7.852.852 4 4.712.146.85a.496.496 0 0 1 .7-.701L4 3.298 7.153.148a.494.494 0 0 1 .699 0l.001.001a.499.499 0 0 1-.001.703Z"}));O0.displayName="DropDownArrow";var oC=O0;const R0=({size:e,...t})=>b.createElement("svg",{viewBox:"0 0 2 10",fill:"currentColor",width:e||"2",height:e||"10",...t},b.createElement("path",{d:"M1.72673061,0.273269394 C1.91828145,0.464820242 2.01788194,0.72969704 2,1 L2,5 C2.01788194,5.27030296 1.91828145,5.53517976 1.72673061,5.72673061 C1.53517976,5.91828145 1.27030296,6.01788194 1,6 C0.72969704,6.01788194 0.464820242,5.91828145 0.273269394,5.72673061 C0.0817185472,5.53517976 -0.0178819397,5.27030296 -3.39950724e-13,5 L-3.39950724e-13,1 C-0.0178819397,0.72969704 0.0817185472,0.464820242 0.273269394,0.273269394 C0.464820242,0.0817185472 0.72969704,-0.0178819397 1,1.22124533e-15 C1.27030296,-0.0178819397 1.53517976,0.0817185472 1.72673061,0.273269394 Z M1.72673061,8.27326939 C1.91828145,8.46482024 2.01788194,8.72969704 2,9 C2.01788194,9.27030296 1.91828145,9.53517976 1.72673061,9.72673061 C1.53517976,9.91828145 1.27030296,10.0178819 1,10 C0.72969704,10.0178819 0.464820242,9.91828145 0.273269394,9.72673061 C0.0817185472,9.53517976 -0.0178819397,9.27030296 -3.40054807e-13,9 C-0.0178819397,8.72969704 0.0817185472,8.46482024 0.273269394,8.27326939 C0.464820242,8.08171855 0.72969704,7.98211806 1,8 C1.27030296,7.98211806 1.53517976,8.08171855 1.72673061,8.27326939 Z"}));R0.displayName="FormFieldError";var pa=R0;const T0=({size:e,...t})=>
1b.createElement("svg",{viewBox:"0 0 18 18",fill:"currentColor",width:e||"18",height:e||"18",...t},b.createElement("path",{fillRule:"evenodd",d:"M9,18 C4.02943725,18 0,13.9705627 0,9 C0,4.02943725 4.02943725,0 9,0 C13.9705627,0 18,4.02943725 18,9 C18,13.9705627 13.9705627,18 9,18 Z M9,4 C8.44771525,4 8,4.44771525 8,5 L8,9 C8,9.55228475 8.44771525,10 9,10 C9.55228475,10 10,9.55228475 10,9 L10,5 C10,4.44771525 9.55228475,4 9,4 Z M9,12 C8.44771525,12 8,12.4477153 8,13 C8,13.5522847 8.44771525,14 9,14 C9.55228475,14 10,13.5522847 10,13 C10,12.4477153 9.55228475,12 9,12 Z"}));T0.displayName="FormFieldErrorFilled";var sC=T0;const A0=({size:e,...t})=>b.createElement("svg",{viewBox:"0 0 2 10",fill:"currentColor",width:e||"2",height:e||"10",...t},b.createElement("path",{fillRule:"evenodd",d:"M1,0 C1.55228475,0 2,0.44771525 2,1 L2,5 C2,5.55228475 1.55228475,6 1,6 C0.44771525,6 0,5.55228475 0,5 L0,1 C0,0.44771525 0.44771525,0 1,0 L1,0 Z M1,8 C1.55228475,8 2,8.44771525 2,9 C2,9.55228475 1.55228475,10 1,10 C0.44771525,10 0,9.55228475 0,9 C0,8.44771525 0.44771525,8 1,8 L1,8 Z"}));A0.displayName="FormFieldErrorSmall";var aC=A0;const k0=({size:e,...t})=>b.createElement("svg",{viewBox:"0 0 8 5",fill:"currentColor",width:e||"8",height:e||"5",...t},b.createElement("path",{d:"M4 3.2.7 0 0 .8 4 4.8 8 .8 7.2 0z"}));k0.displayName="FormFieldSpinnerDown";var iC=k0;const P0=({size:e,...t})=>b.createElement("svg",{viewBox:"0 0 8 5",fill:"currentColor",width:e||"8",height:e||"5",...t},b.createElement("path",{d:"M0 4 .8 4.8 4 1.5 7.3 4.8 8 4 4 0z"}));P0.displayName="FormFieldSpinnerUp";var lC=P0;const D0=({size:e,...t})=>b.createElement("svg",{viewBox:"0 0 18 18",fill:"currentColor",width:e||"18",height:e||"18",...t},b.createElement("path",{fillRule:"evenodd",d:"M0 9c0 4.9706 4.0294 9 9 9s9-4.0294 9-9-4.0294-9-9-9-9 4.0294-9 9Zm11.9395-3a.75.75 0 0 1 1.0606 1.0607l-5 5-3-3A.75.75 0 0 1 6.0608 8L8 9.9393 11.9395 6Z"}));D0.displayName="FormFieldSuccessFilled";var cC=D0;const N0=({size:e,...t})=>b.createElement("svg",{viewBox:"0 0 18 16",fill:"currentColor",width:e||"18",height:e||"16",...t},b.createElement("path",{d:"M17.6762281,12.4439502 C18.3394859,13.5746099 17.9511638,15.0233988 16.8088864,15.6799109 C16.4440973,15.8895697 16.0297764,16 15.6079519,16 L2.3916543,16 C1.0707801,16 2.65526967e-16,14.9401105 0,13.6326705 C0,13.2151362 0.11156502,12.8050293 0.323378097,12.4439502 L6.93152689,1.17899911 C7.59478473,0.0483394554 9.05846025,-0.336033117 10.2007377,0.32047894 C10.560335,0.527153794 10.8592808,0.823059086 11.0680793,1.17899911 L17.6762281,12.4439502 Z M9,4 C8.44771525,4 8,4.44771525 8,5 L8,9 C8,9.55228475 8.44771525,10 9,10 C9.55228475,10 10,9.55228475 10,9 L10,5 C10,4.44771525 9.55228475,4 9,4 Z M9,12 C8.44771525,12 8,12.4477153 8,13 C8,13.5522847 8.44771525,14 9,14 C9.55228475,14 10,13.5522847 10,13 C10,12.4477153 9.55228475,12 9,12 Z"}));N0.displayName="FormFieldWarningFilled";var uC=N0;const L0=({size:e,...t})=>b.createElement("svg",{viewBox:"0 0 10 8",fill:"currentColor",width:e||"10",height:e||"8",...t},b.createElement("path",{d:"M3.8 5 1.2 2.5 0 3.7 3.8 7.5 10 1.2 8.8 0z"}));L0.displayName="ToggleOn";var dC=L0;function ap(e,t,r,n){const o=(n-90)*Math.PI/180;return{x:e+r*Math.cos(o),y:t+r*Math.sin(o)}}function fC(e,t,r,n,o){const s=ap(e,t,r,o),a=ap(e,t,r,n),i=o-n<=180?"0":"1";return["M",s.x,s.y,"A",r,r,0,i,0,a.x,a.y].join(" ")}const zu=({className:e,strokeWidth:t,viewBoxSize:r,angle:n})=>{const o=fC(0,0,(r-t)/2,0,n),s=`-${r/2} -${r/2} ${r} ${r}`;return v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:s,className:e},v.createElement("path",{strokeWidth:t,d:o}))};zu.displayName="Arc";var ha,ip;function On(){if(ip)return ha;ip=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return ha=e,ha}var ma,lp;function pC(){if(lp)return ma;lp=1;var e=St(),t=function(){return e.Date.now()};return ma=t,ma}var va,cp;function hC(){if(cp)return va;cp=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return va=t,va}var ga,up;function mC(){if(up)return ga;up=1;var e=hC(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return ga=r,ga}var ba,dp;function $0(){if(dp)return ba;dp=1;var e=mC(),t=On(),r=bo(),n=NaN,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,a=/^0o[0-7]+$/i,i=parseInt;function l(c){if(typeof c=="number")return c;if(r(c))return n;if(t(c)){var u=typeof c.valueOf=="function"?c.valueOf():c;c=t(u)?u+"":u}if(typeof c!="string")return c===0?c:+c;c=e(c);var d=s.test(c);return d||a.test(c)?i(c.slice(2),d?2:8):o.test(c)?n:+c}return ba=l,ba}var ya,fp;function vC(){if(fp)return ya;fp=1;var e=On(),t=pC(),r=$0(),n="Expected a function",o=Math.max,s=Math.min;function a(i,l,c){var u,d,p,f,h,m,g=0,y=!1,_=!1,w=!0;if(typeof i!="function")throw new TypeError(n);l=r(l)||0,e(c)&&(y=!!c.leading,_="maxWait"in c,p=_?o(r(c.maxWait)||0,l):p,w="trailing"in c?!!c.trailing:w);function E(T){var R=u,N=d;return u=d=void 0,g=T,f=i.apply(N,R),f}function C(T){return g=T,h=setTimeout(P,l),y?E(T):f}function S(T){var R=T-m,N=T-g,W=l-R;return _?s(W,p-N):W}function x(T){var R=T-m,N=T-g;return m===void 0||R>=l||R<0||_&&N>=p}function P(){var T=t();if(x(T))return D(T);h=setTimeout(P,S(T))}function D(T){return h=void 0,w&&u?E(T):(u=d=void 0,f)}function L(){h!==void 0&&clearTimeout(h),g=0,u=m=d=h=void 0}function O(){return h===void 0?f:D(t())}function A(){var T=t(),R=x(T);if(u=arguments,d=this,m=T,R){if(h===void 0)return C(m);if(_)return clearTimeout(h),h=setTimeout(P,l),E(m)}return h===void 0&&(h=setTimeout(P,l)),f}return A.cancel=L,A.flush=O,A}return ya=a,ya}var gC=vC();const M0=Pe(gC);var _a,pp;
1function bC(){return pp||(pp=1,_a=function(t,r,n,o){var s=n?n.call(o,t,r):void 0;if(s!==void 0)return!!s;if(t===r)return!0;if(typeof t!="object"||!t||typeof r!="object"||!r)return!1;var a=Object.keys(t),i=Object.keys(r);if(a.length!==i.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(r),c=0;c<a.length;c++){var u=a[c];if(!l(u))return!1;var d=t[u],p=r[u];if(s=n?n.call(o,d,p,u):void 0,s===!1||s===void 0&&d!==p)return!1}return!0}),_a}var yC=bC();const _C=Pe(yC);function F0(e,t,r){if(r===!1||r===void 0||r===null||r!==r)return"";if(r===!0)return e+"--"+t;var n=r.toString();return e+"---"+t+"-"+n.length+"-"+n.replace(/\s/gm,"_")}function se(e){for(var t=[],r=1;r<arguments.length;r++){var n=arguments[r];if(n){if(typeof n=="string")t[t.length]=n;else if(r===2)for(var o in n){var s=n[o],a=F0(e,o,s);a&&(t[t.length]=a)}}}return t.join(" ")}function ae(e,t){var r=[];for(var n in t){var o=t[n],s=F0(e,n,o);s&&r.push(s)}return r.join(" ")}var B0="wds_1_319_0_Ellipsis",wC=se.bind(null,B0);ae.bind(null,B0);var EC=wC,CC={tooltip:"wds_1_319_0_Ellipsis__tooltip"};const xC=({children:e,node:t})=>{const[r,n]=v.useState(t||document.createElement("div"));return typeof window<"u"&&window.document&&window.document.createElement?(t||document.body.appendChild(r),Gn.createPortal(e,t||r)):null};function kd(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Gt(){return Gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gt.apply(null,arguments)}function Ku(e,t){return Ku=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Ku(e,t)}function yo(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ku(e,t)}function he(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ao(e){"@babel/helpers - typeof";return ao=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ao(e)}function IC(e,t){if(ao(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ao(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function SC(e){var t=IC(e,"string");return ao(t)=="symbol"?t:t+""}function Re(e,t,r){return(t=SC(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var wa,hp;function H0(){if(hp)return wa;hp=1;var e=Object.prototype.toString;return wa=function(r){var n=e.call(r),o=n==="[object Arguments]";return o||(o=n!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&e.call(r.callee)==="[object Function]"),o},wa}var Ea,mp;function OC(){if(mp)return Ea;mp=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=H0(),o=Object.prototype.propertyIsEnumerable,s=!o.call({toString:null},"toString"),a=o.call(function(){},"prototype"),i=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(p){var f=p.constructor;return f&&f.prototype===p},c={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},u=(function(){if(typeof window>"u")return!1;for(var p in window)try{if(!c["$"+p]&&t.call(window,p)&&window[p]!==null&&typeof window[p]=="object")try{l(window[p])}catch{return!0}}catch{return!0}return!1})(),d=function(p){if(typeof window>"u"||!u)return l(p);try{return l(p)}catch{return!1}};e=function(f){var h=f!==null&&typeof f=="object",m=r.call(f)==="[object Function]",g=n(f),y=h&&r.call(f)==="[object String]",_=[];if(!h&&!m&&!g)throw new TypeError("Object.keys called on a non-object");var w=a&&m;if(y&&f.length>0&&!t.call(f,0))for(var E=0;E<f.length;++E)_.push(String(E));if(g&&f.length>0)for(var C=0;C<f.length;++C)_.push(String(C));else for(var S in f)!(w&&S==="prototype")&&t.call(f,S)&&_.push(String(S));if(s)for(var x=d(f),P=0;P<i.length;++P)!(x&&i[P]==="constructor")&&t.call(f,i[P])&&_.push(i[P]);return _}}return Ea=e,Ea}var Ca,vp;function q0(){if(vp)return Ca;vp=1;var e=Array.prototype.slice,t=H0(),r=Object.keys,n=r?function(a){return r(a)}:OC(),o=Object.keys;return n.shim=function(){if(Object.keys){var a=(function(){var i=Object.keys(arguments);return i&&i.length===arguments.length})(1,2);a||(Object.keys=function(l){return t(l)?o(e.call(l)):o(l)})}else Object.keys=n;return Object.keys||n},Ca=n,Ca}var xa,gp;function j0(){return gp||(gp=1,xa=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(var s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var i=Object.getOwnPropertyDescriptor(t,r);
vendor: 11,781 bytes, line 1
1if(i.value!==o||i.enumerable!==!0)return!1}return!0}),xa}var Ia,bp;function Pd(){if(bp)return Ia;bp=1;var e=j0();return Ia=function(){return e()&&!!Symbol.toStringTag},Ia}var Sa,yp;function U0(){return yp||(yp=1,Sa=Object),Sa}var Oa,_p;function W0(){return _p||(_p=1,Oa=Error),Oa}var Ra,wp;function RC(){return wp||(wp=1,Ra=EvalError),Ra}var Ta,Ep;function TC(){return Ep||(Ep=1,Ta=RangeError),Ta}var Aa,Cp;function AC(){return Cp||(Cp=1,Aa=ReferenceError),Aa}var ka,xp;function V0(){return xp||(xp=1,ka=SyntaxError),ka}var Pa,Ip;function Rn(){return Ip||(Ip=1,Pa=TypeError),Pa}var Da,Sp;function kC(){return Sp||(Sp=1,Da=URIError),Da}var Na,Op;function PC(){return Op||(Op=1,Na=Math.abs),Na}var La,Rp;function DC(){return Rp||(Rp=1,La=Math.floor),La}var $a,Tp;function NC(){return Tp||(Tp=1,$a=Math.max),$a}var Ma,Ap;function LC(){return Ap||(Ap=1,Ma=Math.min),Ma}var Fa,kp;function $C(){return kp||(kp=1,Fa=Math.pow),Fa}var Ba,Pp;function MC(){return Pp||(Pp=1,Ba=Math.round),Ba}var Ha,Dp;function FC(){return Dp||(Dp=1,Ha=Number.isNaN||function(t){return t!==t}),Ha}var qa,Np;function BC(){if(Np)return qa;Np=1;var e=FC();return qa=function(r){return e(r)||r===0?r:r<0?-1:1},qa}var ja,Lp;function HC(){return Lp||(Lp=1,ja=Object.getOwnPropertyDescriptor),ja}var Ua,$p;function Tn(){if($p)return Ua;$p=1;var e=HC();if(e)try{e([],"length")}catch{e=null}return Ua=e,Ua}var Wa,Mp;function ws(){if(Mp)return Wa;Mp=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Wa=e,Wa}var Va,Fp;function qC(){if(Fp)return Va;Fp=1;var e=typeof Symbol<"u"&&Symbol,t=j0();return Va=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Va}var za,Bp;function z0(){return Bp||(Bp=1,za=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),za}var Ka,Hp;function K0(){if(Hp)return Ka;Hp=1;var e=U0();return Ka=e.getPrototypeOf||null,Ka}var Ga,qp;function jC(){if(qp)return Ga;qp=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",o=function(l,c){for(var u=[],d=0;d<l.length;d+=1)u[d]=l[d];for(var p=0;p<c.length;p+=1)u[p+l.length]=c[p];return u},s=function(l,c){for(var u=[],d=c,p=0;d<l.length;d+=1,p+=1)u[p]=l[d];return u},a=function(i,l){for(var c="",u=0;u<i.length;u+=1)c+=i[u],u+1<i.length&&(c+=l);return c};return Ga=function(l){var c=this;if(typeof c!="function"||t.apply(c)!==n)throw new TypeError(e+c);for(var u=s(arguments,1),d,p=function(){if(this instanceof d){var y=c.apply(this,o(u,arguments));return Object(y)===y?y:this}return c.apply(l,o(u,arguments))},f=r(0,c.length-u.length),h=[],m=0;m<f;m++)h[m]="$"+m;if(d=Function("binder","return function ("+a(h,",")+"){ return binder.apply(this,arguments); }")(p),c.prototype){var g=function(){};g.prototype=c.prototype,d.prototype=new g,g.prototype=null}return d},Ga}var Ya,jp;function _o(){if(jp)return Ya;jp=1;var e=jC();return Ya=Function.prototype.bind||e,Ya}var Xa,Up;function Dd(){return Up||(Up=1,Xa=Function.prototype.call),Xa}var Za,Wp;function Nd(){return Wp||(Wp=1,Za=Function.prototype.apply),Za}var Ja,Vp;function UC(){return Vp||(Vp=1,Ja=typeof Reflect<"u"&&Reflect&&Reflect.apply),Ja}var Qa,zp;function G0(){if(zp)return Qa;zp=1;var e=_o(),t=Nd(),r=Dd(),n=UC();return Qa=n||e.call(r,t),Qa}var ei,Kp;function Ld(){if(Kp)return ei;Kp=1;var e=_o(),t=Rn(),r=Dd(),n=G0();return ei=function(s){if(s.length<1||typeof s[0]!="function")throw new t("a function is required");return n(e,r,s)},ei}var ti,Gp;function WC(){if(Gp)return ti;Gp=1;var e=Ld(),t=Tn(),r;try{r=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var n=!!r&&t&&t(Object.prototype,"__proto__"),o=Object,s=o.getPrototypeOf;return ti=n&&typeof n.get=="function"?e([n.get]):typeof s=="function"?function(i){return s(i==null?i:o(i))}:!1,ti}var ri,Yp;function Y0(){if(Yp)return ri;Yp=1;var e=z0(),t=K0(),r=WC();return ri=e?function(o){return e(o)}:t?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return t(o)}:r?function(o){return r(o)}:null,ri}var ni,Xp;function X0(){if(Xp)return ni;Xp=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=_o();return ni=r.call(e,t),ni}var oi,Zp;function Z0(){if(Zp)return oi;Zp=1;var e,t=U0(),r=W0(),n=RC(),o=TC(),s=AC(),a=V0(),i=Rn(),l=kC(),c=PC(),u=DC(),d=NC(),p=LC(),f=$C(),h=MC(),m=BC(),g=Function,y=function(U){try{return g('"use strict"; return ('+U+").constructor;")()}catch{}},_=Tn(),w=ws(),E=function(){throw new i},C=_?(function(){try{return arguments.callee,E}catch{try{return _(arguments,"callee").get}catch{return E}}})():E,S=qC()(),x=Y0(),P=K0(),D=z0(),L=Nd(),O=Dd(),A={},T=typeof Uint8Array>"u"||!x?e:x(Uint8Array),R={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":S&&x?x([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":g,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":S&&x?x(x([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!S||!x?e:x(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":_,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!S||!x?e:x(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":S&&x?x(""[Symbol.iterator]()):e,"%Symbol%":S?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":C,"%TypedArray%":T,"%TypeError%":i,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":l,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":O,"%Function.prototype.apply%":L,"%Object.defineProperty%":w,"%Object.getPrototypeOf%":P,"%Math.abs%":c,"%Math.floor%":u,"%Math.max%":d,"%Math.min%":p,"%Math.pow%":f,"%Math.round%":h,"%Math.sign%":m,"%Reflect.getPrototypeOf%":D};if(x)try{null.error}catch(U){var N=x(x(U));R["%Error.prototype%"]=N}var W=function U(V){var Y;if(V==="%AsyncFunction%")Y=y("async function () {}");else if(V==="%GeneratorFunction%")Y=y("function* () {}");else if(V==="%AsyncGeneratorFunction%")Y=y("async function* () {}");else if(V==="%AsyncGenerator%"){var Q=U("%AsyncGeneratorFunction%");Q&&(Y=Q.prototype)}else if(V==="%AsyncIteratorPrototype%"){var F=U("%AsyncGenerator%");F&&x&&(Y=x(F.prototype))}return R[V]=Y,Y},q={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},H=_o(),I=X0(),k=H.call(O,Array.prototype.concat),$=H.call(L,Array.prototype.splice),G=H.call(O,String.prototype.replace),Z=H.call(O,String.prototype.slice),K=H.call(O,RegExp.prototype.exec),X=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,J=/\\(\\)?/g,M=function(V){var Y=Z(V,0,1),Q=Z(V,-1);if(Y==="%"&&Q!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(Q==="%"&&Y!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var F=[];return G(V,X,function(z,ee,te,ie){F[F.length]=te?G(ie,J,"$1"):ee||z}),F},j=function(V,Y){var Q=V,F;if(I(q,Q)&&(F=q[Q],Q="%"+F[0]+"%"),I(R,Q)){var z=R[Q];if(z===A&&(z=W(Q)),typeof z>"u"&&!Y)throw new i("intrinsic "+V+" exists, but is not available. Please file an issue!");return{alias:F,name:Q,value:z}}throw new a("intrinsic "+V+" does not exist!")};return oi=function(V,Y){if(typeof V!="string"||V.length===0)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Y!="boolean")throw new i('"allowMissing" argument must be a boolean');if(K(/^%?[^%]*%?$/,V)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Q=M(V),F=Q.length>
10?Q[0]:"",z=j("%"+F+"%",Y),ee=z.name,te=z.value,ie=!1,le=z.alias;le&&(F=le[0],$(Q,k([0,1],le)));for(var oe=1,fe=!0;oe<Q.length;oe+=1){var ne=Q[oe],re=Z(ne,0,1),ue=Z(ne,-1);if((re==='"'||re==="'"||re==="`"||ue==='"'||ue==="'"||ue==="`")&&re!==ue)throw new a("property names with quotes must have matching quotes");if((ne==="constructor"||!fe)&&(ie=!0),F+="."+ne,ee="%"+F+"%",I(R,ee))te=R[ee];else if(te!=null){if(!(ne in te)){if(!Y)throw new i("base intrinsic for "+V+" exists, but the property is not available.");return}if(_&&oe+1>=Q.length){var de=_(te,ne);fe=!!de,fe&&"get"in de&&!("originalValue"in de.get)?te=de.get:te=te[ne]}else fe=I(te,ne),te=te[ne];fe&&!ie&&(R[ee]=te)}}return te},oi}var si,Jp;function $d(){if(Jp)return si;Jp=1;var e=Z0(),t=Ld(),r=t([e("%String.prototype.indexOf%")]);return si=function(o,s){var a=e(o,!!s);return typeof a=="function"&&r(o,".prototype.")>-1?t([a]):a},si}var ai,Qp;function VC(){if(Qp)return ai;Qp=1;var e=Pd()(),t=$d(),r=t("Object.prototype.toString"),n=function(i){return e&&i&&typeof i=="object"&&Symbol.toStringTag in i?!1:r(i)==="[object Arguments]"},o=function(i){return n(i)?!0:i!==null&&typeof i=="object"&&"length"in i&&typeof i.length=="number"&&i.length>=0&&r(i)!=="[object Array]"&&"callee"in i&&r(i.callee)==="[object Function]"},s=(function(){return n(arguments)})();return n.isLegacyArguments=o,ai=s?n:o,ai}var ii,eh;function Md(){if(eh)return ii;eh=1;var e=ws(),t=V0(),r=Rn(),n=Tn();return ii=function(s,a,i){if(!s||typeof s!="object"&&typeof s!="function")throw new r("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,d=arguments.length>6?arguments[6]:!1,p=!!n&&n(s,a);if(e)e(s,a,{configurable:u===null&&p?p.configurable:!u,enumerable:l===null&&p?p.enumerable:!l,value:i,writable:c===null&&p?p.writable:!c});else if(d||!l&&!c&&!u)s[a]=i;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},ii}var li,th;function Fd(){if(th)return li;th=1;var e=ws(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},li=t,li}var ci,rh;function wo(){if(rh)return ci;rh=1;var e=q0(),t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",r=Object.prototype.toString,n=Array.prototype.concat,o=Md(),s=function(c){return typeof c=="function"&&r.call(c)==="[object Function]"},a=Fd()(),i=function(c,u,d,p){if(u in c){if(p===!0){if(c[u]===d)return}else if(!s(p)||!p())return}a?o(c,u,d,!0):o(c,u,d)},l=function(c,u){var d=arguments.length>2?arguments[2]:{},p=e(u);t&&(p=n.call(p,Object.getOwnPropertySymbols(u)));for(var f=0;f<p.length;f+=1)i(c,p[f],u[p[f]],d[p[f]])};return l.supportsDescriptors=!!a,ci=l,ci}var ui={exports:{}},di,nh;function zC(){if(nh)return di;
1nh=1;var e=Z0(),t=Md(),r=Fd()(),n=Tn(),o=Rn(),s=e("%Math.floor%");return di=function(i,l){if(typeof i!="function")throw new o("`fn` is not a function");if(typeof l!="number"||l<0||l>4294967295||s(l)!==l)throw new o("`length` must be a positive 32-bit integer");var c=arguments.length>2&&!!arguments[2],u=!0,d=!0;if("length"in i&&n){var p=n(i,"length");p&&!p.configurable&&(u=!1),p&&!p.writable&&(d=!1)}return(u||d||!c)&&(r?t(i,"length",l,!0,!0):t(i,"length",l)),i},di}var fi,oh;function KC(){if(oh)return fi;oh=1;var e=_o(),t=Nd(),r=G0();return fi=function(){return r(e,t,arguments)},fi}var sh;function J0(){return sh||(sh=1,(function(e){var t=zC(),r=ws(),n=Ld(),o=KC();e.exports=function(a){var i=n(arguments),l=1+a.length-(arguments.length-1);return t(i,l>0?l:0,!0)},r?r(e.exports,"apply",{value:o}):e.exports.apply=o})(ui)),ui.exports}var pi,ah;function Q0(){if(ah)return pi;ah=1;var e=function(t){return t!==t};return pi=function(r,n){return r===0&&n===0?1/r===1/n:!!(r===n||e(r)&&e(n))},pi}var hi,ih;function eb(){if(ih)return hi;ih=1;var e=Q0();return hi=function(){return typeof Object.is=="function"?Object.is:e},hi}var mi,lh;function GC(){if(lh)return mi;lh=1;var e=eb(),t=wo();return mi=function(){var n=e();return t(Object,{is:n},{is:function(){return Object.is!==n}}),n},mi}var vi,ch;function YC(){if(ch)return vi;ch=1;var e=wo(),t=J0(),r=Q0(),n=eb(),o=GC(),s=t(n(),Object);return e(s,{getPolyfill:n,implementation:r,shim:o}),vi=s,vi}var gi,uh;function XC(){if(uh)return gi;uh=1;var e=$d(),t=Pd()(),r=X0(),n=Tn(),o;if(t){var s=e("RegExp.prototype.exec"),a={},i=function(){throw a},l={toString:i,valueOf:i};typeof Symbol.toPrimitive=="symbol"&&(l[Symbol.toPrimitive]=i),o=function(p){if(!p||typeof p!="object")return!1;var f=n(p,"lastIndex"),h=f&&r(f,"value");if(!h)return!1;try{s(p,l)}catch(m){return m===a}}}else{var c=e("Object.prototype.toString"),u="[object RegExp]";o=function(p){return!p||typeof p!="object"&&typeof p!="function"?!1:c(p)===u}}return gi=o,gi}var bi,dh;function ZC(){if(dh)return bi;dh=1;var e=function(){return typeof(function(){}).name=="string"},t=Object.getOwnPropertyDescriptor;if(t)try{t([],"length")}catch{t=null}e.functionsHaveConfigurableNames=function(){if(!e()||!t)return!1;var o=t(function(){},"name");return!!o&&!!o.configurable};var r=Function.prototype.bind;return e.boundFunctionsHaveNames=function(){return e()&&typeof r=="function"&&(function(){}).bind().name!==""},bi=e,bi}var yi,fh;function JC(){if(fh)return yi;fh=1;var e=Md(),t=Fd()(),r=ZC().functionsHaveConfigurableNames(),n=Rn();return yi=function(s,a){if(typeof s!="function")throw new n("`fn` is not a function");var i=arguments.length>2&&!!arguments[2];return(!i||r)&&(t?e(s,"name",a,!0,!0):e(s,"name",a)),s},yi}var _i,ph;function tb(){if(ph)return _i;ph=1;var e=JC(),t=Rn(),r=Object;return _i=e(function(){if(this==null||this!==r(this))throw new t("RegExp.prototype.flags getter called on non-object");var o="";return this.hasIndices&&(o+="d"),this.global&&(o+="g"),this.ignoreCase&&(o+="i"),this.multiline&&(o+="m"),this.dotAll&&(o+="s"),this.unicode&&(o+="u"),this.unicodeSets&&(o+="v"),this.sticky&&(o+="y"),o},"get flags",!0),_i}var wi,hh;function rb(){if(hh)return wi;hh=1;var e=tb(),t=wo().supportsDescriptors,r=Object.getOwnPropertyDescriptor;return wi=function(){if(t&&/a/mig.flags==="gim"){var o=r(RegExp.prototype,"flags");if(o&&typeof o.get=="function"&&"dotAll"in RegExp.prototype&&"hasIndices"in RegExp.prototype){var s="",a={};if(Object.defineProperty(a,"hasIndices",{get:function(){s+="d"}}),Object.defineProperty(a,"sticky",{get:function(){s+="y"}}),o.get.call(a),s==="dy")return o.get}}return e},wi}var Ei,mh;function QC(){if(mh)return Ei;mh=1;var e=wo().supportsDescriptors,t=rb(),r=Tn(),n=Object.defineProperty,o=W0(),s=Y0(),a=/a/;return Ei=function(){if(!e||!s)throw new o("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var l=t(),c=s(a),u=r(c,"flags");return(!u||u.get!==l)&&n(c,"flags",{configurable:!0,enumerable:!1,get:l}),l},Ei}var Ci,vh;function e2(){if(vh)return Ci;vh=1;var e=wo(),t=J0(),r=tb(),n=rb(),o=QC(),s=t(n());return e(s,{getPolyfill:n,implementation:r,shim:o}),Ci=s,Ci}var xi,gh;function t2(){if(gh)return xi;gh=1;var e=$d(),t=e("Date.prototype.getDay"),r=function(i){try{return t(i),!0}catch{return!1}},n=e("Object.prototype.toString"),o="[object Date]",s=Pd()();return xi=function(i){return typeof i!="object"||i===null?!1:s?r(i):n(i)===o},xi}var Ii,bh;function r2(){if(bh)return Ii;bh=1;var e=q0(),t=VC(),r=YC(),n=XC(),o=e2(),s=t2(),a=Date.prototype.getTime;function i(d,p,f){var h=f||{};
vendor: 27,337 bytes, lines 1-24
1return(h.strict?r(d,p):d===p)?!0:!d||!p||typeof d!="object"&&typeof p!="object"?h.strict?r(d,p):d==p:u(d,p,h)}function l(d){return d==null}function c(d){return!(!d||typeof d!="object"||typeof d.length!="number"||typeof d.copy!="function"||typeof d.slice!="function"||d.length>0&&typeof d[0]!="number")}function u(d,p,f){var h,m;if(typeof d!=typeof p||l(d)||l(p)||d.prototype!==p.prototype||t(d)!==t(p))return!1;var g=n(d),y=n(p);if(g!==y)return!1;if(g||y)return d.source===p.source&&o(d)===o(p);if(s(d)&&s(p))return a.call(d)===a.call(p);var _=c(d),w=c(p);if(_!==w)return!1;if(_||w){if(d.length!==p.length)return!1;for(h=0;h<d.length;h++)if(d[h]!==p[h])return!1;return!0}if(typeof d!=typeof p)return!1;try{var E=e(d),C=e(p)}catch{return!1}if(E.length!==C.length)return!1;for(E.sort(),C.sort(),h=E.length-1;h>=0;h--)if(E[h]!=C[h])return!1;for(h=E.length-1;h>=0;h--)if(m=E[h],!i(d[m],p[m],f))return!1;return!0}return Ii=i,Ii}var n2=r2();const o2=Pe(n2);/**! 2 * @fileOverview Kickass library to create and place poppers near their reference elements. 3 * @version 1.16.1 4 * @license 5 * Copyright (c) 2016 Federico Zivolo and contributors 6 * 7 * Permission is hereby granted, free of charge, to any person obtaining a copy 8 * of this software and associated documentation files (the "Software"), to deal 9 * in the Software without restriction, including without limitation the rights 10 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 * copies of the Software, and to permit persons to whom the Software is 12 * furnished to do so, subject to the following conditions: 13 * 14 * The above copyright notice and this permission notice shall be included in all 15 * copies or substantial portions of the Software. 16 * 17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 * SOFTWARE. 24 */var Eo=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",s2=(function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Eo&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0})();function a2(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function i2(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},s2))}}var l2=Eo&&window.Promise,c2=l2?a2:i2;function nb(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function Ar(e,t){if(e.nodeType!==1)return[];var r=e.ownerDocument.defaultView,n=r.getComputedStyle(e,null);return t?n[t]:n}function Bd(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function Co(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Ar(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(r+o+n)?e:Co(Bd(e))}function ob(e){return e&&e.referenceNode?e.referenceNode:e}var yh=Eo&&!!(window.MSInputMethodContext&&document.documentMode),_h=Eo&&/MSIE 10/.test(navigator.userAgent);function An(e){return e===11?yh:e===10?_h:yh||_h}function cn(e){if(!e)return document.documentElement;for(var t=An(10)?document.body:null,r=e.offsetParent||null;r===t&&e.nextElementSibling;)r=(e=e.nextElementSibling).offsetParent;var n=r&&r.nodeName;return!n||n==="BODY"||n==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(r.nodeName)!==-1&&Ar(r,"position")==="static"?cn(r):r}function u2(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||cn(e.firstElementChild)===e}function Gu(e){return e.parentNode!==null?Gu(e.parentNode):e}function ns(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var r=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=r?e:t,o=r?t:e,s=document.createRange();s.setStart(n,0),s.setEnd(o,0);var a=s.commonAncestorContainer;if(e!==a&&t!==a||n.contains(o))return u2(a)?a:cn(a);var i=Gu(e);return i.host?ns(i.host,t):ns(e,Gu(t).host)}function un(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",r=t==="top"?"scrollTop":"scrollLeft",n=e.nodeName;if(n==="BODY"||n==="HTML"){var o=e.ownerDocument.documentElement,s=e.ownerDocument.scrollingElement||o;return s[r]}return e[r]}function d2(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=un(t,"top"),o=un(t,"left"),s=r?-1:1;return e.top+=n*s,e.bottom+=n*s,e.left+=o*s,e.right+=o*s,e}function wh(e,t){var r=t==="x"?"Left":"Top",n=r==="Left"?"Right":"Bottom";return parseFloat(e["border"+r+"Width"])+parseFloat(e["border"+n+"Width"])}function Eh(e,t,r,n){return Math.max(t["offset"+e],t["scroll"+e],r["client"+e],r["offset"+e],r["scroll"+e],An(10)?parseInt(r["offset"+e])+parseInt(n["margin"+(e==="Height"?"Top":"Left")])+parseInt(n["margin"+(e==="Height"?"Bottom":"Right")]):0)}function sb(e){var t=e.body,r=e.documentElement,n=An(10)&&getComputedStyle(r);return{height:Eh("Height",t,r,n),width:Eh("Width",t,r,n)}}var f2=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},p2=(function(){function e(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}})(),dn=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},Qe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function Yt(e){return Qe({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Yu(e){var t={};try{if(An(10)){t=e.getBoundingClientRect();var r=un(e,"top"),n=un(e,"left");t.top+=r,t.left+=n,t.bottom+=r,t.right+=n}else t=e.getBoundingClientRect()}catch{}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},s=e.nodeName==="HTML"?sb(e.ownerDocument):{},a=s.width||e.clientWidth||o.width,i=s.height||e.clientHeight||o.height,l=e.offsetWidth-a,c=e.offsetHeight-i;if(l||c){var u=Ar(e);l-=wh(u,"x"),c-=wh(u,"y"),o.width-=l,o.height-=c}return Yt(o)}function Hd(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=An(10),o=t.nodeName==="HTML",s=Yu(e),a=Yu(t),i=Co(e),l=Ar(t),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);r&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=Yt({top:s.top-a.top-c,left:s.left-a.left-u,width:s.width,height:s.height});if(d.marginTop=0,d.marginLeft=0,!n&&o){var p=parseFloat(l.marginTop),f=parseFloat(l.marginLeft);d.top-=c-p,d.bottom-=c-p,d.left-=u-f,d.right-=u-f,d.marginTop=p,d.marginLeft=f}return(n&&!r?t.contains(i):t===i&&i.nodeName!=="BODY")&&(d=d2(d,t)),d}function h2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.ownerDocument.documentElement,n=Hd(e,r),o=Math.max(r.clientWidth,window.innerWidth||0),s=Math.max(r.clientHeight,window.innerHeight||0),a=t?0:un(r),i=t?0:un(r,"left"),l={top:a-n.top+n.marginTop,left:i-n.left+n.marginLeft,width:o,height:s};return Yt(l)}function ab(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(Ar(e,"position")==="fixed")return!0;var r=Bd(e);return r?ab(r):!1}function ib(e){if(!e||!e.parentElement||An())return document.documentElement;for(var t=e.parentElement;t&&Ar(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function qd(e,t,r,n){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,s={top:0,left:0},a=o?ib(e):ns(e,ob(t));if(n==="viewport")s=h2(a,o);else{var i=void 0;n==="scrollParent"?(i=Co(Bd(t)),i.nodeName==="BODY"&&(i=e.ownerDocument.documentElement)):n==="window"?i=e.ownerDocument.documentElement:i=n;var l=Hd(i,a,o);if(i.nodeName==="HTML"&&!ab(a)){var c=sb(e.ownerDocument),u=c.height,d=c.width;s.top+=l.top-l.marginTop,s.bottom=u+l.top,s.left+=l.left-l.marginLeft,s.right=d+l.left}else s=l}r=r||0;var p=typeof r=="number";return s.left+=p?r:r.left||0,s.top+=p?r:r.top||0,s.right-=p?r:r.right||0,s.bottom-=p?r:r.bottom||0,s}function m2(e){var t=e.width,r=e.height;return t*r}function lb(e,t,r,n,o){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var a=qd(r,n,s,o),i={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(i).map(function(p){return Qe({key:p},i[p],{area:m2(i[p])})}).sort(function(p,f){return f.area-p.area}),c=l.filter(function(p){var f=p.width,h=p.height;return f>=r.clientWidth&&h>=r.clientHeight}),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function cb(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,o=n?ib(t):ns(t,ob(r));return Hd(r,o,n)}function ub(e){var t=e.ownerDocument.defaultView,r=t.getComputedStyle(e),n=parseFloat(r.marginTop||0)+parseFloat(r.marginBottom||0),o=parseFloat(r.marginLeft||0)+parseFloat(r.marginRight||0),s={width:e.offsetWidth+o,height:e.offsetHeight+n};return s}function os(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(r){return t[r]})}function db(e,t,r){r=r.split("-")[0];var n=ub(e),o={width:n.width,height:n.height},s=["right","left"].indexOf(r)!==-1,a=s?"top":"left",i=s?"left":"top",l=s?"height":"width",c=s?"width":"height";return o[a]=t[a]+t[l]/2-n[l]/2,r===i?o[i]=t[i]-n[c]:o[i]=t[os(i)],o}function xo(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function v2(e,t,r){if(Array.prototype.findIndex)return e.findIndex(function(o){return o[t]===r});var n=xo(e,function(o){return o[t]===r});return e.indexOf(n)}function fb(e,t,r){var n=r===void 0?e:e.slice(0,v2(e,"name",r));return n.forEach(function(o){o.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var s=o.function||o.fn;o.enabled&&nb(s)&&(t.offsets.popper=Yt(t.offsets.popper),t.offsets.reference=Yt(t.offsets.reference),t=s(t,o))}),t}function g2(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=cb(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=lb(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=db(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=fb(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function pb(e,t){return e.some(function(r){var n=r.name,o=r.enabled;return o&&n===t})}function jd(e){for(var t=[!1,"ms","Webkit","Moz","O"],r=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length;n++){var o=t[n],s=o?""+o+r:e;if(typeof document.body.style[s]<"u")return s}return null}function b2(){return this.state.isDestroyed=!0,pb(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[jd("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function hb(e){var t=e.ownerDocument;return t?t.defaultView:window}function mb(e,t,r,n){var o=e.nodeName==="BODY",s=o?e.ownerDocument.defaultView:e;s.addEventListener(t,r,{passive:!0}),o||mb(Co(s.parentNode),t,r,n),n.push(s)}function y2(e,t,r,n){r.updateBound=n,hb(e).addEventListener("resize",r.updateBound,{passive:!0});var o=Co(e);return mb(o,"scroll",r.updateBound,r.scrollParents),r.scrollElement=o,r.eventsEnabled=!0,r}function _2(){this.state.eventsEnabled||(this.state=y2(this.reference,this.options,this.state,this.scheduleUpdate))}function w2(e,t){return hb(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(r){r.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function E2(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=w2(this.reference,this.state))}function Ud(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function Xu(e,t){Object.keys(t).forEach(function(r){var n="";["width","height","top","right","bottom","left"].indexOf(r)!==-1&&Ud(t[r])&&(n="px"),e.style[r]=t[r]+n})}function C2(e,t){Object.keys(t).forEach(function(r){var n=t[r];n!==!1?e.setAttribute(r,t[r]):e.removeAttribute(r)})}function x2(e){return Xu(e.instance.popper,e.styles),C2(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&Xu(e.arrowElement,e.arrowStyles),e}function I2(e,t,r,n,o){var s=cb(o,t,e,r.positionFixed),a=lb(r.placement,s,t,e,r.modifiers.flip.boundariesElement,r.modifiers.flip.padding);return t.setAttribute("x-placement",a),Xu(t,{position:r.positionFixed?"fixed":"absolute"}),r}function S2(e,t){var r=e.offsets,n=r.popper,o=r.reference,s=Math.round,a=Math.floor,i=function(y){return y},l=s(o.width),c=s(n.width),u=["left","right"].indexOf(e.placement)!==-1,d=e.placement.indexOf("-")!==-1,p=l%2===c%2,f=l%2===1&&c%2===1,h=t?u||d||p?s:a:i,m=t?s:i;return{left:h(f&&!d&&t?n.left-1:n.left),top:m(n.top),bottom:m(n.bottom),right:h(n.right)}}var O2=Eo&&/Firefox/i.test(navigator.userAgent);function R2(e,t){var r=t.x,n=t.y,o=e.offsets.popper,s=xo(e.instance.modifiers,function(w){return w.name==="applyStyle"}).gpuAcceleration;s!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=s!==void 0?s:t.gpuAcceleration,i=cn(e.instance.popper),l=Yu(i),c={position:o.position},u=S2(e,window.devicePixelRatio<2||!O2),d=r==="bottom"?"top":"bottom",p=n==="right"?"left":"right",f=jd("transform"),h=void 0,m=void 0;if(d==="bottom"?i.nodeName==="HTML"?m=-i.clientHeight+u.bottom:m=-l.height+u.bottom:m=u.top,p==="right"?i.nodeName==="HTML"?h=-i.clientWidth+u.right:h=-l.width+u.right:h=u.left,a&&f)c[f]="translate3d("+h+"px, "+m+"px, 0)",c[d]=0,c[p]=0,c.willChange="transform";else{var g=d==="bottom"?-1:1,y=p==="right"?-1:1;c[d]=m*g,c[p]=h*y,c.willChange=d+", "+p}var _={"x-placement":e.placement};return e.attributes=Qe({},_,e.attributes),e.styles=Qe({},c,e.styles),e.arrowStyles=Qe({},e.offsets.arrow,e.arrowStyles),e}function vb(e,t,r){var n=xo(e,function(i){var l=i.name;return l===t}),o=!!n&&e.some(function(i){return i.name===r&&i.enabled&&i.order<n.order});if(!o){var s="`"+t+"`",a="`"+r+"`";console.warn(a+" modifier is required by "+s+" modifier in order to work, be sure to include it before "+s+"!")}return o}function T2(e,t){var r;if(!vb(e.instance.modifiers,"arrow","keepTogether"))return e;var n=t.element;if(typeof n=="string"){if(n=e.instance.popper.querySelector(n),!n)return e}else if(!e.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],s=e.offsets,a=s.popper,i=s.reference,l=["left","right"].indexOf(o)!==-1,c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),p=l?"left":"top",f=l?"bottom":"right",h=ub(n)[c];i[f]-h<a[d]&&(e.offsets.popper[d]-=a[d]-(i[f]-h)),i[d]+h>a[f]&&(e.offsets.popper[d]+=i[d]+h-a[f]),e.offsets.popper=Yt(e.offsets.popper);var m=i[d]+i[c]/2-h/2,g=Ar(e.instance.popper),y=parseFloat(g["margin"+u]),_=parseFloat(g["border"+u+"Width"]),w=m-e.offsets.popper[d]-y-_;return w=Math.max(Math.min(a[c]-h,w),0),e.arrowElement=n,e.offsets.arrow=(r={},dn(r,d,Math.round(w)),dn(r,p,""),r),e}function A2(e){return e==="end"?"start":e==="start"?"end":e}var gb=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Si=gb.slice(3);function Ch(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=Si.indexOf(e),n=Si.slice(r+1).concat(Si.slice(0,r));return t?n.reverse():n}var Oi={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function k2(e,t){if(pb(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var r=qd(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),n=e.placement.split("-")[0],o=os(n),s=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Oi.FLIP:a=[n,o];break;case Oi.CLOCKWISE:a=Ch(n);break;case Oi.COUNTERCLOCKWISE:a=Ch(n,!0);break;default:a=t.behavior}return a.forEach(function(i,l){if(n!==i||a.length===l+1)return e;n=e.placement.split("-")[0],o=os(n);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,p=n==="left"&&d(c.right)>d(u.left)||n==="right"&&d(c.left)<d(u.right)||n==="top"&&d(c.bottom)>d(u.top)||n==="bottom"&&d(c.top)<d(u.bottom),f=d(c.left)<d(r.left),h=d(c.right)>d(r.right),m=d(c.top)<d(r.top),g=d(c.bottom)>d(r.bottom),y=n==="left"&&f||n==="right"&&h||n==="top"&&m||n==="bottom"&&g,_=["top","bottom"].indexOf(n)!==-1,w=!!t.flipVariations&&(_&&s==="start"&&f||_&&s==="end"&&h||!_&&s==="start"&&m||!_&&s==="end"&&g),E=!!t.flipVariationsByContent&&(_&&s==="start"&&h||_&&s==="end"&&f||!_&&s==="start"&&g||!_&&s==="end"&&m),C=w||E;(p||y||C)&&(e.flipped=!0,(p||y)&&(n=a[l+1]),C&&(s=A2(s)),e.placement=n+(s?"-"+s:""),e.offsets.popper=Qe({},e.offsets.popper,db(e.instance.popper,e.offsets.reference,e.placement)),e=fb(e.instance.modifiers,e,"flip"))}),e}function P2(e){var t=e.offsets,r=t.popper,n=t.reference,o=e.placement.split("-")[0],s=Math.floor,a=["top","bottom"].indexOf(o)!==-1,i=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return r[i]<s(n[l])&&(e.offsets.popper[l]=s(n[l])-r[c]),r[l]>s(n[i])&&(e.offsets.popper[l]=s(n[i])),e}function D2(e,t,r,n){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+o[1],a=o[2];if(!s)return e;if(a.indexOf("%")===0){var i=void 0;switch(a){case"%p":i=r;break;case"%":case"%r":default:i=n}var l=Yt(i);return l[t]/100*s}else if(a==="vh"||a==="vw"){var c=void 0;return a==="vh"?c=Math.max(document.documentElement.clientHeight,window.innerHeight||0):c=Math.max(document.documentElement.clientWidth,window.innerWidth||0),c/100*s}else return s}function N2(e,t,r,n){var o=[0,0],s=["right","left"].indexOf(n)!==-1,a=e.split(/(\+|\-)/).map(function(u){return u.trim()}),i=a.indexOf(xo(a,function(u){return u.search(/,|\s/)!==-1}));a[i]&&a[i].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=i!==-1?[a.slice(0,i).concat([a[i].split(l)[0]]),[a[i].split(l)[1]].concat(a.slice(i+1))]:[a];return c=c.map(function(u,d){var p=(d===1?!s:s)?"height":"width",f=!1;return u.reduce(function(h,m){return h[h.length-1]===""&&["+","-"].indexOf(m)!==-1?(h[h.length-1]=m,f=!0,h):f?(h[h.length-1]+=m,f=!1,h):h.concat(m)},[]).map(function(h){return D2(h,p,t,r)})}),c.forEach(function(u,d){u.forEach(function(p,f){Ud(p)&&(o[d]+=p*(u[f-1]==="-"?-1:1))})}),o}function L2(e,t){var r=t.offset,n=e.placement,o=e.offsets,s=o.popper,a=o.reference,i=n.split("-")[0],l=void 0;return Ud(+r)?l=[+r,0]:l=N2(r,s,a,i),i==="left"?(s.top+=l[0],s.left-=l[1]):i==="right"?(s.top+=l[0],s.left+=l[1]):i==="top"?(s.left+=l[0],s.top-=l[1]):i==="bottom"&&(s.left+=l[0],s.top+=l[1]),e.popper=s,e}function $2(e,t){var r=t.boundariesElement||cn(e.instance.popper);e.instance.reference===r&&(r=cn(r));var n=jd("transform"),o=e.instance.popper.style,s=o.top,a=o.left,i=o[n];o.top="",o.left="",o[n]="";var l=qd(e.instance.popper,e.instance.reference,t.padding,r,e.positionFixed);o.top=s,o.left=a,o[n]=i,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(f){var h=u[f];return u[f]<l[f]&&!t.escapeWithReference&&(h=Math.max(u[f],l[f])),dn({},f,h)},secondary:function(f){var h=f==="right"?"left":"top",m=u[h];return u[f]>l[f]&&!t.escapeWithReference&&(m=Math.min(u[h],l[f]-(f==="right"?u.width:u.height))),dn({},h,m)}};return c.forEach(function(p){var f=["left","top"].indexOf(p)!==-1?"primary":"secondary";u=Qe({},u,d[f](p))}),e.offsets.popper=u,e}function M2(e){var t=e.placement,r=t.split("-")[0],n=t.split("-")[1];if(n){var o=e.offsets,s=o.reference,a=o.popper,i=["bottom","top"].indexOf(r)!==-1,l=i?"left":"top",c=i?"width":"height",u={start:dn({},l,s[l]),end:dn({},l,s[l]+s[c]-a[c])};e.offsets.popper=Qe({},a,u[n])}return e}function F2(e){if(!vb(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,r=xo(e.instance.modifiers,function(n){return n.name==="preventOverflow"}).boundaries;if(t.bottom<r.top||t.left>r.right||t.top>r.bottom||t.right<r.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function B2(e){var t=e.placement,r=t.split("-")[0],n=e.offsets,o=n.popper,s=n.reference,a=["left","right"].indexOf(r)!==-1,i=["top","left"].indexOf(r)===-1;return o[a?"left":"top"]=s[r]-(i?o[a?"width":"height"]:0),e.placement=os(t),e.offsets.popper=Yt(o),e}var H2={shift:{order:100,enabled:!0,fn:M2},offset:{order:200,enabled:!0,fn:L2,offset:0},preventOverflow:{order:300,enabled:!0,fn:$2,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:P2},arrow:{order:500,enabled:!0,fn:T2,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:k2,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:B2},hide:{order:800,enabled:!0,fn:F2},computeStyle:{order:850,enabled:!0,fn:R2,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:x2,onLoad:I2,gpuAcceleration:void 0}},q2={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:H2},Io=(function(){function e(t,r){var n=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};f2(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=c2(this.update.bind(this)),this.options=Qe({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys(Qe({},e.Defaults.modifiers,o.modifiers)).forEach(function(a){n.options.modifiers[a]=Qe({},e.Defaults.modifiers[a]||{},o.modifiers?o.modifiers[a]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(a){return Qe({name:a},n.options.modifiers[a])}).sort(function(a,i){return a.order-i.order}),this.modifiers.forEach(function(a){a.enabled&&nb(a.onLoad)&&a.onLoad(n.reference,n.popper,n.options,a,n.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return p2(e,[{key:"update",value:function(){return g2.call(this)}},{key:"destroy",value:function(){return b2.call(this)}},{key:"enableEventListeners",value:function(){return _2.call(this)}},{key:"disableEventListeners",value:function(){return E2.call(this)}}]),e})();Io.Utils=(typeof window<"u"?window:global).PopperUtils;Io.placements=gb;Io.Defaults=q2;var Lo={exports:{}},$o={exports:{}},Ri={exports:{}},Ti,xh;function j2(){if(xh)return Ti;xh=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ti=e,Ti}var Ai,Ih;function U2(){if(Ih)return Ai;Ih=1;var e=j2();function t(){}function r(){}return r.resetWarningCache=t,Ai=function(){function n(a,i,l,c,u,d){if(d!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}n.isRequired=n;function o(){return n}var s={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},Ai}var Sh;function W2(){return Sh||(Sh=1,Ri.exports=U2()()),Ri.exports}var ki,Oh;function V2(){if(Oh)return ki;Oh=1;var e="__global_unique_id__";return ki=function(){return Qr[e]=(Qr[e]||0)+1},ki}var Pi,Rh;function bb(){if(Rh)return Pi;Rh=1;var e=function(){};return Pi=e,Pi}var Th;function z2(){return Th||(Th=1,(function(e,t){t.__esModule=!0;var r=u0();l(r);var n=W2(),o=l(n),s=V2(),a=l(s),i=bb();l(i);function l(y){return y&&y.__esModule?y:{default:y}}function c(y,_){if(!(y instanceof _))throw new TypeError("Cannot call a class as a function")}function u(y,_){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:y}function d(y,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);y.prototype=Object.create(_&&_.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(y,_):y.__proto__=_)}var p=1073741823;function f(y,_){return y===_?y!==0||1/y===1/_:y!==y&&_!==_}function h(y){var _=[];return{on:function(E){_.push(E)},off:function(E){_=_.filter(function(C){return C!==E})},get:function(){return y},set:function(E,C){y=E,_.forEach(function(S){return S(y,C)})}}}function m(y){return Array.isArray(y)?y[0]:y}function g(y,_){var w,E,C="__create-react-context-"+(0,a.default)()+"__",S=(function(P){d(D,P);function D(){var L,O,A;c(this,D);for(var T=arguments.length,R=Array(T),N=0;N<T;N++)R[N]=arguments[N];return A=(L=(O=u(this,P.call.apply(P,[this].concat(R))),O),O.emitter=h(O.props.value),L),u(O,A)}return D.prototype.getChildContext=function(){var O;return O={},O[C]=this.emitter,O},D.prototype.componentWillReceiveProps=function(O){if(this.props.value!==O.value){var A=this.props.value,T=O.value,R=void 0;f(A,T)?R=0:(R=typeof _=="function"?_(A,T):p,R|=0,R!==0&&this.emitter.set(O.value,R))}},D.prototype.render=function(){return this.props.children},D})(r.Component);S.childContextTypes=(w={},w[C]=o.default.object.isRequired,w);var x=(function(P){d(D,P);function D(){var L,O,A;c(this,D);for(var T=arguments.length,R=Array(T),N=0;N<T;N++)R[N]=arguments[N];return A=(L=(O=u(this,P.call.apply(P,[this].concat(R))),O),O.state={value:O.getValue()},O.onUpdate=function(W,q){var H=O.observedBits|0;(H&q)!==0&&O.setState({value:O.getValue()})},L),u(O,A)}return D.prototype.componentWillReceiveProps=function(O){var A=O.observedBits;this.observedBits=A??p},D.prototype.componentDidMount=function(){this.context[C]&&this.context[C].on(this.onUpdate);var O=this.props.observedBits;this.observedBits=O??p},D.prototype.componentWillUnmount=function(){this.context[C]&&this.context[C].off(this.onUpdate)},D.prototype.getValue=function(){return this.context[C]?this.context[C].get():y},D.prototype.render=function(){return m(this.props.children)(this.state.value)},D})(r.Component);return x.contextTypes=(E={},E[C]=o.default.object,E),{Provider:S,Consumer:x}}t.default=g,e.exports=t.default}
24)($o,$o.exports)),$o.exports}var Ah;function K2(){return Ah||(Ah=1,(function(e,t){t.__esModule=!0;var r=u0(),n=a(r),o=z2(),s=a(o);function a(i){return i&&i.__esModule?i:{default:i}}t.default=n.default.createContext||s.default,e.exports=t.default})(Lo,Lo.exports)),Lo.exports}var G2=K2();const yb=Pe(G2);var _b=yb(),wb=yb(),Y2=(function(e){yo(t,e);function t(){for(var n,o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];return n=e.call.apply(e,[this].concat(s))||this,Re(he(he(n)),"referenceNode",void 0),Re(he(he(n)),"setReferenceNode",function(i){i&&n.referenceNode!==i&&(n.referenceNode=i,n.forceUpdate())}),n}var r=t.prototype;return r.componentWillUnmount=function(){this.referenceNode=null},r.render=function(){return b.createElement(_b.Provider,{value:this.referenceNode},b.createElement(wb.Provider,{value:this.setReferenceNode},this.props.children))},t})(b.Component),Eb=function(t){return Array.isArray(t)?t[0]:t},Cb=function(t){if(typeof t=="function"){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return t.apply(void 0,n)}},ss=function(t,r){if(typeof t=="function")return Cb(t,r);t!=null&&(t.current=r)},X2={position:"absolute",top:0,left:0,opacity:0,pointerEvents:"none"},Z2={},xb=(function(e){yo(t,e);function t(){for(var n,o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];return n=e.call.apply(e,[this].concat(s))||this,Re(he(he(n)),"state",{data:void 0,placement:void 0}),Re(he(he(n)),"popperInstance",void 0),Re(he(he(n)),"popperNode",null),Re(he(he(n)),"arrowNode",null),Re(he(he(n)),"setPopperNode",function(i){!i||n.popperNode===i||(ss(n.props.innerRef,i),n.popperNode=i,n.updatePopperInstance())}),Re(he(he(n)),"setArrowNode",function(i){n.arrowNode=i}),Re(he(he(n)),"updateStateModifier",{enabled:!0,order:900,fn:function(l){var c=l.placement;return n.setState({data:l,placement:c}),l}}),Re(he(he(n)),"getOptions",function(){return{placement:n.props.placement,eventsEnabled:n.props.eventsEnabled,positionFixed:n.props.positionFixed,modifiers:Gt({},n.props.modifiers,{arrow:Gt({},n.props.modifiers&&n.props.modifiers.arrow,{enabled:!!n.arrowNode,element:n.arrowNode}),applyStyle:{enabled:!1},updateStateModifier:n.updateStateModifier})}}),Re(he(he(n)),"getPopperStyle",function(){return!n.popperNode||!n.state.data?X2:Gt({position:n.state.data.offsets.popper.position},n.state.data.styles)}),Re(he(he(n)),"getPopperPlacement",function(){return n.state.data?n.state.placement:void 0}),Re(he(he(n)),"getArrowStyle",function(){return!n.arrowNode||!n.state.data?Z2:n.state.data.arrowStyles}),Re(he(he(n)),"getOutOfBoundariesState",function(){return n.state.data?n.state.data.hide:void 0}),Re(he(he(n)),"destroyPopperInstance",function(){n.popperInstance&&(n.popperInstance.destroy(),n.popperInstance=null)}),Re(he(he(n)),"updatePopperInstance",function(){n.destroyPopperInstance();var i=he(he(n)),l=i.popperNode,c=n.props.referenceElement;!c||!l||(n.popperInstance=new Io(c,l,n.getOptions()))}
24),Re(he(he(n)),"scheduleUpdate",function(){n.popperInstance&&n.popperInstance.scheduleUpdate()}),n}var r=t.prototype;return r.componentDidUpdate=function(o,s){this.props.placement!==o.placement||this.props.referenceElement!==o.referenceElement||this.props.positionFixed!==o.positionFixed||!o2(this.props.modifiers,o.modifiers,{strict:!0})?this.updatePopperInstance():this.props.eventsEnabled!==o.eventsEnabled&&this.popperInstance&&(this.props.eventsEnabled?this.popperInstance.enableEventListeners():this.popperInstance.disableEventListeners()),s.placement!==this.state.placement&&this.scheduleUpdate()},r.componentWillUnmount=function(){ss(this.props.innerRef,null),this.destroyPopperInstance()},r.render=function(){return Eb(this.props.children)({ref:this.setPopperNode,style:this.getPopperStyle(),placement:this.getPopperPlacement(),outOfBoundaries:this.getOutOfBoundariesState(),scheduleUpdate:this.scheduleUpdate,arrowProps:{ref:this.setArrowNode,style:this.getArrowStyle()}})},t})(b.Component);Re(xb,"defaultProps",{placement:"bottom",eventsEnabled:!0,referenceElement:void 0,positionFixed:!1});Io.placements;function kh(e){var t=e.referenceElement,r=kd(e,["referenceElement"]);return b.createElement(_b.Consumer,null,function(n){return b.createElement(xb,Gt({referenceElement:t!==void 0?t:n},r))})}var J2=bb();const Q2=Pe(J2);var ex=(function(e){yo(t,e);function t(){for(var n,o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];return n=e.call.apply(e,[this].concat(s))||this,Re(he(he(n)),"refHandler",function(i){ss(n.props.innerRef,i),Cb(n.props.setReferenceNode,i)}),n}var r=t.prototype;return r.componentWillUnmount=function(){ss(this.props.innerRef,null)},r.render=function(){return Q2(!!this.props.setReferenceNode,"`Reference` should not be used outside of a `Manager` component."),Eb(this.props.children)({ref:this.refHandler})},t})(b.Component);function tx(e){return b.createElement(wb.Consumer,null,function(t){return b.createElement(ex,Gt({setReferenceNode:t},e))})}function rx(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function nx(e,t){e.classList?e.classList.add(t):rx(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}
vendor: 4,108 bytes, line 24
24function Ph(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function ox(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Ph(e.className,t):e.setAttribute("class",Ph(e.className&&e.className.baseVal||"",t))}const Dh={disabled:!1},Ib=v.createContext(null);var Sb=function(t){return t.scrollTop},Yn="unmounted",pr="exited",hr="entering",Jr="entered",Zu="exiting",Dt=(function(e){yo(t,e);function t(n,o){var s;s=e.call(this,n,o)||this;var a=o,i=a&&!a.isMounting?n.enter:n.appear,l;return s.appearStatus=null,n.in?i?(l=pr,s.appearStatus=hr):l=Jr:n.unmountOnExit||n.mountOnEnter?l=Yn:l=pr,s.state={status:l},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var a=o.in;return a&&s.status===Yn?{status:pr}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var s=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==hr&&a!==Jr&&(s=hr):(a===hr||a===Jr)&&(s=Zu)}this.updateStatus(!1,s)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,s,a,i;return s=a=i=o,o!=null&&typeof o!="number"&&(s=o.exit,a=o.enter,i=o.appear!==void 0?o.appear:a),{exit:s,enter:a,appear:i}},r.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===hr){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Gn.findDOMNode(this);a&&Sb(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===pr&&this.setState({status:Yn})},r.performEnter=function(o){var s=this,a=this.props.enter,i=this.context?this.context.isMounting:o,l=this.props.nodeRef?[i]:[Gn.findDOMNode(this),i],c=l[0],u=l[1],d=this.getTimeouts(),p=i?d.appear:d.enter;if(!o&&!a||Dh.disabled){this.safeSetState({status:Jr},function(){s.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:hr},function(){s.props.onEntering(c,u),s.onTransitionEnd(p,function(){s.safeSetState({status:Jr},function(){s.props.onEntered(c,u)})})})},r.performExit=function(){var o=this,s=this.props.exit,a=this.getTimeouts(),i=this.props.nodeRef?void 0:Gn.findDOMNode(this);if(!s||Dh.disabled){this.safeSetState({status:pr},function(){o.props.onExited(i)});return}this.props.onExit(i),this.safeSetState({status:Zu},function(){o.props.onExiting(i),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:pr},function(){o.props.onExited(i)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},r.setNextCallback=function(o){var s=this,a=!0;return this.nextCallback=function(i){a&&(a=!1,s.nextCallback=null,o(i))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},r.onTransitionEnd=function(o,s){this.setNextCallback(s);var a=this.props.nodeRef?this.props.nodeRef.current:Gn.findDOMNode(this),i=o==null&&!this.props.addEndListener;if(!a||i){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===Yn)return null;var s=this.props,a=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var i=kd(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return v.createElement(Ib.Provider,{value:null},typeof a=="function"?a(o,i):v.cloneElement(v.Children.only(a),i))},t})(v.Component);Dt.contextType=Ib;Dt.propTypes={};function Br(){}Dt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Br,onEntering:Br,onEntered:Br,onExit:Br,onExiting:
24Br,onExited:Br};Dt.UNMOUNTED=Yn;Dt.EXITED=pr;Dt.ENTERING=hr;Dt.ENTERED=Jr;Dt.EXITING=Zu;var sx=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return nx(t,n)})},Di=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return ox(t,n)})},Wd=(function(e){yo(t,e);function t(){for(var n,o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];return n=e.call.apply(e,[this].concat(s))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(i,l){var c=n.resolveArguments(i,l),u=c[0],d=c[1];n.removeClasses(u,"exit"),n.addClass(u,d?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(i,l)},n.onEntering=function(i,l){var c=n.resolveArguments(i,l),u=c[0],d=c[1],p=d?"appear":"enter";n.addClass(u,p,"active"),n.props.onEntering&&n.props.onEntering(i,l)},n.onEntered=function(i,l){var c=n.resolveArguments(i,l),u=c[0],d=c[1],p=d?"appear":"enter";n.removeClasses(u,p),n.addClass(u,p,"done"),n.props.onEntered&&n.props.onEntered(i,l)},n.onExit=function(i){var l=n.resolveArguments(i),c=l[0];n.removeClasses(c,"appear"),n.removeClasses(c,"enter"),n.addClass(c,"exit","base"),n.props.onExit&&n.props.onExit(i)},n.onExiting=function(i){var l=n.resolveArguments(i),c=l[0];n.addClass(c,"exit","active"),n.props.onExiting&&n.props.onExiting(i)},n.onExited=function(i){var l=n.resolveArguments(i),c=l[0];n.removeClasses(c,"exit"),n.addClass(c,"exit","done"),n.props.onExited&&n.props.onExited(i)},n.resolveArguments=function(i,l){return n.props.nodeRef?[n.props.nodeRef.current,i]:[i,l]},n.getClassNames=function(i){var l=n.props.classNames,c=typeof l=="string",u=c&&l?l+"-":"",d=c?""+u+i:l[i],p=c?d+"-active":l[i+"Active"],f=c?d+"-done":l[i+"Done"];return{baseClassName:d,activeClassName:p,doneClassName:f}},n}var r=t.prototype;return r.addClass=function(o,s,a){var i=this.getClassNames(s)[a+"ClassName"],l=this.getClassNames("enter"),c=l.doneClassName;s==="appear"&&a==="done"&&c&&(i+=" "+c),a==="active"&&o&&Sb(o),i&&(this.appliedClasses[s][a]=i,sx(o,i))},r.removeClasses=function(o,s){var a=this.appliedClasses[s],i=a.base,l=a.active,c=a.done;this.appliedClasses[s]={},i&&Di(o,i),l&&Di(o,l),c&&Di(o,c)},r.render=function(){var o=this.props;o.classNames;var s=kd(o,["classNames"]);return v.createElement(Dt,Gt({},s,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(v.Component);Wd.defaultProps={classNames:""};Wd.propTypes={};class ax extends b.PureComponent{constructor(t){super(t),this._isInsideClick=r=>{const{rootRef:n,excludeClass:o}=this.props;let s=r.target;for(;s;){if(n.current===s||s.classList&&(typeof o=="string"&&s.classList.contains(o)||typeof o=="object"&&s.classList.toString().split(" ").some(a=>o.includes(a))))return!0;s=s.parentElement}},this._onClickOutside=r=>{const{onClickOutside:n}=this.props;typeof n=="function"&&!this._isInsideClick(r)&&n(r)},this._boundEvents=[]}_registerEvents(){const{options:t}=this.props;["mouseup","touchend"].forEach(r=>{document.addEventListener(r,this._onClickOutside,t),this._boundEvents.push(r)})}_unregisterEvents(){const{options:t}=this.props;for(;this._boundEvents.length>0;){const r=this._boundEvents.pop();r&&document.removeEventListener(r,this._onClickOutside,t)}}componentDidMount(){this.props.onClickOutside&&this._registerEvents()}componentDidUpdate(t){this.props.onClickOutside!==t.onClickOutside&&(this.props.onClickOutside?this._registerEvents():this._unregisterEvents())}componentWillUnmount(){this._unregisterEvents()}render(){return this.props.children}}const Nh=e=>{if(e)return typeof e=="string"?e:`${e}px`},ix=({moveBy:e,placement:t})=>t!=null&&t.includes("right")||t!=null&&t.includes("left")?`${e?e.y:0}px, ${e?e.x:0}px`:`${e?e.x:0}px, ${e?e.y:0}px`,lx=({width:e,minWidth:t,dynamicWidth:r,referenceWidth:n})=>({minWidth:r?`${n}px`:Nh(t),width:Nh(e)||"auto"}),cx=({width:e,moveBy:t,appendTo:r,shouldAnimate:n,flip:o,flipModifier:s,fixed:a,placement:i,isTestEnv:l,minWidth:c,dynamicWidth:u})=>{const d=!a,p={offset:{offset:ix({moveBy:t,placement:i})},computeStyle:{gpuAcceleration:!n},flip:{enabled:typeof o<"u"?o:!t},preventOverflow:{enabled:d},hide:{enabled:d}};return s&&(p.flipVariationsOnSameSide={enabled:!0,order:599,fn:s}
24),(u||c||e)&&(p.setPopperWidth={enabled:!0,order:840,fn:f=>{const{width:h}=f.offsets.reference;return f.styles={...f.styles,...lx({width:e,referenceWidth:h,minWidth:c,dynamicWidth:u})},f}}),r&&(p.preventOverflow={...p.preventOverflow,boundariesElement:r}),p},Lh="data-",ux=e=>{const t={};for(const r in e)e.hasOwnProperty(r)&&r.length>Lh.length&&r.startsWith(Lh)&&(t[r]=e[r]);return t};function Ob(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function dx(e){return e.ownerDocument.defaultView.getComputedStyle(e,null)}function Rb(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}const{overflow:t,overflowX:r,overflowY:n}=dx(e);return/(auto|scroll|overlay)/.test(t+n+r)?e:Rb(Ob(e))}const fx=(e,t)=>b.Children.toArray(e).reduce((r,n)=>{if(!b.isValidElement(n)||!n.type||!n.type.displayName)return r;const o=n.type.displayName.split(".").pop();return r[o]=n,r},t||{}),Tb=e=>{const t=({children:r})=>typeof r=="string"?b.createElement("div",{},r):r;return t.displayName=e,t},px=(e,t)=>e&&e.classList.add(...t.split(" ")),$h=(e,t)=>e&&e.classList.remove(...t.split(" ")),Mo=({timeout:e})=>{if(typeof e=="object"){const{enter:t,exit:r}=e;return typeof t<"u"&&typeof r<"u"&&(t>0||r>0)}return!!e},hx=(e,t)=>e?t.startsWith("top")||t.startsWith("bottom")?{left:`${e}px`}:t.startsWith("left")||t.startsWith("right")?{top:`${e}px`}:{}:{};var Ni,Mh;function Ab(){if(Mh)return Ni;Mh=1;function e(t,r){return function(n){return t(r(n))}}return Ni=e,Ni}var Li,Fh;function mx(){if(Fh)return Li;Fh=1;var e=Ab(),t=e(Object.getPrototypeOf,Object);return Li=t,Li}var $i,Bh;function vx(){if(Bh)return $i;Bh=1;var e=Tr(),t=mx(),r=Jt(),n="[object Object]",o=Function.prototype,s=Object.prototype,a=o.toString,i=s.hasOwnProperty,l=a.call(Object);function c(u){if(!r(u)||e(u)!=n)return!1;var d=t(u);if(d===null)return!0;var p=i.call(d,"constructor")&&d.constructor;return typeof p=="function"&&p instanceof p&&a.call(p)==l}return $i=c,$i}var Mi,Hh;function gx(){if(Hh)return Mi;Hh=1;var e=Jt(),t=vx();function r(n){return e(n)&&n.nodeType===1&&!t(n)}return Mi=r,Mi}var bx=gx();const yx=Pe(bx),qh="wsr-popover-host";function _x(e,t){if(!e)return null;if(typeof e=="string")switch(e){case"window":case"viewport":return wx();case"scrollParent":return Rb(t);default:return}if(typeof e=="function")return Ex(e,t);if(yx(e))return e}function wx(){const e=document.querySelector(`#${qh}`);if(e===null){const t=document.createElement("div");return t.setAttribute("id",qh),document.body.appendChild(t),t}return e}function Ex(e,t){if(!t)return;const r=kb(e,t);if(r)return r}function kb(e,t){if(t)return e(t)?t:kb(e,Ob(t))}const Qt=v.createContext({newBrandingClass:"no-brand",mobile:!1,contextClassName:""});var Pb="wds_1_319_0_colors";se.bind(null,Pb);ae.bind(null,Pb);var Db="wds_1_319_0_shadows";se.bind(null,Db);ae.bind(null,Db);var Nb="wds_1_319_0_easing";se.bind(null,Nb);ae.bind(null,Nb);var Lb="wds_1_319_0_Popover",Cx=se.bind(null,Lb);ae.bind(null,Lb);var ar=Cx,gt={root:"wds_1_319_0_Popover__root",content:"wds_1_319_0_Popover__content",arrow:"wds_1_319_0_Popover__arrow",element:"wds_1_319_0_Popover__element",animationEnter:"wds_1_319_0_Popover__animationEnter",animationEnterActive:"wds_1_319_0_Popover__animationEnterActive",animationExit:"wds_1_319_0_Popover__animationExit",animationExitActive:"wds_1_319_0_Popover__animationExitActive"};const Fi=$e("popover",{root:{variants:{skin:["light","dark"]},states:["fluid"]},element:{}}),Bn=$e("popover-content",{root:{variants:{status:["open","close"],placement:["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","auto-start","auto-end"],skin:["light","dark"]}},content:{variants:{skin:["light","dark"]},states:["hasArrow"]},arrow:{variants:{skin:["light","dark"]}}});function xx(e,t){if(e!=null)if(typeof e=="function")e(t);else try{e.current=t}catch{throw new Error(`Cannot assign value "${t}" to ref "${e}"`)}}function as(...e){return e.every(t=>t==null)?null:t=>{e.forEach(r=>{xx(r,t)})}}const $b=1e3,jh=5e3+$b,kn={popover:$b,tooltip:jh,checkbox:4e3+jh};let Ix="0";const Sx=!1;class er extends v.Component{constructor(t){super(t),this.portalNode=null,this.portalClasses="",this.appendToNode=null,this.clickOutsideRef=null,this._hideTimeout=null,this._showTimeout=null,this._animationFrameId=null,this._handleClickOutside=r=>{const{onClickOutside:n,shown:o,disableClickOutsideWhenClosed:s=!0}=this.props;n&&!(s&&!o)&&n(r)},this._onKeyDown=r=>{const{onEscPress:n}=this.props;n&&r.key==="Escape"&&n(r)},this._onDocumentKeyUp=r=>{const{onTabOut:n}=this.props;typeof document<"u"&&this.popoverContentRef.current&&!this.popoverContentRef.current.contains(document.activeElement)&&n&&n(r)},this.state={isMounted:!1,shown:t.shown||!1},this.clickOutsideRef=v.createRef(),this.transitionRef=v.createRef(),this.popoverContentRef=v.createRef(),this.clickOutsideClass=ln("clickOutside"),this.contentHook=`popover-content-${t.dataHook||""}-${Ix}`}focus(){this.popoverContentRef.current&&this.popoverContentRef.current.focus()}getPopperContentStructure(t){const{shown:r}=this.state,{moveBy:n,appendTo:o,placement:s,showArrow:a,moveArrowTo:i,flip:l,flipModifier:c,fixed:u,customArrow:d,role:p,id:f,zIndex:h,minWidth:m,maxWidth:g,width:y,dynamicWidth:_,onEscPress:w,tabIndex:E,"aria-label":C,"aria-labelledby":S,"aria-describedby":x,timeout:P,skin:D}=this.props,L=Mo({timeout:P}),O=cx({minWidth:m,width:y,dynamicWidth:_,moveBy:n,appendTo:o,shouldAnimate:L,flip:l,flipModifier:c,placement:s,fixed:u,isTestEnv:Sx}),A=R=>v.createElement(kh,{modifiers:O,placement:s},({ref:N,style:W,placement:q,arrowProps:H,scheduleUpdate:I})=>(this.popperScheduleUpdate=I,v.createElement("div",{"data-hook":"popover-content",className:ar(this.clickOutsideClass,this.context.newBrandingClass,Bn.root({status:R,placement:q||s,skin:D})),"data-content-element":this.contentHook,ref:as(N,this.transitionRef),style:{...W,zIndex:h}},a&&this.renderArrow(H,i,q||s,d),v.createElement("div",{id:f,role:p,tabIndex:E,ref:this.popoverContentRef,style:{maxWidth:g},className:ar(gt.content,{skin:D,placement:q||s,hasArrow:!0},Bn.content({skin:D,hasArrow:!0})),onKeyDown:r&&w?this._onKeyDown:void 0,"aria-label":C,"aria-labelledby":S,"aria-describedby":x},t.Content)))),T=R=>v.createElement(kh,{modifiers:O,placement:s},({ref:N,style:W,placement:q,scheduleUpdate:H})=>(this.popperScheduleUpdate=H,v.createElement("div",{id:f,ref:as(N,this.popoverContentRef,this.transitionRef),role:p,tabIndex:E,className:ar(gt.content,{skin:D,placement:q||s},this.clickOutsideClass,this.context.newBrandingClass,Bn.root({status:R,placement:q||s,skin:D}),Bn.content({skin:D})),"data-hook":"popover-content",style:{...W,zIndex:h,maxWidth:g},"data-content-element":this.contentHook,onKeyDown:r&&w?this._onKeyDown:void 0,"aria-label":C,"aria-labelledby":S,"aria-describedby":x},t.Content)));return this.wrapWithAnimations(a?A:T)}
24applyStylesToPortaledNode(){const{shown:t}=this.state;Mo(this.props)||t?px(this.portalNode,this.portalClasses):$h(this.portalNode,this.portalClasses)}wrapWithAnimations(t){const{timeout:r}=this.props,{shown:n}=this.state;return Mo(this.props)?v.createElement(Wd,{nodeRef:this.transitionRef,in:n,timeout:r,unmountOnExit:!0,classNames:{enter:gt.animationEnter,enterActive:gt.animationEnterActive,exit:gt.animationExit,exitActive:gt.animationExitActive},addEndListener:()=>{},onExited:()=>$h(this.portalNode,this.portalClasses)},s=>t(s==="exiting"||s==="exited"?"close":"open")):t("open")}renderPopperContent(t){const r=this.getPopperContentStructure(t);return this.portalNode?v.createElement(xC,{node:this.portalNode},r):r}renderArrow(t,r,n,o){const{skin:s}=this.props,a={ref:t.ref,key:"popover-arrow","data-hook":"popover-arrow",style:{...t.style,...hx(r,n)}};return o?o(n,a):v.createElement("div",{...a,className:ar(gt.arrow,{skin:s,placement:n},Bn.arrow({skin:s}))})}componentDidMount(){const{shown:t,onTabOut:r,autoUpdateOptions:n}=this.props;this.appendPortalToNode(),r&&t&&this._setBlurByKeyboardListener(),n!=null&&n.animationFrame&&t&&this._startAnimationFrameLoop(),this.setState({isMounted:!0})}_setBlurByKeyboardListener(){typeof document<"u"&&document.addEventListener("keyup",this._onDocumentKeyUp,!0)}_removeBlurListener(){typeof document<"u"&&document.removeEventListener("keyup",this._onDocumentKeyUp,!0)}appendPortalToNode(){var n;const{appendTo:t}=this.props,{contextClassName:r}=this.context;this.appendToNode=_x(t,this.targetRef),this.appendToNode&&((n=this.portalNode)==null||n.remove(),this.portalNode=document.createElement("div"),this.portalNode.setAttribute("data-hook","popover-portal"),r&&this.portalNode.classList.add(r),Object.assign(this.portalNode.style,{position:"static",display:"block",top:0,left:0,width:0,height:0}),this.appendToNode.appendChild(this.portalNode))}hidePopover(){const{isMounted:t}=this.state,{hideDelay:r,onTabOut:n,onHide:o}=this.props;!t||this._hideTimeout||(this._showTimeout&&(clearTimeout(this._showTimeout),this._showTimeout=null),n&&this._removeBlurListener(),r?this._hideTimeout=setTimeout(()=>{this.setState({shown:!1}),o==null||o()},r):(this.setState({shown:!1}),o==null||o()))}showPopover(){const{isMounted:t}=this.state,{showDelay:r,onTabOut:n,onShow:o}=this.props;!t||this._showTimeout||(this._hideTimeout&&(clearTimeout(this._hideTimeout),this._hideTimeout=null),n&&this._setBlurByKeyboardListener(),r?this._showTimeout=setTimeout(()=>{this.setState({shown:!0}),o==null||o()},r):(this.setState({shown:!0}),o==null||o()))}componentWillUnmount(){this.portalNode&&this.appendToNode&&this.appendToNode.children.length&&(this.appendToNode.removeChild(this.portalNode),this.portalNode.remove()),this.portalNode=null,this._hideTimeout&&(clearTimeout(this._hideTimeout),this._hideTimeout=null),this._showTimeout&&(clearTimeout(this._showTimeout),this._showTimeout=null),this._stopAnimationFrameLoop()}updatePosition(){this.popperScheduleUpdate&&this.popperScheduleUpdate()}_startAnimationFrameLoop(){if(this._animationFrameId!==null)return;const t=()=>{this.updatePosition(),this._animationFrameId=requestAnimationFrame(t)};this._animationFrameId=requestAnimationFrame(t)}_stopAnimationFrameLoop(){this._animationFrameId!==null&&cancelAnimationFrame(this._animationFrameId),this._animationFrameId=null}_syncAnimationFrameLoop(t,r){var s,a;const n=!!((s=this.props.autoUpdateOptions)!=null&&s.animationFrame&&this.state.shown),o=!!((a=t.autoUpdateOptions)!=null&&a.animationFrame&&r.shown);n&&!o?this._startAnimationFrameLoop():!n&&o&&this._stopAnimationFrameLoop()}componentDidUpdate(t,r){const{skin:n,className:o,shown:s}=this.props;t.appendTo!==this.props.appendTo&&this.appendPortalToNode(),this.portalNode&&(this.portalClasses=ar(gt.root,{skin:n},o,Fi.root({skin:n})),this.applyStylesToPortaledNode()),t.shown!==s?s?this.showPopover():this.hidePopover():this.updatePosition(),this._syncAnimationFrameLoop(t,r)}render(){const{onMouseEnter:t,onMouseLeave:r,onKeyDown:n,onClick:o,children:s,className:a,style:i,fluid:l,skin:c,dataHook:u,zIndex:d,excludeClass:p,interactive:f}=this.props,{isMounted:h,shown:m}=this.state,g=fx(s,{Element:null,Content:null}),y=Mo(this.props),_=h&&(y||m);return v.createElement(Y2,null,v.createElement(ax,{rootRef:this.clickOutsideRef,onClickOutside:this._handleClickOutside,excludeClass:p?[this.clickOutsideClass,p]:this.clickOutsideClass},v.createElement("div",{ref:this.clickOutsideRef,style:i,"data-hook":u,"data-content-hook":this.contentHook,className:ar(gt.root,{fluid:l,skin:c},a,Fi.root({fluid:l,skin:c})),"data-zindex":d,onMouseEnter:f?t:void 0,onMouseLeave:f?r:void 0,...ux(this.props)},v.createElement(tx,{innerRef:w=>this.targetRef=w},({ref:w})=>
24v.createElement("div",{ref:w,className:ar(gt.element,Fi.element()),"data-hook":"popover-element",onClick:o,onKeyDown:n,onMouseEnter:f?void 0:t,onMouseLeave:f?void 0:r},g.Element)),_&&this.renderPopperContent(g))))}}er.displayName="Popover";er.defaultProps={flip:!0,fixed:!1,zIndex:kn.popover,shown:!1,placement:"bottom",excludeClass:"",interactive:!0};er.contextType=Qt;er.Element=Tb("Popover.Element");er.Content=Tb("Popover.Content");const Ox=150,Rx=100;class wr extends b.PureComponent{render(){const{animate:t,theme:r,skin:n,...o}=this.props,s=t?{enter:Ox,exit:Rx}:void 0;return v.createElement(er,{timeout:s,...o,skin:n||r})}}wr.displayName="Popover";wr.Element=er.Element;wr.Content=er.Content;wr.defaultProps={appendTo:"parent",theme:"light",animate:!1,interactive:!0};var Mb="wds_1_319_0_StylableTypography";se.bind(null,Mb);ae.bind(null,Mb);var Fb="wds_1_319_0_Text",Tx=se.bind(null,Fb);ae.bind(null,Fb);var Bb=Tx,Hb={root:"wds_1_319_0_Text__root"};const Vd=v.createContext({}),Ax=e=>Object.keys(e).reduce((t,r)=>(t[`data-${r}`]=e[r],t),{}),Te={size:"medium",secondary:!1,skin:"standard",light:!1,weight:"thin",tagName:"span",listStyle:"checkmark",widows:!1,overflowWrap:"normal"},zd=v.forwardRef(({size:e=Te.size,secondary:t=Te.secondary,skin:r=Te.skin,light:n=Te.light,weight:o=Te.weight,tagName:s=Te.tagName,children:a,ellipsis:i,appendTo:l,flip:c,fixed:u,placement:d,maxWidth:p,zIndex:f,showTooltip:h,listStyle:m=Te.listStyle,id:g,widows:y=Te.widows,suffix:_,overflowWrap:w=Te.overflowWrap,renderChildren:E,renderElement:C,...S},x)=>{const{dataHook:P,className:D,...L}=S,O={size:e,secondary:t,skin:r,light:n,weight:o,widows:y,"list-style":m,"overflow-wrap":w},A=Ax(O),T=b.useMemo(()=>{if(!y||typeof a!="string"||!a)return a;const R=a.split(" ");if(R.length<=2)return a;const N=R.length,W=R.slice(0,N-2);return W.push(R[N-2]+"Â "+R[N-1]),W.join(" ")},[a,y]);return v.createElement(Vd.Consumer,null,({maskingClassNames:R})=>{const N=v.createElement(s,{ref:x,id:g,...L,"data-hook":P,"data-mask":!!R,className:Bb(Hb.root,O,D,R),...A},E({text:T,suffix:_}));return C({element:N,suffix:_})})});zd.displayName="Text";const kx={tooltipText:"tooltip-text"},Px={enter:100,exit:150},Uh=$e("tooltip",{root:{variants:{size:["small","medium"]},states:["inline"]},text:{}}),Hn=e=>{const t=b.useRef(e);return b.useLayoutEffect(()=>{t.current=e}),b.useMemo(()=>(...r)=>{const{current:n}=t;return n(...r)},[])},Ne=b.forwardRef(({onShow:e=()=>({}),onHide:t=()=>({}),size:r="medium",className:n,placement:o="top",exitDelay:s=0,enterDelay:a=0,moveArrowTo:i,appendTo:l="window",flip:c=!0,fixed:u=!1,maxWidth:d=204,fluid:p,moveBy:f,disabled:h,children:m,zIndex:g=kn.tooltip,textAlign:y="start",content:_="",inline:w,"aria-describedby":E,"aria-labelledby":C,interactive:S=!0,...x},P)=>{const[D,L]=b.useState(!1),O=b.useRef(null),A=Hn(()=>{L(!0),e==null||e()}),T=Hn(()=>{L(!1),t==null||t()});b.useImperativeHandle(P,()=>({open:A,close:T,getContentElement:()=>O.current}));const R=h??!1,N=Hn((k,$)=>{const G=$&&$.focus,Z=k.target;try{if(Z instanceof Element&&!Z.matches(":focus-visible")){$==null||$.blur();return}}catch{}return A(),G?$.focus():null}),W=Hn((k,$)=>{const G=$&&$.blur;return T(),G?$.blur():null}),q=Hn(k=>{k.key==="Escape"&&D&&T()});b.useEffect(()=>(document.addEventListener("keydown",q),()=>{document.removeEventListener("keydown",q)}),[q]);const H=b.useMemo(()=>{if(typeof m=="string"||!m)return m;if(v.isValidElement(m)){const k=C?{"aria-labelledby":C}:{"aria-describedby":E};return v.cloneElement(m,{...R?{}:{onFocus:N,onBlur:W},...k})}if(typeof m=="function")return m({onFocus:N,onBlur:W})},[m,R,N,W,E,C]),I=b.useMemo(()=>{const k=r==="small"?"tiny":"small";return v.createElement("div",{style:{textAlign:y}},typeof _=="string"?v.createElement(zd,{dataHook:kx.tooltipText,size:k,light:!0,className:Uh.text(),renderChildren:({text:$})=>$,renderElement:({element:$})=>$},_):_)},[_,y,r]);return v.createElement(wr,{role:"tooltip",showArrow:r!=="small",className:Uh.root({size:r,inline:w},n),placement:o,shown:R?!1:D,onMouseEnter:R?void 0:A,onMouseLeave:T,onClickOutside:T,onEscPress:T,"data-size":r,hideDelay:s,showDelay:a,moveBy:f,moveArrowTo:i,appendTo:l,id:C||E,flip:c,fixed:u,maxWidth:d,fluid:p,disableClickOutsideWhenClosed:!0,zIndex:g,interactive:S,...x,theme:"dark",timeout:Px},v.createElement(wr.Element,null,H),v.createElement(wr.Content,null,v.createElement("div",{ref:O,style:{maxWidth:d}},I)))});Ne.displayName="Tooltip";var qb="wds_1_319_0_TextComponent",Dx=se.bind(null,qb);ae.bind(null,qb);var Wh=Dx,qn={text:"wds_1_319_0_TextComponent__text",suffix:"wds_1_319_0_TextComponent__suffix",multilineSuffixWrapper:"wds_1_319_0_TextComponent__multilineSuffixWrapper",multilineSuffix:"wds_1_319_0_TextComponent__multilineSuffix"},Nx={maxLines:"--wds_1_319_0_TextComponent-maxLines"};class Lx extends v.PureComponent{constructor(t){super(t),this.requestedRecalculationMount=null,this.requestedRecalculationUpdate=[],this._getEllipsisClasse
24s=()=>{const{ellipsis:r,maxLines:n}=this.props,o=n&&n>1?"multiline":"singleLine";return s=>r?Wh(qn.text,{ellipsisLines:o},s):s},this.renderChildren=this.renderChildren.bind(this),this.renderElement=this.renderElement.bind(this)}componentDidMount(){this.props.textRendered||(this.requestedRecalculationMount=requestAnimationFrame(()=>{this.props.onTextRendered()}))}componentDidUpdate(){this.props.textRendered||this.requestedRecalculationUpdate.push(requestAnimationFrame(()=>{this.props.onTextRendered()}))}componentWillUnmount(){this.requestedRecalculationMount&&cancelAnimationFrame(this.requestedRecalculationMount),this.requestedRecalculationUpdate.length!==0&&this.requestedRecalculationUpdate.forEach(t=>cancelAnimationFrame(t))}renderChildren({text:t,suffix:r}){const{textElementRef:n,isEllipsisActive:o,tooltipRef:s}=this.props;if(r&&o){const a=(n==null?void 0:n.current)&&window.getComputedStyle(n.current).lineHeight;return v.createElement(v.Fragment,null,v.createElement("span",{style:{shapeOutside:`inset(calc(100% - ${a}) 0 0)`},className:Wh(qn.suffix,qn.multilineSuffix),onMouseEnter:()=>{var i;return(i=s==null?void 0:s.current)==null?void 0:i.close()}},r),v.createElement("span",{onMouseEnter:()=>{var i;return(i=s==null?void 0:s.current)==null?void 0:i.open()}},t))}else return r?v.createElement(v.Fragment,null,v.createElement("span",null,t),v.createElement("span",{className:qn.suffix},r)):t}renderElement({element:t,suffix:r}){const{maxLines:n=1}=this.props;return n>1&&!!r?v.createElement("div",{className:qn.multilineSuffixWrapper},t):t}render(){const{render:t,maxLines:r,textElementRef:n}=this.props;return t({ref:n,ellipsisClasses:this._getEllipsisClasses(),ellipsisInlineStyle:{[Nx.maxLines]:r},renderChildren:this.renderChildren,renderElement:this.renderElement})}}class xe extends v.PureComponent{constructor(t){super(t),this._onTextRendered=()=>{const{isActive:r,textContent:n}=this.state,o=this._getTextContent(),s=this._checkShouldBeActive(),a={textRendered:!0,...o!==n?{textContent:o}:{},...s!==r?{isActive:s}:{}};this.setState(i=>({...i,...a}))},this._updateIsActive=()=>{const{isActive:r}=this.state,n=this._checkShouldBeActive();n!==r&&this.setState({isActive:n})},this._getTextContent=()=>{const{current:r}=this.ref;return r&&r.textContent},this._checkShouldBeActive=()=>this._isOverflowingHorizontally()||this._isOverflowingVertically(),this._isOverflowingHorizontally=()=>{var s;const{current:r}=this.ref,{ellipsis:n}=this.props,o=(s=r==null?void 0:r.parentElement)==null?void 0:s.offsetWidth;return!!(n&&r&&(o&&r.scrollWidth-o>1||r.offsetWidth<r.scrollWidth))},this._isOverflowingVertically=()=>{var a;const{current:r}=this.ref,{ellipsis:n,maxLines:o}=this.props,s=(a=r==null?void 0:r.parentElement)==null?void 0:a.offsetHeight;return!!(o&&o>1&&n&&r&&(s&&r.scrollHeight-s>1||r.offsetHeight<r.scrollHeight))},this._debouncedUpdate=M0(this._updateIsActive,100),this.state={isActive:!1,textContent:null,textRendered:!1},this.ref=v.createRef(),this.tooltipRef=v.createRef()}componentDidMount(){var t,r;window.addEventListener("resize",this._debouncedUpdate),(r=(t=this.props).onEllipsisStateChange)==null||r.call(t,this.state.isActive)}_renderText(){const{render:t,ellipsis:r,maxLines:n}=this.props,{textRendered:o,isActive:s}=this.state;return v.createElement(Lx,{render:t,ellipsis:r,maxLines:n,textRendered:o,onTextRendered:this._onTextRendered,textElementRef:this.ref,isEllipsisActive:s,tooltipRef:this.tooltipRef})}render(){const{appendTo:t,wrapperClassName:r,disabled:n,enterDelay:o,exitDelay:s,fixed:a,flip:i,maxWidth:l,moveArrowTo:c,moveBy:u,onHide:d,onShow:p,placement:f,showTooltip:h,textAlign:m,zIndex:g,size:y,interactive:_}=this.props,{isActive:w,textContent:E}=this.state;return h&&w?v.createElement(Ne,{ref:this.tooltipRef,className:EC(CC.tooltip,r),content:E,appendTo:t,disabled:n,enterDelay:o,exitDelay:s,fixed:a,flip:i,maxWidth:l,moveArrowTo:c,moveBy:u,onHide:d,onShow:p,placement:f,textAlign:m,zIndex:g,size:y,interactive:_},this._renderText()):this._renderText()}static getDerivedStateFromProps(t,r){const{render:n,ellipsis:o,maxLines:s}=t;return r.prevRender!==n||r.prevEllipsis!==o||r.prevMaxLines!==s?{textRendered:!1,prevRender:n,prevEllipsis:o,prevMaxLines:s}:null}componentDidUpdate(t,r){const{textRendered:n,isActive:o}=this.state;n&&!_C(t,this.props)&&this._updateIsActive(),r.isActive!==o&&this.props.onEllipsisStateChange&&this.props.onEllipsisStateChange(this.state.isActive)}componentWillUnmount(){this._debouncedUpdate.cancel(),window.removeEventListener("resize",this._debouncedUpdate)}}xe.defaultProps={ellipsis:!1,appendTo:"window",flip:!1,fixed:!1,placement:"top",zIndex:kn.tooltip,enterDelay:0,exitDelay:0,showTooltip:!0};const jb=({appendTo:e,disabled:t,ellipsis:r,enterDelay:n,exitDelay:o,fixed:s,flip:a,maxWidth:i,moveArrowTo:l,onHide:c,onShow:u,placement:d,showTooltip:p,textAlign:f,zIndex:h,maxLines:m,onEllipsisStateChange:g,...y})=>({ellipsisProps:{appendTo:e,disabled:t,ellipsis:r,enterDelay:n,exitDelay:o,fixed:s,flip:a,maxWidth:i,moveArrowTo:l,onHide:c,onShow:u,placement:d,showTooltip:p,textAlign:f,zIndex:h,maxLines:m,onEllipsisStateChange:g},componentProps:y});var Ub="wds_1_319_0_Heading",$x=se.bind(null,Ub);ae.bind(null,Ub);var Vh=$x,zh={root:"wds_1_319_0_Heading__root"};const Hr={H1:"H1",H2:"H2",H3:"H3",H4:"H4",H5:"H5",H6:"H6"},mr={EXTRA_LARGE:"extraLarge",LARGE:"large",MEDIUM:"medium",SMALL:"small",TINY:"tiny",EXTRA_TINY:"extraTiny"},Kh={[mr.EXTRA_LARGE]:Hr.H1,[mr.LARGE]:Hr.H2,[mr.MEDIUM]:Hr.H3,[mr.SMALL]:Hr.H4,[mr.TINY]:Hr.H5,[mr.EXTRA_TINY]:Hr.H6},Wb=({light:e=!1,ellipsis:t=!1,appendTo:r=xe.defaultProps.appendTo,flip:n=xe.defaultProps.flip,fixed:o=xe.defaultProps.fixed,placement:s=xe.defaultProps.placement,zIndex:a=xe.defaultProps.zIndex,enterDelay:i=xe.defaultProps.enterDelay,exitDelay:l=xe.defaultProps.exitDelay,showTooltip:c=xe.defaultProps.showTooltip,...u})=>{const d={...xe.defaultProps,light:e,ellipsis:t,appendTo:r,flip:n,fixed:o,placement:s,zIndex:a,enterDelay:i,exitDelay:l,showTooltip:c,...u},{ellipsisProps:p,componentProps:f}=jb(d),{appearance:h,as:m,children:g,dataHook:y,size:_,id:w,light:E,...C}=f;b.useEffect(()=>{},[h]);const S=_&&Kh[_]||h||Kh[mr.EXTRA_LARGE];return v.createElement(Vd.Consumer,null,({maskingClassNames:x})=>v.createElement(xe,{...p,wrapperClassName:Vh(zh.root,{appearance:S,size:_}
24),render:({ref:P,ellipsisClasses:D,ellipsisInlineStyle:L})=>v.createElement(m||S.toLowerCase(),{...C,id:w,ref:P,style:L,"data-hook":y,className:Vh(zh.root,{light:e,appearance:S},D(d.className),x),"data-appearance":h,"data-size":_,"data-light":e,"data-mask":!!x,"data-id":w},g)}))};Wb.displayName="Heading";const Mx={tiny:18,small:30,medium:54,large:102},Fx={tiny:3,small:4,medium:4,large:4},Gh={tiny:{light:216,dark:144},small:{light:216,dark:144},medium:{light:108,dark:108},large:{light:180,dark:180}};var Vb="wds_1_319_0_Loader",Bx=se.bind(null,Vb);ae.bind(null,Vb);var Hx=Bx,qr={root:"wds_1_319_0_Loader__root",statusIndicator:"wds_1_319_0_Loader__statusIndicator",arcsContainer:"wds_1_319_0_Loader__arcsContainer",darkArc:"wds_1_319_0_Loader__darkArc",lightArc:"wds_1_319_0_Loader__lightArc",text:"wds_1_319_0_Loader__text"};const Yh=359,qx={tiny:v.createElement(dC,null),small:v.createElement(tC,null),medium:v.createElement(sp,null),large:v.createElement(sp,null)},jx={tiny:v.createElement(pa,null),small:v.createElement(aC,null),medium:v.createElement(pa,null),large:v.createElement(pa,null)},tr=({size:e="medium",color:t="blue",text:r,status:n="loading",statusMessage:o,dataHook:s})=>{const a=b.useMemo(()=>{const i=qx[e],l=jx[e],c=Fx[e],u=Mx[e],d=n==="success"||n==="error",p=d?Yh:Gh[e].light,f=d?Yh:Gh[e].dark;return v.createElement("div",{className:qr.arcsContainer,style:{width:`${u}px`,height:`${u}px`}},v.createElement(zu,{angle:p,className:qr.lightArc,strokeWidth:c,viewBoxSize:u}),v.createElement(zu,{angle:f,className:qr.darkArc,strokeWidth:c,viewBoxSize:u}),d&&v.createElement("div",{className:qr.statusIndicator,"data-hook":"loader-status-indicator"},n==="success"&&i,n==="error"&&l))},[n,e]);return v.createElement("div",{className:Hx(qr.root,{size:e,color:t,status:n}),"data-hook":s,"data-size":e,"data-color":t,"data-status":n},o?v.createElement(Ne,{content:o,appendTo:"window",dataHook:"loader-tooltip"},a):a,e!=="tiny"&&r&&v.createElement("div",{className:qr.text},v.createElement(Wb,{size:"extraTiny",dataHook:"loader-text"},r)))};
24tr.displayName="Loader";class zb extends b.Component{constructor(t){super(t),this.detachScrollListener=()=>{},this.scrollListener=this.scrollListener.bind(this)}componentDidMount(){var t,r;this.pageLoaded=this.props.pageStart,this.attachScrollListener(),this.props.initialLoad?this.scrollListener():(t=this.props.data)!=null&&t.length&&this.props.hasMore&&(r=this.scrollComponent)!=null&&r.scrollHeight&&this.scrollListener()}componentDidUpdate(t){var r,n,o;this.attachScrollListener(),((r=t.data)==null?void 0:r.length)!==((n=this.props.data)==null?void 0:n.length)&&this.props.hasMore&&(o=this.scrollComponent)!=null&&o.scrollHeight&&this.scrollListener()}render(){const{children:t,hasMore:r,loader:n,scrollElement:o,dataHook:s}=this.props;let a;return o?a=()=>this.scrollComponent=o:a=i=>this.scrollComponent=i,v.createElement("div",{ref:a,"data-hook":s},t,r&&(n||this._defaultLoader))}calculateTopPosition(t){return t?t.offsetTop+this.calculateTopPosition(t.offsetParent):0}scrollListener(){const t=this.scrollComponent;let r;if(this.props.scrollElement)this.props.isReverse?r=t.scrollTop:r=t.scrollHeight-t.scrollTop-t.clientHeight;else if(this.props.useWindow){const n=window.pageYOffset!==void 0?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop;this.props.isReverse?r=n:r=this.calculateTopPosition(t)+t.offsetHeight-n-window.innerHeight}else this.props.isReverse?r=t.parentNode.scrollTop:r=t.scrollHeight-t.parentNode.scrollTop-t.parentNode.clientHeight;r<Number(this.props.threshold)&&(this.detachScrollListener(),typeof this.props.loadMore=="function"&&this.props.hasMore&&this.props.loadMore(this.pageLoaded+=1))}attachScrollListener(){if(this.detachScrollListener(),!this.props.hasMore)return;let t=window;this.props.scrollElement?t=this.scrollComponent:this.props.useWindow===!1&&(t=this.scrollComponent.parentNode),t.addEventListener("scroll",this.scrollListener),t.addEventListener("resize",this.scrollListener),this.detachScrollListener=()=>{t.removeEventListener("scroll",this.scrollListener),t.removeEventListener("resize",this.scrollListener),this.detachScrollListener=()=>{}}}componentWillUnmount(){this.detachScrollListener()}setDefaultLoader(t){this._defaultLoader=t}}zb.defaultProps={hasMore:!1,initialLoad:!0,pageStart:0,threshold:250,useWindow:!0,isReverse:!1,scrollElement:null};function Ux(e,t){const r=e.getBoundingClientRect(),n=t.getBoundingClientRect();n.bottom>r.bottom?e.scrollTop=Math.min(t.offsetTop+t.clientHeight-e.offsetHeight,e.scrollHeight):n.top<r.top&&(e.scrollTop=Math.max(t.offsetTop,0))}const Mt={CONTENT_CONTAINER:"content-container",DROPDOWN_LAYOUT_OPTIONS:"dropdown-layout-options",INFINITE_SCROLL_CONTAINER:"infinite-scroll-container",LINK_ITEM:"link-item",TOP_ARROW:"top-arrow",OPTION:"dropdown-layout-option"},Xh={TITLE:"dropdown-title",DIVIDER:"dropdown-divider"},Wx="data-shown",Vx="data-direction",zx="data-selected-option-id",Kx="dropdownLayout-loader",Fo={SIZE:"data-option-size",HOVERED:"data-option-hovered",SELECTED:"data-option-selected",DISABLED:"data-option-disabled"},Zh={UP:"up",DOWN:"down"},We=$e("dropdown-layout",{root:{variants:{direction:["up","down"]},states:["visible","hidden","withArrow","containerStyles"]},contentContainer:{},options:{},optionsContent:{},option:{states:["selected","hovered","disabled","overrideStyle"]},selectableOption:{variants:{itemHeight:["small","big"]}},arrow:{},loader:{},linkItem:{},dropdownOption:{}}),is=(e,t=()=>!0)=>{const r={};for(const n in e)e.hasOwnProperty(n)&&t(n,e[n])&&(r[n]=e[n]);return r};var Kb="wds_1_319_0_Divider",Gx=se.bind(null,Kb);ae.bind(null,Kb);var Yx=Gx,Xx={root:"wds_1_319_0_Divider__root"};const Zx={horizontal:"horizontal"},Jx={light:"light"},Gb=({dataHook:e,className:t,direction:r=Zx.horizontal,skin:n=Jx.light})=>v.createElement("hr",{"data-hook":e,className:Yx(Xx.root,{direction:r,skin:n},t)});Gb.displayName="Divider";const pe=({ellipsis:e=!1,appendTo:t=xe.defaultProps.appendTo,flip:r=xe.defaultProps.flip,fixed:n=xe.defaultProps.fixed,placement:o=xe.defaultProps.placement,zIndex:s=xe.defaultProps.zIndex,enterDelay:a=xe.defaultProps.enterDelay,exitDelay:i=xe.defaultProps.exitDelay,showTooltip:l=xe.defaultProps.showTooltip,size:c=Te.size,secondary:u=Te.secondary,skin:d=Te.skin,light:p=Te.light,weight:f=Te.weight,tagName:h=Te.tagName,listStyle:m=Te.listStyle,widows:g=Te.widows,overflowWrap:y=Te.overflowWrap,id:_,...w})=>{const{className:E,tooltipProps:C,...S}={...Te,...xe.defaultProps,ellipsis:e,appendTo:t,flip:r,fixed:n,placement:o,zIndex:s,enterDelay:a,exitDelay:i,showTooltip:l,size:c,secondary:u,skin:d,light:p,weight:f,tagName:h,listStyle:m,id:_,widows:g,overflowWrap:y,...w},{ellipsisProps:x,componentProps:P}=jb(S);return v.createElement(xe,{...x,...C,wrapperClassName:Bb(Hb.root,{size:S.size,weight:S.weight,listStyle:S.listStyle}
24),render:({ref:D,ellipsisClasses:L,ellipsisInlineStyle:O,renderChildren:A,renderElement:T})=>v.createElement(zd,{...P,tagName:h,ref:D,className:L(E),style:O,renderChildren:A,renderElement:T})})};pe.displayName="Text";const Qx={small:"small"},eI={error:"error"},Ju={normal:"normal",bold:"bold"},Es=(e,t)=>Object.entries(e).filter(([r])=>t&&t.includes(r)).reduce((r,[n,o])=>({...r,[`data-${n.toLowerCase()}`]:o}),{});var Yb="wds_1_319_0_Focusable",tI=se.bind(null,Yb);ae.bind(null,Yb);var rI=tI,nI={root:"wds_1_319_0_Focusable__root"},Xb="wds_1_319_0_ButtonCore",oI=se.bind(null,Xb);ae.bind(null,Xb);var Jh=oI,Qu={root:"wds_1_319_0_ButtonCore__root",content:"wds_1_319_0_ButtonCore__content",prefix:"wds_1_319_0_ButtonCore__prefix",suffix:"wds_1_319_0_ButtonCore__suffix"},Zb="wds_1_319_0_TextButton",sI=se.bind(null,Zb);ae.bind(null,Zb);var aI=sI,iI={root:"wds_1_319_0_TextButton__root"},Bi={exports:{}};/*! 25 Copyright (c) 2018 Jed Watson. 26 Licensed under the MIT License (MIT), see 27 http://jedwatson.github.io/classnames 28*/var Qh;function lI(){return Qh||(Qh=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var s="",a=0;a<arguments.length;a++){var i=arguments[a];i&&(s=o(s,n(i)))}return s}function n(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return r.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var a="";for(var i in s)t.call(s,i)&&s[i]&&(a=o(a,i));return a}function o(s,a){return a?s?s+" "+a:s+a:s}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Bi)),Bi.exports}var cI=lI();const uI=Pe(cI);var Bo={},em;function dI(){if(em)return Bo;em=1,Bo.__esModule=!0,Bo.default=o;var e={autobind:!0,childContextTypes:!0,componentDidMount:!0,componentDidUpdate:!0,componentWillMount:!0,componentWillReceiveProps:!0,componentWillUnmount:!0,componentWillUpdate:!0,contextTypes:!0,displayName:!0,forceUpdate:!0,getChildContext:!0,getDefaultProps:!0,getDOMNode:!0,getInitialState:!0,isMounted:!0,mixins:!0,propTypes:!0,render:!0,replaceProps:!0,replaceState:!0,setProps:!0,setState:!0,shouldComponentUpdate:!0,statics:!0,updateComponent:!0},t={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},n={delegateTo:function(a){return a.refs.child},hoistStatics:!0};function o(s,a,i){var l=s.displayName||s.name||"Wrapper",c=a.displayName||a.name||"WrappedComponent",u=i&&typeof i.hoistStatics<"u"?i.hoistStatics:n.hoistStatics,d=i&&typeof i.delegateTo<"u"?i.delegateTo:n.delegateTo;if(typeof i=="function"&&(d=i),u){var p=Object.getOwnPropertyNames(a).filter(function(h){return!t[h]&&!r[h]});p.forEach(function(h){s[h]&&console.warn("Static method "+h+" already exists in wrapper component "+l+", and won't be hoisted. Consider changing the name on "+c+"."),s[h]=a[h]})}var f=Object.getOwnPropertyNames(a.prototype).filter(function(h){return!e[h]});return f.forEach(function(h){if(s.prototype[h]){console.warn("Method "+h+" already exists in wrapper component "+l+", and won't be hoisted. Consider changing the name on "+c+".");return}s.prototype[h]=function(){for(var m,g=arguments.length,y=Array(g),_=0;_<g;_++)y[_]=arguments[_];return(m=a.prototype[h]).call.apply(m,[d.call(this,this)].concat(y))}}),s}return Bo}var fI=dI();const pI=Pe(fI),hI=e=>{if(typeof e=="string")return e;if(e)return e.displayName||e.name||"Component"},mI=e=>!(e.prototype&&e.prototype.render),vI=e=>!!(e.prototype&&typeof e.prototype.isReactComponent=="object"||e&&e.$$typeof===Symbol.for("react.forward_ref")),jn=new class{constructor(){this.method="keyboard",this.subscribers=new Map,this.subscribe=(e,t)=>this.subscribers.set(e,t),this.unsubscribe=e=>this.subscribers.delete(e),this.isKeyboard=()=>this.method==="keyboard",typeof window<"u"&&(window.addEventListener("mousedown",()=>this.setMethod("mouse")),window.addEventListener("keydown",()=>this.setMethod("keyboard")),window.addEventListener("keyup",()=>this.setMethod("keyboard")))}setMethod(e){e!==this.method&&(this.method=e,this.subscribers.forEac
28h(t=>t()))}};function Pn(e,t={}){class r extends v.Component{constructor(){super(...arguments),this.wrappedComponentRef=null,this.state={focus:!1,focusVisible:!1},this.focus=o=>{var s;(s=this.wrappedComponentRef)!=null&&s.focus&&(this.wrappedComponentRef.focus(),o&&o.focusVisible!==void 0&&this.setState({focus:!0,focusVisible:o.focusVisible}))},this.setWrappedComponentRef=o=>{this.wrappedComponentRef=o},this.markAsFocused=()=>{this.setState({focus:!0,focusVisible:t.isFocusWithMouse||jn.isKeyboard()}),jn.subscribe(this,()=>{(t.isFocusWithMouse||jn.isKeyboard())&&this.setState({focusVisible:!0})})},this.markAsBlurred=()=>{jn.unsubscribe(this),this.setState({focus:!1,focusVisible:!1})},this.onFocus=o=>{const{onFocus:s}=this.props;s&&s(o,{blur:this.markAsBlurred,focus:this.markAsFocused}),this.markAsFocused()},this.onBlur=o=>{const{onBlur:s}=this.props;s&&s(o,{blur:this.markAsBlurred,focus:this.markAsFocused}),this.markAsBlurred()}}componentWillUnmount(){jn.unsubscribe(this)}componentDidUpdate(o){const s=this.state.focus||this.state.focusVisible,a=!o.disabled&&this.props.disabled;s&&a&&this.onBlur({})}render(){const o=vI(e)?this.setWrappedComponentRef:void 0;return v.createElement(e,{...this.props,ref:o,focusableOnFocus:this.onFocus,focusableOnBlur:this.onBlur,className:rI(nI.root,{focus:this.state.focus,"focus-visible":this.state.focusVisible},this.props.className)})}}return r.displayName=hI(e),r.defaultProps=e.defaultProps,mI(e)?r:pI(r,e,{delegateTo:n=>n.wrappedComponentRef,hoistStatics:!0})}var Qn;(function(e){e.button="button",e.prefixIcon="prefix-icon",e.suffixIcon="suffix-icon"})(Qn||(Qn={}));const gI=e=>!(e.prototype&&e.prototype.render),tm=(e,t,r)=>e&&b.cloneElement(e,{className:uI(Qu[t],e.props.className),"data-hook":e.props["data-hook"]||e.props.dataHook||r});class Kd extends b.Component{constructor(){super(...arguments),this.innerComponentRef=b.createRef()}focus(){this.innerComponentRef&&this.innerComponentRef.focus&&this.innerComponentRef.focus()}getBoundingClientRect(){if(this.innerComponentRef&&this.innerComponentRef.getBoundingClientRect)return this.innerComponentRef.getBoundingClientRect()}render(){const{as:t,suffixIcon:r,prefixIcon:n,children:o,disabled:s,focusableOnFocus:a,focusableOnBlur:i,href:l,contentClassName:c,contentRef:u,onClick:d,onKeyDown:p,onKeyUp:f,...h}=this.props,m=h.tabIndex||0,g=s?void 0:l,y=gI(t)&&typeof t!="string"?void 0:E=>this.innerComponentRef=E,_=s?E=>E.preventDefault():d,w=s?E=>{(E.key==="Enter"||E.key===" ")&&E.preventDefault()}:p;return t?b.createElement(t,{"data-hook":Qn.button,...h,onFocus:a,onBlur:i,onClick:_,onKeyDown:w,onKeyUp:s?void 0:f,href:g,ref:y,tabIndex:m,"aria-disabled":s||void 0,className:Jh(Qu.root,{disabled:s},this.props.className)},n&&tm(n,"prefix",Qn.prefixIcon),b.createElement("span",{className:Jh(Qu.content,c),ref:u},o),r&&tm(r,"suffix",Qn.suffixIcon)):null}}Kd.defaultProps={as:"button",type:"button"};Kd.displayName="ButtonCore";const So=Pn(Kd);globalThis.__WDSDefaultPropsContext__||(globalThis.__WDSDefaultPropsContext__=b.createContext({}));const bI=globalThis.__WDSDefaultPropsContext__;function yI(e={},t){const r={...t},n=e;for(const o in n)r[o]===void 0&&(r[o]=n[o]);return r}function kr(e,t){const r=b.useContext(bI)[e];return yI(r,t)}var Hi={exports:{}},_e={};/** @license React v16.13.1 29 * react-is.production.min.js 30 * 31 * Copyright (c) Facebook, Inc. and its affiliates. 32 * 33 * This source code is licensed under the MIT license found in the 34 * LICENSE file in the root directory of this source tree. 35 */var rm;function _I(){if(rm)return _e;rm=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,i=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function w(C){if(typeof C=="object"&&C!==null){var S=C.$$typeof;switch(S){case t:switch(C=C.type,C){case l:case c:case n:case s:case o:case d:return C;default:switch(C=C&&C.$$typeof,C){case i:case u:case h:case f:case a:return C;default:return S}}case r:return S}}}function E(C){return w(C)===c}return _e.AsyncMode=l,_e.ConcurrentMode=c,_e.ContextConsumer=i,_e.ContextProvider=a,_e.Element=t,_e.ForwardRef=u,_e.Fragment=n,_e.Lazy=h,_e.Memo=f,_e.Portal=r,_e.Profiler=s,_e.StrictMode=o,_e.Suspense=
35d,_e.isAsyncMode=function(C){return E(C)||w(C)===l},_e.isConcurrentMode=E,_e.isContextConsumer=function(C){return w(C)===i},_e.isContextProvider=function(C){return w(C)===a},_e.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},_e.isForwardRef=function(C){return w(C)===u},_e.isFragment=function(C){return w(C)===n},_e.isLazy=function(C){return w(C)===h},_e.isMemo=function(C){return w(C)===f},_e.isPortal=function(C){return w(C)===r},_e.isProfiler=function(C){return w(C)===s},_e.isStrictMode=function(C){return w(C)===o},_e.isSuspense=function(C){return w(C)===d},_e.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===n||C===c||C===s||C===o||C===d||C===p||typeof C=="object"&&C!==null&&(C.$$typeof===h||C.$$typeof===f||C.$$typeof===a||C.$$typeof===i||C.$$typeof===u||C.$$typeof===g||C.$$typeof===y||C.$$typeof===_||C.$$typeof===m)},_e.typeOf=w,_e}var nm;function wI(){return nm||(nm=1,Hi.exports=_I()),Hi.exports}var qi,om;function EI(){if(om)return qi;om=1;var e=wI(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=n,s[e.Memo]=o;function a(h){return e.isMemo(h)?o:s[h.$$typeof]||t}var i=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,p=Object.prototype;function f(h,m,g){if(typeof m!="string"){if(p){var y=d(m);y&&y!==p&&f(h,y,g)}var _=l(m);c&&(_=_.concat(c(m)));for(var w=a(h),E=a(m),C=0;C<_.length;++C){var S=_[C];if(!r[S]&&!(g&&g[S])&&!(E&&E[S])&&!(w&&w[S])){var x=u(m,S);try{i(h,S,x)}catch{}}}}return h}return qi=f,qi}var CI=EI();const xI=Pe(CI);function Oo(e,t){const r=e,n=v.forwardRef((o,s)=>{const a=kr(t,o);return v.createElement(r,{ref:s,...a})});return n.displayName=e.displayName||e.name||t,xI(n,e)}class Gd extends b.PureComponent{constructor(){super(...arguments),this.button=v.createRef(),this.focus=()=>{this.button.current&&this.button.current.focus()}}render(){const{skin:t,underline:r,weight:n,size:o,children:s,className:a,dataHook:i,fluid:l,wrap:c,ellipsis:u,showTooltip:d,tooltipProps:p,ariaLabel:f,ariaLabelledBy:h,ariaHaspopup:m,ariaExpanded:g,ariaControls:y,ariaActiveDescendant:_,...w}=this.props;return v.createElement(xe,{ellipsis:u,showTooltip:d,...p,render:({ref:E,ellipsisClasses:C})=>v.createElement(So,{"aria-label":f,"aria-labelledby":h,"aria-haspopup":m,"aria-expanded":g,"aria-controls":y,"aria-activedescendant":_,...w,...Es(this.props,["skin","size","weight","underline"]),ref:this.button,className:aI(iI.root,{skin:t,underline:r,weight:n,size:o,fluid:l,wrap:c,ellipsis:u},a),"data-hook":i,contentClassName:C(),contentRef:E},s)})}}Gd.displayName="TextButton";Gd.defaultProps={skin:"standard",underline:"none",size:"medium",disabled:!1,fluid:!1,wrap:!1,tooltipProps:{}};const II=Oo(Gd,"TextButton"),ed=e=>typeof e=="string",ji={SUFFIX:"list-item-section-suffix",TITLE:"list-item-section-title"},Un={WHITESPACE:"whitespace",DIVIDER:"divider",TITLE:"title",SUBHEADER:"subheader"};var Jb="wds_1_319_0_ListItemSection",SI=se.bind(null,Jb);ae.bind(null,Jb);var sm=SI,ir={root:"wds_1_319_0_ListItemSection__root",title:"wds_1_319_0_ListItemSection__title",titleWrapper:"wds_1_319_0_ListItemSection__titleWrapper",suffixWrapper:"wds_1_319_0_ListItemSection__suffixWrapper",suffix:"wds_1_319_0_ListItemSection__suffix"};const Qb=({type:e=Un.TITLE,ellipsis:t=!1,dataHook:r,className:n,title:o,suffix:s,onClick:a})=>{const i=e===Un.WHITESPACE||e===Un.DIVIDER,l=e===Un.SUBHEADER;return i?v.createElement("div",{className:sm(ir.root,{[e]:!0}),"data-hook":r,onClick:c=>c.stopPropagation()},e===Un.DIVIDER&&v.createElement(Gb,null)):v.createElement("div",{className:sm(ir.root,{subheader:l,ellipsis:t,suffix:!!s},n),"data-hook":r},v.createElement("div",{className:ir.titleWrapper},v.createElement(pe,{dataHook:ji.TITLE,tagName:"div",size:"small",className:ir.title,ellipsis:t,enterDelay:300,weight:l?Ju.normal:Ju.bold},o)),s&&ed(s)&&v.createElement("div",{className:ir.suffixWrapper},v.createElement(II,{ellipsis:t,dataHook:ji.SUFFIX,size:"tiny",onClick:a,className:ir.suffix},s)),s&&!ed(s)&&v.createElement("div",{"data-hook":ji.SUFFIX,className:ir.suffixWrapper,onClick:a},s))};Qb.displayName="ListItemSection";const ls=({id:e,className:t,dataHook:r,type:n,title:o,suffix:s,ellipsis:a})=>({id:e,overrideOptionStyle:!0,disabled:!0,prefix:void 0,label:void 0,value:i=>v.createElement(Qb,{className:t,dataHook:r,type:n,title:o,suffix:s,ellipsis:a,...i})}),Cs=e=>{const t=b.useRef();return t.current===void 0&&(t.current=ln(e)),t.current};var ey="wds_1_319_0_defaultscrollbar";se.bind(null,ey);ae.bind(null,ey);var ty="wds_1_319_0_Box",OI=se.bind(null,ty);ae.bind(null,ty);var RI=OI,TI={root:"wds_1_319_0_Box__root"},AI={gap:"--wds_1_319_0_Box-gap"},ry="wds_1_319_0_colorsjs";se.bind(null,ry);ae.bind(null,ry);var kI
vendor: 9,667 bytes, line 35
35={D10:"var(--wds-color-black-100, var(--wsr-color-D10, #000624))",D20:"var(--wds-color-black-200, var(--wsr-color-D20, #333853))",D30:"var(--wds-color-black-300, var(--wsr-color-D30, #595D70))",D40:"var(--wds-color-black-400, var(--wsr-color-D40, #868AA5))",D50:"var(--wds-color-black-500, var(--wsr-color-D50, #ACAFC4))",D55:"var(--wds-color-black-550, var(--wsr-color-D55, #CFD1DC))",D60:"var(--wds-color-black-600, var(--wsr-color-D60, #DFE5EB))",D70:"var(--wds-color-black-700, var(--wsr-color-D70, #ECEFF3))",D75:"var(--wds-color-black-750, var(--wsr-color-D75, #F7F8F8))",D80:"var(--wds-color-white, var(--wsr-color-D80, #FFFFFF))",B00:"var(--wds-color-blue-0, var(--wsr-color-B00, #084EBD))",B05:"var(--wds-color-blue-50, var(--wsr-color-B05, #0F62E6))",B10:"var(--wds-color-blue-100, var(--wsr-color-B10, #116DFF))",B20:"var(--wds-color-blue-200, var(--wsr-color-B20, #5999FF))",B30:"var(--wds-color-blue-300, var(--wsr-color-B30, #A8CAFF))",B40:"var(--wds-color-blue-400, var(--wsr-color-B40, #D6E6FE))",B50:"var(--wds-color-blue-500, var(--wsr-color-B50, #E7F0FF))",B60:"var(--wds-color-blue-600, var(--wsr-color-B60, #F4F7FF))",R00:"var(--wds-color-red-0, var(--wsr-color-R00, #B81206))",R05:"var(--wds-color-red-50, var(--wsr-color-R05, #D0180B))",R10:"var(--wds-color-red-100, var(--wsr-color-R10, #E62214))",R20:"var(--wds-color-red-200, var(--wsr-color-R20, #FF6D63))",R30:"var(--wds-color-red-300, var(--wsr-color-R30, #F69891))",R40:"var(--wds-color-red-400, var(--wsr-color-R40, #FBD0CD))",R50:"var(--wds-color-red-500, var(--wsr-color-R50, #FDE3E1))",R60:"var(--wds-color-red-600, var(--wsr-color-R60, #FDECEB))",P00:"var(--wds-color-purple-0, var(--wsr-color-P00, #7416A5))",P05:"var(--wds-color-purple-50, var(--wsr-color-P05, #8E1DD1))",P10:"var(--wds-color-purple-100, var(--wsr-color-P10, #9A27D5))",P20:"var(--wds-color-purple-200, var(--wsr-color-P20, #C161F0))",P30:"var(--wds-color-purple-300, var(--wsr-color-P30, #CF8CF1))",P40:"var(--wds-color-purple-400, var(--wsr-color-P40, #E3C3F4))",P50:"var(--wds-color-purple-500, var(--wsr-color-P50, #F1E0F9))",P60:"var(--wds-color-purple-600, var(--wsr-color-P60, #F7EDFC))",G00:"var(--wds-color-green-0, var(--wsr-color-G00, #1D8649))",G05:"var(--wds-color-green-50, var(--wsr-color-G05, #229954))",G10:"var(--wds-color-green-100, var(--wsr-color-G10, #25A55A))",G20:"var(--wds-color-green-200, var(--wsr-color-G20, #51B77B))",G30:"var(--wds-color-green-300, var(--wsr-color-G30, #87CEA5))",G40:"var(--wds-color-green-400, var(--wsr-color-G40, #C8E8D6))",G50:"var(--wds-color-green-500, var(--wsr-color-G50, #E1F4EB))",G60:"var(--wds-color-green-600, var(--wsr-color-G60, #E9F6EE))",Y00:"var(--wds-color-yellow-0, var(--wsr-color-Y00, #D59900))",Y05:"var(--wds-color-yellow-50, var(--wsr-color-Y05, #E7A600))",Y10:"var(--wds-color-yellow-100, var(--wsr-color-Y10, #FFB700))",Y20:"var(--wds-color-yellow-200, var(--wsr-color-Y20, #FFC23D))",Y30:"var(--wds-color-yellow-300, var(--wsr-color-Y30, #FFD16E))",Y40:"var(--wds-color-yellow-400, var(--wsr-color-Y40, #FFE2A5))",Y50:"var(--wds-color-yellow-500, var(--wsr-color-Y50, #FFF0D1))",Y60:"var(--wds-color-yellow-600, var(--wsr-color-Y60, #FFF6E5))",O00:"var(--wds-color-orange-0, var(--wsr-color-O00, #DF4D00))",O05:"var(--wds-color-orange-50, var(--wsr-color-O05, #F05300))",O10:"var(--wds-color-orange-100, var(--wsr-color-O10, #FE620F))",O20:"var(--wds-color-orange-200, var(--wsr-color-O20, #FF7D38))",O30:"var(--wds-color-orange-300, var(--wsr-color-O30, #FCBD9C))",O40:"var(--wds-color-orange-400, var(--wsr-color-O40, #FDDBC8))",O50:"var(--wds-color-orange-500, var(--wsr-color-O50, #FEE5D7))",O60:"var(--wds-color-orange-600, var(--wsr-color-O60, #FEEFE6))",F00:"var(--wds-color-blue-300, var(--wsr-color-F00, #A6D0FF))",A1:"var(--wsr-color-A1, #1684EA)",A2:"var(--wsr-color-A2, #17B0E2)",A3:"var(--wsr-color-A3, #6544F9)",A4:"var(--wsr-color-A4, #3D9FA1)",A5:"var(--wsr-color-A5, #D04091)",A6:"var(--wsr-color-A6, #FDB10C)",B1:"var(--wsr-color-B1, #FF66C5)",B2:"var(--wsr-color-B2, #FF9F41)",B3:"var(--wsr-color-B3, #F9677A)",B4:"var(--wsr-color-B4, #1550AC)",C1:"var(--wsr-color-C1, #54CE91)",C2:"var(--wsr-color-C2, #1989E5)",C3:"var(--wsr-color-C3, #64B4F6)",C4:"var(--wsr-color-C4, #FF9290)","D10-03":"color-mix(in srgb, var(--wds-color-black-100, var(--wsr-color-D10, #000624)) 3%, transparent)","D10-05":"var(--wds-color-black-100-transparent-5, var(--wsr-color-D10-05, rgba(0, 6, 36, 0.05)))","D10-06":"color-mix(in srgb, var(--wds-color-black-100, var(--wsr-color-D10, #000624)) 6%, transparent)","D10-10":"var(--wds-color-black-100-transparent-10, var(--wsr-color-D10-10, rgba(0, 6, 36, 0.10)))","D10-12":"color-mix(in srgb, var(--wds-color-black-100, var(--wsr-color-D10, #000624)) 12%, transparent)","D10-18":"color-mix(in srgb, var(--wds-color-black-100, var(--wsr-color-D10, #000624)) 18%, transparent)","D10-20":"var(--wds-color-black-100-transparent-20, var(--wsr-color-D10-20, rgba(0, 6, 36, 0.20)))","D10-24":"color-mix(in srgb, var(--wds-color-black-100, var(--wsr-color-D10, #000624)) 24%, transparent)","D10-30":"var(--wds-color-black-100-transparent-30, var(--wsr-color-D10-30, rgba(0, 6, 36, 0.30)))","D10-36":"color-mix(in srgb, var(--wds-color-black-100, var(--wsr-color-D10, #000624)) 36%, transparent)","D10-42":"color-mix(in srgb, var(--wds-color-black-100, var(--wsr-color-D10, #000624)) 42%, transparent)","D10-66":"color-mix(in srgb, var(--wds-color-black-100, var(--wsr-color-D10, #000624)) 66%, transparent)","D10-90":"color-mix(in srgb, var(--wds-color-black-100, var(--wsr-color-D10, #000624)) 90%, transparent)","D10-96":"color-mix(in srgb, var(--wds-color-black-100, var(--wsr-color-D10, #000624)) 96%, transparent)","D20-48":"color-mix(in srgb, var(--wds-color-black-200, var(--wsr-color-D20, #333853)) 48%, transparent)","D20-54":"color-mix(in srgb, var(--wds-color-black-200, var(--wsr-color-D20, #333853)) 54%, transparent)","D20-60":"var(--wds-color-black-200-transparent-60, var(--wsr-color-D20-60, rgba(51, 56, 83, 0.60)))","D20-72":"color-mix(in srgb, var(--wds-color-black-200, var(--wsr-color-D20, #333853)) 72%, transparent)","D40-20":"var(--wds-color-black-300-transparent-20, var(--wsr-color-D40-20, rgba(134, 138, 165, 0.20)))","D80-10":"var(--wds-color-white-transparent-10, var(--wsr-color-D80-10, rgba(255, 255, 255, 0.10)))","D80-20":"var(--wds-color-white-transparent-20, var(--wsr-color-D80-20, rgba(255, 255, 255, 0.20)))","D80-30":"var(--wds-color-white-transparent-30, var(--wsr-color-D80-30, rgba(255, 255, 255, 0.30)))","D80-48":"color-mix(in srgb, var(--wds-color-white, var(--wsr-color-D80, #FFFFFF)) 48%, transparent)","D80-60":"color-mix(in srgb, var(--wds-color-white, var(--wsr-color-D80, #FFFFFF)) 60%, transparent)","D80-70":"var(--wds-color-white-transparent-70, var(--wsr-color-D80-70, rgba(255, 255, 255, 0.70)))","B00-24":"color-mix(in srgb, var(--wds-color-blue-0, var(--wsr-color-B00, #084EBD)) 24%, transparent)","B00-42":"color-mix(in srgb, var(--wds-color-blue-0, var(--wsr-color-B00, #084EBD)) 42%, transparent)","B00-48":"color-mix(in srgb, var(--wds-color-blue-0, var(--wsr-color-B00, #084EBD)) 48%, transparent)","D10-00":"var(--wds-color-black-100-transparent-0, var(--wsr-color-D10-00, rgba(22, 45, 61, 0.00)))","D10-54":"color-mix(in srgb, var(--wds-color-black-100, var(--wsr-color-D10, #000624)) 54%, transparent)","D80-00":"var(--wds-color-white-transparent-0, var(--wsr-color-D80-00, rgba(255, 255, 255, 0)))","D80-42":"color-mix(in srgb, var(--wds-color-white, var(--wsr-color-D80, #FFFFFF)) 42%, transparent)","D80-50":"var(--wds-color-white-transparent-50, var(--wsr-color-D80-50, rgba(255, 255, 255, 0.50)))","D80-66":"color-mix(in srgb, var(--wds-color-white, var(--wsr-color-D80, #FFFFFF)) 66%, transparent)","D80-96":"color-mix(in srgb, var(--wds-color-white, var(--wsr-color-D80, #FFFFFF)) 96%, transparent)","D80-97":"color-mix(in srgb, var(--wds-color-white, var(--wsr-color-D80, #FFFFFF)) 97%, transparent)","B00-60":"color-mix(in srgb, var(--wds-color-blue-0, var(--wsr-color-B00, #084EBD)) 60%, transparent)","B10-18":"color-mix(in srgb, var(--wds-color-blue-100, var(--wsr-color-B10, #116DFF)) 18%, transparent)","THEME-COLOR-00":"var(--wds-color-blue-0, var(--wsr-color-B00, #084EBD))","THEME-COLOR-05":"var(--wds-color-blue-50, var(--wsr-color-B05, #0F62E6))","THEME-COLOR-10":"var(--wds-color-blue-100, var(--wsr-color-B10, #116DFF))","THEME-COLOR-20":"var(--wds-color-blue-200, var(--wsr-color-B20, #5999FF))","THEME-COLOR-30":"var(--wds-color-blue-300, var(--wsr-color-B30, #A8CAFF))","THEME-COLOR-40":"var(--wds-color-blue-400, var(--wsr-color-B40, #D6E6FE))","THEME-COLOR-50":"var(--wds-color-blue-500, var(--wsr-color-B50, #E7F0FF))","THEME-COLOR-60":"var(--wds-color-blue-600, var(--wsr-color-B60, #F4F7FF))","THEME-TEXT-COLOR-PRIMARY":"var(--wds-color-black-100, var(--wsr-color-D10, #000624))","THEME-TEXT-COLOR-PRIMARY-LIGHT":"var(--wds-color-white, var(--wsr-color-D80, #FFFFFF))","THEME-TEXT-COLOR-SECONDARY":"var(--wds-color-black-200, var(--wsr-color-D20, #333853))","THEME-TEXT-COLOR-SECONDARY-LIGHT":"var(--wds-color-black-400, var(--wsr-color-D40, #868AA5))","THEME-DIVIDER-COLOR":"var(--wds-color-black-600, var(--wsr-color-D60, #DFE5EB))","Gradient-AI01":"var(--wds-color-fill-ai-primary, linear-gradient(60deg, #0021FF -31%, #116DFF 65%, #5FF2AE 96%))","Gradient-AI02":"var(--wds-color-fill-ai-primary-hover, linear-gradient(60deg, #0021FF -177%, #116DFF 32%, #5FF2AE 96%))","SECTION-HEADER-COLOR-BG":"var(--wds-section-header-fill-neutral, var(--wsr-section-header-color-bg, #f7f8f8))","SECTION-HEADER-COLOR-BORDER":"var(--wds-color-border-dark-secondary, var(--wsr-section-header-color-border, #dfe5eb))"}
35,ny="wds_1_319_0_spacing";se.bind(null,ny);ae.bind(null,ny);var yr={spacing01:"1px",spacing02:"2px",spacing03:"3px",spacing06:"6px",spacing12:"12px",spacing18:"18px",spacing24:"24px",spacing30:"30px",spacing36:"36px",spacing42:"42px",spacing48:"48px",spacing78:"78px",spacing90:"90px",DefaultSpacing:"6px",Spacing:"var(--wds-space-100, 6px)",SP1:"calc(var(--wds-space-100, 6px) * 1)",SP2:"calc(var(--wds-space-100, 6px) * 2)",SP3:"calc(var(--wds-space-100, 6px) * 3)",SP4:"calc(var(--wds-space-100, 6px) * 4)",SP5:"calc(var(--wds-space-100, 6px) * 5)",SP6:"calc(var(--wds-space-100, 6px) * 6)",SP7:"calc(var(--wds-space-100, 6px) * 7)",SP8:"calc(var(--wds-space-100, 6px) * 8)",SP9:"calc(var(--wds-space-100, 6px) * 9)",SP10:"calc(var(--wds-space-100, 6px) * 10)"};const PI={horizontal:"horizontal"},oy={tiny:yr.SP1,small:yr.SP2,medium:yr.SP3,large:yr.SP4},sy=e=>e==null?void 0:e.toString().split(" ").map(NI).join(" ");function DI(e){return e in oy}const NI=e=>{if(isFinite(Number(e)))return`calc(${Number(e)} * ${yr.Spacing})`;if(typeof e=="string"){if(e in yr)return yr[e];if(DI(e))return oy[e]}return`${e}`},LI=e=>Object.fromEntries(Object.entries(e).map(([t,r])=>[t,sy(r)])),$I=e=>{if(e!==void 0)return isFinite(Number(e))?`${e}px`:`${e}`},MI=e=>Object.fromEntries(Object.entries(e).map(([t,r])=>[t,$I(r)])),FI=e=>{const t={};for(const r in e){const n=e[r];n&&(t[r]=kI[n]||n)}return t},Pr=b.forwardRef(({inline:e=!1,direction:t=PI.horizontal,children:r,className:n,align:o,verticalAlign:s,dataHook:a,gap:i,padding:l,paddingTop:c,paddingRight:u,paddingBottom:d,paddingLeft:p,margin:f,marginTop:h,marginRight:m,marginBottom:g,marginLeft:y,minWidth:_,maxWidth:w,width:E,minHeight:C,maxHeight:S,height:x,color:P,backgroundColor:D,border:L,borderColor:O,borderTopColor:A,borderRightColor:T,borderBottomColor:R,borderLeftColor:N,style:W,role:q,ariaLabel:H,"data-hook":I,...k},$)=>{b.useEffect(()=>{},[I]);const G=RI(TI.root,{inline:e,direction:t,alignItems:o,justifyContent:s},n),Z={...W,...LI({padding:l,paddingTop:c,paddingRight:u,paddingBottom:d,paddingLeft:p,margin:f,marginTop:h,marginRight:m,marginBottom:g,marginLeft:y}),...MI({minWidth:_,maxWidth:w,width:E,minHeight:C,maxHeight:S,height:x}),border:L,...FI({color:P,backgroundColor:D,borderColor:O,borderTopColor:A,borderRightColor:T,borderBottomColor:R,borderLeftColor:N}),[AI.gap]:sy(i)||0,...k},K=is(Z,(J,M)=>typeof M<"u"),X=q&&["button","link"].includes(q)?0:void 0;return v.createElement("div",{"aria-label":H,role:q,tabIndex:X,"data-hook":a,className:G,style:K,ref:$},r)});Pr.displayName="Box";var ay="wds_1_319_0_Checkbox",BI=se.bind(null,ay);ae.bind(null,ay);var am=BI,lr={root:"wds_1_319_0_Checkbox__root",label:"wds_1_319_0_Checkbox__label",labelInner:"wds_1_319_0_Checkbox__labelInner",children:"wds_1_319_0_Checkbox__children",checkbox:"wds_1_319_0_Checkbox__checkbox",inner:"wds_1_319_0_Checkbox__inner",outer:"wds_1_319_0_Checkbox__outer"};const Ft=()=>Math.floor((1+Math.random())*65536).toString(16).substring(1),HI=()=>Ft()+Ft()+"-"+Ft()+"-"+Ft()+"-"+Ft()+"-"+Ft()+Ft()+Ft(),Ui={CHECKED:"checked",UNCHECKED:"unchecked",INDETERMINATE:"indeterminate"},qI="data-check-type",jI="data-has-error",UI="data-disabled",Wn={input:"checkbox-input",label:"checkbox-label",boxTooltip:"checkbox-box-tooltip",box:"checkbox-box",children:"checkbox-children"},WI={MEDIUM:"medium"},VI={NONE:"none"},zI={CENTER:"center"},KI={FILLED:"filled"},GI={inputContainer:"checkbox__input-container"};var iy="wds_1_319_0_visuallyHidden";se.bind(null,iy);ae.bind(null,iy);var YI={visuallyHidden:"wds_1_319_0_visuallyHidden__visuallyHidden"};class Ro extends b.PureComponent{constructor(t){super(t),this._id=`${Ro.displayName}-${HI()}`,this.checkboxRef=v.createRef(),this.inputRef=v.createRef(),this.focus=()=>{this.inputRef.current&&this.inputRef.current.focus()},this._handleChange=r=>{var n,o;(o=(n=this.props).onChange)==null||o.call(n,r)},this._getDataAttributes=()=>{const{checked:r,indeterminate:n,disabled:o,hasError:s}=this.props;return{[qI]:n?Ui.INDETERMINATE:r?Ui.CHECKED:Ui.UNCHECKED,[jI]:s&&!o,[UI]:o}},typeof t.errorMessage<"u"}render(){const{id:t=this._id,checked:r,indeterminate:n,disabled:o,required:s,hasError:a,errorMessage:i,onChange:l,selectionArea:c,vAlign:u,size:d,children:p,dataHook:f,focusableOnFocus:h,focusableOnBlur:m,className:g,tooltipProps:y,tooltipContent:_,selectionAreaSkin:w,selectionAreaPadding:E,ellipsis:C,maxLines:S}=this.props,x=y&&y.disabled||o||!_&&(!a||!i);return v.createElement("div",{"data-hook":f,className:am(lr.root,{vAlign:u,selectionArea:c,selectionAreaSkin:w,disabled:o,size:d,error:a&&!o,selection:n?"indeterminate":r?"checked":"unchecked",indeterminate:n,ellipsis:C},g),...this._getDataAttributes()},v.createElement("input",{ref:this.inputRef,className:YI.visuallyHidden,"data-hook":Wn.input,type:"checkbox",id:t,checked:r,disabled:o,required:s,"aria-checked":n?"mixed":r,onChange:l,onFocus:h,onBlur:m}),v.createElement("label",{htmlFor:t,"data-hook":Wn.label,className:lr.label,onClick:P=>P.stopPropagation()},v.createElement("div",{className:lr.labelInner,style:{padding:E}},v.createElement(Ne,{dataHook:Wn.boxTooltip,disabled:x,content:_||i||" ",textAlign:"center",maxWidth:230,exitDelay:150,zIndex:kn.
35checkbox,...y},v.createElement("div",{className:lr.outer},v.createElement("div",{"data-hook":Wn.box,className:am(lr.checkbox,GI.inputContainer)},v.createElement("div",{className:lr.inner},n?v.createElement(eC,null):v.createElement(w0,null))))),p&&v.createElement(pe,{size:d,weight:"thin",dataHook:Wn.children,className:lr.children,ellipsis:C,maxLines:S},p))))}}Ro.displayName="Checkbox";Ro.defaultProps={checked:!1,size:WI.MEDIUM,selectionArea:VI.NONE,vAlign:zI.CENTER,onChange:e=>e.stopPropagation(),hasError:!1,disabled:!1,indeterminate:!1,selectionAreaSkin:KI.FILLED};const XI=Pn(Ro);var Wi,im;function ZI(){if(im)return Wi;im=1;var e=Ad(),t=/[\\^$.*+?()[\]{}|]/g,r=RegExp(t.source);function n(o){return o=e(o),o&&r.test(o)?o.replace(t,"\\$&"):o}return Wi=n,Wi}var JI=ZI();const QI=Pe(JI);var ly="wds_1_319_0_Highlighter",e5=se.bind(null,ly);ae.bind(null,ly);var t5=e5,r5={root:"wds_1_319_0_Highlighter__root"};class n5 extends b.PureComponent{renderElement(){const{children:t,match:r}=this.props;if(r&&typeof t=="string"){const n=this.getMatchRegExp();return this.highlightChildren(t,n)}return t}getMatchRegExp(){const{match:t,caseSensitive:r}=this.props;return new RegExp(QI(t),r?"":"i")}getMatchBoundaries(t,r){const n=r.exec(t);if(n)return{first:n.index,last:n.index+n[0].length}}getMatchReactKey(t){return`match-index-${t}`}highlightChildren(t,r){const n=[];let o=0;for(;t;){if(!r.test(t))return n.push(this.renderPlain(t,this.getMatchReactKey(o++))),n;const s=this.getMatchBoundaries(t,r);if(!s)break;const a=t.slice(0,s.first);a&&n.push(this.renderPlain(a,this.getMatchReactKey(o++)));const i=t.slice(s.first,s.last);i&&n.push(this.renderHighlight(i,this.getMatchReactKey(o++))),t=t.slice(s.last)}return n}renderPlain(t,r){return b.createElement("span",{key:r},t)}renderHighlight(t,r){const{emphasize:n="text"}=this.props;return n==="background"?b.createElement("span",{key:r,className:t5(r5.root,{emphasize:n})},t):b.createElement("strong",{key:r},t)}render(){const{dataHook:t}=this.props;return b.createElement("span",{"data-hook":t},this.renderElement())}}const o5=()=>{let e=0;return()=>`highlighted-child-${e++}`},tn={STRING:"string",ARRAY:"array",REACT_ELEMENT:"React_element"},s5=e=>Array.isArray(e)?tn.ARRAY:b.isValidElement(e)?tn.REACT_ELEMENT:typeof e=="string"?tn.STRING:"",td=(e,t,r,n)=>{if(!e)return null;const o=s5(e),s={[tn.STRING]:(a,i)=>b.createElement(n5,{key:r(),match:i,emphasize:n.emphasize},a),[tn.REACT_ELEMENT]:a=>a.props.children?b.cloneElement(a,{...a.props,key:r()},td(a.props.children,t,r,n)):a,[tn.ARRAY]:a=>a.map(i=>td(i,t,r,n))};return s[o]?s[o](e,t):e};class cy extends b.PureComponent{constructor(t){super(t),this.nextChildKey=o5()}render(){const{dataHook:t,children:r,match:n}=this.props;return b.createElement("span",{"data-hook":t},td(r,n,this.nextChildKey,this.props))}}cy.displayName="Highlighter";const uy=b.createContext({highlight:!1,match:""}),jr={CHECKBOX:"list-item-select-checkbox",PREFIX:"list-item-select-prefix",SUFFIX:"list-item-select-suffix",TITLE:"list-item-select-title",SUBTITLE:"list-item-select-subtitle",TOOLTIP:"list-item-select-disabled-tooltip"},lm={small:"small",medium:"medium"};var dy="wds_1_319_0_WixDesignSystemProvider";se.bind(null,dy);ae.bind(null,dy);var a5={mobile:"wds_1_319_0_WixDesignSystemProvider__mobile"},fy="wds_1_319_0_breakpoints";se.bind(null,fy);ae.bind(null,fy);var py="wds_1_319_0_ListItemSelect",i5=se.bind(null,py);ae.bind(null,py);var Vi=i5,bt={root:"wds_1_319_0_ListItemSelect__root",fullWidthContent:"wds_1_319_0_ListItemSelect__fullWidthContent",textsWrapper:"wds_1_319_0_ListItemSelect__textsWrapper",titleWrapper:"wds_1_319_0_ListItemSelect__titleWrapper",title:"wds_1_319_0_ListItemSelect__title",titleOverrideWrapper:"wds_1_319_0_ListItemSelect__titleOverrideWrapper",subtitleOverrideWrapper:"wds_1_319_0_ListItemSelect__subtitleOverrideWrapper",subtitle:"wds_1_319_0_ListItemSelect__subtitle",prefix:"wds_1_319_0_ListItemSelect__prefix",suffix:"wds_1_319_0_ListItemSelect__suffix"};const l5={container:"list-item-select__container"},hy=({checkbox:e=!1,selected:t=!1,highlighted:r,ellipsis:n=!1,size:o=lm.medium,dataHook:s="list-item-select",className:a,disabled:i,disabledDescription:l,disabledDescriptionTooltipProps:c,onClick:u,prefix:d,suffix:p,title:f,subtitle:h,tooltipProps:m,titleMaxLines:g,subtitleMaxLines:y})=>{const{highlight:_,match:w}=b.useContext(uy),E=e?XI:v.Fragment,C=_?cy:v.Fragment,S=e?{dataHook:jr.CHECKBOX,className:bt.fullWidthContent,size:o,checked:t,disabled:i}:{},x=_?{match:w}:{},P={tagName:"div",size:o,ellipsis:n,tooltipProps:m,skin:i?"disabled":"standard",weight:"thin",light:t&&!e,maxLines:g},D={...P,light:!i,secondary:!t||e,maxLines:y},L=i&&!!l,O=Cs("list-item-select-description");function A(){return v.createElement("div",{className:Vi(bt.root,{checkbox:e,selected:t,highlighted:r,disabled:i,size:o,hoverHighlightDisabled:r===!1,withPrefix:!!d},a,l5.container),"data-hook":s,"data-selected":t,"aria-disabled":i,"aria-selected":t,onClick:i?void 0:u},v.createElement(E,{...S},v.createElement(Pr,{width:"100%",verticalAlign:"middle",className:bt.textsWrapper},d&&v.createElement(pe,{className:Vi(bt.prefix,{subtitle:!!h}),dataHook:jr.PREFIX,...P,ellipsis:!1},d),v.createElement("div",{className:Vi(bt.titleWrapper,{subtitle:!!h})},v.createElement("div",{className:bt.titleOverrideWrapper},v.createElement(C,{...x},v.createElement(pe,{className:bt.title,dataHook:jr.TITLE,...P},f))),h&&v.createElement("div",{className:bt.subtitleOverrideWrapper},v.createElement(pe,{className:bt.subtitle,dataHook:jr.SUBTITLE,secondary:!0,...D,size:lm.small},h))),p&&v.createElement(pe,{dataHook:jr.SUFFIX,className:bt.suffix,...D},p))),L&&v.createElement("span",{id:O,hidden:!0},l))}return L?v.createElement(Ne,{...c,dataHook:jr.TOOLTIP,disabled:!1,content:l,enterDelay:450,"aria-describedby":O},A()):A()};hy.displayName="ListItemSelect";const my=({id:e,className:t,checkbox:r,prefix:n,title:o,label:s,subtitle:a,suffix:i,disabled:l,disabledDescription:c,disabledDescriptionTooltipProps:u,size:d,ellipsis:p,dataHook:f,tooltipProps:h,titleMaxLines:m,subtitleMaxLines:g})=>({id:e,disabled:l,overrideOptionStyle:!0,label:s||o,prefix:n,value:({selected:y,hovered:_,size:w,...E})=>v.createElement(hy,{dataHook:f,className:t,checkbox:r,prefix:n,title:o,subtitle:a,suffix:i,size:d??w,ellipsis:p,disabledDescription:c,disabledDescriptionTooltipProps:u,selected:y,highlighted:_,tooltipProps:h,titleMaxLines:m,subtitleMaxLines:g,...E})}),rr=e=>c5(e)?e.document:u5(e)?e:(e==null?void 0:e.ownerDocument)??(typeof document<"u"?document:void 0),xs=e=>{let t=rr(e);return(t==null?void 0:t.defaultView)??(typeof window<"u"?window:void 0)};function vy(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function c5(e){return typeof e=="object"&&e!=null&&"window"in e&&e.window===e}function u5(e){return vy(e)&&e.nodeType===9}function d5(e){return vy(e)&&e.nodeType===11&&"host"in e}let f5=!1;function Yd(){return f5}function Ho(e,t){var n;if(!Yd())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let r=t;for(;r!==null;){if(r===e)return!0;typeof r.assignedElements!="function"&&((n=r.assignedSlot)!=null&&n.parentNode)?r=r.assignedSlot.parentNode:d5(r)?r=r.host:r=r.parentNode}return!1}const fn=(e=document)=>{var r;if(!Yd())return e.activeElement;let t=e.activeElement;for(;t&&"shadowRoot"in t&&((r=t.shadowRoot)!=null&&r.activeElement);)t=t.shadowRoot.activeElement;return t};function et(e){if(Yd()&&e.target instanceof Element&&e.target.shadowRoot){if("composedPath"in e)return e.composedPath()[0]??null;if("composedPath"in e.nativeEvent)return e.nativeEvent.composedPath()[0]??null}return e.target}function p5(e){if(h5())e.focus({preventScroll:!0});else{let t=m5(e);e.focus(),v5(t)}}let qo=null;function h5(){if(qo==null){qo=!1;try{document.createElement("div").focus({get preventScroll(){return qo=!0,!0}})}catch{}}return qo}function m5(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function v5(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}const g5=typeof document<"u"?v.useLayoutEffect:()=>{};function gy(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function b5(e,t){Object.defineProperty(e,"target",{value:t}
35),Object.defineProperty(e,"currentTarget",{value:t})}function by(e){let t=b.useRef({isFocused:!1,observer:null});return g5(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]),b.useCallback(r=>{let n=et(r);if(n instanceof HTMLButtonElement||n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement||n instanceof HTMLSelectElement){t.current.isFocused=!0;let o=n,s=a=>{if(t.current.isFocused=!1,o.disabled){let i=gy(a);e==null||e(i)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",s,{once:!0}),t.current.observer=new MutationObserver(()=>{var a;if(t.current.isFocused&&o.disabled){(a=t.current.observer)==null||a.disconnect();let i=o===fn()?null:fn();o.dispatchEvent(new FocusEvent("blur",{relatedTarget:i})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:i}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let y5=!1;function Is(e){var r;if(typeof window>"u"||window.navigator==null)return!1;let t=(r=window.navigator.userAgentData)==null?void 0:r.brands;return Array.isArray(t)&&t.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function Xd(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)==null?void 0:t.platform)||window.navigator.platform):!1}function nr(e){let t=null;return()=>(t==null&&(t=e()),t)}const cs=nr(function(){return Xd(/^Mac/i)}),_5=nr(function(){return Xd(/^iPhone/i)}),yy=nr(function(){return Xd(/^iPad/i)||cs()&&navigator.maxTouchPoints>1}),w5=nr(function(){return _5()||yy()}),cm=nr(function(){return Is(/AppleWebKit/i)&&(w5()||!E5())}),E5=nr(function(){return Is(/Chrome|CriOS|CrMo/i)}),C5=nr(function(){return Is(/Android/i)}),x5=nr(function(){return Is(/(Firefox|FxiOS)/i)});function I5(e){return e.pointerType===""&&e.isTrusted?!0:C5()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function io(e,t,r=!0){var l,c;let{metaKey:n,ctrlKey:o,altKey:s,shiftKey:a}=t;!cm()&&x5()&&((c=(l=window.event)==null?void 0:l.type)!=null&&c.startsWith("key"))&&e.target==="_blank"&&(cs()?n=!0:o=!0);let i=cm()&&cs()&&!yy()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:n,ctrlKey:o,altKey:s,shiftKey:a}):new MouseEvent("click",{metaKey:n,ctrlKey:o,altKey:s,shiftKey:a,detail:1,bubbles:!0,cancelable:!0});io.isOpening=r,p5(e),e.dispatchEvent(i),io.isOpening=!1}io.isOpening=!1;let To=null;const rd=new Set;let eo=new Map,Sr=!1,nd=!1;const S5={Tab:!0,Escape:!0};function Zd(e,t){for(let r of rd)r(e,t)}function O5(e){return!(e.metaKey||!cs()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function us(e){Sr=!0,!io.isOpening&&O5(e)&&(To="keyboard",Zd("keyboard",e))}function rn(e){To="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(Sr=!0,Zd("pointer",e))}function _y(e){!io.isOpening&&I5(e)&&(Sr=!0,To="virtual")}function wy(e){let t=xs(et(e)),r=rr(et(e));et(e)===t||et(e)===r||y5||!e.isTrusted||(!Sr&&!nd&&(To="virtual",Zd("virtual",e)),Sr=!1,nd=!1)}function Ey(){Sr=!1,nd=!0}function od(e){if(typeof window>"u"||typeof document>"u")return;const t=xs(e),r=rr(e);if(eo.get(t))return;let n=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){Sr=!0,n.apply(this,arguments)}}),r.addEventListener("keydown",us,!0),r.addEventListener("keyup",us,!0),r.addEventListener("click",_y,!0),t.addEventListener("focus",wy,!0),t.addEventListener("blur",Ey,!1),typeof PointerEvent<"u"&&(r.addEventListener("pointerdown",rn,!0),r.addEventListener("pointermove",rn,!0),r.addEventListener("pointerup",rn,!0)),t.addEventListener("beforeunload",()=>{Cy(e)},{once:!0}),eo.set(t,{focus:n})}const Cy=(e,t)=>{const r=xs(e),n=rr(e);t&&n.removeEventListener("DOMContentLoaded",t),eo.has(r)&&(Reflect.defineProperty(r.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:eo.get(r).focus}),n.removeEventListener("keydown",us,!0),n.removeEventListener("keyup",us,!0),n.removeEventListener("click",_y,!0),r.removeEventListener("focus",wy,!0),r.removeEventListener("blur",Ey,!1),typeof PointerEvent<"u"&&(n.removeEventListener("pointerdown",rn,!0),n.removeEventListener("pointermove",rn,!0),n.removeEventListener("pointerup",rn,!0)),eo.delete(r))};function R5(e){const t=rr(e);let r;return t.readyState!=="loading"?od(e):(r=()=>{od(e)},t.addEventListener("DOMContentLoaded",r)),()=>Cy(e,r)}typeof document<"u"&&R5();function sd(){return To!=="pointer"}const T5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function A5(e,t,r){let n=r?et(r):void 0,o=rr(n),s=xs(n);const a=typeof s<"u"?s.HTMLInputElement:HTMLInputElement,i=typeof s<"u"?s.HTMLTextAreaElement:HTMLTextAreaElement,l=typeof s<"u"?s.HTMLElement:HTMLElement,c=typeof s<"u"?s.KeyboardEvent:KeyboardEvent;let u=fn(o);return e=e||u instanceof a&&!T5.has(u.type)||u instanceof i||u instanceof l&&u.isContentEditable,!(e&&t==="keyboard"&&r instanceof c&&!S5[r.key])}function k5(e,t,r){od(),b.useEffect(()=>{if((r==null?void 0:r.enabled)===!1)return;let n=(o,s)=>{A5(!!(r!=null&&r.isTextInput),o,s)&&e(sd())};return rd.add(n),()=>{rd.delete(n)}},t)}function P5(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e;const s=b.useCallback(l=>{if(et(l)===l.currentTarget)return n&&n(l),o&&o(!1),!0},[n,o]),a=by(s),i=b.useCallback(l=>{let c=et(l);const u=rr(c),d=u?fn(u):fn();c===l.currentTarget&&c===d&&(r&&r(l),o&&o(!0),a(l))},[o,r,a]);return{focusProps:{onFocus:!t&&(r||o||n)?i:void 0,onBlur:!t&&(n||o)?s:void 0}}}function D5(){let e=b.useRef(new Map),t=b.useCallback((o,s,a,i)=>{let l=i!=null&&i.once?(...c)=>{e.current.delete(a),a(...c)}:a;e.current.set(a,{type:s,eventTarget:o,fn:l,options:i}),o.addEventListener(s,l,i)},[]),r=b.useCallback((o,s,a,i)=>{var c;let l=((c=e.current.get(a))==null?void 0:c.fn)||a;o.removeEventListener(s,l,i),e.current.delete(a)},[]),n=b.useCallback(()=>{e.current.forEach((o,s)=>{r(o.eventTarget,o.type,s,o.options)})},[r]);return b.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function N5(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,s=b.useRef({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:i}=D5(),l=b.useCallback(d=>{Ho(d.currentTarget,et(d))&&s.current.isFocusWithin&&!Ho(d.currentTarget,d.relatedTarget)&&(s.current.isFocusWithin=!1,i(),r&&r(d),o&&o(!1))},[r,o,s,i]),c=by(l),u=b.useCallback(d=>
35{if(!Ho(d.currentTarget,et(d)))return;let p=et(d);const f=rr(p),h=fn(f);if(!s.current.isFocusWithin&&h===p){n&&n(d),o&&o(!0),s.current.isFocusWithin=!0,c(d);let m=d.currentTarget;a(f,"focus",g=>{let y=et(g);if(s.current.isFocusWithin&&!Ho(m,y)){let _=new f.defaultView.FocusEvent("blur",{relatedTarget:y});b5(_,m);let w=gy(_);l(w)}},{capture:!0})}},[n,o,c,a,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:l}}}function L5(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=b.useRef({isFocused:!1,isFocusVisible:t||sd()}),[s,a]=b.useState(!1),[i,l]=b.useState(()=>o.current.isFocused&&o.current.isFocusVisible),c=b.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),u=b.useCallback(f=>{o.current.isFocused=f,o.current.isFocusVisible=sd(),a(f),c()},[c]);k5(f=>{o.current.isFocusVisible=f,c()},[r,s],{enabled:s,isTextInput:r});let{focusProps:d}=P5({isDisabled:n,onFocusChange:u}),{focusWithinProps:p}=N5({isDisabled:!n,onFocusWithinChange:u});return{isFocused:s,isFocusVisible:i,focusProps:n?p:d}}const Jd=()=>{const{isFocusVisible:e,focusProps:t}=L5();return{isFocusVisible:e,focusProps:t}};var xy="wds_1_319_0_ListItemAction",$5=se.bind(null,xy);ae.bind(null,xy);var pn=$5,ct={root:"wds_1_319_0_ListItemAction__root",prefixIcon:"wds_1_319_0_ListItemAction__prefixIcon",textBox:"wds_1_319_0_ListItemAction__textBox",text:"wds_1_319_0_ListItemAction__text",subtitle:"wds_1_319_0_ListItemAction__subtitle",textOverrides:"wds_1_319_0_ListItemAction__textOverrides",subtitleOverrides:"wds_1_319_0_ListItemAction__subtitleOverrides",suffixBox:"wds_1_319_0_ListItemAction__suffixBox",suffix:"wds_1_319_0_ListItemAction__suffix",suffixIcon:"wds_1_319_0_ListItemAction__suffixIcon"};const hn={title:"list-item-action-title",subtitle:"list-item-action-subtitle",prefixIcon:"list-item-action-prefix-icon",suffix:"list-item-action-suffix",suffixIcon:"list-item-action-suffix-icon",tooltip:"list-item-action-tooltip"},M5={medium:"medium"},F5={standard:"standard"},B5=({prefixIcon:e,size:t,subtitle:r})=>v.cloneElement(e,{size:t==="medium"?24:18,className:pn(ct.prefixIcon,{subtitle:!!r}),"data-hook":hn.prefixIcon}),H5=({suffix:e,size:t,ellipsis:r,disabled:n})=>v.createElement("div",{className:pn(ct.textOverrides,{size:t},ct.suffixBox)},v.createElement(pe,{className:ct.suffix,dataHook:hn.suffix,secondary:!0,size:t,light:!n,weight:"thin",skin:n?"disabled":"standard",ellipsis:r},e)),q5=({suffixIcon:e,size:t,subtitle:r})=>v.cloneElement(e,{size:t==="medium"?24:18,className:pn(ct.suffixIcon,{subtitle:!!r}),"data-hook":hn.suffixIcon}),j5=({title:e,subtitle:t,size:r,ellipsis:n,disabled:o,tooltipModifiers:s})=>v.createElement("div",{className:ct.textBox},v.createElement("div",{className:pn(ct.textOverrides,{size:r})},v.createElement(pe,{className:pn(ct.text),dataHook:hn.title,size:r,ellipsis:n,showTooltip:!o,weight:"thin",placement:"right",skin:o?"disabled":"standard",...s},e)),t&&v.createElement("div",{className:ct.subtitleOverrides},v.createElement(pe,{className:ct.subtitle,dataHook:hn.subtitle,secondary:!0,size:"small",ellipsis:n,showTooltip:!o,weight:"thin",placement:"right",skin:o?"disabled":"standard",light:!o},t))),Iy=b.forwardRef((e,t)=>{const{as:r="button",skin:n=F5.standard,size:o=M5.medium,highlighted:s,dataHook:a,disabled:i,prefixIcon:l,onClick:c,onMouseEnter:u,onMouseLeave:d,tabIndex:p,onKeyDown:f,autoFocus:h,className:m,subtitle:g,suffix:y,suffixIcon:_,disabledDescription:w,...E}=e,{selected:C,hovered:S,ellipsis:x,title:P,shouldFocusWithoutScroll:D,...L}=E,{isFocusVisible:O,focusProps:A}=Jd(),T=b.useRef(null),R=i&&!!w,N=Cs("list-item-action-description"),W=b.useCallback(()=>{var I;const H=D?{preventScroll:!0}:{};(I=T.current)==null||I.focus(H)},[D]);b.useImperativeHandle(t,()=>({focus:W}),[W]),b.useEffect(()=>{},[n]);function q(){return v.createElement(r,{"aria-disabled":i,...L,ref:T,className:pn(ct.root,{skin:n,disabled:i,highlighted:s,ellipsis:x,size:o,withPrefixIcon:!!l,withSuffixIcon:!!_,hoverHighlightDisabled:s===!1,"focus-visible":O},m),"data-skin":n,"data-disabled":i,tabIndex:p??0,autoFocus:h,type:r==="button"?"button":void 0,"data-hook":a,onKeyDown:i?void 0:f,onClick:i?void 0:c,onMouseEnter:i?void 0:u,onMouseLeave:i?void 0:d,...A},l&&v.createElement(B5,{prefixIcon:l,size:o,subtitle:g}),v.createElement(j5,{title:P,size:o,ellipsis:x,tooltipModifiers:L.tooltipModifiers,subtitle:g,disabled:i}),y&&v.createElement(H5,{suffix:y,size:o,ellipsis:x,disabled:i}),_&&v.createElement(q5,{suffixIcon:_,size:o,subtitle:g}),R&&v.createElement("span",{id:N,hidden:!0},w))}return R?v.createElement(Ne,{dataHook:hn.tooltip,disabled:!1,content:w,enterDelay:450,"aria-describedby":N},q()):q()});Iy.displayName="ListItemAction";const U5=({title:e,prefixIcon:t,onClick:r,onMouseEnter:n,onMouseLeave:o,id:s,disabled:a,skin:i,size:l,dataHook:c,as:u,tabIndex:d,autoFocus:p,className:f,ellipsis:h,subtitle:m,suffix:g,disabledDescription:y,..._})=>({id:s,disabled:a,overrideOptionStyle:!0,label:void 0,prefix:t,value:({hovered:w})=>
35v.createElement(Iy,{..._,ellipsis:h,className:f,autoFocus:p,tabIndex:d,as:u,onClick:r,onMouseEnter:n,onMouseLeave:o,dataHook:c,title:e,prefixIcon:t,skin:i,size:l,highlighted:w,disabled:a,disabledDescription:y,subtitle:m,suffix:g})});/*! 36 * OverlayScrollbars 37 * Version: 2.6.1 38 * 39 * Copyright (c) Rene Haas | KingSora. 40 * https://github.com/KingSora 41 * 42 * Released under the MIT license. 43 */const ut=(e,t)=>{const{o:r,u:n,_:o}=e;let s=r,a;const i=(u,d)=>{const p=s,f=u,h=d||(n?!n(p,f):p!==f);return(h||o)&&(s=f,a=p),[s,h,a]};return[t?u=>i(t(s,a),u):i,u=>[s,!!u,a]]},Qd=typeof window<"u",nt=Qd?window:{},es=Math.max,W5=Math.min,ad=Math.round,Sy=nt.cancelAnimationFrame,Oy=nt.requestAnimationFrame,id=nt.setTimeout,ld=nt.clearTimeout,Ss=e=>typeof nt[e]<"u"?nt[e]:void 0,V5=Ss("MutationObserver"),um=Ss("IntersectionObserver"),ds=Ss("ResizeObserver"),cd=Ss("ScrollTimeline"),Ry=Qd&&Node.ELEMENT_NODE,{toString:z5,hasOwnProperty:zi}=Object.prototype,K5=/^\[object (.+)\]$/,Ao=e=>e===void 0,Os=e=>e===null,G5=e=>Ao(e)||Os(e)?`${e}`:z5.call(e).replace(K5,"$1").toLowerCase(),xt=e=>typeof e=="number",Rs=e=>typeof e=="string",Ty=e=>typeof e=="boolean",It=e=>typeof e=="function",ht=e=>Array.isArray(e),lo=e=>typeof e=="object"&&!ht(e)&&!Os(e),Ts=e=>{const t=!!e&&e.length,r=xt(t)&&t>-1&&t%1==0;return ht(e)||!It(e)&&r?t>0&&lo(e)?t-1 in e:!0:!1},fs=e=>{if(!e||!lo(e)||G5(e)!=="object")return!1;let t;const r="constructor",n=e[r],o=n&&n.prototype,s=zi.call(e,r),a=o&&zi.call(o,"isPrototypeOf");if(n&&!s&&!a)return!1;for(t in e);return Ao(t)||zi.call(e,t)},to=e=>{const t=HTMLElement;return e?t?e instanceof t:e.nodeType===Ry:!1},As=e=>{const t=Element;return e?t?e instanceof t:e.nodeType===Ry:!1};function be(e,t){if(Ts(e))for(let r=0;r<e.length&&t(e[r],r,e)!==!1;r++);else e&&be(Object.keys(e),(r=>t(e[r],r,e)));return e}const ks=(e,t)=>e.indexOf(t)>=0,kt=(e,t)=>e.concat(t),we=(e,t,r)=>(!Rs(t)&&Ts(t)?Array.prototype.push.apply(e,t):e.push(t),e),Dr=e=>Array.from(e||[]),Ay=e=>ht(e)?e:[e],ud=e=>!!e&&!e.length,dm=e=>Dr(new Set(e)),ot=(e,t,r)=>{be(e,o=>o&&o.apply(void 0,t||[])),!r&&(e.length=0)},ky="paddingTop",Py="paddingRight",Dy="paddingLeft",Ny="paddingBottom",Ly="marginLeft",$y="marginRight",My="marginBottom",Ps="overflowX",Ds="overflowY",mn="width",vn="height",gn="hidden",Fy="visible",ef=(e,t,r,n)=>{if(e&&t){let o=!0;return be(r,(s=>{const a=e[s],i=t[s];a!==i&&(o=!1)})),o}return!1},By=(e,t)=>ef(e,t,["w","h"]),Hy=(e,t)=>ef(e,t,["x","y"]),Y5=(e,t)=>ef(e,t,["t","r","b","l"]),ft=()=>{},ce=(e,...t)=>e.bind(0,...t),jt=e=>{let t;const r=e?id:Oy,n=e?ld:Sy;return[o=>{n(t),t=r(o,It(e)?e():e)},()=>n(t)]},qy=(e,t)=>{let r,n,o,s=ft;const{v:a,p:i,S:l}=t||{},c=function(h){s(),ld(r),r=n=void 0,s=ft,e.apply(this,h)},u=f=>l&&n?l(n,f):f,d=()=>{s!==ft&&c(u(o)||o)},p=function(){const h=Dr(arguments),m=It(a)?a():a;if(xt(m)&&m>=0){const y=It(i)?i():i,_=xt(y)&&y>=0,w=m>0?id:Oy,E=m>0?ld:Sy,S=u(h)||h,x=c.bind(0,S);s();const P=w(x,m);s=()=>E(P),_&&!r&&(r=id(d,y)),n=o=S}else c(h)};return p.m=d,p},jy=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Pt=e=>e?Object.keys(e):[],ge=(e,t,r,n,o,s,a)=>{const i=[t,r,n,o,s,a];return(typeof e!="object"||Os(e))&&!It(e)&&(e={}),be(i,(l=>{be(l,((c,u)=>{const d=l[u];if(e===d)return!0;const p=ht(d);if(d&&fs(d)){const f=e[u];let h=f;p&&!ht(f)?h=[]:!p&&!fs(f)&&(h={}),e[u]=ge(h,d)}else e[u]=p?d.slice():d}))})),e},Uy=(e,t)=>be(ge({},e),((r,n,o)=>{r===void 0?delete o[n]:r&&fs(r)&&(o[n]=Uy(r))})),tf=e=>{for(const t in e)return!1;return!0},dd=(e,t,r)=>es(e,W5(t,r)),Er=e=>Dr(new Set((ht(e)?e:(e||"").split(" ")).filter((t=>t)))),Ns=(e,t)=>e&&e.getAttribute(t),lt=(e,t,r)=>{be(Er(t),(n=>{e&&e.setAttribute(n,r||"")}))},yt=(e,t)=>{be(Er(t),(r=>e&&e.removeAttribute(r)))},Ls=(e,t)=>{const r=Er(Ns(e,t)),n=ce(lt,e,t),o=(s,a)=>{const i=new Set(r);return be(Er(s),(l=>i[a](l))),Dr(i).join(" ")};return{O:s=>n(o(s,"delete")),$:s=>n(o(s,"add")),C:s=>{const a=Er(s);return a.reduce(((i,l)=>i&&r.includes(l)),a.length>0)}}},Wy=(e,t,r)=>{Ls(e,t).O(r)},co=(e,t,r)=>(Ls(e,t).$(r),ce(Wy,e,t,r)),ts=(e,t,r,n)=>{(n?co:Wy)(e,t,r)},X5=(e,t,r)=>Ls(e,t).C(r),Vy=e=>Ls(e,"class"),rf=(e,t)=>{Vy(e).O(t)},ps=(e,t)=>(Vy(e).$(t),ce(rf,e,t)),fm=Qd&&Element.prototype,zy=(e,t)=>{const r=[],n=t?As(t)&&t:document;return n?we(r,n.querySelectorAll(e)):r},Z5=(e,t)=>{const r=t?As(t)&&t:document;return r?r.querySelector(e):null},fd=(e,t)=>
43As(e)?(fm.matches||fm.msMatchesSelector).call(e,t):!1,pd=e=>e?Dr(e.childNodes):[],bn=e=>e&&e.parentElement,en=(e,t)=>As(e)&&e.closest(t),J5=(e,t,r)=>{const n=en(e,t),o=e&&Z5(r,n),s=en(o,t)===n;return n&&o?n===e||o===e||s&&en(en(e,r),t)!==n:!1},Xt=e=>{if(Ts(e))be(Dr(e),(t=>Xt(t)));else if(e){const t=bn(e);t&&t.removeChild(e)}},Ky=(e,t,r)=>{if(r&&e){let n=t,o;return Ts(r)?(o=document.createDocumentFragment(),be(r,(s=>{s===n&&(n=s.previousSibling),o.appendChild(s)}))):o=r,t&&(n?n!==t&&(n=n.nextSibling):n=e.firstChild),e.insertBefore(o,n||null),()=>Xt(r)}return ft},Je=(e,t)=>Ky(e,null,t),pm=(e,t)=>Ky(bn(e),e&&e.nextSibling,t),nn=e=>{const t=document.createElement("div");return lt(t,"class",e),t},Gy=e=>{const t=nn();return t.innerHTML=e.trim(),be(pd(t),(r=>Xt(r)))},Q5=/^--/,hm=(e,t)=>e.getPropertyValue(t)||e[t]||"",nf=e=>{const t=e||0;return isFinite(t)?t:0},jo=e=>nf(parseFloat(e||"")),mm=e=>`${(nf(e)*100).toFixed(3)}%`,hd=e=>`${nf(e)}px`;function yn(e,t){e&&be(t,((r,n)=>{try{const o=e.style,s=xt(r)?hd(r):(r||"")+"";Q5.test(n)?o.setProperty(n,s):o[n]=s}catch{}}))}function Or(e,t,r){const n=Rs(t);let o=n?"":{};if(e){const s=nt.getComputedStyle(e,r)||e.style;o=n?hm(s,t):t.reduce(((a,i)=>(a[i]=hm(s,i),a)),o)}return o}const zt=e=>Or(e,"direction")==="rtl",vm=(e,t,r)=>{const n=t?`${t}-`:"",o=r?`-${r}`:"",s=`${n}top${o}`,a=`${n}right${o}`,i=`${n}bottom${o}`,l=`${n}left${o}`,c=Or(e,[s,a,i,l]);return{t:jo(c[s]),r:jo(c[a]),b:jo(c[i]),l:jo(c[l])}},Ki=(e,t)=>`translate${lo(e)?`(${e.x},${e.y})`:`${t?"X":"Y"}(${e})`}`,eS={w:0,h:0},$s=(e,t)=>t?{w:t[`${e}Width`],h:t[`${e}Height`]}:eS,tS=e=>$s("inner",e||nt),ro=ce($s,"offset"),Yy=ce($s,"client"),md=ce($s,"scroll"),of=e=>{const t=parseFloat(Or(e,mn))||0,r=parseFloat(Or(e,vn))||0;return{w:t-ad(t),h:r-ad(r)}},on=e=>e.getBoundingClientRect(),vd=e=>!!(e&&(e[vn]||e[mn])),Xy=(e,t)=>{const r=vd(e);return!vd(t)&&r},gm=(e,t,r,n)=>{be(Er(t),(o=>{e.removeEventListener(o,r,n)}))},Ce=(e,t,r,n)=>{var o;const s=(o=n&&n.H)!=null?o:!0,a=n&&n.I||!1,i=n&&n.A||!1,l={passive:s,capture:a};return ce(ot,Er(t).map((c=>{const u=i?d=>{gm(e,c,u,a),r(d)}:r;return e.addEventListener(c,u,l),ce(gm,e,c,u,a)})))},sf=e=>e.stopPropagation(),bm=e=>e.preventDefault(),rS={x:0,y:0},Gi=e=>{const t=e&&on(e);return t?{x:t.left+nt.scrollX,y:t.top+nt.scrollY}:rS},hs=(e,t,r)=>r?r.n?-e+0:r.i?t-e:e:e,ym=(e,t)=>[hs(0,e,t),hs(e,e,t)],_m=(e,t,r)=>dd(0,1,hs(e,t,r)/t||0),Zt=(e,t)=>{const{x:r,y:n}=xt(t)?{x:t,y:t}:t||{};xt(r)&&(e.scrollLeft=r),xt(n)&&(e.scrollTop=n)},_n=e=>({x:e.scrollLeft,y:e.scrollTop}),wm=(e,t)=>{be(Ay(t),e)},gd=e=>{const t=new Map,r=(s,a)=>{if(s){const i=t.get(s);wm((l=>{i&&i[l?"delete":"clear"](l)}),a)}else t.forEach((i=>{i.clear()})),t.clear()},n=(s,a)=>{if(Rs(s)){const c=t.get(s)||new Set;return t.set(s,c),wm((u=>{It(u)&&c.add(u)}),a),ce(r,s,a)}Ty(a)&&a&&r();const i=Pt(s),l=[];return be(i,(c=>{const u=s[c];u&&we(l,n(c,u))})),ce(ot,l)},o=(s,a)=>{be(Dr(t.get(s)),(i=>{a&&!ud(a)?i.apply(0,a):i()}))};return n(e||{}),[n,r,o]},Em=e=>JSON.stringify(e,((t,r)=>{if(It(r))throw 0;return r})),Cm=(e,t)=>e?`${t}`.split(".").reduce(((r,n)=>r&&jy(r,n)?r[n]:void 0),e):void 0,nS={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:[0,33],attributes:null,ignoreMutation:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},Zy=(e,t)=>{const r={},n=kt(Pt(t),Pt(e));return be(n,(o=>{const s=e[o],a=t[o];if(lo(s)&&lo(a))ge(r[o]={},Zy(s,a)),tf(r[o])&&delete r[o];else if(jy(t,o)&&a!==s){let i=!0;if(ht(s)||ht(a))try{Em(s)===Em(a)&&(i=!1)}catch{}i&&(r[o]=a)}})),r},xm=(e,t,r)=>n=>[Cm(e,n),r||Cm(t,n)!==void 0],ko="data-overlayscrollbars",Jy="os-environment",oS=`${Jy}-scrollbar-hidden`,Yi=`${ko}-initialize`,Ze=ko,Qy=`${Ze}-overflow-x`,e_=`${Ze}-overflow-y`,t_="overflowVisible",sS="scrollbarPressed",bd="updating",aS="body",Ut=`${ko}-viewport`,iS="arrange",r_="scrollbarHidden",sn=t_,yd=`${ko}-padding`,lS=sn,Im=`${ko}-content`,af="os-size-observer",cS=`${af}-appear`,uS=`${af}-listener`,dS="os-trinsic-observer",fS="os-theme-none",Ke="os-scrollbar",pS=`${Ke}-rtl`,hS=`${Ke}-horizontal`,mS=`${Ke}-vertical`,n_=`${Ke}-track`,lf=`${Ke}-handle`,vS=`${Ke}-visible`,gS=`${Ke}-cornerless`,Sm=`${Ke}-interaction`,Om=`${Ke}-unusable`,_d=`${Ke}-auto-hide`,Rm=`${_d}-hidden`,Tm=`${Ke}-wheel`,bS=`${n_}-interactive`,yS=`${lf}-interactive`,o_={},s_={},_S=e=>{be(e,(t=>be(t,((r,n)=>{o_[n]=t[n]}))))},a_=(e,t,r)=>Pt(e).map((n=>{const{static:o,instance:s}
43=e[n],[a,i,l]=r||[],c=r?s:o;if(c){const u=r?c(a,i,t):c(t);return(l||s_)[n]=u}})),Dn=e=>s_[e],wS="__osOptionsValidationPlugin",ES="__osSizeObserverPlugin",CS=(e,t)=>{const{T:r}=t,[n,o]=e("showNativeOverlaidScrollbars");return[n&&r.x&&r.y,o]},ms=e=>e.indexOf(Fy)===0,i_=(e,t)=>{const{D:r}=e,n=l=>{const c=Or(r,l),d=(t?t[l]:c)==="scroll";return[c,d]},[o,s]=n(Ps),[a,i]=n(Ds);return{k:{x:o,y:a},R:{x:s,y:i}}},xS=(e,t,r,n)=>{const o=t.x||t.y,s=(u,d)=>{const p=ms(u),f=p&&o?"hidden":"",h=d&&p&&u.replace(`${Fy}-`,"")||f;return[d&&!p?u:"",ms(h)?"hidden":h]},[a,i]=s(r.x,t.x),[l,c]=s(r.y,t.y);return n[Ps]=i&&l?i:a,n[Ds]=c&&a?c:l,i_(e,n)},cf="__osScrollbarsHidingPlugin",IS="__osClickScrollPlugin";let Xi;const SS=()=>{const e=(w,E,C,S)=>{Je(w,E);const x=Yy(E),P=ro(E),D=of(C);return S&&Xt(E),{x:P.h-x.h+D.h,y:P.w-x.w+D.w}},t=w=>{let E=!1;const C=ps(w,oS);try{E=Or(w,"scrollbar-width")==="none"||Or(w,"display","::-webkit-scrollbar")==="none"}catch{}return C(),E},r=(w,E)=>{yn(w,{[Ps]:gn,[Ds]:gn,direction:"rtl"}),Zt(w,{x:0});const C=Gi(w),S=Gi(E);Zt(w,{x:-999});const x=Gi(E);return{i:C.x===S.x,n:S.x!==x.x}},{body:n}=document,s=Gy(`<div class="${Jy}"><div></div></div>`)[0],a=s.firstChild,[i,,l]=gd(),[c,u]=ut({o:e(n,s,a),u:Hy},ce(e,n,s,a,!0)),[d]=u(),p=t(s),f={x:d.x===0,y:d.y===0},h={elements:{host:null,padding:!p,viewport:w=>p&&w===w.ownerDocument.body&&w,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},m=ge({},nS),g=ce(ge,{},m),y=ce(ge,{},h),_={P:d,T:f,L:p,J:!!cd,K:r(s,a),Z:ce(i,"r"),G:y,tt:w=>ge(h,w)&&y(),nt:g,ot:w=>ge(m,w)&&g(),st:ge({},h),et:ge({},m)};return yt(s,"style"),Xt(s),nt.addEventListener("resize",(()=>{let w;if(!p&&(!f.x||!f.y)){const E=Dn(cf);w=!!(E?E.Y():ft)(_,c)}l("r",[w])})),_},st=()=>(Xi||(Xi=SS()),Xi),uf=(e,t)=>It(t)?t.apply(0,e):t,OS=(e,t,r,n)=>{const o=Ao(n)?r:n;return uf(e,o)||t.apply(0,e)},l_=(e,t,r,n)=>{const o=Ao(n)?r:n,s=uf(e,o);return!!s&&(to(s)?s:t.apply(0,e))},RS=(e,t)=>{const{nativeScrollbarsOverlaid:r,body:n}=t||{},{T:o,L:s,G:a}=st(),{nativeScrollbarsOverlaid:i,body:l}=a().cancel,c=r??i,u=Ao(n)?l:n,d=(o.x||o.y)&&c,p=e&&(Os(u)?!s:u);return!!d||!!p},df=new WeakMap,TS=(e,t)=>{df.set(e,t)},AS=e=>{df.delete(e)},c_=e=>df.get(e),kS=(e,t,r)=>{let n=!1;const o=r?new WeakMap:!1,s=()=>{n=!0},a=i=>{if(o&&r){const l=r.map((c=>{const[u,d]=c||[];return[d&&u?(i||zy)(u,e):[],d]}));be(l,(c=>be(c[0],(u=>{const d=c[1],p=o.get(u)||[];if(e.contains(u)&&d){const h=Ce(u,d,(m=>{n?(h(),o.delete(u)):t(m)}));o.set(u,we(p,h))}else ot(p),o.delete(u)}))))}};return a(),[s,a]},Am=(e,t,r,n)=>{let o=!1;const{ct:s,rt:a,lt:i,it:l,ut:c,ft:u}=n||{},d=qy((()=>o&&r(!0)),{v:33,p:99}),[p,f]=kS(e,d,i),h=s||[],m=a||[],g=kt(h,m),y=(w,E)=>{if(!ud(E)){const C=c||ft,S=u||ft,x=[],P=[];let D=!1,L=!1;if(be(E,(O=>{const{attributeName:A,target:T,type:R,oldValue:N,addedNodes:W,removedNodes:q}=O,H=R==="attributes",I=R==="childList",k=e===T,$=H&&A,G=$&&Ns(T,A||"")||null,Z=$&&N!==G,K=ks(m,A)&&Z;if(t&&(I||!k)){const X=H&&Z,J=X&&l&&fd(T,l),j=(J?!C(T,A,N,G):!H||X)&&!S(O,!!J,e,n);be(W,(U=>we(x,U))),be(q,(U=>we(x,U))),L=L||j}!t&&k&&Z&&!C(T,A,N,G)&&(we(P,A),D=D||K)})),f((O=>dm(x).reduce(((A,T)=>(we(A,zy(O,T)),fd(T,O)?we(A,T):A)),[]))),t)return!w&&L&&r(!1),[!1];if(!ud(P)||D){const O=[dm(P),D];return!w&&r.apply(0,O),O}}},_=new V5(ce(y,!1));return[()=>(_.observe(e,{attributes:!0,attributeOldValue:!0,attributeFilter:g,subtree:t,childList:t,characterData:t}),o=!0,()=>{o&&(p(),_.disconnect(),o=!1)}),()=>{if(o)return d.m(),y(!0,_.takeRecords())}]},u_=(e,t,r)=>{const{_t:o,dt:s}=r||{},a=Dn(ES),{K:i}=st(),l=ce(zt,e),[c]=ut({o:!1,_:!0});return()=>{const u=[],p=Gy(`<div class="${af}"><div class="${uS}"></div></div>`)[0],f=p.firstChild,h=m=>{const g=m instanceof ResizeObserverEntry,y=!g&&ht(m);let _=!1,w=!1,E=!0;if(g){const[C,,S]=c(m.contentRect),x=vd(C),P=Xy(C,S);w=!S||P,_=!w&&!x,E=!_}else y?[,E]=m:w=m===!0;if(o&&E){const C=y?m[0]:zt(p);Zt(p,{x:hs(3333333,3333333,C&&i),y:3333333})}_||t({vt:y?m:void 0,ht:!y,dt:w})};if(ds){const m=new ds((g=>h(g.pop())));m.observe(f),we(u,(()=>{m.disconnect()}))}else if(a){const[m,g]=a(f,h,s);we(u,kt([ps(p,cS),Ce(p,"animationstart",m)],g))}else return ft;if(o){const[m]=ut({o:void 0},l);we(u,Ce(p,"scroll",(g=>{const y=m(),[_,w,E]=y;w&&(rf(f,"ltr rtl"),ps(f,_?"rtl":"ltr"),h([!!_,w,E])),sf(g)})))}return ce(ot,we(u,Je(e,p)))}},PS=(e,t)=>{let r;const n=l=>
43l.h===0||l.isIntersecting||l.intersectionRatio>0,o=nn(dS),[s]=ut({o:!1}),a=(l,c)=>{if(l){const u=s(n(l)),[,d]=u;return d&&!c&&t(u)&&[u]}},i=(l,c)=>a(c.pop(),l);return[()=>{const l=[];if(um)r=new um(ce(i,!1),{root:e}),r.observe(o),we(l,(()=>{r.disconnect()}));else{const c=()=>{const u=ro(o);a(u)};we(l,u_(o,c)()),c()}return ce(ot,we(l,Je(e,o)))},()=>r&&i(!0,r.takeRecords())]},DS=(e,t,r,n)=>{let o,s,a,i,l,c;const{L:u}=st(),d=`[${Ze}]`,p=`[${Ut}]`,f=["tabindex"],h=["wrap","cols","rows"],m=["id","class","style","open"],{gt:g,bt:y,D:_,wt:w,St:E,V:C,yt:S,Ot:x}=e,P={$t:!1,N:zt(g)},D=st(),L=Dn(cf),[O]=ut({u:By,o:{w:0,h:0}},(()=>{const M=L&&L.M(e,t,P,D,r).W,j=S(sn),U=!C&&S(iS),V=U&&_n(_);x(sn),C&&x(bd,!0);const Y=U&&M&&M()[0],Q=md(w),F=md(_),z=of(_);return x(sn,j),C&&x(bd),Y&&Y(),Zt(_,V),{w:F.w+Q.w+z.w,h:F.h+Q.h+z.h}})),A=E?h:kt(m,h),T=qy(n,{v:()=>o,p:()=>s,S(M,j){const[U]=M,[V]=j;return[kt(Pt(U),Pt(V)).reduce(((Y,Q)=>(Y[Q]=U[Q]||V[Q],Y)),{})]}}),R=M=>{if(C){const j=zt(g);ge(M,{Ct:c!==j}),ge(P,{N:j}),c=j}},N=M=>{be(M||f,(j=>{if(ks(f,j)){const U=Ns(y,j);Rs(U)?lt(_,j,U):yt(_,j)}}))},W=(M,j)=>{const[U,V]=M,Y={xt:V};return ge(P,{$t:U}),!j&&n(Y),Y},q=({ht:M,vt:j,dt:U})=>{const Y=!(M&&!U&&!j)&&u?T:n,[Q,F]=j||[],z={ht:M||U,dt:U,Ct:F};R(z),j&&ge(P,{N:Q}),Y(z)},H=(M,j)=>{const[,U]=O(),V={Ht:U};
43return R(V),U&&!j&&(M?n:T)(V),V},I=(M,j,U)=>{const V={It:j};return R(V),j&&!U?T(V):C||N(M),V},{Z:k}=D,[$,G]=w?PS(y,W):[],Z=!C&&u_(y,q,{dt:!0,_t:!0}),[K,X]=Am(y,!1,I,{rt:m,ct:kt(m,f)}),J=C&&ds&&new ds((M=>{const j=M[M.length-1].contentRect;q({ht:!0,dt:Xy(j,l)}),l=j}));return[()=>{N(),J&&J.observe(y);const M=Z&&Z(),j=$&&$(),U=K(),V=k((Y=>{const[,Q]=O();T({zt:Y,Ht:Q})}));return()=>{J&&J.disconnect(),M&&M(),j&&j(),i&&i(),U(),V()}},({Et:M,At:j,Tt:U})=>{const V={},[Y]=M("update.ignoreMutation"),[Q,F]=M("update.attributes"),[z,ee]=M("update.elementEvents"),[te,ie]=M("update.debounce"),le=ee||F,oe=j||U,fe=ne=>It(Y)&&Y(ne);if(le){a&&a(),i&&i();const[ne,re]=Am(w||_,!0,H,{ct:kt(A,Q||[]),lt:z,it:d,ft:(ue,de)=>{const{target:ye,attributeName:Se}=ue;return(!de&&Se&&!C?J5(ye,d,p):!1)||!!en(ye,`.${Ke}`)||!!fe(ue)}});i=ne(),a=re}if(ie)if(T.m(),ht(te)){const ne=te[0],re=te[1];o=xt(ne)&&ne,s=xt(re)&&re}else xt(te)?(o=te,s=!1):(o=!1,s=!1);if(oe){const ne=X(),re=G&&G(),ue=a&&a();ne&&ge(V,I(ne[0],ne[1],oe)),re&&ge(V,W(re[0],oe)),ue&&ge(V,H(ue[0],oe))}return R(V),V},P]},NS=(e,t,r,n)=>{const{G:o,K:s}=st(),{scrollbars:a}=o(),{slot:i}=a,{gt:l,bt:c,D:u,Dt:d,kt:p,Rt:f,V:h}=t,{scrollbars:m}=d?{}:e,{slot:g}=m||{},y=new Map,_=M=>cd&&new cd({source:p,axis:M}),w=_("x"),E=_("y"),C=l_([l,c,u],(()=>h&&f?l:c),i,g),S=(M,j)=>{if(j){const z=M?mn:vn,{Mt:ee,Vt:te}=j,ie=on(te)[z],le=on(ee)[z];return dd(0,1,ie/le||0)}const U=M?"x":"y",{Lt:V,Pt:Y}=r,Q=Y[U],F=V[U];return dd(0,1,Q/(Q+F)||0)},x=(M,j,U,V)=>{const Y=S(U,M);return 1/Y*(1-Y)*(V?1-j:j)||0},P=(M,j)=>ge(M,j?{clear:["left"]}:{}),D=M=>{y.forEach(((j,U)=>{(M?ks(Ay(M),U):!0)&&(be(j||[],(Y=>{Y&&Y.cancel()})),y.delete(U))}))},L=(M,j,U,V)=>{const Y=y.get(M)||[],Q=Y.find((F=>F&&F.timeline===j));Q?Q.effect=new KeyframeEffect(M,U,{composite:V}):y.set(M,kt(Y,[M.animate(U,{timeline:j,composite:V})]))},O=(M,j,U)=>{const V=U?ps:rf;be(M,(Y=>{V(Y.Ut,j)}))},A=(M,j)=>{be(M,(U=>{const[V,Y]=j(U);yn(V,Y)}))},T=(M,j)=>{A(M,(U=>{const{Vt:V}=U;return[V,{[j?mn:vn]:mm(S(j))}]}))},R=(M,j)=>{const{Lt:U}=r,V=j?U.x:U.y,Y=(Q,F,z)=>Ki(mm(x(Q,_m(F,V,z),j,z)),j);if(w&&E)be(M,(Q=>{const{Ut:F,Vt:z}=Q,ee=j&&zt(F)&&s;L(z,j?w:E,P({transform:ym(V,ee).map((te=>Y(Q,te,ee)))},ee))}));else{const Q=_n(p);A(M,(F=>{const{Vt:z,Ut:ee}=F;return[z,{transform:Y(F,j?Q.x:Q.y,j&&zt(ee)&&s)}]}))}},N=M=>h&&!f&&bn(M)===u,W=[],q=[],H=[],I=(M,j,U)=>{const V=Ty(U),Y=V?U:!0,Q=V?!U:!0;Y&&O(q,M,j),Q&&O(H,M,j)},k=()=>{T(q,!0),T(H)},$=()=>{R(q,!0),R(H)},G=()=>{if(h){const{Lt:M}=r,j=.5;if(w&&E)be(kt(H,q),(({Ut:U})=>{if(N(U)){const V=(Y,Q,F)=>{const z=F&&zt(U)&&s;L(U,Y,P({transform:ym(Q-j,z).map((ee=>Ki(hd(ee),F)))},z),"add")};V(w,M.x,!0),V(E,M.y)}else D(U)}));else{const U=_n(p),V=Y=>{const{Ut:Q}=Y,F=N(Q)&&Q,z=(ee,te,ie)=>{const le=_m(ee,te,ie),oe=te*le;return hd(ie?-oe:oe)};return[F,{transform:F?Ki({x:z(U.x,M.x,zt(Q)&&s),y:z(U.y,M.y)}):""}]};A(q,V),A(H,V)}}},Z=M=>{const U=nn(`${Ke} ${M?hS:mS}`),V=nn(n_),Y=nn(lf),Q={Ut:U,Mt:V,Vt:Y};return we(M?q:H,Q),we(W,[Je(U,V),Je(V,Y),ce(Xt,U),D,n(Q,I,R,M)]),Q},K=ce(Z,!0),X=ce(Z,!1),J=()=>(Je(C,q[0].Ut),Je(C,H[0].Ut),ce(ot,W));return K(),X(),[{Bt:k,Nt:$,jt:G,Ft:I,qt:{J:w,Wt:q,Xt:K,Yt:ce(A,q)},Jt:{J:E,Wt:H,Xt:X,Yt:ce(A,H)}},J]},LS=(e,t,r)=>{const{bt:n,kt:o,Kt:s}=t;return(a,i,l,c)=>{const{Ut:u,Mt:d,Vt:p}=a,[f,h]=jt(333),[m,g]=jt(),y=ce(l,[a],c),_=!!o.scrollBy,w=`client${c?"X":"Y"}`,E=c?mn:vn,C=c?"left":"top",S=c?"w":"h",x=c?"x":"y",P=O=>O.propertyName.indexOf(E)>-1,D=()=>{const O="pointerup pointerleave pointercancel lostpointercapture",A=(T,R)=>N=>{const{Lt:W}=r,q=ro(d)[S]-ro(p)[S],I=R*N/q*W[x];Zt(o,{[x]:T+I})};return Ce(d,"pointerdown",(T=>{const R=en(T.target,`.${lf}`)===p,N=R?p:d,W=e.scrollbars,{button:q,isPrimary:H,pointerType:I}=T,{pointers:k}=W;if(q===0&&H&&W[R?"dragScroll":"clickScroll"]&&(k||[]).includes(I)){const G=!R&&T.shiftKey,Z=ce(on,p),K=ce(on,d),X=(le,oe)=>(le||Z())[C]-(oe||K())[C],J=ad(on(o)[E])/ro(o)[S]||1,M=A(_n(o)[x]||0,1/J),j=T[w],U=Z(),V=K(),Y=U[E],Q=X(U,V)+Y/2,F=j-V[C],z=R?0:F-Q,ee=le=>{ot(ie),N.releasePointerCapture(le.pointerId)},ie=[co(n,Ze,sS),Ce(s,O,ee),Ce(s,"selectstart",(le=>bm(le)),{H:!1}),Ce(d,O,ee),Ce(d,"pointermove",(le=>{const oe=le[w]-j;(R||G)&&M(z+oe)}))];if(N.setPointerCapture(T.pointerId),G)M(z);else if(!R){const le=Dn(IS);le&&we(ie,le(M,X,z,Y,F))}}}))};let L=!0;return ce(ot,[Ce(u,"pointerenter",(()=>{i(Sm,!0)})),Ce(u,"pointerleave pointercancel",(()=>{i(Sm,!1)})),Ce(u,"wheel",(O=>{const{deltaX:A,deltaY:T,deltaMode:R}=O;_&&L&&R===0&&bn(u)===n&&o.scrollBy({left:A,top:T,behavior:"smooth"}),L=!1,i(Tm,!0),f((()=>{L=!0,i(Tm)})),bm(O)}),{H:!1,I:!0}),Ce(p,"transitionstart",(O=>{if(P(O)){const A=()=>{y(),m(A)};A()}})),Ce(p,"transitionend transitioncancel",(O=>{P(O)&&(g(),y())})),Ce(u,"mousedown",ce(Ce,s,"click",sf,{A:!0,I:!0}),{I:!0}),D(),h,g])}},$S=(e,t,r,n,o,s)=>{let a,i,l,c,u,d=ft,p=0;const[f,h]=jt(),[m,g]=jt(),[y,_]=jt(100),[w,E]=jt(100),[C,S]=jt(100),[x,P]=jt((()=>p)),[D,L]=NS(e,o,n,LS(t,o,n)),{bt:O,Zt:A,Rt:T}=o,{Ft:R,Bt:N,Nt:W,jt:q}
vendor: 4,091 bytes, line 43
43=D,H=Z=>{R(_d,Z,!0),R(_d,Z,!1)},I=(Z,K)=>{if(P(),Z)R(Rm);else{const X=ce(R,Rm,!0);p>0&&!K?x(X):X()}},k=Z=>Z.pointerType==="mouse",$=Z=>{k(Z)&&(c=i,c&&I(!0))},G=[_,P,E,S,g,h,()=>d(),Ce(O,"pointerover",$,{A:!0}),Ce(O,"pointerenter",$),Ce(O,"pointerleave",(Z=>{k(Z)&&(c=!1,i&&I(!1))})),Ce(O,"pointermove",(Z=>{k(Z)&&a&&f((()=>{_(),I(!0),w((()=>{a&&I(!1)}))}))})),Ce(A,"scroll",(Z=>{m((()=>{W(),l&&I(!0),y((()=>{l&&!c&&I(!1)}))})),s(Z),q()}))];return[()=>ce(ot,we(G,L())),({Et:Z,Tt:K,Gt:X,Qt:J})=>{const{tn:M,nn:j,sn:U}=J||{},{Ct:V,dt:Y}=X||{},{N:Q}=r,{T:F}=st(),{k:z,en:ee}=n,[te,ie]=Z("showNativeOverlaidScrollbars"),[le,oe]=Z("scrollbars.theme"),[fe,ne]=Z("scrollbars.visibility"),[re,ue]=Z("scrollbars.autoHide"),[de,ye]=Z("scrollbars.autoHideSuspend"),[Se]=Z("scrollbars.autoHideDelay"),[Le,Ie]=Z("scrollbars.dragScroll"),[Me,Ue]=Z("scrollbars.clickScroll"),[ve,Ye]=Z("overflow"),mt=Y&&!K,$r=ee.x||ee.y,vt=M||j||V||K,Mr=U||ne||Ye,Fr=te&&F.x&&F.y,or=(sr,Lt,$n)=>{const Mn=sr.includes("scroll")&&(fe==="visible"||fe==="auto"&&Lt==="scroll");return R(vS,Mn,$n),Mn};if(p=Se,mt&&(de&&$r?(H(!1),d(),C((()=>{d=Ce(A,"scroll",ce(H,!0),{A:!0})}))):H(!0)),ie&&R(fS,Fr),oe&&(R(u),R(le,!0),u=le),ye&&!de&&H(!0),ue&&(a=re==="move",i=re==="leave",l=re!=="never",I(!l,!0)),Ie&&R(yS,Le),Ue&&R(bS,Me),Mr){const sr=or(ve.x,z.x,!0),Lt=or(ve.y,z.y,!1);R(gS,!(sr&&Lt))}vt&&(N(),W(),q(),R(Om,!ee.x,!0),R(Om,!ee.y,!1),R(pS,Q&&!T))},{},D]},MS=e=>{const t=st(),{G:r,L:n}=t,{elements:o}=r(),{host:s,padding:a,viewport:i,content:l}=o,c=to(e),u=c?{}:e,{elements:d}=u,{host:p,padding:f,viewport:h,content:m}=d||{},g=c?e:u.target,y=fd(g,"textarea"),_=g.ownerDocument,w=_.documentElement,E=g===_.body,C=_.defaultView,S=()=>_.activeElement,x=ne=>{ne&&ne.focus&&ne.focus()},P=ce(OS,[g]),D=ce(l_,[g]),L=ce(uf,[g]),O=ce(nn,""),A=ce(P,O,i),T=ce(D,O,l),R=A(h),N=R===g,W=N&&E,q=!N&&T(m),H=!N&&to(R)&&R===q,I=H&&!!L(l),k=I?A():R,$=I?q:T(),Z=W?w:H?k:R,K=y?P(O,s,p):g,X=W?Z:K,J=H?$:q,M={gt:g,bt:X,D:Z,cn:!N&&D(O,a,f),wt:J,kt:W?w:Z,Zt:W?_:Z,rn:E?w:g,ln:C,Kt:_,St:y,Rt:E,Dt:c,V:N,an:H,yt:ne=>X5(Z,N?Ze:Ut,ne),Ot:(ne,re)=>ts(Z,N?Ze:Ut,ne,re)},j=Pt(M).reduce(((ne,re)=>{const ue=M[re];return we(ne,ue&&to(ue)&&!bn(ue)?ue:!1)}),[]),U=ne=>ne?ks(j,ne):null,{gt:V,bt:Y,cn:Q,D:F,wt:z}=M,ee=[()=>{yt(Y,[Ze,Yi]),yt(V,Yi),E&&yt(w,[Yi,Ze])}],te=y&&U(Y);let ie=y?V:pd([z,F,Q,Y,V].find((ne=>U(ne)===!1)));const le=W?V:z||F,oe=ce(ot,ee);return[M,()=>{const ne=S(),re=ye=>{Je(bn(ye),pd(ye)),Xt(ye)},ue=ye=>ye?Ce(ye,"focusin focusout focus blur",(Se=>{sf(Se),Se.stopImmediatePropagation()}),{I:!0,H:!1}):ft,de=ue(ne);if(lt(Y,Ze,N?"viewport":"host"),lt(Q,yd,""),lt(z,Im,""),N||(lt(F,Ut,""),E&&co(w,Ze,aS)),te&&(pm(V,Y),we(ee,(()=>{pm(Y,V),Xt(Y)}))),Je(le,ie),Je(Y,Q),Je(Q||Y,!N&&F),Je(F,z),we(ee,[de,()=>{const ye=S(),Se=ue(ye);yt(Q,yd),yt(z,Im),yt(F,[Qy,e_,Ut]),U(z)&&re(z),U(F)&&re(F),U(Q)&&re(Q),x(ye),Se()}]),n&&!N&&(co(F,Ut,r_),we(ee,ce(yt,F,Ut))),!N&&C.top===C&&ne===g){const ye="tabindex",Se=Ns(F,ye);lt(F,ye,"-1"),x(F);const Le=()=>Se?lt(F,ye,Se):yt(F,ye),Ie=Ce(_,"pointerdown keydown",(()=>{Le(),Ie()}));we(ee,[Le,Ie])}else x(ne);return de(),ie=0,oe},oe]},FS=({wt:e})=>({Gt:t,un:r,Tt:n})=>{const{xt:o}=t||{},{$t:s}=r;e&&(o||n)&&yn(e,{[vn]:s&&"100%"})},BS=({bt:e,cn:t,D:r,V:n},o)=>{const[s,a]=ut({u:Y5,o:vm()},ce(vm,e,"padding",""));return({Et:i,Gt:l,un:c,Tt:u})=>{let[d,p]=a(u);const{L:f}=st(),{ht:h,Ht:m,Ct:g}=l||{},{N:y}=c,[_,w]=i("paddingAbsolute");(h||p||(u||m))&&([d,p]=s(u));const C=!n&&(w||g||p);if(C){const S=!_||!t&&!f,x=d.r+d.l,P=d.t+d.b,D={[$y]:S&&!y?-x:0,[My]:S?-P:0,[Ly]:S&&y?-x:0,top:S?-d.t:0,right:S?y?-d.r:"auto":0,left:S?y?"auto":-d.l:0,[mn]:S&&`calc(100% + ${x}px)`},L={[ky]:S?d.t:0,[Py]:S?d.r:0,[Ny]:S?d.b:0,[Dy]:S?d.l:0};yn(t||r,D),yn(r,L),ge(o,{cn:d,fn:!S,j:t?L:ge({},D,L)})}return{_n:C}}},HS=(e,t)=>{const r=st(),{bt:n,cn:o,D:s,V:a,Ot:i,Rt:l,ln:c}=e,{L:u}=r,d=l&&a,p=ce(es,0),f={u:By,o:{w:0,h:0}},h={u:Hy,o:{x:gn,y:gn}},m=(L,O)=>{const A=nt.devicePixelRatio%1!==0?1:0,T={w:p(L.w-O.w),h:p(L.h-O.h)};return{w:T.w>A?T.w:0,h:T.h>A?T.h:0}},[g,y]=ut(f,ce(of,s)),[_,w]=ut(f,ce(md,s)),[E,C]=ut(f),[S,x]=ut(f),[P]=ut(h),D=Dn(cf);
43return({Et:L,Gt:O,un:A,Tt:T},{_n:R})=>{const{ht:N,Ht:W,Ct:q,zt:H}=O||{},I=D&&D.M(e,t,A,r,L),{q:k,W:$,X:G}=I||{},[Z,K]=CS(L,r),[X,J]=L("overflow"),M=N||R||W||q||H||K,j=ms(X.x),U=ms(X.y),V=j||U;let Y=y(T),Q=w(T),F=C(T),z=x(T),ee;if(K&&u&&i(r_,!Z),M){V&&i(sn,!1);const[Me,Ue]=$?$(ee):[],[ve,Ye]=Y=g(T),[mt,$r]=Q=_(T),vt=Yy(s),Mr=mt,Fr=vt;Me&&Me(),($r||Ye||K)&&Ue&&!Z&&k&&k(Ue,mt,ve);const or=tS(c),sr={w:p(es(mt.w,Mr.w)+ve.w),h:p(es(mt.h,Mr.h)+ve.h)},Lt={w:p((d?or.w:Fr.w+p(vt.w-mt.w))+ve.w),h:p((d?or.h:Fr.h+p(vt.h-mt.h))+ve.h)};z=S(Lt),F=E(m(sr,Lt),T)}const[te,ie]=z,[le,oe]=F,[fe,ne]=Q,[re,ue]=Y,de={x:le.w>0,y:le.h>0},ye=j&&U&&(de.x||de.y)||j&&de.x&&!de.y||U&&de.y&&!de.x;if(R||q||H||ue||ne||ie||oe||J||K||M){const Me={},Ue=xS(e,de,X,Me);G&&G(Ue,A,!!k&&k(Ue,fe,re),Me),a?(lt(n,Qy,Me[Ps]),lt(n,e_,Me[Ds])):yn(s,Me)}ts(n,Ze,t_,ye),ts(o,yd,lS,ye),a||ts(s,Ut,sn,V);const[Le,Ie]=P(i_(e).k);return ge(t,{k:Le,Pt:{x:te.w,y:te.h},Lt:{x:le.w,y:le.h},en:de}),{sn:Ie,tn:ie,nn:oe}}},qS=e=>{const[t,r,n]=MS(e),o={cn:{t:0,r:0,b:0,l:0},fn:!1,j:{[$y]:0,[My]:0,[Ly]:0,[ky]:0,[Py]:0,[Ny]:0,[Dy]:0},Pt:{x:0,y:0},Lt:{x:0,y:0},k:{x:gn,y:gn},en:{x:!1,y:!1}},{gt:s,D:a,V:i}=t,{L:l,T:c}=st(),u=!l&&(c.x||c.y),d=[FS(t),BS(t,o),HS(t,o)];return[r,p=>{const f={},m=u&&_n(a),g=i?co(a,Ze,bd):ft;return be(d,(y=>{ge(f,y(p,f)||{})})),g(),Zt(a,m),!i&&Zt(s,0),f},o,t,n]},jS=(e,t,r,n)=>{const o=xm(t,{}),[s,a,i,l,c]=qS(e),[u,d,p]=DS(l,i,o,(_=>{y({},_)})),[f,h,,m]=$S(e,t,p,i,l,n),g=_=>Pt(_).some((w=>!!_[w])),y=(_,w)=>{const{dn:E,Tt:C,At:S,vn:x}=_,P=E||{},D=!!C,L={Et:xm(t,P,D),dn:P,Tt:D};if(x)return h(L),!1;const O=w||d(ge({},L,{At:S})),A=a(ge({},L,{un:p,Gt:O}));h(ge({},L,{Gt:O,Qt:A}));const T=g(O),R=g(A),N=T||R||!tf(P)||D;return N&&r(_,{Gt:O,Qt:A}),N};return[()=>{const{rn:_,D:w}=l,E=_n(_),C=[u(),s(),f()];return Zt(w,E),ce(ot,C)},y,()=>({hn:p,pn:i}),{gn:l,bn:m},c]},Rr=(e,t,r)=>{const{nt:n}=st(),o=to(e),s=o?e:e.target,a=c_(s);if(t&&!a){let i=!1;const l=[],c={},u=L=>{const O=Uy(L),A=Dn(wS);return A?A(O,!0):O},d=ge({},n(),u(t)),[p,f,h]=gd(),[m,g,y]=gd(r),_=(L,O)=>{y(L,O),h(L,O)},[w,E,C,S,x]=jS(e,d,(({dn:L,Tt:O},{Gt:A,Qt:T})=>{const{ht:R,Ct:N,xt:W,Ht:q,It:H,dt:I}=A,{tn:k,nn:$,sn:G}=T;_("updated",[D,{updateHints:{sizeChanged:!!R,directionChanged:!!N,heightIntrinsicChanged:!!W,overflowEdgeChanged:!!k,overflowAmountChanged:!!$,overflowStyleChanged:!!G,contentMutation:!!q,hostMutation:!!H,appear:!!I},changedOptions:L||{},force:!!O}])}),(L=>_("scroll",[D,L]))),P=L=>{AS(s),ot(l),i=!0,_("destroyed",[D,L]),f(),g()},D={options(L,O){if(L){const A=O?n():{},T=Zy(d,ge(A,u(L)));tf(T)||(ge(d,T),E({dn:T}))}return ge({},d)},on:m,off:(L,O)=>{L&&O&&g(L,O)},state(){const{hn:L,pn:O}=C(),{N:A}=L,{Pt:T,Lt:R,k:N,en:W,cn:q,fn:H}=O;return ge({},{overflowEdge:T,overflowAmount:R,overflowStyle:N,hasOverflow:W,padding:q,paddingAbsolute:H,directionRTL:A,destroyed:i})},elements(){const{gt:L,bt:O,cn:A,D:T,wt:R,kt:N,Zt:W}=S.gn,{qt:q,Jt:H}=S.bn,I=$=>{const{Vt:G,Mt:Z,Ut:K}=$;return{scrollbar:K,track:Z,handle:G}},k=$=>{const{Wt:G,Xt:Z}=$,K=I(G[0]);return ge({},K,{clone:()=>{const X=I(Z());return E({vn:!0}),X}})};return ge({},{target:L,host:O,padding:A||T,viewport:T,content:R||T,scrollOffsetElement:N,scrollEventElement:W,scrollbarHorizontal:k(q),scrollbarVertical:k(H)})},update:L=>E({Tt:L,At:!0}),destroy:ce(P,!1),plugin:L=>c[Pt(L)[0]]};return we(l,[x]),TS(s,D),a_(o_,Rr,[D,p,c]),RS(S.gn.Rt,!o&&e.cancel)?(P(!0),D):(we(l,w()),_("initialized",[D]),D.update(!0),D)}return a};Rr.plugin=e=>{const t=ht(e),r=t?e:[e],n=r.map((o=>a_(o,Rr)[0]));return _S(r),t?n:n[0]};Rr.valid=e=>{const t=e&&e.elements,r=It(t)&&t();return fs(r)&&!!c_(r.target)};Rr.env=()=>{const{P:e,T:t,L:r,K:n,J:o,st:s,et:a,G:i,tt:l,nt:c,ot:u}=st();return ge({},{scrollbarsSize:e,scrollbarsOverlaid:t,scrollbarsHiding:r,rtlScrollBehavior:n,scrollTimeline:o,staticDefaultInitialization:s,staticDefaultOptions:a,getDefaultInitialization:i,setDefaultInitialization:l,getDefaultOptions:c,setDefaultOptions:u})};var d_="wds_1_319_0_useOverlayScrollbarinitialization";se.bind(null,d_);ae.bind(null,d_);var f_="wds_1_319_0_useOverlayScrollbar",US=se.bind(null,f_);ae.bind(null,f_);var WS=US,VS={root:"wds_1_319_0_useOverlayScrollbar__root"};function wd(...e){return function(t){for(const r of e)typeof r=="function"?r(t):r&&(r.current=t)}}const zS={scrollbars:{autoHide:"leave",autoHideDelay:0}},KS=e=>{const t=b.useRef(zS),r=b.useRef(null),n=b.useRef(null),o=b.useRef(null),s=b.useCallback(l=>{Rr.valid(o.current)||typeof window>"u"||(o.current=Rr({target:l,elements:{content:n.current,viewport:n.current}},t.current))},[t]);b.useEffect(()=>(r.current&&s(r.current),()=>{var l;return(l=o.current)==null?void 0:l.destroy()}),[s]);const a=b.useCallback(({children:l,className:c,...u})=>v.createElement("div",{"data-overlayscrollbars-initialize":"",className:WS(VS.root,c),ref:r,...u},l),[]),i=b.useMemo(()=>GS(n),[n]);return[a,i]},GS=e=>b.forwardRef(({children:t,...r},n)=>v.createElement("div",{"data-overlayscrollbars-contents":!0,ref:wd(n,e),...r},t)),YS=e=>b.forwardRef((t,r)=>{const[n,o]=KS();return v.createElement(e,{...t,ref:r,overlayScrollbarProps:{OverlayScrollbarHostElement:n,OverlayScrollbarContentElement:o}})}),XS={OVERLAY:"overlay"},km=["mouseup","touchend"],Ee={arrowLeft:"ArrowLeft",arrowUp:"ArrowUp",arrowRight:"ArrowRight",arrowDown:"ArrowDown",escape:"Escape",tab:"Tab",enter:"Enter",space:" ",home:"Home",end:"End"},qt={action:"action",select:"select"},Oe=-1,ZS="-",JS=50,p_=new WeakMap,Pm=e=>e==="mouse"||e==="pen",Dm=e=>{e&&p_.set(e,Date.now())},Nm=e=>{if(!e)return!1;const t=p_.get(e);return t!==void 0&&Date.now()-t<JS},QS=({isDisabled:e,onHoverStart:t,onHoverEnd:r}={})=>({onPointerEnter:n=>{Dm(n.currentTarget),!(e||!Pm(n.pointerType))&&(t==null||t(n))},onPointerLeave:n=>{Dm(n.currentTarget),Pm(n.pointerType)&&(r==null||r(n))},onMouseEnter:n=>{Nm(n.currentTarget)||e||t==null||t(n)},onMouseLeave:n=>{Nm(n.currentTarget)||r==null||r(n)}}),eO=(e,t)=>(e%t+t)%t,Zi=e=>ed(e)?e:`${e}px`;class Nn extends b.PureComponent{constructor(t){super(t),this.setScrollElement=r=>{this.setState({scrollElement:r})}
43,this.containerRef=v.createRef(),this.optionsRef=v.createRef(),this.loadedWithUndefinedOptions=!1,this._boundEvents=[],this.focusableItemsIdsList=[],this.savedOnClicks=[],this.children={},this.selectedOption=null,this._isDialogMode=()=>{const{fixedHeader:r,fixedFooter:n}=this.props;return!!(r||n)},this._onMouseEventsHandler=r=>{this._checkIfEventOnElements(r,[this.containerRef.current])||this._onClickOutside(r)},this._onClickOutside=r=>{const{visible:n,onClickOutside:o}=this.props;n&&o&&o(r)},this._onSelect=(r,n)=>{const{onSelect:o,listType:s}=this.props,a=this.props.options||[];if(s!==qt.select){n.stopPropagation(),this._onClose();return}const i=a[r];if(i){const l=i.id===this.state.selectedId;o&&(n.stopPropagation(),o(i,l))}return this._isControlled()||this.setState({selectedId:i&&i.id}),!!o&&i},this._onActionClick=r=>{var o;const n=(o=this.savedOnClicks.find(({id:s})=>s===r.id))==null?void 0:o.onClick;n&&n(r)},this._saveOnClicks=()=>{const r=this.props.options||[];this.savedOnClicks=r.map(({id:n,onClick:o})=>({id:n,onClick:o}))},this._onOptionHoverStart=r=>{var o,s;const{options:n=[]}=this.props;if(this._isSelectableOption(n[r])){const a=n[r];(s=(o=this.props).onOptionsNavigate)==null||s.call(o,a),this._markOption(r)}},this._onOptionHoverEnd=()=>{this._markOption(Oe)},this._onContainerMouseLeave=r=>{var n,o;(o=(n=this.props).onOptionsNavigate)==null||o.call(n,null),this._markOption(Oe),this.props.onMouseLeave&&this.props.onMouseLeave(r)},this._focusOnOption=()=>{const{focusOnOption:r}=this.props,o=(this.props.options||[]).findIndex(s=>s.id===r);o!==-1?this._markOptionAtIndex(o):this._markOption(o)},this._markOptionAtIndex=r=>{this._markOption(r),this._scrollIntoViewByIndex(r)},this._scrollIntoViewByIndex=r=>{var a,i;const{infiniteScroll:n}=this.props,o=this.optionsRef.current,s=n?(a=this.optionsRef.current)==null?void 0:a.childNodes[0].childNodes[r]:(i=this.optionsRef.current)==null?void 0:i.childNodes[r];Ux(o,s)},this._onSelectListKeyDown=r=>{var n,o;if(!this.props.visible||this.props.isComposing||this.props.listType!==qt.select)return!1;switch(r.key){case Ee.arrowDown:return this._isArrowNavigationDisabled(r)?!1:(this._markNextStep(1),r.preventDefault(),r.stopPropagation(),!0);case Ee.arrowUp:return this._isArrowNavigationDisabled(r)?!1:(this._markNextStep(-1),r.preventDefault(),r.stopPropagation(),!0);case Ee.space:case Ee.enter:return this._isEventFromFixedRegion(r)?!1:this.state.hovered!==Oe?(this._onSelect(this.state.hovered,r),this.props.closeOnSelect&&this._onClose(),!0):!1;case Ee.tab:return this._isDialogMode()?!1:this.state.hovered!==Oe?(r.preventDefault(),this._onSelect(this.state.hovered,r),this.props.closeOnSelect&&this._onClose(),!0):(this._onClose(),!!!((o=(n=r.target)==null?void 0:n.value)==null?void 0:o.trim()));case Ee.arrowRight:{if(this.state.hovered===Oe)return!1;const{onDrillIn:s}=this.props;if(typeof s=="function"){const i=(this.props.options??[])[this.state.hovered];return s(i),r.preventDefault(),r.stopPropagation(),!0}return!1}case Ee.escape:return this._onClose(),r.stopPropagation(),!0;default:return!1}},this._focus=(r,n)=>{n&&n.preventDefault();const o=this.children[r];if(!o)return;const s=o.focus,a=o.wrappedComponentRef,i=s?o.focus:a?a.innerComponentRef.focus:()=>({});this.setState({focusedItemId:r},()=>i==null?void 0:i())},this._handleActionListNavigation=(r,n)=>{const o=this.focusableItemsIdsList.length;let s=this.state.focusedItemId;const{key:a}=r,i=this.focusableItemsIdsList.indexOf(n),l=this.focusableItemsIdsList[0],c=this.focusableItemsIdsList[o-1];(a===Ee.arrowLeft||a===Ee.arrowUp)&&(s=n===0?c:this.focusableItemsIdsList[i-1]),(a===Ee.arrowRight||a===Ee.arrowDown)&&(s=i===o-1?l:this.focusableItemsIdsList[i+1]),a===Ee.home&&(s=l),a===Ee.end&&(s=c),s!==this.state.focusedItemId&&(this._focus(s,r),this._scrollIntoViewByIndex(s))},this._onActionListKeyDown=(r,n)=>{if(this.props.listType===qt.action){const{key:c}=r;
43c===Ee.space||c===Ee.enter?(r.preventDefault(),this._onActionClick({id:this.state.focusedItemId}),this._onClose()):c===Ee.escape||c===Ee.tab?this._onClose():this._handleActionListNavigation(r,n),r.stopPropagation();return}const o=r.currentTarget,s=document.activeElement;if(!(o.contains(s)&&s!==o))return;const{key:i}=r,l=()=>{this.props.onDrillOut?this.props.onDrillOut():this.optionsRef.current&&this.optionsRef.current.focus()};(i===Ee.escape||i===Ee.arrowLeft)&&(r.preventDefault(),r.stopPropagation(),l()),(i===Ee.enter||i===Ee.space)&&r.stopPropagation(),(i===Ee.arrowDown||i===Ee.arrowUp)&&(r.preventDefault(),r.stopPropagation())},this._onClose=()=>{var r,n;(n=(r=this.props).onOptionsNavigate)==null||n.call(r,null),this._markOption(Oe),this.props.onClose&&this.props.onClose()},this._onFixedRegionFocus=()=>{this.state.hovered!==Oe&&this._markOption(Oe)},this._wrapWithInfiniteScroll=r=>(this.optionsRef.current||(this.loadedWithUndefinedOptions=!0),v.createElement(zb,{useWindow:!0,dataHook:Mt.INFINITE_SCROLL_CONTAINER,scrollElement:this.state.scrollElement,loadMore:this.props.loadMore,hasMore:this.props.hasMore,data:this.props.options,loader:v.createElement("div",{className:We.loader()},v.createElement(tr,{dataHook:Kx,size:"small"}))},r)),this._getDataAttributes=()=>{const{visible:r,dropDirectionUp:n}=this.props,{selectedId:o}=this.state;return is({"data-hook":Mt.CONTENT_CONTAINER,[Wx]:r,[zx]:o===0?`${o}`:o,[Vx]:n?Zh.UP:Zh.DOWN},(s,a)=>!!a)},this._getItemDataAttr=({hovered:r,selected:n,disabled:o})=>{const{itemHeight:s,selectedHighlight:a}=this.props;return is({[Fo.DISABLED]:o,[Fo.SELECTED]:n&&a,[Fo.HOVERED]:r,[Fo.SIZE]:s},(i,l)=>!!l)},this._isSelectableOption=r=>{if(!r||this._isDivider(r))return!1;const n=r.title;return!this._isDivider(r)&&!r.disabled&&!n}
43,this.state={hovered:Oe,selectedId:t.selectedId,scrollElement:null,focusedItemId:null}}componentDidMount(){this.loadedWithUndefinedOptions&&this.optionsRef.current&&this.forceUpdate();const{focusOnSelectedOption:t,scrollToOption:r,autoFocus:n}=this.props;t?this._focusOnSelectedOption():this.props.hasOwnProperty("focusOnOption")&&this._focusOnOption(),r&&this._scrollToOption(),this._markOptionByProperty(this.props),km.forEach(o=>{document.addEventListener(o,this._onMouseEventsHandler,!0)}),this._boundEvents=km,!this._isDialogMode()&&n&&this._focusFirstOption()}componentWillUnmount(){this._boundEvents&&typeof document<"u"&&this._boundEvents.forEach(t=>{document.removeEventListener(t,this._onMouseEventsHandler,!0)})}componentDidUpdate(t){const{focusOnOption:r}=this.props;t.focusOnOption!==r&&this._focusOnOption()}UNSAFE_componentWillReceiveProps(t){const r=this.props.options||[],n=t.options||[];this.props.visible!==t.visible&&this._markOption(Oe),this.props.selectedId!==t.selectedId&&this.setState({selectedId:t.selectedId}),this.state.hovered!==Oe&&(!n[this.state.hovered]||r[this.state.hovered].id!==n[this.state.hovered].id)&&this._markOption(this._findIndex(t.options??[],o=>o.id===r[this.state.hovered].id)),this._markOptionByProperty(t)}_getOptionElementId(t){return`dropdown-item-${t}`}_focusFirstOption(){this._focus(this.focusableItemsIdsList[0])}_checkIfEventOnElements(t,r){let n=t.target;for(;n.parentNode;){if(r.indexOf(n)>-1)return!0;n=n.parentNode}return n!==document}_renderTopArrow(){const{withArrow:t,visible:r}=this.props;return t&&r?v.createElement("div",{"data-hook":Mt.TOP_ARROW,className:We.arrow()}):null}_convertOptionToListItemSectionBuilder({option:t,idx:r}){return this._isDivider(t)?ls({dataHook:Xh.DIVIDER,id:t.id||r,type:"divider"}):t.title?ls({dataHook:Xh.TITLE,id:t.id,type:"subheader",title:t.value}):void 0}_convertOptionToListItemActionBuilder({option:t,idx:r}){const{id:n,value:o,disabled:s,disabledDescription:a,optionTitle:i,title:l,...c}=t,{size:u}=this.props;return U5({id:n!==void 0?n:r,ref:d=>this.children[n]=d,tabIndex:n===this.state.focusedItemId&&!s?"0":"-1",disabled:s,disabledDescription:a,title:i,role:"menuitem",size:u,...c})}_isControlled(){return typeof this.props.selectedId<"u"&&typeof this.props.onSelect<"u"}_focusOnSelectedOption(){this.selectedOption&&this.optionsRef.current&&(this.optionsRef.current.scrollTop=Math.max(this.selectedOption.offsetTop-this.selectedOption.offsetHeight,0))}_setSelectedOptionNode(t,r){r.id===this.state.selectedId&&(this.selectedOption=t)}_markOption(t,r){const{onOptionMarked:n}=this.props;if(r=r||this.props.options||[],this.setState({hovered:t}),n){const o=r[t]||null,s=t===Oe?void 0:this._getOptionElementId(t);n(o,s)}}_getMarkedIndex(){const t=this.props.options||[],r=this.state.hovered>Oe,n=typeof this.state.selectedId<"u";let o;return r?o=this.state.hovered:n?o=t.findIndex(s=>s.id===this.state.selectedId):o=Oe,o}getActiveDescendentElementId(){const t=this.props.options||[];let r=this._getMarkedIndex();return r===Oe&&(r=t.findIndex(this._isSelectableOption)),r===Oe?void 0:this._getOptionElementId(r)}_markNextStep(t){const{onOptionsNavigate:r,options:n=[]}=this.props;if(!n.some(this._isSelectableOption))return;let o=this._getMarkedIndex();do o=eO(Math.max(o+t,-1),n.length);while(!this._isSelectableOption(n[o]));const s=n[o];r==null||r(s),this._markOptionAtIndex(o)}_scrollToOption(){var s;const{scrollToOption:t}=this.props,n=(this.props.options||[]).findIndex(a=>a.id===t),o=(s=this.optionsRef.current)==null?void 0:s.childNodes[n];!o||!this.optionsRef.current||(this.optionsRef.current.scrollTop=Math.max(o.offsetTop-o.offsetHeight,0))}_isEventFromFixedRegion(t){const n=t.target.closest("[data-dropdown-region]");if(!n)return!1;const o=n.getAttribute("data-dropdown-region");return o==="header"||o==="footer"}_isArrowNavigationDisabled(t){return this._isEventFromFixedRegion(t)}_renderNode(t,r){return t?v.createElement("div",{"data-dropdown-region":r,onFocus:this._onFixedRegionFocus},t):null}_convertCustomOptionToBuilder({option:t}){const{value:r,id:n,disabled:o,disabledDescription:s,overrideOptionStyle:a,overrideStyle:i}=t;if(i)return{id:n,disabled:o,disabledDescription:s,overrideStyle:i,value:()=>v.createElement("div",{className:We.dropdownOption(),"data-hook":Mt.OPTION},r)};if(a)return{id:n,disabled:o,disabledDescription:s,overrideOptionStyle:a,value:()=>v.createElement("div",{className:We.dropdownOption(),"data-hook":Mt.OPTION},r)}}_convertOptionToListItemSelectBuilder({option:t}){const{value:r,id:n,disabled:o,disabledDescription:s}=t,{selectedId:a}=this.state,{itemHeight:i,selectedHighlight:l,size:c}=this.props;return my({id:n,title:v.createElement("div",{"data-hook":Mt.OPTION},r),disabled:o,disabledDescription:s,size:c,className:We.selectableOption({itemHeight:i})})}_isBuilderOption(t){const{value:r}=t;return typeof r=="function"}_isCustomOption(t){const{overrideOptionStyle:r,overrideStyle:n}=t;return r||n}_isActionOption(t){return"value"in t&&t.value===qt.action}_isItemSection(t){const{title:r}=t;return this._isDivider(t)||r}_isDivider(t){return t.value===ZS}_convertOptionToBuilder(t,r){return this._isBuilderOption(t)?t:this._isActionOption(t)?this._convertOptionToListItemActionBuilder({option:t,i
43dx:r}):this._isItemSection(t)?this._convertOptionToListItemSectionBuilder({option:t,idx:r}):this._isCustomOption(t)?this._convertCustomOptionToBuilder({option:t}):this._convertOptionToListItemSelectBuilder({option:t})}_renderOption({option:t,idx:r}){const n=l=>"id"in l&&"value"in l&&typeof l.value!="function",o=this._convertOptionToBuilder(t,r),s=n(t)&&!!t.linkTo,a=this._renderOptionContent({option:o,idx:r,hasLink:s}),i=this.props.listType===qt.action;return s?v.createElement("a",{className:We.linkItem(),key:r,"data-hook":Mt.LINK_ITEM,href:t.linkTo,role:i?void 0:"option","aria-selected":i||t.disabled?void 0:t.id===this.state.selectedId,"aria-hidden":t.disabled},a):a}_renderOptionContent({option:t,idx:r,hasLink:n}){if(!t)return;const{selectedHighlight:o,listType:s}=this.props,{selectedId:a,hovered:i}=this.state,{id:l,disabled:c,disabledDescription:u,overrideStyle:d,overrideOptionStyle:p}=t,f={selected:l===a,hovered:r===i,disabled:c,size:this.props.size};(!c||c&&!!u)&&(this.focusableItemsIdsList=[...this.focusableItemsIdsList,l]);const m=s===qt.action;return v.createElement("div",{"aria-selected":n||m||c?void 0:f.selected,"aria-hidden":c,...this._getItemDataAttr({...f}),role:n||m?void 0:"option",className:p?void 0:We.option({...f,selected:f.selected&&o,overrideStyle:d}),id:this._getOptionElementId(r),ref:g=>this._setSelectedOptionNode(g,t),onClick:c?void 0:g=>this._onSelect(r,g),key:r,...QS({onHoverStart:()=>this._onOptionHoverStart(r),onHoverEnd:()=>this._onOptionHoverEnd()}),"data-hook":`dropdown-item-${l}`,onKeyDown:g=>this._onActionListKeyDown(g,l)},t==null?void 0:t.value(f))}_markOptionByProperty(t){const r=t.options||[];if(this.state.hovered===Oe&&t.markedOption){const n=r.filter(this._isSelectableOption);if(n.length){const o=t.markedOption===!0?n[0].id:t.markedOption,s=this._findIndex(r,a=>a.id===o);s!==-1&&this._markOption(s,t.options)}}}_findIndex(t,r){return(Array.isArray(t)?t:[]).findIndex(r)}_renderOptions(){return this.focusableItemsIdsList=[],this._saveOnClicks(),(this.props.options||[]).map((r,n)=>this._renderOption({option:r,idx:n}))}render(){var D;const{className:t,visible:r,dropDirectionUp:n,onMouseEnter:o,onMouseDown:s,fixedHeader:a,withArrow:i,fixedFooter:l,inContainer:c,overflow:u,maxHeightPixels:d=260,minWidthPixels:p,infiniteScroll:f,dataHook:h,listType:m,overlayScrollbarProps:g,listboxId:y}=this.props,_=this._renderOptions(),w=g==null?void 0:g.OverlayScrollbarHostElement,E=g==null?void 0:g.OverlayScrollbarContentElement,C={style:{maxHeight:Zi(parseInt(String(d),10)-35),overflow:u},"data-hook":Mt.DROPDOWN_LAYOUT_OPTIONS,role:m===qt.select?"listbox":"menu",id:y,tabIndex:this._isDialogMode()?0:-1,"aria-activedescendant":this.state.hovered!==Oe?this._getOptionElementId(this.state.hovered):void 0},S=f?this._wrapWithInfiniteScroll(_):_,x=this.props.scrollbar===XS.OVERLAY&&w&&E?v.createElement(w,{className:We.options(),...C},v.createElement(E,{className:We.optionsContent(),ref:wd(this.optionsRef,this.setScrollElement)},S)):v.createElement("div",{className:We.options({},We.optionsContent()),ref:wd(this.optionsRef,this.setScrollElement),...C},S),P=!a&&!l&&!((D=this.props.options)!=null&&D.length)&&(!this.props.infiniteScroll||!this.props.hasMore);return v.createElement("div",{"data-list-type":m,"data-hook":h,className:We.root({hidden:P,visible:r,withArrow:i,direction:n?"up":"down",containerStyles:!c},t),onKeyDown:this._onSelectListKeyDown,onMouseEnter:o,onMouseLeave:this._onContainerMouseLeave,onMouseDown:s,ref:this.containerRef},v.createElement("div",{...this._getDataAttributes(),className:We.contentContainer(),style:{overflow:u,maxHeight:d?Zi(d):void 0,minWidth:p?Zi(p):void 0}},this._renderNode(a,"header"),x,this._renderNode(l,"footer")),this._renderTopArrow())}}Nn.defaultProps={options:[],tabIndex:0,maxHeightPixels:260,closeOnSelect:!0,itemHeight:"small",selectedHighlight:!0,inContainer:!1,infiniteScroll:!1,loadMore:void 0,hasMore:!1,markedOption:!1,overflow:"auto",listType:qt.select,scrollbar:"fixed"};Nn.displayName="DropdownLayout";Nn.NONE_SELECTED_ID=Oe;const tO=YS(Nn),h_=b.createContext(null),m_=()=>{const e=b.useContext(h_);if(e===null)throw new Error("<PopoverNext.Trigger /> and <PopoverNext.Content /> components must be wrapped with <PopoverNext />");return e},rO=$e("popover-next-trigger");function vr(e){let t=e.activeElement;for(;((r=t)==null||(r=r.shadowRoot)==null?void 0:r.activeElement)!=null;){var r;t=t.shadowRoot.activeElement}return t}function De(e,t){if(!e||!t)return!1;const r=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;
vendor: 5,968 bytes, lines 43-46
43if(r&&vE(r)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function v_(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function g_(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:r,version:n}=t;return r+"/"+n}).join(" "):navigator.userAgent}function nO(e){return e.mozInputSource===0&&e.isTrusted?!0:Ed()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function oO(e){return aO()?!1:!Ed()&&e.width===0&&e.height===0||Ed()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function sO(){return/apple/i.test(navigator.vendor)}function Ed(){const e=/android/i;return e.test(v_())||e.test(g_())}function aO(){return g_().includes("jsdom/")}function uo(e,t){const r=["mouse","pen"];return t||r.push("",void 0),r.includes(e)}function iO(e){return"nativeEvent"in e}function lO(e){return e.matches("html,body")}function Fe(e){return(e==null?void 0:e.ownerDocument)||document}function Ji(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const r=e;return r.target!=null&&t.contains(r.target)}function Vt(e){return"composedPath"in e?e.composedPath()[0]:e.target}const cO="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function b_(e){return Wt(e)&&e.matches(cO)}function Qi(e){e.preventDefault(),e.stopPropagation()}function uO(e){return e?e.getAttribute("role")==="combobox"&&b_(e):!1}/*! 44* tabbable 6.5.0 45* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE 46*/var dO=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","area[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],vs=dO.join(","),y_=typeof Element>"u",wn=y_?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,gs=!y_&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},bs=function(t,r){var n;r===void 0&&(r=!0);var o=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert"),s=o===""||o==="true",a=s||r&&t&&(typeof t.closest=="function"?t.closest("[inert]"):bs(t.parentNode));return a},fO=function(t){var r,n=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"contenteditable");return n===""||n==="true"},pO=function(t,r,n){if(bs(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(vs));return r&&wn.call(t,vs)&&o.unshift(t),o=o.filter(n),o},Cd=function(t,r,n){for(var o=[],s=Array.from(t);s.length;){var a=s.shift();if(!bs(a,!1))if(a.tagName==="SLOT"){var i=a.assignedElements(),l=i.length?i:a.children,c=Cd(l,!0,n);n.flatten?o.push.apply(o,c):o.push({scopeParent:a,candidates:c})}else{var u=wn.call(a,vs);u&&n.filter(a)&&(r||!t.includes(a))&&o.push(a);var d=a.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(a),p=!bs(d,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(d&&p){var f=Cd(d===!0?a.children:d.children,!0,n);n.flatten?o.push.apply(o,f):o.push({scopeParent:a,candidates:f})}else s.unshift.apply(s,a.children)}}return o},__=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},w_=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||fO(t))&&!__(t)?0:t.tabIndex},hO=function(t,r){var n=w_(t);return n<0&&r&&!__(t)?0:n},mO=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},E_=function(t){return t.tagName==="INPUT"},vO=function(t){return E_(t)&&t.type==="hidden"},gO=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return r},bO=function(t,r){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===r)return t[n]},yO=function(t){if(!t.name)return!0;var r=t.form||gs(t),n=function(i){return r.querySelectorAll('input[type="radio"][name="'+i+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=n(window.CSS.escape(t.name));else try{o=n(t.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var s=bO(o,t.form);return!s||s===t},_O=function(t){return E_(t)&&t.type==="radio"},wO=function(t){return _O(t)&&!yO(t)},EO=function(t){var r,n=t&&gs(t),o=(r=n)===null||r===void 0?void 0:r.host,s=!1;if(n&&n!==t){var a,i,l;for(s=!!((a=o)!==null&&a!==void 0&&(i=a.ownerDocument)!==null&&i!==void 0&&i.contains(o)||t!=null&&(l=t.ownerDocument)!==null&&l!==void 0&&l.contains(t));!s&&o;){var c,u,d;n=gs(o),o=(c=n)===null||c===void 0?void 0:c.host,s=!!((u=o)!==null&&u!==void 0&&(d=u.ownerDocument)!==null&&d!==void 0&&d.contains(o))}}return s},Lm=function(t){var r=t.getBoundingClientRect(),n=r.width,o=r.height;return n===0&&o===0},CO=function(t,r){var n=r.displayCheck,o=r.getShadowRoot;if(n==="full-native"&&"checkVisibility"in t){var s=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!s}var a=getComputedStyle(t),i=a.visibility;if(i==="hidden"||i==="collapse")return!0;var l=wn.call(t,"details>summary:first-of-type"),c=l?t.parentElement:t;if(wn.call(c,"details:not([open]) *"))return!0;
46if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof o=="function"){for(var u=t;t;){var d=t.parentElement,p=gs(t);if(d&&!d.shadowRoot&&o(d)===!0)return Lm(t);t.assignedSlot?t=t.assignedSlot:!d&&p!==t.ownerDocument?t=p.host:t=d}t=u}if(EO(t))return!t.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return Lm(t);return!1},xO=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var o=r.children.item(n);if(o.tagName==="LEGEND")return wn.call(r,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}r=r.parentElement}return!1},IO=function(t,r){return!(r.disabled||vO(r)||CO(r,t)||gO(r)||xO(r))},xd=function(t,r){return!(wO(r)||w_(r)<0||!IO(t,r))},SO=function(t){var r=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},C_=function(t){var r=[],n=[];return t.forEach(function(o,s){var a=!!o.scopeParent,i=a?o.scopeParent:o,l=hO(i,a),c=a?C_(o.candidates):i;l===0?a?r.push.apply(r,c):r.push(i):n.push({documentOrder:s,tabIndex:l,item:o,isScope:a,content:c})}),n.sort(mO).reduce(function(o,s){return s.isScope?o.push.apply(o,s.content):o.push(s.content),o},[]).concat(r)},Ms=function(t,r){r=r||{};var n;return r.getShadowRoot?n=Cd([t],r.includeContainer,{filter:xd.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:SO}):n=pO(t,r.includeContainer,xd.bind(null,r)),C_(n)},OO=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return wn.call(t,vs)===!1?!1:xd(r,t)};function x_(e){return b.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})},e)}const I_={..._E},RO=I_.useInsertionEffect,TO=RO||(e=>e());function dt(e){const t=b.useRef(()=>{});return TO(()=>{t.current=e}),b.useCallback(function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t.current==null?void 0:t.current(...n)},[])}var ke=typeof document<"u"?b.useLayoutEffect:b.useEffect;function En(){return En=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},En.apply(this,arguments)}let $m=!1,AO=0;const Mm=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+AO++;function kO(){const[e,t]=b.useState(()=>$m?Mm():void 0);return ke(()=>{e==null&&t(Mm())},[]),b.useEffect(()=>{$m=!0},[]),e}const PO=I_.useId,Fs=PO||kO,DO=b.forwardRef(function(t,r){const{context:{placement:n,elements:{floating:o},middlewareData:{arrow:s,shift:a}},width:i=14,height:l=7,tipRadius:c=0,strokeWidth:u=0,staticOffset:d,stroke:p,d:f,style:{transform:h,...m}={},...g}=t,y=Fs(),[_,w]=b.useState(!1);if(ke(()=>{if(!o)return;d0(o).direction==="rtl"&&w(!0)},[o]),!o)return null;const[E,C]=n.split("-"),S=E==="top"||E==="bottom";let x=d;(S&&a!=null&&a.x||!S&&a!=null&&a.y)&&(x=null);const P=u*2,D=P/2,L=i/2*(c/-8+1),O=l/2*c/4,A=!!f,T=x&&C==="end"?"bottom":"top";let R=x&&C==="end"?"right":"left";x&&_&&(R=C==="end"?"left":"right");const N=(s==null?void 0:s.x)!=null?x||s.x:"",W=(s==null?void 0:s.y)!=null?x||s.y:"",q=f||"M0,0"+(" H"+i)+(" L"+(i-L)+","+(l-O))+(" Q"+i/2+","+l+" "+L+","+(l-O))+" Z",H={top:A?"rotate(180deg)":"",left:A?"rotate(90deg)":"rotate(-90deg)",bottom:A?"":"rotate(180deg)",right:A?"rotate(-90deg)":"rotate(90deg)"}[E];return b.createElement("svg",En({},g,{"aria-hidden":!0,ref:r,width:A?i:i+P,height:i,viewBox:"0 0 "+i+" "+(l>i?l:i),style:{position:"absolute",pointerEvents:"none",[R]:N,[T]:W,[E]:S||A?"100%":"calc(100% - "+P/2+"px)",transform:[H,h].filter(I=>!!I).join(" "),...m}}),P>0&&b.createElement("path",{clipPath:"url(#"+y+")",fill:"none",stroke:p,strokeWidth:P+(f?0:1),d:q}),b.createElement("path",{stroke:P&&!f?g.fill:"none",d:q}),b.createElement("clipPath",{id:y},b.createElement("rect",{x:-D,y:D*(A?-1:1),width:i+P,height:i})))});function NO(){const e=new Map;return{emit(t,r){var n;(n=e.get(t))==null||n.forEach(o=>o(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){var n;e.set(t,((n=e.get(t))==null?void 0:n.filter(o=>o!==r))||[])}}}const LO=b.createContext(null),$O=b.createContext(null),ff=()=>{var e;return((e=b.useContext(LO))==null?void 0:e.id)||null},Bs=()=>b.useContext($O);function Cn(e){return"data-floating-ui-"+e}function Et(e){const t=b.useRef(e);return ke(()=>{t.current=e}),t}const Fm=Cn("safe-polygon");function el(e,t,r){return r&&!uo(r)?0:typeof e=="number"?e:e==null?void 0:e[t]}function MO(e,t){t===void 0&&(t={});const{open:r,onOpenChange:n,dataRef:o,events:s,elements:a}=e,{enabled:i=!0,delay:l=0,handleClose:c=null,mouseOnly:u=!1,restMs:d=0,move:p=!0}
46=t,f=Bs(),h=ff(),m=Et(c),g=Et(l),y=Et(r),_=b.useRef(),w=b.useRef(-1),E=b.useRef(),C=b.useRef(-1),S=b.useRef(!0),x=b.useRef(!1),P=b.useRef(()=>{}),D=b.useRef(!1),L=b.useCallback(()=>{var q;const H=(q=o.current.openEvent)==null?void 0:q.type;return(H==null?void 0:H.includes("mouse"))&&H!=="mousedown"},[o]);b.useEffect(()=>{if(!i)return;function q(H){let{open:I}=H;I||(clearTimeout(w.current),clearTimeout(C.current),S.current=!0,D.current=!1)}return s.on("openchange",q),()=>{s.off("openchange",q)}},[i,s]),b.useEffect(()=>{if(!i||!m.current||!r)return;function q(I){L()&&n(!1,I,"hover")}const H=Fe(a.floating).documentElement;return H.addEventListener("mouseleave",q),()=>{H.removeEventListener("mouseleave",q)}},[a.floating,r,n,i,m,L]);const O=b.useCallback(function(q,H,I){H===void 0&&(H=!0),I===void 0&&(I="hover");const k=el(g.current,"close",_.current);k&&!E.current?(clearTimeout(w.current),w.current=window.setTimeout(()=>n(!1,q,I),k)):H&&(clearTimeout(w.current),n(!1,q,I))},[g,n]),A=dt(()=>{P.current(),E.current=void 0}),T=dt(()=>{if(x.current){const q=Fe(a.floating).body;q.style.pointerEvents="",q.removeAttribute(Fm),x.current=!1}}),R=dt(()=>o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1);b.useEffect(()=>{if(!i)return;function q($){if(clearTimeout(w.current),S.current=!1,u&&!uo(_.current)||d>0&&!el(g.current,"open"))return;const G=el(g.current,"open",_.current);G?w.current=window.setTimeout(()=>{y.current||n(!0,$,"hover")},G):r||n(!0,$,"hover")}function H($){if(R())return;P.current();const G=Fe(a.floating);if(clearTimeout(C.current),D.current=!1,m.current&&o.current.floatingContext){r||clearTimeout(w.current),E.current=m.current({...o.current.floatingContext,tree:f,x:$.clientX,y:$.clientY,onClose(){T(),A(),R()||O($,!0,"safe-polygon")}});const K=E.current;G.addEventListener("mousemove",K),P.current=()=>{G.removeEventListener("mousemove",K)};return}(_.current==="touch"?!De(a.floating,$.relatedTarget):!0)&&O($)}function I($){R()||o.current.floatingContext&&(m.current==null||m.current({...o.current.floatingContext,tree:f,x:$.clientX,y:$.clientY,onClose(){T(),A(),R()||O($)}})($))}if(He(a.domReference)){var k;const $=a.domReference;return r&&$.addEventListener("mouseleave",I),(k=a.floating)==null||k.addEventListener("mouseleave",I),p&&$.addEventListener("mousemove",q,{once:!0}),$.addEventListener("mouseenter",q),$.addEventListener("mouseleave",H),()=>{var G;r&&$.removeEventListener("mouseleave",I),(G=a.floating)==null||G.removeEventListener("mouseleave",I),p&&$.removeEventListener("mousemove",q),$.removeEventListener("mouseenter",q),$.removeEventListener("mouseleave",H)}}},[a,i,e,u,d,p,O,A,T,n,r,y,f,g,m,o,R]),ke(()=>{var q;if(i&&r&&(q=m.current)!=null&&q.__options.blockPointerEvents&&L()){x.current=!0;const I=a.floating;if(He(a.domReference)&&I){var H;const k=Fe(a.floating).body;k.setAttribute(Fm,"");const $=a.domReference,G=f==null||(H=f.nodesRef.current.find(Z=>Z.id===h))==null||(H=H.context)==null?void 0:H.elements.floating;return G&&(G.style.pointerEvents=""),k.style.pointerEvents="none",$.style.pointerEvents="auto",I.style.pointerEvents="auto",()=>{k.style.pointerEvents="",$.style.pointerEvents="",I.style.pointerEvents=""}}}},[i,r,h,a,f,m,L]),ke(()=>{r||(_.current=void 0,D.current=!1,A(),T())},[r,A,T]),b.useEffect(()=>()=>{A(),clearTimeout(w.current),clearTimeout(C.current),T()},[i,a.domReference,A,T]);const N=b.useMemo(()=>{function q(H){_.current=H.pointerType}return{onPointerDown:q,onPointerEnter:q,onMouseMove(H){const{nativeEvent:I}=H;function k(){!S.current&&!y.current&&n(!0,I,"hover")}u&&!uo(_.current)||r||d===0||D.current&&H.movementX**2+H.movementY**2<2||(clearTimeout(C.current),_.current==="touch"?k():(D.current=!0,C.current=window.setTimeout(k,d)))}}},[u,n,r,y,d]),W=b.useMemo(()=>({onMouseEnter(){clearTimeout(w.current)},onMouseLeave(q){R()||O(q.nativeEvent,!1)}}),[O,R]);return b.useMemo(()=>i?{reference:N,floating:W}:{},[i,N,W])}let Bm=0;function Ur(e,t){t===void 0&&(t={});const{preventScroll:r=!1,cancelPrevious:n=!0,sync:o=!1}=t;n&&cancelAnimationFrame(Bm);const s=()=>e==null?void 0:e.focus({preventScroll:r});o?s():Bm=requestAnimationFrame(s)}function FO(e,t){var r;let n=[],o=(r=e.find(s=>
46s.id===t))==null?void 0:r.parentId;for(;o;){const s=e.find(a=>a.id===o);o=s==null?void 0:s.parentId,s&&(n=n.concat(s))}return n}function an(e,t){let r=e.filter(o=>{var s;return o.parentId===t&&((s=o.context)==null?void 0:s.open)}),n=r;for(;n.length;)n=e.filter(o=>{var s;return(s=n)==null?void 0:s.some(a=>{var i;return o.parentId===a.id&&((i=o.context)==null?void 0:i.open)})}),r=r.concat(n);return r}let Wr=new WeakMap,Uo=new WeakSet,Wo={},tl=0;const BO=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,S_=e=>e&&(e.host||S_(e.parentNode)),HO=(e,t)=>t.map(r=>{if(e.contains(r))return r;const n=S_(r);return e.contains(n)?n:null}).filter(r=>r!=null);function qO(e,t,r,n){const o="data-floating-ui-inert",s=n?"inert":r?"aria-hidden":null,a=HO(t,e),i=new Set,l=new Set(a),c=[];Wo[o]||(Wo[o]=new WeakMap);const u=Wo[o];a.forEach(d),p(t),i.clear();function d(f){!f||i.has(f)||(i.add(f),f.parentNode&&d(f.parentNode))}function p(f){!f||l.has(f)||[].forEach.call(f.children,h=>{if(f0(h)!=="script")if(i.has(h))p(h);else{const m=s?h.getAttribute(s):null,g=m!==null&&m!=="false",y=(Wr.get(h)||0)+1,_=(u.get(h)||0)+1;Wr.set(h,y),u.set(h,_),c.push(h),y===1&&g&&Uo.add(h),_===1&&h.setAttribute(o,""),!g&&s&&h.setAttribute(s,"true")}})}return tl++,()=>{c.forEach(f=>{const h=(Wr.get(f)||0)-1,m=(u.get(f)||0)-1;Wr.set(f,h),u.set(f,m),h||(!Uo.has(f)&&s&&f.removeAttribute(s),Uo.delete(f)),m||f.removeAttribute(o)}),tl--,tl||(Wr=new WeakMap,Wr=new WeakMap,Uo=new WeakSet,Wo={})}}function Hm(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);const n=Fe(e[0]).body;return qO(e.concat(Array.from(n.querySelectorAll("[aria-live]"))),n,t,r)}const fo=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function O_(e,t){const r=Ms(e,fo());t==="prev"&&r.reverse();const n=r.indexOf(vr(Fe(e)));return r.slice(n+1)[0]}function R_(){return O_(document.body,"next")}function T_(){return O_(document.body,"prev")}function no(e,t){const r=t||e.currentTarget,n=e.relatedTarget;return!n||!De(r,n)}function jO(e){Ms(e,fo()).forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")})}function qm(e){e.querySelectorAll("[data-tabindex]").forEach(r=>{const n=r.dataset.tabindex;delete r.dataset.tabindex,n?r.setAttribute("tabindex",n):r.removeAttribute("tabindex")})}const Hs={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let UO;function jm(e){e.key==="Tab"&&(e.target,clearTimeout(UO))}const ys=b.forwardRef(function(t,r){const[n,o]=b.useState();ke(()=>(sO()&&o("button"),document.addEventListener("keydown",jm),()=>{document.removeEventListener("keydown",jm)}),[]);const s={ref:r,tabIndex:0,role:n,"aria-hidden":n?void 0:!0,[Cn("focus-guard")]:"",style:Hs};return b.createElement("span",En({},t,s))}),A_=b.createContext(null),Um=Cn("portal");function WO(e){e===void 0&&(e={});const{id:t,root:r}=e,n=Fs(),o=k_(),[s,a]=b.useState(null),i=b.useRef(null);return ke(()=>()=>{s==null||s.remove(),queueMicrotask(()=>{i.current=null})},[s]),ke(()=>{if(!n||i.current)return;const l=t?document.getElementById(t):null;if(!l)return;const c=document.createElement("div");c.id=n,c.setAttribute(Um,""),l.appendChild(c),i.current=c,a(c)},[t,n]),ke(()=>{if(r===null||!n||i.current)return;let l=r||(o==null?void 0:o.portalNode);l&&!He(l)&&(l=l.current),l=l||document.body;let c=null;t&&(c=document.createElement("div"),c.id=t,l.appendChild(c));const u=document.createElement("div");u.id=n,u.setAttribute(Um,""),l=c||l,l.appendChild(u),i.current=u,a(u)},[t,r,n,o]),s}function Wm(e){const{children:t,id:r,root:n,preserveTabOrder:o=!0}=e,s=WO({id:r,root:n}),[a,i]=b.useState(null),l=b.useRef(null),c=b.useRef(null),u=b.useRef(null),d=b.useRef(null),p=a==null?void 0:a.modal,f=a==null?void 0:a.open,h=!!a&&!a.modal&&a.open&&o&&!!(n||s);return b.useEffect(()=>{if(!s||!o||p)return;function m(g){s&&no(g)&&(g.type==="focusin"?qm:jO)(s)}return s.addEventListener("focusin",m,!0),s.addEventListener("focusout",m,!0),()=>{s.removeEventListener("focusin",m,!0),s.removeEventListener("focusout",m,!0)}},[s,o,p]),b.useEffect(()=>{s&&(f||qm(s))},[f,s]),b.createElement(A_.Provider,{value:b.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:u,afterInsideRef:d,portalNode:s,setFocusManagerState:i}),[o,s])},h&&s&&b.createElement(ys,{"data-type":"outside",ref:l,onFocus:m=>{if(no(m,s)){var g;
46(g=u.current)==null||g.focus()}else{const y=T_()||(a==null?void 0:a.refs.domReference.current);y==null||y.focus()}}}),h&&s&&b.createElement("span",{"aria-owns":s.id,style:Hs}),s&&Zr.createPortal(t,s),h&&s&&b.createElement(ys,{"data-type":"outside",ref:c,onFocus:m=>{if(no(m,s)){var g;(g=d.current)==null||g.focus()}else{const y=R_()||(a==null?void 0:a.refs.domReference.current);y==null||y.focus(),a!=null&&a.closeOnFocusOut&&(a==null||a.onOpenChange(!1,m.nativeEvent,"focus-out"))}}}))}const k_=()=>b.useContext(A_),Id="data-floating-ui-focusable";function VO(e){return e?e.hasAttribute(Id)?e:e.querySelector("["+Id+"]")||e:null}const Vm=20;let gr=[];function rl(e){gr=gr.filter(r=>r.isConnected);let t=e;if(!(!t||f0(t)==="body")){if(!OO(t,fo())){const r=Ms(t,fo())[0];r&&(t=r)}gr.push(t),gr.length>Vm&&(gr=gr.slice(-Vm))}}function zm(){return gr.slice().reverse().find(e=>e.isConnected)}const zO=b.forwardRef(function(t,r){return b.createElement("button",En({},t,{type:"button",ref:r,tabIndex:-1,style:Hs}))});function KO(e){const{context:t,children:r,disabled:n=!1,order:o=["content"],guards:s=!0,initialFocus:a=0,returnFocus:i=!0,restoreFocus:l=!1,modal:c=!0,visuallyHiddenDismiss:u=!1,closeOnFocusOut:d=!0}=e,{open:p,refs:f,nodeId:h,onOpenChange:m,events:g,dataRef:y,floatingId:_,elements:{domReference:w,floating:E}}=t,C=typeof a=="number"&&a<0,S=uO(w)&&C,x=BO()?s:!0,P=Et(o),D=Et(a),L=Et(i),O=Bs(),A=k_(),T=b.useRef(null),R=b.useRef(null),N=b.useRef(!1),W=b.useRef(!1),q=b.useRef(-1),H=A!=null,I=VO(E),k=dt(function(K){return K===void 0&&(K=I),K?Ms(K,fo()):[]}),$=dt(K=>{const X=k(K);return P.current.map(J=>w&&J==="reference"?w:I&&J==="floating"?I:X).filter(Boolean).flat()});b.useEffect(()=>{if(n||!c)return;function K(J){if(J.key==="Tab"){De(I,vr(Fe(I)))&&k().length===0&&!S&&Qi(J);const M=$(),j=Vt(J);P.current[0]==="reference"&&j===w&&(Qi(J),J.shiftKey?Ur(M[M.length-1]):Ur(M[1])),P.current[1]==="floating"&&j===I&&J.shiftKey&&(Qi(J),Ur(M[0]))}}const X=Fe(I);return X.addEventListener("keydown",K),()=>{X.removeEventListener("keydown",K)}},[n,w,I,c,P,S,k,$]),b.useEffect(()=>{if(n||!E)return;function K(X){const J=Vt(X),j=k().indexOf(J);j!==-1&&(q.current=j)}return E.addEventListener("focusin",K),()=>{E.removeEventListener("focusin",K)}},[n,E,k]),b.useEffect(()=>{if(n||!d)return;function K(){W.current=!0,setTimeout(()=>{W.current=!1})}function X(J){const M=J.relatedTarget;queueMicrotask(()=>{const j=!(De(w,M)||De(E,M)||De(M,E)||De(A==null?void 0:A.portalNode,M)||M!=null&&M.hasAttribute(Cn("focus-guard"))||O&&(an(O.nodesRef.current,h).find(U=>{var V,Y;return De((V=U.context)==null?void 0:V.elements.floating,M)||De((Y=U.context)==null?void 0:Y.elements.domReference,M)})||FO(O.nodesRef.current,h).find(U=>{var V,Y;return((V=U.context)==null?void 0:V.elements.floating)===M||((Y=U.context)==null?void 0:Y.elements.domReference)===M})));if(l&&j&&vr(Fe(I))===Fe(I).body){Wt(I)&&I.focus();const U=q.current,V=k(),Y=V[U]||V[V.length-1]||I;Wt(Y)&&Y.focus()}(S||!c)&&M&&j&&!W.current&&M!==zm()&&(N.current=!0,m(!1,J,"focus-out"))})}if(E&&Wt(w))return w.addEventListener("focusout",X),w.addEventListener("pointerdown",K),E.addEventListener("focusout",X),()=>{w.removeEventListener("focusout",X),w.removeEventListener("pointerdown",K),E.removeEventListener("focusout",X)}},[n,w,E,I,c,h,O,A,m,d,l,k,S]),b.useEffect(()=>{var K;if(n)return;const X=Array.from((A==null||(K=A.portalNode)==null?void 0:K.querySelectorAll("["+Cn("portal")+"]"))||[]);if(E){const J=[E,...X,T.current,R.current,P.current.includes("reference")||S?w:null].filter(j=>j!=null),M=c||S?Hm(J,x,!x):Hm(J);return()=>{M()}}},[n,w,E,c,P,A,S,x]),ke(()=>{if(n||!Wt(I))return;const K=Fe(I),X=vr(K);queueMicrotask(()=>{const J=$(I),M=D.current,j=(typeof M=="number"?J[M]:M.current)||I,U=De(I,X);!C&&!U&&p&&Ur(j,{preventScroll:j===I})})},[n,p,I,C,$,D]),ke(()=>{if(n||!I)return;let K=!1;const X=Fe(I),J=vr(X);let j=y.current.openEvent;rl(J);function U(Q){let{open:F,reason:z,event:ee,nested:te}=Q;F&&(j=ee),z==="escape-key"&&f.domReference.current&&rl(f.domReference.current),z==="hover"&&ee.type==="mouseleave"&&(N.current=!0),z==="outside-press"&&(te?(N.current=!1,K=!0):N.current=!(nO(ee)||oO(ee)))}g.on("openchange",U);const V=X.createElement("span");V.setAttribute("tabindex","-1"),V.setAttribute("aria-hidden","true"),Object.assign(V.style,Hs),H&&w&&w.insertAdjacentElement("afterend",V);
46function Y(){return typeof L.current=="boolean"?zm()||V:L.current.current||V}return()=>{g.off("openchange",U);const Q=vr(X),F=De(E,Q)||O&&an(O.nodesRef.current,h).some(te=>{var ie;return De((ie=te.context)==null?void 0:ie.elements.floating,Q)});(F||j&&["click","mousedown"].includes(j.type))&&f.domReference.current&&rl(f.domReference.current);const ee=Y();queueMicrotask(()=>{L.current&&!N.current&&Wt(ee)&&(!(ee!==Q&&Q!==X.body)||F)&&ee.focus({preventScroll:K}),V.remove()})}},[n,E,I,L,y,f,g,O,h,H,w]),b.useEffect(()=>{queueMicrotask(()=>{N.current=!1})},[n]),ke(()=>{if(!n&&A)return A.setFocusManagerState({modal:c,closeOnFocusOut:d,open:p,onOpenChange:m,refs:f}),()=>{A.setFocusManagerState(null)}},[n,A,c,p,m,f,d]),ke(()=>{if(n||!I||typeof MutationObserver!="function"||C)return;const K=()=>{const J=I.getAttribute("tabindex"),M=k(),j=vr(Fe(E)),U=M.indexOf(j);U!==-1&&(q.current=U),P.current.includes("floating")||j!==f.domReference.current&&M.length===0?J!=="0"&&I.setAttribute("tabindex","0"):J!=="-1"&&I.setAttribute("tabindex","-1")};K();const X=new MutationObserver(K);return X.observe(I,{childList:!0,subtree:!0,attributes:!0}),()=>{X.disconnect()}},[n,E,I,f,P,k,C]);function G(K){return n||!u||!c?null:b.createElement(zO,{ref:K==="start"?T:R,onClick:X=>m(!1,X.nativeEvent)},typeof u=="string"?u:"Dismiss")}const Z=!n&&x&&(c?!S:!0)&&(H||c);return b.createElement(b.Fragment,null,Z&&b.createElement(ys,{"data-type":"inside",ref:A==null?void 0:A.beforeInsideRef,onFocus:K=>{if(c){const J=$();Ur(o[0]==="reference"?J[0]:J[J.length-1])}else if(A!=null&&A.preserveTabOrder&&A.portalNode)if(N.current=!1,no(K,A.portalNode)){const J=R_()||w;J==null||J.focus()}else{var X;(X=A.beforeOutsideRef.current)==null||X.focus()}}}),!S&&G("start"),r,G("end"),Z&&b.createElement(ys,{"data-type":"inside",ref:A==null?void 0:A.afterInsideRef,onFocus:K=>{if(c)Ur($()[0]);else if(A!=null&&A.preserveTabOrder&&A.portalNode)if(d&&(N.current=!0),no(K,A.portalNode)){const J=T_()||w;J==null||J.focus()}else{var X;(X=A.afterOutsideRef.current)==null||X.focus()}}}))}let Vo=0;function GO(){const e=/iP(hone|ad|od)|iOS/.test(v_()),t=document.body.style,n=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",o=window.innerWidth-document.documentElement.clientWidth,s=t.left?parseFloat(t.left):window.scrollX,a=t.top?parseFloat(t.top):window.scrollY;if(t.overflow="hidden",o&&(t[n]=o+"px"),e){var i,l;const c=((i=window.visualViewport)==null?void 0:i.offsetLeft)||0,u=((l=window.visualViewport)==null?void 0:l.offsetTop)||0;Object.assign(t,{position:"fixed",top:-(a-Math.floor(u))+"px",left:-(s-Math.floor(c))+"px",right:"0"})}return()=>{Object.assign(t,{overflow:"",[n]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(s,a))}}let Km=()=>{};const YO=b.forwardRef(function(t,r){const{lockScroll:n=!1,...o}=t;return ke(()=>{if(n)return Vo++,Vo===1&&(Km=GO()),()=>{Vo--,Vo===0&&Km()}},[n]),b.createElement("div",En({ref:r},o,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...o.style}}))});function Gm(e){return Wt(e.target)&&e.target.tagName==="BUTTON"}function Ym(e){return b_(e)}function XO(e,t){t===void 0&&(t={});const{open:r,onOpenChange:n,dataRef:o,elements:{domReference:s}}=e,{enabled:a=!0,event:i="click",toggle:l=!0,ignoreMouse:c=!1,keyboardHandlers:u=!0,stickIfOpen:d=!0}=t,p=b.useRef(),f=b.useRef(!1),h=b.useMemo(()=>({onPointerDown(m){p.current=m.pointerType},onMouseDown(m){const g=p.current;m.button===0&&i!=="click"&&(uo(g,!0)&&c||(r&&l&&(!(o.current.openEvent&&d)||o.current.openEvent.type==="mousedown")?n(!1,m.nativeEvent,"click"):(m.preventDefault(),n(!0,m.nativeEvent,"click"))))},onClick(m){const g=p.current;if(i==="mousedown"&&p.current){p.current=void 0;return}uo(g,!0)&&c||(r&&l&&(!(o.current.openEvent&&d)||o.current.openEvent.type==="click")?n(!1,m.nativeEvent,"click"):n(!0,m.nativeEvent,"click"))},onKeyDown(m){p.current=void 0,!(m.defaultPrevented||!u||Gm(m))&&(m.key===" "&&!Ym(s)&&(m.preventDefault(),f.current=!0),m.key==="Enter"&&n(!(r&&l),m.nativeEvent,"click"))},onKeyUp(m){m.defaultPrevented||!u||Gm(m)||Ym(s)||m.key===" "&&f.current&&(f.current=!1,n(!(r&&l),m.nativeEvent,"click"))}}),[o,s,i,c,u,n,r,d,l]);return b.useMemo(()=>a?{reference:h}:{},[a,h])}const ZO={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},JO={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Xm=e=>{var t,r;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(r=e==null?void 0:e.outsidePress)!=null?r:!0}};function QO(e,t){t===void 0&&(t={});const{open:r,onOpenChange:n,elements:o,dataRef:s}=e,{enabled:a=!0,escapeKey:i=!0,outsidePress:l=!0,outsidePressEvent:c="pointerdown",referencePress:u=!1,referencePressEvent:d="pointerdown",ancestorScroll:p=!1,bubbles:f,capture:h}=t,m=Bs(),g=dt(typeof l=="function"?l:()=>!1),y=typeof l=="function"?g:l,_=b.useRef(!1),w=b.useRef(!1),{escapeKey:E,outsidePress:C}=Xm(f),{escapeKey:S,outsidePress:x}=Xm(h),P=b.useRef(!1),D=dt(N=>{var W;if(!r||!a||!i||N.key!=="Escape"||P.current)return;const q=(W=s.current.floatingContext)==null?void 0:W.nodeId,H=m?an(m.nodesRef.current,q):[];if(!E&&(N.stopPropagation(),H.length>0)){let I=!0;
46if(H.forEach(k=>{var $;if(($=k.context)!=null&&$.open&&!k.context.dataRef.current.__escapeKeyBubbles){I=!1;return}}),!I)return}n(!1,iO(N)?N.nativeEvent:N,"escape-key")}),L=dt(N=>{var W;const q=()=>{var H;D(N),(H=Vt(N))==null||H.removeEventListener("keydown",q)};(W=Vt(N))==null||W.addEventListener("keydown",q)}),O=dt(N=>{var W;const q=_.current;_.current=!1;const H=w.current;if(w.current=!1,c==="click"&&H||q||typeof y=="function"&&!y(N))return;const I=Vt(N),k="["+Cn("inert")+"]",$=Fe(o.floating).querySelectorAll(k);let G=He(I)?I:null;for(;G&&!Hf(G);){const J=yE(G);if(Hf(J)||!He(J))break;G=J}if($.length&&He(I)&&!lO(I)&&!De(I,o.floating)&&Array.from($).every(J=>!De(G,J)))return;if(Wt(I)&&R){const J=I.clientWidth>0&&I.scrollWidth>I.clientWidth,M=I.clientHeight>0&&I.scrollHeight>I.clientHeight;let j=M&&N.offsetX>I.clientWidth;if(M&&d0(I).direction==="rtl"&&(j=N.offsetX<=I.offsetWidth-I.clientWidth),j||J&&N.offsetY>I.clientHeight)return}const Z=(W=s.current.floatingContext)==null?void 0:W.nodeId,K=m&&an(m.nodesRef.current,Z).some(J=>{var M;return Ji(N,(M=J.context)==null?void 0:M.elements.floating)});if(Ji(N,o.floating)||Ji(N,o.domReference)||K)return;const X=m?an(m.nodesRef.current,Z):[];if(X.length>0){let J=!0;if(X.forEach(M=>{var j;if((j=M.context)!=null&&j.open&&!M.context.dataRef.current.__outsidePressBubbles){J=!1;return}}),!J)return}n(!1,N,"outside-press")}),A=dt(N=>{var W;const q=()=>{var H;O(N),(H=Vt(N))==null||H.removeEventListener(c,q)};(W=Vt(N))==null||W.addEventListener(c,q)});b.useEffect(()=>{if(!r||!a)return;s.current.__escapeKeyBubbles=E,s.current.__outsidePressBubbles=C;let N=-1;function W($){n(!1,$,"ancestor-scroll")}function q(){window.clearTimeout(N),P.current=!0}function H(){N=window.setTimeout(()=>{P.current=!1},bE()?5:0)}const I=Fe(o.floating);i&&(I.addEventListener("keydown",S?L:D,S),I.addEventListener("compositionstart",q),I.addEventListener("compositionend",H)),y&&I.addEventListener(c,x?A:O,x);let k=[];return p&&(He(o.domReference)&&(k=Qs(o.domReference)),He(o.floating)&&(k=k.concat(Qs(o.floating))),!He(o.reference)&&o.reference&&o.reference.contextElement&&(k=k.concat(Qs(o.reference.contextElement)))),k=k.filter($=>{var G;return $!==((G=I.defaultView)==null?void 0:G.visualViewport)}),k.forEach($=>{$.addEventListener("scroll",W,{passive:!0})}),()=>{i&&(I.removeEventListener("keydown",S?L:D,S),I.removeEventListener("compositionstart",q),I.removeEventListener("compositionend",H)),y&&I.removeEventListener(c,x?A:O,x),k.forEach($=>{$.removeEventListener("scroll",W)}),window.clearTimeout(N)}},[s,o,i,y,c,r,n,p,a,E,C,D,S,L,O,x,A]),b.useEffect(()=>{_.current=!1},[y,c]);const T=b.useMemo(()=>({onKeyDown:D,[ZO[d]]:N=>{u&&n(!1,N.nativeEvent,"reference-press")}}),[D,n,u,d]),R=b.useMemo(()=>({onKeyDown:D,onMouseDown(){w.current=!0},onMouseUp(){w.current=!0},[JO[c]]:()=>{_.current=!0}}),[D,c]);return b.useMemo(()=>a?{reference:T,floating:R}:{},[a,T,R])}function eR(e){const{open:t=!1,onOpenChange:r,elements:n}=e,o=Fs(),s=b.useRef({}),[a]=b.useState(()=>NO()),i=ff()!=null,[l,c]=b.useState(n.reference),u=dt((f,h,m)=>{s.current.openEvent=f?h:void 0,a.emit("openchange",{open:f,event:h,reason:m,nested:i}),r==null||r(f,h,m)}),d=b.useMemo(()=>({setPositionReference:c}),[]),p=b.useMemo(()=>({reference:l||n.reference||null,floating:n.floating||null,domReference:n.reference}),[l,n.reference,n.floating]);return b.useMemo(()=>({dataRef:s,open:t,onOpenChange:u,elements:p,events:a,floatingId:o,refs:d}),[t,u,p,a,o,d])}function tR(e){e===void 0&&(e={});const{nodeId:t}=e,r=eR({...e,elements:{reference:null,floating:null,...e.elements}}),n=e.rootContext||r,o=n.elements,[s,a]=b.useState(null),[i,l]=b.useState(null),u=(o==null?void 0:o.domReference)||s,d=b.useRef(null),p=Bs();ke(()=>{u&&(d.current=u)},[u]);const f=gE({...e,elements:{...o,...i&&{reference:i}}}),h=b.useCallback(w=>{const E=He(w)?{getBoundingClientRect:()=>w.getBoundingClientRect(),contextElement:w}:w;l(E),f.refs.setReference(E)},[f.refs]),m=b.useCallback(w=>{(He(w)||w===null)&&(d.current=w,a(w)),(He(f.refs.reference.current)||f.refs.reference.current===null||w!==null&&!He(w))&&f.refs.setReference(w)},[f.refs]),g=b.useMemo(()=>({...f.refs,setReference:m,setPositionReference:h,domReference:d}),[f.refs,m,h]),y=b.useMemo(()=>({...f.elements,domReference:u}),[f.elements,u]),_=b.useMemo(()=>({...f,...n,refs:g,elements:y,nodeId:t}),[f,g,y,t,n]);return ke(()=>{n.dataRef.current.floatingContext=_;const w=p==null?void 0:p.nodesRef.current.find(E=>E.id===t);w&&(w.context=_)}),b.useMemo(()=>({...f,context:_,refs:g,elements:y}),[f,g,y,_])}const Zm="active",Jm="selected";function nl(e,t,r){const n=new Map,o=r==="item";let s=e;if(o&&e){const{[Zm]:a,[Jm]:i,...l}=e;s=l}return{...r==="floating"&&{tabIndex:-1,[Id]:""},...s,...t.map(a=>{const i=a?a[r]:null;return typeof i=="function"?e?i(e):null:i}).concat(e).reduce((a,i)=>
46(i&&Object.entries(i).forEach(l=>{let[c,u]=l;if(!(o&&[Zm,Jm].includes(c)))if(c.indexOf("on")===0){if(n.has(c)||n.set(c,[]),typeof u=="function"){var d;(d=n.get(c))==null||d.push(u),a[c]=function(){for(var p,f=arguments.length,h=new Array(f),m=0;m<f;m++)h[m]=arguments[m];return(p=n.get(c))==null?void 0:p.map(g=>g(...h)).find(g=>g!==void 0)}}}else a[c]=u}),a),{})}}function rR(e){e===void 0&&(e=[]);const t=e.map(i=>i==null?void 0:i.reference),r=e.map(i=>i==null?void 0:i.floating),n=e.map(i=>i==null?void 0:i.item),o=b.useCallback(i=>nl(i,e,"reference"),t),s=b.useCallback(i=>nl(i,e,"floating"),r),a=b.useCallback(i=>nl(i,e,"item"),n);return b.useMemo(()=>({getReferenceProps:o,getFloatingProps:s,getItemProps:a}),[o,s,a])}const nR=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function oR(e,t){var r;t===void 0&&(t={});const{open:n,floatingId:o}=e,{enabled:s=!0,role:a="dialog"}=t,i=(r=nR.get(a))!=null?r:a,l=Fs(),u=ff()!=null,d=b.useMemo(()=>i==="tooltip"||a==="label"?{["aria-"+(a==="label"?"labelledby":"describedby")]:n?o:void 0}:{"aria-expanded":n?"true":"false","aria-haspopup":i==="alertdialog"?"dialog":i,"aria-controls":n?o:void 0,...i==="listbox"&&{role:"combobox"},...i==="menu"&&{id:l},...i==="menu"&&u&&{role:"menuitem"},...a==="select"&&{"aria-autocomplete":"none"},...a==="combobox"&&{"aria-autocomplete":"list"}},[i,o,u,n,l,a]),p=b.useMemo(()=>{const h={id:o,...i&&{role:i}};return i==="tooltip"||a==="label"?h:{...h,...i==="menu"&&{"aria-labelledby":l}}},[i,o,l,a]),f=b.useCallback(h=>{let{active:m,selected:g}=h;const y={role:"option",...m&&{id:o+"-option"}};switch(a){case"select":return{...y,"aria-selected":m&&g};case"combobox":return{...y,...m&&{"aria-selected":!0}}}return{}},[o,a]);return b.useMemo(()=>s?{reference:d,floating:p,item:f}:{},[s,d,p,f])}const Qm=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,r)=>(r?"-":"")+t.toLowerCase());function Vr(e,t){return typeof e=="function"?e(t):e}function sR(e,t){const[r,n]=b.useState(e);return e&&!r&&n(!0),b.useEffect(()=>{if(!e&&r){const o=setTimeout(()=>n(!1),t);return()=>clearTimeout(o)}},[e,r,t]),r}function P_(e,t){t===void 0&&(t={});const{open:r,elements:{floating:n}}=e,{duration:o=250}=t,a=(typeof o=="number"?o:o.close)||0,[i,l]=b.useState("unmounted"),c=sR(r,a);return!c&&i==="close"&&l("unmounted"),ke(()=>{if(n){if(r){l("initial");const u=requestAnimationFrame(()=>{l("open")});return()=>{cancelAnimationFrame(u)}}l("close")}},[r,n]),{isMounted:c,status:i}}function aR(e,t){t===void 0&&(t={});const{initial:r={opacity:0},open:n,close:o,common:s,duration:a=250}=t,i=e.placement,l=i.split("-")[0],c=b.useMemo(()=>({side:l,placement:i}),[l,i]),u=typeof a=="number",d=(u?a:a.open)||0,p=(u?a:a.close)||0,[f,h]=b.useState(()=>({...Vr(s,c),...Vr(r,c)})),{isMounted:m,status:g}=P_(e,{duration:a}),y=Et(r),_=Et(n),w=Et(o),E=Et(s);return ke(()=>{const C=Vr(y.current,c),S=Vr(w.current,c),x=Vr(E.current,c),P=Vr(_.current,c)||Object.keys(C).reduce((D,L)=>(D[L]="",D),{});if(g==="initial"&&h(D=>({transitionProperty:D.transitionProperty,...x,...C})),g==="open"&&h({transitionProperty:Object.keys(P).map(Qm).join(","),transitionDuration:d+"ms",...x,...P}),g==="close"){const D=S||C;h({transitionProperty:Object.keys(D).map(Qm).join(","),transitionDuration:p+"ms",...x,...D})}},[p,w,y,_,E,d,g,c]),{isMounted:m,styles:f}}function ev(e,t){const[r,n]=e;let o=!1;const s=t.length;for(let a=0,i=s-1;a<s;i=a++){const[l,c]=t[a]||[0,0],[u,d]=t[i]||[0,0];c>=n!=d>=n&&r<=(u-l)*(n-c)/(d-c)+l&&(o=!o)}return o}function iR(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function lR(e){e===void 0&&(e={});const{buffer:t=.5,blockPointerEvents:r=!1,requireIntent:n=!0}=e;let o,s=!1,a=null,i=null,l=performance.now();function c(d,p){const f=performance.now(),h=f-l;if(a===null||i===null||h===0)return a=d,i=p,l=f,null;const m=d-a,g=p-i,_=Math.sqrt(m*m+g*g)/h;return a=d,i=p,l=f,_}const u=d=>{let{x:p,y:f,placement:h,elements:m,onClose:g,nodeId:y,tree:_}=d;return function(E){function C(){clearTimeout(o),g()}if(clearTimeout(o),!m.domReference||!m.floating||h==null||p==null||f==null)return;const{clientX:S,clientY:x}=E,P=[S,x],D=Vt(E),L=E.type==="mouseleave",O=De(m.floating,D),A=De(m.domReference,D),T=m.domReference.getBoundingClientRect(),R=m.floating.getBoundingClientRect(),N=h.split("-")[0],W=p>R.right-R.width/2,q=f>R.bottom-R.height/2,H=iR(P,T),I=R.width>T.width,k=R.height>
46T.height,$=(I?T:R).left,G=(I?T:R).right,Z=(k?T:R).top,K=(k?T:R).bottom;if(O&&(s=!0,!L))return;if(A&&(s=!1),A&&!L){s=!0;return}if(L&&He(E.relatedTarget)&&De(m.floating,E.relatedTarget)||_&&an(_.nodesRef.current,y).some(M=>{let{context:j}=M;return j==null?void 0:j.open}))return;if(N==="top"&&f>=T.bottom-1||N==="bottom"&&f<=T.top+1||N==="left"&&p>=T.right-1||N==="right"&&p<=T.left+1)return C();let X=[];switch(N){case"top":X=[[$,T.top+1],[$,R.bottom-1],[G,R.bottom-1],[G,T.top+1]];break;case"bottom":X=[[$,R.top+1],[$,T.bottom-1],[G,T.bottom-1],[G,R.top+1]];break;case"left":X=[[R.right-1,K],[R.right-1,Z],[T.left+1,Z],[T.left+1,K]];break;case"right":X=[[T.right-1,K],[T.right-1,Z],[R.left+1,Z],[R.left+1,K]];break}function J(M){let[j,U]=M;switch(N){case"top":{const V=[I?j+t/2:W?j+t*4:j-t*4,U+t+1],Y=[I?j-t/2:W?j+t*4:j-t*4,U+t+1],Q=[[R.left,W||I?R.bottom-t:R.top],[R.right,W?I?R.bottom-t:R.top:R.bottom-t]];return[V,Y,...Q]}case"bottom":{const V=[I?j+t/2:W?j+t*4:j-t*4,U-t],Y=[I?j-t/2:W?j+t*4:j-t*4,U-t],Q=[[R.left,W||I?R.top+t:R.bottom],[R.right,W?I?R.top+t:R.bottom:R.top+t]];return[V,Y,...Q]}case"left":{const V=[j+t+1,k?U+t/2:q?U+t*4:U-t*4],Y=[j+t+1,k?U-t/2:q?U+t*4:U-t*4];return[...[[q||k?R.right-t:R.left,R.top],[q?k?R.right-t:R.left:R.right-t,R.bottom]],V,Y]}case"right":{const V=[j-t,k?U+t/2:q?U+t*4:U-t*4],Y=[j-t,k?U-t/2:q?U+t*4:U-t*4],Q=[[q||k?R.left+t:R.right,R.top],[q?k?R.left+t:R.right:R.left+t,R.bottom]];return[V,Y,...Q]}}}if(!ev([S,x],X)){if(s&&!H)return C();if(!L&&n){const M=c(E.clientX,E.clientY);if(M!==null&&M<.1)return C()}ev([S,x],J([p,f]))?!s&&n&&(o=window.setTimeout(C,40)):C()}}};return u.__options={blockPointerEvents:r},u}const cR=b.forwardRef(function({children:t,className:r},n){const{dataHook:o,context:s,interactions:a}=m_();if(!b.isValidElement(t))throw new Error("<PopoverNext.Trigger /> children must be a valid React element");const i=x_([s==null?void 0:s.refs.setReference,n,t.ref]),l=a.getReferenceProps({...t.props,ref:i,"data-hook":`${o}-trigger`,className:rO.root({},t.props.className,r)});return b.cloneElement(t,{...l,onKeyDown:void 0})}),ol=$e("popover-next-content",{root:{variants:{skin:["light","dark"],placement:["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","auto-start","auto-end"],status:["initial","open","close"]},states:["showArrow"]},contentWrapper:{},arrow:{variants:{skin:["light","dark"]}}}),xn={window:"window",viewport:"viewport",scrollParent:"scrollParent",parent:"parent"},uR=b.forwardRef(function({style:t,...r},n){const{dataHook:o,placement:s,focusManagerEnabled:a,context:i,appendTo:l,portalRoot:c,zIndex:u,popoverStyles:d,interactions:p,open:f,skin:h,transitionStyles:m,transitionStatus:g,overlay:y,style:_,showArrow:w,contentClassName:E,arrowProps:C}=m_(),{contextClassName:S}=b.useContext(Qt),x=x_([i.refs.setFloating,n]),{className:P,...D}=p.getFloatingProps(r);if(!f)return null;const L={...d,zIndex:u,...m,..._,...t},O=v.createElement(KO,{context:i,disabled:!a},v.createElement(v.Fragment,null,y===!0?v.createElement(YO,null):y??null,v.createElement("div",{ref:x,"data-hook":`${o}-content`,"data-zindex":u,className:ol.root({skin:h,placement:s,showArrow:w,status:g==="unmounted"?null:g},P,S),style:L,...D},w&&v.createElement(DO,{...C,className:ol.arrow({skin:h})}),v.createElement("div",{className:ol.contentWrapper({},E)},r.children))));return l===xn.window||l===xn.viewport?v.createElement(Wm,null,v.createElement("div",{"data-hook":"popover-portal"},O)):c?v.createElement(Wm,{root:c,preserveTabOrder:!1},v.createElement("div",{"data-hook":"popover-portal"},O)):O}),dR=e=>e.ownerDocument.defaultView.getComputedStyle(e,null),D_=e=>e.nodeName==="HTML"?e:e.parentNode||e.host,N_=e=>{if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}const{overflow:t,overflowX:r,overflowY:n}=dR(e);return/(auto|scroll|overlay)/.test(t+n+r)?e:N_(D_(e))},L_=(e,t)=>t?t.nodeName==="HTML"||e(t)?t:L_(e,D_(t)):null,fR=({flip:e=!0,fixed:t=!1,placement:r,appendTo:n,rootRef:o})=>{const[s,a]=b.useState(null);b.useEffect(()=>{if(typeof n=="function"&&(o!=null&&o.current)){const f=L_(n,o.current);a(f)}else if(n===xn.scrollParent&&(o!=null&&o.current)){const f=N_(o.current);a(f)}else n instanceof HTMLElement&&a(n)},[n,o]);const i=b.useMemo(()=>typeof n=="function"?!1:n===xn.viewport,[n]),l=r.includes("left")||r.includes("right"),c=f=>!["auto","auto-start","auto-end"].find(m=>m===f),u=f=>{switch(f){case"auto-end":return"end";case"auto-start":return"start";case"auto":default:return}},d=c(r)?r:void 0;return{...d?{flip:{fallbackAxisSideDirection:"end",mainAxis:l||e&&!t,padding:5,crossAxis:!1,fallbackPlacements:(f=>t?e?void 0:[f]:f==="bottom"?["bottom","top"]:void 0)(d)}}:{autoPlacement:{padding:5,autoAlignment:!1,alignment:u(r)}},shift:{padding:5,crossAxis:i,mainAxis:!t},portalRoot:s,placement:d}},tv=(e=0,t)=>typeof e=="number"?e:(e==null?void 0:e[t])??0,pR=({context:e,type:t,openDelay:r=0,closeDelay:n=0,duration:o=0,opacity:s,transformOrigin:a,transform:i})=>{const l=tv(o,"open"),c=tv(o,"close"),u={duration:{open:l+r,close:c+n},common:({side:f})=>
46({transitionProperty:"opacity",transformOrigin:typeof a=="string"?a:a==null?void 0:a(f)}),initial:({side:f})=>({opacity:0,...s?{opacity:s.close}:{},transform:typeof i=="string"?i:i==null?void 0:i(f)}),open:{opacity:1,...s?{opacity:s.open}:{},transitionDelay:`${r}ms`,transitionDuration:`${l}ms`},close:{opacity:0,...s?{opacity:s.close}:{},transitionDelay:`${n}ms`,transitionDuration:`${c}ms`}},d=P_(e,{duration:{open:l+r,close:c+n}}),p=aR(e,u);return t==="css"?{isMounted:d.isMounted,status:d.status,styles:void 0}:{...p,status:d.status}},Xn=6,hR=12,mR=e=>{if(!e||e.includes("auto"))return{};const t=e.split("-")[0].trim();if(t==="auto")return{};const r={top:"top",bottom:"top",right:"left",left:"left"},n={top:-Xn,bottom:Xn,left:-Xn,right:Xn};return{[r[t]]:`${n[t]}px`}},vR=e=>{const t=b.useRef(null),r=o=>({ref:t,context:o,width:hR,height:Xn}),n=o=>e?mR(o):{};return{getArrowProps:r,arrowMiddleware:e?wE({element:t,padding:6}):void 0,getContentWithArrowStyles:n}},gR={open:150,close:100},it=e=>typeof e=="number"?`${e}px`:e;function bR({dataHook:e,open:t=!1,onOpenChange:r,focusManagerEnabled:n=!0,appendTo:o=xn.parent,dynamicWidth:s=!1,zIndex:a=kn.popover,width:i,minWidth:l,maxWidth:c,excludeClass:u,moveBy:d,flip:p=!0,placement:f="bottom",fixed:h=!1,rootRef:m,showDelay:g,hideDelay:y,timeout:_,skin:w,transitionSettings:E,onClickOutside:C,overlay:S=!1,role:x,tabIndex:P,"aria-label":D,"aria-labelledby":L,"aria-describedby":O,id:A,style:T,onClick:R,animate:N,showArrow:W=!1,customArrow:q,contentClassName:H,onMouseEnter:I,onMouseLeave:k,autoUpdateOptions:$}){const{contextClassName:G}=b.useContext(Qt),Z=!!(I&&k),K=!!I!=!!k;b.useEffect(()=>{},[g,y,_,N]);const X=fR({flip:p,fixed:h,placement:f,appendTo:o,rootRef:m}),{getArrowProps:J,arrowMiddleware:M,getContentWithArrowStyles:j}=vR(W),{context:U,middlewareData:V,floatingStyles:Y,placement:Q}=tR({open:t,onOpenChange:(re,ue,de)=>{r(re,de),(de==="hover"||de==="safe-polygon")&&(re&&I&&ue?I(ue):!re&&k&&ue&&k(ue))},whileElementsMounted:(re,ue,de)=>OE(re,ue,de,{animationFrame:($==null?void 0:$.animationFrame)??!1}),placement:X.placement,middleware:[EE({apply({rects:re,elements:ue}){const de={wordBreak:"normal",display:"flex",justifyContent:"center"};i?(de.width=it(i),l&&(de.minWidth=it(l)),c&&(de.maxWidth=it(c))):s?(de.minWidth=it(re.reference.width),c&&(de.maxWidth=it(c))):(l&&(de.minWidth=it(l)),c&&(de.maxWidth=it(c))),(o==="window"||o==="scrollParent")&&(de.minWidth=l?it(l):"fit-content",de.width=it(i||re.reference.width),c&&(de.maxWidth=it(c))),Object.assign(ue.floating.style,de)}}),X.flip?CE(X.flip):void 0,X.autoPlacement?xE(X.autoPlacement):void 0,IE(X.shift),d?SE({mainAxis:(d==null?void 0:d.y)??0,crossAxis:(d==null?void 0:d.x)??0}):void 0,M].filter(Boolean)}),F=MO(U,{enabled:!!I||!!k,mouseOnly:!0,delay:{open:g??(E==null?void 0:E.openDelay)??0,close:y??(E==null?void 0:E.closeDelay)??0},handleClose:lR({requireIntent:!0})}),z=XO(U,{ignoreMouse:Z}),ee=QO(U,{outsidePress:re=>{const ue=re.target,de=ue.classList,ye=U.refs.reference.current,Se=U.refs.floating.current;return ye instanceof Element&&ye.contains(ue)||Se instanceof Element&&Se.contains(ue)||u&&de.contains(u)?!1:(C==null||C(re),!0)},escapeKey:!0}),te=oR(U,{role:x}),ie=rR([F,z,ee,te,{reference:{onClick:R},floating:{id:A,tabIndex:P??-1,"aria-label":D,"aria-labelledby":L,"aria-describedby":O,...K?{onMouseEnter:I,onMouseLeave:k}:{}}}]),le=re=>!re||typeof re=="number"?re:{open:re.enter,close:re.exit},{isMounted:oe,styles:fe,status:ne}=pR({...E,duration:(E==null?void 0:E.duration)??le(_)??(N?gR:void 0),closeDelay:(E==null?void 0:E.closeDelay)??y,openDelay:(E==null?void 0:E.openDelay)??g,context:U});return b.useMemo(()=>({dataHook:e,focusManagerEnabled:n,interactions:ie,context:U,appendTo:o,zIndex:a,open:oe,popoverStyles:{...U.floatingStyles,...Y,...j(Q)},transitionStyles:fe,transitionStatus:ne,portalRoot:X.portalRoot,contextClassName:G,skin:w,overlay:S,style:T,rootRef:m,middlewareData:V,placement:Q,arrowProps:J(U),showArrow:W,contentClassName:H,customArrow:q,onMouseEnter:I,onMouseLeave:k}),[e,n,ie,Q,U,I,k,oe,a,o,X,fe,ne,G,w,S,T,V,W,m,Y,H,q,J,j])}const yR=$e("popover-next",{root:{states:["fluid"]}});function tt({children:e,appendTo:t,dataHook:r,className:n,onMouseEnter:o,onMouseLeave:s,onShow:a,onHide:i,onKeyDown:l,fluid:c,open:u=!1,skin:d="light",theme:p,shown:f,dataListType:h,...m}){const g=b.useRef(null),y=b.useRef(void 0),_=bR({...m,skin:p||d,open:f??u,appendTo:t,onMouseEnter:o,onMouseLeave:s,dataHook:r,rootRef:g});return b.useEffect(()=>{},[p,f]),b.useEffect(()=>{if(y.current===void 0){y.current=_.open,_.open&&(a==null||a());return}
46_.open!==y.current&&(y.current=_.open,_.open?a==null||a():i==null||i())},[_.open]),v.createElement(h_.Provider,{value:_},v.createElement("div",{ref:g,"data-hook":r,"data-popover-root":!0,"data-list-type":h,className:yR.root({fluid:c},n),onKeyDown:l},e))}tt.displayName="PopoverNext";tt.Trigger=cR;tt.Content=uR;var $_="wds_1_319_0_Drawer",_R=se.bind(null,$_);ae.bind(null,$_);var sl=_R,zr={overlay:"wds_1_319_0_Drawer__overlay",handle:"wds_1_319_0_Drawer__handle",content:"wds_1_319_0_Drawer__content",contentInner:"wds_1_319_0_Drawer__contentInner",title:"wds_1_319_0_Drawer__title wds_1_319_0_visuallyHidden__visuallyHidden",contentWrapper:"wds_1_319_0_Drawer__contentWrapper"};const zo={OVERLAY:"drawer-overlay",CONTENT:"drawer-content",HANDLE:"drawer-handle",CONTENT_WRAPPER:"drawer-content-wrapper"},wR=10,pf=({open:e,backdrop:t=!0,renderBackdrop:r=!0,resizable:n=!0,margin:o=!0,onClose:s,role:a="dialog",ariaLabelledBy:i,snapPoints:l=[1],children:c,dismissible:u=!0,dataHook:d,zIndex:p=kn.popover,scrollable:f=!0,repositionInputs:h=!0,modal:m=!0})=>{const g=b.useRef(null),y=b.useRef(null),_=b.useRef(0),w=b.useRef({isDragging:!1,startY:0,startTranslateY:0,currentDelta:0}),E=b.useRef({active:!1,committed:!1,startX:0,startY:0,pointerId:-1});b.useEffect(()=>{if(!e||!h||typeof window>"u"||!window.visualViewport)return;const I=window.visualViewport,k=g.current,$=()=>{if(!k)return;const G=Math.max(0,window.innerHeight-I.height-I.offsetTop);k.style.bottom=G>0?`${G}px`:""};return I.addEventListener("resize",$),()=>{I.removeEventListener("resize",$),k&&(k.style.bottom="")}},[e,h]),b.useEffect(()=>{const I=g.current;if(!e||!n||!I)return;const k=$=>{w.current.isDragging&&$.cancelable&&$.preventDefault()};return I.addEventListener("touchmove",k,{passive:!1}),()=>I.removeEventListener("touchmove",k)},[e,n]);const C=I=>{var $;const k=typeof I=="string"?parseFloat(I.replace("px","")):I;return k<=1?k*((($=g.current)==null?void 0:$.clientHeight)??window.innerHeight):k},S=(I,k,$)=>{const G=g.current;if(!G)return;if(G.style.animation="none",typeof G.animate!="function"){G.style.transform=k===0?"":`translateY(${k}px)`,G.style.animation="",_.current=k,$==null||$();return}const Z=G.animate([{transform:`translateY(${I}px)`},{transform:`translateY(${k}px)`}],{duration:300,easing:"ease"});Z.onfinish=()=>{G.style.transform=k===0?"":`translateY(${k}px)`,$?$():(G.style.animation="",_.current=k)}},x=I=>{w.current={isDragging:!0,startY:I,startTranslateY:_.current,currentDelta:0},g.current&&(g.current.style.animation="none",g.current.style.transition="none")},P=I=>{var k,$;($=(k=I.currentTarget).setPointerCapture)==null||$.call(k,I.pointerId),x(I.clientY)},D=I=>{if(!w.current.isDragging)return;const k=I.clientY-w.current.startY;w.current.currentDelta=k;const $=Math.max(0,w.current.startTranslateY+k);g.current&&(g.current.style.transform=`translateY(${$}px)`)},L=()=>{if(!w.current.isDragging)return;w.current.isDragging=!1;const I=g.current;if(!I)return;const k=I.offsetHeight,$=Math.max(0,w.current.startTranslateY+w.current.currentDelta),G=l.map(C).sort((M,j)=>M-j),Z=k-$,K=G[0];if(u&&Z<K*.5){S($,k,()=>s(!1));return}let X=G[0],J=1/0;for(const M of G){const j=Math.abs(Z-M);j<J&&(J=j,X=M)}S($,Math.max(0,k-X))},O=I=>{let k=I;for(;k;){if(k.scrollTop>0)return k;if(k===g.current)break;k=k.parentElement}return null},A=()=>{const I=g.current;if(!I)return!0;const k=l.map(C).sort((Z,K)=>Z-K),$=k[k.length-1];return I.offsetHeight-_.current>=$-1},T=I=>{var k;I.pointerType!=="mouse"&&((k=y.current)!=null&&k.contains(I.target)||(E.current={active:!0,committed:!1,startX:I.clientX,startY:I.clientY,pointerId:I.pointerId}))},R=I=>{var X,J;const k=E.current;if(!k.active)return;if(k.committed){D(I);return}const $=I.clientY-k.startY,G=I.clientX-k.startX;if(Math.abs($)<wR)return;if(Math.abs($)<=Math.abs(G)){k.active=!1;return}if(!($>0?!O(I.target):!A())){k.active=!1;return}k.committed=!0,(J=(X=g.current)==null?void 0:X.setPointerCapture)==null||J.call(X,k.pointerId),x(k.startY),D(I)},N=()=>{const{committed:I}=E.current;E.current.active=!1,E.current.committed=!1,I&&L()},W=I=>{if(I.preventDefault(),!u)return;const k=g.current;if(!k){s(!1);return}S(_.current,k.offsetHeight,()=>s(!1))},q=b.useRef(null),H=b.useCallback(I=>{if(I&&I!==q.current){if(g.current=I,q.current=I,!g.current)return;const k=C(l[0]),$=Math.max(0,I.offsetHeight-k);S(g.current.clientHeight,$)}},[l]);return v.createElement("div",{"data-hook":d},v.createElement(RE,{open:e,onOpenChange:s,modal:m},v.createElement(TE,null,r&&v.createElement(AE,{"data-hook":zo.OVERLAY,className:sl(zr.overlay,{backdrop:t}),style:{zIndex:p}}),v.createElement(kE,{ref:H,"data-hook":zo.CONTENT,"aria-modal":"true","aria-labelledby":i,role:a,className:sl(zr.content,{margin:o,resizable:n}),onInteractOutside:u?void 0:I=>I.preventDefault(),onEscapeKeyDown:W,onPointerDown:n?T:void 0,onPointerMove:n?R:void 0,onPointerUp:n?N:void 0,style:{zIndex:p}},v.createElement(PE,{className:zr.title}),n&&v.createElement("div",{ref:y,className:zr.handle,"data-hook":zo.HANDLE,onPointerDown:P,onPointerMove:D,onPointerUp:L}),v.createElement("div",{className:zr.contentInner},f?v.createElement("div",{"data-hook":zo.CONTENT_WRAPPER,className:sl(zr.contentWrapper,{margin:o})},c):c)))))};pf.displayName="Drawer";class hf extends b.PureComponent{constructor(t){super(t),this.uniqueId=ln("DropdownBase"),this._dropdownLayoutRef=null,this._shouldCloseOnMouseLeave=!1,this.state={open:this.props.open,selectedId:this.props.selectedId??this.props.initialSelectedId??-1,activeDescendantId:void 0,listAutoFocus:!1},this._isControllingOpen=(r=this.props)=>typeof r.open<"u",this._isControllingSelection=(r=this.props)=>typeof r.selectedId<"u"&&typeof r.onSelect<"u",this._setIsOpen=(r,n,o)=>{this._isControllingOpen()||this.setState({...o,open:r,listAutoFocus:!1})},this._handleClickOutside=()=>{const{onClickOutside:r}=this.props;r&&r()},this._handlePopoverMouseEnter=r=>{const{onMouseEnter:n}=this.props;v.isValidElement(r)&&r.props.onMouseEnter&&r.props.onMouseEnter(),n&&n()},this._handlePopoverMouseLeave=r=>{const{onMouseLeave:n}=this.props;this._shouldCloseOnMouseLeave&&(this._shouldCloseOnMouseLeave=!1,this.setState({open:!1,activeDescendantId:void 0})),v.isValidElement(r)&&r.props.onMouseLeave&&r.props.onMouseLeave(),n&&n()},this._handleSelect=r=>{const n={};this._close(),this._isControllingSelection()||(n.selectedId=r.id),this.setState(n,()=>{const{onSelect:o}=this.props;o&&o(r)})},this._handleOptionMarked=(r,n)=>{this.setState({activeDescendantId:n})},this._open=()=>{this._setIsOpen(!0)},this._close=()=>{this._setIsOpen(!1)},this._handleClose=()=>{this.state.open&&this._close(),this.triggerElementRef&&this.triggerElementRef.current&&this.triggerElementRef.current.focus&&this.triggerElementRef.current.focus()},this._getSelectedOption=r=>{var n;return(n=this.props.options)==null?void 0:n.find(({id:o})=>o===r)},this._isOpenKey=r=>["Enter"," ","ArrowDown"].includes(r),this._isClosingKey=r=>this._isDialogMode()?["Escape"].includes(r):["Tab","Escape"].includes(r),this._handleKeyDown=r=>{if(this._isControllingOpen())return;this._delegateKeyDown(r)||(this._isOpenKey(r.key)&&!this.state.open?(this.setState({listAutoFocus:!0}),this._open(),r.preventDefault()):this._isClosingKey(r.key)&&this.state.open&&this._close()),this.state.open&&(r.key==="Enter"||r.key===" ")&&!this._isEventFromFixedRegion(r)&&r.preventDefault()},this._delegateKeyDown=r=>this._dropdownLayoutRef?this._dropdownLayoutRef._onSelectListKeyDown(r):!1,this._setDropdownLayoutRef=r=>{var n;this._dropdownLayoutRef=r,this.setState({activeDescendantId:(n=this._dropdownLayoutRef)==null?void 0:n.getActiveDescendentElementId()})},this._handleOutsideClick=(r,n)=>{if(n==="outside-press"){this._setIsOpen(!1,n);return}},this._isDialogMode=()=>{const{fixedHeader:r,fixedFooter:n}=this.props;return!!(r||n)},this._isEventFromFixedRegion=r=>{const o=r.target.closest("[data-dropdown-region]");if(!o)return!1;const s=o.getAttribute("data-dropdown-region");return s==="header"||s==="footer"},this.triggerElementRef=v.createRef()}UNSAFE_componentWillReceiveProps(t){this._isControllingOpen(t)&&this.props.open!==t.open&&this.setState({open:t.open}),this._isControllingSelection(t)&&this.props.selectedId!==t.selectedId&&this.setState({selectedId:t.selectedId})}_renderChildren(t){const{children:r}=this.props;return r?v.isValidElement(r)?r:v.isValidElement(t)?v.cloneElement(t,{...t.props.onMouseEnter?{onMouseEnter:()=>{}}:{},...t.props.onMouseLeave?{onMouseLeave:()=>{}}:{}}):t:null}_renderDropdownLayout(){const{options:t,maxHeight:r,overflow:n,focusOnSelectedOption:o,infiniteScroll:s,loadMore:a,hasMore:i,focusOnOption:l,markedOption:c,scrollToOption:u,onMouseDown:d,listType:p,autoFocus:f,fixedHeader:h,fixedFooter:m}=this.props,{selectedId:g}=this.state;return v.createElement(tO,{dataHook:"dropdown-base-dropdownlayout",className:Fn.list(),ref:this._setDropdownLayoutRef,selectedId:g,options:t,maxHeightPixels:r,onSelect:this._handleSelect,onOptionMarked:this._handleOptionMarked,onClose:this._handleClose,inContainer:!0,visible:!0,overflow:n,focusOnSelectedOption:o,infiniteScroll:s,loadMore:a,hasMore:i,focusOnOption:l,markedOption:c,scrollToOption:u,onMouseDown:d,listType:p,autoFocus:this._isDialogMode()?!1:f||this.state.listAutoFocus,fixedHeader:h,fixedFooter:m,listboxId:`${this.uniqueId}-listbox`})}render(){const{dataHook:t,placement:r,appendTo:n,showArrow:o,zIndex:s,moveBy:a,minWidth:i,maxWidth:l,width:c,fixed:u,flip:d,dynamicWidth:p,fluid:f,animate:h,className:m,listType:g,popoverContentClassName:y,onMouseEnter:_,onMouseLeave:w,selectedId:E,children:C}=this.props,{open:S,activeDescendantId:x}=this.state,{onShow:P,onHide:D,...L}=this.props,O=typeof C=="function"?C({toggle:S?this._close:this._open,open:this._open,close:this._close,isOpen:!!S,ref:this.triggerElementRef,delegateKeyDown:this._delegateKeyDown,selectedOption:this._getSelectedOption(E),listboxId:`${this.uniqueId}-listbox`,activeDescendantId:x}):C;return v.createElement(Qt.Consumer,null,({mobile:A})=>A?v.createElement("div",null,v.createElement("div",null,this._renderChildren(O)),v.createElement(pf,{dataHook:t,open:!!S,onClose:T=>this._setIsOpen(T),zIndex:s},v.createElement("div",{className:Fn.drawerContent()}
46,this._renderDropdownLayout()))):v.createElement(tt,{dataListType:g,onOpenChange:this._handleOutsideClick,animate:h,dataHook:t,open:S,autoUpdateOptions:{animationFrame:!0},...L,placement:r,dynamicWidth:p,appendTo:n,showArrow:o,zIndex:s,moveBy:a,onKeyDown:this._handleKeyDown,onMouseEnter:_||v.isValidElement(O)&&O.props.onMouseEnter?()=>this._handlePopoverMouseEnter(O):void 0,onMouseLeave:w||v.isValidElement(O)&&O.props.onMouseLeave?()=>this._handlePopoverMouseLeave(O):void 0,onClickOutside:this._handleClickOutside,fixed:u,flip:d,fluid:f,onHide:D,onShow:P,focusManagerEnabled:this._isDialogMode(),className:Fn.root({withWidth:!!(i||l)},m),minWidth:i,maxWidth:l,width:c},v.createElement(tt.Trigger,{className:Fn.trigger()},v.createElement("div",null,this._renderChildren(O))),v.createElement(tt.Content,{className:Fn.content({withWidth:!!(i||l)},y)},v.createElement("div",{style:{minWidth:i,maxWidth:l}},this._renderDropdownLayout()))))}}hf.displayName="DropdownBase";hf.defaultProps={placement:"bottom",appendTo:"parent",showArrow:!1,maxHeight:"260px",dynamicWidth:!0,minWidth:192,fluid:!1,animate:!1,listType:"select",onShow:()=>{},onHide:()=>{},onMouseEnter:()=>{},onMouseLeave:()=>{}};const al=$e("popover-menu",{popoverContent:{states:["withWidth"]},listItem:{}}),ER={bottom:"bottom"},CR={medium:"medium"},xR=204,IR=144,SR={type:"css",duration:{open:150,close:120}},M_=b.forwardRef(function(t,r){const{maxWidth:n=xR,minWidth:o=IR,placement:s=ER.bottom,appendTo:a=xn.window,textSize:i=CR.medium,fixed:l=!1,flip:c=!0,showArrow:u=!0,ellipsis:d=!1,maxHeight:p="auto",triggerElement:f,children:h,dataHook:m,moveBy:g,zIndex:y,className:_,fluid:w,onHide:E,onShow:C,fixedFooter:S}=kr("PopoverMenu",t),x=b.useRef(null);b.useImperativeHandle(r,()=>({_open:()=>{x.current&&x.current._open()}}));const P=T=>{var R;return((R=v.Children.map(T,N=>N))==null?void 0:R.filter(N=>typeof N!="string"&&!!N&&v.isValidElement(N)))??[]},D=T=>T.map((R,N)=>{const W=R.type&&R.type.displayName;return W&&W==="PopoverMenu.Divider"?{id:N,type:"divider",dataHook:R.props.dataHook}:W&&W==="PopoverMenu.SectionTitle"?{id:N,type:"title",title:R.props.title,dataHook:R.props.dataHook}:W&&W==="PopoverMenu.MenuItem"?{id:N,title:R.props.text,onClick:R.props.onClick,skin:R.props.skin,dataHook:R.props.dataHook,prefixIcon:R.props.prefixIcon,disabled:R.props.disabled,disabledDescription:R.props.disabledDescription,subtitle:R.props.subtitle,suffixIcon:R.props.suffixIcon}:{id:N,value:R,type:"custom",overrideStyle:!0}}),L=()=>{const T=P(h);return D(T).map(N=>{const{type:W,...q}=N;if(W==="custom")return q;if(W==="divider")return ls({...q,type:N.type});if(W==="title")return ls({...q,type:N.type});const{id:H,disabled:I,dataHook:k,skin:$,subtitle:G,title:Z,...K}=q;return{...K,id:H,disabled:I,as:"button",dataHook:k||`popover-menu-${H}`,skin:$||"standard",size:i,className:al.listItem(),ellipsis:d,subtitle:G,shouldFocusWithoutScroll:!0,value:"action",title:!1,optionTitle:Z}})},O=({toggle:T,open:R,close:N,isOpen:W,ref:q})=>{if(!f)return null;const I={onClick:k=>{var $;v.isValidElement(f)&&(($=f.props)!=null&&$.onClick)&&f.props.onClick(k),T()},ref:q,"aria-haspopup":"menu","aria-expanded":W};if(v.isValidElement(f)){const $=f.ref,G=as(q,$);return v.cloneElement(f,{...I,ref:G})}return typeof f=="function"?f({toggle:T,open:R,close:N,isOpen:W,...I}):null},A=()=>{var R;let T=!1;return v.isValidElement(f)&&(T=((R=f.props)==null?void 0:R.disabled)??!1),T?{open:!1}:{}};return v.createElement(hf,{...A(),ref:x,className:al.root({},_),popoverContentClassName:al.popoverContent({withWidth:!!(o||n)}),dataHook:m,transitionSettings:SR,options:L(),appendTo:a,placement:s,minWidth:o,maxWidth:n,width:"fit-content",flip:c,fixed:l,showArrow:u,tabIndex:-1,moveBy:g,maxHeight:p,zIndex:y,fluid:w,onHide:E,onShow:C,listType:"action",autoFocus:!0,fixedFooter:S},({toggle:T,open:R,close:N,isOpen:W,ref:q})=>O({toggle:T,open:R,close:N,isOpen:W,ref:q}))}),F_=()=>v.createElement(v.Fragment,null);F_.displayName="PopoverMenu.MenuItem";const B_=()=>v.createElement(v.Fragment,null);B_.displayName="PopoverMenu.Divider";const H_=()=>v.createElement(v.Fragment,null);H_.displayName="PopoverMenu.SectionTitle";Object.assign(M_,{displayName:"PopoverMenu",MenuItem:F_,Divider:B_,SectionTitle:H_});const il=M_,q_=({size:e,...t})=>
46b.createElement("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:e||"24",height:e||"24",...t},b.createElement("path",{d:"M12 12 12 6 11 6 11 12 5 12 5 13 11 13 11 19 12 19 12 13 18 13 18 12z"}));q_.displayName="Add";var OR=q_;const j_=({size:e,...t})=>b.createElement("svg",{viewBox:"0 0 18 18",fill:"currentColor",width:e||"18",height:e||"18",...t},b.createElement("path",{d:"M10 9 10 5 9 5 9 9 5 9 5 10 9 10 9 14 10 14 10 10 14 10 14 9z"}));j_.displayName="AddSmall";var RR=j_;const U_=({size:e,...t})=>b.createElement("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:e||"24",height:e||"24",...t},b.createElement("path",{d:"M9.75 15.25 7 12.5 6 13.499 9.75 17.25 18 8.999 17 8z"}));U_.displayName="Check";var TR=U_;const W_=({size:e,...t})=>b.createElement("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:e||"24",height:e||"24",...t},b.createElement("path",{d:"M17,17 C17,18.6568542 15.6568542,20 14,20 L9,20 C7.34314575,20 6,18.6568542 6,17 L6,7 L5,7 L5,6 L18,6 L18,7 L17,7 L17,17 Z M9,9 L10,9 L10,16 L9,16 L9,9 Z M11,9 L12,9 L12,16 L11,16 L11,9 Z M13,9 L14,9 L14,16 L13,16 L13,9 Z M7,17 C7,18.1045695 7.8954305,19 9,19 L14,19 C15.1045695,19 16,18.1045695 16,17 L16,7 L7,7 L7,17 Z M13,6 L13,5 L10,5 L10,6 L9,6 L9,5 C9,4.44771525 9.44771525,4 10,4 L13,4 C13.5522847,4 14,4.44771525 14,5 L14,6 L13,6 Z"}));W_.displayName="Delete";var rv=W_;const V_=({size:e,...t})=>b.createElement("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:e||"24",height:e||"24",...t},b.createElement("path",{d:"M6,13 L5,13 L5,17 C5,18.1045695 5.8954305,19 7,19 L18,19 C19.1045695,19 20,18.1045695 20,17 L20,13 L19,13 L19,17 C19,17.5522847 18.5522847,18 18,18 L7,18 C6.44771525,18 6,17.5522847 6,17 L6,13 Z M16,11.625 L15.5,11 L13,13.5 L13,5 L12,5 L12,13.5 L9.5,11 L9,11.625 L12.5,15 L16,11.625 Z"}));V_.displayName="Download";var nv=V_;const z_=({size:e,...t})=>b.createElement("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:e||"24",height:e||"24",...t},b.createElement("path",{d:"M13,15 L13,10 L11,10 L10,12 L11,12 L11,15 L10,16 L10,17 L14,17 L14,16 L13,15 Z M11,9 L13,9 L13,7 L11,7 L11,9 Z M12,20 C7.589,20 4,16.411 4,12 C4,7.589 7.589,4 12,4 C16.411,4 20,7.589 20,12 C20,16.411 16.411,20 12,20 L12,20 Z M12,3 C7.029,3 3,7.029 3,12 C3,16.971 7.029,21 12,21 C16.971,21 21,16.971 21,12 C21,7.029 16.971,3 12,3 L12,3 Z"}));z_.displayName="InfoCircle";var AR=z_;const K_=({size:e,...t})=>b.createElement("svg",{viewBox:"0 0 18 18",fill:"currentColor",width:e||"18",height:e||"18",...t},b.createElement("path",{d:"M9,16 C5.13400675,16 2,12.8659932 2,9 C2,5.13400675 5.13400675,2 9,2 C12.8659932,2 16,5.13400675 16,9 C16,12.8659932 12.8659932,16 9,16 Z M9,15 C12.3137085,15 15,12.3137085 15,9 C15,5.6862915 12.3137085,3 9,3 C5.6862915,3 3,5.6862915 3,9 C3,12.3137085 5.6862915,15 9,15 Z M8,8 L10,8 L10,12 L11,13 L7,13 L8,12 L8,8.85714286 L7,8.85714286 L8,8 Z M9,5 C9.55228475,5 10,5.44771525 10,6 C10,6.55228475 9.55228475,7 9,7 C8.44771525,7 8,6.55228475 8,6 C8,5.44771525 8.44771525,5 9,5 Z"}));K_.displayName="InfoCircleSmall";var kR=K_;const G_=({size:e,...t})=>b.createElement("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:e||"24",height:e||"24",...t},b.createElement("path",{d:"M6,12.5 C6,11.6715729 6.66579723,11 7.5,11 C8.32842712,11 9,11.6657972 9,12.5 C9,13.3284271 8.33420277,14 7.5,14 C6.67157288,14 6,13.3342028 6,12.5 Z M11,12.5 C11,11.6715729 11.6657972,11 12.5,11 C13.3284271,11 14,11.6657972 14,12.5 C14,13.3284271 13.3342028,14 12.5,14 C11.6715729,14 11,13.3342028 11,12.5 Z M16,12.5 C16,11.6715729 16.6657972,11 17.5,11 C18.3284271,11 19,11.6657972 19,12.5 C19,13.3284271 18.3342028,14 17.5,14 C16.6715729,14 16,13.3342028 16,12.5 Z"}));G_.displayName="More";var PR=G_;const Y_=({size:e,...t})=>b.createElement("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:e||"24",height:e||"24",...t},b.createElement("path",{d:"M19.345 5.58c-.39-.39-.9-.58-1.41-.58-.51 0-1.03.19-1.41.58l-2.12 2.12-.35-.35c-.29-.29-.68-.44-1.06-.44s-.77.15-1.06.44c-.58.58-.58 1.54 0 2.12l.35.35-4.24 4.24c-2.12 2.12-1.79 3.86-2.94 5.01-.31.31.13.86.51.86.09 0 .18-.03.25-.1 1.14-1.14 2.88-.81 5.01-2.94l4.24-4.24.35.35c.29.29.68.44 1.06.44s.77-.15 1.06-.44c.59-.59.59-1.54 0-2.12l-.35-.35 2.12-2.12c.78-.78.78-2.05 0-2.83h-.01Zm-9.19 10.61c-1.07 1.07-2 1.41-2.89 1.75-.14.05-.29.11-.44.17.06-.
4615.11-.29.17-.44.33-.9.68-1.82 1.75-2.89l4.24-4.24 1.41 1.41-4.24 4.24Zm8.48-8.49-2.12 2.12-.71.71.71.71.35.35c.13.13.15.28.15.35 0 .07-.02.23-.15.35-.13.12-.28.14-.35.14-.07 0-.23-.02-.35-.14l-.76-.76-1.01-1.01-1.77-1.77a.513.513 0 0 1 0-.71.512.512 0 0 1 .7 0l.35.35.71.71.71-.71 2.12-2.12a.99.99 0 0 1 .71-.29.996.996 0 0 1 .71 1.7v.02Z"}));Y_.displayName="Pipette";var DR=Y_;const X_=({size:e,...t})=>b.createElement("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:e||"24",height:e||"24",...t},b.createElement("path",{d:"M7.70710678,8 L9.85355339,10.1464466 C10.0488155,10.3417088 10.0488155,10.6582912 9.85355339,10.8535534 C9.65829124,11.0488155 9.34170876,11.0488155 9.14644661,10.8535534 L5.79289322,7.5 L9.14644661,4.14644661 C9.34170876,3.95118446 9.65829124,3.95118446 9.85355339,4.14644661 C10.0488155,4.34170876 10.0488155,4.65829124 9.85355339,4.85355339 L7.70710678,7 L12,7 C15.3137085,7 18,9.6862915 18,13 L17,13 C17,10.2385763 14.7614237,8 12,8 L7.70710678,8 Z M16.2928932,16 L14.1464466,13.8535534 C13.9511845,13.6582912 13.9511845,13.3417088 14.1464466,13.1464466 C14.3417088,12.9511845 14.6582912,12.9511845 14.8535534,13.1464466 L18.2071068,16.5 L14.8535534,19.8535534 C14.6582912,20.0488155 14.3417088,20.0488155 14.1464466,19.8535534 C13.9511845,19.6582912 13.9511845,19.3417088 14.1464466,19.1464466 L16.2928932,17 L12,17 C8.6862915,17 6,14.3137085 6,11 L7,11 C7,13.7614237 9.23857625,16 12,16 L16.2928932,16 Z"}));X_.displayName="Replace";var NR=X_;const Z_=({size:e,...t})=>b.createElement("svg",{viewBox:"0 0 18 18",fill:"currentColor",width:e||"18",height:e||"18",...t},b.createElement("path",{d:"M9,16 C5.13400675,16 2,12.8659932 2,9 C2,5.13400675 5.13400675,2 9,2 C12.8659932,2 16,5.13400675 16,9 C16,12.8659932 12.8659932,16 9,16 Z M9,5 C8.44771525,5 8,5.44771525 8,6 L8,8 C8,8.55228475 8.44771525,9 9,9 C9.55228475,9 10,8.55228475 10,8 L10,6 C10,5.44771525 9.55228475,5 9,5 Z M9,10 C8.44771525,10 8,10.4477153 8,11 C8,11.5522847 8.44771525,12 9,12 C9.55228475,12 10,11.5522847 10,11 C10,10.4477153 9.55228475,10 9,10 Z"}));Z_.displayName="StatusAlertFilledSmall";var LR=Z_;const J_=({size:e,...t})=>b.createElement("svg",{viewBox:"0 0 18 18",fill:"currentColor",width:e||"18",height:e||"18",...t},b.createElement("path",{d:"M10.7037499,3.9623322 L15.7092882,11.9592754 C15.9070807,12.2850514 16.000829,12.6448689 16.000061,13 C15.9984263,13.6741191 15.6560657,14.3313518 15.0376694,14.7068067 C14.7247801,14.8967752 14.3657565,14.9972317 13.9997131,14.9972317 L4,14.9999236 C2.8954305,14.9999236 2,14.1045695 2,13 C2,12.6339566 2.10045645,12.2749331 2.29042497,11.9620437 L7.28459986,3.9623322 C7.66164996,3.34130849 8.32287747,2.99867105 9,2.99992355 C9.35233944,3.00069152 9.70898264,3.09451612 10.0321312,3.29071343 C10.3066867,3.45740786 10.5370555,3.68777667 10.7037499,3.9623322 Z M9,6 C8.44771525,6 8,6.44771525 8,7 L8,9 C8,9.55228475 8.44771525,10 9,10 C9.55228475,10 10,9.55228475 10,9 L10,7 C10,6.44771525 9.55228475,6 9,6 Z M9,11 C8.44771525,11 8,11.4477153 8,12 C8,12.5522847 8.44771525,13 9,13 C9.55228475,13 10,12.5522847 10,12 C10,11.4477153 9.55228475,11 9,11 Z"}));J_.displayName="StatusWarningFilledSmall";var $R=J_;const Q_=({size:e,...t})=>b.createElement("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:e||"24",height:e||"24",...t},b.createElement("path",{d:"M17 6 12.001 10.999 7 6 6 7 11.001 11.999 6 17 7 18 12.001 12.999 17 18 18 17 13 11.999 18 7z"}));Q_.displayName="X";var MR=Q_;globalThis.__WDSSystemIconThemeContext__||(globalThis.__WDSSystemIconThemeContext__=b.createContext({icons:{}}));const mf=globalThis.__WDSSystemIconThemeContext__,Nr=(e,t)=>{const{icons:r}=b.useContext(mf),n=r[e];return n?{...t,...n}:t};var ew="wds_1_319_0_Image",FR=se.bind(null,ew);ae.bind(null,ew);var BR=FR,HR={root:"wds_1_319_0_Image__root"};const ov={source:"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='164' height='120' viewBox='0 0 164 120'%3E%3Cg fill='none'%3E%3Crect width='164' height='120' fill='%23DAEFFE'/%3E%3Cpath fill='%23B9E3FF' d='M-8.52651283e-14,120 L49.0917544,74.9616932 C52.151039,72.1550101 56.848961,72.1550101 59.9082456,74.9616932 L71.293,85.4057534 L96.9019846,59.8591624 C100.0299,56.7386931 105.095216,56.744729 108.215685,59.8726439 C108.284098,59.9412201 108.35126,60.0110332 108.417137,60.0820486 L164,120 L-8.52651283e-14,120 Z'/%3E%3Ccircle cx='67.5' cy='43.5' r='10.5' fill='%23F5F
46BFF'/%3E%3C/g%3E%3C/svg%3E%0A",style:{objectFit:"cover"}},Ln=({width:e="100%",fit:t="cover",position:r="center",showBorder:n=!1,borderRadius:o,transparent:s=!1,alt:a="",...i})=>{const{dataHook:l,src:c,style:u,className:d,...p}={width:e,...i},f=c||ov.source,h=!!c&&t==="tile",m=c?h?{backgroundPosition:r,backgroundImage:`url("${f}")`}:{objectFit:t,objectPosition:r}:ov.style;return v.createElement("img",{...p,className:BR(HR.root,{tiled:h,showBorder:n,transparent:s},d),"data-hook":l,"data-transparent":s,src:f,alt:a,style:{...u,...m,borderRadius:o}})};Ln.displayName="Image";const Tt={itemText:"additem-text",itemSubtitle:"additem-subtitle",itemTooltip:"additem-tooltip",addItem:"additem",defaultIcon:"additem-default-icon"};var tw="wds_1_319_0_opacity";se.bind(null,tw);ae.bind(null,tw);var rw="wds_1_319_0_border";se.bind(null,rw);ae.bind(null,rw);var nw="wds_1_319_0_AddItem",qR=se.bind(null,nw);ae.bind(null,nw);var oo=qR,_t={root:"wds_1_319_0_AddItem__root",icon:"wds_1_319_0_AddItem__icon",illustration:"wds_1_319_0_AddItem__illustration",contentContainer:"wds_1_319_0_AddItem__contentContainer",content:"wds_1_319_0_AddItem__content",textWrapper:"wds_1_319_0_AddItem__textWrapper",textContent:"wds_1_319_0_AddItem__textContent",subtitle:"wds_1_319_0_AddItem__subtitle",tooltip:"wds_1_319_0_AddItem__tooltip"};const jR={tiny:{height:24,width:24},small:{height:60,width:60},medium:{height:120,width:120},large:{height:120,width:120}},UR={left:"top-start",right:"top-end",center:"top"},qs=b.forwardRef(({theme:e="dashes",size:t="tiny",alignItems:r="center",removePadding:n=!1,borderRadius:o,disabled:s,className:a,onClick:i,ariaLabel:l,icon:c,children:u,subtitle:d,dataHook:p,tooltipProps:f,tooltipContent:h,showIcon:m=!0,...g},y)=>{const _=Nr("AddItem",{Add:OR,AddItemLarge:YE,AddItemMedium:XE,AddItemSmall:ZE,AddMedia:JE}),w=g.skin||e,E=v.useRef(null);b.useEffect(()=>{},[e]),b.useImperativeHandle(y,()=>({focus:()=>{var O;(O=E.current)==null||O.focus()},blur:()=>{var O;(O=E.current)==null||O.blur()}}));const C=b.useMemo(()=>{if(m)return c?typeof c=="string"?v.createElement(Ln,{className:_t.illustration,fit:"contain",src:c,...jR[t]}):c:w==="image"?v.createElement(_.AddMedia,{"data-hook":Tt.defaultIcon,className:_t.icon,width:"31",height:"31"}):t==="tiny"?v.createElement(_.Add,{"data-hook":Tt.defaultIcon,className:_t.icon,width:"24",height:"24"}):t==="small"?v.createElement(_.AddItemSmall,{"data-hook":Tt.defaultIcon}):t==="medium"?v.createElement(_.AddItemMedium,{"data-hook":Tt.defaultIcon}):v.createElement(_.AddItemLarge,{"data-hook":Tt.defaultIcon})},[c,t,w,m,_]),S=b.useMemo(()=>{if(!u||w==="image")return;const O=t==="tiny"?"small":"medium";return v.createElement("div",{className:oo(_t.textWrapper,{size:t})},typeof u=="function"?u():v.createElement(pe,{className:_t.textContent,weight:"thin",skin:"standard",size:O,dataHook:Tt.itemText,ellipsis:!0},u))},[u,t,w]),x=b.useMemo(()=>d&&v.createElement(pe,{className:oo(_t.subtitle,{size:t}),size:"small",dataHook:Tt.itemSubtitle},d),[d,t]),P={className:a,onClick:i,disabled:s,skin:w,size:t,ariaLabel:l,borderRadius:o,removePadding:n,alignItems:r,icon:C,text:S,subtitle:x},D=h||(f==null?void 0:f.content),L=Cs("additem-tooltip_");return v.createElement("div",{style:{width:"100%",height:"100%"},"data-hook":p},D&&v.createElement(Ne,{content:D,className:_t.tooltip,flip:w==="image",moveBy:{y:w==="image"?-12:0},dataHook:Tt.itemTooltip,placement:UR[r],"aria-describedby":L,...f},({onFocus:O,onBlur:A})=>v.createElement(sv,{ref:E,ariaDescribedBy:L,...P,onFocus:O,onBlur:A})),!D&&v.createElement(sv,{ref:E,...P}))}),sv=b.forwardRef(({className:e,onClick:t,disabled:r,size:n,ariaLabel:o,borderRadius:s,alignItems:a="center",removePadding:i,skin:l,icon:c,text:u,subtitle:d,ariaDescribedBy:p,onFocus:f,onBlur:h},m)=>{const{isFocusVisible:g,focusProps:y}=Jd();return v.createElement("button",{ref:m,"data-hook":Tt.addItem,className:oo(_t.root,{skin:l,size:n,removePadding:i,borderRadius:s,disabled:r,alignItems:a,"focus-visible":g},e),style:{borderRadius:s},disabled:r,type:"button",onClick:t,"aria-label":o,"aria-describedby":p,...y,onFocus:_=>{var w;(w=y.onFocus)==null||w.call(y,_),f==null||f(_)},onBlur:_=>{var w;(w=y.onBlur)==null||w.call(y,_),h==null||h(_)}}
46,v.createElement("div",{className:oo(_t.contentContainer,{skin:l,size:n,alignItems:a,disabled:r})},v.createElement("div",{className:oo(_t.content,{size:n})},c,u),d))});qs.displayName="AddItem";const ow={tiny:"tiny",small:"small",medium:"medium",large:"large"},Ko=ow,WR={[Ko.tiny]:"18px",[Ko.small]:"18px",[Ko.medium]:"24px",[Ko.large]:"24px"};var sw="wds_1_319_0_IconButton",VR=se.bind(null,sw);ae.bind(null,sw);var zR=VR,KR={root:"wds_1_319_0_IconButton__root"};const vf=b.createContext({input:{size:"medium"},button:{size:ow.medium}}),gf=vf;vf.Provider;vf.Consumer;const Ct=b.forwardRef((e,t)=>{e.skin;const r=v.useContext(gf),n=v.useRef(null);b.useImperativeHandle(t,()=>({focus(){n.current&&n.current.focus()}}),[n]);const{button:o}=r,{skin:s="standard",className:a,priority:i="primary",size:l=o.size,children:c,disabled:u=!1,dataHook:d,ariaLabel:p,ariaLabelledBy:f,...h}=kr("IconButton",e),m=WR[l];return v.createElement(So,{...h,disabled:u,ref:n,className:zR(KR.root,{skin:s,priority:i,size:l},a),...Es({...e,size:l},["skin","size","priority"]),"data-hook":d,"aria-label":p,"aria-labelledby":f},c&&v.cloneElement(c,{size:m,width:m,height:m,"aria-hidden":!0}))});Ct.displayName="IconButton";const GR={tooltip:"infoicon-tooltip"},YR='a[href], button, input, textarea, select, [tabindex]:not([tabindex="-1"])';var aw="wds_1_319_0_InfoIcon",XR=se.bind(null,aw);ae.bind(null,aw);var ZR=XR,ll={root:"wds_1_319_0_InfoIcon__root",trigger:"wds_1_319_0_InfoIcon__trigger",icon:"wds_1_319_0_InfoIcon__icon"};const iw=({dataHook:e,content:t,size:r="medium",tooltipProps:n,className:o,children:s,ariaLabel:a,"aria-labelledby":i,"aria-describedby":l})=>{const c=Nr("InfoIcon",{InfoCircle:AR,InfoCircleSmall:kR}),d={small:c.InfoCircleSmall,medium:c.InfoCircle}[r],p=b.useRef(null),f=b.useRef(null),[h,m]=b.useState(!1),[g,y]=b.useState(!1),_=b.useRef(!1),w=b.useRef(!1),E=Cs(),C=(n==null?void 0:n["aria-labelledby"])??i,S=(n==null?void 0:n["aria-describedby"])??l,x=C||S||`infoicon-tooltip-${E}`,P=b.useCallback(()=>{var H;y(!0),(H=n==null?void 0:n.onShow)==null||H.call(n)},[n]),D=b.useCallback(()=>{var H;y(!1),(H=n==null?void 0:n.onHide)==null||H.call(n)},[n]),L={...n,onShow:P,onHide:D,...C?{"aria-labelledby":C}:{"aria-describedby":S||x}},O=b.useCallback(()=>{requestAnimationFrame(()=>{var k;const H=(k=p.current)==null?void 0:k.getContentElement(),I=H==null?void 0:H.querySelector(YR);I==null||I.focus({preventScroll:!0})})},[]),A=b.useCallback(()=>{var H,I;(H=p.current)==null||H.close(),m(!1),(I=f.current)==null||I.focus()},[]),T=b.useCallback(H=>{var $,G;if(!h)return;const I=H.relatedTarget,k=($=p.current)==null?void 0:$.getContentElement();k!=null&&k.contains(I)&&((G=p.current)==null||G.close(),m(!1))},[h]),R=()=>{_.current=g,w.current=!0},N=()=>{var I,k;if(n!=null&&n.disabled)return;const H=w.current?_.current:g;w.current=!1,H?g&&((I=p.current)==null||I.close(),m(!1)):g||(k=p.current)==null||k.open()},W=H=>{var I;H.key==="Escape"&&A(),H.key==="Enter"&&(H.preventDefault(),(I=p.current)==null||I.open(),m(!0),O())};b.useEffect(()=>{if(!h)return;const H=I=>{I.key==="Escape"&&(I.preventDefault(),I.stopPropagation(),A())};return document.addEventListener("keydown",H,!0),()=>{document.removeEventListener("keydown",H,!0)}},[h,A]);const q=b.useCallback(H=>{var $,G;if(!h)return;const I=H.relatedTarget;if(($=f.current)!=null&&$.contains(I))return;const k=(G=p.current)==null?void 0:G.getContentElement();k!=null&&k.contains(I)||requestAnimationFrame(()=>{A()})},[h,A]);return v.createElement("div",{className:ZR(ll.root,o),"data-size":r,"data-hook":e,onBlur:q},v.createElement(Ne,{...L,content:t,dataHook:GR.tooltip,ref:p},()=>v.createElement("div",{ref:f,className:ll.trigger,role:"button",tabIndex:0,"aria-label":a,"aria-haspopup":!0,"aria-expanded":g,"aria-controls":x,onKeyDown:W,onFocus:T,onPointerDown:R,onClick:N},s??v.createElement(d,{className:ll.icon}))))};iw.displayName="InfoIcon";const JR=v.createContext({status:null,statusId:null});var lw="wds_1_319_0_Button",QR=se.bind(null,lw);ae.bind(null,lw);var eT=QR,tT={root:"wds_1_319_0_Button__root"};class bf extends b.PureComponent{constructor(t){super(t),this.button=v.createRef(),this.focus=r=>{this.button.current&&this.button.current.focus(r)},this.getBoundingClientRect=()=>{var r;return(r=this.button.current)==null?void 0:r.getBoundingClientRect()},t.skin}render(){const{button:t}=this.context,{skin:r="standard",priority:n="primary",size:o=t.size,className:s,fullWidth:a,children:i,dataHook:l,ellipsis:c,showTooltip:u,internalDataHook:d,tooltipProps:p={},...f}=this.props;return v.createElement(xe,{ellipsis:c,showTooltip:u,...p,render:({ref:h,ellipsisClasse
46s:m})=>v.createElement(So,{...f,...Es({...this.props,size:o},["skin","size","priority"]),ref:this.button,className:eT(tT.root,{fluid:!!a,skin:r,priority:n,size:o,ellipsis:!!c},s),"data-hook":l,"data-hook-internal":d,contentClassName:m(),contentRef:h},i)})}}bf.contextType=gf;bf.displayName="Button";const rT=Oo(bf,"Button");var cw="wds_1_319_0_CloseButton",nT=se.bind(null,cw);ae.bind(null,cw);var oT=nT,sT={root:"wds_1_319_0_CloseButton__root"},uw="wds_1_319_0_Input",aT=se.bind(null,uw);ae.bind(null,uw);var av=aT,wt={root:"wds_1_319_0_Input__root",wrapper:"wds_1_319_0_Input__wrapper",input:"wds_1_319_0_Input__input",suffixes:"wds_1_319_0_Input__suffixes",suffix:"wds_1_319_0_Input__suffix",statusWrapper:"wds_1_319_0_Input__statusWrapper",clearButtonWrapper:"wds_1_319_0_Input__clearButtonWrapper",menuArrow:"wds_1_319_0_Input__menuArrow",clearButton:"wds_1_319_0_Input__clearButton"},iT={"input-background":"--wds_1_319_0_Input-input-background"};const Sd=v.createContext(null),lT={tooltip:"status-indicator-tooltip"},so={ERROR:"error",WARNING:"warning",LOADING:"loading"},cT={TOP:"top"},Kr={menuArrow:"input-menu-arrow",status:"input-status",suffixes:"input-suffixes",tooltip:"input-suffix-tooltip",clearButton:"input-clear-button"},Vn={tiny:"tiny",small:"small",medium:"medium",large:"large"},Rt={SIZE:"data-size",STATUS:"data-status",PREFIX:"data-prefix",DISABLED:"data-disabled",HOVER:"data-hover",FOCUS:"data-focus",LEFTBORDERRADIUS:"data-left-border-radius",RIGHTBORDERRADIUS:"data-right-border-radius",ROOT:"data-input-root"};var dw="wds_1_319_0_Ticker",uT=se.bind(null,dw);ae.bind(null,dw);var cl=uT,ul={root:"wds_1_319_0_Ticker__root",up:"wds_1_319_0_Ticker__up",down:"wds_1_319_0_Ticker__down"};const js=({consumerCompName:e="InputConsumer",children:t})=>{if(typeof t!="function")throw new Error(`child of ${e} must be a context consumer function`);return v.createElement(Sd.Consumer,null,r=>{if(!r)throw new Error(`${e} cannot be rendered outside the Input component`);return t(r)})},iv={tickerUp:"ticker-up-button",tickerDown:"ticker-down-button"},yf=({onUp:e,onDown:t,upDisabled:r,downDisabled:n,onMouseDown:o,dataHook:s})=>v.createElement(js,{consumerCompName:yf.displayName},({disabled:a,readOnly:i,size:l})=>{const c=r||a||i,u=n||a||i;return v.createElement("div",{className:cl(ul.root,{size:l}),onMouseDown:o,"data-hook":s},v.createElement("div",{"data-hook":iv.tickerUp,"data-disabled":c,className:cl(ul.up,{disabled:c}),onClick:c?void 0:e},v.createElement(lC,null)),v.createElement("div",{"data-hook":iv.tickerDown,"data-disabled":u,className:cl(ul.down,{disabled:u}),onClick:u?void 0:t},v.createElement(iC,null)))});yf.displayName="Input.Ticker";var fw="wds_1_319_0_IconAffix",dT=se.bind(null,fw);ae.bind(null,fw);var fT=dT,pT={root:"wds_1_319_0_IconAffix__root"};const _f=({children:e,dataHook:t})=>v.createElement(js,{consumerCompName:_f.displayName},({size:r,inPrefix:n,inSuffix:o,border:s,disabled:a,onInputClicked:i})=>v.createElement("div",{className:fT(pT.root,{size:r,inPrefix:n,inSuffix:o,border:s,disabled:a}),onClick:a?void 0:i,"data-hook":t},v.cloneElement(e,{size:r==="tiny"||r==="small"?"18px":"24px"})));_f.displayName="Input.IconAffix";var pw="wds_1_319_0_Affix",hT=se.bind(null,pw);ae.bind(null,pw);var mT=hT,vT={root:"wds_1_319_0_Affix__root"};const wf=({children:e,value:t})=>v.createElement(js,{consumerCompName:wf.displayName},({size:r,inPrefix:n,inSuffix:o,border:s,disabled:a,onInputClicked:i})=>v.createElement("div",{className:mT(vT.root,{size:r,inPrefix:n,inSuffix:o,border:s,disabled:a}),onClick:i,"data-hook":"custom-affix"},t||e));wf.displayName="Input.Affix";var hw="wds_1_319_0_Group";se.bind(null,hw);ae.bind(null,hw);var gT={root:"wds_1_319_0_Group__root"};const Ef=({children:e})=>v.createElement(js,{consumerCompName:Ef.displayName},()=>v.createElement("div",{className:gT.root},e));Ef.displayName="Input.Group";const Po=v.createContext({status:null,ariaLabelledBy:null,ariaDescribedBy:null}),po=({status:e},t)=>t||e,mw=({ariaLabelledBy:e,ariaDescribedBy:t})=>({...e&&{"aria-labelledby":e},...t&&{"aria-describedby":t}});function bT({autoFocus:e,autoSelect:t,onFocus:r,onBlur:n,localIn
46putRef:o,value:s}){const[a,i]=b.useState(!1),l=b.useRef(!1),c=b.useCallback(d=>{var p;i(!0),t&&((p=o.current)==null||p.select()),r==null||r(d)},[r,o,t]),u=b.useCallback(d=>{i(!1),n==null||n(d)},[n]);return b.useEffect(()=>{if(e&&!l.current&&o.current){if(o.current.focus(),t)o.current.select();else if(s!==void 0){const d=String(s).length;o.current.setSelectionRange(d,d)}l.current=!0}},[e,t,o,s]),{isFocused:a,_onFocus:c,_onBlur:u}}function yT(e){const t={};return Object.entries(e).forEach(([r,n])=>{if(typeof r=="string"&&r.startsWith("aria")){const o=`aria-${r.slice(4).toLowerCase()}`;t[o]=n}}),t}const _T=v.createContext(),wT={standard:"standard"},ET={small:"small"},dl="18px",vw=b.forwardRef((e,t)=>{var g;const{skin:r=wT.standard,size:n=ET.small,disabled:o=!1,autoFocus:s=!1,className:a,dataHook:i,children:l,...c}=kr("CloseButton",e),u=Nr("CloseButton",{Close:rC,CloseLarge:nC}),d={small:v.createElement(u.Close,{"data-hook":"close"}),medium:v.createElement(u.CloseLarge,{"data-hook":"close-medium"}),large:v.createElement(u.CloseLarge,{"data-hook":"close-large",size:"12"})},p=b.useContext(_T),{icons:f}=p||{},h=((g=f==null?void 0:f.CloseButton)==null?void 0:g[n])??d[n],m=b.useRef(null);return b.useImperativeHandle(t,()=>m.current,[]),b.useEffect(()=>{var y;s&&((y=m.current)==null||y.focus())},[s]),v.createElement(So,{ref:m,...c,disabled:o,className:oT(sT.root,{skin:r,size:n},a),...Es({skin:r,size:n},["skin","size"]),"data-hook":i},l?v.cloneElement(l,{size:dl,width:dl,height:dl}):h)});vw.displayName="CloseButton";var gw="wds_1_319_0_StatusIndicator",CT=se.bind(null,gw);ae.bind(null,gw);var xT=CT,lv={root:"wds_1_319_0_StatusIndicator__root",iconWrapper:"wds_1_319_0_StatusIndicator__iconWrapper"};const IT={success:v.createElement(cC,null),warning:v.createElement(uC,null),loading:v.createElement(tr,{size:"tiny"}),error:v.createElement(sC,null)},ho=e=>{const{dataHook:t,status:r=so.ERROR,message:n,tooltipPlacement:o=cT.TOP,className:s,tooltipProps:a}=e;b.useEffect(()=>{},[]);const i=IT[r],l=()=>n?v.createElement("span",{tabIndex:0,className:lv.iconWrapper},i):i;return v.createElement("div",{className:xT(lv.root,{status:r},s),"data-hook":t,"data-status":r},n?v.createElement(Ne,{dataHook:lT.tooltip,appendTo:"window",placement:o,exitDelay:100,content:n,maxWidth:250,...a},l()):i)};ho.displayName="StatusIndicator";const ST=({statusMessage:e,status:t,disabled:r,menuArrow:n,suffix:o,tooltipPlacement:s,clearButtonTooltipContent:a,clearButtonTooltipProps:i,clearButtonAriaLabel:l,statusMessageTooltipProps:c,hideStatusSuffix:u,onClear:d,clearButton:p,value:f,size:h,onInputClicked:m,focusOnClearClick:g,inputElementRef:y})=>{const _=Nr("InputSuffix",{DropDownArrow:oC}),w=(!!d||!!p)&&!!f&&!r,E=b.useContext(Po),C=b.useCallback(A=>{var T;r||((T=y.current)==null||T.focus(),m==null||m(A))},[r,y,m]),S=b.useCallback(A=>{var T;A.stopPropagation(),g&&((T=y.current)==null||T.focus()),d==null||d(A)},[g,y,d]),x=b.useMemo(()=>{if(!w)return null;const A=N=>{(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),S(N))},T={[Vn.tiny]:"small",[Vn.small]:"small",[Vn.medium]:"medium",[Vn.large]:"medium"},R=v.createElement(vw,{as:"button",className:wt.clearButton,dataHook:Kr.clearButton,skin:"standardFilled",size:T[h??Vn.medium],onClick:S,onKeyDown:A,"aria-label":l});return v.createElement("div",{className:wt.clearButtonWrapper},a?v.createElement(Ne,{...i,content:a,dataHook:Kr.tooltip},R):R)},[w,S,a,i,l,h]),P=b.useMemo(()=>r||u||t!=="error"&&t!=="warning"?null:v.createElement("div",{className:wt.statusWrapper},v.createElement(ho,{dataHook:Kr.status,status:t,message:e,tooltipProps:{placement:s,...c}})),[r,u,t,e,s,c]),D=b.useMemo(()=>r||u||E.status!=="loading"&&t!=="loading"?null:v.createElement("div",{className:wt.statusWrapper},v.createElement(ho,{dataHook:Kr.status,status:E.status??t,message:e,tooltipProps:{placement:s,...c}})),[r,u,e,s,c,E.status,t]),L=b.useMemo(()=>o?v.isValidElement(o)?v.cloneElement(o):v.createElement("div",{className:wt.suffix},o):null,[o]),O=b.useMemo(()=>n?v.createElement("div",{"data-hook":Kr.menuArrow,className:wt.menuArrow,onClick:C},v.createElement(_.DropDownArrow,null)):null,[n,C,_]);return!x&&!P&&!D&&!L&&!O?null:v.createElement("div",{"data-hook":Kr.suffixes,className:wt.suffixes},x,P,D,L,O)},bw=b.forwardRef((e,t)=>
46{const{input:r}=b.useContext(gf),n=kr("Input",e),{role:o,autoSelect:s=!0,textOverflow:a="clip",size:i=r.size,hideStatusSuffix:l=!1,clearButton:c=!1,focusOnClearClick:u=!0,border:d="standard",backgroundColor:p,maxLength:f=524288,autoFocus:h,onFocus:m,onBlur:g,value:y,customInput:_,min:w,max:E,step:C,inputRef:S,id:x,name:P,disabled:D,defaultValue:L,onChange:O,type:A,onKeyDown:T,onEnterPressed:R,onEscapePressed:N,onPaste:W,onCopy:q,placeholder:H,tabIndex:I,onInputClicked:k,onKeyUp:$,readOnly:G,disableEditing:Z,required:K,autocomplete:X,onCompositionChange:J,pattern:M,prefix:j,suffix:U,className:V,status:Y,statusMessage:Q,onClear:F,menuArrow:z,rtl:ee,dataHook:te,forceFocus:ie,noRightBorderRadius:le,noLeftBorderRadius:oe,forceHover:fe,tooltipPlacement:ne,clearButtonTooltipContent:re,clearButtonTooltipProps:ue,clearButtonAriaLabel:de,statusMessageTooltipProps:ye,...Se}=n,Le=b.useRef(!1),Ie=b.useRef(null),Me=b.useMemo(()=>as(Ie,S),[S]),{maskingClassNames:Ue}=b.useContext(Vd),ve=b.useContext(Po),{_onFocus:Ye,_onBlur:mt,isFocused:$r}=bT({localInputRef:Ie,onFocus:m,onBlur:g,autoFocus:h,autoSelect:s,value:y});b.useImperativeHandle(t,()=>({focus:(me={})=>{var Do;return(Do=Ie.current)==null?void 0:Do.focus(me)},blur:()=>{var me;return(me=Ie.current)==null?void 0:me.blur()},select:()=>{var me;return(me=Ie.current)==null?void 0:me.select()},setSelectionRange:(me,Do)=>{var Bf;return(Bf=Ie.current)==null?void 0:Bf.setSelectionRange(me,Do)},clear:me=>{y===void 0&&Ie.current&&(Ie.current.value=""),F==null||F(me)},input:Ie.current})),b.useEffect(()=>{},[]);const vt=b.useCallback(me=>A==="number"?/^[\d.,\-+]*$/.test(me):!0,[A]),Mr=b.useCallback(me=>{vt(me.target.value)&&(O==null||O(me))},[vt,O]),Fr=b.useCallback(me=>{vt(me.currentTarget.value+me.key)||me.preventDefault()},[vt]),or=b.useCallback(()=>{var me;A==="number"&&((me=Ie.current)==null||me.blur())},[A]),sr=b.useCallback(me=>{Le.current||(T==null||T(me),(me.key==="Enter"||me.keyCode===13)&&(R==null||R(me)),(me.key==="Escape"||me.keyCode===27)&&(N==null||N(me)))},[Le,R,N,T]),Lt=b.useCallback(me=>k==null?void 0:k(me),[k]),$n=b.useCallback(me=>{Le.current=me,J==null||J(me)},[J]),Mn={role:o,id:x,min:w,max:E,step:C,"data-mask":!!Ue,className:av(wt.input,{},Ue),style:{textOverflow:a},name:P,disabled:D,defaultValue:L,value:y,onFocus:Ye,onBlur:mt,onChange:Mr,onKeyPress:Fr,onWheel:or,onKeyDown:sr,onClick:Lt,onPaste:W,onCopy:q,placeholder:H,tabIndex:I,onKeyUp:$,readOnly:G||Z,type:A,required:K,autoComplete:X,onCompositionStart:()=>$n(!0),onCompositionEnd:()=>$n(!1),pattern:M,maxLength:f,...mw(ve),...yT(Se)},pE=_,hE=_?v.createElement(pE,{"data-hook":"wsr-custom-input",ref:Me,...Mn}):v.createElement("input",{"data-hook":"wsr-input",ref:Me,...Mn}),mE={[Rt.ROOT]:!0,[Rt.SIZE]:i,[Rt.STATUS]:po(ve,Y),[Rt.PREFIX]:!!j,[Rt.DISABLED]:D,[Rt.HOVER]:fe,[Rt.FOCUS]:ie||$r,[Rt.LEFTBORDERRADIUS]:oe,[Rt.RIGHTBORDERRADIUS]:le};return v.createElement("div",{className:av(wt.root,{size:i,hasFocus:ie||$r,status:po(ve,Y),forceHover:fe,readOnly:G,disabled:D,border:d,noRightBorderRadius:le,noLeftBorderRadius:oe},V),style:{[iT["input-background"]]:p},dir:ee?"rtl":void 0,"data-hook":te,...mE},v.createElement("div",{className:wt.wrapper},j&&v.createElement(Sd.Provider,{value:{...n,size:i,inPrefix:!0}},j),hE,v.createElement(Sd.Provider,{value:{...n,size:i,inSuffix:!0}},v.createElement(ST,{statusMessage:Q,status:Y,disabled:D,menuArrow:z,suffix:U,tooltipPlacement:ne,clearButtonTooltipContent:re,clearButtonTooltipProps:ue,clearButtonAriaLabel:de,statusMessageTooltipProps:ye,hideStatusSuffix:l,onClear:F,clearButton:c,value:y,size:i,onInputClicked:k,focusOnClearClick:u,inputElementRef:Ie}))))});bw.displayName="Input";const je=Object.assign(bw,{Ticker:yf,IconAffix:_f,Affix:wf,Group:Ef,StatusError:so.ERROR,StatusWarning:so.WARNING,StatusLoading:so.LOADING});var fl,cv;function OT(){if(cv)return fl;cv=1;function e(t,r,n){return t===t&&(n!==void 0&&(t=t<=n?t:n),r!==void 0&&(t=t>=r?t:r)),t}return fl=e,fl}var pl,uv;function RT(){if(uv)return pl;uv=1;var e=OT(),t=$0();function r(n,o,s){return s===void 0&&(s=o,o=void 0),s!==void 0&&(s=t(s),s=s===s?s:0),o!==void 0&&(o=t(o),o=o===o?o:0),e(t(n),o,s)}return pl=r,pl}var TT=RT();const Xe=Pe(TT);var hl,dv;function AT(){if(dv)return hl;dv=1;var e=Tr(),t=Jt(),r="[object Number]";function n(o){return typeof o=="number"||t(o)&&e(o)==r}return hl=n,hl}var ml,fv;function kT(){if(fv)return ml;fv=1;var e=AT();function t(r){return e(r)&&r!=+r}return ml=t,ml}var PT=kT();const pv=Pe(PT);var yw="wds_1_319_0_InputArea",DT=se.bind(null,yw);ae.bind(null,yw);var hv=DT,Go={root:"wds_1_319_0_InputArea__root",inputArea:"wds_1_319_0_InputArea__inputArea",counter:"wds_1_319_0_InputArea__counter",status:"wds_1_319_0_InputArea__status"},NT={"input-background":"--wds_1_319_0_InputArea-input-background"};const LT={tooltip:"inputArea-tooltip"},Gr={SIZE:"data-size",STATUS:"data-status",RESIZABLE:"data-resizable",DISABLED:"data-disabled",HOVER:"data-hover",FOCUS:"data-focus"},$T={inputContainer:"input-area__input-container"};class pt extends v.PureComponent{constructor(){super(...arguments),this.textArea=null,this._computedStyle=null,this.state={focus:!1,counter:(this.props.value||this.props.defaultValue||"").length,computedRows:this.props.minRowsAutoGrow},this._getDataAttr=({statusContext:t})=>{const{size:r,status:n,disabled:o,resizable:s,forceHover:a,forceFocus:i}=this.props;return is({[Gr.SIZE]:r,[Gr.STATUS]:o?null:po(t,n),[Gr.DISABLED]:!!o,[Gr.RESIZABLE]:!!s&&!o,[Gr.HOVER]:!!a,[Gr.FOCUS]:!!(i||this.state.focus)},(l,c)=>!!c)},this.focus=()=>{var t;(t=this.textArea)==null||t.focus()},this.blur=()=>{var t;(t=this.textArea)==null||t.blur()},this.select=()=>{var t;(t=this.textArea)==null||t.select()},this.calculateComputedRows=()=>{const{minRowsAutoGrow:t,maxRowsAutoGrow:r}=this.props;this.setState({computedRows:1},()=>{const n=this._getRowsCount(),o=Xe(n,t||pt.MIN_ROWS,r||pt.MAX_ROWS);this.setState({computedRows:o})})},this._onFocus=t=>{this.setState({focus:!0}),this.props.onFocus&&this.props.onFocus(t),this.props.autoSelect&&setTimeout(()=>this.select(),0)},this._onBlur=t=>{this.setState({focus:!1}),this.props.onBlur&&this.props.onBlur(t)},this._onKeyDown=t=>{this.props.onKeyDown&&this.props.onKeyDown(t),t.key==="Enter"?this.props.onEnterPressed&&this.props.onEnterPressed(t):t.key==="Escape"&&this.props.onEscapePressed&&this.props.onEscapePressed()},this._onChange=t=>{this.props.onChange&&this.props.onChange(t)}
46,this._onInput=()=>{this.calculateComputedRows()},this._updateComputedStyle=M0(()=>{this.textArea&&(this._computedStyle=window.getComputedStyle(this.textArea))},500,{leading:!0}),this._getComputedStyle=()=>(this._updateComputedStyle(),this._computedStyle),this._getRowsCount=()=>{var c;const t=this._getComputedStyle(),r=parseInt((t==null?void 0:t.getPropertyValue("font-size"))??"",10),n=parseInt((t==null?void 0:t.getPropertyValue("line-height"))??"",10);let o;if(pv(n)){if(pv(r))return pt.MIN_ROWS;o=this._getDefaultLineHeight()??0*r}else o=n;const s=parseFloat((t==null?void 0:t.getPropertyValue("padding-top"))??"0"),a=parseFloat((t==null?void 0:t.getPropertyValue("padding-bottom"))??"0"),l=(((c=this.textArea)==null?void 0:c.scrollHeight)??0)-s-a;return Math.floor(l/o)},this._getDefaultLineHeight=()=>{var t;if(!this._defaultLineHeight&&this.textArea){const{parentNode:r}=this.textArea,n=this._getComputedStyle(),o=n==null?void 0:n.getPropertyValue("font-family"),s=n==null?void 0:n.getPropertyValue("font-size"),a=document.createElement("span");a.setAttribute("style",`position:absolute;display:inline;border:0;margin:0;padding:0;line-height:normal;font-family:${o};font-size:${s};`),a.innerText="M",r==null||r.appendChild(a),this._defaultLineHeight=parseInt(a.clientHeight.toString(),10)/parseInt(s??"0",10),(t=a.parentNode)==null||t.removeChild(a)}return this._defaultLineHeight}}componentDidMount(){var o;const{autoFocus:t,autoGrow:r,value:n}=this.props;t&&this._onFocus(),r&&this.calculateComputedRows(),t&&n&&((o=this.textArea)==null||o.setSelectionRange(n.length,n.length))}componentDidUpdate(t){const{minRowsAutoGrow:r,maxRowsAutoGrow:n,value:o,defaultValue:s,autoGrow:a,hasCounter:i}=this.props;a&&(t.minRowsAutoGrow!==r||t.maxRowsAutoGrow!==n)&&this.calculateComputedRows(),i&&t.value!==o&&this.setState({counter:(o||s||"").length})}componentWillUnmount(){this._updateComputedStyle.cancel()}render(){const{dataHook:t,className:r,autoFocus:n,defaultValue:o,disabled:s,forceFocus:a,forceHover:i,id:l,name:c,onKeyUp:u,placeholder:d,readOnly:p,tabIndex:f,rows:h,autoGrow:m,value:g,required:y,minHeight:_,maxHeight:w,minLength:E,maxLength:C,resizable:S,hasCounter:x,size:P,tooltipPlacement:D,status:L,statusMessage:O,children:A,onCompositionStart:T,onCompositionEnd:R,dir:N,backgroundColor:W}=this.props,q={},H=h||(m?this.state.computedRows:void 0),I=!h&&m?this._onInput:void 0;_&&(q.minHeight=_),w&&(q.maxHeight=w);const k={};return Object.keys(this.props).filter($=>$.startsWith("aria")).map($=>k["aria-"+$.substr(4).toLowerCase()]=this.props[$]),v.createElement(Po.Consumer,null,$=>{const G=po($,L);return v.createElement("div",{"data-hook":t,className:hv(Go.root,{disabled:s,size:P,status:G,hasFocus:a||this.state.focus,forceHover:i,resizable:S,readOnly:p},r),style:{[NT["input-background"]]:W},...this._getDataAttr({statusContext:$})},v.createElement("div",{className:hv(Go.inputArea,$T.inputContainer)},typeof A=="function"?A({className:"",rows:H||0,ref:Z=>this.textArea=Z,onFocus:Z=>this._onFocus(Z),onBlur:Z=>this._onBlur(Z),onKeyDown:Z=>this._onKeyDown(Z),onInput:I,dir:N}):v.createElement("textarea",{rows:H,minLength:E,maxLength:C,ref:Z=>{this.textArea=Z},id:l,name:c,style:q,defaultValue:o,disabled:s,value:g,required:y,onFocus:this._onFocus,onBlur:this._onBlur,onKeyDown:this._onKeyDown,onChange:this._onChange,onInput:I,placeholder:d,tabIndex:f,autoFocus:n,onKeyUp:u,...mw($),...k,readOnly:p,onCompositionStart:T,onCompositionEnd:R,dir:N}),x&&C&&v.createElement("span",{className:Go.counter,"data-hook":"counter"},this.state.counter,"/",C)),v.createElement("div",{className:Go.status},(!!L||G===so.LOADING)&&!s&&v.createElement(ho,{dataHook:LT.tooltip,status:G??void 0,message:O,tooltipProps:{placement:D}})))})}}pt.MIN_ROWS=2;pt.MAX_ROWS=Number.POSITIVE_INFINITY;pt.displayName="InputArea";pt.defaultProps={minRowsAutoGrow:pt.MIN_ROWS,maxRowsAutoGrow:pt.MAX_ROWS,size:"medium"};const _w=Oo(pt,"InputArea");var vl,mv;function MT(){return mv||(mv=1,vl=function(e){function t(o){var s,a={},i,l;if(!o)return o;if(Array.isArray(o))return o.map(t);for(var i in o)o.hasOwnProperty(i)&&(s=typeof e!="function",e.length===1?s=!e(i):(l=o[i],s=!e(i,l=o[i],o)),s&&(a[i]=l||o[i]));return a}function r(o){return function(s){return s===o}}function n(o){return function(s){return o.indexOf(s)>=0}}return(typeof e=="string"||e instanceof String)&&(e=r(e)),Array.isArray(e)&&(e=n(e)),arguments[1]!==void 0?t(arguments[1]):t}),vl}var FT=MT();const vv=Pe(FT),Bt=$e("input-with-options",{root:{variants:{size:["medium"]}},inputContainer:{},menuContainer:{states:["directionUp","closing","empty"]},dropdownLayout:{},drawerContent:{},nativeSelectWrapper:{},nativeSelect:{}}),BT=e=>typeof e.value=="string"?e.value:e.label,HT=2e3,br={appendTo:"parent",flip:!1,fixed:!0,placement:"bottom",width:"100%",minWidth:192,onMouseEnter:void 0,onMouseLeave:void 0};class Us extends b.Component{inputClasses(){}
46dropdownClasses(){}dropdownAdditionalProps(){}inputAdditionalProps(){}rootAdditionalProps(){return{}}getManualSubmitKeys(){return["Enter","Tab"]}constructor(t){super(t),this.input=b.createRef(),this.menuGateRef=b.createRef(),this._onOptionMarked=(r,n)=>{const{onOptionMarked:o}=this.props;this.setState({activeDescendentId:n}),o&&o(r,n)},this._didSelectOption=r=>{const n=r&&r.relatedTarget,o=this.dropdownLayout&&this.dropdownLayout.containerRef.current,s=n instanceof HTMLInputElement;return!n||!o||s?!1:o.contains(n)},this.clear=r=>{this.input.current&&this.input.current.clear(r)},this.state={inputValue:t.value||"",showOptions:!1,lastOptionsShow:0,isEditing:!1,menuExitDuration:0},this.uniqueId=ln("InputWithOptions"),this._onSelect=this._onSelect.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onChange=this._onChange.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.select=this.select.bind(this),this.hideOptions=this.hideOptions.bind(this),this.showOptions=this.showOptions.bind(this),this._onManuallyInput=this._onManuallyInput.bind(this),this._renderDropdownLayout=this._renderDropdownLayout.bind(this),this.isDropdownLayoutVisible=this.isDropdownLayoutVisible.bind(this),this._onInputClicked=this._onInputClicked.bind(this),this._onOpenChange=this._onOpenChange.bind(this),this.closeOnSelect=this.closeOnSelect.bind(this),this.onCompositionChange=this.onCompositionChange.bind(this)}componentDidUpdate(t,r){!this.props.showOptionsIfEmptyInput&&(!t.value&&this.props.value||!r.inputValue&&this.state.inputValue)&&this.showOptions(),t.value!==this.props.value&&this.props.value===""&&this.setState({inputValue:""})}onCompositionChange(t){this.setState({isComposing:t})}renderInput(t){const r=this.inputAdditionalProps(),n=Object.assign(vv(["onChange","dataHook","dropDirectionUp","focusOnSelectedOption","onClose","onSelect","onOptionMarked","overflow","visible","options","selectedId","tabIndex","fixedHeader","fixedFooter","maxHeightPixels","minWidthPixels","withArrow","closeOnSelect","onMouseEnter","onMouseLeave","itemHeight","selectedHighlight","inContainer","infiniteScroll","loadMore","hasMore","markedOption","className"],this.props),r),{inputElement:o}=n;return v.cloneElement(o,{menuArrow:!0,ref:this.input,ariaExpanded:this.state.showOptions,ariaControls:`${this.uniqueId}-listbox`,ariaActivedescendant:this.state.activeDescendentId,...n,onChange:this._onChange,onInputClicked:s=>this._onInputClicked(s,t),onFocus:this._onFocus,onBlur:this._onBlur,onCompositionChange:this.onCompositionChange,width:o.props.width,textOverflow:this.props.textOverflow||o.props.textOverflow,tabIndex:this.props.native?-1:0})}hasDropdownContent(t){const{options:r,fixedHeader:n,fixedFooter:o,customDropdownContent:s,infiniteScroll:a,hasMore:i}=this.props;return!!(s||n||o||[...r??[],...(t==null?void 0:t.options)??[]].length||a&&i)}isDropdownLayoutVisible(){return this.state.showOptions&&(this.props.showOptionsIfEmptyInput||this.state.inputValue.length>0)}_renderDropdownLayout(t){const{highlight:r,value:n}=this.props,s=["children","dataHook","className","id","role","ariaControls","ariaDescribedby","ariaLabel","autoFocus","autoSelect","autocomplete","defaultValue","disabled","status","statusMessage","statusMessageTooltipProps","hideStatusSuffix","forceFocus","forceHover","maxLength","menuArrow","clearButton","focusOnClearClick","name","border","backgroundColor","noLeftBorderRadius","noRightBorderRadius","onBlur","onChange","onClear","onCompositionChange","onEnterPressed","onEscapePressed","onFocus","onInputClicked","onKeyDown","onKeyUp","onPaste","onCopy","placeholder","prefix","readOnly","disableEditing","rtl","size","suffix","textOverflow","tooltipPlacement","type","value","withSelection","required","min","max","step","customInput","pattern","inputRef","inputmode","ariaRoledescription","clearButtonTooltipContent","clearButtonTooltipProps","clearButtonAriaLabel","inputElementRef"].filter(l=>l!=="tabIndex"),a=Object.assign(vv(s.concat(["dataHook","onClickOutside"]),this.props),t??this.dropdownAdditionalProps()),i={marginLeft:this.props.dropdownOffsetLeft,width:"inherit"};return v.createElement("div",{className:`${this.uniqueId}
46 ${this.dropdownClasses()}`,style:i,"data-hook":"dropdown-layout-wrapper"},v.createElement(uy.Provider,{value:{highlight:r,match:n}},v.createElement(Nn,{ref:l=>{this.dropdownLayout=l},...a,dataHook:"inputwithoptions-dropdownlayout",visible:!0,className:Bt.dropdownLayout(),onClose:this.hideOptions,onSelect:this._onSelect,onOptionMarked:this._onOptionMarked,isComposing:this.state.isComposing,listboxId:`${this.uniqueId}-listbox`,inContainer:!0,tabIndex:-1,onDrillOut:()=>this.focus()})))}_renderNativeSelect(){const{options:t,onSelect:r,disabled:n}=this.props;return v.createElement("div",{className:Bt.nativeSelectWrapper()},this.renderInput(),v.createElement("select",{disabled:n,"data-hook":"native-select",className:Bt.nativeSelect(),onChange:o=>{this._onChange(o),r(t[o.target.selectedIndex])}},t.map((o,s)=>v.createElement("option",{"data-hook":`native-option-${o.id}`,"data-index":s,key:o.id,value:o.value},o.value))))}render(){if(this.props.native)return this._renderNativeSelect();const{dataHook:t,popoverProps:{appendTo:r,fixed:n,flip:o,placement:s,dynamicWidth:a,...i},dropDirectionUp:l,dropdownWidth:c,className:u}=this.props,d=l?"top":s,p=a??r==="window",f=this.rootAdditionalProps(),h=this.dropdownAdditionalProps(),m=this.hasDropdownContent(h);return v.createElement(Qt.Consumer,null,({mobile:g})=>{var y,_;return g&&this.props.showDrawerOnMobile?v.createElement("div",null,v.createElement("div",{"data-input-parent":!0,ref:this.menuGateRef,className:Bt.inputContainer({},this.inputClasses())},this.renderInput(g)),v.createElement(pf,{dataHook:t,open:this.isDropdownLayoutVisible(),onClose:this._onOpenChange,zIndex:(_=(y=this.props)==null?void 0:y.popoverProps)==null?void 0:_.zIndex},v.createElement("div",{className:Bt.drawerContent()},this.props.customDropdownContent||this._renderDropdownLayout(h)))):v.createElement(tt,{className:Bt.root({size:"medium"},f.className??u),open:this.isDropdownLayoutVisible(),onOpenChange:this._onOpenChange,appendTo:r??br.appendTo,flip:o??br.flip,fixed:n??br.fixed,placement:d??br.placement,dynamicWidth:p,excludeClass:this.uniqueId,focusManagerEnabled:!1,onClickOutside:this.props.onClickOutside,transitionSettings:this.state.menuExitDuration>0?{duration:{open:0,close:this.state.menuExitDuration},opacity:{open:1,close:1}}:void 0,...i,minWidth:p?"fit-content":c??(i==null?void 0:i.minWidth)??br.minWidth,width:c??(p?null:br.width),dataHook:t,onKeyDown:this._onKeyDown,autoUpdateOptions:{animationFrame:!0},contentClassName:Bt.menuContainer({directionUp:l,closing:!this.isDropdownLayoutVisible(),empty:!m})},v.createElement(tt.Trigger,null,v.createElement("div",{"data-input-parent":!0,ref:this.menuGateRef,className:Bt.inputContainer({},this.inputClasses())},this.renderInput())),v.createElement(tt.Content,null,this.props.customDropdownContent||this._renderDropdownLayout(h)))})}showOptions(){this.state.showOptions||(this._readMenuExitDuration(),this.setState({showOptions:!0,lastOptionsShow:Date.now()}),this.props.onOptionsShow&&this.props.onOptionsShow())}_readMenuExitDuration(){const t=this.menuGateRef.current,r=t&&t.ownerDocument&&t.ownerDocument.defaultView;if(!r)return;let n="";try{n=r.getComputedStyle(t).getPropertyValue("--wds-internal-menu-exit-duration")}catch{return}const o=parseInt(n,10)||0;o!==this.state.menuExitDuration&&this.setState({menuExitDuration:o})}hideOptions(){this.state.showOptions&&(this.setState({showOptions:!1,activeDescendentId:void 0}),this.props.onOptionsHide&&this.props.onOptionsHide(),this.props.onClose&&this.props.onClose())}closeOnSelect(){return this.props.closeOnSelect}get isReadOnly(){const{readOnly:t}=this.inputAdditionalProps()||{readOnly:this.props.readOnly};return t}shouldOpenDropdown(t){return(this.isReadOnly?["Enter","Spacebar"," ","ArrowDown"]:["ArrowDown"]).includes(t)}shouldDelegateKeyDown(t){return this.isReadOnly||!["Spacebar"," "].includes(t)||this.shouldPerformManualSubmit(" ")}shouldPerformManualSubmit(t){return this.getManualSubmitKeys().includes(t)}_onManuallyInput(t=""){if(this.state.isComposing)return;t=t.trim();const r=this.props.options.find(n=>n.value===t);this.props.onManuallyInput&&this.props.onManuallyInput(t,r)}_onSelect(t,r){const{onSelect:n}=this.props;(this.closeOnSelect()||r)&&this._onOpenChange(!1,"select-option"),n&&n(this.props.highlight?this.props.options.find(o=>o.id===t.id):t)}_onChange(t){this.setState({inputValue:t.target.value}),this.props.onChange&&this.props.onChange(t),t.target.value.trim()&&!this.props.native&&this.showOptions()}_onInputClicked(t,r){var n,o;r&&this._onOpenChange(!0),(o=(n=this.props).onInputClicked)==null||o.call(n,t)}_onOpenChange(t,r,n=HT){this.props.disabled||this.isReadOnly||(t?this.showOptions():r==="outside-press"||r==="select-option"?this.hideOptions():Date.now()-this.state.lastOptionsShow>n&&this.hideOptions())}_onFocus(t){this._focused||this.props.disabled||(this._focused=!0,this.setState({isEditing:!1}),this.props.onFocus&&this.props.onFocus(t))}_onBlur(t){if(this._didSelectOption(t)){const n=t.relatedTarget;if((n==null?void 0:n.tabIndex)>=0)return;this.focus();return}this._focused=!1,this.props.onBlur&&this.props.onBlur(t)}_onKeyDown(t){if(this.props.disabled||this.isReadOnly)return;const{key:r}=t;if((r==="Enter"||r==="ArrowUp")&&t.preventDefault(),r!=="ArrowDown"&&r!=="ArrowUp"&&this.setState({isEditing:!0}),this.shouldOpenDropdown(r)&&(this.showOptions(),t.preventDefault()),this.shouldDelegateKeyDown(r)){if(this.dropdownLayout){const n=this.dropdownLayout._onSelectListKeyDown(t);if(n||this.isReadOnly){r==="Escape"&&n&&t.stopPropagation();return}}if(this.shouldPerformManualSubmit(r)){this._onManuallyInput(this.state.inputValue,t);const n=!t.target.value;(this.closeOnSelect()||r==="Tab"&&n)&&this.hideOptions()}}}focus(t={}){this.input.current&&this.input.current.focus(t)}blur(){this.input.current&&this.input.current.blur()}select(){this.input.current&&this.input.current.select()}}
46Us.defaultProps={...je.defaultProps,...Nn.defaultProps,onSelect:()=>{},options:[],closeOnSelect:!0,inputElement:v.createElement(je,null),valueParser:BT,dropdownWidth:null,popoverProps:br,dropdownOffsetLeft:"0",showOptionsIfEmptyInput:!0,autocomplete:"off",native:!1,showDrawerOnMobile:!0};Us.displayName="InputWithOptions";var gl,gv;function qT(){if(gv)return gl;gv=1;function e(t,r){return t==null||t!==t?r:t}return gl=e,gl}var jT=qT();const UT=Pe(jT);var ww="wds_1_319_0_newColorsBranding",WT=se.bind(null,ww);ae.bind(null,ww);var VT=WT,zT={root:"wds_1_319_0_newColorsBranding__root"},Ew="wds_1_319_0_madefor";se.bind(null,Ew);ae.bind(null,Ew);var KT={madefor:"wds_1_319_0_madefor__madefor"},Cw="wds_1_319_0_madefordisplay";se.bind(null,Cw);ae.bind(null,Cw);var GT={madefordisplay:"wds_1_319_0_madefordisplay__madefordisplay"};const xw=v.createContext({}),Iw=({locale:e="en",pageHeaderId:t,children:r})=>v.createElement(xw.Provider,{value:{locale:e,pageHeaderId:t}},r);Iw.displayName="WixStyleReactEnvironmentProvider";const YT=({dataHook:e,className:t,as:r="span",mobile:n=!1,children:o,theme:s,features:a={},locale:i,pageHeaderId:l,contextClassName:c="",...u})=>{const d=(a==null?void 0:a.compactMode)||!1,p=zT.root,f=v.useContext(xw);return v.createElement(Qt.Provider,{value:{newBrandingClass:p,mobile:n,contextClassName:c}},v.createElement(Iw,{locale:i??(f==null?void 0:f.locale),pageHeaderId:l??(f==null?void 0:f.pageHeaderId)},v.createElement(r,{...u,"data-hook":e,className:VT(t,p,GT.madefordisplay,KT.madefor,s==null?void 0:s.className,n&&a5.mobile,d&&"compactMode")},o)))};var bl={exports:{}},yl,bv;function Sw(){return bv||(bv=1,yl={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87
vendor: 16,357 bytes, line 46
46],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),yl}var _l={exports:{}},wl,yv;function XT(){return yv||(yv=1,wl=function(t){return!t||typeof t=="string"?!1:t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")}),wl}var _v;function ZT(){if(_v)return _l.exports;_v=1;var e=XT(),t=Array.prototype.concat,r=Array.prototype.slice,n=_l.exports=function(s){for(var a=[],i=0,l=s.length;i<l;i++){var c=s[i];e(c)?a=t.call(a,r.call(c)):a.push(c)}return a};return n.wrap=function(o){return function(){return o(n(arguments))}},_l.exports}var wv;function JT(){if(wv)return bl.exports;wv=1;var e=Sw(),t=ZT(),r=Object.hasOwnProperty,n=Object.create(null);for(var o in e)r.call(e,o)&&(n[e[o]]=o);var s=bl.exports={to:{},get:{}};s.get=function(l){var c=l.substring(0,3).toLowerCase(),u,d;switch(c){case"hsl":u=s.get.hsl(l),d="hsl";break;case"hwb":u=s.get.hwb(l),d="hwb";break;default:u=s.get.rgb(l),d="rgb";break}return u?{model:d,value:u}:null},s.get.rgb=function(l){if(!l)return null;var c=/^#([a-f0-9]{3,4})$/i,u=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,d=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,p=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,f=/^(\w+)$/,h=[0,0,0,1],m,g,y;if(m=l.match(u)){for(y=m[2],m=m[1],g=0;g<3;g++){var _=g*2;h[g]=parseInt(m.slice(_,_+2),16)}y&&(h[3]=parseInt(y,16)/255)}else if(m=l.match(c)){for(m=m[1],y=m[3],g=0;g<3;g++)h[g]=parseInt(m[g]+m[g],16);y&&(h[3]=parseInt(y+y,16)/255)}else if(m=l.match(d)){for(g=0;g<3;g++)h[g]=parseInt(m[g+1],0);m[4]&&(m[5]?h[3]=parseFloat(m[4])*.01:h[3]=parseFloat(m[4]))}else if(m=l.match(p)){for(g=0;g<3;g++)h[g]=Math.round(parseFloat(m[g+1])*2.55);m[4]&&(m[5]?h[3]=parseFloat(m[4])*.01:h[3]=parseFloat(m[4]))}else return(m=l.match(f))?m[1]==="transparent"?[0,0,0,0]:r.call(e,m[1])?(h=e[m[1]],h[3]=1,h):null:null;for(g=0;g<3;g++)h[g]=a(h[g],0,255);return h[3]=a(h[3],0,1),h},s.get.hsl=function(l){if(!l)return null;var c=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,u=l.match(c);if(u){var d=parseFloat(u[4]),p=(parseFloat(u[1])%360+360)%360,f=a(parseFloat(u[2]),0,100),h=a(parseFloat(u[3]),0,100),m=a(isNaN(d)?1:d,0,1);return[p,f,h,m]}return null},s.get.hwb=function(l){if(!l)return null;var c=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,u=l.match(c);if(u){var d=parseFloat(u[4]),p=(parseFloat(u[1])%360+360)%360,f=a(parseFloat(u[2]),0,100),h=a(parseFloat(u[3]),0,100),m=a(isNaN(d)?1:d,0,1);return[p,f,h,m]}return null},s.to.hex=function(){var l=t(arguments);return"#"+i(l[0])+i(l[1])+i(l[2])+(l[3]<1?i(Math.round(l[3]*255)):"")},s.to.rgb=function(){var l=t(arguments);return l.length<4||l[3]===1?"rgb("+Math.round(l[0])+", "+Math.round(l[1])+", "+Math.round(l[2])+")":"rgba("+Math.round(l[0])+", "+Math.round(l[1])+", "+Math.round(l[2])+", "+l[3]+")"},s.to.rgb.percent=function(){var l=t(arguments),c=Math.round(l[0]/255*100),u=Math.round(l[1]/255*100),d=Math.round(l[2]/255*100);return l.length<4||l[3]===1?"rgb("+c+"%, "+u+"%, "+d+"%)":"rgba("+c+"%, "+u+"%, "+d+"%, "+l[3]+")"},s.to.hsl=function(){var l=t(arguments);return l.length<4||l[3]===1?"hsl("+l[0]+", "+l[1]+"%, "+l[2]+"%)":"hsla("+l[0]+", "+l[1]+"%, "+l[2]+"%, "+l[3]+")"},s.to.hwb=function(){var l=t(arguments),c="";return l.length>=4&&l[3]!==1&&(c=", "+l[3]),"hwb("+l[0]+", "+l[1]+"%, "+l[2]+"%"+c+")"},s.to.keyword=function(l){return n[l.slice(0,3)]};function a(l,c,u){return Math.min(Math.max(c,l),u)}function i(l){var c=Math.round(l).toString(16).toUpperCase();return c.length<2?"0"+c:c}return bl.exports}var El={exports:{}},Ev;function Ow(){if(Ev)return El.exports;Ev=1;var e=Sw(),t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);var n=El.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var o in n)if(n.hasOwnProperty(o)){if(!("channels"in n[o]))throw new Error("missing channels property: "+o);if(!("labels"in n[o]))throw new Error("missing channel labels property: "+o);if(n[o].labels.length!==n[o].channels)throw new Error("channel and label counts mismatch: "+o);var s=n[o].channels,a=n[o].labels;delete n[o].channels,delete n[o].labels,Object.defineProperty(n[o],"channels",{value:s}),Object.defineProperty(n[o],"labels",{value:a})}n.rgb.hsl=function(l){var c=l[0]/255,u=l[1]/255,d=l[2]/255,p=Math.min(c,u,d),f=Math.max(c,u,d),h=f-p,m,g,y;return f===p?m=0:c===f?m=(u-d)/h:u===f?m=2+(d-c)/h:d===f&&(m=4+(c-u)/h),m=Math.min(m*60,360),m<0&&(m+=360),y=(p+f)/2,f===p?g=0:y<=.5?g=h/(f+p):g=h/(2-f-p),[m,g*100,y*100]},n.rgb.hsv=function(l){var c,u,d,p,f,h=l[0]/255,m=l[1]/255,g=l[2]/255,y=Math.max(h,m,g),_=y-Math.min(h,m,g),w=function(E){return(y-E)/6/_+1/2};return _===0?p=f=0:(f=_/y,c=w(h),u=w(m),d=w(g),h===y?p=d-u:m===y?p=1/3+c-d:g===y&&(p=2/3+u-c),p<0?p+=1:p>1&&(p-=1)),[p*360,f*100,y*100]},n.rgb.hwb=function(l){var c=l[0],u=l[1],d=l[2],p=n.rgb.hsl(l)[0],f=1/255*Math.min(c,Math.min(u,d));return d=1-1/255*Math.max(c,Math.max(u,d)),[p,f*100,d*100]},n.rgb.cmyk=function(l){var c=l[0]/255,u=l[1]/255,d=l[2]/255,p,f,h,m;return m=Math.min(1-c,1-u,1-d),p=(1-c-m)/(1-m)||0,f=(1-u-m)/(1-m)||0,h=(1-d-m)/(1-m)||0,[p*100,f*100,h*100,m*100]};function i(l,c){return Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)+Math.pow(l[2]-c[2],2)}return n.rgb.keyword=function(l){var c=t[l];if(c)return c;var u=1/0,d;for(var p in e)if(e.hasOwnProperty(p)){var f=e[p],h=i(l,f);h<u&&(u=h,d=p)}return d},n.keyword.rgb=function(l){return e[l]},n.rgb.xyz=function(l){var c=l[0]/255,u=l[1]/255,d=l[2]/255;c=c>.04045?Math.pow((c+.055)/1.055,2.4):c/12.92,u=u>.04045?Math.pow((u+.055)/1.055,2.4):u/12.92,d=d>.04045?Math.pow((d+.055)/1.055,2.4):d/12.92;var p=c*.4124+u*.3576+d*.1805,f=c*.2126+u*.7152+d*.0722,h=c*.0193+u*.1192+d*.9505;return[p*100,f*100,h*100]},n.rgb.lab=function(l){var c=n.rgb.xyz(l),u=c[0],d=c[1],p=c[2],f,h,m;return u/=95.047,d/=100,p/=108.883,u=u>.008856?Math.pow(u,1/3):7.787*u+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,p=p>.008856?Math.pow(p,1/3):7.787*p+16/116,f=116*d-16,h=500*(u-d),m=200*(d-p),[f,h,m]},n.hsl.rgb=function(l){var c=l[0]/360,u=l[1]/100,d=l[2]/100,p,f,h,m,g;if(u===0)return g=d*255,[g,g,g];d<.5?f=d*(1+u):f=d+u-d*u,p=2*d-f,m=[0,0,0];for(var y=0;y<3;y++)h=c+1/3*-(y-1),h<0&&h++,h>1&&h--,6*h<1?g=p+(f-p)*6*h:2*h<1?g=f:3*h<2?g=p+(f-p)*(2/3-h)*6:g=p,m[y]=g*255;return m},n.hsl.hsv=function(l){var c=l[0],u=l[1]/100,d=l[2]/100,p=u,f=Math.max(d,.01),h,m;return d*=2,u*=d<=1?d:2-d,p*=f<=1?f:2-f,m=(d+u)/2,h=d===0?2*p/(f+p):2*u/(d+u),[c,h*100,m*100]},n.hsv.rgb=function(l){var c=l[0]/60,u=l[1]/100,d=l[2]/100,p=Math.floor(c)%6,f=c-Math.floor(c),h=255*d*(1-u),m=255*d*(1-u*f),g=255*d*(1-u*(1-f));switch(d*=255,p){case 0:return[d,g,h];case 1:return[m,d,h];case 2:return[h,d,g];case 3:return[h,m,d];case 4:return[g,h,d];case 5:return[d,h,m]}},n.hsv.hsl=function(l){var c=l[0],u=l[1]/100,d=l[2]/100,p=Math.max(d,.01),f,h,m;return m=(2-u)*d,f=(2-u)*p,h=u*p,h/=f<=1?f:2-f,h=h||0,m/=2,[c,h*100,m*100]},n.hwb.rgb=function(l){var c=l[0]/360,u=l[1]/100,d=l[2]/100,p=u+d,f,h,m,g;p>1&&(u/=p,d/=p),f=Math.floor(6*c),h=1-d,m=6*c-f,(f&1)!==0&&(m=1-m),g=u+m*(h-u);var y,_,w;switch(f){default:case 6:case 0:y=h,_=g,w=u;break;case 1:y=g,_=h,w=u;break;case 2:y=u,_=h,w=g;break;case 3:y=u,_=g,w=h;break;case 4:y=g,_=u,w=h;break;case 5:y=h,_=u,w=g;break}return[y*255,_*255,w*255]},n.cmyk.rgb=function(l){var c=l[0]/100,u=l[1]/100,d=l[2]/100,p=l[3]/100,f,h,m;return f=1-Math.min(1,c*(1-p)+p),h=1-Math.min(1,u*(1-p)+p),m=1-Math.min(1,d*(1-p)+p),[f*255,h*255,m*255]},n.xyz.rgb=function(l){var c=l[0]/100,u=l[1]/100,d=l[2]/100,p,f,h;return p=c*3.2406+u*-1.5372+d*-.4986,f=c*-.9689+u*1.8758+d*.0415,h=c*.0557+u*-.204+d*1.057,p=p>.0031308?1.055*Math.pow(p,1/2.4)-.055:p*12.92,f=f>.0031308?1.055*Math.pow(f,1/2.4)-.055:f*12.92,h=h>.0031308?1.055*Math.pow(h,1/2.4)-.055:h*12.92,p=Math.min(Math.max(0,p),1),f=Math.min(Math.max(0,f),1),h=Math.min(Math.max(0,h),1),[p*255,f*255,h*255]},n.xyz.lab=function(l){var c=l[0],u=l[1],d=l[2],p,f,h;return c/=95.047,u/=100,d/=108.883,c=c>.008856?Math.pow(c,1/3):7.787*c+16/116,u=u>.008856?Math.pow(u,1/3):7.787*u+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,p=116*u-16,f=500*(c-u),h=200*(u-d),[p,f,h]},n.lab.xyz=function(l){var c=l[0],u=l[1],d=l[2],p,f,h;f=(c+16)/116,p=u/500+f,h=f-d/200;var m=Math.pow(f,3),g=Math.pow(p,3),y=Math.pow(h,3);return f=m>.008856?m:(f-16/116)/7.787,p=g>.008856?g:(p-16/116)/7.787,h=y>.008856?y:(h-16/116)/7.787,p*=95.047,f*=100,h*=108.883,[p,f,h]},n.lab.lch=function(l){var c=l[0],u=l[1],d=l[2],p,f,h;return p=Math.atan2(d,u),f=p*360/2/Math.PI,f<0&&(f+=360),h=Math.sqrt(u*u+d*d),[c,h,f]},n.lch.lab=function(l){var c=l[0],u=l[1],d=l[2],p,f,h;return h=d/360*2*Math.PI,p=u*Math.cos(h),f=u*Math.sin(h),[c,p,f]},n.rgb.ansi16=function(l){var c=l[0],u=l[1],d=l[2],p=1 in arguments?arguments[1]:n.rgb.hsv(l)[2];if(p=Math.round(p/50),p===0)return 30;var f=30+(Math.round(d/255)<<2|Math.round(u/255)<<1|Math.round(c/255));return p===2&&(f+=60),f},n.hsv.ansi16=function(l){return n.rgb.ansi16(n.hsv.rgb(l),l[2])},n.rgb.ansi256=function(l){var c=l[0],u=l[1],d=l[2];if(c===u&&u===d)return c<8?16:c>248?231:Math.round((c-8)/247*24)+232;var p=16+36*Math.round(c/255*5)+6*Math.round(u/255*5)+Math.round(d/255*5);return p},n.ansi16.rgb=function(l){var c=l%10;if(c===0||c===7)return l>50&&(c+=3.5),c=c/10.5*255,[c,c,c];var u=(~~(l>50)+1)*.5,d=(c&1)*u*255,p=(c>>1&1)*u*255,f=(c>>2&1)*u*255;return[d,p,f]},n.ansi256.rgb=function(l){if(l>=232){var c=(l-232)*10+8;return[c,c,c]}l-=16;var u,d=Math.floor(l/36)/5*255,p=Math.floor((u=l%36)/6)/5*255,f=u%6/5*255;return[d,p,f]},n.rgb.hex=function(l){var c=((Math.round(l[0])&255)<<16)+((Math.round(l[1])&255)<<8)+(Math.round(l[2])&255),u=c.toString(16).toUpperCase();return"000000".substring(u.length)+u},n.hex.rgb=function(l){var c=l.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!c)return[0,0,0];var u=c[0];c[0].length===3&&(u=u.split("").map(function(m){return m+m}).join(""));var d=parseInt(u,16),p=d>>16&255,f=d>>8&255,h=d&255;return[p,f,h]},n.rgb.hcg=function(l){var c=l[0]/255,u=l[1]/255,d=l[2]/255,p=Math.max(Math.max(c,u),d),f=Math.min(Math.min(c,u),d),h=p-f,m,g;return h<1?m=f/(1-h):m=0,h<=0?g=0:p===c?g=(u-d)/h%6:p===u?g=2+(d-c)/h:g=4+(c-u)/h+4,g/=6,g%=1,[g*360,h*100,m*100]},n.hsl.hcg=function(l){var c=l[1]/100,u=l[2]/100,d=1,p=0;return u<.5?d=2*c*u:d=2*c*(1-u),d<1&&(p=(u-.5*d)/(1-d)),[l[0],d*100,p*100]},n.hsv.hcg=function(l){var c=l[1]/100,u=l[2]/100,d=c*u,p=0;return d<1&&(p=(u-d)/(1-d)),[l[0],d*100,p*100]},n.hcg.rgb=function(l){var c=l[0]/360,u=l[1]/100,d=l[2]/100;if(u===0)return[d*255,d*255,d*255];var p=[0,0,0],f=c%1*6,h=f%1,m=1-h,g=0;switch(Math.floor(f)){case 0:p[0]=1,p[1]=h,p[2]=0;break;case 1:p[0]=m,p[1]=1,p[2]=0;break;case 2:p[0]=0,p[1]=1,p[2]=h;break;case 3:p[0]=0,p[1]=m,p[2]=1;break;case 4:p[0]=h,p[1]=0,p[2]=1;break;default:p[0]=1,p[1]=0,p[2]=m}return g=(1-u)*d,[(u*p[0]+g)*255,(u*p[1]+g)*255,(u*p[2]+g)*255]},n.hcg.hsv=function(l){var c=l[1]/100,u=l[2]/100,d=c+u*(1-c),p=0;return d>0&&(p=c/d),[l[0],p*100,d*100]},n.hcg.hsl=function(l){var c=l[1]/100,u=l[2]/100,d=u*(1-c)+.5*c,p=0;return d>0&&d<.5?p=c/(2*d):d>=.5&&d<1&&(p=c/(2*(1-d))),[l[0],p*100,d*100]},n.hcg.hwb=function(l){var c=l[1]/100,u=l[2]/100,d=c+u*(1-c);return[l[0],(d-c)*100,(1-d)*100]},n.hwb.hcg=function(l){var c=l[1]/100,u=l[2]/100,d=1-u,p=d-c,f=0;return p<1&&(f=(d-p)/(1-p)),[l[0],p*100,f*100]},n.apple.rgb=function(l){return[l[0]/65535*255,l[1]/65535*255,l[2]/65535*255]},n.rgb.apple=function(l){return[l[0]/255*65535,l[1]/255*65535,l[2]/255*65535]},n.gray.rgb=function(l){return[l[0]/100*255,l[0]/100*255,l[0]/100*255]},n.gray.hsl=n.gray.hsv=function(l){return[0,0,l[0]]},n.gray.hwb=function(l){return[0,100,l[0]]},n.gray.cmyk=function(l){return[0,0,0,l[0]]},n.gray.lab=function(l){return[l[0],0,0]},n.gray.hex=function(l){var c=Math.round(l[0]/100*255)&255,u=(c<<16)+(c<<8)+c,d=u.toString(16).toUpperCase();return"000000".substring(d.length)+d},n.rgb.gray=function(l){var c=(l[0]+l[1]+l[2])/3;return[c/255*100]},El.exports}var Cl,Cv;function QT(){if(Cv)return Cl;Cv=1;var e=Ow();function t(){for(var s={},a=Object.keys(e),i=a.length,l=0;l<i;l++)s[a[l]]={distance:-1,parent:null};return s}function r(s){var a=t(),i=[s];for(a[s].distance=0;i.length;)for(var l=i.pop(),c=Object.keys(e[l]),u=c.length,d=0;d<u;d++){var p=c[d],f=a[p];f.distance===-1&&(f.distance=a[l].distance+1,f.parent=l,i.unshift(p))}return a}function n(s,a){return function(i){return a(s(i))}}function o(s,a){for(var i=[a[s].parent,s],l=e[a[s].parent][s],c=a[s].parent;a[c].parent;)i.unshift(a[c].parent),l=n(e[a[c].parent][c],l),c=a[c].parent;return l.conversion=i,l}return Cl=function(s){for(var a=r(s),i={},l=Object.keys(a),c=l.length,u=0;u<c;u++){var d=l[u],p=a[d];p.parent!==null&&(i[d]=o(d,a))}return i},Cl}var xl,xv;function eA(){if(xv)return xl;xv=1;var e=Ow(),t=QT(),r={},n=Object.keys(e);function o(a){var i=function(l){return l==null?l:(arguments.length>1&&(l=Array.prototype.slice.call(arguments)),a(l))};return"conversion"in a&&(i.conversion=a.conversion),i}function s(a){var i=function(l){if(l==null)return l;arguments.length>1&&(l=Array.prototype.slice.call(arguments));var c=a(l);if(typeof c=="object")for(var u=c.length,d=0;d<u;d++)c[d]=Math.round(c[d]);return c};return"conversion"in a&&(i.conversion=a.conversion),i}return n.forEach(function(a){r[a]={},Object.defineProperty(r[a],"channels",{value:e[a].channels}),Object.defineProperty(r[a],"labels",{value:e[a].labels});var i=t(a),l=Object.keys(i);l.forEach(function(c){var u=i[c];r[a][c]=s(u),r[a][c].raw=o(u)})}),xl=r,xl}var Il,Iv;function tA(){if(Iv)return Il;Iv=1;var e=JT(),t=eA(),r=[].slice,n=["keyword","gray","hex"],o={};Object.keys(t).forEach(function(f){o[r.call(t[f].labels).sort().join("")]=f});var s={};function a(f,h){if(!(this instanceof a))return new a(f,h);if(h&&h in n&&(h=null),h&&!(h in t))throw new Error("Unknown model: "+h);var m,g;if(!f)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(f instanceof a)this.model=f.model,this.color=f.color.slice(),this.valpha=f.valpha;else if(typeof f=="string"){var y=e.get(f);if(y===null)throw new Error("Unable to parse color from string: "+f);this.model=y.model,g=t[this.model].channels,this.color=y.value.slice(0,g),this.valpha=typeof y.value[g]=="number"?y.value[g]:1}else if(f.length){this.model=h||"rgb",g=t[this.model].channels;var _=r.call(f,0,g);this.color=p(_,g),this.valpha=typeof f[g]=="number"?f[g]:1}else if(typeof f=="number")f&=16777215,this.model="rgb",this.color=[f>>16&255,f>>8&255,f&255],this.valpha=1;else{this.valpha=1;var w=Object.keys(f);"alpha"in f&&(w.splice(w.indexOf("alpha"),1),this.valpha=typeof f.alpha=="number"?f.alpha:0);var E=w.sort().join("");if(!(E in o))throw new Error("Unable to parse color from object: "+JSON.stringify(f));this.model=o[E];var C=t[this.model].labels,S=[];for(m=0;m<C.length;m++)S.push(f[C[m]]);this.color=p(S)}if(s[this.model])for(g=t[this.model].channels,m=0;m<g;m++){var x=s[this.model][m];x&&(this.color[m]=x(this.color[m]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}a.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(f){var h=this.model in e.to?this:this.rgb();h=h.round(typeof f=="number"?f:1);
vendor: 4,294 bytes, line 46
46var m=h.valpha===1?h.color:h.color.concat(this.valpha);return e.to[h.model](m)},percentString:function(f){var h=this.rgb().round(typeof f=="number"?f:1),m=h.valpha===1?h.color:h.color.concat(this.valpha);return e.to.rgb.percent(m)},array:function(){return this.valpha===1?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var f={},h=t[this.model].channels,m=t[this.model].labels,g=0;g<h;g++)f[m[g]]=this.color[g];return this.valpha!==1&&(f.alpha=this.valpha),f},unitArray:function(){var f=this.rgb().color;return f[0]/=255,f[1]/=255,f[2]/=255,this.valpha!==1&&f.push(this.valpha),f},unitObject:function(){var f=this.rgb().object();return f.r/=255,f.g/=255,f.b/=255,this.valpha!==1&&(f.alpha=this.valpha),f},round:function(f){return f=Math.max(f||0,0),new a(this.color.map(l(f)).concat(this.valpha),this.model)},alpha:function(f){return arguments.length?new a(this.color.concat(Math.max(0,Math.min(1,f))),this.model):this.valpha},red:c("rgb",0,u(255)),green:c("rgb",1,u(255)),blue:c("rgb",2,u(255)),hue:c(["hsl","hsv","hsl","hwb","hcg"],0,function(f){return(f%360+360)%360}),saturationl:c("hsl",1,u(100)),lightness:c("hsl",2,u(100)),saturationv:c("hsv",1,u(100)),value:c("hsv",2,u(100)),chroma:c("hcg",1,u(100)),gray:c("hcg",2,u(100)),white:c("hwb",1,u(100)),wblack:c("hwb",2,u(100)),cyan:c("cmyk",0,u(100)),magenta:c("cmyk",1,u(100)),yellow:c("cmyk",2,u(100)),black:c("cmyk",3,u(100)),x:c("xyz",0,u(100)),y:c("xyz",1,u(100)),z:c("xyz",2,u(100)),l:c("lab",0,u(100)),a:c("lab",1),b:c("lab",2),keyword:function(f){return arguments.length?new a(f):t[this.model].keyword(this.color)},hex:function(f){return arguments.length?new a(f):e.to.hex(this.rgb().round().color)},rgbNumber:function(){var f=this.rgb().color;return(f[0]&255)<<16|(f[1]&255)<<8|f[2]&255},luminosity:function(){for(var f=this.rgb().color,h=[],m=0;m<f.length;m++){var g=f[m]/255;h[m]=g<=.03928?g/12.92:Math.pow((g+.055)/1.055,2.4)}return .2126*h[0]+.7152*h[1]+.0722*h[2]},contrast:function(f){var h=this.luminosity(),m=f.luminosity();return h>m?(h+.05)/(m+.05):(m+.05)/(h+.05)},level:function(f){var h=this.contrast(f);return h>=7.1?"AAA":h>=4.5?"AA":""},dark:function(){var f=this.rgb().color,h=(f[0]*299+f[1]*587+f[2]*114)/1e3;return h<128},light:function(){return!this.dark()},negate:function(){for(var f=this.rgb(),h=0;h<3;h++)f.color[h]=255-f.color[h];return f},lighten:function(f){var h=this.hsl();return h.color[2]+=h.color[2]*f,h},darken:function(f){var h=this.hsl();return h.color[2]-=h.color[2]*f,h},saturate:function(f){var h=this.hsl();return h.color[1]+=h.color[1]*f,h},desaturate:function(f){var h=this.hsl();return h.color[1]-=h.color[1]*f,h},whiten:function(f){var h=this.hwb();return h.color[1]+=h.color[1]*f,h},blacken:function(f){var h=this.hwb();return h.color[2]+=h.color[2]*f,h},grayscale:function(){var f=this.rgb().color,h=f[0]*.3+f[1]*.59+f[2]*.11;return a.rgb(h,h,h)},fade:function(f){return this.alpha(this.valpha-this.valpha*f)},opaquer:function(f){return this.alpha(this.valpha+this.valpha*f)},rotate:function(f){var h=this.hsl(),m=h.color[0];return m=(m+f)%360,m=m<0?360+m:m,h.color[0]=m,h},mix:function(f,h){var m=f.rgb(),g=this.rgb(),y=h===void 0?.5:h,_=2*y-1,w=m.alpha()-g.alpha(),E=((_*w===-1?_:(_+w)/(1+_*w))+1)/2,C=1-E;return a.rgb(E*m.red()+C*g.red(),E*m.green()+C*g.green(),E*m.blue()+C*g.blue(),m.alpha()*y+g.alpha()*(1-y))}},Object.keys(t).forEach(function(f){if(n.indexOf(f)===-1){var h=t[f].channels;a.prototype[f]=function(){if(this.model===f)return new a(this);if(arguments.length)return new a(arguments,f);var m=typeof arguments[h]=="number"?h:this.valpha;return new a(d(t[this.model][f].raw(this.color)).concat(m),f)},a[f]=function(m){return typeof m=="number"&&(m=p(r.call(arguments),h)),new a(m,f)}}});function i(f,h){return Number(f.toFixed(h))}function l(f){return function(h){return i(h,f)}}function c(f,h,m){return f=Array.isArray(f)?f:[f],f.forEach(function(g){(s[g]||(s[g]=[]))[h]=m}),f=f[0],function(g){var y;return arguments.length?(m&&(g=m(g)),y=this[f](),y.color[h]=g,y):(y=this[f]().color[h],m&&(y=m(y)),y)}}function u(f){return function(h){return Math.max(0,Math.min(f,h))}}function d(f){return Array.isArray(f)?f:[f]}function p(f,h){for(var m=0;m<h;m++)typeof f[m]!="number"&&(f[m]=0);return f}return Il=a,Il}var rA=tA();const rt=Pe(rA);var Sl,Sv;
vendor: 8,563 bytes, line 46
46function nA(){if(Sv)return Sl;Sv=1;function e(t,r){for(var n=-1,o=Array(t);++n<t;)o[n]=r(n);return o}return Sl=e,Sl}var Ol,Ov;function Ws(){if(Ov)return Ol;Ov=1;function e(t){return t}return Ol=e,Ol}var Rl,Rv;function oA(){if(Rv)return Rl;Rv=1;function e(){this.__data__=[],this.size=0}return Rl=e,Rl}var Tl,Tv;function Cf(){if(Tv)return Tl;Tv=1;function e(t,r){return t===r||t!==t&&r!==r}return Tl=e,Tl}var Al,Av;function Vs(){if(Av)return Al;Av=1;var e=Cf();function t(r,n){for(var o=r.length;o--;)if(e(r[o][0],n))return o;return-1}return Al=t,Al}var kl,kv;function sA(){if(kv)return kl;kv=1;var e=Vs(),t=Array.prototype,r=t.splice;function n(o){var s=this.__data__,a=e(s,o);if(a<0)return!1;var i=s.length-1;return a==i?s.pop():r.call(s,a,1),--this.size,!0}return kl=n,kl}var Pl,Pv;function aA(){if(Pv)return Pl;Pv=1;var e=Vs();function t(r){var n=this.__data__,o=e(n,r);return o<0?void 0:n[o][1]}return Pl=t,Pl}var Dl,Dv;function iA(){if(Dv)return Dl;Dv=1;var e=Vs();function t(r){return e(this.__data__,r)>-1}return Dl=t,Dl}var Nl,Nv;function lA(){if(Nv)return Nl;Nv=1;var e=Vs();function t(r,n){var o=this.__data__,s=e(o,r);return s<0?(++this.size,o.push([r,n])):o[s][1]=n,this}return Nl=t,Nl}var Ll,Lv;function zs(){if(Lv)return Ll;Lv=1;var e=oA(),t=sA(),r=aA(),n=iA(),o=lA();function s(a){var i=-1,l=a==null?0:a.length;for(this.clear();++i<l;){var c=a[i];this.set(c[0],c[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=r,s.prototype.has=n,s.prototype.set=o,Ll=s,Ll}var $l,$v;function cA(){if($v)return $l;$v=1;var e=zs();function t(){this.__data__=new e,this.size=0}return $l=t,$l}var Ml,Mv;function uA(){if(Mv)return Ml;Mv=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Ml=e,Ml}var Fl,Fv;function dA(){if(Fv)return Fl;Fv=1;function e(t){return this.__data__.get(t)}return Fl=e,Fl}var Bl,Bv;function fA(){if(Bv)return Bl;Bv=1;function e(t){return this.__data__.has(t)}return Bl=e,Bl}var Hl,Hv;function Rw(){if(Hv)return Hl;Hv=1;var e=Tr(),t=On(),r="[object AsyncFunction]",n="[object Function]",o="[object GeneratorFunction]",s="[object Proxy]";function a(i){if(!t(i))return!1;var l=e(i);return l==n||l==o||l==r||l==s}return Hl=a,Hl}var ql,qv;function pA(){if(qv)return ql;qv=1;var e=St(),t=e["__core-js_shared__"];return ql=t,ql}var jl,jv;function hA(){if(jv)return jl;jv=1;var e=pA(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return jl=r,jl}var Ul,Uv;function Tw(){if(Uv)return Ul;Uv=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return Ul=r,Ul}var Wl,Wv;function mA(){if(Wv)return Wl;Wv=1;var e=Rw(),t=hA(),r=On(),n=Tw(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,a=Function.prototype,i=Object.prototype,l=a.toString,c=i.hasOwnProperty,u=RegExp("^"+l.call(c).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function d(p){if(!r(p)||t(p))return!1;var f=e(p)?u:s;return f.test(n(p))}return Wl=d,Wl}var Vl,Vv;function vA(){if(Vv)return Vl;Vv=1;function e(t,r){return t==null?void 0:t[r]}return Vl=e,Vl}var zl,zv;function Lr(){if(zv)return zl;zv=1;var e=mA(),t=vA();function r(n,o){var s=t(n,o);return e(s)?s:void 0}return zl=r,zl}var Kl,Kv;function xf(){if(Kv)return Kl;Kv=1;var e=Lr(),t=St(),r=e(t,"Map");return Kl=r,Kl}var Gl,Gv;function Ks(){if(Gv)return Gl;Gv=1;var e=Lr(),t=e(Object,"create");return Gl=t,Gl}var Yl,Yv;function gA(){if(Yv)return Yl;Yv=1;var e=Ks();function t(){this.__data__=e?e(null):{},this.size=0}return Yl=t,Yl}var Xl,Xv;function bA(){if(Xv)return Xl;Xv=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Xl=e,Xl}var Zl,Zv;function yA(){if(Zv)return Zl;Zv=1;var e=Ks(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function o(s){var a=this.__data__;if(e){var i=a[s];return i===t?void 0:i}return n.call(a,s)?a[s]:void 0}return Zl=o,Zl}var Jl,Jv;function _A(){if(Jv)return Jl;Jv=1;var e=Ks(),t=Object.prototype,r=t.hasOwnProperty;function n(o){var s=this.__data__;return e?s[o]!==void 0:r.call(s,o)}return Jl=n,Jl}var Ql,Qv;function wA(){if(Qv)return Ql;Qv=1;var e=Ks(),t="__lodash_hash_undefined__";function r(n,o){var s=this.__data__;return this.size+=this.has(n)?0:1,s[n]=e&&o===void 0?t:o,this}return Ql=r,Ql}var ec,eg;function EA(){if(eg)return ec;eg=1;var e=gA(),t=bA(),r=yA(),n=_A(),o=wA();function s(a){var i=-1,l=a==null?0:a.length;for(this.clear();++i<l;){var c=a[i];this.set(c[0],c[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=r,s.prototype.has=n,s.prototype.set=o,ec=s,ec}var tc,tg;function CA(){if(tg)return tc;tg=1;var e=EA(),t=zs(),r=xf();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return tc=n,tc}var rc,rg;function xA(){if(rg)return rc;rg=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return rc=e,rc}var nc,ng;function Gs(){if(ng)return nc;ng=1;var e=xA();function t(r,n){var o=r.__data__;return e(n)?o[typeof n=="string"?"string":"hash"]:o.map}return nc=t,nc}var oc,og;function IA(){if(og)return oc;og=1;var e=Gs();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return oc=t,oc}var sc,sg;function SA(){if(sg)return sc;sg=1;var e=Gs();function t(r){return e(this,r).get(r)}return sc=t,sc}var ac,ag;function OA(){if(ag)return ac;ag=1;var e=Gs();function t(r){return e(this,r).has(r)}return ac=t,ac}var ic,ig;function RA(){if(ig)return ic;ig=1;var e=Gs();function t(r,n){var o=e(this,r),s=o.size;return o.set(r,n),this.size+=o.size==s?0:1,this}return ic=t,ic}var lc,lg;function If(){if(lg)return lc;lg=1;var e=CA(),t=IA(),r=SA(),n=OA(),o=RA();function s(a){var i=-1,l=a==null?0:a.length;for(this.clear();++i<l;){var c=a[i];this.set(c[0],c[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=r,s.prototype.has=n,s.prototype.set=o,lc=s,lc}var cc,cg;function TA(){if(cg)return cc;cg=1;var e=zs(),t=xf(),r=If(),n=200;function o(s,a){var i=this.__data__;if(i instanceof e){var l=i.__data__;if(!t||l.length<n-1)return l.push([s,a]),this.size=++i.size,this;i=this.__data__=new r(l)}return i.set(s,a),this.size=i.size,this}return cc=o,cc}var uc,ug;function Aw(){if(ug)return uc;ug=1;var e=zs(),t=cA(),r=uA(),n=dA(),o=fA(),s=TA();function a(i){var l=this.__data__=new e(i);this.size=l.size}return a.prototype.clear=t,a.prototype.delete=r,a.prototype.get=n,a.prototype.has=o,a.prototype.set=s,uc=a,uc}var dc,dg;function AA(){if(dg)return dc;dg=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return dc=t,dc}var fc,fg;function kA(){if(fg)return fc;fg=1;function e(t){return this.__data__.has(t)}return fc=e,fc}var pc,pg;function PA(){if(pg)return pc;pg=1;var e=If(),t=AA(),r=kA();function n(o){var s=-1,a=o==null?0:o.length;for(this.__data__=new e;++s<a;)this.add(o[s])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,pc=n,pc}var hc,hg;function DA(){if(hg)return hc;hg=1;function e(t,r){for(var n=-1,o=t==null?0:t.length;++n<o;)if(r(t[n],n,t))return!0;return!1}return hc=e,hc}var mc,mg;function NA(){if(mg)return mc;mg=1;function e(t,r){return t.has(r)}return mc=e,mc}var vc,vg;function kw(){if(vg)return vc;vg=1;var e=PA(),t=DA(),r=NA(),n=1,o=2;function s(a,i,l,c,u,d){var p=l&n,f=a.length,h=i.length;if(f!=h&&!(p&&h>f))return!1;var m=d.get(a),g=d.get(i);if(m&&g)return m==i&&g==a;var y=-1,_=!0,w=l&o?new e:void 0;for(d.set(a,i),d.set(i,a);++y<f;){var E=a[y],C=i[y];if(c)var S=p?c(C,E,y,i,a,d):c(E,C,y,a,i,d);if(S!==void 0){if(S)continue;_=!1;break}if(w){if(!t(i,function(x,P){if(!r(w,P)&&(E===x||u(E,x,l,c,d)))return w.push(P)})){_=!1;break}}else if(!(E===C||u(E,C,l,c,d))){_=!1;break}}return d.delete(a),d.delete(i),_}return vc=s,vc}var gc,gg;function LA(){if(gg)return gc;gg=1;var e=St(),t=e.Uint8Array;return gc=t,gc}var bc,bg;function $A(){if(bg)return bc;bg=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(o,s){n[++r]=[s,o]}),n}return bc=e,bc}var yc,yg;function MA(){if(yg)return yc;yg=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(o){n[++r]=o}),n}return yc=e,yc}var _c,_g;function FA(){if(_g)return _c;_g=1;var e=go(),t=LA(),r=Cf(),n=kw(),o=$A(),s=MA(),a=1,i=2,l="[object Boolean]",c="[object Date]",u="[object Error]",d="[object Map]",p="[object Number]",f="[object RegExp]",h="[object Set]",m="[object String]",g="[object Symbol]",y="[object ArrayBuffer]",_="[object DataView]",w=e?e.prototype:void 0,E=w?w.valueOf
vendor: 4,357 bytes, line 46
46:void 0;function C(S,x,P,D,L,O,A){switch(P){case _:if(S.byteLength!=x.byteLength||S.byteOffset!=x.byteOffset)return!1;S=S.buffer,x=x.buffer;case y:return!(S.byteLength!=x.byteLength||!O(new t(S),new t(x)));case l:case c:case p:return r(+S,+x);case u:return S.name==x.name&&S.message==x.message;case f:case m:return S==x+"";case d:var T=o;case h:var R=D&a;if(T||(T=s),S.size!=x.size&&!R)return!1;var N=A.get(S);if(N)return N==x;D|=i,A.set(S,x);var W=n(T(S),T(x),D,L,O,A);return A.delete(S),W;case g:if(E)return E.call(S)==E.call(x)}return!1}return _c=C,_c}var wc,wg;function Pw(){if(wg)return wc;wg=1;function e(t,r){for(var n=-1,o=r.length,s=t.length;++n<o;)t[s+n]=r[n];return t}return wc=e,wc}var Ec,Eg;function BA(){if(Eg)return Ec;Eg=1;var e=Pw(),t=Ot();function r(n,o,s){var a=o(n);return t(n)?a:e(a,s(n))}return Ec=r,Ec}var Cc,Cg;function HA(){if(Cg)return Cc;Cg=1;function e(t,r){for(var n=-1,o=t==null?0:t.length,s=0,a=[];++n<o;){var i=t[n];r(i,n,t)&&(a[s++]=i)}return a}return Cc=e,Cc}var xc,xg;function qA(){if(xg)return xc;xg=1;function e(){return[]}return xc=e,xc}var Ic,Ig;function jA(){if(Ig)return Ic;Ig=1;var e=HA(),t=qA(),r=Object.prototype,n=r.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(a){return a==null?[]:(a=Object(a),e(o(a),function(i){return n.call(a,i)}))}:t;return Ic=s,Ic}var Sc,Sg;function UA(){if(Sg)return Sc;Sg=1;var e=Tr(),t=Jt(),r="[object Arguments]";function n(o){return t(o)&&e(o)==r}return Sc=n,Sc}var Oc,Og;function Sf(){if(Og)return Oc;Og=1;var e=UA(),t=Jt(),r=Object.prototype,n=r.hasOwnProperty,o=r.propertyIsEnumerable,s=e((function(){return arguments})())?e:function(a){return t(a)&&n.call(a,"callee")&&!o.call(a,"callee")};return Oc=s,Oc}var Zn={exports:{}},Rc,Rg;function WA(){if(Rg)return Rc;Rg=1;function e(){return!1}return Rc=e,Rc}Zn.exports;var Tg;function Dw(){return Tg||(Tg=1,(function(e,t){var r=St(),n=WA(),o=t&&!t.nodeType&&t,s=o&&!0&&e&&!e.nodeType&&e,a=s&&s.exports===o,i=a?r.Buffer:void 0,l=i?i.isBuffer:void 0,c=l||n;e.exports=c})(Zn,Zn.exports)),Zn.exports}var Tc,Ag;function Of(){if(Ag)return Tc;Ag=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,o){var s=typeof n;return o=o??e,!!o&&(s=="number"||s!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<o}return Tc=r,Tc}var Ac,kg;function Rf(){if(kg)return Ac;kg=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Ac=t,Ac}var kc,Pg;function VA(){if(Pg)return kc;Pg=1;var e=Tr(),t=Rf(),r=Jt(),n="[object Arguments]",o="[object Array]",s="[object Boolean]",a="[object Date]",i="[object Error]",l="[object Function]",c="[object Map]",u="[object Number]",d="[object Object]",p="[object RegExp]",f="[object Set]",h="[object String]",m="[object WeakMap]",g="[object ArrayBuffer]",y="[object DataView]",_="[object Float32Array]",w="[object Float64Array]",E="[object Int8Array]",C="[object Int16Array]",S="[object Int32Array]",x="[object Uint8Array]",P="[object Uint8ClampedArray]",D="[object Uint16Array]",L="[object Uint32Array]",O={};O[_]=O[w]=O[E]=O[C]=O[S]=O[x]=O[P]=O[D]=O[L]=!0,O[n]=O[o]=O[g]=O[s]=O[y]=O[a]=O[i]=O[l]=O[c]=O[u]=O[d]=O[p]=O[f]=O[h]=O[m]=!1;function A(T){return r(T)&&t(T.length)&&!!O[e(T)]}return kc=A,kc}var Pc,Dg;function Nw(){if(Dg)return Pc;Dg=1;function e(t){return function(r){return t(r)}}return Pc=e,Pc}var Jn={exports:{}};Jn.exports;var Ng;function zA(){return Ng||(Ng=1,(function(e,t){var r=p0(),n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,s=o&&o.exports===n,a=s&&r.process,i=(function(){try{var l=o&&o.require&&o.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}})();e.exports=i})(Jn,Jn.exports)),Jn.exports}var Dc,Lg;function Lw(){if(Lg)return Dc;Lg=1;var e=VA(),t=Nw(),r=zA(),n=r&&r.isTypedArray,o=n?t(n):e;return Dc=o,Dc}var Nc,$g;function KA(){if($g)return Nc;$g=1;var e=nA(),t=Sf(),r=Ot(),n=Dw(),o=Of(),s=Lw(),a=Object.prototype,i=a.hasOwnProperty;function l(c,u){var d=r(c),p=!d&&t(c),f=!d&&!p&&n(c),h=!d&&!p&&!f&&s(c),m=d||p||f||h,g=m?e(c.length,String):[],y=g.length;for(var _ in c)(u||i.call(c,_))&&!(m&&(_=="length"||f&&(_=="offset"||_=="parent")||h&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||o(_,y)))&&g.push(_);return g}return Nc=l,Nc}var Lc,Mg;function GA(){if(Mg)return Lc;Mg=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,o=typeof n=="function"&&n.prototype||e;return r===o}return Lc=t,Lc}var $c,Fg;
vendor: 2,037 bytes, line 46
46function YA(){if(Fg)return $c;Fg=1;var e=Ab(),t=e(Object.keys,Object);return $c=t,$c}var Mc,Bg;function XA(){if(Bg)return Mc;Bg=1;var e=GA(),t=YA(),r=Object.prototype,n=r.hasOwnProperty;function o(s){if(!e(s))return t(s);var a=[];for(var i in Object(s))n.call(s,i)&&i!="constructor"&&a.push(i);return a}return Mc=o,Mc}var Fc,Hg;function Ys(){if(Hg)return Fc;Hg=1;var e=Rw(),t=Rf();function r(n){return n!=null&&t(n.length)&&!e(n)}return Fc=r,Fc}var Bc,qg;function Tf(){if(qg)return Bc;qg=1;var e=KA(),t=XA(),r=Ys();function n(o){return r(o)?e(o):t(o)}return Bc=n,Bc}var Hc,jg;function ZA(){if(jg)return Hc;jg=1;var e=BA(),t=jA(),r=Tf();function n(o){return e(o,r,t)}return Hc=n,Hc}var qc,Ug;function JA(){if(Ug)return qc;Ug=1;var e=ZA(),t=1,r=Object.prototype,n=r.hasOwnProperty;function o(s,a,i,l,c,u){var d=i&t,p=e(s),f=p.length,h=e(a),m=h.length;if(f!=m&&!d)return!1;for(var g=f;g--;){var y=p[g];if(!(d?y in a:n.call(a,y)))return!1}var _=u.get(s),w=u.get(a);if(_&&w)return _==a&&w==s;var E=!0;u.set(s,a),u.set(a,s);for(var C=d;++g<f;){y=p[g];var S=s[y],x=a[y];if(l)var P=d?l(x,S,y,a,s,u):l(S,x,y,s,a,u);if(!(P===void 0?S===x||c(S,x,i,l,u):P)){E=!1;break}C||(C=y=="constructor")}if(E&&!C){var D=s.constructor,L=a.constructor;D!=L&&"constructor"in s&&"constructor"in a&&!(typeof D=="function"&&D instanceof D&&typeof L=="function"&&L instanceof L)&&(E=!1)}return u.delete(s),u.delete(a),E}return qc=o,qc}var jc,Wg;function QA(){if(Wg)return jc;Wg=1;var e=Lr(),t=St(),r=e(t,"DataView");return jc=r,jc}var Uc,Vg;function ek(){if(Vg)return Uc;Vg=1;var e=Lr(),t=St(),r=e(t,"Promise");return Uc=r,Uc}var Wc,zg;function tk(){if(zg)return Wc;zg=1;var e=Lr(),t=St(),r=e(t,"Set");return Wc=r,Wc}var Vc,Kg;function rk(){if(Kg)return Vc;Kg=1;var e=Lr(),t=St(),r=e(t,"WeakMap");return Vc=r,Vc}var zc,Gg;function nk(){if(Gg)return zc;Gg=1;var e=QA(),t=xf(),r=ek(),n=tk(),o=rk(),s=Tr(),a=Tw(),i="[object Map]",l="[object Object]",c="[object Promise]",u="[object Set]",d="[object WeakMap]",p="[object DataView]",f=a(e),h=a(t),m=a(r),g=a(n),y=a(o),_=s;
vendor: 9,003 bytes, line 46
46return(e&&_(new e(new ArrayBuffer(1)))!=p||t&&_(new t)!=i||r&&_(r.resolve())!=c||n&&_(new n)!=u||o&&_(new o)!=d)&&(_=function(w){var E=s(w),C=E==l?w.constructor:void 0,S=C?a(C):"";if(S)switch(S){case f:return p;case h:return i;case m:return c;case g:return u;case y:return d}return E}),zc=_,zc}var Kc,Yg;function ok(){if(Yg)return Kc;Yg=1;var e=Aw(),t=kw(),r=FA(),n=JA(),o=nk(),s=Ot(),a=Dw(),i=Lw(),l=1,c="[object Arguments]",u="[object Array]",d="[object Object]",p=Object.prototype,f=p.hasOwnProperty;function h(m,g,y,_,w,E){var C=s(m),S=s(g),x=C?u:o(m),P=S?u:o(g);x=x==c?d:x,P=P==c?d:P;var D=x==d,L=P==d,O=x==P;if(O&&a(m)){if(!a(g))return!1;C=!0,D=!1}if(O&&!D)return E||(E=new e),C||i(m)?t(m,g,y,_,w,E):r(m,g,x,y,_,w,E);if(!(y&l)){var A=D&&f.call(m,"__wrapped__"),T=L&&f.call(g,"__wrapped__");if(A||T){var R=A?m.value():m,N=T?g.value():g;return E||(E=new e),w(R,N,y,_,E)}}return O?(E||(E=new e),n(m,g,y,_,w,E)):!1}return Kc=h,Kc}var Gc,Xg;function Af(){if(Xg)return Gc;Xg=1;var e=ok(),t=Jt();function r(n,o,s,a,i){return n===o?!0:n==null||o==null||!t(n)&&!t(o)?n!==n&&o!==o:e(n,o,s,a,r,i)}return Gc=r,Gc}var Yc,Zg;function sk(){if(Zg)return Yc;Zg=1;var e=Af();function t(r,n){return e(r,n)}return Yc=t,Yc}var ak=sk();const ik=Pe(ak);var Xc,Jg;function lk(){if(Jg)return Xc;Jg=1;var e=go(),t=Sf(),r=Ot(),n=e?e.isConcatSpreadable:void 0;function o(s){return r(s)||t(s)||!!(n&&s&&s[n])}return Xc=o,Xc}var Zc,Qg;function ck(){if(Qg)return Zc;Qg=1;var e=Pw(),t=lk();function r(n,o,s,a,i){var l=-1,c=n.length;for(s||(s=t),i||(i=[]);++l<c;){var u=n[l];o>0&&s(u)?o>1?r(u,o-1,s,a,i):e(i,u):a||(i[i.length]=u)}return i}return Zc=r,Zc}var Jc,e1;function kf(){if(e1)return Jc;e1=1;var e=Ot(),t=bo(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function o(s,a){if(e(s))return!1;var i=typeof s;return i=="number"||i=="symbol"||i=="boolean"||s==null||t(s)?!0:n.test(s)||!r.test(s)||a!=null&&s in Object(a)}return Jc=o,Jc}var Qc,t1;function uk(){if(t1)return Qc;t1=1;var e=If(),t="Expected a function";function r(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new TypeError(t);var s=function(){var a=arguments,i=o?o.apply(this,a):a[0],l=s.cache;if(l.has(i))return l.get(i);var c=n.apply(this,a);return s.cache=l.set(i,c)||l,c};return s.cache=new(r.Cache||e),s}return r.Cache=e,Qc=r,Qc}var eu,r1;function dk(){if(r1)return eu;r1=1;var e=uk(),t=500;function r(n){var o=e(n,function(a){return s.size===t&&s.clear(),a}),s=o.cache;return o}return eu=r,eu}var tu,n1;function fk(){if(n1)return tu;n1=1;var e=dk(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(o){var s=[];return o.charCodeAt(0)===46&&s.push(""),o.replace(t,function(a,i,l,c){s.push(l?c.replace(r,"$1"):i||a)}),s});return tu=n,tu}var ru,o1;function $w(){if(o1)return ru;o1=1;var e=Ot(),t=kf(),r=fk(),n=Ad();function o(s,a){return e(s)?s:t(s,a)?[s]:r(n(s))}return ru=o,ru}var nu,s1;function Xs(){if(s1)return nu;s1=1;var e=bo();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return nu=t,nu}var ou,a1;function Pf(){if(a1)return ou;a1=1;var e=$w(),t=Xs();function r(n,o){o=e(o,n);for(var s=0,a=o.length;n!=null&&s<a;)n=n[t(o[s++])];return s&&s==a?n:void 0}return ou=r,ou}var su,i1;function pk(){if(i1)return su;i1=1;var e=Aw(),t=Af(),r=1,n=2;function o(s,a,i,l){var c=i.length,u=c,d=!l;if(s==null)return!u;for(s=Object(s);c--;){var p=i[c];if(d&&p[2]?p[1]!==s[p[0]]:!(p[0]in s))return!1}for(;++c<u;){p=i[c];var f=p[0],h=s[f],m=p[1];if(d&&p[2]){if(h===void 0&&!(f in s))return!1}else{var g=new e;if(l)var y=l(h,m,f,s,a,g);if(!(y===void 0?t(m,h,r|n,l,g):y))return!1}}return!0}return su=o,su}var au,l1;function Mw(){if(l1)return au;l1=1;var e=On();function t(r){return r===r&&!e(r)}return au=t,au}var iu,c1;function hk(){if(c1)return iu;c1=1;var e=Mw(),t=Tf();function r(n){for(var o=t(n),s=o.length;s--;){var a=o[s],i=n[a];o[s]=[a,i,e(i)]}return o}return iu=r,iu}var lu,u1;function Fw(){if(u1)return lu;u1=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return lu=e,lu}var cu,d1;function mk(){if(d1)return cu;d1=1;var e=pk(),t=hk(),r=Fw();function n(o){var s=t(o);return s.length==1&&s[0][2]?r(s[0][0],s[0][1]):function(a){return a===o||e(a,o,s)}}return cu=n,cu}var uu,f1;function vk(){if(f1)return uu;f1=1;var e=Pf();function t(r,n,o){var s=r==null?void 0:e(r,n);return s===void 0?o:s}return uu=t,uu}var du,p1;function gk(){if(p1)return du;p1=1;function e(t,r){return t!=null&&r in Object(t)}return du=e,du}var fu,h1;function bk(){if(h1)return fu;h1=1;var e=$w(),t=Sf(),r=Ot(),n=Of(),o=Rf(),s=Xs();function a(i,l,c){l=e(l,i);for(var u=-1,d=l.length,p=!1;++u<d;){var f=s(l[u]);if(!(p=i!=null&&c(i,f)))break;i=i[f]}return p||++u!=d?p:(d=i==null?0:i.length,!!d&&o(d)&&n(f,d)&&(r(i)||t(i)))}return fu=a,fu}var pu,m1;function yk(){if(m1)return pu;m1=1;var e=gk(),t=bk();function r(n,o){return n!=null&&t(n,o,e)}return pu=r,pu}var hu,v1;function _k(){if(v1)return hu;v1=1;var e=Af(),t=vk(),r=yk(),n=kf(),o=Mw(),s=Fw(),a=Xs(),i=1,l=2;function c(u,d){return n(u)&&o(d)?s(a(u),d):function(p){var f=t(p,u);return f===void 0&&f===d?r(p,u):e(d,f,i|l)}}return hu=c,hu}var mu,g1;function wk(){if(g1)return mu;g1=1;function e(t){return function(r){return r==null?void 0:r[t]}}return mu=e,mu}var vu,b1;function Ek(){if(b1)return vu;b1=1;var e=Pf();function t(r){return function(n){return e(n,r)}}return vu=t,vu}var gu,y1;function Ck(){if(y1)return gu;y1=1;var e=wk(),t=Ek(),r=kf(),n=Xs();function o(s){return r(s)?e(n(s)):t(s)}return gu=o,gu}var bu,_1;function xk(){if(_1)return bu;_1=1;var e=mk(),t=_k(),r=Ws(),n=Ot(),o=Ck();function s(a){return typeof a=="function"?a:a==null?r:typeof a=="object"?n(a)?t(a[0],a[1]):e(a):o(a)}return bu=s,bu}var yu,w1;function Ik(){if(w1)return yu;w1=1;function e(t){return function(r,n,o){for(var s=-1,a=Object(r),i=o(r),l=i.length;l--;){var c=i[t?l:++s];if(n(a[c],c,a)===!1)break}return r}}return yu=e,yu}var _u,E1;function Sk(){if(E1)return _u;E1=1;var e=Ik(),t=e();return _u=t,_u}var wu,C1;function Ok(){if(C1)return wu;C1=1;var e=Sk(),t=Tf();function r(n,o){return n&&e(n,o,t)}return wu=r,wu}var Eu,x1;function Rk(){if(x1)return Eu;x1=1;var e=Ys();function t(r,n){return function(o,s){if(o==null)return o;if(!e(o))return r(o,s);for(var a=o.length,i=n?a:-1,l=Object(o);(n?i--:++i<a)&&s(l[i],i,l)!==!1;);return o}}return Eu=t,Eu}var Cu,I1;function Tk(){if(I1)return Cu;I1=1;var e=Ok(),t=Rk(),r=t(e);return Cu=r,Cu}var xu,S1;function Ak(){if(S1)return xu;S1=1;var e=Tk(),t=Ys();function r(n,o){var s=-1,a=t(n)?Array(n.length):[];return e(n,function(i,l,c){a[++s]=o(i,l,c)}),a}return xu=r,xu}var Iu,O1;function kk(){if(O1)return Iu;O1=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return Iu=e,Iu}var Su,R1;function Pk(){if(R1)return Su;R1=1;var e=bo();function t(r,n){if(r!==n){var o=r!==void 0,s=r===null,a=r===r,i=e(r),l=n!==void 0,c=n===null,u=n===n,d=e(n);if(!c&&!d&&!i&&r>n||i&&l&&u&&!c&&!d||s&&l&&u||!o&&u||!a)return 1;if(!s&&!i&&!d&&r<n||d&&o&&a&&!s&&!i||c&&o&&a||!l&&a||!u)return-1}return 0}return Su=t,Su}var Ou,T1;function Dk(){if(T1)return Ou;T1=1;var e=Pk();function t(r,n,o){for(var s=-1,a=r.criteria,i=n.criteria,l=a.length,c=o.length;++s<l;){var u=e(a[s],i[s]);if(u){if(s>=c)return u;var d=o[s];return u*(d=="desc"?-1:1)}}return r.index-n.index}return Ou=t,Ou}var Ru,A1;function Nk(){if(A1)return Ru;A1=1;var e=h0(),t=Pf(),r=xk(),n=Ak(),o=kk(),s=Nw(),a=Dk(),i=Ws(),l=Ot();function c(u,d,p){d.length?d=e(d,function(m){return l(m)?function(g){return t(g,m.length===1?m[0]:m)}:m}):d=[i];var f=-1;d=e(d,s(r));var h=n(u,function(m,g,y){var _=e(d,function(w){return w(m)});return{criteria:_,index:++f,value:m}});return o(h,function(m,g){return a(m,g,p)})}return Ru=c,Ru}var Tu,k1;function Lk(){if(k1)return Tu;k1=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return Tu=e,Tu}var Au,P1;function $k(){if(P1)return Au;P1=1;var e=Lk(),t=Math.max;function r(n,o,s){return o=t(o===void 0?n.length-1:o,0),function(){for(var a=arguments,i=-1,l=t(a.length-o,0),c=Array(l);++i<l;)c[i]=a[o+i];i=-1;for(var u=Array(o+1);++i<o;)u[i]=a[i];return u[o]=s(c),e(n,this,u)}}return Au=r,Au}var ku,D1;function Mk(){if(D1)return ku;D1=1;function e(t){return function(){return t}}return ku=e,ku}var Pu,N1;function Fk(){if(N1)return Pu;N1=1;var e=Lr(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return Pu=t,Pu}var Du,L1;function Bk(){if(L1)return Du;L1=1;var e=Mk(),t=Fk(),r=Ws(),n=t?function(o,s){return t(o,"toString",{configurable:!0,enumerable:!1,value:e(s),writable:!0})}:r;return Du=n,Du}var Nu,$1;function Hk(){if($1)return Nu;$1=1;var e=800,t=16,r=Date.now;function n(o){var s=0,a=0;return function(){var i=r(),l=t-(i-a);if(a=i,l>0){if(++s>=e)return arguments[0]}else s=0;return o.apply(void 0,arguments)}}return Nu=n,Nu}var Lu,M1;
46function qk(){if(M1)return Lu;M1=1;var e=Bk(),t=Hk(),r=t(e);return Lu=r,Lu}var $u,F1;function jk(){if(F1)return $u;F1=1;var e=Ws(),t=$k(),r=qk();function n(o,s){return r(t(o,s,e),o+"")}return $u=n,$u}var Mu,B1;function Uk(){if(B1)return Mu;B1=1;var e=Cf(),t=Ys(),r=Of(),n=On();function o(s,a,i){if(!n(i))return!1;var l=typeof a;return(l=="number"?t(i)&&r(a,i.length):l=="string"&&a in i)?e(i[a],s):!1}return Mu=o,Mu}var Fu,H1;function Wk(){if(H1)return Fu;H1=1;var e=ck(),t=Nk(),r=jk(),n=Uk(),o=r(function(s,a){if(s==null)return[];var i=a.length;return i>1&&n(s,a[0],a[1])?a=[]:i>2&&n(a[0],a[1],a[2])&&(a=[a[0]]),t(s,e(a,1),[])});return Fu=o,Fu}var Vk=Wk();const q1=Pe(Vk),zk=$e("dropdown",{root:{states:["noBorder","allowTextSelection"]}}),j1=null,Kk=200,Gk=["Enter","Spacebar"," ","ArrowUp","ArrowDown"];class Cr extends Us{constructor(t){super(t),this.state={value:"",selectedId:j1,...Cr.getNextState(t,UT(t.selectedId,t.initialSelectedId))}}isSelectedIdControlled(){return typeof this.props.selectedId<"u"}static isOptionsEqual(t,r){return ik(q1(t,"id"),q1(r,"id"))}getSelectedId(){return this.isSelectedIdControlled()?this.props.selectedId:this.state.selectedId}shouldOpenDropdown(t){return Gk.includes(t)}_onOpenChange(t,r){super._onOpenChange(t,r,Kk)}static getNextState(t,r){if(typeof r<"u"){const n=t.options.find(o=>o.id===r);if(n)return{value:t.valueParser(n)||"",selectedId:r}}return{value:"",selectedId:j1}}UNSAFE_componentWillReceiveProps(t){(t.selectedId!==this.props.selectedId||!Cr.isOptionsEqual(this.props.options,t.options))&&this.setState(Cr.getNextState(t,t.selectedId,this.state.selectedId))}inputClasses(){const{noBorder:t,allowTextSelection:r}=this.props;return zk.root({noBorder:t,allowTextSelection:r})}dropdownAdditionalProps(){return{selectedId:this.getSelectedId(),value:this.state.value,tabIndex:-1,withArrow:!1,size:["tiny","small"].includes(this.props.size)?"small":"medium"}}inputAdditionalProps(){return{disableEditing:!0,readOnly:this.props.readOnly,value:this.state.value,role:"combobox",ariaHaspopup:"listbox"}}_onSelect(t){this.isSelectedIdControlled()||this.setState({value:this.props.valueParser(t),selectedId:t.id}),super._onSelect(t)}_onChange(t){this.setState({value:t.target.value}),super._onChange(t)}}Cr.defaultProps={allowTextSelection:!0,...Us.defaultProps};Cr.displayName="Dropdown";const Yk=Oo(Cr,"Dropdown");var Bw="wds_1_319_0_ImageViewer",Xk=se.bind(null,Bw);ae.bind(null,Bw);var Yo=Xk,Yr={root:"wds_1_319_0_ImageViewer__root",buttons:"wds_1_319_0_ImageViewer__buttons",imageContainer:"wds_1_319_0_ImageViewer__imageContainer",overlay:"wds_1_319_0_ImageViewer__overlay",image:"wds_1_319_0_ImageViewer__image",statusContainer:"wds_1_319_0_ImageViewer__statusContainer"};const Ae={addItem:"add-image",overlay:"image-viewer-overlay",imagesContainer:"images-container",update:"update-image",loader:"image-viewer-loader",image:"image-viewer-current-image",previousImage:"image-viewer-previous-image",updateTooltip:"update-image-tooltip",downloadTooltip:"download-image-tooltip",removeTooltip:"remove-image-tooltip",moreTooltip:"more-image-tooltip",errorTooltip:"error-image-tooltip",remove:"remove-image",download:"download-image",more:"more-image",actionsMenu:"more-actions-menu"};class Zs extends b.Component{constructor(t){super(t),this._renderAddImage=()=>{const{onAddImage:n,addImageInfo:o,tooltipProps:s={},disabled:a}=this.props;return v.createElement(qs,{ref:this.focusNode,onClick:n,theme:"image",dataHook:Ae.addItem,disabled:a,tooltipProps:{...s,content:o},ariaLabel:o})},this._renderImageElement=({imageUrl:n,shouldDisplay:o,onLoad:s,onError:a,key:i,dataHook:l,fit:c,alt:u})=>{const{imageProps:d={},removeRoundedBorders:p}=this.props;return v.createElement(Ln,{alt:u,borderRadius:p&&0,transparent:!0,...d,className:Yo(Yr.image,{shouldDisplay:o,fit:c}),src:n,onLoad:s,onError:a,key:i,dataHook:l,"data-image-visible":o,fit:c})},this._resetImageLoading=()=>{this.setState({imageLoading:!1})},this._onImageLoad=n=>{const{onImageLoad:o}=this.props;this.setState({imageLoading:!1},()=>o(n))},this._getCurrentAndPreviousImages=()=>{const{imageUrl:n}=this.props,{previousImageUrl:o}=this.state;return{currentImageUrl:n,previousImageUrl:o}},this._renderImage=()=>{const{fit:n,alt:o}=this.props,{imageLoading:s}=this.state;if(!this.props.imageUrl)return;const{currentImageUrl:a,previousImageUrl:i}=this._getCurrentAndPreviousImages(),l=!!(a||i),c=(u,d)=>`${u}-${d}`;return v.createElement("div",{className:Yo(Yr.imageContainer,{shouldDisplay:l}),"data-container-visible":l,"data-hook":Ae.imagesContainer},this._renderImageElement({imageUrl:a,shouldDisplay:!!a&&!s,onLoad:this._onImageLoad,onError:()=>{this._resetImageLoading()},dataHook:Ae.image,key:c(Ae.image,a),fit:n,alt:o}),this._renderImageElement({imageUrl:i,shouldDisplay:s&&!!i,dataHook:Ae.previousImage,key:c(Ae.previousImage,i),fit:n,alt:o}))},this._renderUpdateButton=n=>{const{updateImageInfo:o,onUpdateImage:s,tooltipProps:a,updateButtonAriaLabel:i}=this.props;return v.createElement(Ne,{...a,timeout:0,dataHook:Ae.updateTooltip,content:o},v.createElement(Ct,{ref:n,dataHook:Ae.update,onClick:s,skin:"light",priority:"secondary",ariaLabel:i},v.createElement(NR,null)))},this._resetPreviousImage=()=>this.setState({previousImageUrl:void 0}),this._renderRemoveButton=n=>{const{removeImageInfo:o,onRemoveImage:s,tooltipProps:a,removeButtonAriaLabel:i}=this.props;return v.createElement(Ne,{...a,timeout:0,dataHook:Ae.removeTooltip,content:o},v.createElement(Ct,{ref:n,dataHook:Ae.remove,skin:"light",priority:"secondary",onClick:l=>{this._resetPreviousImage(),s&&s(l)},ariaLabel:i},v.createElement(rv,null)))},this._renderDownloadButton=n=>{const{downloadImageInfo:o,onDownloadImage:s,tooltipProps:a}=this.props;return v.createElement(Ne,{...a,timeout:0,dataHook:Ae.downloadTooltip,content:o},v.createElement(Ct,{ref:n,dataHook:Ae.download,skin:"light",priority:"secondary",onClick:i=>{s&&s(i)}},v.createElement(nv,null)))},this._hidePopover=()=>this.setState({popoverOpen:!1}),this._showPopover=()=>this.setState({popoverOpen:!0}),this._renderMoreButton=()=>{const{tooltipProps:n,moreImageInfo:o,downloadImageInfo:s,onDownloadImage:a,removeImageInfo:i,onRemoveImage:l}=this.props;return v.createElement(il,{dataHook:Ae.actionsMenu,onHide:this._hidePopover,onShow:this._showPopover,triggerElement:({toggle:c})=>v.createElement(Ne,{...n,timeout:0,dataHook:Ae.moreTooltip,content:o},v.createElement(Ct,{onClick:c,dataHook:Ae.more,skin:"light",priority:this.state.popoverOpen?"primary":"secondary"},v.createElement(PR,null)))},v.createElement(il.MenuItem,{prefixIcon:v.createElement(nv,null),text:s,onClick:a}),v.createElement(il.MenuItem,{prefixIcon:v.createElement(rv,null),text:i,onClick:l}))},this._renderFirstButton=()=>{const{showUpdateButton:n,showRemoveButton:o,showDownloadButton:s}=this.props;return n?this._renderUpdateButton(this.focusNode):s?this._renderDownloadButton(this.focusNode):o?this._renderRemoveButton(this.focusNode):null},this._renderSecondButton=()=>{const{showUpdateButton:n,showRemoveButton:o,showDownloadButton:s}=this.props;return n&&s&&o?this._renderMoreButton():n&&o?this._renderRemoveButton():n&&s?this._renderDownloadButton():s&&o?this._renderRemoveButton():null},this._renderLoader=()=>v.createElement(Pr,{align:"center",verticalAlign:"middle",height:"100%",dataHook:Ae.loader},v.createElement(tr,{size:"small"})),this._renderButtons=()=>v.createElement("div",{className:Yr.buttons},this._renderFirstButton(),this._renderSecondButton()),this._renderOverlayWith=n=>{const{removeRoundedBorders:o}=this.props,{currentImageUrl:s,previousImageUrl:a}=this._getCurrentAndPreviousImages(),i=!!(s||a);return v.createElement("div",{className:Yo(Yr.overlay,{removeRadius:o,shouldDisplay:i}),"data-remove-radius":o,"data-hook":Ae.overlay},n,v.createElement("span",null))},this.focus=()=>{this.focusNode.current&&this.focusNode.current.focus()};const{imageUrl:r}=t;this.focusNode=v.createRef(),this.state={imageLoading:!!r,previousImageUrl:void 0,popoverOpen:!1}}UNSAFE_componentWillReceiveProps(t){const{imageUrl:r}=this.props,{imageUrl:n}=t;n&&r!==n&&this.setState({imageLoading:!0,previousImageUrl:r})}render(){const{width:t,height:r,disabled:n,dataHook:o,removeRoundedBorders:s,imageUrl:a,fit:i,status:l,statusMessage:c,className:u}=this.props,{imageLoading:d,previousImageUrl:p,popoverOpen:f}=this.state,h=po(this.context,l),m=!!a,g=m&&!d,y={disabled:n,status:!n&&h,removeRadius:s,hasImage:m,popoverOpen:f,imageLoading:d},_={"data-disabled":n,"data-image-loaded":g,"data-hook":o};return v.createElement("div",{className:Yo(Yr.root,y,u),style:{width:t,height:r},..._},!m&&this._renderAddImage(),this._renderImage(),!n&&this._renderOverlayWith(d?this._renderLoader():m&&this._renderButtons()),(l||h==="loading")&&!n&&v.createElement("div",{className:Yr.statusContainer},v.createElement(ho,{status:h,message:c,dataHook:Ae.errorTooltip})))}}Zs.contextType=Po;Zs.displayName="ImageViewer";
46Zs.defaultProps={showUpdateButton:!0,showDownloadButton:!1,showRemoveButton:!0,fit:"cover",addImageInfo:"Add Image",updateImageInfo:"Update",downloadImageInfo:"Download",removeImageInfo:"Remove",moreImageInfo:"More actions",onImageLoad:()=>({})};var Hw="wds_1_319_0_ColorPickerHsb";se.bind(null,Hw);ae.bind(null,Hw);var zn={root:"wds_1_319_0_ColorPickerHsb__root",saturation:"wds_1_319_0_ColorPickerHsb__saturation",brightness:"wds_1_319_0_ColorPickerHsb__brightness",hue:"wds_1_319_0_ColorPickerHsb__hue",handle:"wds_1_319_0_ColorPickerHsb__handle"};const qw=({onChange:e,getCurrentColor:t,getNewColor:r,largeStep:n})=>o=>{const s=t(),a=o.shiftKey?10:1;let i=!0,l=null;switch(o.key){case"ArrowRight":case"ArrowLeft":case"ArrowUp":case"ArrowDown":case"Home":case"End":case"PageUp":case"PageDown":l=r(o.key,a,n,s);break;default:i=!1}i&&l&&(o.preventDefault(),e(l))},Zk=(e,t,r,n)=>{let o=n.saturationv(),s=n.value();switch(e){case"ArrowRight":o=Xe(o+t,0,100);break;case"ArrowLeft":o=Xe(o-t,0,100);break;case"ArrowUp":s=Xe(s+t,0,100);break;case"ArrowDown":s=Xe(s-t,0,100);break;case"Home":o=0,s=0;break;case"End":o=100,s=100;break;case"PageUp":o=Xe(o+r,0,100),s=Xe(s+r,0,100);break;case"PageDown":o=Xe(o-r,0,100),s=Xe(s-r,0,100);break}return rt({h:n.hue(),s:o,v:s})},Jk=(e,t,r,n)=>{let o=n.hue();switch(e){case"ArrowRight":case"ArrowUp":o=(o+t)%360;break;case"ArrowLeft":case"ArrowDown":o=(o-t+360)%360;break;case"Home":o=0;break;case"End":o=359;break;case"PageUp":o=(o+r)%360;break;case"PageDown":o=(o-r+360)%360;break}return rt({h:o,s:n.saturationv(),v:n.value()})};class Qk extends v.PureComponent{constructor(){super(...arguments),this.onMarkerDragStart=t=>{t.preventDefault(),window.addEventListener("mousemove",this.setNewColorByMouseEvent),window.addEventListener("touchmove",this.setNewColorByMouseEvent),window.addEventListener("mouseup",this.onMarkerDragEnd),window.addEventListener("touchend",this.onMarkerDragEnd),window.addEventListener("touchcancel",this.onMarkerDragEnd),this.gradientRect=this.gradient.getBoundingClientRect(),this.setNewColorByMouseEvent(t)},this.onKeyDown=qw({onChange:this.props.onChange,getCurrentColor:()=>this.props.current,getNewColor:Zk,largeStep:10}),this.onMarkerDragEnd=()=>{window.removeEventListener("touchmove",this.setNewColorByMouseEvent),window.removeEventListener("mousemove",this.setNewColorByMouseEvent),window.removeEventListener("touchcancel",this.onMarkerDragEnd),window.removeEventListener("touchend",this.onMarkerDragEnd),window.removeEventListener("mouseup",this.onMarkerDragEnd)},this.getSVByMouseEvent=t=>{let r=0,n=0;t.clientX?(r=t.clientX,n=t.clientY):(r=t.touches[0].clientX,n=t.touches[0].clientY);const o=r-this.gradientRect.left,s=n-this.gradientRect.top,a=Xe(100*o/this.gradientRect.width,0,100),i=Xe(100-100*s/this.gradientRect.height,0,100);return{s:a,v:i}},this.setNewColorByMouseEvent=t=>{const{onChange:r,current:n}=this.props,{s:o,v:s}=this.getSVByMouseEvent(t);r(rt({h:n.hue(),s:o,v:s}))}}componentWillUnmount(){this.onMarkerDragEnd()}focus(){this.gradient&&this.gradient.focus()}render(){const{dataHook:t,current:r}=this.props,n=r.saturationv(100).lightness(50),o={left:`${r.saturationv()}%`,top:`${100-r.value()}%`},s=Math.round(r.saturationv()),a=Math.round(r.value());return v.createElement("div",{className:zn.root,"data-hook":t,ref:i=>{this.gradient=i},onMouseDown:this.onMarkerDragStart,onTouchStart:this.onMarkerDragStart,onKeyDown:this.onKeyDown,tabIndex:0,role:"application","aria-label":"Saturation and brightness selector. Use arrow keys to adjust.","aria-valuetext":`Saturation ${s}%, Brightness ${a}%`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},v.createElement("div",{className:zn.hue,style:{background:n.hex()}}),v.createElement("div",{className:zn.saturation}),v.createElement("div",{className:zn.brightness}),v.createElement("div",{className:zn.handle,style:o,"aria-hidden":"true"}))}}var jw="wds_1_319_0_ColorPickerHue",e3=se.bind(null,jw);ae.bind(null,jw);var t3=e3,U1={root:"wds_1_319_0_ColorPickerHue__root",handle:"wds_1_319_0_ColorPickerHue__handle"};class r3 extends v.PureComponent{constructor(){super(...arguments),this.onMarkerDragStart=t=>{t.preventDefault(),window.addEventListener("mousemove",this.setNewColorByMouseEvent),window.addEventListener("touchmove",this.setNewColorByMouseEvent),window.addEventListener("mouseup",this.onMarkerDragEnd),window.addEventListener("touchcancel",this.onMarkerDragEnd),window.addEventListener("touchend",this.onMarkerDragEnd),this.sliderRect=this.slider.getBoundingClientRect(),this.setNewColorByMouseEvent(t)},this.onKeyDown=qw({onChange:this.props.onChange,getCurrentColor:()=>this.props.current,getNewColor:Jk,largeStep:30}),this.onMarkerDragEnd=()=>{window.removeEventListener("touchmove",this.setNewColorByMouseEvent),window.removeEventListener("mousemove",this.setNewColorByMouseEvent),window.removeEventListener("touchcancel",this.onMarkerDragEnd),window.removeEventListener("touchend",this.onMarkerDragEnd),window.removeEventListener("mouseup",this.onMarkerDragEnd)},this.getHueByMouseEvent=t=>{let r=0;t.clientX?r=t.clientX:t.touches&&t.touches[0]&&(r=t.touches[0].clientX);const n=r-this.sliderRect.left;return Xe(360*n/this.sliderRect.width,0,359)},this.setNewColorByMouseEvent=t=>{const{onChange:r,current:n}=this.props,o=this.getHueByMouseEvent(t);r(rt({h:o,s:n.saturationv(),v:n.value()}))}}componentWillUnmount(){this.onMarkerDragEnd()}render(){const{dataHook:t,current:r}=this.props,n=r.hue()/360*100,o=Math.round(r.hue());return v.createElement("div",{className:t3(U1.root,{noBorderRadius:this.props.showHistory}),"data-hook":t,ref:s=>{this.slider=s},onMouseDown:this.onMarkerDragStart,onTouchStart:this.onMarkerDragStart,onKeyDown:this.onKeyDown,tabIndex:0,role:"slider","aria-label":"Hue","aria-valuemin":0,"aria-valuemax":359,"aria-valuenow":o,"aria-valuetext":`Hue: ${o} degrees`},v.createElement("div",{className:U1.handle,style:{left:`${n}%`},"aria-hidden":"true"}))}}const qe={hsb:"color-picker-hsb",hue:"color-picker-hue",converter:"color-picker-converter",children:"color-picker-children",cancelButton:"color-picker-cancel-button",confirmButton:"color-picker-confirm-button",history:"color-picker-history",historyPrevious:"color-picker-history-previous",historyCurrent:"color-picker-history-current",addColor:"color-picker-add-color",eyeDropper:"color-picker-eye-dropper",hexConverterBtn:"color-picker-hex-converter-btn",rgbConverterBtn:"color-picker-rgb-converter-btn",hsbConverterBtn:"color-picker-hsb-converter-btn"};var Uw="wds_1_319_0_ColorPickerHistory";se.bind(null,Uw);ae.bind(null,Uw);var n3={root:"wds_1_319_0_ColorPickerHistory__root"};const o3=({show:e,current:t,previous:r,onClick:n})=>{const o=s=>{(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),n(r))};return e?v.createElement("div",{className:n3.root,"data-hook":qe.history},v.createElement("div",{"data-hook":qe.historyPrevious,style:{background:r.hex()},onClick:()=>n(r),onKeyDown:o,tabIndex:0,role:"button","aria-label":`Previous color: ${r.hex()}`}),v.createElement("div",{"data-hook":qe.historyCurrent,style:{background:t.hex()},role:"img","aria-label":`Current color: ${t.hex()}`})):null},Bu=$e("segmented-toggle",{root:{variants:{size:["tiny","small","medium"]},states:["disabled","fullWidth"]},item:{variants:{size:["tiny","small","medium"]},states:["selected"]},divider:{states:["disabled","transparent"]}}),Od=$e("segmented-toggle-button",{root:{variants:{size:["tiny","small","medium"]},states:["selected","disabled"]},label:{},prefix:{}}),s3=(e,t)=>{const r=t==="small"||t==="tiny"?"18":"24";return e&&v.cloneElement(e,{width:r,height:r,className:Od.prefix()})},Ww=({children:e,prefixIcon:t,selected:r,size:n,dataHook:o,focusableOnFocus:s,focusableOnBlur:a,disabled:i,className:l,role:c,"aria-checked":u,...d})=>{const{focusProps:p}=Jd();return v.createElement("button",{...d,role:c,className:Od.root({selected:r,size:n,disabled:i},l),"data-hook":o,"data-selected":r,"aria-checked":u,disabled:i,type:"button",...p},s3(t,n),v.createElement(pe,{className:Od.label(),ellipsis:!0,size:n==="tiny"?"small":n,weight:"thin",disabled:i,skin:i?"disabled":"standard"},e))};Ww.displayName="SegmentedToggle.Button";const Vw=$e("segmented-toggle-icon",{root:{variants:{size:["tiny","small","medium"]},states:["selected"]},tooltip:{},textWrapper:{}}),a3=({"data-click":e,selected:t,size:r,onClick:n,focusableOnFocus:o,focusableOnBlur:s,children:a,className:i,role:l,"aria-checked":c,...u})=>v.createElement("button",{...u,role:l,className:Vw.root({size:r,selected:t},i),"data-click":e,"data-hook":"toggle-icon","data-selected":t,"aria-checked":c,onClick:n,onFocus:o,onBlur:s,type:"button"},a),i3=Pn(a3);class zw extends v.Component{render(){const{children:t,selected:r,size:n,tooltipText:o,tooltipProps:s,focusableOnFocus:a,focusableOnBlur:i,onClick:l,dataHook:c,"data-click":u,role:d,"aria-checked":p,...f}=this.props;return v.createElement(Ne,{appendTo:"window",placement:"top",timeout:0,...s,content:o,className:Vw.tooltip(),dataHook:c},v.createElement(i3,{...f,size:n,selected:r,"data-click":u,role:d,"aria-checked":p,onClick:l,onFocus:a,onBlur:i},t?v.cloneElement(t,{size:n==="small"||n==="tiny"?"18px":"24px"}):null))}}zw.displayName="SegmentedToggle.Icon";class Kt extends v.Component{constructor(){super(...arguments),this.state={selected:this.props.defaultSelected},this._onClick=t=>{const{onClick:r,selected:n}=this.props,{value:o}=t.currentTarget;if(!t.currentTarget.disabled){if(n)return r&&r(t,o);this.setState({selected:o},()=>r&&r(t,o))}},this._addDividers=(t,r)=>{const n=[],o=(a,i)=>a.props.selected!==i.props.selected;for(let a=0;a<t.length-1;a++){const i=t[a],l=t[a+1],c=o(i,l),u=v.createElement("div",{key:`divider-${a}`,className:Bu.divider({disabled:r,transparent:c})});n.push(i,u)}const s=t[t.length-1];return n.push(s),n}}render(){const{dataHook:t,children:r,disabled:n,size:o,defaultSelected:s,onClick:a,selected:i,ariaLabel:l,ariaLabelledby:c,fullWidth:u,...d}=this.props,p=i||this.state.selected;let f=v.Children.map(r,(h,m)=>{const g=h.props.disabled??n;return v.cloneElement(h,{disabled:g,"data-click":`segmented-toggle-${m+1}`,"aria-checked":h.props.value===p,role:"radio",onClick:this._onClick,selected:h.props.value===p,size:o,className:Bu.item({selected:h.props.value===p,size:o})})});return f=this._addDividers(f,n),v.createElement("div",{...d,role:"radiogroup","aria-label":l,"aria-labelledby":c,"data-hook":t,"data-size":o,className:Bu.root({disabled:n,size:o,fullWidth:u})},f)}}Kt.displayName="SegmentedToggle";Kt.defaultProps={children:[],size:"medium",fullWidth:!1};Kt.Button=Ww;Kt.Icon=zw;const _r=$e("toggle-button",{root:{variants:{skin:["standard","dark","inverted","destructive","success","standard-secondary"],labelPlacement:["tooltip","end","start","bottom"],shape:["square","round","pill"],size:["tiny","small","medium","large"]},states:["selected","interactive","disabled","mobile","hasIcon","border","iconOnly"]},tooltip:{states:["disabled","interactive"]},btnContent:{},labelContainer:{},icon:{},rootIcon:{},label:{}}
46),Xo={round:"round",pill:"pill"},l3={tiny:"18px",small:"18px",medium:"24px",large:"24px"},W1="toggle-button",V1={label:`${W1}-label`,button:`${W1}-button`},c3=({children:e,size:t,shape:r,labelPlacement:n,focusableOnBlur:o,focusableOnFocus:s,className:a})=>{var _;const i=l3[t],l=r==="round"&&(n==="end"||n==="start"),c=n==="start",u=n==="end"||r==="pill"&&!c,[d,p]=v.Children.map(e,w=>w),f=c?p:d,h=l&&c?d:null,m=!l&&c?d:null,g=!l&&u?p:null,y=l&&u?p:null;return e&&v.createElement("span",{className:_r.labelContainer()},h,v.createElement("div",{className:_r.icon({},a),onBlur:o,onFocus:s},m,b.cloneElement(f,{className:_r.rootIcon({},(_=f.props)==null?void 0:_.className),width:i,height:i}),g),y)},u3=Pn(c3);class xr extends b.PureComponent{constructor(){super(...arguments),this.renderLabel=()=>{const{disabled:t,labelValue:r,labelEllipsis:n}=this.props;return v.createElement(pe,{className:_r.label(),disabled:t,dataHook:V1.label,weight:"thin",ellipsis:n},r)}}render(){const{children:t,size:r=xr.defaultProps.size,shape:n=xr.defaultProps.shape,skin:o,tooltipProps:s,labelValue:a,selected:i,interactive:l,dataHook:c,labelPlacement:u,labelEllipsis:d,disabled:p,border:f=xr.defaultProps.border,tooltipDisabled:h,className:m,...g}=this.props,y=!!(t&&v.Children.count(t)>0),_=y&&n!==Xo.pill&&(n===Xo.round||u==="tooltip"||u==="bottom");return v.createElement(Qt.Consumer,null,({mobile:w})=>v.createElement(Ne,{className:_r.tooltip({disabled:p,interactive:l}),...s,size:"small",content:a,disabled:!a||h||(s==null?void 0:s.disabled)||u!=="tooltip"||n==="pill"||w,"data-hook":c},v.createElement(So,{...g,type:void 0,onFocus:g==null?void 0:g.onFocus,onBlur:g==null?void 0:g.onBlur,className:_r.root({disabled:p,selected:i,interactive:l,skin:o,labelPlacement:u,shape:n,mobile:w,size:r,hasIcon:y,border:f,iconOnly:_},m),contentClassName:_r.btnContent(),"data-hook":V1.button,"data-placement":u,"data-selected":i,"data-skin":o,"data-shape":n,"aria-pressed":i,disabled:p,"aria-label":a==null?void 0:a.toString()},v.createElement(u3,{size:r,shape:n,labelPlacement:u},u==="start"?this.renderLabel():null,t,u==="end"||n===Xo.pill&&u!=="start"?this.renderLabel():null),u==="bottom"&&n!==Xo.pill?this.renderLabel():null)))}}xr.displayName="ToggleButton";xr.defaultProps={skin:"standard",size:"medium",shape:"square",border:!1,interactive:!0,disabled:!1,labelValue:"",labelPlacement:"tooltip",labelEllipsis:!1,tooltipProps:{placement:"top"}};var Kw="wds_1_319_0_ColorPickerConverter",d3=se.bind(null,Kw);ae.bind(null,Kw);var In=d3,Be={root:"wds_1_319_0_ColorPickerConverter__root",colorModelSwitcher:"wds_1_319_0_ColorPickerConverter__colorModelSwitcher",colorConverterWrapper:"wds_1_319_0_ColorPickerConverter__colorConverterWrapper",colorInput:"wds_1_319_0_ColorPickerConverter__colorInput",preview:"wds_1_319_0_ColorPickerConverter__preview",distribute:"wds_1_319_0_ColorPickerConverter__distribute",distributedItem:"wds_1_319_0_ColorPickerConverter__distributedItem"};function f3(e,t="#ffffff",r="#162d3d"){try{return rt(e).luminosity()>.5?r:t}catch{}}class p3 extends b.PureComponent{constructor(){super(...arguments),this.onAddClick=()=>{const{color:t,onAdd:r}=this.props,n=t.alpha()===0;r&&!n&&r(t.hex())},this.addTooltip=t=>{const{addTooltipContent:r}=this.props;return v.createElement(Ne,{disabled:!r,content:r,size:"small"},t)}}render(){const{color:t,onAdd:r,focusableOnFocus:n,focusableOnBlur:o,className:s}=this.props,a=t.alpha()===0,i=!!r&&!a;return v.createElement(mf.Consumer,null,({icons:l={}})=>{var d;const c=((d=l.ColorPickerConverterViewer)==null?void 0:d.AddSmall)||RR,u=v.createElement(i?"button":"div",{style:{backgroundColor:a?void 0:t.hex()},"data-hook":qe.addColor,onFocus:n,onBlur:o,className:In(Be.preview,{clickable:i,noColorSelected:a},s),onClick:this.onAddClick},i&&v.createElement(c,{style:{color:f3(t.hex())}}));return i?this.addTooltip(u):u})}}const Df=Pn(p3);function h3(e){return e}function m3(e){return e===Object(e)}function v3(e,t=h3){return!m3(e)||typeof t!="function"?{}:Object.keys(e).reduce((r,n)=>({...r,[n]:t(e[n],n,e)}),{})}
46function Sn(e,t=!1){try{return t?e?rt(e):rt().alpha(0):rt(e)}catch{return null}}function Hu(e){return mo(e)?"":e.hex()}function z1(e){return mo(e)?{r:"",g:"",b:""}:v3(e.rgb().object(),Math.round)}function K1(e){return mo(e)?{h:"",s:"",l:""}:e.hsl().round().object()}function mo(e){return e.alpha()===0}function Ir(e){e.stopPropagation()}class G1 extends v.PureComponent{constructor(){super(...arguments),this.state={hex:Hu(this.props.current),inFocus:!1},this.change=({target:{value:t}})=>{this.setState({hex:t},()=>{const r=Sn(t,this.props.allowEmpty);r&&this.props.onChange(r)})},this.handleOnFocus=()=>{this.setState({inFocus:!0})},this.handleOnBlur=()=>{this.setState({inFocus:!1,hex:Hu(this.props.current)})},this.handleKeyDown=t=>{const{key:r}=t;r==="Enter"&&this.props.onEnter()}}render(){const{dataHook:t}=this.props;return v.createElement("div",{className:In(Be.colorConverterWrapper),"data-hook":t},v.createElement(je,{size:"medium",value:this.state.hex,placeholder:this.props.placeholder,onChange:this.change,onFocus:this.handleOnFocus,onBlur:this.handleOnBlur,onKeyDown:this.handleKeyDown,className:Be.colorInput,onInputClicked:Ir}),v.createElement(Df,{...this.props,color:this.props.current}))}UNSAFE_componentWillReceiveProps(t){const r=Hu(t.current);!this.state.inFocus&&this.state.hex!==r&&this.setState({hex:r})}}class g3 extends v.PureComponent{constructor(){super(...arguments),this.state=K1(this.props.current)}isInputsEmpty(){const{h:t,s:r,l:n}=this.state;return[t,r,n].every(o=>o==="")}render(){const{dataHook:t}=this.props;return v.createElement("div",{className:In(Be.colorConverterWrapper,{reducePadding:!0}),"data-hook":t},v.createElement("div",{className:Be.distribute},v.createElement(je,{size:"medium",value:this.state.h,onChange:r=>this.change("h",r),placeholder:"H",className:Be.distributedItem,onInputClicked:Ir}),v.createElement(je,{size:"medium",value:this.state.s,onChange:r=>this.change("s",r),placeholder:"S",className:Be.distributedItem,onInputClicked:Ir}),v.createElement(je,{size:"medium",value:this.state.l,onChange:r=>this.change("l",r),placeholder:"B",className:Be.distributedItem,onInputClicked:Ir})),v.createElement(Df,{...this.props,color:this.props.current}))}UNSAFE_componentWillReceiveProps(t){this.setState(K1(t.current))}change(t,{target:{value:r}}){this.setState({[t]:r},()=>{const{h:n,s:o,l:s}=this.state,a=[n,o,s].some(l=>l===""),i=Sn(a&&this.props.allowEmpty?"":this.state,this.props.allowEmpty);(!a||this.isInputsEmpty())&&this.props.onChange(i)})}}class b3 extends v.PureComponent{constructor(){super(...arguments),this.state=z1(this.props.current)}isInputsEmpty(){const{r:t,g:r,b:n}=this.state;return[t,r,n].every(o=>o==="")}render(){const{dataHook:t}=this.props;return v.createElement("div",{className:In(Be.colorConverterWrapper,{reducePadding:!0}),"data-hook":t},v.createElement("div",{className:Be.distribute},v.createElement(je,{size:"medium",value:this.state.r,onChange:r=>this.change("r",r),placeholder:"R",className:Be.distributedItem,onInputClicked:Ir}),v.createElement(je,{size:"medium",value:this.state.g,onChange:r=>this.change("g",r),placeholder:"G",className:Be.distributedItem,onInputClicked:Ir}),v.createElement(je,{size:"medium",value:this.state.b,onChange:r=>this.change("b",r),placeholder:"B",className:Be.distributedItem,onInputClicked:Ir})),v.createElement(Df,{...this.props,color:this.props.current}))}UNSAFE_componentWillReceiveProps(t){this.setState(z1(t.current))}change(t,{target:{value:r}}){this.setState({[t]:r},()=>{const n=this.state.r===""||this.state.g===""||this.state.b==="",o=Sn(n&&this.props.allowEmpty?"":this.state,this.props.allowEmpty);(!n||this.isInputsEmpty())&&this.props.onChange(o)})}}const Y1=({eyeDropperLabel:e,allowEmpty:t,onChange:r})=>{const[n,o]=b.useState(!1),s=Nr("ColorPickerEyeDropper",{Pipette:DR});if(!(typeof window<"u"&&"EyeDropper"in window))return null;const i=b.useCallback(async()=>{try{o(!0);const c=await new window.EyeDropper().open();if(c&&c.sRGBHex){const u=Sn(c.sRGBHex,t);u&&r(u)}}catch(l){if(l instanceof DOMException){if(l.name==="AbortError")return;console.error("EyeDropper error:",l.name,l.message)}else console.error("Unexpected error:",l)}finally{o(!1)}},[t,r,o]);return v.createElement(xr,{size:"medium",onClick:i,dataHook:qe.eyeDropper,labelValue:e,selected:n},v.createElement(s.Pipette,null))},Zo="HEX",qu="RGB",ju="HSB";class y3 extends v.PureComponent{constructor(t){super(t),this.state={activeConverter:Zo},this.changeConverter=(r,n)=>{this.setState({activeConverter:n})}}render(){const{dataHook:t,current:r,showConverter:n,showInput:o,addTooltipContent:s,allowEmpty:a,hexPlaceholder:i,showEyeDropper:l,eyeDropperLabel:c}=this.props,u={hex:"color-picker-hex-input",rgb:"color-picker-rgb-inputs",hsb:"color-picker-hsb-inputs"},{activeConverter:d}=this.state;return!n&&!o?null:n?v.createElement("div",{className:In(Be.root),"data-hook":t},v.createElement("div",{className:In(Be.colorModelSwitcher)},v.createElement(Kt,{selected:d,onClick:(p,f)=>this.changeConverter(p,f),size:"medium"},v.createElement(Kt.Button,{value:Zo,dataHook:qe.hexConverterBtn},Zo),v.createElement(Kt.Button,{value:qu,dataHook:qe.rgbConverterBtn},qu),v.createElement(Kt.Button,{value:ju,dataHook:qe.hsbConverterBtn},ju)),l&&v.createElement(Y1,{eyeDropperLabel:c,allowEmpty:a,onChange:this.props.onChange}
46)),d===Zo&&v.createElement(G1,{placeholder:i,dataHook:u.hex,current:r,onChange:this.props.onChange,onAdd:this.props.onAdd,onEnter:this.props.onEnter,addTooltipContent:s,allowEmpty:a}),d===qu&&v.createElement(b3,{dataHook:u.rgb,current:r,onChange:this.props.onChange,onAdd:this.props.onAdd,addTooltipContent:s,allowEmpty:a}),d===ju&&v.createElement(g3,{dataHook:u.hsb,current:r,onChange:this.props.onChange,onAdd:this.props.onAdd,addTooltipContent:s,allowEmpty:a})):v.createElement(Pr,{direction:"horizontal",gap:"small",align:"center"},l&&v.createElement(Y1,{eyeDropperLabel:c,allowEmpty:a,onChange:this.props.onChange}),v.createElement(G1,{placeholder:i,dataHook:u.hex,current:r,onChange:this.props.onChange,onEnter:this.props.onEnter,onAdd:this.props.onAdd,addTooltipContent:s,allowEmpty:a}))}}var Gw="wds_1_319_0_ColorPickerActions";se.bind(null,Gw);ae.bind(null,Gw);var _3={root:"wds_1_319_0_ColorPickerActions__root"};const w3=({onCancel:e,onConfirm:t,disabled:r})=>{const n=Nr("ColorPickerActions",{X:MR,Check:TR});return v.createElement("div",{className:_3.root},v.createElement(Ct,{dataHook:qe.cancelButton,size:"medium",priority:"secondary",onClick:e},v.createElement(n.X,null)),v.createElement(Ct,{dataHook:qe.confirmButton,size:"medium",disabled:r,onClick:t},v.createElement(n.Check,null)))};var Yw="wds_1_319_0_ColorPicker",E3=se.bind(null,Yw);ae.bind(null,Yw);var C3=E3,X1={root:"wds_1_319_0_ColorPicker__root"};const x3=rt("#86c6e5");class Nf extends v.PureComponent{constructor(t){super(t),this._renderChildren=()=>{const{children:n}=this.props,o={changeColor:s=>{try{let a=s;typeof s!="object"&&(a=s===""?rt().fade(1):rt(s)),this.change(a)}catch{}}};return typeof n=="function"?n(o):n},this.change=n=>{this.setState({current:n},()=>{this.props.onChange(n),this.props.showActionButtons||this.confirm()})},this.confirm=()=>{this.setState({previous:this.state.current}),this.props.onConfirm(this.state.current)},this.cancel=()=>{this.props.onCancel(this.state.previous)},this.focus=()=>{this.hsbRef.current&&this.hsbRef.current.focus()};const r=Sn(t.value,t.allowEmpty)||x3;this.state={current:r,previous:r},this.hsbRef=v.createRef()}render(){const{showHistory:t,showInput:r,showConverter:n,showActionButtons:o,showEyeDropper:s,eyeDropperLabel:a,children:i,value:l,onAdd:c,addTooltipContent:u,allowEmpty:d,emptyPlaceholder:p,dataHook:f,removePadding:h}=this.props,{current:m,previous:g}=this.state;return v.createElement("div",{className:C3(X1.root,{noPadding:h}),"data-hook":f,role:"group","aria-label":"Color picker"},v.createElement("div",null,v.createElement(Qk,{ref:this.hsbRef,dataHook:qe.hsb,current:m,onChange:this.change}),v.createElement(r3,{dataHook:qe.hue,current:m,onChange:this.change,showHistory:t}),v.createElement(o3,{show:t,current:m,previous:g,onClick:this.change})),v.createElement(y3,{dataHook:qe.converter,showConverter:n,showInput:r,current:m,onChange:this.change,onEnter:this.confirm,onAdd:c,addTooltipContent:u,allowEmpty:d,hexPlaceholder:p,showEyeDropper:s,eyeDropperLabel:a}),i&&v.createElement("div",{className:X1.children,"data-hook":qe.children},this._renderChildren()),o&&v.createElement(w3,{disabled:!d&&l==="",onConfirm:this.confirm,onCancel:this.cancel}))}UNSAFE_componentWillReceiveProps(t){const r=Sn(t.value,t.allowEmpty);r&&(r.hex()!==this.state.current.hex()||mo(r)!==mo(this.state.current))&&this.setState({current:r})}}Nf.displayName="ColorPicker";Nf.defaultProps={showHistory:!1,showConverter:!0,showInput:!0,showActionButtons:!0,allowEmpty:!1,showEyeDropper:!1,eyeDropperLabel:"Sample color",removePadding:!1,onChange:()=>{},onCancel:()=>{},onConfirm:()=>{}};const cr="formfield",ur={suffix:`${cr}-suffix`,counter:`${cr}-counter`,children:`${cr}-children`,label:`${cr}-label`,asterisk:`${cr}-asterisk`,infoIcon:`${cr}-infoicon`,statusMessage:`${cr}-statusmessage`},At={top:"top",right:"right",left:"left"},I3={middle:"middle"},Xr={error:"error",warning:"warning"};var Xw="wds_1_319_0_FormField",S3=se.bind(null,Xw);ae.bind(null,Xw);var Ht=S3,Ve={root:"wds_1_319_0_FormField__root",label:"wds_1_319_0_FormField__label",suffix:"wds_1_319_0_FormField__suffix",children:"wds_1_319_0_FormField__children",statusMessage:"wds_1_319_0_FormField__statusMessage",labelRow:"wds_1_319_0_FormField__labelRow",labelRowMain:"wds_1_319_0_FormField__labelRowMain",asterisk:"wds_1_319_0_FormField__asterisk",charCount:"wds_1_319_0_FormField__charCount",infoIcon:"wds_1_319_0_FormField__infoIcon",statusIcon:"wds_1_319_0_FormField__statusIcon"};class Js extends b.Component{constructor(t){super(t),this.state={lengthLeft:void 0},this.childrenRenderPropInterface={setCharactersLeft:r=>this.setState({lengthLeft:r})},this._getLabelPlacement=()=>{const{mobile:r}=this.context;return r?At.top:this.props.labelPlacement},this._hasCharCounter=()=>this.props.charCount!==void 0||typeof this.state.lengthLeft=="number",this.charactersLeft=r=>{const{labelSize:n}=this.props,o=r&&r>=0?{light:!0,secondary:!0}:{skin:eI.error};return v.createElement(pe,{className:Ht(Ve.charCount,{labelSize:n}),size:Qx.small,weight:Ju.normal,...o,dataHook:ur.counter,children:r})},this._renderCharCounter=()=>{if(!this._hasCharCounter())return;const{charCount:r}=this.props;return this.charactersLeft(r!==void 0?r:this.state.lengthLeft)},this._renderInfoIcon=()=>{const{infoContent:r,infoTooltipProps:n,showInfoIconOnHover:o}=this.props;return r&&v.createElement(iw,{dataHook:ur.infoIcon,className:Ht(Ve.infoIcon,{showInfoIconOnHover:String(o)}
46),content:r,tooltipProps:n,size:"small"})},this._renderSuffix=()=>{const{suffix:r}=this.props;return(r||this._hasCharCounter())&&v.createElement("div",{"data-hook":ur.suffix,className:Ht(Ve.suffix,{noLabel:!this.props.label||this._getLabelPlacement()!==At.top})},r||this._renderCharCounter())},this._hasInlineElements=(r,n)=>{const o=r&&(n===At.left||n===At.right),s=!r&&(this.props.required||!!this.props.infoContent);return o||s},this._renderLabel=({trimLongText:r,labelSize:n,asterisk:o})=>{const{label:s,id:a,required:i,infoContent:l,ellipsis:c,maxLines:u}=this.props,d=n==="tiny"?"normal":void 0,p=i||l;return v.createElement(pe,{size:n,weight:d,htmlFor:a,id:this.labelId,tagName:"label",dataHook:ur.label,ellipsis:c??r,maxLines:u,style:{display:"block"},secondary:!0,className:Ht(Ve.label,{labelSize:n,size:n}),suffix:p?v.createElement(v.Fragment,null,i&&o,this._renderInfoIcon()):void 0},s)},this._renderStatusIcon=r=>{const{status:n}=this.props;if(!n||n==="loading")return;const s={[Xr.error]:r.StatusAlertFilledSmall,[Xr.warning]:r.StatusWarningFilledSmall}[n];return v.createElement("div",{className:Ve.statusIcon},v.createElement(s,null))},this._renderStatusMessage=r=>{const{statusMessage:n,status:o,labelSize:s}=this.props;return v.createElement("div",{className:Ht(Ve.statusMessage,{status:o,labelSize:s})},(o===Xr.error||o===Xr.warning)&&this._renderStatusIcon(r),v.createElement(pe,{id:this.statusId,dataHook:ur.statusMessage,skin:o===Xr.error?"error":"standard",secondary:o!==Xr.error,size:"tiny"},n))},this._getCustomColumns=()=>{const{labelWidth:r,inputWidth:n}=this.props,o=this._getLabelPlacement(),s=r??"auto",a=n??"auto";return o===At.left?`${s} ${a}`:o===At.right?`${a} ${s}`:void 0},this.labelId=t.labelId||ln("formfield-"),this.statusId=t.labelId?`${t.labelId}-status`:ln("formfield-status-")}_renderChildren(){const{children:t}=this.props;return typeof t=="function"?t(this.childrenRenderPropInterface):t}render(){const{label:t,labelAlignment:r,labelSize:n,required:o,dataHook:s,children:a,classNames:i,stretchContent:l,statusMessage:c,status:u,labelWidth:d,inputWidth:p,ellipsis:f}=this.props,h=this._getLabelPlacement(),m=t?{labelPlacement:h,labelAlignment:r,stretchContent:l,required:o,minLabelHeight:!a}:{stretchContent:l,required:o,minLabelHeight:!a},g=this._hasInlineElements(t,h),y=!!d||!!p;return v.createElement(mf.Consumer,null,({icons:_={}})=>{var C,S,x;const w={Asterisk:((C=_.FormField)==null?void 0:C.Asterisk)||QE,StatusAlertFilledSmall:((S=_.FormField)==null?void 0:S.StatusAlertFilledSmall)||LR,StatusWarningFilledSmall:((x=_.FormField)==null?void 0:x.StatusWarningFilledSmall)||$R},E=v.createElement("div",{"data-hook":ur.asterisk,className:Ve.asterisk},v.createElement(w.Asterisk,null));return v.createElement("div",{"data-hoverable-action-trigger":!0,"data-hook":s,"data-status":u,className:Ht(Ve.root,{...m,...t?{labelSize:n}:{},hasInlineElements:g},i),style:h!==At.top&&y?{gridTemplateColumns:this._getCustomColumns()}:{}},t&&h===At.top&&v.createElement("div",{className:Ve.labelRow},v.createElement("div",{className:Ve.labelRowMain},this._renderLabel({trimLongText:!0,labelSize:n,asterisk:E})),this._renderSuffix()),a&&v.createElement("div",{"data-hook":ur.children,className:Ht(Ve.children,{childrenWithInlineLabel:g})},!t&&this._renderSuffix(),v.createElement(JR.Consumer,null,P=>v.createElement(Po.Provider,{value:{status:u,ariaLabelledBy:this.labelId,ariaDescribedBy:[this.statusId,u===P.status&&P.statusId].filter(Boolean).join(" ")}},this._renderChildren()))),g&&v.createElement("div",{className:Ht(Ve.labelRow,{ellipsis:f})},v.createElement("div",{className:Ve.labelRowMain},this._renderLabel({trimLongText:!1,labelSize:n,asterisk:E})),!!t&&this._renderSuffix()),c&&this._renderStatusMessage(w))})}}Js.displayName="FormField";Js.contextType=Qt;Js.defaultProps={required:!1,stretchContent:!0,labelSize:"small",labelPlacement:At.top,labelAlignment:I3.middle};const ze=$e("thumbnail",{root:{variants:{size:["tiny","small","medium"],skin:["primary","secondary"],textPosition:["outside","inside"],contentAlignment:["top","center"]}
46,states:["selected","disabled","border","hasBackground","hasChildren","noPadding"]},wrapper:{},selectedIcon:{},customChild:{},backgroundContainer:{},backgroundImage:{},contentContainer:{},imageContainer:{},image:{},textContent:{},title:{},description:{},bottomTitle:{}}),dr="thumbnail",fr={thumbnailSelectedIcon:`${dr}-selected-icon`,thumbnailDescription:`${dr}-description`,thumbnailTitle:`${dr}-title`,thumbnailImage:`${dr}-image`,thumbnailBackgroundImage:`${dr}-background-image`,thumbnailBottomTitle:`${dr}-bottom-title`,thumbnailWrapper:`${dr}-wrapper`},Z1=e=>typeof e=="string",Zw=b.forwardRef((e,t)=>{const r=kr("Thumbnail",e),{dataHook:n,className:o,ariaLabel:s,border:a=!0,children:i,title:l,description:c,image:u,size:d="medium",selected:p=!1,disabled:f=!1,hideSelectedIcon:h,backgroundImage:m,onClick:g,onMouseOver:y,width:_,height:w,contentAlignment:E="center",ellipsis:C=!1,maxLines:S,textPosition:x="inside",noPadding:P=!1,tooltipProps:D={},skin:L="primary",focusableOnFocus:O,focusableOnBlur:A}=r,T=Nr("Thumbnail",{CheckboxChecked:w0}),R=b.useRef(null),N=!!i,W=!!m,q=(N||W)&&l;b.useImperativeHandle(t,()=>({focus:()=>{var J;(J=R.current)==null||J.focus()}}));const H=()=>v.createElement("div",{className:ze.backgroundContainer()},Z1(m)?v.createElement("div",{className:ze.backgroundImage(),"data-hook":fr.thumbnailBackgroundImage,style:{backgroundImage:`url(${m})`}}):m),I=()=>v.createElement(Pr,{align:"center"},v.createElement(pe,{className:ze.bottomTitle(),dataHook:fr.thumbnailBottomTitle,size:d,tagName:"div",weight:"thin",ellipsis:!0,children:l,tooltipProps:D})),k=()=>v.createElement("div",{className:ze.imageContainer(),"data-hook":fr.thumbnailImage},Z1(u)?v.createElement("img",{src:u,className:ze.image(),alt:""}):u),$=()=>v.createElement("div",{className:ze.textContent()},l&&v.createElement(pe,{className:ze.title(),dataHook:fr.thumbnailTitle,size:d,weight:"normal",children:l,skin:f?"disabled":void 0,ellipsis:C,maxLines:S,tooltipProps:D}),c&&v.createElement(pe,{className:ze.description(),dataHook:fr.thumbnailDescription,size:d,weight:"thin",secondary:!0,children:c,skin:f?"disabled":void 0,ellipsis:C,maxLines:S,tooltipProps:D})),G=b.useCallback(()=>v.createElement("div",{className:ze.selectedIcon(),"data-hook":fr.thumbnailSelectedIcon},v.createElement(T.CheckboxChecked,{height:"7.8",width:"10"})),[T]),Z=()=>N?v.createElement("div",{className:ze.customChild()},i):W?H():v.createElement("div",{className:ze.contentContainer()},u&&k(),x==="inside"&&$()),K=()=>v.createElement("div",{ref:R,style:{height:w},className:ze.wrapper(),"data-selected":p,"data-disabled":f,tabIndex:f?void 0:0,"data-hook":fr.thumbnailWrapper,onFocus:O,onBlur:A},!h&&p&&G(),Z()),X=J=>{g&&["Enter"," "].includes(J.key)&&g(J)};return v.createElement("div",{style:{width:_},className:ze.root({size:d,skin:L,textPosition:x,contentAlignment:E,selected:p,disabled:f,border:a,hasBackground:W,hasChildren:N,noPadding:P},o),"aria-label":s,onClick:f?void 0:g,onMouseOver:f?void 0:y,onKeyDown:f?void 0:X,"data-hook":n},K(),x==="outside"&&$(),q?I():null)});Zw.displayName="Thumbnail";const Jw=Pn(Zw),_s=e=>e==null||e==="",Qw=e=>_s(e)||!/[0-9]$/.test(String(e)),O3=(e,t)=>_s(e)?_s(t)?"":Number(t):String(e),R3=e=>{const t=e.replace(",",".");return Qw(t)?t:t.startsWith("-")?t.replace(/^-0+(?!\.|,|$)/,"-"):t.replace(/^0+(?!\.|,|$)/,"")},T3=e=>{const t=R3(String(e));return{numberValue:t===""?null:Number(t),stringValue:t}},Rd=({value:e,minValue:t,maxValue:r})=>!(!Number.isNaN(t)&&e<Number(t))&&!(!Number.isNaN(r)&&e>Number(r)),A3=({value:e,minValue:t,maxValue:r})=>_s(e)?{hasError:!1}:Qw(e)?{hasError:!0,validationType:"formatError"}:Rd({value:Number(e),minValue:t,maxValue:r})?{hasError:!1}:{hasError:!0,validationType:"outOfBoundsError"},J1=(e,t,r)=>{const n=[...t];return n.sort((o,s)=>r==="up"?o-s:s-o),n.find(o=>r==="up"?o>e:o<e)??n[n.length-1]},k3={numberInputTicker:"number-input-ticker"},eE=e=>{const{suffix:t,defaultValue:r,strict:n=!1,max:o,min:s,hideStepper:a=!1,value:i,inputRef:l,step:c=1,status:u,invalidMessage:d,statusMessage:p,onChange:f,onInvalid:h,onKeyDown:m,type:g,disabled:y,tooltipPlacement:_,...w}=kr("NumberInput",e);b.useEffect(()=>{},[_]);const E={hasError:!1,localValue:""},[C,S]=v.useReducer((K,X)=>({...K,...X}),E),[x,P]=v.useState(null),D=C.hasError&&d,L=i!=null&&f,O=Array.isArray(c),A=()=>{const K=L?i:C.localValue;return Number(K)},T=()=>
46{if(y)return[!0,!0];const K=A();if(O){const X=[...c].sort((V,Y)=>V-Y),J=X[0],M=X[X.length-1],j=s!==void 0?Math.max(s,J):J,U=o!==void 0?Math.min(o,M):M;return[K>=U,K<=j]}return[o!==void 0&&K>=o,s!==void 0&&K<=s]},[R,N]=T(),W=({value:K,shouldCallOnChangeCallback:X=!0})=>{const{numberValue:J,stringValue:M}=T3(K),{hasError:j,validationType:U}=A3({value:M,minValue:s,maxValue:o});S({hasError:j,localValue:M});const V=L&&!Number.isNaN(J);(j?V:X)&&(f==null||f(J,M)),j&&(h==null||h(M,{validationType:U,value:M}))};b.useEffect(()=>{},[n]),b.useEffect(()=>{const K=O3(i,r);W({value:K,shouldCallOnChangeCallback:!1})},[i,r]);const q=()=>{const K=A(),X=String(K||(x==null?void 0:x.value)||"").replace(",","."),J=parseFloat(X)||0,M=O?J1(J,c,"up"):Number((J+c).toPrecision(12));Rd({value:M,minValue:s,maxValue:o})?W({value:M}):s!==void 0&&M<=s&&W({value:s}),x==null||x.focus()},H=()=>{const K=A(),X=String(K||(x==null?void 0:x.value)||"").replace(",","."),J=parseFloat(X)||0,M=O?J1(J,c,"down"):Number((J-c).toPrecision(12));Rd({value:M,minValue:s,maxValue:o})?W({value:M}):o!==void 0&&M>=o&&W({value:o}),x==null||x.focus()},I=b.useCallback(K=>{P(K),typeof l=="function"?K&&l(K):l&&"current"in l&&(l.current=K)},[l]),k=()=>D?d:p,$=K=>{const{value:X}=K.target;/^-?\d*[.,]?\d*$/.test(X)?W({value:X}):S({localValue:C.localValue})},G=K=>{K.key==="ArrowUp"&&(q(),K.preventDefault()),K.key==="ArrowDown"&&(H(),K.preventDefault()),m==null||m(K)},Z=L&&i!==Number(C.localValue)&&C.localValue!=="-";return v.createElement(je,{...w,tooltipPlacement:_,disabled:y,max:o,min:s,type:g||"text",value:Z?i:C.localValue,onChange:$,inputRef:I,status:D?"error":u,statusMessage:k(),onKeyDown:G,ariaRoledescription:"spin button",inputmode:"numeric",suffix:t||!a?v.createElement(je.Group,null,t,!a&&v.createElement(je.Ticker,{onUp:q,onDown:H,dataHook:k3.numberInputTicker,upDisabled:R,downDisabled:N,onMouseDown:K=>K.preventDefault()})):void 0})};eE.displayName="NumberInput";const rs={COLOR_INPUT_COLOR_PICKER:"colorinput-colorpicker",COLOR_INPUT_HASH:"colorinput-hash",COLOR_INPUT_VIEWER_LINE:"colorinput-viewer-line",COLOR_INPUT_POPOVER:"colorinput-popover"};var tE="wds_1_319_0_Hash",P3=se.bind(null,tE);ae.bind(null,tE);var D3=P3,N3={root:"wds_1_319_0_Hash__root"};const L3=({disabled:e,size:t})=>v.createElement("div",{"data-hook":rs.COLOR_INPUT_HASH,"data-disabled":e,className:D3(N3.root,{disabled:e,size:t})},"#");
46var rE="wds_1_319_0_ColorViewer",$3=se.bind(null,rE);ae.bind(null,rE);var M3=$3,Q1={root:"wds_1_319_0_ColorViewer__root",line:"wds_1_319_0_ColorViewer__line"};class nE extends v.Component{constructor(){super(...arguments),this.contentRef=v.createRef(),this._onDocumentKeyUp=t=>{var o;if(t.key!=="Tab"||!this.contentRef.current||this.contentRef.current.contains(document.activeElement))return;const{popoverProps:r,onTabOut:n}=this.props;(o=r==null?void 0:r.onTabOut)==null||o.call(r,t),n(t)},this.onChange=t=>{const r=typeof t=="object"?t:rt(t);this.props.onChange(r.alpha()===0?"":r.hex())}}componentDidUpdate(t){!t.active&&this.props.active?document.addEventListener("keyup",this._onDocumentKeyUp):t.active&&!this.props.active&&document.removeEventListener("keyup",this._onDocumentKeyUp)}componentWillUnmount(){document.removeEventListener("keyup",this._onDocumentKeyUp)}render(){const{value:t,disabled:r,active:n,onClick:o,onConfirm:s,onCancel:a,size:i,placement:l="bottom",appendTo:c="parent",onClickOutside:u,children:d,onAddColor:p,addTooltipContent:f,placeholder:h,popoverProps:m}=this.props,{onTabOut:g,onClickOutside:y,..._}=m;return v.createElement(tt,{placement:l,appendTo:c,..._,dataHook:rs.COLOR_INPUT_POPOVER,showArrow:!0,fixed:!0,open:n,focusManagerEnabled:!1,autoUpdateOptions:{animationFrame:!0},onOpenChange:(w,E)=>{w||(E==="outside-press"&&n?u==null||u():E==="escape-key"&&(a==null||a()))}},v.createElement(tt.Trigger,null,v.createElement("div",{onClick:r?void 0:o,style:{backgroundColor:t},className:M3(Q1.root,{size:i}),"data-size":i},t===""&&v.createElement("div",{"data-hook":rs.COLOR_INPUT_VIEWER_LINE,className:Q1.line}))),v.createElement(tt.Content,null,v.createElement("div",{ref:this.contentRef},v.createElement(Nf,{dataHook:rs.COLOR_INPUT_COLOR_PICKER,showConverter:!1,showInput:!0,onCancel:a,onChange:this.onChange,onConfirm:s,value:t,onAdd:p,allowEmpty:!0,addTooltipContent:f,emptyPlaceholder:h},d))))}}nE.defaultProps={popoverProps:{}};const Kn=(...e)=>t=>e.includes(t),F3=[{when:Kn(0),make:()=>""},{when:Kn(1),make:e=>"#"+e[0].repeat(6)},{when:Kn(2),make:e=>"#"+(e[0]+e[1]).repeat(3)},{when:Kn(3,4,5),make:e=>"#"+e[0].repeat(2)+e[1].repeat(2)+e[2].repeat(2)},{when:e=>Kn(6)(e)||e>6,make:e=>"#"+e.slice(0,6)}],B3=e=>{if(e===""||!e)return e;const t=e.replace("#",""),r=t.length;return F3.find(({when:n})=>n(r)).make(t)},H3=e=>`#${e.toUpperCase().replace(/[^A-F0-9]/g,"")}`,e0=e=>{const t=H3(e);return t==="#"?"":t};class Lf extends v.Component{constructor(t){super(t),this._renderPrefix=()=>{const{disabled:r,size:n}=this.props,{active:o,value:s}=this.state,a=v.createElement(je.Affix,null,v.createElement(L3,{disabled:r,size:n}));return o||s?a:void 0},this.onTabOut=r=>{if(!this.input)return;const{input:n}=this.input,{target:o}=r;n!==o&&this.cancel()},this._renderSuffix=()=>{const{value:r,active:n}=this.state,{size:o,popoverPlacement:s,popoverAppendTo:a,disabled:i,colorPickerChildren:l,onAddColor:c,addTooltipContent:u,placeholder:d,popoverProps:p}=this.props;return v.createElement(Pr,{verticalAlign:"middle"},v.createElement(nE,{value:r,active:n,disabled:i,size:o,placement:s,appendTo:a,onClick:this.click,onChange:this._onPickerChange,onCancel:this.cancel,onConfirm:this.confirm,onClickOutside:this.confirm,children:l,onAddColor:c,addTooltipContent:u,placeholder:d,onTabOut:this.onTabOut,popoverProps:p}))},this._onChange=r=>{const{onChange:n}=this.props,o=e0(r.target.value);this.setState({value:o},()=>n(o))},this._onPickerChange=r=>{const{onChange:n}=this.props;this.setState({active:!0,value:r},()=>n(r))},this._onFocus=()=>this.setState({active:!0}),this._keyDown=r=>{r.stopPropagation(),r.key==="Enter"&&this.confirm(),r.key==="Escape"&&this.cancel()},this.click=()=>{this.input.focus(),this.setState({active:!0})},this.confirm=()=>{const{onConfirm:r,onChange:n}=this.props,o=B3(this.state.value);this.setState({active:!1,value:o,previous:o},()=>{r(o),n(o)})},this.cancel=()=>{const{onCancel:r,onChange:n}=this.props,{previous:o}=this.state;this.setState({active:!1,value:o},()=>{r(o),n(o)})},this.state={active:!1,previous:t.value,value:""}}static getDerivedStateFromProps(t,r){return!r.active&&t.value!==r.value?{value:e0(t.value)}:{}}render(){const{placeholder:t,size:r,...n}=this.props,{active:o,value:s}=this.state;return v.createElement(je,{...n,ref:a=>{this.input=a},placeholder:o?"":t,size:r,onKeyDown:this._keyDown,onChange:this._onChange,onFocus:this._onFocus,onInputClicked:this.click,value:s.replace("#",""),prefix:this._renderPrefix(),suffix:this._renderSuffix()})}}Lf.displayName="ColorInput";Lf.defaultProps={placeholder:"",size:"medium",onChange:()=>{},onConfirm:()=>{},onCancel:()=>{},popoverProps:{},value:""};const q3=Oo(Lf,"ColorInput"),Uu={formLoading:"Loading app formâ¦",appNotFound:"App not found.",appHasNoLiveVersion:"This app has no live version.",appForbidden:"You do not have permission to access this app.",appLoadFailed:"Unable to load this app.",addImage:"Add image",replaceImage:"Replace image",uploadUnavailable:"Upload unavailable",replaceVideo:"Replace video",uploadVideo:"Upload video",selectAnOption:"Select an option",collectionNotConfigured:"Collection is not configured",collectionItemsUnavailable:"Collection items are unavailable",collectionItemsLoading:"Loading collection items",noCollectionItems:"No collection items available",addItem:"Add item",noOptions:"No options available",noVideoSelected:"No video selected",optionUploadUnavailableForPublishedRuns:"Adding options is unavailable for published runs",uploading:"Uploading",uploadField:e=>`Upload ${e}`,replaceField:e=>`Replace ${e}`,clearField:e=>`Clear ${e}`,fieldPreview:e=>`${e} preview`,optionLabel:(e,t)=>
46`${e} option ${t}`,addArrayItem:e=>`Add ${e} item`,arrayItemPlaceholder:e=>`Item ${e}`,arrayItemLabel:(e,t)=>`${e} item ${t}`,arrayItemPreview:(e,t)=>`${e} item ${t} preview`,replaceArrayItem:(e,t)=>`Replace ${e} item ${t}`,deleteArrayItem:(e,t)=>`Delete ${e} item ${t}`,maxItemsReached:e=>`Maximum of ${e} items reached`,addUpToItems:e=>`Add up to ${e} items`,addUpToNamedItems:(e,t)=>`Add up to ${e} ${t}s`,addNamedItem:e=>`Add ${e}`,noItemsSelected:e=>`No ${e}s selected`,arrayCount:(e,t)=>`${e} of ${t} items`,collectionLoadFailed:"Failed to load collection items",uploadRejectedFileType:e=>`File type is not accepted: ${e}`,uploadMissingUrl:"The upload completed without a media URL.",uploadFailed:"Media upload failed.",unsupportedScalarField:(e,t)=>`Unsupported scalar field: ${e}/${t}`,unsupportedArrayField:e=>`Unsupported array field: ${e}`,unsupportedSelectorField:e=>`Unsupported selector field: ${e}`},at=e=>{if(!e)return Uu;let t=Object.entries(e).filter(([,r])=>r!=null);return t.length>0?{...Uu,...Object.fromEntries(t)}:Uu},j3=e=>typeof e=="string"&&e.startsWith("nautilus-app."),vo=(e,t)=>{if(!e)return t.literal;let r;try{r=e(t)}catch{return t.literal}if(typeof r!="string")return t.literal;let n=r.trim();return!n||j3(n)?t.literal:r},Nt=(e,t)=>e?vo(e.resolve,{appId:e.appId,part:"label",inputId:t.inputId,literal:t.label}):t.label,U3=(e,t)=>t.description&&e?vo(e.resolve,{appId:e.appId,part:"description",inputId:t.inputId,literal:t.description}):t.description,W3=(e,t,r,n)=>e?vo(e.resolve,{appId:e.appId,part:"option",inputId:t,optionIndex:r,literal:n}):n,Ge=({field:e,part:t,validationMessage:r,textDirection:n="auto",authorText:o,children:s})=>{let a=Nt(o,e),i=U3(o,e),l=`nautilus-embed-app-form-${b.useId().replaceAll(":","")}`,c=i?`${l}-description`:void 0,u=`${l}-label`,d=r?`${l}-validation`:void 0,p=[c,d].filter(Boolean).join(" ")||void 0,f=r?"error":void 0;return B.jsxs("div",{"data-nautilus-embed-app-form-root":"","data-part":t,"data-input-id":e.inputId,dir:n,children:[B.jsx(Js,{id:l,labelId:u,label:a,required:!e.optional,status:f,statusMessage:r?B.jsx("span",{id:d,"data-part":"validation-message",role:"alert",children:r}):void 0,children:s({id:l,labelId:u,descriptionId:c,validationId:d,describedBy:p,status:f})}),i?B.jsx(pe,{id:c,"data-part":"description",size:"tiny",secondary:!0,children:i}):null]})},oE=({size:e,...t})=>b.createElement("svg",{viewBox:"0 0 18 18",fill:"currentColor",width:e||"18",height:e||"18",...t},b.createElement("path",{d:"M10.38 3c.9 0 1.63.73 1.63 1.63V6h1.24a.75.75 0 0 1 0 1.5H13V12c0 1.66-1.34 3-3 3H8c-1.66 0-3-1.34-3-3V7.5h-.25a.75.75 0 0 1 0-1.5h1.26V4.63c0-.9.73-1.63 1.63-1.63h2.74ZM6.5 12c0 .83.67 1.5 1.5 1.5h2c.83 0 1.5-.67 1.5-1.5V7.5h-5V12Zm1.13-7.5c-.07 0-.13.06-.13.13V6h3V4.63a.133.133 0 0 0-.08-.12l-.06-.01H7.63Z"}));oE.displayName="DeleteSmall";var sE=oE;const aE=({size:e,...t})=>b.createElement("svg",{viewBox:"0 0 18 18",fill:"currentColor",width:e||"18",height:e||"18",...t},b.createElement("path",{d:"M4.583 8c.319 0 .584.264.584.583A2.918 2.918 0 0 0 8.083 11.5h3.367l-.957-.957a.588.588 0 0 1 0-.825.587.587 0 0 1 .824 0v.008l1.782 1.78a.774.774 0 0 1 0 1.098l-1.782 1.78a.587.587 0 0 1-.824 0 .587.587 0 0 1 0-.823l.894-.894H8.083A4.083 4.083 0 0 1 4 8.583C4 8.264 4.264 8 4.583 8Zm1.432-4.831a.587.587 0 0 1 .824 0c.225.226.225.6 0 .825l-.895.895H9.25a4.083 4.083 0 0 1 4.084 4.083.589.589 0 0 1-.584.584.588.588 0 0 1-.583-.584A2.918 2.918 0 0 0 9.25 6.056H5.883l.956.956a.587.587 0 0 1 0 .824.587.587 0 0 1-.824 0v-.008L4.233 6.047a.775.775 0 0 1 0-1.097l1.782-1.78Z"}));aE.displayName="ReplaceSmall";var V3=aE;const z3=({variant:e,fieldLabel:t,messages:r,inputId:n,url:o,index:s,replacing:a,disabled:i,replaceDisabled:l,onReplace:c,onDelete:u})=>{let d=s+1;return B.jsxs("div",{"data-part":"media-array-item",children:[B.jsx("div",{"data-part":"media-array-preview",children:e==="image"?B.jsx(Ln,{src:o,alt:r.arrayItemLabel(t,d),fit:"cover",width:"100%",height:"100%",dataHook:`app-form-image-array-preview-${n}-${s}`}):B.jsx("video",{src:o,controls:!0,playsInline:!0,"data-part":"video-preview","aria-label":r.arrayItemPreview(t,d)})}),B.jsxs("div",{"data-part":"media-array-actions",children:[B.jsx("div",{"data-part":"replace-array-item",children:B.jsx(Ct,{size:"tiny",skin:"dark",priority:"secondary",ariaLabel:r.replaceArrayItem(t,d),disabled:l,onClick:()=>c(s),children:B.jsx(V3,{})})}),B.jsx("div",{"data-part":"delete-array-item",children:B.jsx(Ct,{size:"tiny",skin:"dark",priority:"secondary",ariaLabel:r.deleteArrayItem(t,d),disabled:i,onClick:()=>u(s),children:B.jsx(sE,{})})})]}),a?B.jsx("div",{"data-part":"media-array-item-loader",children:B.jsx(tr,{size:"small",color:"white"})}):null]})},$f=({available:e,uploading:t,uploadError:r,messages:n})=>B.jsxs("div",{"data-part":"media-status","aria-live":"polite",children:[e?null:B.jsx(pe,{"data-part":"upload-unavailable",size:"tiny",secondary:!0,children:n.uploadUnavailable}),t?B.jsx(tr,{dataHook:"media-upload-loader",size:"small",text:n.uploading}):null,r?B.jsx(pe,{"data-part":"upload-error",size:"tiny",skin:"error",role:"alert",children:r}):null]}),K3=(e,t)=>Math.min(Math.max(1,Math.round(e??t)),15),iE=e=>{var t;return K3((t=e.itemCount)==null?void 0:t.max,15)},G3=e=>e.trim().toLowerCase(),Y3=(e,t)=>
46{let r=t.split(",").map(G3).filter(Boolean);if(r.length===0)return!0;let n=e.type.toLowerCase(),o=e.name.toLowerCase();return r.some(s=>s.startsWith(".")?o.endsWith(s):s.endsWith("/*")?n.startsWith(s.slice(0,-1)):n===s)},t0=(e,t)=>{switch(e.kind){case"rejected-file-type":return t.uploadRejectedFileType(e.fileName);case"missing-url":return t.uploadMissingUrl;case"failed":return t.uploadFailed;case"host":return e.message}},Mf=({contextKey:e,messages:t,uploadPort:r,onUploaded:n,onUploadError:o})=>{let[s,a]=b.useState(!1),[i,l]=b.useState(),c=b.useRef(0),u=b.useRef(t);u.current=t;let d=b.useRef(!1),p=b.useRef(e);p.current!==e&&(c.current+=1,d.current=!1,p.current=e),b.useEffect(()=>{a(!1),l(void 0)},[e]),b.useEffect(()=>()=>{c.current+=1,d.current=!1},[]);let f=m=>{l(m),o==null||o(Error(t0(m,u.current)))},h=m=>{l({kind:"host",message:m.message}),o==null||o(m)};return{upload:async m=>{if(!r||d.current)return;if(!Y3(m,r.accept)){f({kind:"rejected-file-type",fileName:m.name});return}let g=++c.current;d.current=!0,a(!0),l(void 0);try{let y=await r.upload(m);if(g!==c.current)return;if(!y.url){f({kind:"missing-url"});return}n(y.url)}catch(y){if(g!==c.current)return;y instanceof Error?h(y):f({kind:"failed"})}finally{g===c.current&&(d.current=!1,a(!1))}},uploading:s,uploadError:i?t0(i,t):void 0}},X3=({field:e,value:t,onChange:r,variant:n,uploadPort:o,onUploadError:s,disabled:a=!1,messages:i})=>{let l=b.useRef(null),c=b.useRef(null),u=b.useRef(void 0),[d,p]=b.useState(null),f=iE(e),h=t.length>=f,m=n==="image"?"image":"video",g=`${e.inputId}\0${t.join("\0")}`,y=()=>{c.current=null,u.current=void 0,p(null)},{upload:_,uploading:w,uploadError:E}=Mf({messages:i,contextKey:g,uploadPort:o,onUploaded:C=>{let S=c.current;if(y(),S==="append"){t.length<f&&r([...t,C]);return}typeof S=="number"&&S>=0&&S<t.length&&r(t.map((x,P)=>P===S?C:x))},onUploadError:C=>{y(),s==null||s(C)}});return{fileInputRef:l,actionTarget:d,maxItems:f,singularLabel:m,uploading:w,uploadError:E,addDisabled:a||w||!o||h,addTooltip:h?i.maxItemsReached(f):o?i.addUpToNamedItems(f,m):i.uploadUnavailable,handleOpenPicker:C=>{var S;a||w||!o||C==="append"&&h||(c.current=C,u.current=g,p(C),(S=l.current)==null||S.click())},handleSelectFile:C=>{var x;let S=(x=C.target.files)==null?void 0:x[0];if(C.target.value="",u.current!==g){y();return}if(S){_(S);return}y()},handleDeleteItem:C=>{a||w||r(t.filter((S,x)=>x!==C))}}},lE=({field:e,value:t,onChange:r,variant:n,uploadPort:o,onUploadError:s,disabled:a=!1,validationMessage:i,textDirection:l="auto",authorText:c,messages:u})=>{let d=at(u),p=Nt(c,e),{fileInputRef:f,actionTarget:h,maxItems:m,singularLabel:g,uploading:y,uploadError:_,addDisabled:w,addTooltip:E,handleOpenPicker:C,handleSelectFile:S,handleDeleteItem:x}=X3({field:e,value:t,onChange:r,variant:n,uploadPort:o,onUploadError:s,disabled:a,messages:d});return B.jsx(Ge,{authorText:c,field:e,part:`${n}-array-field`,validationMessage:i,textDirection:l,children:({id:P,labelId:D,describedBy:L})=>B.jsxs("div",{"data-part":"media-array-control",role:"group","aria-labelledby":D,"aria-describedby":L,children:[B.jsx("input",{ref:f,id:P,name:e.inputId,"data-part":"file-input",type:"file",accept:o==null?void 0:o.accept,disabled:a||y||!o,required:!e.optional&&t.length===0,"aria-describedby":L,"aria-invalid":i?"true":void 0,"aria-label":d.uploadField(p),onChange:S}),t.length>0?B.jsx("div",{"data-part":"media-array-grid",children:t.map((O,A)=>B.jsx(z3,{variant:n,fieldLabel:p,messages:d,inputId:e.inputId,url:O,index:A,replacing:y&&h===A,disabled:a||y,replaceDisabled:a||y||!o,onReplace:C,onDelete:x},`${O}-${A}`))}):B.jsx(pe,{"data-part":"empty-array",size:"small",secondary:!0,children:d.noItemsSelected(g)}),B.jsx("div",{"data-part":"add-array-item",children:B.jsx(qs,{skin:"dashes",size:"tiny",borderRadius:"8px",removePadding:!0,disabled:w,tooltipContent:E,tooltipProps:{size:"small",placement:"top",appendTo:"window"},ariaLabel:d.addArrayItem(p),onClick:()=>C("append"),dataHook:`app-form-${n}-array-add-${e.inputId}`,children:d.addNamedItem(g)})}),B.jsx(pe,{"data-part":"array-count",size:"tiny",secondary:!0,"aria-live":"polite",children:d.arrayCount(t.length,m)}),B.jsx($f,{messages:d,available:!!o,uploading:y,uploadError:_})]})})},Z3=e=>B.jsx(lE,{...e,variant:"image"}),J3=({field:e,value:t,onChange:r,disabled:n=!1})=>{let o=iE(e),s=t.length>0?t:[""],a=s.length>=o,i=s.length>1;return{maxItems:o,displayedItems:s,atLimit:a,canDelete:i,handleUpdateItem:(l,c)=>{let u=[...s];u[l]=c,r(u)},handleDeleteItem:l=>{!i||n||r(s.filter((c,u)=>u!==l))},handleAddItem:()=>{n||a||r([...s,""])}}},Q3=({field:e,value:t,onChange:r,disabled:n=!1,placeholder:o,val
46idationMessage:s,textDirection:a="auto",authorText:i,messages:l})=>{let c=at(l),u=Nt(i,e),{maxItems:d,displayedItems:p,atLimit:f,canDelete:h,handleUpdateItem:m,handleDeleteItem:g,handleAddItem:y}=J3({field:e,value:t,onChange:r,disabled:n});return B.jsx(Ge,{authorText:i,field:e,part:"text-array-field",validationMessage:s,textDirection:a,children:({id:_,labelId:w,describedBy:E,status:C})=>B.jsxs("div",{"data-part":"array-control",role:"group","aria-labelledby":w,"aria-describedby":E,children:[B.jsx("div",{"data-part":"array-items",children:p.map((S,x)=>{let P=x+1;return B.jsxs("div",{"data-part":"array-item",children:[B.jsx(_w,{ariaInvalid:s?"true":void 0,id:x===0?_:`${_}-item-${P}`,name:`${e.inputId}[${x}]`,value:S,onChange:D=>m(x,D.target.value),placeholder:o??c.arrayItemPlaceholder(P),disabled:n,required:!e.optional&&x===0,ariaLabel:c.arrayItemLabel(u,P),ariaDescribedby:E,status:C,dir:a,size:"small",rows:1,minHeight:"56px",resizable:!0,dataHook:`app-form-text-array-field-${e.inputId}-${x}`,children:({className:D,rows:L,ref:O,onFocus:A,onBlur:T,onKeyDown:R,onInput:N,dir:W})=>B.jsx("textarea",{className:D,rows:L,ref:O,onFocus:A,onBlur:T,onKeyDown:R,onInput:N,dir:W,id:x===0?_:`${_}-item-${P}`,name:`${e.inputId}[${x}]`,value:S,onChange:q=>m(x,q.target.value),placeholder:o??c.arrayItemPlaceholder(P),disabled:n,required:!e.optional&&x===0,"aria-label":c.arrayItemLabel(u,P),"aria-describedby":E,"aria-invalid":s?"true":void 0})}),h?B.jsx("div",{"data-part":"delete-array-item",children:B.jsx(Ct,{size:"tiny",skin:"destructive",priority:"secondary",ariaLabel:c.deleteArrayItem(u,P),disabled:n,onClick:()=>g(x),children:B.jsx(sE,{})})}):null]},x)})}),B.jsx("div",{"data-part":"add-array-item",children:B.jsx(qs,{skin:"dashes",size:"tiny",borderRadius:"8px",removePadding:!0,disabled:n||f,tooltipContent:f?c.maxItemsReached(d):c.addUpToItems(d),tooltipProps:{size:"small",placement:"top",appendTo:"window"},ariaLabel:c.addArrayItem(u),onClick:y,dataHook:`app-form-text-array-add-${e.inputId}`,children:c.addItem})}),B.jsx(pe,{"data-part":"array-count",size:"tiny",secondary:!0,"aria-live":"polite",children:c.arrayCount(p.length,d)})]})})},eP=e=>B.jsx(lE,{...e,variant:"video"}),r0=({field:e,validationMessage:t,textDirection:r,authorText:n,messages:o})=>{let s=at(o);return B.jsx(Ge,{authorText:n,field:e,part:"unsupported-array-field",validationMessage:t,textDirection:r,children:()=>B.jsx(pe,{"data-part":"unsupported-message",size:"small",skin:"error",children:s.unsupportedArrayField(String(e.dataType))})})},tP=({field:e,value:t,onChange:r,mediaUploadPort:n,onUploadError:o,disabled:s,placeholder:a,validationMessage:i,textDirection:l,authorText:c,messages:u})=>{if(e.kind!=="array")return B.jsx(r0,{authorText:c,messages:u,field:e,validationMessage:i,textDirection:l});let d={field:e,value:t,onChange:r,disabled:s,validationMessage:i,textDirection:l,authorText:c,messages:u};switch(String(e.dataType)){case"TEXT":return B.jsx(Q3,{...d,placeholder:a});case"IMAGE":return B.jsx(Z3,{...d,uploadPort:n,onUploadError:o});case"VIDEO":return B.jsx(eP,{...d,uploadPort:n,onUploadError:o});default:return B.jsx(r0,{authorText:c,messages:u,field:e,validationMessage:i,textDirection:l})}},rP=({field:e,value:t,onChange:r,disabled:n=!1,placeholder:o,clearable:s=e.optional,validationMessage:a,textDirection:i="auto",authorText:l,messages:c})=>{let u=at(c),d=Nt(l,e);return B.jsx(Ge,{authorText:l,field:e,part:"color-field",validationMessage:a,textDirection:i,children:({id:p,describedBy:f,status:h})=>B.jsx(q3,{id:p,name:e.inputId,value:t,onChange:m=>r(String(m)),onClear:s?()=>r(""):void 0,clearButton:s,clearButtonAriaLabel:u.clearField(d),placeholder:o,disabled:n,required:!e.optional,ariaDescribedby:f,status:h,rtl:i==="rtl",size:"small",popoverPlacement:"bottom",popoverAppendTo:"viewport",dataHook:`app-form-color-field-${e.inputId}`})})},Wu={status:"unavailable",items:[],error:null},Vu={status:"loading",items:[],error:null},nP=e=>e instanceof Error?e:null,oP=e=>e instanceof DOMException&&e.name==="AbortError",sP=(e,t,r,n)=>{let o=t==null?void 0:t.cacheKey,s=b.useRef(t);s.current=t;let a=b.useRef(r);a.current=r;let i=b.useRef(n);i.current=n;let l=b.useRef({providerKey:o,itemsByCollectionId:new Map});l.current.providerKey!==o&&(l.current={providerKey:o,itemsByCollectionId:new Map});let c=e?l.current.itemsByCollectionId.get(e):void 0,[u,d]=b.useState(()=>({collectionId:e,providerKey:o,value:c?{status:"ready",items:c,error:null}:e&&t?Vu:Wu}));if(b.useEffect(()=>{let f=s.current;if(!e||!f||!o){d({collectionId:e,providerKey:o,value:Wu});return}let h=l.current.itemsByCollectionId.get(e);if(h){d({collectionId:e,providerKey:o,value:{status:"ready",items:h,error:null}});return}let m=new AbortController;return d({collectionId:e,providerKey:o,value:Vu}),f.loadItems(e,{signal:m.signal}).then(g=>{if(m.signal.aborted)return;let y=[...g];l.current.itemsByCollectionId.set(e,y),d({collectionId:e,providerKey:o,value:{status:"ready",items:y,error:null}})}).catch(g=>{var _;if(m.signal.aborted||oP(g))return;let y=nP(g);d({collectionId:e,providerKey:o,value:{status:"error",items:[],error:y}}),(_=a.current)==null||_.call(a,y??Error(i.current.collectionLoadFailed))}),()=>m.abort()},[e,o]),!e||!t||!o)return Wu;let p=l.current.itemsByCollectionId.get(e);return p?{status:"ready",items:p,error:null}:u.collectionId!==e||u.providerKey!==o?Vu:u.value},aP=e=>`row-${e}`,iP=(e,t)=>
46{if(!(e!=null&&e.startsWith("row-")))return null;let r=Number(e.slice(4));return Number.isInteger(r)&&r>=0&&r<t?r:null},lP=({item:e})=>e.thumbnailUrl?B.jsx(Ln,{src:e.thumbnailUrl,alt:"",fit:"cover",width:"100%",height:"100%"}):B.jsx(pe,{size:"small",weight:"bold","aria-hidden":"true",children:e.label.trim().slice(0,1).toUpperCase()||"?"}),cP=({field:e,value:t,onChange:r,itemsProvider:n,onLoadError:o,disabled:s=!1,validationMessage:a,textDirection:i="auto",authorText:l,messages:c})=>{let u=at(c);Nt(l,e);let d=b.useRef([]),{status:p,items:f,error:h}=sP(e.collectionId,n,o,u),m=iP(t,f.length),g=(_,w=!1)=>{var E;r(aP(_)),w&&((E=d.current[_])==null||E.focus())},y=(_,w)=>_==="Home"?0:_==="End"?f.length-1:_==="ArrowUp"?(w-1+f.length)%f.length:_==="ArrowDown"?(w+1)%f.length:_==="ArrowLeft"?i==="rtl"?(w+1)%f.length:(w-1+f.length)%f.length:_==="ArrowRight"?i==="rtl"?(w-1+f.length)%f.length:(w+1)%f.length:null;return B.jsx(Ge,{authorText:l,field:e,part:"collection-item-field",validationMessage:a,textDirection:i,children:({labelId:_,describedBy:w})=>B.jsxs("div",{"data-part":"collection-item-control",role:"radiogroup","aria-labelledby":_,"aria-describedby":w,"aria-busy":p==="loading"||void 0,children:[p==="loading"?B.jsxs("div",{"data-part":"collection-loading",role:"status","aria-live":"polite",children:[B.jsx(tr,{size:"small"}),B.jsx(pe,{size:"small",secondary:!0,children:u.collectionItemsLoading})]}):null,p==="unavailable"?B.jsx(pe,{"data-part":"collection-unavailable",size:"small",secondary:!0,children:e.collectionId?u.collectionItemsUnavailable:u.collectionNotConfigured}):null,p==="error"?B.jsx(pe,{"data-part":"collection-error",size:"small",skin:"error",role:"alert",children:h?h.message:u.collectionLoadFailed}):null,p==="ready"&&f.length===0?B.jsx(pe,{"data-part":"empty-collection",size:"small",secondary:!0,children:u.noCollectionItems}):null,p==="ready"&&f.length>0?B.jsx("div",{"data-part":"collection-grid",children:f.map((E,C)=>{let S=m===C,x=S||m===null&&C===0;return B.jsxs("div",{ref:P=>{d.current[C]=P},"data-part":"collection-item",role:"radio","aria-label":E.label||E.key,"aria-checked":S,"aria-disabled":s||void 0,tabIndex:s||!x?-1:0,onClick:()=>{s||g(C)},onKeyDown:P=>{if(!s&&(P.key==="Enter"||P.key===" ")){P.preventDefault(),g(C);return}if(s||f.length===0)return;let D=y(P.key,C);D!==null&&(P.preventDefault(),g(D,!0))},children:[B.jsx("div",{"data-part":"collection-item-preview",children:B.jsx(Jw,{dataHook:`app-form-collection-item-${e.inputId}-${E.key}`,selected:S,disabled:s,noPadding:!0,width:"100%",height:"100%",image:B.jsx(lP,{item:E})})}),B.jsx(pe,{"data-part":"collection-item-label",size:"small",ellipsis:!0,children:E.label||E.key})]},E.key)})}):null]})})},uP=(e,t)=>e!==null&&Number.isInteger(e)&&e>=0&&e<t,cE=({field:e,value:t,onChange:r,variant:n,disabled:o=!1,validationMessage:s,textDirection:a="auto",authorText:i,messages:l})=>{let c=at(l),u=Nt(i,e),d=b.useRef([]),p=e.selectOptions??[],f=uP(t,p.length)?t:null,h=(g,y=!1)=>{var _;r(g),y&&((_=d.current[g])==null||_.focus())},m=(g,y)=>g==="Home"?0:g==="End"?p.length-1:g==="ArrowUp"?(y-1+p.length)%p.length:g==="ArrowDown"?(y+1)%p.length:g==="ArrowLeft"?a==="rtl"?(y+1)%p.length:(y-1+p.length)%p.length:g==="ArrowRight"?a==="rtl"?(y-1+p.length)%p.length:(y+1)%p.length:null;return B.jsx(Ge,{authorText:i,field:e,part:`${n}-selector-field`,validationMessage:s,textDirection:a,children:({labelId:g,describedBy:y})=>B.jsxs("div",{"data-part":"media-selector-control",role:"radiogroup","aria-labelledby":g,"aria-describedby":y,children:[p.length>0?B.jsx("div",{"data-part":"selector-grid",children:p.map((_,w)=>{let E=w+1,C=f===w,S=C||f===null&&w===0;return B.jsx("div",{ref:x=>{d.current[w]=x},"data-part":"selector-item",role:"radio","aria-label":c.optionLabel(u,E),"aria-checked":C,"aria-disabled":o||void 0,tabIndex:o||!S?-1:0,onClick:()=>{o||h(w)},onKeyDown:x=>{if(!o&&(x.key==="Enter"||x.key===" ")){x.preventDefault(),h(w);return}if(o||p.length===0)return;let P=m(x.key,w);P!==null&&(x.preventDefault(),h(P,!0))},children:B.jsx(Jw,{dataHook:`app-form-${n}-selector-item-${e.inputId}-${w}`,selected:C,disabled:o,noPadding:!0,width:"100%",height:"100%",image:n==="image"?B.jsx(Ln,{src:_,alt:"",fit:"cover",width:"100%",height:"100%"}
46):B.jsx("video",{src:_,muted:!0,loop:!0,autoPlay:!0,playsInline:!0,"data-part":"video-preview","aria-hidden":"true"})})},`${_}-${w}`)})}):B.jsx(pe,{"data-part":"empty-selector",size:"small",secondary:!0,children:c.noOptions}),e.allowUpload?B.jsx(pe,{"data-part":"selector-upload-unavailable",size:"small",secondary:!0,children:c.optionUploadUnavailableForPublishedRuns}):null]})})},dP=e=>B.jsx(cE,{...e,variant:"image"}),fP=({field:e,value:t,onChange:r,uploadPort:n,onUploadError:o,disabled:s=!1,validationMessage:a,textDirection:i="auto",authorText:l,messages:c})=>{let u=at(c),d=Nt(l,e),p=b.useRef(null),{upload:f,uploading:h,uploadError:m}=Mf({messages:u,contextKey:`${e.inputId}\0${t}`,uploadPort:n,onUploaded:r,onUploadError:o}),g=s||h||!n,y=()=>{var w;g||((w=p.current)==null||w.click())},_=w=>{var C;let E=(C=w.target.files)==null?void 0:C[0];w.target.value="",E&&f(E)};return B.jsx(Ge,{authorText:l,field:e,part:"image-field",validationMessage:a,textDirection:i,children:({id:w,describedBy:E,status:C})=>B.jsxs("div",{"data-part":"media-control",children:[B.jsx(Zs,{imageUrl:t,fit:"contain",height:218,disabled:g,status:h?"loading":C,showRemoveButton:!1,showUpdateButton:!0,onAddImage:y,onUpdateImage:y,addImageInfo:n?u.addImage:u.uploadUnavailable,updateImageInfo:n?u.replaceImage:u.uploadUnavailable,updateButtonAriaLabel:u.replaceField(d),imageProps:{alt:d},dataHook:`app-form-image-field-${e.inputId}`}),B.jsx("input",{ref:p,id:w,name:e.inputId,"data-part":"file-input",type:"file",accept:n==null?void 0:n.accept,disabled:g,required:!e.optional&&!t,"aria-describedby":E,"aria-invalid":a?"true":void 0,"aria-label":u.uploadField(d),onChange:_}),B.jsx($f,{messages:u,available:!!n,uploading:h,uploadError:m})]})})},pP=({field:e,value:t,onChange:r,disabled:n=!1,placeholder:o,validationMessage:s,textDirection:a="auto",authorText:i,messages:l})=>B.jsx(Ge,{authorText:i,field:e,part:"number-field",validationMessage:s,textDirection:a,children:({id:c,describedBy:u,status:d})=>B.jsx(eE,{id:c,name:e.inputId,value:t??"",onChange:(p,f)=>{(p!==null||f.trim()==="")&&r(p)},onInvalid:()=>{},placeholder:o,disabled:n,required:!e.optional,ariaDescribedby:u,status:d,rtl:a==="rtl",size:"small",dataHook:`app-form-number-field-${e.inputId}`})}),hP=({field:e,value:t,onChange:r,disabled:n=!1,placeholder:o,validationMessage:s,textDirection:a="auto",authorText:i,messages:l})=>B.jsx(Ge,{authorText:i,field:e,part:"text-field",validationMessage:s,textDirection:a,children:({id:c,describedBy:u,status:d})=>B.jsx(_w,{ariaInvalid:s?"true":void 0,id:c,name:e.inputId,value:t,onChange:p=>r(p.target.value),placeholder:o,disabled:n,required:!e.optional,ariaDescribedby:u,status:d,dir:a,size:"small",autoGrow:!0,minRowsAutoGrow:3,maxRowsAutoGrow:10,dataHook:`app-form-text-field-${e.inputId}`})}),mP=({field:e,value:t,onChange:r,uploadPort:n,onUploadError:o,disabled:s=!1,validationMessage:a,textDirection:i="auto",authorText:l,messages:c})=>{let u=at(c),d=Nt(l,e),p=b.useRef(null),{upload:f,uploading:h,uploadError:m}=Mf({messages:u,contextKey:`${e.inputId}\0${t}`,uploadPort:n,onUploaded:r,onUploadError:o}),g=s||h||!n,y=_=>{var E;let w=(E=_.target.files)==null?void 0:E[0];_.target.value="",w&&f(w)};return B.jsx(Ge,{authorText:l,field:e,part:"video-field",validationMessage:a,textDirection:i,children:({id:_,describedBy:w})=>B.jsxs("div",{"data-part":"media-control",children:[t?B.jsx("video",{"data-part":"video-preview",src:t,controls:!0,"aria-label":u.fieldPreview(d)}):B.jsx("div",{"data-part":"empty-media-preview",children:B.jsx(pe,{size:"small",secondary:!0,children:u.noVideoSelected})}),B.jsx(Pr,{dataHook:"video-upload-actions",gap:"SP2",verticalAlign:"middle",children:B.jsx(rT,{size:"small",priority:"secondary",disabled:g,onClick:()=>{var E;return(E=p.current)==null?void 0:E.click()},children:t?u.replaceVideo:u.uploadVideo})}),B.jsx("input",{ref:p,id:_,name:e.inputId,"data-part":"file-input",type:"file",accept:n==null?void 0:n.accept,disabled:g,required:!e.optional&&!t,"aria-describedby":w,"aria-invalid":a?"true":void 0,"aria-label":u.uploadField(d),onChange:y}),B.jsx($f,{messages:u,available:!!n,uploading:h,uploadError:m})]})})},Jo=e=>typeof e=="string"?e:"",vP=e=>{if(typeof e=="number")return Number.isFinite(e)?e:null;if(typeof e!="string"||e.trim()==="")return null;let t=Number(e);return Number.isFinite(t)?t:null},n0=({field:e,validationMessage:t,textDirection:r,authorText:n,messages:o})=>{let s=at(o);return B.jsx(Ge,{authorText:n,field:e,part:"unsupported-field",validationMessage:t,textDirection:r,children:()=>B.jsx(pe,{"data-part":"unsupported-message",size:"small",skin:"error",children:s.unsupportedScalarField(e.kind,String(e.dataType))})})},gP=({field:e,value:t,onChange:r,mediaUploadPort:n,onUploadError:o,disabled:s,placeholder:a,val
46idationMessage:i,textDirection:l,authorText:c,messages:u})=>{let d={field:e,disabled:s,validationMessage:i,textDirection:l,authorText:c,messages:u};if(e.kind==="color")return B.jsx(rP,{...d,value:Jo(t),onChange:r,placeholder:a});if(e.kind!=="primitive")return B.jsx(n0,{authorText:c,messages:u,field:e,validationMessage:i,textDirection:l});switch(String(e.dataType)){case"NUMBER":return B.jsx(pP,{...d,value:vP(t),onChange:r,placeholder:a});case"IMAGE":return B.jsx(fP,{...d,value:Jo(t),onChange:r,uploadPort:n,onUploadError:o});case"VIDEO":return B.jsx(mP,{...d,value:Jo(t),onChange:r,uploadPort:n,onUploadError:o});case"BOOLEAN":case"TEXT":return B.jsx(hP,{...d,value:Jo(t),onChange:r,placeholder:a});default:return B.jsx(n0,{authorText:c,messages:u,field:e,validationMessage:i,textDirection:l})}},o0=(e,t)=>e!==null&&Number.isInteger(e)&&e>=0&&e<t,bP=({field:e,value:t,onChange:r,disabled:n=!1,placeholder:o,validationMessage:s,textDirection:a="auto",authorText:i,messages:l})=>{let c=at(l);Nt(i,e);let u=e.selectOptions??[],d=o0(t,u.length)?t:null,p=(h,m)=>W3(i,e.inputId,m,h),f=u.map((h,m)=>my({id:String(m),title:p(h,m),label:p(h,m)}));return B.jsx(Ge,{authorText:i,field:e,part:"text-selector-field",validationMessage:s,textDirection:a,children:({id:h,describedBy:m,status:g})=>B.jsx("div",{"data-part":"selector-control",children:u.length>0?B.jsx(Yk,{id:h,name:e.inputId,dataHook:`app-form-text-selector-field-${e.inputId}`,selectedId:d===null?void 0:String(d),options:f,valueParser:y=>y.label??y.title,onSelect:y=>{let _=Number(y.id);o0(_,u.length)&&r(_)},placeholder:o??c.selectAnOption,disabled:n,required:!e.optional,status:g,ariaDescribedby:m,disableEditing:!0,popoverProps:{appendTo:"viewport",dynamicWidth:!0},rtl:a==="rtl"}):B.jsx(pe,{"data-part":"empty-selector",size:"small",secondary:!0,children:c.noOptions})})})},yP=e=>B.jsx(cE,{...e,variant:"video"}),_P=e=>e.selectorDataType?e.selectorDataType:String(e.dataType)==="IMAGE"?"image":String(e.dataType)==="VIDEO"?"video":"text",wP=({field:e,validationMessage:t,textDirection:r,authorText:n,messages:o})=>B.jsx(Ge,{authorText:n,field:e,part:"unsupported-selector-field",validationMessage:t,textDirection:r,children:()=>B.jsx(pe,{"data-part":"unsupported-message",size:"small",skin:"error",children:at(o).unsupportedSelectorField(e.kind)})}),EP=({field:e,value:t,onChange:r,disabled:n,placeholder:o,validationMessage:s,textDirection:a,authorText:i,messages:l})=>{if(e.kind!=="selector")return B.jsx(wP,{authorText:i,messages:l,field:e,validationMessage:s,textDirection:a});let c={field:e,value:t,onChange:r,disabled:n,validationMessage:s,textDirection:a,authorText:i,messages:l};switch(_P(e)){case"image":return B.jsx(dP,{...c});case"video":return B.jsx(yP,{...c});case"text":return B.jsx(bP,{...c,placeholder:o})}};let s0=0;const uE=e=>{var r,n;let t;try{t=(n=(r=globalThis.crypto)==null?void 0:r.randomUUID)==null?void 0:n.call(r)}catch{}return t?`${e}-${t}`:(s0+=1,`${e}-${Date.now().toString(36)}-${s0.toString(36)}`)},CP=()=>uE("event"),xP=()=>uE("operation"),Td=(e,t)=>{if(e)try{e.onEvent({...t,eventVersion:1,eventId:CP(),consumerId:e.consumerId,...e.correlationId===void 0?{}:{correlationId:e.correlationId},occurredAt:new Date().toISOString()})}catch{}},IP=({field:e,value:t,onChange:r,validationMessage:n,disabled:o,textDirection:s,mediaUploadPort:a,onUploadError:i,itemsProvider:l,onItemsLoadError:c,authorText:u,messages:d})=>{let p={field:e,disabled:o,validationMessage:n,textDirection:s,authorText:u,messages:d};return e.kind==="array"?B.jsx(tP,{...p,mediaUploadPort:a,value:Array.isArray(t)?t:[],onChange:r,onUploadError:i}):e.kind==="selector"?B.jsx(EP,{...p,value:typeof t=="number"?t:null,onChange:r}):e.kind==="collection-item"?B.jsx(cP,{...p,itemsProvider:l,value:typeof t=="string"&&t?t:null,onChange:r,onLoadError:c}):B.jsx(gP,{...p,mediaUploadPort:a,value:t,onChange:r,onUploadError:i})},SP=({appId:e,loadDefinition:t,onDefinitionLoaded:r,onLoadError:n,telemetry:o})=>{let[s,a]=b.useState({status:"loading",appId:e}),i=b.useRef(t);i.current=t;let l=b.useRef({onDefinitionLoaded:r,onLoadError:n});l.current={onDefinitionLoaded:r,onLoadError:n};let c=b.useRef(o);return c.current=o,b.useEffect(()=>{let u=!1,d=xP(),p=Date.now();return a({status:"loading",appId:e}),i.current(e).then(f=>{var h,m,g,y;if(!u){if(f.status==="ok"){a({status:"loaded",appId:e,definition:f.definition,operationId:d,startedAt:p}),(m=(h=l.current).onDefinitionLoaded)==null||m.call(h,f);return}a({status:"failed",appId:e,failure:f}),Td(c.current,{name:"app-form.load-failed",operationId:d,appId:e,outcome:f.status,durationMs:Math.max(0,Date.now()-p)}),(y=(g=l.current).onLoadError)==null||y.call(g,f)}}).catch(f=>{var m,g;if(u)return;let h={status:"error",message:f instanceof Error?f.message:String(f)};a({status:"failed",appId:e,failure:h}),Td(c.current,{name:"app-form.load-failed",operationId:d,appId:e,outcome:h.status,durationMs:Math.max(0,Date.now()-p)}),(g=(m=l.current).onLoadError)==null||g.call(m,h)}),()=>{u=!0}},[e]),s.appId===e?s:{status:"loading",appId:e}},OP=e=>e.fields.reduce((t,r)=>(t[r.kind]=(t[r.kind]??0)+1,t),{}),RP=(e,t)=>
46e.status==="not-found"?t.appNotFound:e.status==="no-live-version"?t.appHasNoLiveVersion:e.status==="forbidden"?t.appForbidden:e.message||t.appLoadFailed,TP=({appId:e,loadDefinition:t,values:r,onValuesChange:n,validationMessages:o={},disabled:s=!1,textDirection:a,mediaUploadPort:i,onUploadError:l,itemsProvider:c,onItemsLoadError:u,onDefinitionLoaded:d,onLoadError:p,telemetry:f,authorText:h,messages:m})=>{let g=at(m),y=SP({appId:e,loadDefinition:t,onDefinitionLoaded:d,onLoadError:p,telemetry:f}),_=b.useRef(null);b.useEffect(()=>{if(!f||y.status!=="loaded")return;let x=`${e}:${y.definition.definitionVersion}`;_.current!==x&&(_.current=x,Td(f,{name:"app-form.rendered",operationId:y.operationId,appId:e,definitionVersion:y.definition.definitionVersion,fieldCount:y.definition.fields.length,fieldKindCounts:OP(y.definition),durationMs:Math.max(0,Date.now()-y.startedAt)}))},[e,y,f]);let w=(x,P)=>{n({...r,[x]:P})};if(y.status==="loading")return B.jsx("div",{"data-nautilus-embed-app-form-root":"","data-part":"form-loading",role:"status",children:B.jsx(tr,{size:"small",text:g.formLoading})});if(y.status==="failed")return B.jsx("div",{"data-nautilus-embed-app-form-root":"","data-part":"form-error",role:"alert",children:B.jsx(pe,{size:"small",skin:"error",children:RP(y.failure,g)})});let{definition:E}=y,C=E.appId||e,S=h?{appId:C,resolve:h}:void 0;return B.jsxs("div",{"data-nautilus-embed-app-form-root":"","data-part":"form",dir:a,children:[B.jsxs("div",{"data-part":"form-heading",children:[B.jsx(pe,{size:"medium",weight:"bold",children:vo(h,{appId:C,part:"appName",literal:E.name})}),E.description?B.jsx(pe,{secondary:!0,size:"small",children:vo(h,{appId:C,part:"appDescription",literal:E.description})}):null]}),B.jsx("div",{"data-part":"form-fields",children:E.fields.map(x=>B.jsx(IP,{field:x,value:r[x.inputId]??null,onChange:P=>w(x.inputId,P),validationMessage:o[x.inputId],disabled:s,textDirection:a,mediaUploadPort:i,onUploadError:l,itemsProvider:c,onItemsLoadError:u,authorText:S,messages:m},x.inputId))})]})},zP=({appKey:e,accept:t,values:r,onValuesChange:n,disabled:o,uploadFile:s,creditCost:a,promptInvalid:i,onDefinitionLoaded:l})=>{var Q;const c=DE(),[u,d]=b.useState({}),[p,f]=b.useState({}),h=b.useCallback(()=>c.fetchQuery(NE(e)),[e,c]),m=b.useMemo(()=>({accept:t,upload:s??AP}),[t,s]),g=b.useRef(null),y=b.useRef(r);b.useEffect(()=>{y.current=r},[r]);const _=b.useRef(0);b.useEffect(()=>()=>{_.current+=1},[e]);const w=b.useRef("append"),[E,C]=b.useState(null),[S,x]=b.useState([]),P=b.useRef(0),D=b.useRef({}),[L,O]=b.useState([]);b.useEffect(()=>{const F=g.current;for(const z of(F==null?void 0:F.querySelectorAll(BP))??[])z.multiple=!0;for(const[z,ee]of LP)for(const te of(F==null?void 0:F.querySelectorAll(z))??[])te.accept=ee;for(const z of(F==null?void 0:F.querySelectorAll(MP))??[])z.controls=!1,z.muted=!0});const[A,T]=b.useState([]),[R,N]=b.useState(null);b.useEffect(()=>{const F=g.current;if(!F)return;const z=()=>{const te=[...F.querySelectorAll(i0)].filter(oe=>!!y.current[oe.name]).flatMap(oe=>{var ue;const fe=oe.closest($P),ne=(ue=fe==null?void 0:fe.querySelector("[data-hook='update-image']"))==null?void 0:ue.closest("[data-hook='image-viewer-overlay'] > *");if(ne)return[{inputId:oe.name,container:ne,withReplace:!0}];const re=fe==null?void 0:fe.querySelector("[data-hook='video-upload-actions']");return re?[{inputId:oe.name,container:re,withReplace:!1}]:[]});O(oe=>oe.length===te.length&&oe.every((fe,ne)=>fe.inputId===te[ne].inputId&&fe.container===te[ne].container&&fe.withReplace===te[ne].withReplace)?oe:te);const ie=F.querySelector(DP);N(oe=>oe===ie?oe:ie);const le=[...F.querySelectorAll(NP)];T(oe=>oe.length===le.length&&oe.every((fe,ne)=>fe===le[ne])?oe:le)};z();const ee=new MutationObserver(z);return ee.observe(F,{childList:!0,subtree:!0}),()=>ee.disconnect()},[r,u]);const W=LE[e],[q,H]=b.useState(null),I=W?(q==null?void 0:q.appKey)===e?q.inputId:((Q=W.find(F=>PP(r[F.inputId])))==null?void 0:Q.inputId)??W[0].inputId:null,[k,$]=b.useState(null),G=b.useRef(I);b.useEffect(()=>{G.current=I},[I]),b.useEffect(()=>{const F=g.current;if(!F||!W){$(null);return}const z=()=>{var ie;let te=null;for(const{inputId:le}of W){const oe=(ie=F.querySelector(`input[name="${le}"]`))==null?void 0:ie.closest(kP);if(!oe)continue;const fe=le===I;oe.hasAttribute(a0)===fe&&oe.toggleAttribute(a0,!fe),fe&&(te=oe)}$(te)};z();const ee=new MutationObserver(z);return ee.observe(F,{childList:!0,subtree:!0}),()=>ee.disconnect()},[W,I]);const Z=F=>{H({appKey:e,inputId:F}),G.current=F;const z=new Set((W??[]).map(ie=>ie.inputId).filter(ie=>ie!==F));x(ie=>ie.filter(le=>!z.has(le.inputId)));const ee={...y.current};let te=!1;for(const ie of z)ie in ee&&(delete ee[ie],te=!0);te&&(y.current=ee,n(ee))},K=F=>{const z=F.target;z.closest("[data-part='replace-array-item']")?w.current="replace":z.closest("[data-part='add-array-item']")&&(w.current="append")},X=async(F,z,ee,te)=>{C(null);
46const ie=u[F]??1/0,le=y.current[F],oe=D.current[F]??0,fe=Math.max(0,ie-(Array.isArray(le)?le.length:0)-oe),ne=ee.filter(ve=>ve.type.startsWith(`${z}/`)),re=ne.slice(0,fe),ue=P.current++;D.current[F]=oe+re.length,re.length>0&&x(ve=>[...ve,{id:ue,inputId:F,container:te,count:re.length}]);const de=_.current,ye={appKey:e,inputId:F,kind:z,fileCount:re.length};re.length>0&&qf({event:"generation_input_upload_start",level:"INFO",message:`Uploading ${re.length} ${z} file(s)`,fields:ye});const Se=await Promise.allSettled(re.map(ve=>m.upload(ve)));if(D.current[F]=Math.max(0,(D.current[F]??0)-re.length),re.length>0){const ve=Se.flatMap(Ye=>Ye.status==="rejected"?[Ye.reason instanceof Error?Ye.reason.name:typeof Ye.reason]:[]);qf(ve.length>0?{event:"generation_input_upload_error",level:"ERROR",message:`${ve.length} of ${re.length} ${z} file(s) failed to upload`,fields:{...ye,failedCount:ve.length,errorName:ve[0]}}:{event:"generation_input_upload_success",level:"INFO",message:`Uploaded ${re.length} ${z} file(s)`,fields:ye})}if(de!==_.current||(x(ve=>ve.filter(Ye=>Ye.id!==ue)),W!=null&&W.some(ve=>ve.inputId===F)&&G.current!==F))return;const Le=Se.flatMap(ve=>ve.status==="fulfilled"?[ve.value.url]:[]),Ie=y.current[F],Me=Array.isArray(Ie)?Ie:[];if(Le.length>0){const ve={...y.current,[F]:[...Me,...Le].slice(0,ie)};y.current=ve,n(ve)}const Ue=[ee.length>ne.length&&`${ee.length-ne.length} ${ee.length-ne.length===1?"file is":"files are"} not ${z==="image"?"an image":"a video"}.`,ne.length>re.length&&`Only ${fe} more fit â ${ne.length-re.length} not added.`,Le.length<re.length&&`${re.length-Le.length} of ${re.length} couldn't be uploaded.`].filter(Boolean);C(Ue.length>0?Ue.join(" "):null)},J=F=>{var z,ee;(ee=[...((z=g.current)==null?void 0:z.querySelectorAll(i0))??[]].find(te=>te.name===F))==null||ee.click()},M=F=>{const{[F]:z,...ee}=y.current;n(ee)},j=F=>{var le,oe,fe;const z=F.target,ee=z.type==="file"?Array.from(z.files??[]):[];if(ee.length===0)return;const te=(le=z.closest)==null?void 0:le.call(z,Ff);if(!te||w.current!=="append"){const ne=te??((oe=z.closest)==null?void 0:oe.call(z,dE));if(!ne)return;const re=(fe=ne.getAttribute("data-part"))!=null&&fe.startsWith("video")?"video":"image";if(ee.every(ue=>ue.type.startsWith(`${re}/`))){C(null);return}F.stopPropagation(),z.value="",C(`That file is not ${re==="image"?"an image":"a video"}.`);return}F.stopPropagation(),z.value="";const ie=te.getAttribute("data-part")==="video-array-field"?"video":"image";X(z.name,ie,ee,te.querySelector(FP))},U=b.useCallback(F=>{const z=r[F],ee=S.filter(te=>te.inputId===F).reduce((te,ie)=>te+ie.count,0);return(Array.isArray(z)?z.length:0)+ee},[r,S]),V=b.useCallback(({part:F,inputId:z,literal:ee})=>{if(!(F!=="label"||!z||!u[z]))return`${ee} (${U(z)} / ${u[z]})`},[u,U]),Y=b.useMemo(()=>({...FE,addUpToNamedItems:(F,z)=>{const ee=p[z];return BE(F,ee?U(ee):0,z)}}),[p,U]);return B.jsxs(YT,{theme:{className:"odeditor"},contextClassName:"odeditor",children:[B.jsx("div",{ref:g,"data-brik-prompt-invalid":i?"":void 0,onClickCapture:K,onChangeCapture:j,children:B.jsx(TP,{appId:e,loadDefinition:h,values:r,onValuesChange:n,mediaUploadPort:m,disabled:o,messages:Y,authorText:V,onDefinitionLoaded:F=>{d(qP(F.definition.fields)),f(HP(F.definition.fields)),l==null||l(F.definition.fields)}})}),W&&k&&I?Zr.createPortal(B.jsxs("div",{"data-brik-reference-choice":"",className:"flex w-fit items-start gap-[6px]",children:[B.jsx($E,{options:W.map(({inputId:F,label:z})=>({id:F,label:z})),value:I,onChange:F=>{!o&&F!==I&&Z(F)},size:"md",fit:"content",getOptionTestId:$t.referenceChoice}),B.jsx("svg",{"aria-hidden":!0,"data-hook":"formfield-asterisk",viewBox:"0 0 7 7",width:"7",height:"7",fill:"currentColor",className:"shrink-0 text-[color:var(--wds-color-text-primary,var(--wsr-color-B10,#116DFF))]",children:B.jsx("path",{d:"M1.809 7 1 6.397 2.74 3.94 0 3.026l.31-.974L3 2.948V0h1v2.976l2.69-.924.31.975-2.719.934L6 6.397 5.19 7 3.503 4.609 1.809 7Z"})})]}),k,"reference-choice"):null,S.map(F=>F.container?Zr.createPortal(Array.from({length:F.count},(z,ee)=>B.jsx("span",{"aria-hidden":!0,"data-brik-upload-placeholder":"","data-testid":$t.uploadPlaceholder,className:"block size-[96px] animate-pulse border border-[var(--product-grey-02)] bg-[var(--product-grey-01)] motion-reduce:animate-none"},ee)),F.container,String(F.id)):null),o?null:L.map(({inputId:F,container:z,withReplace:ee})=>Zr.createPortal(B.jsxs(B.Fragment,{children:[ee?B.jsx(No,{size:"medium",priority:"secondary",icon:B.jsx(Uf,{}),tooltip:"Replace","data-brik-action":"","aria-label":"Replace","data-testid":$t.singleReplace(F),onClick:()=>J(F)}):null,B.jsx(No,{size:"medium",priority:"secondary",icon:B.jsx(jf,{}),tooltip:"Remove","data-brik-action":"","aria-label":"Remove","data-testid":$t.singleRemove(F),className:l0,onClick:()=>M(F)})]}),z,`remove-${F}`)),o?null:A.map((F,z)=>Zr.createPortal(B.jsxs(B.Fragment,{children:[B.jsx(No,{size:"medium",priority:"secondary",icon:B.jsx(Uf,{}),tooltip:"Replace","data-brik-action":"","aria-label":"Replace","data-testid":$t.tileReplace(z),onClick:()=>c0(F,"replace-array-item")}),B.jsx(No,{size:"medium",priority:"secondary",icon:B.jsx(jf,{}),tooltip:"Remove","data-brik-action":"","aria-label":"Remove","data-testid":$t.tileRemove(z),className:l0,onClick:()=>c0(F,"delete-array-item")})]}),F,`tile-${z}`)),R&&a?Zr.createPortal(B.jsxs("span",{"data-brik-credits":"","data-testid":$t.creditCost,className:"shrink-0 whitespace-nowrap text-product-tiny text-[var(--product-grey-05)]",children:[a," ",a===1?"Credit":"Credits"]}),R,"credit-cost"):null,E?B.jsx("p",{role:"alert","data-testid":$t.bulkUploadError,className:"text-product-tiny mt-[6px] text-[var(--product-red-03)]",children:E}):null]})};async function AP(e){const{file_url:t}=await ME(e);return{url:t}}const kP="[data-part$='-field']",a0="data-brik-unchosen-reference";function PP(e){return Array.isArray(e)&&e.length>0}const Ff="[data-part='image-array-field'], [data-part='video-array-field']",dE="[data-part='image-field'], [data-part='video-field']",i0=dE.split(", ").map(e=>`${e} input[type='file']`).join(", "),DP="[data-part='form-heading']",NP=Ff.split(", ").map(e=>`${e} [data-part='media-array-actions']`).join(", "),l0="[&>button:hover]:border-[var(--product-red-03)] [&>button:hover]:text-[var(--product-red-03)]";function c0(e,t){var r;
46(r=e.querySelector(`[data-part='${t}'] button`))==null||r.click()}const LP=[["[data-part='image-array-field'] input[type='file']","image/*"],["[data-part='image-field'] input[type='file']","image/*"],["[data-part='video-array-field'] input[type='file']","video/*"],["[data-part='video-field'] input[type='file']","video/*"]],$P="[data-part='media-control']",MP="[data-part='video-array-field'] [data-part='media-array-item'] video",FP="[data-part='media-array-control']",BP=Ff.split(", ").map(e=>`${e} input[type='file']`).join(", "),fE=new Set(["IMAGE","VIDEO"]);function HP(e){var r;const t={};for(const n of e)n.itemCount&&fE.has(String(n.dataType))&&(t[r=String(n.dataType).toLowerCase()]??(t[r]=[])).push(n.inputId);return Object.fromEntries(Object.entries(t).flatMap(([n,o])=>o.length===1?[[n,o[0]]]:[]))}function qP(e){return Object.fromEntries(e.flatMap(t=>t.itemCount&&fE.has(String(t.dataType))?[[t.inputId,t.itemCount.max]]:[]))}export{zP as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.