@bynder/compact-view 3.2.2 → 3.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components.d.ts +6 -4
- package/components.js +174 -4
- package/index.js +174 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* bynder-compactview v3.2.
|
|
3
|
+
* bynder-compactview v3.2.3
|
|
4
4
|
* (c) 2022 Bynder
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import e,{createContext as t,useState as n,useMemo as r,useContext as o,useEffect as i,useRef as a,useLayoutEffect as c,createElement as l,useCallback as s,forwardRef as u,cloneElement as d,useReducer as p,Component as f}from"react";import m,{createPortal as h}from"react-dom";var g="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},v=function(e){return e&&e.Math==Math&&e},y=v("object"==typeof globalThis&&globalThis)||v("object"==typeof window&&window)||v("object"==typeof self&&self)||v("object"==typeof g&&g)||Function("return this")(),b={},w=function(e){try{return!!e()}catch(e){return!0}},x=!w((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),E={},C={}.propertyIsEnumerable,k=Object.getOwnPropertyDescriptor,S=k&&!C.call({1:2},1);E.f=S?function(e){var t=k(this,e);return!!t&&t.enumerable}:C;var _=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},I={}.toString,T=function(e){return I.call(e).slice(8,-1)},B=T,z="".split,P=w((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==B(e)?z.call(e,""):Object(e)}:Object,N=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},D=P,O=N,A=function(e){return D(O(e))},R=function(e){return"object"==typeof e?null!==e:"function"==typeof e},L=R,F=function(e,t){if(!L(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!L(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!L(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!L(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},M={}.hasOwnProperty,j=function(e,t){return M.call(e,t)},H=R,U=y.document,V=H(U)&&H(U.createElement),$=function(e){return V?U.createElement(e):{}},W=$,Y=!x&&!w((function(){return 7!=Object.defineProperty(W("div"),"a",{get:function(){return 7}}).a})),G=x,q=E,K=_,X=A,Z=F,J=j,Q=Y,ee=Object.getOwnPropertyDescriptor;b.f=G?ee:function(e,t){if(e=X(e),t=Z(t,!0),Q)try{return ee(e,t)}catch(e){}if(J(e,t))return K(!q.f.call(e,t),e[t])};var te={},ne=R,re=function(e){if(!ne(e))throw TypeError(String(e)+" is not an object");return e},oe=x,ie=Y,ae=re,ce=F,le=Object.defineProperty;te.f=oe?le:function(e,t,n){if(ae(e),t=ce(t,!0),ae(n),ie)try{return le(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var se=te,ue=_,de=x?function(e,t,n){return se.f(e,t,ue(1,n))}:function(e,t,n){return e[t]=n,e},pe={exports:{}},fe=y,me=de,he=function(e,t){try{me(fe,e,t)}catch(n){fe[e]=t}return t},ge=he,ve=y["__core-js_shared__"]||ge("__core-js_shared__",{}),ye=ve,be=Function.toString;"function"!=typeof ye.inspectSource&&(ye.inspectSource=function(e){return be.call(e)});var we=ye.inspectSource,xe=we,Ee=y.WeakMap,Ce="function"==typeof Ee&&/native code/.test(xe(Ee)),ke={exports:{}},Se=ve;(ke.exports=function(e,t){return Se[e]||(Se[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"});var _e,Ie,Te,Be=0,ze=Math.random(),Pe=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++Be+ze).toString(36)},Ne=ke.exports,De=Pe,Oe=Ne("keys"),Ae=function(e){return Oe[e]||(Oe[e]=De(e))},Re={},Le=Ce,Fe=R,Me=de,je=j,He=Ae,Ue=Re,Ve=y.WeakMap;if(Le){var $e=new Ve,We=$e.get,Ye=$e.has,Ge=$e.set;_e=function(e,t){return Ge.call($e,e,t),t},Ie=function(e){return We.call($e,e)||{}},Te=function(e){return Ye.call($e,e)}}else{var qe=He("state");Ue[qe]=!0,_e=function(e,t){return Me(e,qe,t),t},Ie=function(e){return je(e,qe)?e[qe]:{}},Te=function(e){return je(e,qe)}}var Ke={set:_e,get:Ie,has:Te,enforce:function(e){return Te(e)?Ie(e):_e(e,{})},getterFor:function(e){return function(t){var n;if(!Fe(t)||(n=Ie(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},Xe=y,Ze=de,Je=j,Qe=he,et=we,tt=Ke.get,nt=Ke.enforce,rt=String(String).split("String");(pe.exports=function(e,t,n,r){var o=!!r&&!!r.unsafe,i=!!r&&!!r.enumerable,a=!!r&&!!r.noTargetGet;"function"==typeof n&&("string"!=typeof t||Je(n,"name")||Ze(n,"name",t),nt(n).source=rt.join("string"==typeof t?t:"")),e!==Xe?(o?!a&&e[t]&&(i=!0):delete e[t],i?e[t]=n:Ze(e,t,n)):i?e[t]=n:Qe(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&tt(this).source||et(this)}));var ot=y,it=y,at=function(e){return"function"==typeof e?e:void 0},ct=function(e,t){return arguments.length<2?at(ot[e])||at(it[e]):ot[e]&&ot[e][t]||it[e]&&it[e][t]},lt={},st=Math.ceil,ut=Math.floor,dt=function(e){return isNaN(e=+e)?0:(e>0?ut:st)(e)},pt=dt,ft=Math.min,mt=function(e){return e>0?ft(pt(e),9007199254740991):0},ht=dt,gt=Math.max,vt=Math.min,yt=A,bt=mt,wt=function(e){return function(t,n,r){var o,i=yt(t),a=bt(i.length),c=function(e,t){var n=ht(e);return n<0?gt(n+t,0):vt(n,t)}(r,a);if(e&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((e||c in i)&&i[c]===n)return e||c||0;return!e&&-1}},xt={includes:wt(!0),indexOf:wt(!1)},Et=j,Ct=A,kt=xt.indexOf,St=Re,_t=function(e,t){var n,r=Ct(e),o=0,i=[];for(n in r)!Et(St,n)&&Et(r,n)&&i.push(n);for(;t.length>o;)Et(r,n=t[o++])&&(~kt(i,n)||i.push(n));return i},It=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Tt=_t,Bt=It.concat("length","prototype");lt.f=Object.getOwnPropertyNames||function(e){return Tt(e,Bt)};var zt={};zt.f=Object.getOwnPropertySymbols;var Pt,Nt=lt,Dt=zt,Ot=re,At=ct("Reflect","ownKeys")||function(e){var t=Nt.f(Ot(e)),n=Dt.f;return n?t.concat(n(e)):t},Rt=j,Lt=At,Ft=b,Mt=te,jt=w,Ht=/#|\.prototype\./,Ut=function(e,t){var n=$t[Vt(e)];return n==Yt||n!=Wt&&("function"==typeof t?jt(t):!!t)},Vt=Ut.normalize=function(e){return String(e).replace(Ht,".").toLowerCase()},$t=Ut.data={},Wt=Ut.NATIVE="N",Yt=Ut.POLYFILL="P",Gt=Ut,qt=y,Kt=b.f,Xt=de,Zt=pe.exports,Jt=he,Qt=function(e,t){for(var n=Lt(t),r=Mt.f,o=Ft.f,i=0;i<n.length;i++){var a=n[i];Rt(e,a)||r(e,a,o(t,a))}},en=Gt,tn=function(e,t,n){if(function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function")}(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}},nn=N,rn=T,on=Array.isArray||function(e){return"Array"==rn(e)},an=w,cn=!!Object.getOwnPropertySymbols&&!an((function(){return!String(Symbol())})),ln=cn&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,sn=y,un=ke.exports,dn=j,pn=Pe,fn=cn,mn=ln,hn=un("wks"),gn=sn.Symbol,vn=mn?gn:gn&&gn.withoutSetter||pn,yn=function(e){return dn(hn,e)||(fn&&dn(gn,e)?hn[e]=gn[e]:hn[e]=vn("Symbol."+e)),hn[e]},bn=R,wn=on,xn=yn("species"),En=tn,Cn=P,kn=mt,Sn=function(e,t){var n;return wn(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!wn(n.prototype)?bn(n)&&null===(n=n[xn])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},_n=[].push,In=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=5==e||i;return function(c,l,s,u){for(var d,p,f=Object(nn(c)),m=Cn(f),h=En(l,s,3),g=kn(m.length),v=0,y=u||Sn,b=t?y(c,g):n?y(c,0):void 0;g>v;v++)if((a||v in m)&&(p=h(d=m[v],v,f),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return v;case 2:_n.call(b,d)}else if(o)return!1;return i?-1:r||o?o:b}},Tn={forEach:In(0),map:In(1),filter:In(2),some:In(3),every:In(4),find:In(5),findIndex:In(6)},Bn=_t,zn=It,Pn=Object.keys||function(e){return Bn(e,zn)},Nn=te,Dn=re,On=Pn,An=x?Object.defineProperties:function(e,t){Dn(e);for(var n,r=On(t),o=r.length,i=0;o>i;)Nn.f(e,n=r[i++],t[n]);return e},Rn=ct("document","documentElement"),Ln=re,Fn=An,Mn=It,jn=Re,Hn=Rn,Un=$,Vn=Ae("IE_PROTO"),$n=function(){},Wn=function(e){return"<script>"+e+"<\/script>"},Yn=function(){try{Pt=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;Yn=Pt?function(e){e.write(Wn("")),e.close();var t=e.parentWindow.Object;return e=null,t}(Pt):((t=Un("iframe")).style.display="none",Hn.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Wn("document.F=Object")),e.close(),e.F);for(var n=Mn.length;n--;)delete Yn.prototype[Mn[n]];return Yn()};jn[Vn]=!0;var Gn=Object.create||function(e,t){var n;return null!==e?($n.prototype=Ln(e),n=new $n,$n.prototype=null,n[Vn]=e):n=Yn(),void 0===t?n:Fn(n,t)},qn=Gn,Kn=te,Xn=yn("unscopables"),Zn=Array.prototype;null==Zn[Xn]&&Kn.f(Zn,Xn,{configurable:!0,value:qn(null)});var Jn,Qn=x,er=w,tr=j,nr=Object.defineProperty,rr={},or=function(e){throw e},ir=Tn.find,ar=!0,cr=function(e,t){if(tr(rr,e))return rr[e];t||(t={});var n=[][e],r=!!tr(t,"ACCESSORS")&&t.ACCESSORS,o=tr(t,0)?t[0]:or,i=tr(t,1)?t[1]:void 0;return rr[e]=!!n&&!er((function(){if(r&&!Qn)return!0;var e={length:-1};r?nr(e,1,{enumerable:!0,get:or}):e[1]=1,n.call(e,o,i)}))}("find");"find"in[]&&Array(1).find((function(){ar=!1})),function(e,t){var n,r,o,i,a,c=e.target,l=e.global,s=e.stat;if(n=l?qt:s?qt[c]||Jt(c,{}):(qt[c]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Kt(n,r))&&a.value:n[r],!en(l?r:c+(s?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Qt(i,o)}(e.sham||o&&o.sham)&&Xt(i,"sham",!0),Zt(n,r,i,e)}}({target:"Array",proto:!0,forced:ar||!cr},{find:function(e){return ir(this,e,arguments.length>1?arguments[1]:void 0)}}),Jn="find",Zn[Xn][Jn]=!0;var lr=y,sr=tn,ur=Function.call;function dr(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}sr(ur,lr.Array.prototype.find,void 0),function(){if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=window.document;n.prototype.THROTTLE_TIMEOUT=100,n.prototype.POLL_INTERVAL=null,n.prototype.USE_MUTATION_OBSERVER=!0,n.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},n.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},n.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},n.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},n.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]}))},n.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},n.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(r(window,"resize",this._checkForIntersections,!0),r(e,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},n.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,o(window,"resize",this._checkForIntersections,!0),o(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},n.prototype._checkForIntersections=function(){var e=this._rootIsInDom(),n=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(r){var o=r.element,a=i(o),c=this._rootContainsTarget(o),l=r.entry,s=e&&c&&this._computeTargetAndRootIntersection(o,n),u=r.entry=new t({time:window.performance&&performance.now&&performance.now(),target:o,boundingClientRect:a,rootBounds:n,intersectionRect:s});l?e&&c?this._hasCrossedThreshold(l,u)&&this._queuedEntries.push(u):l&&l.isIntersecting&&this._queuedEntries.push(u):this._queuedEntries.push(u)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},n.prototype._computeTargetAndRootIntersection=function(t,n){if("none"!=window.getComputedStyle(t).display){for(var r,o,a,l,s,u,d,p,f=i(t),m=c(t),h=!1;!h;){var g=null,v=1==m.nodeType?window.getComputedStyle(m):{};if("none"==v.display)return;if(m==this.root||m==e?(h=!0,g=n):m!=e.body&&m!=e.documentElement&&"visible"!=v.overflow&&(g=i(m)),g&&(r=g,o=f,void 0,void 0,void 0,void 0,void 0,void 0,a=Math.max(r.top,o.top),l=Math.min(r.bottom,o.bottom),s=Math.max(r.left,o.left),p=l-a,!(f=(d=(u=Math.min(r.right,o.right))-s)>=0&&p>=0&&{top:a,bottom:l,left:s,right:u,width:d,height:p})))break;m=c(m)}return f}},n.prototype._getRootRect=function(){var t;if(this.root)t=i(this.root);else{var n=e.documentElement,r=e.body;t={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(t)},n.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100})),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},n.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var o=0;o<this.thresholds.length;o++){var i=this.thresholds[o];if(i==n||i==r||i<n!=i<r)return!0}},n.prototype._rootIsInDom=function(){return!this.root||a(e,this.root)},n.prototype._rootContainsTarget=function(t){return a(this.root||e,t)},n.prototype._registerInstance=function(){},n.prototype._unregisterInstance=function(){},window.IntersectionObserver=n,window.IntersectionObserverEntry=t}function t(e){this.time=e.time,this.target=e.target,this.rootBounds=e.rootBounds,this.boundingClientRect=e.boundingClientRect,this.intersectionRect=e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0},this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,r=this.intersectionRect,o=r.width*r.height;this.intersectionRatio=n?Number((o/n).toFixed(4)):this.isIntersecting?1:0}function n(e,t){var n,r,o,i=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(i.root&&1!=i.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),r=this.THROTTLE_TIMEOUT,o=null,function(){o||(o=setTimeout((function(){n(),o=null}),r))}),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(i.rootMargin),this.thresholds=this._initThresholds(i.threshold),this.root=i.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" ")}function r(e,t,n,r){"function"==typeof e.addEventListener?e.addEventListener(t,n,r||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function o(e,t,n,r){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,r||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function i(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function a(e,t){for(var n=t;n;){if(n==e)return!0;n=c(n)}return!1}function c(e){var t=e.parentNode;return t&&11==t.nodeType&&t.host?t.host:t&&t.assignedSlot?t.assignedSlot.parentNode:t}}();var pr={};function fr(){return dr()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:pr}function mr(e,t,n){var r=n||fr(),o=r.__SENTRY__=r.__SENTRY__||{};return o[e]||(o[e]=t())}var hr=Object.prototype.toString;function gr(e){switch(hr.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Sr(e,Error)}}function vr(e,t){return hr.call(e)===`[object ${t}]`}function yr(e){return vr(e,"ErrorEvent")}function br(e){return vr(e,"DOMError")}function wr(e){return vr(e,"String")}function xr(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function Er(e){return vr(e,"Object")}function Cr(e){return"undefined"!=typeof Event&&Sr(e,Event)}function kr(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function Sr(e,t){try{return e instanceof t}catch(e){return!1}}function _r(e,t){try{let o=e;var n=[];let i=0,a=0;var r=" > ".length;let c;for(;o&&i++<5&&(c=Ir(o,t),!("html"===c||i>1&&a+n.length*r+c.length>=80));)n.push(c),a+=c.length,o=o.parentNode;return n.reverse().join(" > ")}catch(e){return"<unknown>"}}function Ir(e,t){var n=e,r=[];let o,i,a,c,l;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());var s=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(s&&s.length)s.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),o=n.className,o&&wr(o))for(i=o.split(/\s+/),l=0;l<i.length;l++)r.push(`.${i[l]}`);var u=["type","name","title","alt"];for(l=0;l<u.length;l++)a=u[l],c=n.getAttribute(a),c&&r.push(`[${a}="${c}"]`);return r.join("")}class Tr extends Error{constructor(e){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype)}}var Br=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function zr(e,t=!1){const{host:n,path:r,pass:o,port:i,projectId:a,protocol:c,publicKey:l}=e;return`${c}://${l}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r?`${r}/`:r}${a}`}function Pr(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}var Nr=fr(),Dr=["debug","info","warn","error","log","assert","trace"];function Or(e){var t=fr();if(!("console"in t))return e();var n=t.console,r={};Dr.forEach((e=>{var o=n[e]&&n[e].__sentry_original__;e in t.console&&o&&(r[e]=n[e],n[e]=o)}));try{return e()}finally{Object.keys(r).forEach((e=>{n[e]=r[e]}))}}function Ar(){let e=!1;var t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?Dr.forEach((n=>{t[n]=(...t)=>{e&&Or((()=>{Nr.console[n](`Sentry Logger [${n}]:`,...t)}))}})):Dr.forEach((e=>{t[e]=()=>{}})),t}let Rr;function Lr(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.substr(0,t)}...`}function Fr(e,t){if(!Array.isArray(e))return"";var n=[];for(let t=0;t<e.length;t++){var r=e[t];try{n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function Mr(e,t){return!!wr(e)&&(vr(t,"RegExp")?t.test(e):"string"==typeof t&&-1!==e.indexOf(t))}function jr(e,t,n){if(t in e){var r=e[t],o=n(r);if("function"==typeof o)try{Ur(o,r)}catch(e){}e[t]=o}}function Hr(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function Ur(e,t){var n=t.prototype||{};e.prototype=t.prototype=n,Hr(e,"__sentry_original__",t)}function Vr(e){return e.__sentry_original__}function $r(e){if(gr(e))return{message:e.message,name:e.name,stack:e.stack,...Yr(e)};if(Cr(e)){var t={type:e.type,target:Wr(e.target),currentTarget:Wr(e.currentTarget),...Yr(e)};return"undefined"!=typeof CustomEvent&&Sr(e,CustomEvent)&&(t.detail=e.detail),t}return e}function Wr(e){try{return"undefined"!=typeof Element&&Sr(e,Element)?_r(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function Yr(e){if("object"==typeof e&&null!==e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function Gr(e,t=40){var n=Object.keys($r(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Lr(n[0],t);for(let e=n.length;e>0;e--){var r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:Lr(r,t)}return""}function qr(e){return Kr(e,new Map)}function Kr(e,t){if(Er(e)){if(void 0!==(o=t.get(e)))return o;var n={};for(var r of(t.set(e,n),Object.keys(e)))void 0!==e[r]&&(n[r]=Kr(e[r],t));return n}var o;return Array.isArray(e)?void 0!==(o=t.get(e))?o:(n=[],t.set(e,n),e.forEach((e=>{n.push(Kr(e,t))})),n):e}function Xr(...e){var t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{var r=[];for(var o of e.split("\n").slice(n))for(var i of t){var a=i(o);if(a){r.push(a);break}}return function(e){if(!e.length)return[];let t=e;var n=t[0].function||"",r=t[t.length-1].function||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==r.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,50).map((e=>({...e,filename:e.filename||t[0].filename,function:e.function||"?"}))).reverse()}(r)}}function Zr(e){try{return e&&"function"==typeof e&&e.name||"<anonymous>"}catch(e){return"<anonymous>"}}function Jr(){if(!("fetch"in fr()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function Qr(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}Rr="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?mr("logger",Ar):Ar();var eo=fr(),to={},no={};function ro(e,t){to[e]=to[e]||[],to[e].push(t),function(e){if(!no[e])switch(no[e]=!0,e){case"console":"console"in eo&&Dr.forEach((function(e){e in eo.console&&jr(eo.console,e,(function(t){return function(...n){oo("console",{args:n,level:e}),t&&t.apply(eo.console,n)}}))}));break;case"dom":!function(){if("document"in eo){var e=oo.bind(null,"dom"),t=uo(e,!0);eo.document.addEventListener("click",t,!1),eo.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{var n=eo[t]&&eo[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(jr(n,"addEventListener",(function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{var i=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=i[n]=i[n]||{refCount:0};if(!a.handler){var c=uo(e);a.handler=c,t.call(this,n,c,o)}a.refCount+=1}catch(e){}return t.call(this,n,r,o)}})),jr(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{var o=this.__sentry_instrumentation_handlers__||{},i=o[t];i&&(i.refCount-=1,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete o[t]),0===Object.keys(o).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}}();break;case"xhr":!function(){if("XMLHttpRequest"in eo){var e=XMLHttpRequest.prototype;jr(e,"open",(function(e){return function(...t){var n=this,r=t[1],o=n.__sentry_xhr__={method:wr(t[0])?t[0].toUpperCase():t[0],url:t[1]};wr(r)&&"POST"===o.method&&r.match(/sentry_key/)&&(n.__sentry_own_request__=!0);var i=function(){if(4===n.readyState){try{o.status_code=n.status}catch(e){}oo("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:n})}};return"onreadystatechange"in n&&"function"==typeof n.onreadystatechange?jr(n,"onreadystatechange",(function(e){return function(...t){return i(),e.apply(n,t)}})):n.addEventListener("readystatechange",i),e.apply(n,t)}})),jr(e,"send",(function(e){return function(...t){return this.__sentry_xhr__&&void 0!==t[0]&&(this.__sentry_xhr__.body=t[0]),oo("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}}();break;case"fetch":(function(){if(!Jr())return!1;var e=fr();if(Qr(e.fetch))return!0;let t=!1;var n=e.document;if(n&&"function"==typeof n.createElement)try{var r=n.createElement("iframe");r.hidden=!0,n.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=Qr(r.contentWindow.fetch)),n.head.removeChild(r)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Rr.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t})()&&jr(eo,"fetch",(function(e){return function(...t){var n={args:t,fetchData:{method:io(t),url:ao(t)},startTimestamp:Date.now()};return oo("fetch",{...n}),e.apply(eo,t).then((e=>(oo("fetch",{...n,endTimestamp:Date.now(),response:e}),e)),(e=>{throw oo("fetch",{...n,endTimestamp:Date.now(),error:e}),e}))}}));break;case"history":!function(){if(function(){var e=fr(),t=e.chrome,n=t&&t.app&&t.app.runtime,r="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&r}()){var e=eo.onpopstate;eo.onpopstate=function(...t){var n=eo.location.href,r=co;if(co=n,oo("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},jr(eo.history,"pushState",t),jr(eo.history,"replaceState",t)}function t(e){return function(...t){var n=t.length>2?t[2]:void 0;if(n){var r=co,o=String(n);co=o,oo("history",{from:r,to:o})}return e.apply(this,t)}}}();break;case"error":po=eo.onerror,eo.onerror=function(e,t,n,r,o){return oo("error",{column:r,error:o,line:n,msg:e,url:t}),!!po&&po.apply(this,arguments)};break;case"unhandledrejection":fo=eo.onunhandledrejection,eo.onunhandledrejection=function(e){return oo("unhandledrejection",e),!fo||fo.apply(this,arguments)};break;default:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Rr.warn("unknown instrumentation type:",e)}}(e)}function oo(e,t){if(e&&to[e])for(var n of to[e]||[])try{n(t)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Rr.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Zr(n)}\nError:`,t)}}function io(e=[]){return"Request"in eo&&Sr(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function ao(e=[]){return"string"==typeof e[0]?e[0]:"Request"in eo&&Sr(e[0],Request)?e[0].url:String(e[0])}let co,lo,so;function uo(e,t=!1){return n=>{if(n&&so!==n&&!function(e){if("keypress"!==e.type)return!1;try{var t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n)){var r="keypress"===n.type?"input":n.type;(void 0===lo||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(so,n))&&(e({event:n,name:r,global:t}),so=n),clearTimeout(lo),lo=eo.setTimeout((()=>{lo=void 0}),1e3)}}}let po=null,fo=null;function mo(){var e=fr(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=e=>{let t=e.toString(16);for(;t.length<4;)t=`0${t}`;return t};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(e=>{var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function ho(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}function go(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function vo(e){const{message:t,event_id:n}=e;if(t)return t;var r=go(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function yo(e,t,n){var r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function bo(e,t){var n=go(e);if(n){var r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){var o={...r&&r.data,...t.data};n.mechanism.data=o}}}function wo(e){if(e&&e.__sentry_captured__)return!0;try{Hr(e,"__sentry_captured__",!0)}catch(e){}return!1}function xo(e,t=1/0,n=1/0){try{return Co("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Eo(e,t=3,n=102400){var r,o=xo(e,t);return r=o,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(r))>n?Eo(e,t-1,n):o}function Co(e,t,n=1/0,r=1/0,o=function(){var e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[i,a]=o;if(null===t||["number","boolean","string"].includes(typeof t)&&("number"!=typeof(c=t)||c==c))return t;var c,l=function(e,t){try{return"domain"===e&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":function(e){return Er(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?`[Function: ${Zr(t)}]`:"symbol"==typeof t?`[${String(t)}]`:"bigint"==typeof t?`[BigInt: ${String(t)}]`:`[object ${Object.getPrototypeOf(t).constructor.name}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!l.startsWith("[object "))return l;if(t.__sentry_skip_normalization__)return t;if(0===n)return l.replace("object ","");if(i(t))return"[Circular ~]";var s=t;if(s&&"function"==typeof s.toJSON)try{return Co("",s.toJSON(),n-1,r,o)}catch(e){}var u=Array.isArray(t)?[]:{};let d=0;var p=$r(t);for(var f in p)if(Object.prototype.hasOwnProperty.call(p,f)){if(d>=r){u[f]="[MaxProperties ~]";break}var m=p[f];u[f]=Co(f,m,n-1,r,o),d+=1}return a(t),u}var ko;function So(e){return new Io((t=>{t(e)}))}function _o(e){return new Io(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(ko||(ko={}));class Io{__init(){this._state=ko.PENDING}__init2(){this._handlers=[]}constructor(e){Io.prototype.__init.call(this),Io.prototype.__init2.call(this),Io.prototype.__init3.call(this),Io.prototype.__init4.call(this),Io.prototype.__init5.call(this),Io.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new Io(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new Io(((t,n)=>{let r,o;return this.then((t=>{o=!1,r=t,e&&e()}),(t=>{o=!0,r=t,e&&e()})).then((()=>{o?n(r):t(r)}))}))}__init3(){this._resolve=e=>{this._setResult(ko.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(ko.REJECTED,e)}}__init5(){this._setResult=(e,t)=>{this._state===ko.PENDING&&(kr(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init6(){this._executeHandlers=()=>{if(this._state!==ko.PENDING){var e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===ko.RESOLVED&&e[1](this._value),this._state===ko.REJECTED&&e[2](this._value),e[0]=!0)}))}}}}var To=["fatal","error","warning","log","info","debug"],Bo={nowSeconds:()=>Date.now()/1e3},zo=dr()?function(){try{return(e=module,"perf_hooks",e.require("perf_hooks")).performance}catch(e){return}var e}():function(){const{performance:e}=fr();if(e&&e.now)return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),Po=void 0===zo?Bo:{nowSeconds:()=>(zo.timeOrigin+zo.now())/1e3},No=Bo.nowSeconds.bind(Bo),Do=Po.nowSeconds.bind(Po);function Oo(e,t=[]){return[e,t]}function Ao(e,t){const[n,r]=e;return[n,[...r,t]]}function Ro(e,t){e[1].forEach((e=>{var n=e[0].type;t(e,n)}))}function Lo(e,t){return(t||new TextEncoder).encode(e)}function Fo(e,t){const[n,r]=e;let o=JSON.stringify(n);function i(e){"string"==typeof o?o="string"==typeof e?o+e:[Lo(o,t),e]:o.push("string"==typeof e?Lo(e,t):e)}for(var a of r){const[e,t]=a;i(`\n${JSON.stringify(e)}\n`),i("string"==typeof t||t instanceof Uint8Array?t:JSON.stringify(t))}return"string"==typeof o?o:function(e){var t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(var o of e)n.set(o,r),r+=o.length;return n}(o)}function Mo(e,t){var n="string"==typeof e.data?Lo(e.data,t):e.data;return[qr({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}(()=>{const{performance:e}=fr();if(e&&e.now){var t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=o<t,a=e.timing&&e.timing.navigationStart,c="number"==typeof a?Math.abs(a+n-r):t;(i||c<t)&&o<=c&&e.timeOrigin}})();var jo={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default"};function Ho(e){return jo[e]}function Uo(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Do(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:mo()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{var n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}class Vo{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(e){var t=new Vo;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments]),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&Uo(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts={...this._contexts,[e]:t},this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){var e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){var t=e(this);return t instanceof Vo?t:this}return e instanceof Vo?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):Er(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(e,t){var n="number"==typeof t?Math.min(t,100):100;if(n<=0)return this;var r={timestamp:No(),...e};return this._breadcrumbs=[...this._breadcrumbs,r].slice(-n),this._notifyScopeListeners(),this}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};var n=this._span.transaction&&this._span.transaction.name;n&&(e.tags={transaction:n,...e.tags})}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...$o(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,t,n,r=0){return new Io(((o,i)=>{var a=e[r];if(null===t||"function"!=typeof a)o(t);else{var c=a({...t},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.id&&null===c&&Rr.log(`Event processor "${a.id}" dropped event`),kr(c)?c.then((t=>this._notifyEventProcessors(e,t,n,r+1).then(o))).then(null,i):this._notifyEventProcessors(e,c,n,r+1).then(o).then(null,i)}}))}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function $o(){return mr("globalEventProcessors",(()=>[]))}function Wo(e){$o().push(e)}var Yo=100;class Go{__init(){this._stack=[{}]}constructor(e,t=new Vo,n=4){this._version=n,Go.prototype.__init.call(this),this.getStackTop().scope=t,e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){var e=Vo.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}withScope(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){var n=this._lastEventId=t&&t.event_id?t.event_id:mo(),r=new Error("Sentry syntheticException");return this._withClient(((o,i)=>{o.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},i)})),n}captureMessage(e,t,n){var r=this._lastEventId=n&&n.event_id?n.event_id:mo(),o=new Error(e);return this._withClient(((i,a)=>{i.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},a)})),r}captureEvent(e,t){var n=t&&t.event_id?t.event_id:mo();return"transaction"!==e.type&&(this._lastEventId=n),this._withClient(((r,o)=>{r.captureEvent(e,{...t,event_id:n},o)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!n||!r)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=Yo}=r.getOptions&&r.getOptions()||{};if(!(i<=0)){var a={timestamp:No(),...e},c=o?Or((()=>o(a,t))):a;null!==c&&n.addBreadcrumb(c,i)}}setUser(e){var t=this.getScope();t&&t.setUser(e)}setTags(e){var t=this.getScope();t&&t.setTags(e)}setExtras(e){var t=this.getScope();t&&t.setExtras(e)}setTag(e,t){var n=this.getScope();n&&n.setTag(e,t)}setExtra(e,t){var n=this.getScope();n&&n.setExtra(e,t)}setContext(e,t){var n=this.getScope();n&&n.setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();t&&n&&e(t)}run(e){var t=Ko(this);try{e(this)}finally{Ko(t)}}getIntegration(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Rr.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){return this._callExtensionMethod("startTransaction",e,t)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){var e=this.getStackTop(),t=e&&e.scope,n=t&&t.getSession();n&&function(e,t){let n={};"ok"===e.status&&(n={status:"exited"}),Uo(e,n)}(n),this._sendSessionUpdate(),t&&t.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:o}=n&&n.getOptions()||{};var i=fr();const{userAgent:a}=i.navigator||{};var c=function(e){var t=Do(),n={sid:mo(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return qr({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&Uo(n,e),n}({release:r,environment:o,...t&&{user:t.getUser()},...a&&{userAgent:a},...e});if(t){var l=t.getSession&&t.getSession();l&&"ok"===l.status&&Uo(l,{status:"exited"}),this.endSession(),t.setSession(c)}return c}shouldSendDefaultPii(){var e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop();if(e){var n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}}_withClient(e){const{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){var n=qo().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Rr.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function qo(){var e=fr();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function Ko(e){var t=qo(),n=Jo(t);return Qo(t,e),n}function Xo(){var e=qo();return Zo(e)&&!Jo(e).isOlderThan(4)||Qo(e,new Go),dr()?function(e){try{var t=qo().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return Jo(e);if(!Zo(n)||Jo(n).isOlderThan(4)){var r=Jo(e).getStackTop();Qo(n,new Go(r.client,Vo.clone(r.scope)))}return Jo(n)}catch(t){return Jo(e)}}(e):Jo(e)}function Zo(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function Jo(e){return mr("hub",(()=>new Go),e)}function Qo(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}function ei(e,t){return Xo().captureException(e,{captureContext:t})}function ti(e){Xo().withScope(e)}function ni(e,t){return t||`${function(e){return`${function(e){var t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(e)}?${function(e){return t={sentry_key:e.publicKey,sentry_version:"7"},Object.keys(t).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`)).join("&");var t}(e)}`}function ri(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}var oi=[];function ii(e){return e.reduce(((e,t)=>(e.every((e=>t.name!==e.name))&&e.push(t),e)),[])}function ai(e){var t=e.defaultIntegrations&&[...e.defaultIntegrations]||[],n=e.integrations;let r=[...ii(t)];Array.isArray(n)?r=[...r.filter((e=>n.every((t=>t.name!==e.name)))),...ii(n)]:"function"==typeof n&&(r=n(r),r=Array.isArray(r)?r:[r]);var o=r.map((e=>e.name)),i="Debug";return-1!==o.indexOf(i)&&r.push(...r.splice(o.indexOf(i),1)),r}var ci="Not capturing exception because it's already been captured.";class li{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}constructor(e){if(li.prototype.__init.call(this),li.prototype.__init2.call(this),li.prototype.__init3.call(this),li.prototype.__init4.call(this),this._options=e,e.dsn){this._dsn=(n=e.dsn,r="string"==typeof n?function(e){var t=Br.exec(e);if(!t)throw new Tr(`Invalid Sentry Dsn: ${e}`);const[n,r,o="",i,a="",c]=t.slice(1);let l="",s=c;var u=s.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),s=u.pop()),s){var d=s.match(/^\d+/);d&&(s=d[0])}return Pr({host:i,pass:o,path:l,projectId:s,port:a,protocol:n,publicKey:r})}(n):Pr(n),function(e){if("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return;const{port:t,projectId:n,protocol:r}=e;if(["protocol","publicKey","host","projectId"].forEach((t=>{if(!e[t])throw new Tr(`Invalid Sentry Dsn: ${t} missing`)})),!n.match(/^\d+$/))throw new Tr(`Invalid Sentry Dsn: Invalid projectId ${n}`);if(!function(e){return"http"===e||"https"===e}(r))throw new Tr(`Invalid Sentry Dsn: Invalid protocol ${r}`);if(t&&isNaN(parseInt(t,10)))throw new Tr(`Invalid Sentry Dsn: Invalid port ${t}`)}(r),r);var t=ni(this._dsn,e.tunnel);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Rr.warn("No DSN provided, client will not do anything.");var n,r}captureException(e,t,n){if(wo(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Rr.log(ci));let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{r=e}))),r}captureMessage(e,t,n,r){let o=n&&n.event_id;var i=xr(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this._process(i.then((e=>this._captureEvent(e,n,r))).then((e=>{o=e}))),o}captureEvent(e,t,n){if(t&&t.originalException&&wo(t.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Rr.log(ci));let r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((e=>{r=e}))),r}captureSession(e){this._isEnabled()?"string"!=typeof e.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Rr.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),Uo(e,{init:!1})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Rr.warn("SDK not enabled, will not capture session.")}getDsn(){return this._dsn}getOptions(){return this._options}getTransport(){return this._transport}flush(e){var t=this._transport;return t?this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e)))):So(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,e)))}setupIntegrations(){var e,t;this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=(e=this._options.integrations,t={},e.forEach((e=>{t[e.name]=e,-1===oi.indexOf(e.name)&&(e.setupOnce(Wo,Xo),oi.push(e.name),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Rr.log(`Integration installed: ${e.name}`))})),t),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Rr.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}sendEvent(e,t={}){if(this._dsn){let r=function(e,t,n,r){var o=ri(n),i=e.type||"event";const{transactionSampling:a}=e.sdkProcessingMetadata||{},{method:c,rate:l}=a||{};!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);var s=function(e,t,n,r){var o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.baggage,i=o&&function(e){return e[0]}(o);return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&{dsn:zr(r)},..."transaction"===e.type&&i&&{trace:qr({...i})}}}(e,o,r,t);return delete e.sdkProcessingMetadata,Oo(s,[[{type:i,sample_rates:[{id:c,rate:l}]},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(var n of t.attachments||[])r=Ao(r,Mo(n,this._options.transportOptions&&this._options.transportOptions.textEncoder));this._sendEnvelope(r)}}sendSession(e){if(this._dsn){var t=function(e,t,n,r){var o=ri(n);return Oo({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&{dsn:zr(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}}recordDroppedEvent(e,t){if(this._options.sendClientReports){var n=`${e}:${t}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Rr.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}_updateSessionFromEvent(e,t){let n=!1,r=!1;var o=t.exception&&t.exception.values;if(o)for(var i of(r=!0,o)){var a=i.mechanism;if(a&&!1===a.handled){n=!0;break}}var c="ok"===e.status;(c&&0===e.errors||c&&n)&&(Uo(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new Io((t=>{let n=0;var r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(e,t,n){const{normalizeDepth:r=3,normalizeMaxBreadth:o=1e3}=this.getOptions();var i={...e,event_id:e.event_id||t.event_id||mo(),timestamp:e.timestamp||No()};this._applyClientOptions(i),this._applyIntegrationsMetadata(i);let a=n;t.captureContext&&(a=Vo.clone(a).update(t.captureContext));let c=So(i);if(a){var l=[...t.attachments||[],...a.getAttachments()];l.length&&(t.attachments=l),c=a.applyToEvent(i,t)}return c.then((e=>"number"==typeof r&&r>0?this._normalizeEvent(e,r,o):e))}_normalizeEvent(e,t,n){if(!e)return null;var r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:xo(e.data,t,n)}})))},...e.user&&{user:xo(e.user,t,n)},...e.contexts&&{contexts:xo(e.contexts,t,n)},...e.extra&&{extra:xo(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=xo(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>(e.data&&(e.data=xo(e.data,t,n)),e)))),r}_applyClientOptions(e){var t=this.getOptions();const{environment:n,release:r,dist:o,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==o&&(e.dist=o),e.message&&(e.message=Lr(e.message,i));var a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=Lr(a.value,i));var c=e.request;c&&c.url&&(c.url=Lr(c.url,i))}_applyIntegrationsMetadata(e){var t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Rr.warn(e)}))}_processEvent(e,t,n){const{beforeSend:r,sampleRate:o}=this.getOptions();if(!this._isEnabled())return _o(new Tr("SDK not enabled, will not capture event."));var i="transaction"===e.type;return!i&&"number"==typeof o&&Math.random()>o?(this.recordDroppedEvent("sample_rate","error"),_o(new Tr(`Discarding event because it's not included in the random sample (sampling rate = ${o})`))):this._prepareEvent(e,t,n).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",e.type||"error"),new Tr("An event processor returned null, will not send event.");return t.data&&!0===t.data.__sentry__||i||!r?n:function(e){var t="`beforeSend` method has to return `null` or a valid event.";if(kr(e))return e.then((e=>{if(!Er(e)&&null!==e)throw new Tr(t);return e}),(e=>{throw new Tr(`beforeSend rejected with ${e}`)}));if(!Er(e)&&null!==e)throw new Tr(t);return e}(r(n,t))})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",e.type||"error"),new Tr("`beforeSend` returned `null`, will not send event.");var o=n&&n.getSession();return!i&&o&&this._updateSessionFromEvent(o,r),this.sendEvent(r,t),r})).then(null,(e=>{if(e instanceof Tr)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Tr(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing+=1,e.then((e=>(this._numProcessing-=1,e)),(e=>(this._numProcessing-=1,e)))}_sendEnvelope(e){this._transport&&this._dsn?this._transport.send(e).then(null,(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Rr.error("Error while sending event:",e)})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Rr.error("Transport disabled")}_clearOutcomes(){var e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}}))}}function si(e,t,n=function(e){var t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return _o(new Tr("Not adding Promise due to buffer limit reached."));var o=r();return-1===t.indexOf(o)&&t.push(o),o.then((()=>n(o))).then(null,(()=>n(o).then(null,(()=>{})))),o},drain:function(e){return new Io(((n,r)=>{let o=t.length;if(!o)return n(!0);var i=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{So(e).then((()=>{--o||(clearTimeout(i),n(!0))}),r)}))}))}}}(e.bufferSize||30)){let r={};return{send:function(o){var i=[];if(Ro(o,((t,n)=>{var o=Ho(n);!function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,o)?i.push(t):e.recordDroppedEvent("ratelimit_backoff",o)})),0===i.length)return So();var a=Oo(o[0],i),c=t=>{Ro(a,((n,r)=>{e.recordDroppedEvent(t,Ho(r))}))};return n.add((()=>t({body:Fo(a,e.textEncoder)}).then((e=>{void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Rr.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,{statusCode:t,headers:n},r=Date.now()){var o={...e},i=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(i)for(var c of i.trim().split(",")){const[e,t]=c.split(":",2);var l=parseInt(e,10),s=1e3*(isNaN(l)?60:l);if(t)for(var u of t.split(";"))o[u]=r+s;else o.all=r+s}else a?o.all=r+function(e,t=Date.now()){var n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(a,r):429===t&&(o.all=r+6e4);return o}(r,e)}),(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Rr.error("Failed while sending event:",e),c("network_error")})))).then((e=>e),(e=>{if(e instanceof Tr)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Rr.error("Skipped sending event due to full buffer"),c("queue_overflow"),So();throw e}))},flush:e=>n.drain(e)}}let ui;class di{constructor(){di.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=di.id}setupOnce(){ui=Function.prototype.toString,Function.prototype.toString=function(...e){var t=Vr(this)||this;return ui.apply(t,e)}}}di.__initStatic();var pi=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class fi{static __initStatic(){this.id="InboundFilters"}__init(){this.name=fi.id}constructor(e={}){this._options=e,fi.prototype.__init.call(this)}setupOnce(e,t){var n=e=>{var n=t();if(n){var r=n.getIntegration(fi);if(r){var o=n.getClient(),i=o?o.getOptions():{},a=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...pi],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(r._options,i);return function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Rr.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${vo(e)}`),!0):function(e,t){return!(!t||!t.length)&&function(e){if(e.message)return[e.message];if(e.exception)try{const{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Rr.error(`Cannot extract message for event ${vo(e)}`),[]}return[]}(e).some((e=>t.some((t=>Mr(e,t)))))}(e,t.ignoreErrors)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Rr.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${vo(e)}`),!0):function(e,t){if(!t||!t.length)return!1;var n=mi(e);return!!n&&t.some((e=>Mr(n,e)))}(e,t.denyUrls)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Rr.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${vo(e)}.\nUrl: ${mi(e)}`),!0):!function(e,t){if(!t||!t.length)return!0;var n=mi(e);return!n||t.some((e=>Mr(n,e)))}(e,t.allowUrls)&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Rr.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${vo(e)}.\nUrl: ${mi(e)}`),!0)}(e,a)?null:e}}return e};n.id=this.name,e(n)}}function mi(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let n=e.length-1;n>=0;n--){var t=e[n];if(t&&"<anonymous>"!==t.filename&&"[native code]"!==t.filename)return t.filename||null}return null}(t):null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Rr.error(`Cannot extract url for event ${vo(e)}`),null}}function hi(e,t){var n=vi(e,t),r={type:t&&t.name,value:bi(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function gi(e,t){return{exception:{values:[hi(e,t)]}}}function vi(e,t){var n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(yi.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}fi.__initStatic();var yi=/Minified React error #\d+;/i;function bi(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function wi(e,t,n,r,o){let i;if(yr(t)&&t.error)return gi(e,t.error);if(br(t)||vr(t,"DOMException")){var a=t;if("stack"in t)i=gi(e,t);else{var c=a.name||(br(a)?"DOMError":"DOMException"),l=a.message?`${c}: ${a.message}`:c;i=xi(e,l,n,r),yo(i,l)}return"code"in a&&(i.tags={...i.tags,"DOMException.code":`${a.code}`}),i}return gr(t)?gi(e,t):Er(t)||Cr(t)?(i=function(e,t,n,r){var o={exception:{values:[{type:Cr(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:`Non-Error ${r?"promise rejection":"exception"} captured with keys: ${Gr(t)}`}]},extra:{__serialized__:Eo(t)}};if(n){var i=vi(e,n);i.length&&(o.exception.values[0].stacktrace={frames:i})}return o}(e,t,n,o),bo(i,{synthetic:!0}),i):(i=xi(e,t,n,r),yo(i,`${t}`,void 0),bo(i,{synthetic:!0}),i)}function xi(e,t,n,r){var o={message:t};if(r&&n){var i=vi(e,n);i.length&&(o.exception={values:[{value:t,stacktrace:{frames:i}}]})}return o}class Ei{static __initStatic(){this.id="Breadcrumbs"}__init(){this.name=Ei.id}constructor(e){Ei.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){var e;this.options.console&&ro("console",Ci),this.options.dom&&ro("dom",(e=this.options.dom,function(t){let n,r="object"==typeof e?e.serializeAttribute:void 0;"string"==typeof r&&(r=[r]);try{n=t.event.target?_r(t.event.target,r):_r(t.event,r)}catch(e){n="<unknown>"}0!==n.length&&Xo().addBreadcrumb({category:`ui.${t.name}`,message:n},{event:t.event,name:t.name,global:t.global})})),this.options.xhr&&ro("xhr",ki),this.options.fetch&&ro("fetch",Si),this.options.history&&ro("history",_i)}}function Ci(e){var t,n={category:"console",data:{arguments:e.args,logger:"console"},level:(t=e.level,"warn"===t?"warning":To.includes(t)?t:"log"),message:Fr(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${Fr(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}Xo().addBreadcrumb(n,{input:e.args,level:e.level})}function ki(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;const{method:t,url:n,status_code:r,body:o}=e.xhr.__sentry_xhr__||{};Xo().addBreadcrumb({category:"xhr",data:{method:t,url:n,status_code:r},type:"http"},{xhr:e.xhr,input:o})}}function Si(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?Xo().addBreadcrumb({category:"fetch",data:e.fetchData,level:"error",type:"http"},{data:e.error,input:e.args}):Xo().addBreadcrumb({category:"fetch",data:{...e.fetchData,status_code:e.response.status},type:"http"},{input:e.args,response:e.response})))}function _i(e){var t=fr();let n=e.from,r=e.to;var o=ho(t.location.href);let i=ho(n);var a=ho(r);i.path||(i=o),o.protocol===a.protocol&&o.host===a.host&&(r=a.relative),o.protocol===i.protocol&&o.host===i.host&&(n=i.relative),Xo().addBreadcrumb({category:"navigation",data:{from:n,to:r}})}Ei.__initStatic();var Ii=fr();let Ti;function Bi(){if(Ti)return Ti;if(Qr(Ii.fetch))return Ti=Ii.fetch.bind(Ii);var e=Ii.document;let t=Ii.fetch;if(e&&"function"==typeof e.createElement)try{var n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);var r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Rr.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return Ti=t.bind(Ii)}var zi=fr();class Pi extends li{constructor(e){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:"7.6.0"}],version:"7.6.0"},super(e),e.sendClientReports&&zi.document&&zi.document.addEventListener("visibilitychange",(()=>{"hidden"===zi.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,r){var o=wi(e,t,n&&n.syntheticException||void 0,r);return bo(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),So(o)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,o){var i=xi(e,t,r&&r.syntheticException||void 0,o);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),So(i)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}sendEvent(e,t){var n=this.getIntegrationById("Breadcrumbs");n&&n.options&&n.options.sentry&&Xo().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:vo(e)},{event:e}),super.sendEvent(e,t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){var e=this._clearOutcomes();if(0!==e.length)if(this._dsn){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Rr.log("Sending outcomes:",e);var t,n,r=ni(this._dsn,this._options.tunnel),o=(t=e,Oo((n=this._options.tunnel&&zr(this._dsn))?{dsn:n}:{},[[{type:"client_report"},{timestamp:No(),discarded_events:t}]]));try{!function(e,t){"[object Navigator]"===Object.prototype.toString.call(Ii&&Ii.navigator)&&"function"==typeof Ii.navigator.sendBeacon?Ii.navigator.sendBeacon.bind(Ii.navigator)(e,t):Jr()&&Bi()(e,{body:t,method:"POST",credentials:"omit",keepalive:!0}).then(null,(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Rr.error(e)}))}(r,Fo(o))}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Rr.error(e)}}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Rr.log("No dsn provided, will not send outcomes");else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Rr.log("No outcomes to send")}}function Ni(e,t=Bi()){return si(e,(function(n){var r={body:n.body,method:"POST",referrerPolicy:"origin",headers:e.headers,...e.fetchOptions};return t(e.url,r).then((e=>({statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}))}function Di(e){return si(e,(function(t){return new Io(((n,r)=>{var o=new XMLHttpRequest;for(var i in o.onerror=r,o.onreadystatechange=()=>{4===o.readyState&&n({statusCode:o.status,headers:{"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")}})},o.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,i)&&o.setRequestHeader(i,e.headers[i]);o.send(t.body)}))}))}function Oi(e,t,n,r){var o={filename:e,function:t,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}var Ai=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ri=/\((\S*)(?::(\d+))(?::(\d+))\)/,Li=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Fi=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Mi=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,ji=Xr([30,e=>{var t=Ai.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){var n=Ri.exec(t[2]);n&&(t[2]=n[1],t[3]=n[2],t[4]=n[3])}const[e,r]=Hi(t[1]||"?",t[2]);return Oi(r,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{var t=Li.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var n=Fi.exec(t[3]);n&&(t[1]=t[1]||"eval",t[3]=n[1],t[4]=n[2],t[5]="")}let e=t[3],r=t[1]||"?";return[r,e]=Hi(r,e),Oi(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{var t=Mi.exec(e);return t?Oi(t[2],t[1]||"?",+t[3],t[4]?+t[4]:void 0):void 0}]),Hi=(e,t)=>{var n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};let Ui=0;function Vi(){return Ui>0}function $i(){Ui+=1,setTimeout((()=>{Ui-=1}))}function Wi(e,t={},n){if("function"!=typeof e)return e;try{var r=e.__sentry_wrapped__;if(r)return r;if(Vr(e))return e}catch(t){return e}var o=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var o=r.map((e=>Wi(e,t)));return e.apply(this,o)}catch(e){throw $i(),ti((n=>{n.addEventProcessor((e=>(t.mechanism&&(yo(e,void 0,void 0),bo(e,t.mechanism)),e.extra={...e.extra,arguments:r},e))),ei(e)})),e}};try{for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(o[i]=e[i])}catch(e){}Ur(o,e),Hr(e,"__sentry_wrapped__",o);try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get:()=>e.name})}catch(e){}return o}class Yi{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=Yi.id}__init2(){this._installFunc={onerror:Gi,onunhandledrejection:qi}}constructor(e){Yi.prototype.__init.call(this),Yi.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...e}}setupOnce(){Error.stackTraceLimit=50;var e,t=this._options;for(var n in t){var r=this._installFunc[n];r&&t[n]&&(e=n,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Rr.log(`Global Handler attached: ${e}`),r(),this._installFunc[n]=void 0)}}}function Gi(){ro("error",(e=>{const[t,n,r]=Zi();if(!t.getIntegration(Yi))return;const{msg:o,url:i,line:a,column:c,error:l}=e;if(!(Vi()||l&&l.__sentry_own_request__)){var s=void 0===l&&wr(o)?function(e,t,n,r){let o=yr(e)?e.message:e,i="Error";var a=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return a&&(i=a[1],o=a[2]),Ki({exception:{values:[{type:i,value:o}]}},t,n,r)}(o,i,a,c):Ki(wi(n,l||o,void 0,r,!1),i,a,c);s.level="error",Xi(t,l,s,"onerror")}}))}function qi(){ro("unhandledrejection",(e=>{const[t,n,r]=Zi();if(!t.getIntegration(Yi))return;let o=e;try{"reason"in e?o=e.reason:"detail"in e&&"reason"in e.detail&&(o=e.detail.reason)}catch(e){}if(Vi()||o&&o.__sentry_own_request__)return!0;var i=xr(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:wi(n,o,void 0,r,!0);i.level="error",Xi(t,o,i,"onunhandledrejection")}))}function Ki(e,t,n,r){var o=e.exception=e.exception||{},i=o.values=o.values||[],a=i[0]=i[0]||{},c=a.stacktrace=a.stacktrace||{},l=c.frames=c.frames||[],s=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,d=wr(t)&&t.length>0?t:function(){var e=fr();try{return e.document.location.href}catch(e){return""}}();return 0===l.length&&l.push({colno:s,filename:d,function:"?",in_app:!0,lineno:u}),e}function Xi(e,t,n,r){bo(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function Zi(){var e=Xo(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}Yi.__initStatic();var Ji=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class Qi{static __initStatic(){this.id="TryCatch"}__init(){this.name=Qi.id}constructor(e){Qi.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){var e=fr();this._options.setTimeout&&jr(e,"setTimeout",ea),this._options.setInterval&&jr(e,"setInterval",ea),this._options.requestAnimationFrame&&jr(e,"requestAnimationFrame",ta),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&jr(XMLHttpRequest.prototype,"send",na);var t=this._options.eventTarget;t&&(Array.isArray(t)?t:Ji).forEach(ra)}}function ea(e){return function(...t){var n=t[0];return t[0]=Wi(n,{mechanism:{data:{function:Zr(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function ta(e){return function(t){return e.apply(this,[Wi(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Zr(e)},handled:!0,type:"instrument"}})])}}function na(e){return function(...t){var n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&jr(n,e,(function(t){var n={mechanism:{data:{function:e,handler:Zr(t)},handled:!0,type:"instrument"}},r=Vr(t);return r&&(n.mechanism.data.handler=Zr(r)),Wi(t,n)}))})),e.apply(this,t)}}function ra(e){var t=fr(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(jr(n,"addEventListener",(function(t){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=Wi(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Zr(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.apply(this,[n,Wi(r,{mechanism:{data:{function:"addEventListener",handler:Zr(r),target:e},handled:!0,type:"instrument"}}),o])}})),jr(n,"removeEventListener",(function(e){return function(t,n,r){var o=n;try{var i=o&&o.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch(e){}return e.call(this,t,o,r)}})))}Qi.__initStatic();class oa{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=oa.id}constructor(e={}){oa.prototype.__init.call(this),this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){var e=Xo().getClient();e&&Wo(((t,n)=>{var r=Xo().getIntegration(oa);return r?function(e,t,n,r,o){if(!(r.exception&&r.exception.values&&o&&Sr(o.originalException,Error)))return r;var i=ia(e,n,o.originalException,t);return r.exception.values=[...i,...r.exception.values],r}(e.getOptions().stackParser,r._key,r._limit,t,n):t}))}}function ia(e,t,n,r,o=[]){if(!Sr(n[r],Error)||o.length+1>=t)return o;var i=hi(e,n[r]);return ia(e,t,n[r],r,[i,...o])}oa.__initStatic();var aa=fr();class ca{constructor(){ca.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=ca.id}setupOnce(){Wo((e=>{if(Xo().getIntegration(ca)){if(!aa.navigator&&!aa.location&&!aa.document)return e;var t=e.request&&e.request.url||aa.location&&aa.location.href;const{referrer:r}=aa.document||{},{userAgent:o}=aa.navigator||{};var n={...t&&{url:t},headers:{...e.request&&e.request.headers,...r&&{Referer:r},...o&&{"User-Agent":o}}};return{...e,request:n}}return e}))}}ca.__initStatic();class la{constructor(){la.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=la.id}setupOnce(e,t){var n=e=>{var n=t().getIntegration(la);if(n){try{if(function(e,t){return!!t&&(!!function(e,t){var n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!ua(e,t)&&!!sa(e,t))))}(e,t)||!!function(e,t){var n=da(t),r=da(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!ua(e,t)&&!!sa(e,t)))}(e,t))}(e,n._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Rr.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){return n._previousEvent=e}return n._previousEvent=e}return e};n.id=this.name,e(n)}}function sa(e,t){let n=pa(e),r=pa(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let e=0;e<r.length;e++){var o=r[e],i=n[e];if(o.filename!==i.filename||o.lineno!==i.lineno||o.colno!==i.colno||o.function!==i.function)return!1}return!0}function ua(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function da(e){return e.exception&&e.exception.values&&e.exception.values[0]}function pa(e){var t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}la.__initStatic();var fa=[new fi,new di,new Qi,new Ei,new Yi,new oa,new la,new ca];function ma(e){e.startSession({ignoreDuration:!0}),e.captureSession()}var ha=t(null),ga={field:"CREATED_AT",direction:"DESC"};function va(t){var o=n(ga),i=o[0],a=o[1],c=n(ga),l=c[0],s=c[1],u=n(ga),d=u[0],p=u[1];function f(e,t){"assets"===e?a(t):"collections"===e?s(t):p(t)}function m(){a(ga),s(ga),p(ga)}var h=r((function(){return{assets:i,collections:l,collection:d,setOrdering:f,reset:m}}),[i,d,l]);return e.createElement(ha.Provider,{value:h},t.children)}function ya(e){var t=function(){var e=o(ha);if(null===e)throw new Error("useOrdering must be used with a OrderingProvider");return e}();return[t[e],function(n){return t.setOrdering(e,n)}]}
|
|
7
|
+
import*as e from"react";import t,{createContext as n,useState as r,useMemo as o,useContext as i,useEffect as a,useRef as c,useLayoutEffect as l,createElement as s,useCallback as u,forwardRef as d,cloneElement as p,useReducer as f,Component as m}from"react";import h,{createPortal as g}from"react-dom";var v="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},y=function(e){return e&&e.Math==Math&&e},b=y("object"==typeof globalThis&&globalThis)||y("object"==typeof window&&window)||y("object"==typeof self&&self)||y("object"==typeof v&&v)||Function("return this")(),w={},x=function(e){try{return!!e()}catch(e){return!0}},E=!x((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),C={},k={}.propertyIsEnumerable,S=Object.getOwnPropertyDescriptor,_=S&&!k.call({1:2},1);C.f=_?function(e){var t=S(this,e);return!!t&&t.enumerable}:k;var I=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},B={}.toString,T=function(e){return B.call(e).slice(8,-1)},N=T,z="".split,D=x((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==N(e)?z.call(e,""):Object(e)}:Object,P=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},O=D,A=P,R=function(e){return O(A(e))},F=function(e){return"object"==typeof e?null!==e:"function"==typeof e},L=F,M=function(e,t){if(!L(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!L(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!L(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!L(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},j={}.hasOwnProperty,H=function(e,t){return j.call(e,t)},U=F,V=b.document,$=U(V)&&U(V.createElement),W=function(e){return $?V.createElement(e):{}},G=W,q=!E&&!x((function(){return 7!=Object.defineProperty(G("div"),"a",{get:function(){return 7}}).a})),Y=E,K=C,X=I,Z=R,J=M,Q=H,ee=q,te=Object.getOwnPropertyDescriptor;w.f=Y?te:function(e,t){if(e=Z(e),t=J(t,!0),ee)try{return te(e,t)}catch(e){}if(Q(e,t))return X(!K.f.call(e,t),e[t])};var ne={},re=F,oe=function(e){if(!re(e))throw TypeError(String(e)+" is not an object");return e},ie=E,ae=q,ce=oe,le=M,se=Object.defineProperty;ne.f=ie?se:function(e,t,n){if(ce(e),t=le(t,!0),ce(n),ae)try{return se(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var ue=ne,de=I,pe=E?function(e,t,n){return ue.f(e,t,de(1,n))}:function(e,t,n){return e[t]=n,e},fe={exports:{}},me=b,he=pe,ge=function(e,t){try{he(me,e,t)}catch(n){me[e]=t}return t},ve=ge,ye=b["__core-js_shared__"]||ve("__core-js_shared__",{}),be=ye,we=Function.toString;"function"!=typeof be.inspectSource&&(be.inspectSource=function(e){return we.call(e)});var xe=be.inspectSource,Ee=xe,Ce=b.WeakMap,ke="function"==typeof Ce&&/native code/.test(Ee(Ce)),Se={exports:{}},_e=ye;(Se.exports=function(e,t){return _e[e]||(_e[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"});var Ie,Be,Te,Ne=0,ze=Math.random(),De=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++Ne+ze).toString(36)},Pe=Se.exports,Oe=De,Ae=Pe("keys"),Re=function(e){return Ae[e]||(Ae[e]=Oe(e))},Fe={},Le=ke,Me=F,je=pe,He=H,Ue=Re,Ve=Fe,$e=b.WeakMap;if(Le){var We=new $e,Ge=We.get,qe=We.has,Ye=We.set;Ie=function(e,t){return Ye.call(We,e,t),t},Be=function(e){return Ge.call(We,e)||{}},Te=function(e){return qe.call(We,e)}}else{var Ke=Ue("state");Ve[Ke]=!0,Ie=function(e,t){return je(e,Ke,t),t},Be=function(e){return He(e,Ke)?e[Ke]:{}},Te=function(e){return He(e,Ke)}}var Xe={set:Ie,get:Be,has:Te,enforce:function(e){return Te(e)?Be(e):Ie(e,{})},getterFor:function(e){return function(t){var n;if(!Me(t)||(n=Be(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},Ze=b,Je=pe,Qe=H,et=ge,tt=xe,nt=Xe.get,rt=Xe.enforce,ot=String(String).split("String");(fe.exports=function(e,t,n,r){var o=!!r&&!!r.unsafe,i=!!r&&!!r.enumerable,a=!!r&&!!r.noTargetGet;"function"==typeof n&&("string"!=typeof t||Qe(n,"name")||Je(n,"name",t),rt(n).source=ot.join("string"==typeof t?t:"")),e!==Ze?(o?!a&&e[t]&&(i=!0):delete e[t],i?e[t]=n:Je(e,t,n)):i?e[t]=n:et(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&nt(this).source||tt(this)}));var it=b,at=b,ct=function(e){return"function"==typeof e?e:void 0},lt=function(e,t){return arguments.length<2?ct(it[e])||ct(at[e]):it[e]&&it[e][t]||at[e]&&at[e][t]},st={},ut=Math.ceil,dt=Math.floor,pt=function(e){return isNaN(e=+e)?0:(e>0?dt:ut)(e)},ft=pt,mt=Math.min,ht=function(e){return e>0?mt(ft(e),9007199254740991):0},gt=pt,vt=Math.max,yt=Math.min,bt=R,wt=ht,xt=function(e){return function(t,n,r){var o,i=bt(t),a=wt(i.length),c=function(e,t){var n=gt(e);return n<0?vt(n+t,0):yt(n,t)}(r,a);if(e&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((e||c in i)&&i[c]===n)return e||c||0;return!e&&-1}},Et={includes:xt(!0),indexOf:xt(!1)},Ct=H,kt=R,St=Et.indexOf,_t=Fe,It=function(e,t){var n,r=kt(e),o=0,i=[];for(n in r)!Ct(_t,n)&&Ct(r,n)&&i.push(n);for(;t.length>o;)Ct(r,n=t[o++])&&(~St(i,n)||i.push(n));return i},Bt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Tt=It,Nt=Bt.concat("length","prototype");st.f=Object.getOwnPropertyNames||function(e){return Tt(e,Nt)};var zt={};zt.f=Object.getOwnPropertySymbols;var Dt,Pt=st,Ot=zt,At=oe,Rt=lt("Reflect","ownKeys")||function(e){var t=Pt.f(At(e)),n=Ot.f;return n?t.concat(n(e)):t},Ft=H,Lt=Rt,Mt=w,jt=ne,Ht=x,Ut=/#|\.prototype\./,Vt=function(e,t){var n=Wt[$t(e)];return n==qt||n!=Gt&&("function"==typeof t?Ht(t):!!t)},$t=Vt.normalize=function(e){return String(e).replace(Ut,".").toLowerCase()},Wt=Vt.data={},Gt=Vt.NATIVE="N",qt=Vt.POLYFILL="P",Yt=Vt,Kt=b,Xt=w.f,Zt=pe,Jt=fe.exports,Qt=ge,en=function(e,t){for(var n=Lt(t),r=jt.f,o=Mt.f,i=0;i<n.length;i++){var a=n[i];Ft(e,a)||r(e,a,o(t,a))}},tn=Yt,nn=function(e,t,n){if(function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function")}(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}},rn=P,on=T,an=Array.isArray||function(e){return"Array"==on(e)},cn=x,ln=!!Object.getOwnPropertySymbols&&!cn((function(){return!String(Symbol())})),sn=ln&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,un=b,dn=Se.exports,pn=H,fn=De,mn=ln,hn=sn,gn=dn("wks"),vn=un.Symbol,yn=hn?vn:vn&&vn.withoutSetter||fn,bn=function(e){return pn(gn,e)||(mn&&pn(vn,e)?gn[e]=vn[e]:gn[e]=yn("Symbol."+e)),gn[e]},wn=F,xn=an,En=bn("species"),Cn=nn,kn=D,Sn=ht,_n=function(e,t){var n;return xn(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!xn(n.prototype)?wn(n)&&null===(n=n[En])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},In=[].push,Bn=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=5==e||i;return function(c,l,s,u){for(var d,p,f=Object(rn(c)),m=kn(f),h=Cn(l,s,3),g=Sn(m.length),v=0,y=u||_n,b=t?y(c,g):n?y(c,0):void 0;g>v;v++)if((a||v in m)&&(p=h(d=m[v],v,f),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return v;case 2:In.call(b,d)}else if(o)return!1;return i?-1:r||o?o:b}},Tn={forEach:Bn(0),map:Bn(1),filter:Bn(2),some:Bn(3),every:Bn(4),find:Bn(5),findIndex:Bn(6)},Nn=It,zn=Bt,Dn=Object.keys||function(e){return Nn(e,zn)},Pn=ne,On=oe,An=Dn,Rn=E?Object.defineProperties:function(e,t){On(e);for(var n,r=An(t),o=r.length,i=0;o>i;)Pn.f(e,n=r[i++],t[n]);return e},Fn=lt("document","documentElement"),Ln=oe,Mn=Rn,jn=Bt,Hn=Fe,Un=Fn,Vn=W,$n=Re("IE_PROTO"),Wn=function(){},Gn=function(e){return"<script>"+e+"<\/script>"},qn=function(){try{Dt=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;qn=Dt?function(e){e.write(Gn("")),e.close();var t=e.parentWindow.Object;return e=null,t}(Dt):((t=Vn("iframe")).style.display="none",Un.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Gn("document.F=Object")),e.close(),e.F);for(var n=jn.length;n--;)delete qn.prototype[jn[n]];return qn()};Hn[$n]=!0;var Yn=Object.create||function(e,t){var n;return null!==e?(Wn.prototype=Ln(e),n=new Wn,Wn.prototype=null,n[$n]=e):n=qn(),void 0===t?n:Mn(n,t)},Kn=Yn,Xn=ne,Zn=bn("unscopables"),Jn=Array.prototype;null==Jn[Zn]&&Xn.f(Jn,Zn,{configurable:!0,value:Kn(null)});var Qn,er=E,tr=x,nr=H,rr=Object.defineProperty,or={},ir=function(e){throw e},ar=Tn.find,cr=!0,lr=function(e,t){if(nr(or,e))return or[e];t||(t={});var n=[][e],r=!!nr(t,"ACCESSORS")&&t.ACCESSORS,o=nr(t,0)?t[0]:ir,i=nr(t,1)?t[1]:void 0;return or[e]=!!n&&!tr((function(){if(r&&!er)return!0;var e={length:-1};r?rr(e,1,{enumerable:!0,get:ir}):e[1]=1,n.call(e,o,i)}))}("find");"find"in[]&&Array(1).find((function(){cr=!1})),function(e,t){var n,r,o,i,a,c=e.target,l=e.global,s=e.stat;if(n=l?Kt:s?Kt[c]||Qt(c,{}):(Kt[c]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Xt(n,r))&&a.value:n[r],!tn(l?r:c+(s?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;en(i,o)}(e.sham||o&&o.sham)&&Zt(i,"sham",!0),Jt(n,r,i,e)}}({target:"Array",proto:!0,forced:cr||!lr},{find:function(e){return ar(this,e,arguments.length>1?arguments[1]:void 0)}}),Qn="find",Jn[Zn][Qn]=!0;var sr=b,ur=nn,dr=Function.call;function pr(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}ur(dr,sr.Array.prototype.find,void 0),function(){if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=window.document;n.prototype.THROTTLE_TIMEOUT=100,n.prototype.POLL_INTERVAL=null,n.prototype.USE_MUTATION_OBSERVER=!0,n.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},n.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},n.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},n.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},n.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]}))},n.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},n.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(r(window,"resize",this._checkForIntersections,!0),r(e,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},n.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,o(window,"resize",this._checkForIntersections,!0),o(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},n.prototype._checkForIntersections=function(){var e=this._rootIsInDom(),n=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(r){var o=r.element,a=i(o),c=this._rootContainsTarget(o),l=r.entry,s=e&&c&&this._computeTargetAndRootIntersection(o,n),u=r.entry=new t({time:window.performance&&performance.now&&performance.now(),target:o,boundingClientRect:a,rootBounds:n,intersectionRect:s});l?e&&c?this._hasCrossedThreshold(l,u)&&this._queuedEntries.push(u):l&&l.isIntersecting&&this._queuedEntries.push(u):this._queuedEntries.push(u)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},n.prototype._computeTargetAndRootIntersection=function(t,n){if("none"!=window.getComputedStyle(t).display){for(var r,o,a,l,s,u,d,p,f=i(t),m=c(t),h=!1;!h;){var g=null,v=1==m.nodeType?window.getComputedStyle(m):{};if("none"==v.display)return;if(m==this.root||m==e?(h=!0,g=n):m!=e.body&&m!=e.documentElement&&"visible"!=v.overflow&&(g=i(m)),g&&(r=g,o=f,void 0,void 0,void 0,void 0,void 0,void 0,a=Math.max(r.top,o.top),l=Math.min(r.bottom,o.bottom),s=Math.max(r.left,o.left),p=l-a,!(f=(d=(u=Math.min(r.right,o.right))-s)>=0&&p>=0&&{top:a,bottom:l,left:s,right:u,width:d,height:p})))break;m=c(m)}return f}},n.prototype._getRootRect=function(){var t;if(this.root)t=i(this.root);else{var n=e.documentElement,r=e.body;t={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(t)},n.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100})),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},n.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var o=0;o<this.thresholds.length;o++){var i=this.thresholds[o];if(i==n||i==r||i<n!=i<r)return!0}},n.prototype._rootIsInDom=function(){return!this.root||a(e,this.root)},n.prototype._rootContainsTarget=function(t){return a(this.root||e,t)},n.prototype._registerInstance=function(){},n.prototype._unregisterInstance=function(){},window.IntersectionObserver=n,window.IntersectionObserverEntry=t}function t(e){this.time=e.time,this.target=e.target,this.rootBounds=e.rootBounds,this.boundingClientRect=e.boundingClientRect,this.intersectionRect=e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0},this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,r=this.intersectionRect,o=r.width*r.height;this.intersectionRatio=n?Number((o/n).toFixed(4)):this.isIntersecting?1:0}function n(e,t){var n,r,o,i=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(i.root&&1!=i.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),r=this.THROTTLE_TIMEOUT,o=null,function(){o||(o=setTimeout((function(){n(),o=null}),r))}),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(i.rootMargin),this.thresholds=this._initThresholds(i.threshold),this.root=i.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" ")}function r(e,t,n,r){"function"==typeof e.addEventListener?e.addEventListener(t,n,r||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function o(e,t,n,r){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,r||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function i(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function a(e,t){for(var n=t;n;){if(n==e)return!0;n=c(n)}return!1}function c(e){var t=e.parentNode;return t&&11==t.nodeType&&t.host?t.host:t&&t.assignedSlot?t.assignedSlot.parentNode:t}}();var fr={};function mr(){return pr()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:fr}function hr(e,t,n){var r=n||mr(),o=r.__SENTRY__=r.__SENTRY__||{};return o[e]||(o[e]=t())}var gr=Object.prototype.toString;function vr(e){switch(gr.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return _r(e,Error)}}function yr(e,t){return gr.call(e)===`[object ${t}]`}function br(e){return yr(e,"ErrorEvent")}function wr(e){return yr(e,"DOMError")}function xr(e){return yr(e,"String")}function Er(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function Cr(e){return yr(e,"Object")}function kr(e){return"undefined"!=typeof Event&&_r(e,Event)}function Sr(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function _r(e,t){try{return e instanceof t}catch(e){return!1}}function Ir(e,t){try{let o=e;var n=[];let i=0,a=0;var r=" > ".length;let c;for(;o&&i++<5&&(c=Br(o,t),!("html"===c||i>1&&a+n.length*r+c.length>=80));)n.push(c),a+=c.length,o=o.parentNode;return n.reverse().join(" > ")}catch(e){return"<unknown>"}}function Br(e,t){var n=e,r=[];let o,i,a,c,l;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());var s=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(s&&s.length)s.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),o=n.className,o&&xr(o))for(i=o.split(/\s+/),l=0;l<i.length;l++)r.push(`.${i[l]}`);var u=["type","name","title","alt"];for(l=0;l<u.length;l++)a=u[l],c=n.getAttribute(a),c&&r.push(`[${a}="${c}"]`);return r.join("")}class Tr extends Error{constructor(e){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype)}}var Nr=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function zr(e,t=!1){const{host:n,path:r,pass:o,port:i,projectId:a,protocol:c,publicKey:l}=e;return`${c}://${l}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r?`${r}/`:r}${a}`}function Dr(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}var Pr=mr(),Or=["debug","info","warn","error","log","assert","trace"];function Ar(e){var t=mr();if(!("console"in t))return e();var n=t.console,r={};Or.forEach((e=>{var o=n[e]&&n[e].__sentry_original__;e in t.console&&o&&(r[e]=n[e],n[e]=o)}));try{return e()}finally{Object.keys(r).forEach((e=>{n[e]=r[e]}))}}function Rr(){let e=!1;var t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?Or.forEach((n=>{t[n]=(...t)=>{e&&Ar((()=>{Pr.console[n](`Sentry Logger [${n}]:`,...t)}))}})):Or.forEach((e=>{t[e]=()=>{}})),t}let Fr;function Lr(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.substr(0,t)}...`}function Mr(e,t){if(!Array.isArray(e))return"";var n=[];for(let t=0;t<e.length;t++){var r=e[t];try{n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function jr(e,t){return!!xr(e)&&(yr(t,"RegExp")?t.test(e):"string"==typeof t&&-1!==e.indexOf(t))}function Hr(e,t,n){if(t in e){var r=e[t],o=n(r);if("function"==typeof o)try{Vr(o,r)}catch(e){}e[t]=o}}function Ur(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function Vr(e,t){var n=t.prototype||{};e.prototype=t.prototype=n,Ur(e,"__sentry_original__",t)}function $r(e){return e.__sentry_original__}function Wr(e){if(vr(e))return{message:e.message,name:e.name,stack:e.stack,...qr(e)};if(kr(e)){var t={type:e.type,target:Gr(e.target),currentTarget:Gr(e.currentTarget),...qr(e)};return"undefined"!=typeof CustomEvent&&_r(e,CustomEvent)&&(t.detail=e.detail),t}return e}function Gr(e){try{return"undefined"!=typeof Element&&_r(e,Element)?Ir(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function qr(e){if("object"==typeof e&&null!==e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function Yr(e,t=40){var n=Object.keys(Wr(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Lr(n[0],t);for(let e=n.length;e>0;e--){var r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:Lr(r,t)}return""}function Kr(e){return Xr(e,new Map)}function Xr(e,t){if(Cr(e)){if(void 0!==(o=t.get(e)))return o;var n={};for(var r of(t.set(e,n),Object.keys(e)))void 0!==e[r]&&(n[r]=Xr(e[r],t));return n}var o;return Array.isArray(e)?void 0!==(o=t.get(e))?o:(n=[],t.set(e,n),e.forEach((e=>{n.push(Xr(e,t))})),n):e}function Zr(...e){var t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{var r=[];for(var o of e.split("\n").slice(n))for(var i of t){var a=i(o);if(a){r.push(a);break}}return function(e){if(!e.length)return[];let t=e;var n=t[0].function||"",r=t[t.length-1].function||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==r.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,50).map((e=>({...e,filename:e.filename||t[0].filename,function:e.function||"?"}))).reverse()}(r)}}function Jr(e){try{return e&&"function"==typeof e&&e.name||"<anonymous>"}catch(e){return"<anonymous>"}}function Qr(){if(!("fetch"in mr()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function eo(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}Fr="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?hr("logger",Rr):Rr();var to=mr(),no={},ro={};function oo(e,t){no[e]=no[e]||[],no[e].push(t),function(e){if(!ro[e])switch(ro[e]=!0,e){case"console":"console"in to&&Or.forEach((function(e){e in to.console&&Hr(to.console,e,(function(t){return function(...n){io("console",{args:n,level:e}),t&&t.apply(to.console,n)}}))}));break;case"dom":!function(){if("document"in to){var e=io.bind(null,"dom"),t=po(e,!0);to.document.addEventListener("click",t,!1),to.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{var n=to[t]&&to[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Hr(n,"addEventListener",(function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{var i=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=i[n]=i[n]||{refCount:0};if(!a.handler){var c=po(e);a.handler=c,t.call(this,n,c,o)}a.refCount+=1}catch(e){}return t.call(this,n,r,o)}})),Hr(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{var o=this.__sentry_instrumentation_handlers__||{},i=o[t];i&&(i.refCount-=1,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete o[t]),0===Object.keys(o).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}}();break;case"xhr":!function(){if("XMLHttpRequest"in to){var e=XMLHttpRequest.prototype;Hr(e,"open",(function(e){return function(...t){var n=this,r=t[1],o=n.__sentry_xhr__={method:xr(t[0])?t[0].toUpperCase():t[0],url:t[1]};xr(r)&&"POST"===o.method&&r.match(/sentry_key/)&&(n.__sentry_own_request__=!0);var i=function(){if(4===n.readyState){try{o.status_code=n.status}catch(e){}io("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:n})}};return"onreadystatechange"in n&&"function"==typeof n.onreadystatechange?Hr(n,"onreadystatechange",(function(e){return function(...t){return i(),e.apply(n,t)}})):n.addEventListener("readystatechange",i),e.apply(n,t)}})),Hr(e,"send",(function(e){return function(...t){return this.__sentry_xhr__&&void 0!==t[0]&&(this.__sentry_xhr__.body=t[0]),io("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}}();break;case"fetch":(function(){if(!Qr())return!1;var e=mr();if(eo(e.fetch))return!0;let t=!1;var n=e.document;if(n&&"function"==typeof n.createElement)try{var r=n.createElement("iframe");r.hidden=!0,n.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=eo(r.contentWindow.fetch)),n.head.removeChild(r)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Fr.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t})()&&Hr(to,"fetch",(function(e){return function(...t){var n={args:t,fetchData:{method:ao(t),url:co(t)},startTimestamp:Date.now()};return io("fetch",{...n}),e.apply(to,t).then((e=>(io("fetch",{...n,endTimestamp:Date.now(),response:e}),e)),(e=>{throw io("fetch",{...n,endTimestamp:Date.now(),error:e}),e}))}}));break;case"history":!function(){if(function(){var e=mr(),t=e.chrome,n=t&&t.app&&t.app.runtime,r="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&r}()){var e=to.onpopstate;to.onpopstate=function(...t){var n=to.location.href,r=lo;if(lo=n,io("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},Hr(to.history,"pushState",t),Hr(to.history,"replaceState",t)}function t(e){return function(...t){var n=t.length>2?t[2]:void 0;if(n){var r=lo,o=String(n);lo=o,io("history",{from:r,to:o})}return e.apply(this,t)}}}();break;case"error":fo=to.onerror,to.onerror=function(e,t,n,r,o){return io("error",{column:r,error:o,line:n,msg:e,url:t}),!!fo&&fo.apply(this,arguments)};break;case"unhandledrejection":mo=to.onunhandledrejection,to.onunhandledrejection=function(e){return io("unhandledrejection",e),!mo||mo.apply(this,arguments)};break;default:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Fr.warn("unknown instrumentation type:",e)}}(e)}function io(e,t){if(e&&no[e])for(var n of no[e]||[])try{n(t)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Fr.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Jr(n)}\nError:`,t)}}function ao(e=[]){return"Request"in to&&_r(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function co(e=[]){return"string"==typeof e[0]?e[0]:"Request"in to&&_r(e[0],Request)?e[0].url:String(e[0])}let lo,so,uo;function po(e,t=!1){return n=>{if(n&&uo!==n&&!function(e){if("keypress"!==e.type)return!1;try{var t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n)){var r="keypress"===n.type?"input":n.type;(void 0===so||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(uo,n))&&(e({event:n,name:r,global:t}),uo=n),clearTimeout(so),so=to.setTimeout((()=>{so=void 0}),1e3)}}}let fo=null,mo=null;function ho(){var e=mr(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=e=>{let t=e.toString(16);for(;t.length<4;)t=`0${t}`;return t};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(e=>{var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function go(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}function vo(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function yo(e){const{message:t,event_id:n}=e;if(t)return t;var r=vo(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function bo(e,t,n){var r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function wo(e,t){var n=vo(e);if(n){var r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){var o={...r&&r.data,...t.data};n.mechanism.data=o}}}function xo(e){if(e&&e.__sentry_captured__)return!0;try{Ur(e,"__sentry_captured__",!0)}catch(e){}return!1}function Eo(e,t=1/0,n=1/0){try{return ko("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Co(e,t=3,n=102400){var r,o=Eo(e,t);return r=o,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(r))>n?Co(e,t-1,n):o}function ko(e,t,n=1/0,r=1/0,o=function(){var e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++){var r=t[e];if(r===n)return!0}return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[i,a]=o;if(null===t||["number","boolean","string"].includes(typeof t)&&("number"!=typeof(c=t)||c==c))return t;var c,l=function(e,t){try{return"domain"===e&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":function(e){return Cr(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?`[Function: ${Jr(t)}]`:"symbol"==typeof t?`[${String(t)}]`:"bigint"==typeof t?`[BigInt: ${String(t)}]`:`[object ${Object.getPrototypeOf(t).constructor.name}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!l.startsWith("[object "))return l;if(t.__sentry_skip_normalization__)return t;if(0===n)return l.replace("object ","");if(i(t))return"[Circular ~]";var s=t;if(s&&"function"==typeof s.toJSON)try{return ko("",s.toJSON(),n-1,r,o)}catch(e){}var u=Array.isArray(t)?[]:{};let d=0;var p=Wr(t);for(var f in p)if(Object.prototype.hasOwnProperty.call(p,f)){if(d>=r){u[f]="[MaxProperties ~]";break}var m=p[f];u[f]=ko(f,m,n-1,r,o),d+=1}return a(t),u}var So;function _o(e){return new Bo((t=>{t(e)}))}function Io(e){return new Bo(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(So||(So={}));class Bo{__init(){this._state=So.PENDING}__init2(){this._handlers=[]}constructor(e){Bo.prototype.__init.call(this),Bo.prototype.__init2.call(this),Bo.prototype.__init3.call(this),Bo.prototype.__init4.call(this),Bo.prototype.__init5.call(this),Bo.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new Bo(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new Bo(((t,n)=>{let r,o;return this.then((t=>{o=!1,r=t,e&&e()}),(t=>{o=!0,r=t,e&&e()})).then((()=>{o?n(r):t(r)}))}))}__init3(){this._resolve=e=>{this._setResult(So.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(So.REJECTED,e)}}__init5(){this._setResult=(e,t)=>{this._state===So.PENDING&&(Sr(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init6(){this._executeHandlers=()=>{if(this._state!==So.PENDING){var e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===So.RESOLVED&&e[1](this._value),this._state===So.REJECTED&&e[2](this._value),e[0]=!0)}))}}}}var To=["fatal","error","warning","log","info","debug"],No={nowSeconds:()=>Date.now()/1e3},zo=pr()?function(){try{return(e=module,"perf_hooks",e.require("perf_hooks")).performance}catch(e){return}var e}():function(){const{performance:e}=mr();if(e&&e.now)return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),Do=void 0===zo?No:{nowSeconds:()=>(zo.timeOrigin+zo.now())/1e3},Po=No.nowSeconds.bind(No),Oo=Do.nowSeconds.bind(Do);function Ao(e,t=[]){return[e,t]}function Ro(e,t){const[n,r]=e;return[n,[...r,t]]}function Fo(e,t){e[1].forEach((e=>{var n=e[0].type;t(e,n)}))}function Lo(e,t){return(t||new TextEncoder).encode(e)}function Mo(e,t){const[n,r]=e;let o=JSON.stringify(n);function i(e){"string"==typeof o?o="string"==typeof e?o+e:[Lo(o,t),e]:o.push("string"==typeof e?Lo(e,t):e)}for(var a of r){const[e,t]=a;i(`\n${JSON.stringify(e)}\n`),i("string"==typeof t||t instanceof Uint8Array?t:JSON.stringify(t))}return"string"==typeof o?o:function(e){var t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(var o of e)n.set(o,r),r+=o.length;return n}(o)}function jo(e,t){var n="string"==typeof e.data?Lo(e.data,t):e.data;return[Kr({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}(()=>{const{performance:e}=mr();if(e&&e.now){var t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=o<t,a=e.timing&&e.timing.navigationStart,c="number"==typeof a?Math.abs(a+n-r):t;(i||c<t)&&o<=c&&e.timeOrigin}})();var Ho={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default"};function Uo(e){return Ho[e]}function Vo(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Oo(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:ho()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{var n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}class $o{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(e){var t=new $o;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments]),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&Vo(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts={...this._contexts,[e]:t},this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){var e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){var t=e(this);return t instanceof $o?t:this}return e instanceof $o?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):Cr(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(e,t){var n="number"==typeof t?Math.min(t,100):100;if(n<=0)return this;var r={timestamp:Po(),...e};return this._breadcrumbs=[...this._breadcrumbs,r].slice(-n),this._notifyScopeListeners(),this}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};var n=this._span.transaction&&this._span.transaction.name;n&&(e.tags={transaction:n,...e.tags})}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...Wo(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,t,n,r=0){return new Bo(((o,i)=>{var a=e[r];if(null===t||"function"!=typeof a)o(t);else{var c=a({...t},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.id&&null===c&&Fr.log(`Event processor "${a.id}" dropped event`),Sr(c)?c.then((t=>this._notifyEventProcessors(e,t,n,r+1).then(o))).then(null,i):this._notifyEventProcessors(e,c,n,r+1).then(o).then(null,i)}}))}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function Wo(){return hr("globalEventProcessors",(()=>[]))}function Go(e){Wo().push(e)}var qo=100;class Yo{__init(){this._stack=[{}]}constructor(e,t=new $o,n=4){this._version=n,Yo.prototype.__init.call(this),this.getStackTop().scope=t,e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){var e=$o.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}withScope(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){var n=this._lastEventId=t&&t.event_id?t.event_id:ho(),r=new Error("Sentry syntheticException");return this._withClient(((o,i)=>{o.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},i)})),n}captureMessage(e,t,n){var r=this._lastEventId=n&&n.event_id?n.event_id:ho(),o=new Error(e);return this._withClient(((i,a)=>{i.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},a)})),r}captureEvent(e,t){var n=t&&t.event_id?t.event_id:ho();return"transaction"!==e.type&&(this._lastEventId=n),this._withClient(((r,o)=>{r.captureEvent(e,{...t,event_id:n},o)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!n||!r)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=qo}=r.getOptions&&r.getOptions()||{};if(!(i<=0)){var a={timestamp:Po(),...e},c=o?Ar((()=>o(a,t))):a;null!==c&&n.addBreadcrumb(c,i)}}setUser(e){var t=this.getScope();t&&t.setUser(e)}setTags(e){var t=this.getScope();t&&t.setTags(e)}setExtras(e){var t=this.getScope();t&&t.setExtras(e)}setTag(e,t){var n=this.getScope();n&&n.setTag(e,t)}setExtra(e,t){var n=this.getScope();n&&n.setExtra(e,t)}setContext(e,t){var n=this.getScope();n&&n.setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();t&&n&&e(t)}run(e){var t=Xo(this);try{e(this)}finally{Xo(t)}}getIntegration(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Fr.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){return this._callExtensionMethod("startTransaction",e,t)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){var e=this.getStackTop(),t=e&&e.scope,n=t&&t.getSession();n&&function(e,t){let n={};"ok"===e.status&&(n={status:"exited"}),Vo(e,n)}(n),this._sendSessionUpdate(),t&&t.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:o}=n&&n.getOptions()||{};var i=mr();const{userAgent:a}=i.navigator||{};var c=function(e){var t=Oo(),n={sid:ho(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return Kr({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&Vo(n,e),n}({release:r,environment:o,...t&&{user:t.getUser()},...a&&{userAgent:a},...e});if(t){var l=t.getSession&&t.getSession();l&&"ok"===l.status&&Vo(l,{status:"exited"}),this.endSession(),t.setSession(c)}return c}shouldSendDefaultPii(){var e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop();if(e){var n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}}_withClient(e){const{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){var n=Ko().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Fr.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function Ko(){var e=mr();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function Xo(e){var t=Ko(),n=Qo(t);return ei(t,e),n}function Zo(){var e=Ko();return Jo(e)&&!Qo(e).isOlderThan(4)||ei(e,new Yo),pr()?function(e){try{var t=Ko().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return Qo(e);if(!Jo(n)||Qo(n).isOlderThan(4)){var r=Qo(e).getStackTop();ei(n,new Yo(r.client,$o.clone(r.scope)))}return Qo(n)}catch(t){return Qo(e)}}(e):Qo(e)}function Jo(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function Qo(e){return hr("hub",(()=>new Yo),e)}function ei(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}function ti(e,t){return Zo().captureException(e,{captureContext:t})}function ni(e){Zo().withScope(e)}function ri(e,t){return t||`${function(e){return`${function(e){var t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(e)}?${function(e){return t={sentry_key:e.publicKey,sentry_version:"7"},Object.keys(t).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`)).join("&");var t}(e)}`}function oi(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}var ii=[];function ai(e){return e.reduce(((e,t)=>(e.every((e=>t.name!==e.name))&&e.push(t),e)),[])}function ci(e){var t=e.defaultIntegrations&&[...e.defaultIntegrations]||[],n=e.integrations;let r=[...ai(t)];Array.isArray(n)?r=[...r.filter((e=>n.every((t=>t.name!==e.name)))),...ai(n)]:"function"==typeof n&&(r=n(r),r=Array.isArray(r)?r:[r]);var o=r.map((e=>e.name)),i="Debug";return-1!==o.indexOf(i)&&r.push(...r.splice(o.indexOf(i),1)),r}var li="Not capturing exception because it's already been captured.";class si{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}constructor(e){if(si.prototype.__init.call(this),si.prototype.__init2.call(this),si.prototype.__init3.call(this),si.prototype.__init4.call(this),this._options=e,e.dsn){this._dsn=(n=e.dsn,r="string"==typeof n?function(e){var t=Nr.exec(e);if(!t)throw new Tr(`Invalid Sentry Dsn: ${e}`);const[n,r,o="",i,a="",c]=t.slice(1);let l="",s=c;var u=s.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),s=u.pop()),s){var d=s.match(/^\d+/);d&&(s=d[0])}return Dr({host:i,pass:o,path:l,projectId:s,port:a,protocol:n,publicKey:r})}(n):Dr(n),function(e){if("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return;const{port:t,projectId:n,protocol:r}=e;if(["protocol","publicKey","host","projectId"].forEach((t=>{if(!e[t])throw new Tr(`Invalid Sentry Dsn: ${t} missing`)})),!n.match(/^\d+$/))throw new Tr(`Invalid Sentry Dsn: Invalid projectId ${n}`);if(!function(e){return"http"===e||"https"===e}(r))throw new Tr(`Invalid Sentry Dsn: Invalid protocol ${r}`);if(t&&isNaN(parseInt(t,10)))throw new Tr(`Invalid Sentry Dsn: Invalid port ${t}`)}(r),r);var t=ri(this._dsn,e.tunnel);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Fr.warn("No DSN provided, client will not do anything.");var n,r}captureException(e,t,n){if(xo(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Fr.log(li));let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{r=e}))),r}captureMessage(e,t,n,r){let o=n&&n.event_id;var i=Er(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this._process(i.then((e=>this._captureEvent(e,n,r))).then((e=>{o=e}))),o}captureEvent(e,t,n){if(t&&t.originalException&&xo(t.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Fr.log(li));let r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((e=>{r=e}))),r}captureSession(e){this._isEnabled()?"string"!=typeof e.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Fr.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),Vo(e,{init:!1})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Fr.warn("SDK not enabled, will not capture session.")}getDsn(){return this._dsn}getOptions(){return this._options}getTransport(){return this._transport}flush(e){var t=this._transport;return t?this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e)))):_o(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,e)))}setupIntegrations(){var e,t;this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=(e=this._options.integrations,t={},e.forEach((e=>{t[e.name]=e,-1===ii.indexOf(e.name)&&(e.setupOnce(Go,Zo),ii.push(e.name),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Fr.log(`Integration installed: ${e.name}`))})),t),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Fr.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}sendEvent(e,t={}){if(this._dsn){let r=function(e,t,n,r){var o=oi(n),i=e.type||"event";const{transactionSampling:a}=e.sdkProcessingMetadata||{},{method:c,rate:l}=a||{};!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);var s=function(e,t,n,r){var o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.baggage,i=o&&function(e){return e[0]}(o);return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&{dsn:zr(r)},..."transaction"===e.type&&i&&{trace:Kr({...i})}}}(e,o,r,t);return delete e.sdkProcessingMetadata,Ao(s,[[{type:i,sample_rates:[{id:c,rate:l}]},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(var n of t.attachments||[])r=Ro(r,jo(n,this._options.transportOptions&&this._options.transportOptions.textEncoder));this._sendEnvelope(r)}}sendSession(e){if(this._dsn){var t=function(e,t,n,r){var o=oi(n);return Ao({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&{dsn:zr(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}}recordDroppedEvent(e,t){if(this._options.sendClientReports){var n=`${e}:${t}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Fr.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}_updateSessionFromEvent(e,t){let n=!1,r=!1;var o=t.exception&&t.exception.values;if(o)for(var i of(r=!0,o)){var a=i.mechanism;if(a&&!1===a.handled){n=!0;break}}var c="ok"===e.status;(c&&0===e.errors||c&&n)&&(Vo(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new Bo((t=>{let n=0;var r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(e,t,n){const{normalizeDepth:r=3,normalizeMaxBreadth:o=1e3}=this.getOptions();var i={...e,event_id:e.event_id||t.event_id||ho(),timestamp:e.timestamp||Po()};this._applyClientOptions(i),this._applyIntegrationsMetadata(i);let a=n;t.captureContext&&(a=$o.clone(a).update(t.captureContext));let c=_o(i);if(a){var l=[...t.attachments||[],...a.getAttachments()];l.length&&(t.attachments=l),c=a.applyToEvent(i,t)}return c.then((e=>"number"==typeof r&&r>0?this._normalizeEvent(e,r,o):e))}_normalizeEvent(e,t,n){if(!e)return null;var r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:Eo(e.data,t,n)}})))},...e.user&&{user:Eo(e.user,t,n)},...e.contexts&&{contexts:Eo(e.contexts,t,n)},...e.extra&&{extra:Eo(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Eo(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>(e.data&&(e.data=Eo(e.data,t,n)),e)))),r}_applyClientOptions(e){var t=this.getOptions();const{environment:n,release:r,dist:o,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==o&&(e.dist=o),e.message&&(e.message=Lr(e.message,i));var a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=Lr(a.value,i));var c=e.request;c&&c.url&&(c.url=Lr(c.url,i))}_applyIntegrationsMetadata(e){var t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Fr.warn(e)}))}_processEvent(e,t,n){const{beforeSend:r,sampleRate:o}=this.getOptions();if(!this._isEnabled())return Io(new Tr("SDK not enabled, will not capture event."));var i="transaction"===e.type;return!i&&"number"==typeof o&&Math.random()>o?(this.recordDroppedEvent("sample_rate","error"),Io(new Tr(`Discarding event because it's not included in the random sample (sampling rate = ${o})`))):this._prepareEvent(e,t,n).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",e.type||"error"),new Tr("An event processor returned null, will not send event.");return t.data&&!0===t.data.__sentry__||i||!r?n:function(e){var t="`beforeSend` method has to return `null` or a valid event.";if(Sr(e))return e.then((e=>{if(!Cr(e)&&null!==e)throw new Tr(t);return e}),(e=>{throw new Tr(`beforeSend rejected with ${e}`)}));if(!Cr(e)&&null!==e)throw new Tr(t);return e}(r(n,t))})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",e.type||"error"),new Tr("`beforeSend` returned `null`, will not send event.");var o=n&&n.getSession();return!i&&o&&this._updateSessionFromEvent(o,r),this.sendEvent(r,t),r})).then(null,(e=>{if(e instanceof Tr)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Tr(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing+=1,e.then((e=>(this._numProcessing-=1,e)),(e=>(this._numProcessing-=1,e)))}_sendEnvelope(e){this._transport&&this._dsn?this._transport.send(e).then(null,(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Fr.error("Error while sending event:",e)})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Fr.error("Transport disabled")}_clearOutcomes(){var e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}}))}}function ui(e,t,n=function(e){var t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return Io(new Tr("Not adding Promise due to buffer limit reached."));var o=r();return-1===t.indexOf(o)&&t.push(o),o.then((()=>n(o))).then(null,(()=>n(o).then(null,(()=>{})))),o},drain:function(e){return new Bo(((n,r)=>{let o=t.length;if(!o)return n(!0);var i=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{_o(e).then((()=>{--o||(clearTimeout(i),n(!0))}),r)}))}))}}}(e.bufferSize||30)){let r={};return{send:function(o){var i=[];if(Fo(o,((t,n)=>{var o=Uo(n);!function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,o)?i.push(t):e.recordDroppedEvent("ratelimit_backoff",o)})),0===i.length)return _o();var a=Ao(o[0],i),c=t=>{Fo(a,((n,r)=>{e.recordDroppedEvent(t,Uo(r))}))};return n.add((()=>t({body:Mo(a,e.textEncoder)}).then((e=>{void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Fr.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,{statusCode:t,headers:n},r=Date.now()){var o={...e},i=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(i)for(var c of i.trim().split(",")){const[e,t]=c.split(":",2);var l=parseInt(e,10),s=1e3*(isNaN(l)?60:l);if(t)for(var u of t.split(";"))o[u]=r+s;else o.all=r+s}else a?o.all=r+function(e,t=Date.now()){var n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(a,r):429===t&&(o.all=r+6e4);return o}(r,e)}),(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Fr.error("Failed while sending event:",e),c("network_error")})))).then((e=>e),(e=>{if(e instanceof Tr)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Fr.error("Skipped sending event due to full buffer"),c("queue_overflow"),_o();throw e}))},flush:e=>n.drain(e)}}let di;class pi{constructor(){pi.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=pi.id}setupOnce(){di=Function.prototype.toString,Function.prototype.toString=function(...e){var t=$r(this)||this;return di.apply(t,e)}}}pi.__initStatic();var fi=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class mi{static __initStatic(){this.id="InboundFilters"}__init(){this.name=mi.id}constructor(e={}){this._options=e,mi.prototype.__init.call(this)}setupOnce(e,t){var n=e=>{var n=t();if(n){var r=n.getIntegration(mi);if(r){var o=n.getClient(),i=o?o.getOptions():{},a=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...fi],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(r._options,i);return function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Fr.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${yo(e)}`),!0):function(e,t){return!(!t||!t.length)&&function(e){if(e.message)return[e.message];if(e.exception)try{const{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Fr.error(`Cannot extract message for event ${yo(e)}`),[]}return[]}(e).some((e=>t.some((t=>jr(e,t)))))}(e,t.ignoreErrors)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Fr.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${yo(e)}`),!0):function(e,t){if(!t||!t.length)return!1;var n=hi(e);return!!n&&t.some((e=>jr(n,e)))}(e,t.denyUrls)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Fr.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${yo(e)}.\nUrl: ${hi(e)}`),!0):!function(e,t){if(!t||!t.length)return!0;var n=hi(e);return!n||t.some((e=>jr(n,e)))}(e,t.allowUrls)&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Fr.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${yo(e)}.\nUrl: ${hi(e)}`),!0)}(e,a)?null:e}}return e};n.id=this.name,e(n)}}function hi(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let n=e.length-1;n>=0;n--){var t=e[n];if(t&&"<anonymous>"!==t.filename&&"[native code]"!==t.filename)return t.filename||null}return null}(t):null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Fr.error(`Cannot extract url for event ${yo(e)}`),null}}function gi(e,t){var n=yi(e,t),r={type:t&&t.name,value:wi(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function vi(e,t){return{exception:{values:[gi(e,t)]}}}function yi(e,t){var n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(bi.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}mi.__initStatic();var bi=/Minified React error #\d+;/i;function wi(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function xi(e,t,n,r,o){let i;if(br(t)&&t.error)return vi(e,t.error);if(wr(t)||yr(t,"DOMException")){var a=t;if("stack"in t)i=vi(e,t);else{var c=a.name||(wr(a)?"DOMError":"DOMException"),l=a.message?`${c}: ${a.message}`:c;i=Ei(e,l,n,r),bo(i,l)}return"code"in a&&(i.tags={...i.tags,"DOMException.code":`${a.code}`}),i}return vr(t)?vi(e,t):Cr(t)||kr(t)?(i=function(e,t,n,r){var o={exception:{values:[{type:kr(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:`Non-Error ${r?"promise rejection":"exception"} captured with keys: ${Yr(t)}`}]},extra:{__serialized__:Co(t)}};if(n){var i=yi(e,n);i.length&&(o.exception.values[0].stacktrace={frames:i})}return o}(e,t,n,o),wo(i,{synthetic:!0}),i):(i=Ei(e,t,n,r),bo(i,`${t}`,void 0),wo(i,{synthetic:!0}),i)}function Ei(e,t,n,r){var o={message:t};if(r&&n){var i=yi(e,n);i.length&&(o.exception={values:[{value:t,stacktrace:{frames:i}}]})}return o}class Ci{static __initStatic(){this.id="Breadcrumbs"}__init(){this.name=Ci.id}constructor(e){Ci.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){var e;this.options.console&&oo("console",ki),this.options.dom&&oo("dom",(e=this.options.dom,function(t){let n,r="object"==typeof e?e.serializeAttribute:void 0;"string"==typeof r&&(r=[r]);try{n=t.event.target?Ir(t.event.target,r):Ir(t.event,r)}catch(e){n="<unknown>"}0!==n.length&&Zo().addBreadcrumb({category:`ui.${t.name}`,message:n},{event:t.event,name:t.name,global:t.global})})),this.options.xhr&&oo("xhr",Si),this.options.fetch&&oo("fetch",_i),this.options.history&&oo("history",Ii)}}function ki(e){var t,n={category:"console",data:{arguments:e.args,logger:"console"},level:(t=e.level,"warn"===t?"warning":To.includes(t)?t:"log"),message:Mr(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${Mr(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}Zo().addBreadcrumb(n,{input:e.args,level:e.level})}function Si(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;const{method:t,url:n,status_code:r,body:o}=e.xhr.__sentry_xhr__||{};Zo().addBreadcrumb({category:"xhr",data:{method:t,url:n,status_code:r},type:"http"},{xhr:e.xhr,input:o})}}function _i(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?Zo().addBreadcrumb({category:"fetch",data:e.fetchData,level:"error",type:"http"},{data:e.error,input:e.args}):Zo().addBreadcrumb({category:"fetch",data:{...e.fetchData,status_code:e.response.status},type:"http"},{input:e.args,response:e.response})))}function Ii(e){var t=mr();let n=e.from,r=e.to;var o=go(t.location.href);let i=go(n);var a=go(r);i.path||(i=o),o.protocol===a.protocol&&o.host===a.host&&(r=a.relative),o.protocol===i.protocol&&o.host===i.host&&(n=i.relative),Zo().addBreadcrumb({category:"navigation",data:{from:n,to:r}})}Ci.__initStatic();var Bi=mr();let Ti;function Ni(){if(Ti)return Ti;if(eo(Bi.fetch))return Ti=Bi.fetch.bind(Bi);var e=Bi.document;let t=Bi.fetch;if(e&&"function"==typeof e.createElement)try{var n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);var r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Fr.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return Ti=t.bind(Bi)}var zi=mr();class Di extends si{constructor(e){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:"7.6.0"}],version:"7.6.0"},super(e),e.sendClientReports&&zi.document&&zi.document.addEventListener("visibilitychange",(()=>{"hidden"===zi.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,r){var o=xi(e,t,n&&n.syntheticException||void 0,r);return wo(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),_o(o)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,o){var i=Ei(e,t,r&&r.syntheticException||void 0,o);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),_o(i)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}sendEvent(e,t){var n=this.getIntegrationById("Breadcrumbs");n&&n.options&&n.options.sentry&&Zo().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:yo(e)},{event:e}),super.sendEvent(e,t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){var e=this._clearOutcomes();if(0!==e.length)if(this._dsn){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Fr.log("Sending outcomes:",e);var t,n,r=ri(this._dsn,this._options.tunnel),o=(t=e,Ao((n=this._options.tunnel&&zr(this._dsn))?{dsn:n}:{},[[{type:"client_report"},{timestamp:Po(),discarded_events:t}]]));try{!function(e,t){"[object Navigator]"===Object.prototype.toString.call(Bi&&Bi.navigator)&&"function"==typeof Bi.navigator.sendBeacon?Bi.navigator.sendBeacon.bind(Bi.navigator)(e,t):Qr()&&Ni()(e,{body:t,method:"POST",credentials:"omit",keepalive:!0}).then(null,(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Fr.error(e)}))}(r,Mo(o))}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Fr.error(e)}}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Fr.log("No dsn provided, will not send outcomes");else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Fr.log("No outcomes to send")}}function Pi(e,t=Ni()){return ui(e,(function(n){var r={body:n.body,method:"POST",referrerPolicy:"origin",headers:e.headers,...e.fetchOptions};return t(e.url,r).then((e=>({statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}))}function Oi(e){return ui(e,(function(t){return new Bo(((n,r)=>{var o=new XMLHttpRequest;for(var i in o.onerror=r,o.onreadystatechange=()=>{4===o.readyState&&n({statusCode:o.status,headers:{"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")}})},o.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,i)&&o.setRequestHeader(i,e.headers[i]);o.send(t.body)}))}))}function Ai(e,t,n,r){var o={filename:e,function:t,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}var Ri=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Fi=/\((\S*)(?::(\d+))(?::(\d+))\)/,Li=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Mi=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ji=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Hi=Zr([30,e=>{var t=Ri.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){var n=Fi.exec(t[2]);n&&(t[2]=n[1],t[3]=n[2],t[4]=n[3])}const[e,r]=Ui(t[1]||"?",t[2]);return Ai(r,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{var t=Li.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var n=Mi.exec(t[3]);n&&(t[1]=t[1]||"eval",t[3]=n[1],t[4]=n[2],t[5]="")}let e=t[3],r=t[1]||"?";return[r,e]=Ui(r,e),Ai(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{var t=ji.exec(e);return t?Ai(t[2],t[1]||"?",+t[3],t[4]?+t[4]:void 0):void 0}]),Ui=(e,t)=>{var n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};let Vi=0;function $i(){return Vi>0}function Wi(){Vi+=1,setTimeout((()=>{Vi-=1}))}function Gi(e,t={},n){if("function"!=typeof e)return e;try{var r=e.__sentry_wrapped__;if(r)return r;if($r(e))return e}catch(t){return e}var o=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var o=r.map((e=>Gi(e,t)));return e.apply(this,o)}catch(e){throw Wi(),ni((n=>{n.addEventProcessor((e=>(t.mechanism&&(bo(e,void 0,void 0),wo(e,t.mechanism)),e.extra={...e.extra,arguments:r},e))),ti(e)})),e}};try{for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(o[i]=e[i])}catch(e){}Vr(o,e),Ur(e,"__sentry_wrapped__",o);try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get:()=>e.name})}catch(e){}return o}class qi{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=qi.id}__init2(){this._installFunc={onerror:Yi,onunhandledrejection:Ki}}constructor(e){qi.prototype.__init.call(this),qi.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...e}}setupOnce(){Error.stackTraceLimit=50;var e,t=this._options;for(var n in t){var r=this._installFunc[n];r&&t[n]&&(e=n,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Fr.log(`Global Handler attached: ${e}`),r(),this._installFunc[n]=void 0)}}}function Yi(){oo("error",(e=>{const[t,n,r]=Ji();if(!t.getIntegration(qi))return;const{msg:o,url:i,line:a,column:c,error:l}=e;if(!($i()||l&&l.__sentry_own_request__)){var s=void 0===l&&xr(o)?function(e,t,n,r){let o=br(e)?e.message:e,i="Error";var a=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return a&&(i=a[1],o=a[2]),Xi({exception:{values:[{type:i,value:o}]}},t,n,r)}(o,i,a,c):Xi(xi(n,l||o,void 0,r,!1),i,a,c);s.level="error",Zi(t,l,s,"onerror")}}))}function Ki(){oo("unhandledrejection",(e=>{const[t,n,r]=Ji();if(!t.getIntegration(qi))return;let o=e;try{"reason"in e?o=e.reason:"detail"in e&&"reason"in e.detail&&(o=e.detail.reason)}catch(e){}if($i()||o&&o.__sentry_own_request__)return!0;var i=Er(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:xi(n,o,void 0,r,!0);i.level="error",Zi(t,o,i,"onunhandledrejection")}))}function Xi(e,t,n,r){var o=e.exception=e.exception||{},i=o.values=o.values||[],a=i[0]=i[0]||{},c=a.stacktrace=a.stacktrace||{},l=c.frames=c.frames||[],s=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,d=xr(t)&&t.length>0?t:function(){var e=mr();try{return e.document.location.href}catch(e){return""}}();return 0===l.length&&l.push({colno:s,filename:d,function:"?",in_app:!0,lineno:u}),e}function Zi(e,t,n,r){wo(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function Ji(){var e=Zo(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}qi.__initStatic();var Qi=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class ea{static __initStatic(){this.id="TryCatch"}__init(){this.name=ea.id}constructor(e){ea.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){var e=mr();this._options.setTimeout&&Hr(e,"setTimeout",ta),this._options.setInterval&&Hr(e,"setInterval",ta),this._options.requestAnimationFrame&&Hr(e,"requestAnimationFrame",na),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&Hr(XMLHttpRequest.prototype,"send",ra);var t=this._options.eventTarget;t&&(Array.isArray(t)?t:Qi).forEach(oa)}}function ta(e){return function(...t){var n=t[0];return t[0]=Gi(n,{mechanism:{data:{function:Jr(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function na(e){return function(t){return e.apply(this,[Gi(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Jr(e)},handled:!0,type:"instrument"}})])}}function ra(e){return function(...t){var n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&Hr(n,e,(function(t){var n={mechanism:{data:{function:e,handler:Jr(t)},handled:!0,type:"instrument"}},r=$r(t);return r&&(n.mechanism.data.handler=Jr(r)),Gi(t,n)}))})),e.apply(this,t)}}function oa(e){var t=mr(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Hr(n,"addEventListener",(function(t){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=Gi(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Jr(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.apply(this,[n,Gi(r,{mechanism:{data:{function:"addEventListener",handler:Jr(r),target:e},handled:!0,type:"instrument"}}),o])}})),Hr(n,"removeEventListener",(function(e){return function(t,n,r){var o=n;try{var i=o&&o.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch(e){}return e.call(this,t,o,r)}})))}ea.__initStatic();class ia{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=ia.id}constructor(e={}){ia.prototype.__init.call(this),this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){var e=Zo().getClient();e&&Go(((t,n)=>{var r=Zo().getIntegration(ia);return r?function(e,t,n,r,o){if(!(r.exception&&r.exception.values&&o&&_r(o.originalException,Error)))return r;var i=aa(e,n,o.originalException,t);return r.exception.values=[...i,...r.exception.values],r}(e.getOptions().stackParser,r._key,r._limit,t,n):t}))}}function aa(e,t,n,r,o=[]){if(!_r(n[r],Error)||o.length+1>=t)return o;var i=gi(e,n[r]);return aa(e,t,n[r],r,[i,...o])}ia.__initStatic();var ca=mr();class la{constructor(){la.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=la.id}setupOnce(){Go((e=>{if(Zo().getIntegration(la)){if(!ca.navigator&&!ca.location&&!ca.document)return e;var t=e.request&&e.request.url||ca.location&&ca.location.href;const{referrer:r}=ca.document||{},{userAgent:o}=ca.navigator||{};var n={...t&&{url:t},headers:{...e.request&&e.request.headers,...r&&{Referer:r},...o&&{"User-Agent":o}}};return{...e,request:n}}return e}))}}la.__initStatic();class sa{constructor(){sa.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=sa.id}setupOnce(e,t){var n=e=>{var n=t().getIntegration(sa);if(n){try{if(function(e,t){return!!t&&(!!function(e,t){var n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!da(e,t)&&!!ua(e,t))))}(e,t)||!!function(e,t){var n=pa(t),r=pa(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!da(e,t)&&!!ua(e,t)))}(e,t))}(e,n._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Fr.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){return n._previousEvent=e}return n._previousEvent=e}return e};n.id=this.name,e(n)}}function ua(e,t){let n=fa(e),r=fa(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let e=0;e<r.length;e++){var o=r[e],i=n[e];if(o.filename!==i.filename||o.lineno!==i.lineno||o.colno!==i.colno||o.function!==i.function)return!1}return!0}function da(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function pa(e){return e.exception&&e.exception.values&&e.exception.values[0]}function fa(e){var t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}sa.__initStatic();var ma=[new mi,new pi,new ea,new Ci,new qi,new ia,new sa,new la];function ha(e){e.startSession({ignoreDuration:!0}),e.captureSession()}var ga=n(null),va={field:"CREATED_AT",direction:"DESC"};function ya(e){var n=r(va),i=n[0],a=n[1],c=r(va),l=c[0],s=c[1],u=r(va),d=u[0],p=u[1];function f(e,t){"assets"===e?a(t):"collections"===e?s(t):p(t)}function m(){a(va),s(va),p(va)}var h=o((function(){return{assets:i,collections:l,collection:d,setOrdering:f,reset:m}}),[i,d,l]);return t.createElement(ga.Provider,{value:h},e.children)}function ba(e){var t=function(){var e=i(ga);if(null===e)throw new Error("useOrdering must be used with a OrderingProvider");return e}();return[t[e],function(n){return t.setOrdering(e,n)}]}
|
|
8
8
|
/*! *****************************************************************************
|
|
9
9
|
Copyright (c) Microsoft Corporation.
|
|
10
10
|
|
|
@@ -18,9 +18,179 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
18
18
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
19
19
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
20
20
|
PERFORMANCE OF THIS SOFTWARE.
|
|
21
|
-
***************************************************************************** */var ba=function(e,t){return ba=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},ba(e,t)},wa=function(){return wa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},wa.apply(this,arguments)};function xa(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Ea(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function c(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}l((r=r.apply(e,t||[])).next())}))}function Ca(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}function ka(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function Sa(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var _a=t(null);function Ia(t){var r=n({page:"assets"});return e.createElement(_a.Provider,{value:r},t.children)}function Ta(){var e=o(_a);if(null===e)throw new Error("useRouter must be used with a RouterProvider");return e}var Ba=t(null),za={assets:"",collection:"",collections:"",isLoading:!1};function Pa(t){var o=n(za),a=o[0],c=o[1],l=Ta()[0];function s(e,t){var n=""!==t;c((function(r){var o;return wa(wa({},r),((o={})[e]=t,o.isLoading=n,o))}))}function u(e){c((function(t){return wa(wa({},t),{isLoading:e})}))}function d(){c(za)}i((function(){var e;s("assets",null!==(e=t.defaultValue)&&void 0!==e?e:"")}),[t.defaultValue]),i((function(){c((function(e){return wa(wa({},e),{collection:""})}))}),[l]);var p=r((function(){return wa(wa({},a),{setSearch:s,setIsLoading:u,clear:d})}),[a]);return e.createElement(Ba.Provider,{value:p},t.children)}function Na(){var e=o(Ba);if(null===e)throw new Error("useSearchState must be used within a SearchStateContext");return e}function Da(e){var t=Na();return{value:t[e],isLoading:t.isLoading,setSearch:function(n){return t.setSearch(e,n)},setIsLoading:t.setIsLoading}}var Oa={error:console.error},Aa=t(null),Ra=Aa.Provider,La=function(){var e=o(Aa);if(!e)throw new Error("useRootElement must be used withn a RootElementProvider");return e},Fa={exports:{}},Ma={},ja="function"==typeof Symbol&&Symbol.for,Ha=ja?Symbol.for("react.element"):60103,Ua=ja?Symbol.for("react.portal"):60106,Va=ja?Symbol.for("react.fragment"):60107,$a=ja?Symbol.for("react.strict_mode"):60108,Wa=ja?Symbol.for("react.profiler"):60114,Ya=ja?Symbol.for("react.provider"):60109,Ga=ja?Symbol.for("react.context"):60110,qa=ja?Symbol.for("react.async_mode"):60111,Ka=ja?Symbol.for("react.concurrent_mode"):60111,Xa=ja?Symbol.for("react.forward_ref"):60112,Za=ja?Symbol.for("react.suspense"):60113,Ja=ja?Symbol.for("react.suspense_list"):60120,Qa=ja?Symbol.for("react.memo"):60115,ec=ja?Symbol.for("react.lazy"):60116,tc=ja?Symbol.for("react.block"):60121,nc=ja?Symbol.for("react.fundamental"):60117,rc=ja?Symbol.for("react.responder"):60118,oc=ja?Symbol.for("react.scope"):60119;function ic(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ha:switch(e=e.type){case qa:case Ka:case Va:case Wa:case $a:case Za:return e;default:switch(e=e&&e.$$typeof){case Ga:case Xa:case ec:case Qa:case Ya:return e;default:return t}}case Ua:return t}}}function ac(e){return ic(e)===Ka}function cc(e){function t(e,r,l,s,p){for(var f,m,h,g,w,E=0,C=0,k=0,S=0,_=0,N=0,O=h=f=0,R=0,L=0,F=0,M=0,j=l.length,H=j-1,U="",V="",$="",W="";R<j;){if(m=l.charCodeAt(R),R===H&&0!==C+S+k+E&&(0!==C&&(m=47===C?10:47),S=k=E=0,j++,H++),0===C+S+k+E){if(R===H&&(0<L&&(U=U.replace(d,"")),0<U.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:U+=l.charAt(R)}m=59}switch(m){case 123:for(f=(U=U.trim()).charCodeAt(0),h=1,M=++R;R<j;){switch(m=l.charCodeAt(R)){case 123:h++;break;case 125:h--;break;case 47:switch(m=l.charCodeAt(R+1)){case 42:case 47:e:{for(O=R+1;O<H;++O)switch(l.charCodeAt(O)){case 47:if(42===m&&42===l.charCodeAt(O-1)&&R+2!==O){R=O+1;break e}break;case 10:if(47===m){R=O+1;break e}}R=O}}break;case 91:m++;case 40:m++;case 34:case 39:for(;R++<H&&l.charCodeAt(R)!==m;);}if(0===h)break;R++}if(h=l.substring(M,R),0===f&&(f=(U=U.replace(u,"").trim()).charCodeAt(0)),64===f){switch(0<L&&(U=U.replace(d,"")),m=U.charCodeAt(1)){case 100:case 109:case 115:case 45:L=r;break;default:L=P}if(M=(h=t(r,L,h,m,p+1)).length,0<D&&(w=c(3,h,L=n(P,U,F),r,T,I,M,m,p,s),U=L.join(""),void 0!==w&&0===(M=(h=w.trim()).length)&&(m=0,h="")),0<M)switch(m){case 115:U=U.replace(x,a);case 100:case 109:case 45:h=U+"{"+h+"}";break;case 107:h=(U=U.replace(v,"$1 $2"))+"{"+h+"}",h=1===z||2===z&&i("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=U+h,112===s&&(V+=h,h="")}else h=""}else h=t(r,n(r,U,F),h,s,p+1);$+=h,h=F=L=O=f=0,U="",m=l.charCodeAt(++R);break;case 125:case 59:if(1<(M=(U=(0<L?U.replace(d,""):U).trim()).length))switch(0===O&&(f=U.charCodeAt(0),45===f||96<f&&123>f)&&(M=(U=U.replace(" ",":")).length),0<D&&void 0!==(w=c(1,U,r,e,T,I,V.length,s,p,s))&&0===(M=(U=w.trim()).length)&&(U="\0\0"),f=U.charCodeAt(0),m=U.charCodeAt(1),f){case 0:break;case 64:if(105===m||99===m){W+=U+l.charAt(R);break}default:58!==U.charCodeAt(M-1)&&(V+=o(U,f,m,U.charCodeAt(2)))}F=L=O=f=0,U="",m=l.charCodeAt(++R)}}switch(m){case 13:case 10:47===C?C=0:0===1+f&&107!==s&&0<U.length&&(L=1,U+="\0"),0<D*A&&c(0,U,r,e,T,I,V.length,s,p,s),I=1,T++;break;case 59:case 125:if(0===C+S+k+E){I++;break}default:switch(I++,g=l.charAt(R),m){case 9:case 32:if(0===S+E+C)switch(_){case 44:case 58:case 9:case 32:g="";break;default:32!==m&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===S+C+E&&(L=F=1,g="\f"+g);break;case 108:if(0===S+C+E+B&&0<O)switch(R-O){case 2:112===_&&58===l.charCodeAt(R-3)&&(B=_);case 8:111===N&&(B=N)}break;case 58:0===S+C+E&&(O=R);break;case 44:0===C+k+S+E&&(L=1,g+="\r");break;case 34:case 39:0===C&&(S=S===m?0:0===S?m:S);break;case 91:0===S+C+k&&E++;break;case 93:0===S+C+k&&E--;break;case 41:0===S+C+E&&k--;break;case 40:0===S+C+E&&(0===f&&(2*_+3*N==533||(f=1)),k++);break;case 64:0===C+k+S+E+O+h&&(h=1);break;case 42:case 47:if(!(0<S+E+k))switch(C){case 0:switch(2*m+3*l.charCodeAt(R+1)){case 235:C=47;break;case 220:M=R,C=42}break;case 42:47===m&&42===_&&M+2!==R&&(33===l.charCodeAt(M+2)&&(V+=l.substring(M,R+1)),g="",C=0)}}0===C&&(U+=g)}N=_,_=m,R++}if(0<(M=V.length)){if(L=r,0<D&&void 0!==(w=c(2,V,L,e,T,I,M,s,p,s))&&0===(V=w).length)return W+V+$;if(V=L.join(",")+"{"+V+"}",0!=z*B){switch(2!==z||i(V,2)||(B=0),B){case 111:V=V.replace(b,":-moz-$1")+V;break;case 112:V=V.replace(y,"::-webkit-input-$1")+V.replace(y,"::-moz-$1")+V.replace(y,":-ms-input-$1")+V}B=0}}return W+V+$}function n(e,t,n){var o=t.trim().split(h);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var c=0;for(e=0===a?"":e[0]+" ";c<i;++c)t[c]=r(e,t[c],n).trim();break;default:var l=c=0;for(t=[];c<i;++c)for(var s=0;s<a;++s)t[l++]=r(e[s]+" ",o[c],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var a=e+";",c=2*t+3*n+4*r;if(944===c){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===z||2===z&&i(l,1)?"-webkit-"+l+l:l}if(0===z||2===z&&!i(a,1))return a;switch(c){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(_,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return f.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(w,"tb");break;case 232:l=a.replace(w,"tb-rl");break;case 220:l=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,c=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<c?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(C,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(C,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(m,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),O(2!==t?r:r.replace(k,"$1"),n,t)}function a(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(E," or ($1)").substring(4):"("+t+")"}function c(e,t,n,r,o,i,a,c,l,u){for(var d,p=0,f=t;p<D;++p)switch(d=N[p].call(s,e,f,n,r,o,i,a,c,l,u)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function l(e){return void 0!==(e=e.prefix)&&(O=null,e?"function"!=typeof e?z=1:(z=2,O=e):z=0),l}function s(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<D){var o=c(-1,n,r,r,T,I,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var i=t(P,r,n,0,0);return 0<D&&void 0!==(o=c(-2,i,r,r,T,I,i.length,0,0,0))&&(i=o),B=0,I=T=1,i}var u=/^\0+/g,d=/[\0\r\f]/g,p=/: */g,f=/zoo|gra/,m=/([,: ])(transform)/g,h=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,E=/([\s\S]*?);/g,C=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,_=/([^-])(image-set\()/,I=1,T=1,B=0,z=1,P=[],N=[],D=0,O=null,A=0;return s.use=function e(t){switch(t){case void 0:case null:D=N.length=0;break;default:if("function"==typeof t)N[D++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else A=0|!!t}return e},s.set=l,void 0!==e&&l(e),s}Ma.AsyncMode=qa,Ma.ConcurrentMode=Ka,Ma.ContextConsumer=Ga,Ma.ContextProvider=Ya,Ma.Element=Ha,Ma.ForwardRef=Xa,Ma.Fragment=Va,Ma.Lazy=ec,Ma.Memo=Qa,Ma.Portal=Ua,Ma.Profiler=Wa,Ma.StrictMode=$a,Ma.Suspense=Za,Ma.isAsyncMode=function(e){return ac(e)||ic(e)===qa},Ma.isConcurrentMode=ac,Ma.isContextConsumer=function(e){return ic(e)===Ga},Ma.isContextProvider=function(e){return ic(e)===Ya},Ma.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ha},Ma.isForwardRef=function(e){return ic(e)===Xa},Ma.isFragment=function(e){return ic(e)===Va},Ma.isLazy=function(e){return ic(e)===ec},Ma.isMemo=function(e){return ic(e)===Qa},Ma.isPortal=function(e){return ic(e)===Ua},Ma.isProfiler=function(e){return ic(e)===Wa},Ma.isStrictMode=function(e){return ic(e)===$a},Ma.isSuspense=function(e){return ic(e)===Za},Ma.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Va||e===Ka||e===Wa||e===$a||e===Za||e===Ja||"object"==typeof e&&null!==e&&(e.$$typeof===ec||e.$$typeof===Qa||e.$$typeof===Ya||e.$$typeof===Ga||e.$$typeof===Xa||e.$$typeof===nc||e.$$typeof===rc||e.$$typeof===oc||e.$$typeof===tc)},Ma.typeOf=ic,Fa.exports=Ma;var lc={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},sc=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,uc=function(e){var t={};return function(e){return void 0===t[e]&&(t[e]=(n=e,sc.test(n)||111===n.charCodeAt(0)&&110===n.charCodeAt(1)&&n.charCodeAt(2)<91)),t[e];var n}}(),dc=Fa.exports,pc={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},fc={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},mc={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},hc={};function gc(e){return dc.isMemo(e)?mc:hc[e.$$typeof]||pc}hc[dc.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},hc[dc.Memo]=mc;var vc=Object.defineProperty,yc=Object.getOwnPropertyNames,bc=Object.getOwnPropertySymbols,wc=Object.getOwnPropertyDescriptor,xc=Object.getPrototypeOf,Ec=Object.prototype,Cc=function e(t,n,r){if("string"!=typeof n){if(Ec){var o=xc(n);o&&o!==Ec&&e(t,o,r)}var i=yc(n);bc&&(i=i.concat(bc(n)));for(var a=gc(t),c=gc(n),l=0;l<i.length;++l){var s=i[l];if(!(fc[s]||r&&r[s]||c&&c[s]||a&&a[s])){var u=wc(n,s);try{vc(t,s,u)}catch(e){}}}}return t};function kc(){return(kc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Sc=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},_c=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Fa.exports.typeOf(e)},Ic=Object.freeze([]),Tc=Object.freeze({});function Bc(e){return"function"==typeof e}function zc(e){return e.displayName||e.name||"Component"}function Pc(e){return e&&"string"==typeof e.styledComponentId}var Nc="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Dc="undefined"!=typeof window&&"HTMLElement"in window,Oc=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),Ac={};function Rc(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var Lc=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&Rc(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),c=0,l=t.length;c<l;c++)this.tag.insertRule(a,t[c])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),Fc=new Map,Mc=new Map,jc=1,Hc=function(e){if(Fc.has(e))return Fc.get(e);for(;Mc.has(jc);)jc++;var t=jc++;return Fc.set(e,t),Mc.set(t,e),t},Uc=function(e){return Mc.get(e)},Vc=function(e,t){t>=jc&&(jc=t+1),Fc.set(e,t),Mc.set(t,e)},$c="style["+Nc+'][data-styled-version="5.3.3"]',Wc=new RegExp("^"+Nc+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Yc=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},Gc=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,i=n.length;o<i;o++){var a=n[o].trim();if(a){var c=a.match(Wc);if(c){var l=0|parseInt(c[1],10),s=c[2];0!==l&&(Vc(s,l),Yc(e,s,c[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(a)}}},qc=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(Nc))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(Nc,"active"),r.setAttribute("data-styled-version","5.3.3");var a="undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},Kc=function(){function e(e){var t=this.element=qc(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}Rc(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),Xc=function(){function e(e){var t=this.element=qc(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Zc=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Jc=Dc,Qc={isServer:!Dc,useCSSOMInjection:!Oc},el=function(){function e(e,t,n){void 0===e&&(e=Tc),void 0===t&&(t={}),this.options=kc({},Qc,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Dc&&Jc&&(Jc=!1,function(e){for(var t=document.querySelectorAll($c),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(Nc)&&(Gc(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return Hc(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(kc({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new Zc(o):r?new Kc(o):new Xc(o),new Lc(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(Hc(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Hc(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(Hc(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var i=Uc(o);if(void 0!==i){var a=e.names.get(i),c=t.getGroup(o);if(a&&c&&a.size){var l=Nc+".g"+o+'[id="'+i+'"]',s="";void 0!==a&&a.forEach((function(e){e.length>0&&(s+=e+",")})),r+=""+c+l+'{content:"'+s+'"}/*!sc*/\n'}}}return r}(this)},e}(),tl=/(a)(d)/gi,nl=function(e){return String.fromCharCode(e+(e>25?39:97))};function rl(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=nl(t%52)+n;return(nl(t%52)+n).replace(tl,"$1-$2")}var ol=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},il=function(e){return ol(5381,e)};function al(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Bc(n)&&!Pc(n))return!1}return!0}var cl=il("5.3.3"),ll=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&al(e),this.componentId=t,this.baseHash=ol(cl,t),this.baseStyle=n,el.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var i=_l(this.rules,e,t,n).join(""),a=rl(ol(this.baseHash,i)>>>0);if(!t.hasNameForId(r,a)){var c=n(i,"."+a,void 0,r);t.insertRules(r,a,c)}o.push(a),this.staticRulesId=a}else{for(var l=this.rules.length,s=ol(this.baseHash,n.hash),u="",d=0;d<l;d++){var p=this.rules[d];if("string"==typeof p)u+=p;else if(p){var f=_l(p,e,t,n),m=Array.isArray(f)?f.join(""):f;s=ol(s,m+d),u+=m}}if(u){var h=rl(s>>>0);if(!t.hasNameForId(r,h)){var g=n(u,"."+h,void 0,r);t.insertRules(r,h,g)}o.push(h)}}return o.join(" ")},e}(),sl=/^\s*\/\/.*$/gm,ul=[":","[",".","#"];function dl(e){var t,n,r,o,i=void 0===e?Tc:e,a=i.options,c=void 0===a?Tc:a,l=i.plugins,s=void 0===l?Ic:l,u=new cc(c),d=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,c,l,s,u,d){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===s)return r+"/*|*/";break;case 3:switch(s){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),f=function(e,r,i){return 0===r&&-1!==ul.indexOf(i[n.length])||i.match(o)?e:"."+t};function m(e,i,a,c){void 0===c&&(c="&");var l=e.replace(sl,""),s=i&&a?a+" "+i+" { "+l+" }":l;return t=c,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),u(a||!i?"":i,s)}return u.use([].concat(s,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,f))},p,function(e){if(-2===e){var t=d;return d=[],t}}])),m.hash=s.length?s.reduce((function(e,t){return t.name||Rc(15),ol(e,t.name)}),5381).toString():"",m}var pl=e.createContext(),fl=e.createContext(),ml=new el,hl=dl();function gl(){return o(pl)||ml}function vl(){return o(fl)||hl}function yl(t){var o=n(t.stylisPlugins),a=o[0],c=o[1],l=gl(),s=r((function(){var e=l;return t.sheet?e=t.sheet:t.target&&(e=e.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(e=e.reconstructWithOptions({useCSSOMInjection:!1})),e}),[t.disableCSSOMInjection,t.sheet,t.target]),u=r((function(){return dl({options:{prefix:!t.disableVendorPrefixes},plugins:a})}),[t.disableVendorPrefixes,a]);return i((function(){(function(e,t,n,r){var o=void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var s=i[l];if(!c(s))return!1;var u=e[s],d=t[s];if(!1===(o=void 0)||void 0===o&&u!==d)return!1}return!0})(a,t.stylisPlugins)||c(t.stylisPlugins)}),[t.stylisPlugins]),e.createElement(pl.Provider,{value:s},e.createElement(fl.Provider,{value:u},t.children))}var bl=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=hl);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return Rc(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=hl),this.name+e.hash},e}(),wl=/([A-Z])/,xl=/([A-Z])/g,El=/^ms-/,Cl=function(e){return"-"+e.toLowerCase()};function kl(e){return wl.test(e)?e.replace(xl,Cl).replace(El,"-ms-"):e}var Sl=function(e){return null==e||!1===e||""===e};function _l(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,c=e.length;a<c;a+=1)""!==(o=_l(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return Sl(e)?"":Pc(e)?"."+e.styledComponentId:Bc(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t?e:_l(e(t),t,n,r):e instanceof bl?n?(e.inject(n,r),e.getName(r)):e:_c(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!Sl(t[a])&&(Array.isArray(t[a])&&t[a].isCss||Bc(t[a])?i.push(kl(a)+":",t[a],";"):_c(t[a])?i.push.apply(i,e(t[a],a)):i.push(kl(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in lc?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var l}var Il=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Tl(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Bc(e)||_c(e)?Il(_l(Sc(Ic,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:Il(_l(Sc(e,n)))}var Bl=function(e,t,n){return void 0===n&&(n=Tc),e.theme!==n.theme&&e.theme||t||n.theme},zl=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Pl=/(^-|-$)/g;function Nl(e){return e.replace(zl,"-").replace(Pl,"")}var Dl=function(e){return rl(il(e)>>>0)};function Ol(e){return"string"==typeof e&&!0}var Al=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Rl=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Ll(e,t,n){var r=e[n];Al(t)&&Al(r)?Fl(r,t):e[n]=t}function Fl(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];if(Al(a))for(var c in a)Rl(c)&&Ll(e,a[c],c)}return e}var Ml=e.createContext(),jl={};function Hl(t,n,r){var i=Pc(t),a=!Ol(t),c=n.attrs,s=void 0===c?Ic:c,u=n.componentId,d=void 0===u?function(e,t){var n="string"!=typeof e?"sc":Nl(e);jl[n]=(jl[n]||0)+1;var r=n+"-"+Dl("5.3.3"+n+jl[n]);return t?t+"-"+r:r}(n.displayName,n.parentComponentId):u,p=n.displayName,f=void 0===p?function(e){return Ol(e)?"styled."+e:"Styled("+zc(e)+")"}(t):p,m=n.displayName&&n.componentId?Nl(n.displayName)+"-"+n.componentId:n.componentId||d,h=i&&t.attrs?Array.prototype.concat(t.attrs,s).filter(Boolean):s,g=n.shouldForwardProp;i&&t.shouldForwardProp&&(g=n.shouldForwardProp?function(e,r,o){return t.shouldForwardProp(e,r,o)&&n.shouldForwardProp(e,r,o)}:t.shouldForwardProp);var v,y=new ll(r,m,i?t.componentStyle:void 0),b=y.isStatic&&0===s.length,w=function(e,t){return function(e,t,n,r){var i=e.attrs,a=e.componentStyle,c=e.defaultProps,s=e.foldedComponentIds,u=e.shouldForwardProp,d=e.styledComponentId,p=e.target,f=function(e,t,n){void 0===e&&(e=Tc);var r=kc({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in Bc(a)&&(a=a(r)),a)r[t]=o[t]="className"===t?(n=o[t],i=a[t],n&&i?n+" "+i:n||i):a[t]})),[r,o]}(Bl(t,o(Ml),c)||Tc,t,i),m=f[0],h=f[1],g=function(e,t,n,r){var o=gl(),i=vl();return t?e.generateAndInjectStyles(Tc,o,i):e.generateAndInjectStyles(n,o,i)}(a,r,m),v=n,y=h.$as||t.$as||h.as||t.as||p,b=Ol(y),w=h!==t?kc({},t,{},h):t,x={};for(var E in w)"$"!==E[0]&&"as"!==E&&("forwardedAs"===E?x.as=w[E]:(u?u(E,uc,y):!b||uc(E))&&(x[E]=w[E]));return t.style&&h.style!==t.style&&(x.style=kc({},t.style,{},h.style)),x.className=Array.prototype.concat(s,d,g!==d?g:null,t.className,h.className).filter(Boolean).join(" "),x.ref=v,l(y,x)}(v,e,t,b)};return w.displayName=f,(v=e.forwardRef(w)).attrs=h,v.componentStyle=y,v.displayName=f,v.shouldForwardProp=g,v.foldedComponentIds=i?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):Ic,v.styledComponentId=m,v.target=i?t.target:t,v.withComponent=function(e){var t=n.componentId,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(n,["componentId"]),i=t&&t+"-"+(Ol(e)?e:Nl(zc(e)));return Hl(e,kc({},o,{attrs:h,componentId:i}),r)},Object.defineProperty(v,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?Fl({},t.defaultProps,e):e}}),v.toString=function(){return"."+v.styledComponentId},a&&Cc(v,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),v}var Ul=function(e){return function e(t,n,r){if(void 0===r&&(r=Tc),!Fa.exports.isValidElementType(n))return Rc(1,String(n));var o=function(){return t(n,r,Tl.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,n,kc({},r,{},o))},o.attrs=function(o){return e(t,n,kc({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o}(Hl,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Ul[e]=Ul(e)}));var Vl=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=al(e),el.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var o=r(_l(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&el.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function $l(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var l=Tl.apply(void 0,[t].concat(r)),s="sc-global-"+Dl(JSON.stringify(l)),u=new Vl(l,s);function d(e){var t=gl(),n=vl(),r=o(Ml),i=a(t.allocateGSInstance(s)).current;return t.server&&p(i,e,t,r,n),c((function(){if(!t.server)return p(i,e,t,r,n),function(){return u.removeStyles(i,t)}}),[i,e,t,r,n]),null}function p(e,t,n,r,o){if(u.isStatic)u.renderStyles(e,Ac,n,o);else{var i=kc({},t,{theme:Bl(t,r,d.defaultProps)});u.renderStyles(e,i,n,o)}}return e.memo(d)}function Wl(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Tl.apply(void 0,[e].concat(n)).join(""),i=Dl(o);return new bl(i,o)}function Yl(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Gl={};Yl(Gl,"SSRProvider",(()=>Xl)),Yl(Gl,"useSSRSafeId",(()=>Jl)),Yl(Gl,"useIsSSR",(()=>Ql));const ql={prefix:String(Math.round(1e10*Math.random())),current:0},Kl=e.createContext(ql);function Xl(t){let n=o(Kl),i=r((()=>({prefix:n===ql?"":`${n.prefix}-${++n.current}`,current:0})),[n]);return e.createElement(Kl.Provider,{value:i},t.children)}let Zl=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function Jl(e){let t=o(Kl);return t!==ql||Zl||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."),r((()=>e||`react-aria${t.prefix}-${++t.current}`),[e])}function Ql(){let e=o(Kl)!==ql,[t,r]=n(e);return"undefined"!=typeof window&&e&&c((()=>{r(!1)}),[]),t}function es(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=es(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ts(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=es(e))&&(r&&(r+=" "),r+=t);return r}function ns(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function rs(e,t,r){let[o,i]=n(e||t),c=a(void 0!==e),l=c.current,u=void 0!==e,d=a(o);l!==u&&console.warn(`WARN: A component changed from ${l?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}.`),c.current=u;let p=s(((e,...t)=>{let n=(e,...t)=>{r&&(Object.is(d.current,e)||r(e,...t)),u||(d.current=e)};"function"==typeof e?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i(((r,...o)=>{let i=e(u?d.current:r,...o);return n(i,...t),u?r:i}))):(u||i(e),n(e,...t))}),[u,r]);return u?d.current=e:e=o,[e,p]}ns({},"useControlledState",(()=>rs));var os={};function is(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function as(e,t,n,r){let o=(e-(isNaN(t)?0:t))%r,i=2*Math.abs(o)>=r?e+Math.sign(o)*(r-Math.abs(o)):e-o;isNaN(t)?!isNaN(n)&&i>n&&(i=Math.floor(n/r)*r):i<t?i=t:!isNaN(n)&&i>n&&(i=t+Math.floor((n-t)/r)*r);let a=r.toString(),c=a.indexOf("."),l=c>=0?a.length-c:0;if(l>0){let e=Math.pow(10,l);i=Math.round(i*e)/e}return i}function cs(e,t,n=10){const r=Math.pow(n,t);return Math.round(e*r)/r}function ls(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}ns(os,"clamp",(()=>is)),ns(os,"snapValueToStep",(()=>as)),ns(os,"toFixedNumber",(()=>cs));var ss={};ls(ss,"useId",(()=>ps)),ls(ss,"mergeIds",(()=>fs)),ls(ss,"useSlotId",(()=>ms)),ls({},"useLayoutEffect",(()=>us));const us="undefined"!=typeof window?e.useLayoutEffect:()=>{};let ds=new Map;function ps(e){let[t,r]=n(e),o=a(null),c=Jl(t),l=s((e=>{o.current=e}),[]);return ds.set(c,l),us((()=>{let e=c;return()=>{ds.delete(e)}}),[c]),i((()=>{let e=o.current;e&&(o.current=null,r(e))})),c}function fs(e,t){if(e===t)return e;let n=ds.get(e);if(n)return n(t),t;let r=ds.get(t);return r?(r(e),e):t}function ms(e=[]){let t=ps(),[n,r]=ou(t),o=s((()=>{r((function*(){yield t,yield document.getElementById(t)?t:null}))}),[t,r]);return us(o,[t,o,...e]),n}function hs(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}function gs(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],o=r[e];"function"==typeof n&&"function"==typeof o&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=hs(n,o):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof o?"id"===e&&n&&o?t.id=fs(n,o):t[e]=void 0!==o?o:n:t[e]=ts(n,o)}}return t}function vs(...e){return t=>{for(let n of e)"function"==typeof n?n(t):null!=n&&(n.current=t)}}ls({},"chain",(()=>hs)),ls({},"mergeProps",(()=>gs)),ls({},"mergeRefs",(()=>vs)),ls({},"filterDOMProps",(()=>xs));const ys=new Set(["id"]),bs=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),ws=/^(data-.*)$/;function xs(e,t={}){let{labelable:n,propNames:r}=t,o={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(ys.has(t)||n&&bs.has(t)||(null==r?void 0:r.has(t))||ws.test(t))&&(o[t]=e[t]);return o}function Es(e){if(function(){if(null==Cs){Cs=!1;try{document.createElement("div").focus({get preventScroll(){return Cs=!0,!0}})}catch(e){}}return Cs}())e.focus({preventScroll:!0});else{let t=function(e){for(var t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}ls({},"focusWithoutScrolling",(()=>Es));let Cs=null;function ks(e,t,n="horizontal"){let r=e.getBoundingClientRect();return t?"horizontal"===n?r.right:r.bottom:"horizontal"===n?r.left:r.top}ls({},"getOffset",(()=>ks));var Ss={};ls(Ss,"clamp",(()=>is)),ls(Ss,"snapValueToStep",(()=>as)),ls({},"runAfterTransition",(()=>Bs));let _s=new Map,Is=new Set;function Ts(){if("undefined"==typeof window)return;let e=t=>{let n=_s.get(t.target);if(n&&(n.delete(t.propertyName),0===n.size&&(t.target.removeEventListener("transitioncancel",e),_s.delete(t.target)),0===_s.size)){for(let e of Is)e();Is.clear()}};document.body.addEventListener("transitionrun",(t=>{let n=_s.get(t.target);n||(n=new Set,_s.set(t.target,n),t.target.addEventListener("transitioncancel",e)),n.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}function Bs(e){requestAnimationFrame((()=>{0===_s.size?e():Is.add(e)}))}"undefined"!=typeof document&&("loading"!==document.readyState?Ts():document.addEventListener("DOMContentLoaded",Ts)),ls({},"useDrag1D",(()=>Ps));const zs=[];function Ps(e){console.warn("useDrag1D is deprecated, please use `useMove` instead https://react-spectrum.adobe.com/react-aria/useMove.html");let{containerRef:t,reverse:n,orientation:r,onHover:o,onDrag:i,onPositionChange:c,onIncrement:l,onDecrement:s,onIncrementToMax:u,onDecrementToMin:d,onCollapseToggle:p}=e,f=e=>{let o=ks(t.current,n,r),i=(e=>"horizontal"===r?e.clientX:e.clientY)(e);return n?o-i:i-o},m=a(!1),h=a(0),g=a({onPositionChange:c,onDrag:i});g.current.onDrag=i,g.current.onPositionChange=c;let v=e=>{e.preventDefault();let t=f(e);m.current||(m.current=!0,g.current.onDrag&&g.current.onDrag(!0),g.current.onPositionChange&&g.current.onPositionChange(t)),h.current!==t&&(h.current=t,c&&c(t))},y=e=>{const t=e.target;m.current=!1;let n=f(e);g.current.onDrag&&g.current.onDrag(!1),g.current.onPositionChange&&g.current.onPositionChange(n),zs.splice(zs.indexOf(t),1),window.removeEventListener("mouseup",y,!1),window.removeEventListener("mousemove",v,!1)};return{onMouseDown:e=>{const t=e.currentTarget;zs.some((e=>t.contains(e)))||(zs.push(t),window.addEventListener("mousemove",v,!1),window.addEventListener("mouseup",y,!1))},onMouseEnter:()=>{o&&o(!0)},onMouseOut:()=>{o&&o(!1)},onKeyDown:e=>{switch(e.key){case"Left":case"ArrowLeft":"horizontal"===r&&(e.preventDefault(),s&&!n?s():l&&n&&l());break;case"Up":case"ArrowUp":"vertical"===r&&(e.preventDefault(),s&&!n?s():l&&n&&l());break;case"Right":case"ArrowRight":"horizontal"===r&&(e.preventDefault(),l&&!n?l():s&&n&&s());break;case"Down":case"ArrowDown":"vertical"===r&&(e.preventDefault(),l&&!n?l():s&&n&&s());break;case"Home":e.preventDefault(),d&&d();break;case"End":e.preventDefault(),u&&u();break;case"Enter":e.preventDefault(),p&&p()}}}}function Ns(){let e=a(new Map),t=s(((t,n,r,o)=>{let i=(null==o?void 0:o.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:o}),t.addEventListener(n,r,o)}),[]),n=s(((t,n,r,o)=>{var i;let a=(null===(i=e.current.get(r))||void 0===i?void 0:i.fn)||r;t.removeEventListener(n,a,o),e.current.delete(r)}),[]),r=s((()=>{e.current.forEach(((e,t)=>{n(e.eventTarget,e.type,t,e.options)}))}),[n]);return i((()=>r),[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Ds(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;if(n=ps(n),o&&r){let e=new Set([...o.trim().split(/\s+/),n]);o=[...e].join(" ")}else o&&(o=o.trim().split(/\s+/).join(" "));return r||o||!t||(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function Os(e){const t=a();return us((()=>{e&&("function"==typeof e?e(t.current):e.current=t.current)}),[e]),t}function As(e,t){const n=a(!0);i((()=>{n.current?n.current=!1:e()}),t)}function Rs(e){const{ref:t,onResize:n}=e;i((()=>{let e=null==t?void 0:t.current;if(e){if(void 0===window.ResizeObserver)return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)};{const t=new window.ResizeObserver((e=>{e.length&&n()}));return t.observe(e),()=>{e&&t.unobserve(e)}}}}),[n,t])}function Ls(e,t){us((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}}),[e,t])}function Fs(e){for(;e&&!Ms(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function Ms(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}ls({},"useGlobalListeners",(()=>Ns)),ls({},"useLabels",(()=>Ds)),ls({},"useObjectRef",(()=>Os)),ls({},"useUpdateEffect",(()=>As)),ls({},"useResizeObserver",(()=>Rs)),ls({},"useSyncRef",(()=>Ls)),ls({},"getScrollParent",(()=>Fs)),ls({},"useViewportSize",(()=>Hs));let js="undefined"!=typeof window&&window.visualViewport;function Hs(){let[e,t]=n((()=>Us()));return i((()=>{let e=()=>{t((e=>{let t=Us();return t.width===e.width&&t.height===e.height?e:t}))};return js?js.addEventListener("resize",e):window.addEventListener("resize",e),()=>{js?js.removeEventListener("resize",e):window.removeEventListener("resize",e)}}),[]),e}function Us(){return{width:(null==js?void 0:js.width)||window.innerWidth,height:(null==js?void 0:js.height)||window.innerHeight}}ls({},"useDescription",(()=>Ws));let Vs=0;const $s=new Map;function Ws(e){let[t,r]=n(null);return us((()=>{if(!e)return;let t=$s.get(e);if(t)r(t.element.id);else{let n="react-aria-description-"+Vs++;r(n);let o=document.createElement("div");o.id=n,o.style.display="none",o.textContent=e,document.body.appendChild(o),t={refCount:0,element:o},$s.set(e,t)}return t.refCount++,()=>{0==--t.refCount&&(t.element.remove(),$s.delete(e))}}),[e]),{"aria-describedby":e?t:void 0}}var Ys={};function Gs(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}function qs(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test((window.navigator.userAgentData||window.navigator).platform)}function Ks(){return qs(/^Mac/i)}function Xs(){return qs(/^iPhone/i)}function Zs(){return qs(/^iPad/i)||Ks()&&navigator.maxTouchPoints>1}function Js(){return Xs()||Zs()}function Qs(){return Ks()||Js()}function eu(){return Gs(/AppleWebKit/i)&&!tu()}function tu(){return Gs(/Chrome/i)}function nu(){return Gs(/Android/i)}function ru(e,t,n,r){let o=a(n);o.current=n;let c=null==n;i((()=>{if(c)return;let n=e.current,i=e=>o.current.call(this,e);return n.addEventListener(t,i,r),()=>{n.removeEventListener(t,i,r)}}),[e,t,r,c])}function ou(e){let[t,r]=n(e),o=a(t),i=a(null);o.current=t;let c=a(null);c.current=()=>{let e=i.current.next();e.done?i.current=null:t===e.value?c.current():r(e.value)},us((()=>{i.current&&c.current()}));let l=s((e=>{i.current=e(o.current),c.current()}),[i,c]);return[t,l]}function iu(e,t){let n=au(e,t,"left"),r=au(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,c=e.scrollTop,l=a+e.offsetWidth,s=c+e.offsetHeight;n<=a?a=n:n+o>l&&(a+=n+o-l),r<=c?c=r:r+i>s&&(c+=r+i-s),e.scrollLeft=a,e.scrollTop=c}function au(e,t,n){const r="left"===n?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function cu(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}ls(Ys,"isMac",(()=>Ks)),ls(Ys,"isIPhone",(()=>Xs)),ls(Ys,"isIPad",(()=>Zs)),ls(Ys,"isIOS",(()=>Js)),ls(Ys,"isAppleDevice",(()=>Qs)),ls(Ys,"isWebKit",(()=>eu)),ls(Ys,"isChrome",(()=>tu)),ls(Ys,"isAndroid",(()=>nu)),ls({},"useEvent",(()=>ru)),ls({},"useValueEffect",(()=>ou)),ls({},"scrollIntoView",(()=>iu)),cu({},"Pressable",(()=>Su)),cu({},"usePress",(()=>vu));let lu="default",su="",uu=new WeakMap;function du(e){Js()?("default"===lu&&(su=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),lu="disabled"):e&&(uu.set(e,e.style.userSelect),e.style.userSelect="none")}function pu(e){if(Js()){if("disabled"!==lu)return;lu="restoring",setTimeout((()=>{Bs((()=>{"restoring"===lu&&("none"===document.documentElement.style.webkitUserSelect&&(document.documentElement.style.webkitUserSelect=su||""),su="",lu="default")}))}),300)}else if(e&&uu.has(e)){let t=uu.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),uu.delete(e)}}function fu(e){return!(0!==e.mozInputSource||!e.isTrusted)||0===e.detail&&!e.pointerType}class mu{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function hu(e){let t=a({isFocused:!1,onBlur:e,observer:null});return t.current.onBlur=e,us((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]),s((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=e.target,r=e=>{var r,o;t.current.isFocused=!1,n.disabled&&(null===(o=(r=t.current).onBlur)||void 0===o||o.call(r,new mu("blur",e))),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};n.addEventListener("focusout",r,{once:!0}),t.current.observer=new MutationObserver((()=>{t.current.isFocused&&n.disabled&&(t.current.observer.disconnect(),n.dispatchEvent(new FocusEvent("blur")),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0})))})),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}}),[])}const gu=e.createContext(null);function vu(e){let{onPress:t,onPressChange:c,onPressStart:l,onPressEnd:s,onPressUp:u,isDisabled:d,isPressed:p,preventFocusOnPress:f,shouldCancelOnPointerExit:m,allowTextSelectionOnPress:h,ref:g,...v}=function(e){let t=o(gu);if(t){let{register:n,...r}=t;e=gs(r,e),n()}return Ls(t,e.ref),e}(e),y=a(null);y.current={onPress:t,onPressChange:c,onPressStart:l,onPressEnd:s,onPressUp:u,isDisabled:d,shouldCancelOnPointerExit:m};let[b,w]=n(!1),x=a({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:E,removeAllGlobalListeners:C}=Ns(),k=r((()=>{let e=x.current,t=(t,n)=>{let{onPressStart:r,onPressChange:o,isDisabled:i}=y.current;i||e.didFirePressStart||(r&&r({type:"pressstart",pointerType:n,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}),o&&o(!0),e.didFirePressStart=!0,w(!0))},n=(t,n,r=!0)=>{let{onPressEnd:o,onPressChange:i,onPress:a,isDisabled:c}=y.current;e.didFirePressStart&&(e.ignoreClickAfterPress=!0,e.didFirePressStart=!1,o&&o({type:"pressend",pointerType:n,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}),i&&i(!1),w(!1),a&&r&&!c&&a({type:"press",pointerType:n,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}))},r=(e,t)=>{let{onPressUp:n,isDisabled:r}=y.current;r||n&&n({type:"pressup",pointerType:t,target:e.currentTarget,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})},o=t=>{e.isPressed&&(e.isOverTarget&&n(xu(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,C(),h||pu(e.target))},i={onKeyDown(n){bu(n.nativeEvent)&&n.currentTarget.contains(n.target)&&(ku(n.target)&&n.preventDefault(),n.stopPropagation(),e.isPressed||n.repeat||(e.target=n.currentTarget,e.isPressed=!0,t(n,"keyboard"),E(document,"keyup",a,!1)))},onKeyUp(t){bu(t.nativeEvent)&&!t.repeat&&t.currentTarget.contains(t.target)&&r(xu(e.target,t),"keyboard")},onClick(o){o&&!o.currentTarget.contains(o.target)||o&&0===o.button&&(o.stopPropagation(),d&&o.preventDefault(),e.ignoreClickAfterPress||e.ignoreEmulatedMouseEvents||"virtual"!==e.pointerType&&!fu(o.nativeEvent)||(d||f||Es(o.currentTarget),t(o,"virtual"),r(o,"virtual"),n(o,"virtual")),e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1)}},a=t=>{if(e.isPressed&&bu(t)){ku(t.target)&&t.preventDefault(),t.stopPropagation(),e.isPressed=!1;let r=t.target;n(xu(e.target,t),"keyboard",e.target.contains(r)),C(),(e.target.contains(r)&&yu(e.target)||"link"===e.target.getAttribute("role"))&&e.target.click()}};if("undefined"!=typeof PointerEvent){i.onPointerDown=n=>{var r;0===n.button&&n.currentTarget.contains(n.target)&&(0===(r=n.nativeEvent).width&&0===r.height||1===r.width&&1===r.height&&0===r.pressure&&0===r.detail&&"mouse"===r.pointerType?e.pointerType="virtual":(Cu(n.currentTarget)&&n.preventDefault(),e.pointerType=n.pointerType,n.stopPropagation(),e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=n.pointerId,e.target=n.currentTarget,d||f||Es(n.currentTarget),h||du(e.target),t(n,e.pointerType),E(document,"pointermove",a,!1),E(document,"pointerup",c,!1),E(document,"pointercancel",l,!1))))},i.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(Cu(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},i.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&Eu(t,t.currentTarget)&&r(t,e.pointerType||t.pointerType)};let a=r=>{r.pointerId===e.activePointerId&&(Eu(r,e.target)?e.isOverTarget||(e.isOverTarget=!0,t(xu(e.target,r),e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,n(xu(e.target,r),e.pointerType,!1),y.current.shouldCancelOnPointerExit&&o(r)))},c=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&(Eu(t,e.target)?n(xu(e.target,t),e.pointerType):e.isOverTarget&&n(xu(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,C(),h||pu(e.target))},l=e=>{o(e)};i.onDragStart=e=>{e.currentTarget.contains(e.target)&&o(e)}}else{i.onMouseDown=n=>{0===n.button&&n.currentTarget.contains(n.target)&&(Cu(n.currentTarget)&&n.preventDefault(),n.stopPropagation(),e.ignoreEmulatedMouseEvents||(e.isPressed=!0,e.isOverTarget=!0,e.target=n.currentTarget,e.pointerType=fu(n.nativeEvent)?"virtual":"mouse",d||f||Es(n.currentTarget),t(n,e.pointerType),E(document,"mouseup",a,!1)))},i.onMouseEnter=n=>{n.currentTarget.contains(n.target)&&(n.stopPropagation(),e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!0,t(n,e.pointerType)))},i.onMouseLeave=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!1,n(t,e.pointerType,!1),y.current.shouldCancelOnPointerExit&&o(t)))},i.onMouseUp=t=>{t.currentTarget.contains(t.target)&&(e.ignoreEmulatedMouseEvents||0!==t.button||r(t,e.pointerType))};let a=t=>{0===t.button&&(e.isPressed=!1,C(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(Eu(t,e.target)?n(xu(e.target,t),e.pointerType):e.isOverTarget&&n(xu(e.target,t),e.pointerType,!1),e.isOverTarget=!1))};i.onTouchStart=n=>{if(!n.currentTarget.contains(n.target))return;n.stopPropagation();let r=function(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}(n.nativeEvent);r&&(e.activePointerId=r.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=n.currentTarget,e.pointerType="touch",d||f||Es(n.currentTarget),h||du(e.target),t(n,e.pointerType),E(window,"scroll",c,!0))},i.onTouchMove=r=>{if(!r.currentTarget.contains(r.target))return;if(r.stopPropagation(),!e.isPressed)return;let i=wu(r.nativeEvent,e.activePointerId);i&&Eu(i,r.currentTarget)?e.isOverTarget||(e.isOverTarget=!0,t(r,e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,n(r,e.pointerType,!1),y.current.shouldCancelOnPointerExit&&o(r))},i.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(t.stopPropagation(),!e.isPressed)return;let o=wu(t.nativeEvent,e.activePointerId);o&&Eu(o,t.currentTarget)?(r(t,e.pointerType),n(t,e.pointerType)):e.isOverTarget&&n(t,e.pointerType,!1),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,h||pu(e.target),C()},i.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&o(t))};let c=t=>{e.isPressed&&t.target.contains(e.target)&&o({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};i.onDragStart=e=>{e.currentTarget.contains(e.target)&&o(e)}}return i}),[E,d,f,C,h]);return i((()=>()=>{h||pu(x.current.target)}),[h]),{isPressed:p||b,pressProps:gs(v,k)}}function yu(e){return"A"===e.tagName&&e.hasAttribute("href")}function bu(e){const{key:t,code:n,target:r}=e,o=r,{tagName:i,isContentEditable:a}=o,c=o.getAttribute("role");return!("Enter"!==t&&" "!==t&&"Spacebar"!==t&&"Space"!==n||"INPUT"===i||"TEXTAREA"===i||!0===a||yu(o)&&("button"!==c||"Enter"===t)||"link"===c&&"Enter"!==t)}function wu(e,t){const n=e.changedTouches;for(let e=0;e<n.length;e++){const r=n[e];if(r.identifier===t)return r}return null}function xu(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function Eu(e,t){let n=t.getBoundingClientRect(),r=function(e){let t=e.width/2||e.radiusX||0,n=e.height/2||e.radiusY||0;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);return function(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}(n,r)}function Cu(e){return!e.draggable}function ku(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&"submit"===e.type)}gu.displayName="PressResponderContext";const Su=e.forwardRef((({children:t,...n},r)=>{let o=a();r=null!=r?r:o;let{pressProps:i}=vu({...n,ref:r}),c=e.Children.only(t);return e.cloneElement(c,{ref:r,...gs(c.props,i)})}));cu({},"PressResponder",(()=>_u));const _u=e.forwardRef((({children:t,...n},r)=>{let c=a(!1),l=o(gu),s=gs(l||{},{...n,ref:r||(null==l?void 0:l.ref),register(){c.current=!0,l&&l.register()}});return Ls(l,r),i((()=>{c.current||console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component.")}),[]),e.createElement(gu.Provider,{value:s},t)}));function Iu(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=s((e=>{if(e.target===e.currentTarget)return r&&r(e),o&&o(!1),!0}),[r,o]),a=hu(i),c=s((e=>{e.target===e.currentTarget&&(n&&n(e),o&&o(!0),a(e))}),[o,n,a]);return{focusProps:{onFocus:!t&&(n||o||r)?c:void 0,onBlur:t||!r&&!o?null:i}}}cu({},"useFocus",(()=>Iu));var Tu={};cu(Tu,"isFocusVisible",(()=>Uu)),cu(Tu,"getInteractionModality",(()=>Vu)),cu(Tu,"setInteractionModality",(()=>$u)),cu(Tu,"useInteractionModality",(()=>Wu)),cu(Tu,"useFocusVisible",(()=>Yu)),cu(Tu,"useFocusVisibleListener",(()=>Gu));let Bu=null,zu=new Set,Pu=!1,Nu=!1,Du=!1;const Ou={Tab:!0,Escape:!0};function Au(e,t){for(let n of zu)n(e,t)}function Ru(e){Nu=!0,function(e){return!(e.metaKey||!Ks()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(Bu="keyboard",Au("keyboard",e))}function Lu(e){Bu="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Nu=!0,Au("pointer",e))}function Fu(e){fu(e)&&(Nu=!0,Bu="virtual")}function Mu(e){e.target!==window&&e.target!==document&&(Nu||Du||(Bu="virtual",Au("virtual",e)),Nu=!1,Du=!1)}function ju(){Nu=!1,Du=!0}function Hu(){if("undefined"==typeof window||Pu)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Nu=!0,e.apply(this,arguments)},document.addEventListener("keydown",Ru,!0),document.addEventListener("keyup",Ru,!0),document.addEventListener("click",Fu,!0),window.addEventListener("focus",Mu,!0),window.addEventListener("blur",ju,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",Lu,!0),document.addEventListener("pointermove",Lu,!0),document.addEventListener("pointerup",Lu,!0)):(document.addEventListener("mousedown",Lu,!0),document.addEventListener("mousemove",Lu,!0),document.addEventListener("mouseup",Lu,!0)),Pu=!0}function Uu(){return"pointer"!==Bu}function Vu(){return Bu}function $u(e){Bu=e,Au(e,null)}function Wu(){Hu();let[e,t]=n(Bu);return i((()=>{let e=()=>{t(Bu)};return zu.add(e),()=>{zu.delete(e)}}),[]),e}function Yu(e={}){let{isTextInput:t,autoFocus:r}=e,[o,i]=n(r||Uu());return Gu((e=>{i(e)}),[t],{isTextInput:t}),{isFocusVisible:o}}function Gu(e,t,n){Hu(),i((()=>{let t=(t,r)=>{(function(e,t,n){return!(e&&"keyboard"===t&&n instanceof KeyboardEvent&&!Ou[n.key])})(null==n?void 0:n.isTextInput,t,r)&&e(Uu())};return zu.add(t),()=>{zu.delete(t)}}),t)}function qu(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=a({isFocusWithin:!1}),c=s((e=>{i.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(e),o&&o(!1))}),[n,o,i]),l=hu(c),u=s((e=>{i.current.isFocusWithin||(r&&r(e),o&&o(!0),i.current.isFocusWithin=!0,l(e))}),[r,o,l]);return t?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:u,onBlur:c}}}"undefined"!=typeof document&&("loading"!==document.readyState?Hu():document.addEventListener("DOMContentLoaded",Hu)),cu({},"useFocusWithin",(()=>qu)),cu({},"useHover",(()=>ed));let Ku=!1,Xu=0;function Zu(){Ku=!0,setTimeout((()=>{Ku=!1}),50)}function Ju(e){"touch"===e.pointerType&&Zu()}function Qu(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",Ju):document.addEventListener("touchend",Zu),Xu++,()=>{Xu--,Xu>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",Ju):document.removeEventListener("touchend",Zu))}}function ed(e){let{onHoverStart:t,onHoverChange:o,onHoverEnd:c,isDisabled:l}=e,[s,u]=n(!1),d=a({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;i(Qu,[]);let{hoverProps:p,triggerHoverEnd:f}=r((()=>{let e=(e,n)=>{if(d.pointerType=n,l||"touch"===n||d.isHovered||!e.currentTarget.contains(e.target))return;d.isHovered=!0;let r=e.currentTarget;d.target=r,t&&t({type:"hoverstart",target:r,pointerType:n}),o&&o(!0),u(!0)},n=(e,t)=>{if(d.pointerType="",d.target=null,"touch"===t||!d.isHovered)return;d.isHovered=!1;let n=e.currentTarget;c&&c({type:"hoverend",target:n,pointerType:t}),o&&o(!1),u(!1)},r={};return"undefined"!=typeof PointerEvent?(r.onPointerEnter=t=>{Ku&&"mouse"===t.pointerType||e(t,t.pointerType)},r.onPointerLeave=e=>{!l&&e.currentTarget.contains(e.target)&&n(e,e.pointerType)}):(r.onTouchStart=()=>{d.ignoreEmulatedMouseEvents=!0},r.onMouseEnter=t=>{d.ignoreEmulatedMouseEvents||Ku||e(t,"mouse"),d.ignoreEmulatedMouseEvents=!1},r.onMouseLeave=e=>{!l&&e.currentTarget.contains(e.target)&&n(e,"mouse")}),{hoverProps:r,triggerHoverEnd:n}}),[t,o,c,l,d]);return i((()=>{l&&f({currentTarget:d.target},d.pointerType)}),[l]),{hoverProps:p,isHovered:s}}function td(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,c=a({isPointerDown:!1,ignoreEmulatedMouseEvents:!1,onInteractOutside:n,onInteractOutsideStart:o}).current;c.onInteractOutside=n,c.onInteractOutsideStart=o,i((()=>{if(r)return;let e=e=>{nd(e,t)&&c.onInteractOutside&&(c.onInteractOutsideStart&&c.onInteractOutsideStart(e),c.isPointerDown=!0)};if("undefined"!=typeof PointerEvent){let n=e=>{c.isPointerDown&&c.onInteractOutside&&nd(e,t)&&(c.isPointerDown=!1,c.onInteractOutside(e))};return document.addEventListener("pointerdown",e,!0),document.addEventListener("pointerup",n,!0),()=>{document.removeEventListener("pointerdown",e,!0),document.removeEventListener("pointerup",n,!0)}}{let n=e=>{c.ignoreEmulatedMouseEvents?c.ignoreEmulatedMouseEvents=!1:c.isPointerDown&&c.onInteractOutside&&nd(e,t)&&(c.isPointerDown=!1,c.onInteractOutside(e))},r=e=>{c.ignoreEmulatedMouseEvents=!0,c.onInteractOutside&&c.isPointerDown&&nd(e,t)&&(c.isPointerDown=!1,c.onInteractOutside(e))};return document.addEventListener("mousedown",e,!0),document.addEventListener("mouseup",n,!0),document.addEventListener("touchstart",e,!0),document.addEventListener("touchend",r,!0),()=>{document.removeEventListener("mousedown",e,!0),document.removeEventListener("mouseup",n,!0),document.removeEventListener("touchstart",e,!0),document.removeEventListener("touchend",r,!0)}}}),[t,c,r])}function nd(e,t){if(e.button>0)return!1;if(e.target){const t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target))return!1}return t.current&&!t.current.contains(e.target)}function rd(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function od(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:rd(e.onKeyDown),onKeyUp:rd(e.onKeyUp)}}}function id(e){let{onMoveStart:t,onMove:n,onMoveEnd:o}=e,i=a({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:c,removeGlobalListener:l}=Ns(),s=r((()=>{let e={},r=()=>{du(),i.current.didMove=!1},a=(e,r,o,a)=>{0===o&&0===a||(i.current.didMove||(i.current.didMove=!0,null==t||t({type:"movestart",pointerType:r,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})),n({type:"move",pointerType:r,deltaX:o,deltaY:a,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))},s=(e,t)=>{pu(),i.current.didMove&&(null==o||o({type:"moveend",pointerType:t,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))};if("undefined"==typeof PointerEvent){let t=e=>{0===e.button&&(a(e,"mouse",e.pageX-i.current.lastPosition.pageX,e.pageY-i.current.lastPosition.pageY),i.current.lastPosition={pageX:e.pageX,pageY:e.pageY})},n=e=>{0===e.button&&(s(e,"mouse"),l(window,"mousemove",t,!1),l(window,"mouseup",n,!1))};e.onMouseDown=e=>{0===e.button&&(r(),e.stopPropagation(),e.preventDefault(),i.current.lastPosition={pageX:e.pageX,pageY:e.pageY},c(window,"mousemove",t,!1),c(window,"mouseup",n,!1))};let o=e=>{let t=[...e.changedTouches].findIndex((({identifier:e})=>e===i.current.id));if(t>=0){let{pageX:n,pageY:r}=e.changedTouches[t];a(e,"touch",n-i.current.lastPosition.pageX,r-i.current.lastPosition.pageY),i.current.lastPosition={pageX:n,pageY:r}}},u=e=>{[...e.changedTouches].findIndex((({identifier:e})=>e===i.current.id))>=0&&(s(e,"touch"),i.current.id=null,l(window,"touchmove",o),l(window,"touchend",u),l(window,"touchcancel",u))};e.onTouchStart=e=>{if(0===e.changedTouches.length||null!=i.current.id)return;let{pageX:t,pageY:n,identifier:a}=e.changedTouches[0];r(),e.stopPropagation(),e.preventDefault(),i.current.lastPosition={pageX:t,pageY:n},i.current.id=a,c(window,"touchmove",o,!1),c(window,"touchend",u,!1),c(window,"touchcancel",u,!1)}}else{let t=e=>{if(e.pointerId===i.current.id){let t=e.pointerType||"mouse";a(e,t,e.pageX-i.current.lastPosition.pageX,e.pageY-i.current.lastPosition.pageY),i.current.lastPosition={pageX:e.pageX,pageY:e.pageY}}},n=e=>{if(e.pointerId===i.current.id){let r=e.pointerType||"mouse";s(e,r),i.current.id=null,l(window,"pointermove",t,!1),l(window,"pointerup",n,!1),l(window,"pointercancel",n,!1)}};e.onPointerDown=e=>{0===e.button&&null==i.current.id&&(r(),e.stopPropagation(),e.preventDefault(),i.current.lastPosition={pageX:e.pageX,pageY:e.pageY},i.current.id=e.pointerId,c(window,"pointermove",t,!1),c(window,"pointerup",n,!1),c(window,"pointercancel",n,!1))}}let u=(e,t,n)=>{r(),a(e,"keyboard",t,n),s(e,"keyboard")};return e.onKeyDown=e=>{switch(e.key){case"Left":case"ArrowLeft":e.preventDefault(),e.stopPropagation(),u(e,-1,0);break;case"Right":case"ArrowRight":e.preventDefault(),e.stopPropagation(),u(e,1,0);break;case"Up":case"ArrowUp":e.preventDefault(),e.stopPropagation(),u(e,0,-1);break;case"Down":case"ArrowDown":e.preventDefault(),e.stopPropagation(),u(e,0,1)}},e}),[i,t,n,o,c,l]);return{moveProps:s}}function ad(e,t){let{onScroll:n,isDisabled:r}=e,o=s((e=>{e.ctrlKey||(e.preventDefault(),e.stopPropagation(),n&&n({deltaX:e.deltaX,deltaY:e.deltaY}))}),[n]);ru(t,"wheel",r?null:o)}cu({},"useInteractOutside",(()=>td)),cu({},"useKeyboard",(()=>od)),cu({},"useMove",(()=>id)),cu({},"useScrollWheel",(()=>ad)),cu({},"useLongPress",(()=>ld));const cd=500;function ld(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=cd,accessibilityDescription:c}=e;const l=a(null);let{addGlobalListener:s,removeGlobalListener:u}=Ns(),{pressProps:d}=vu({isDisabled:t,onPressStart(e){if(("mouse"===e.pointerType||"touch"===e.pointerType)&&(n&&n({...e,type:"longpressstart"}),l.current=setTimeout((()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...e,type:"longpress"}),l.current=null}),i),"touch"===e.pointerType)){let t=e=>{e.preventDefault()};s(e.target,"contextmenu",t,{once:!0}),s(window,"pointerup",(()=>{setTimeout((()=>{u(e.target,"contextmenu",t)}),30)}),{once:!0})}},onPressEnd(e){l.current&&clearTimeout(l.current),!r||"mouse"!==e.pointerType&&"touch"!==e.pointerType||r({...e,type:"longpressend"})}});return{longPressProps:gs(d,Ws(o&&!t?c:null))}}function sd(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var ud={};function dd(e){if("virtual"===Vu()){let t=document.activeElement;Bs((()=>{document.activeElement===t&&document.contains(e)&&Es(e)}))}else Es(e)}function pd(e,t){return"#comment"!==e.nodeName&&function(e){if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;let{display:t,visibility:n}=e.style,r="none"!==t&&"hidden"!==n&&"collapse"!==n;if(r){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:n,visibility:o}=t(e);r="none"!==n&&"hidden"!==o&&"collapse"!==o}return r}(e)&&function(e,t){return!e.hasAttribute("hidden")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(e,t)&&(!e.parentElement||pd(e.parentElement,e))}sd(ud,"FocusScope",(()=>gd)),sd(ud,"useFocusManager",(()=>vd)),sd(ud,"getFocusableTreeWalker",(()=>Id)),sd(ud,"createFocusManager",(()=>Td)),sd({},"focusSafely",(()=>dd));const fd=e.createContext(null);let md=null,hd=new Map;function gd(t){let{children:n,contain:r,restoreFocus:c,autoFocus:l}=t,s=a(),u=a(),d=a([]),p=o(fd),f=null==p?void 0:p.scopeRef;us((()=>{let e=s.current.nextSibling,t=[];for(;e&&e!==u.current;)t.push(e),e=e.nextSibling;d.current=t}),[n,f]),us((()=>(hd.set(d,f),()=>{d!==md&&!kd(d,md)||f&&!hd.has(f)||(md=f),hd.delete(d)})),[d,f]),function(e,t){let n=a(),r=a(null);us((()=>{let o=e.current;if(!t)return;let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||e!==md)return;let n=document.activeElement,r=e.current;if(!Ed(n,r))return;let o=Id(xd(r),{tabbable:!0},r);o.currentNode=n;let i=t.shiftKey?o.previousNode():o.nextNode();i||(o.currentNode=t.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,i=t.shiftKey?o.previousNode():o.nextNode()),t.preventDefault(),i&&Sd(i,!0)},a=t=>{!md||kd(md,e)?(md=e,n.current=t.target):e!==md||Cd(t.target,e)?e===md&&(n.current=t.target):n.current?n.current.focus():md&&_d(md.current)},c=t=>{r.current=requestAnimationFrame((()=>{e!==md||Cd(document.activeElement,e)||(md=e,n.current=t.target,n.current.focus())}))};return document.addEventListener("keydown",i,!1),document.addEventListener("focusin",a,!1),o.forEach((e=>e.addEventListener("focusin",a,!1))),o.forEach((e=>e.addEventListener("focusout",c,!1))),()=>{document.removeEventListener("keydown",i,!1),document.removeEventListener("focusin",a,!1),o.forEach((e=>e.removeEventListener("focusin",a,!1))),o.forEach((e=>e.removeEventListener("focusout",c,!1)))}}),[e,t]),i((()=>()=>cancelAnimationFrame(r.current)),[r])}(d,r),function(e,t,n){const r=a("undefined"!=typeof document?document.activeElement:null);us((()=>{let o=r.current;if(!t)return;let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey)return;let n=document.activeElement;if(!Ed(n,e.current))return;let r=Id(document.body,{tabbable:!0});r.currentNode=n;let i=t.shiftKey?r.previousNode():r.nextNode();if(document.body.contains(o)&&o!==document.body||(o=null),(!i||!Ed(i,e.current))&&o){r.currentNode=o;do{i=t.shiftKey?r.previousNode():r.nextNode()}while(Ed(i,e.current));t.preventDefault(),t.stopPropagation(),i?Sd(i,!0):function(e){for(let t of hd.keys())if(Ed(e,t.current))return!0;return!1}(o)?Sd(o,!0):n.blur()}};return n||document.addEventListener("keydown",i,!0),()=>{n||document.removeEventListener("keydown",i,!0),t&&o&&Ed(document.activeElement,e.current)&&requestAnimationFrame((()=>{document.body.contains(o)&&Sd(o)}))}}),[e,t,n])}(d,c,r),function(t,n){const r=e.useRef(n);i((()=>{r.current&&(md=t,Ed(document.activeElement,md.current)||_d(t.current)),r.current=!1}),[])}(d,l);let m=function(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i}=t,a=r||document.activeElement,c=n[0].previousElementSibling,l=Id(xd(n),{tabbable:o},n);l.currentNode=Ed(a,n)?a:c;let s=l.nextNode();return!s&&i&&(l.currentNode=c,s=l.nextNode()),s&&Sd(s,!0),s},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i}=t,a=r||document.activeElement,c=n[n.length-1].nextElementSibling,l=Id(xd(n),{tabbable:o},n);l.currentNode=Ed(a,n)?a:c;let s=l.previousNode();return!s&&i&&(l.currentNode=c,s=l.previousNode()),s&&Sd(s,!0),s},focusFirst(t={}){let n=e.current,{tabbable:r}=t,o=Id(xd(n),{tabbable:r},n);o.currentNode=n[0].previousElementSibling;let i=o.nextNode();return i&&Sd(i,!0),i},focusLast(t={}){let n=e.current,{tabbable:r}=t,o=Id(xd(n),{tabbable:r},n);o.currentNode=n[n.length-1].nextElementSibling;let i=o.previousNode();return i&&Sd(i,!0),i}}}(d);return e.createElement(fd.Provider,{value:{scopeRef:d,focusManager:m}},e.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:s}),n,e.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:u}))}function vd(){var e;return null===(e=o(fd))||void 0===e?void 0:e.focusManager}const yd=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],bd=yd.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";yd.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const wd=yd.join(':not([hidden]):not([tabindex="-1"]),');function xd(e){return e[0].parentElement}function Ed(e,t){return t.some((t=>t.contains(e)))}function Cd(e,t){for(let n of hd.keys())if((n===t||kd(t,n))&&Ed(e,n.current))return!0;return!1}function kd(e,t){let n=hd.get(t);return!!n&&(n===e||kd(e,n))}function Sd(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{dd(e)}catch(e){}}function _d(e){let t=e[0].previousElementSibling,n=Id(xd(e),{tabbable:!0},e);n.currentNode=t,Sd(n.nextNode())}function Id(e,t,n){let r=(null==t?void 0:t.tabbable)?wd:bd,o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var o;return(null==t||null===(o=t.from)||void 0===o?void 0:o.contains(e))?NodeFilter.FILTER_REJECT:!e.matches(r)||!pd(e)||n&&!Ed(e,n)||(null==t?void 0:t.accept)&&!t.accept(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}});return(null==t?void 0:t.from)&&(o.currentNode=t.from),o}function Td(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:c=t.accept}=n,l=o||document.activeElement,s=Id(r,{tabbable:i,accept:c});r.contains(l)&&(s.currentNode=l);let u=s.nextNode();return!u&&a&&(s.currentNode=r,u=s.nextNode()),u&&Sd(u,!0),u},focusPrevious(n=t){let r=e.current;if(!r)return;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:c=t.accept}=n,l=o||document.activeElement,s=Id(r,{tabbable:i,accept:c});if(!r.contains(l)){let e=Bd(s);return e&&Sd(e,!0),e}s.currentNode=l;let u=s.previousNode();return!u&&a&&(s.currentNode=r,u=Bd(s)),u&&Sd(u,!0),u},focusFirst(n=t){let r=e.current;if(!r)return;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,a=Id(r,{tabbable:o,accept:i}).nextNode();return a&&Sd(a,!0),a},focusLast(n=t){let r=e.current;if(!r)return;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,a=Bd(Id(r,{tabbable:o,accept:i}));return a&&Sd(a,!0),a}}}function Bd(e){let t,n;do{n=e.lastChild(),n&&(t=n)}while(n);return t}function zd(e={}){let{autoFocus:t=!1,isTextInput:r,within:o}=e,i=a({isFocused:!1,isFocusVisible:t||Uu()}),[c,l]=n(!1),[u,d]=n((()=>i.current.isFocused&&i.current.isFocusVisible)),p=s((()=>d(i.current.isFocused&&i.current.isFocusVisible)),[]),f=s((e=>{i.current.isFocused=e,l(e),p()}),[p]);Gu((e=>{i.current.isFocusVisible=e,p()}),[],{isTextInput:r});let{focusProps:m}=Iu({isDisabled:o,onFocusChange:f}),{focusWithinProps:h}=qu({isDisabled:!o,onFocusWithinChange:f});return{isFocused:c,isFocusVisible:i.current.isFocused&&u,focusProps:o?h:m}}function Pd(t){let{children:n,focusClass:r,focusRingClass:o}=t,{isFocused:i,isFocusVisible:a,focusProps:c}=zd(t),l=e.Children.only(n);return e.cloneElement(l,gs(l.props,{...c,className:ts({[r||""]:i,[o||""]:a})}))}sd({},"FocusRing",(()=>Pd)),sd({},"useFocusRing",(()=>zd));var Nd={};sd(Nd,"FocusableProvider",(()=>Ad)),sd(Nd,"useFocusable",(()=>Rd));let Dd=e.createContext(null);function Od(t,n){let{children:r,...o}=t,i={...o,ref:n};return e.createElement(Dd.Provider,{value:i},r)}let Ad=e.forwardRef(Od);function Rd(e,t){let{focusProps:n}=Iu(e),{keyboardProps:r}=od(e),c=gs(n,r),l=function(e){let t=o(Dd)||{};Ls(t,e);let{ref:n,...r}=t;return r}(t),s=e.isDisabled?{}:l,u=a(e.autoFocus);return i((()=>{u.current&&t.current&&dd(t.current),u.current=!1}),[t]),{focusableProps:gs({...c,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}var Ld={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Fd=e.createContext&&e.createContext(Ld),Md=function(){return Md=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Md.apply(this,arguments)};function jd(t){return t&&t.map((function(t,n){return e.createElement(t.tag,Md({key:n},t.attr),jd(t.child))}))}function Hd(t){return function(n){return e.createElement(Ud,Md({attr:Md({},t.attr)},n),jd(t.child))}}function Ud(t){var n=function(n){var r,o=t.attr,i=t.size,a=t.title,c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["attr","size","title"]),l=i||n.size||"1em";return n.className&&(r=n.className),t.className&&(r=(r?r+" ":"")+t.className),e.createElement("svg",Md({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,o,c,{className:r,style:Md(Md({color:t.color||n.color},n.style),t.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&e.createElement("title",null,a),t.children)};return void 0!==Fd?e.createElement(Fd.Consumer,null,(function(e){return n(e)})):n(Ld)}function Vd(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 12h-2v3h-3v2h5v-5zM7 9h3V7H5v5h2V9zm14-6H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18v14.02z"}}]})(e)}function $d(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}}]})(e)}function Wd(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5a2 2 0 00-2 2v4h2V5h14v14H5v-4H3v4a2 2 0 002 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}}]})(e)}function Yd(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M12 4.81V19c-3.31 0-6-2.63-6-5.87 0-1.56.62-3.03 1.75-4.14L12 4.81M6.35 7.56C4.9 8.99 4 10.96 4 13.13 4 17.48 7.58 21 12 21s8-3.52 8-7.87c0-2.17-.9-4.14-2.35-5.57L12 2 6.35 7.56z"}}]})(e)}function Gd(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16z"}}]})(e)}function qd(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 19H5V5h7V3H5a2 2 0 00-2 2v14a2 2 0 002 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}}]})(e)}function Kd(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm0 12H6V10h12v10z"}}]})(e)}function Xd(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H8.9V6zM18 20H6V10h12v10z"}}]})(e)}function Zd(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M24 0H0v24h24V0zm0 0H0v24h24V0zM0 24h24V0H0v24z"}},{tag:"path",attr:{d:"M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8zM6 14c.01-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 17.99 12 18 14H6z"}}]})(e)}function Jd(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 19H5V5h7V3H5a2 2 0 00-2 2v14a2 2 0 002 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}}]})(e)}function Qd(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M10 9h4V6h3l-5-5-5 5h3v3zm-1 1H6V7l-5 5 5 5v-3h3v-4zm14 2l-5-5v3h-3v4h3v3l5-5zm-9 3h-4v3H7l5 5 5-5h-3v-3z"}}]})(e)}function ep(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}}]})(e)}function tp(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 00.12-.61l-1.92-3.32a.488.488 0 00-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 00-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 00-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}}]})(e)}function np(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M15 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zM3 12a5.99 5.99 0 014-5.65V4.26C3.55 5.15 1 8.27 1 12s2.55 6.85 6 7.74v-2.09A5.99 5.99 0 013 12z"}}]})(e)}function rp(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46A11.804 11.804 0 001 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}}]})(e)}function op(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}}]})(e)}function ip(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4z"}}]})(e)}function ap(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 9v6h4l5 5V4L7 9H3zm13.5 3A4.5 4.5 0 0014 7.97v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"}}]})(e)}function cp(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}}]})(e)}function lp(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20.54 5.23l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27zM12 17.5L6.5 12H10v-2h4v2h3.5L12 17.5zM5.12 5l.81-1h12l.94 1H5.12z"}}]})(e)}function sp(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"}}]})(e)}function up(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"circle",attr:{cx:"6",cy:"18",r:"2",fill:"none"}},{tag:"circle",attr:{cx:"12",cy:"12",r:".5",fill:"none"}},{tag:"circle",attr:{cx:"6",cy:"6",r:"2",fill:"none"}},{tag:"path",attr:{d:"M9.64 7.64c.23-.5.36-1.05.36-1.64 0-2.21-1.79-4-4-4S2 3.79 2 6s1.79 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4c0-.59-.13-1.14-.36-1.64L12 14l7 7h3v-1L9.64 7.64zM6 8c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2zm0 12c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2zm6-7.5c-.28 0-.5-.22-.5-.5s.22-.5.5-.5.5.22.5.5-.22.5-.5.5zM19 3l-6 6 2 2 7-7V3z"}}]})(e)}function dp(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}}]})(e)}function pp(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6z"}}]})(e)}function fp(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M13 7h-2v2h2V7zm0 4h-2v2h2v-2zm4 0h-2v2h2v-2zM3 3v18h18V3H3zm16 16H5V5h14v14zm-6-4h-2v2h2v-2zm-4-4H7v2h2v-2z"}}]})(e)}function mp(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16.56 8.94L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15a1.49 1.49 0 000 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.58.59-1.53 0-2.12zM5.21 10L10 5.21 14.79 10H5.21zM19 11.5s-2 2.17-2 3.5c0 1.1.9 2 2 2s2-.9 2-2c0-1.33-2-3.5-2-3.5zM2 20h20v4H2v-4z"}}]})(e)}function hp(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6zm7 7V3.5L18.5 9H13z"}}]})(e)}function gp(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"}}]})(e)}function vp(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19.5 9.5c-1.03 0-1.9.62-2.29 1.5h-2.92c-.39-.88-1.26-1.5-2.29-1.5s-1.9.62-2.29 1.5H6.79c-.39-.88-1.26-1.5-2.29-1.5a2.5 2.5 0 000 5c1.03 0 1.9-.62 2.29-1.5h2.92c.39.88 1.26 1.5 2.29 1.5s1.9-.62 2.29-1.5h2.92c.39.88 1.26 1.5 2.29 1.5a2.5 2.5 0 000-5z"}}]})(e)}function yp(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M2.5 4v3h5v12h3V7h5V4h-13zm19 5h-9v3h3v7h3v-7h3V9z"}}]})(e)}function bp(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"}}]})(e)}function wp(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}}]})(e)}function xp(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6 13c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-8c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm-3 .5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zM6 5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm15 5.5c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zM14 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm0-3.5c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zm-11 10c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm7 7c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm0-17c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zM10 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm0 5.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm8 .5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-8c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm3 8.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zM14 17c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 3.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm-4-12c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0 8.5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm4-4.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-4c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z"}}]})(e)}function Ep(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"circle",attr:{cx:"12",cy:"12",r:"10"}}]})(e)}function Cp(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm-7 7H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4z"}}]})(e)}function kp(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20.71 5.63l-2.34-2.34a.996.996 0 00-1.41 0l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3.12c.4-.4.4-1.03.01-1.42zM6.92 19L5 17.08l8.06-8.06 1.92 1.92L6.92 19z"}}]})(e)}function Sp(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 12H5V7h14v10z"}}]})(e)}function _p(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H6V6h12v12z"}}]})(e)}function Ip(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17 15h2V7c0-1.1-.9-2-2-2H9v2h8v8zM7 17V1H5v4H1v2h4v10c0 1.1.9 2 2 2h10v4h2v-4h4v-2H7z"}}]})(e)}function Tp(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7 11H1v2h6v-2zm2.17-3.24L7.05 5.64 5.64 7.05l2.12 2.12 1.41-1.41zM13 1h-2v6h2V1zm5.36 6.05l-1.41-1.41-2.12 2.12 1.41 1.41 2.12-2.12zM17 11v2h6v-2h-6zm-5-2c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3zm2.83 7.24l2.12 2.12 1.41-1.41-2.12-2.12-1.41 1.41zm-9.19.71l1.41 1.41 2.12-2.12-1.41-1.41-2.12 2.12zM11 23h2v-6h-2v6z"}}]})(e)}function Bp(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15 21h2v-2h-2v2zm4-12h2V7h-2v2zM3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2zm16-2v2h2c0-1.1-.9-2-2-2zm-8 20h2V1h-2v22zm8-6h2v-2h-2v2zM15 5h2V3h-2v2zm4 8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2z"}}]})(e)}function zp(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}}]})(e)}function Pp(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"circle",attr:{cx:"12",cy:"12",r:"3.2"}},{tag:"path",attr:{d:"M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"}}]})(e)}function Np(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-11-4l2.03 2.71L16 11l4 5H8l3-4zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"}}]})(e)}function Dp(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7.34 6.41L.86 12.9l6.49 6.48 6.49-6.48-6.5-6.49zM3.69 12.9l3.66-3.66L11 12.9l-3.66 3.66-3.65-3.66zm15.67-6.26A8.95 8.95 0 0013 4V.76L8.76 5 13 9.24V6c1.79 0 3.58.68 4.95 2.05a7.007 7.007 0 010 9.9 6.973 6.973 0 01-7.79 1.44l-1.49 1.49C10.02 21.62 11.51 22 13 22c2.3 0 4.61-.88 6.36-2.64a8.98 8.98 0 000-12.72z"}}]})(e)}function Op(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.94-.49-7-3.85-7-7.93s3.05-7.44 7-7.93v15.86zm2-15.86c1.03.13 2 .45 2.87.93H13v-.93zM13 7h5.24c.25.31.48.65.68 1H13V7zm0 3h6.74c.08.33.15.66.19 1H13v-1zm0 9.93V19h2.87c-.87.48-1.84.8-2.87.93zM18.24 17H13v-1h5.92c-.2.35-.43.69-.68 1zm1.5-3H13v-1h6.93c-.04.34-.11.67-.19 1z"}}]})(e)}function Ap(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 17v2h6v-2H3zM3 5v2h10V5H3zm10 16v-2h8v-2h-8v-2h-2v6h2zM7 9v2H3v2h4v2h2V9H7zm14 4v-2H11v2h10zm-6-4h2V7h4V5h-4V3h-2v6z"}}]})(e)}function Rp(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7 10l5 5 5-5z"}}]})(e)}function Lp(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}}]})(e)}function Fp(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}}]})(e)}function Mp(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}}]})(e)}function jp(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}}]})(e)}function Hp(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}}]})(e)}function Up(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}}]})(e)}function Vp(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}}]})(e)}function $p(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}}]})(e)}function Wp(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"}}]})(e)}function Yp(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}}]})(e)}function Gp(e,t,n){return e[t]?e[t][0]?e[t][0][n]:e[t][n]:"contentBoxSize"===t?e.contentRect["inlineSize"===n?"width":"height"]:void 0}function qp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Kp(e,t,n){return t&&qp(e.prototype,t),n&&qp(e,n),e}function Xp(){return Xp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xp.apply(this,arguments)}function Zp(e,t){return Zp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Zp(e,t)}function Jp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Qp(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Jp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jp(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ef(e){var t=a(null);return function(n){n&&n!==t.current&&(t.current=n,e(n))}}var tf="undefined"!=typeof window?c:i;function nf(e){return parseFloat(e.replace("px",""))}function rf(e,t,n){return e<t?t:e>n?n:e}function of(e){return null!=e}function af(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n,r=Qp(t);!(n=r()).done;){var o=n.value;o&&("function"==typeof o?o(e):o.current=e)}}}function cf(e,t){var n=[];if(!e||!t||e===document.body)return n;var r=t.getComputedStyle(e);return[r.overflow,r.overflowX,r.overflowY].some((function(e){return["auto","scroll"].includes(e)}))&&n.push(e),[].concat(n,cf(e.parentElement,t))}function lf(e){return"react-laag: Could not find a valid reference for the "+e+" element. There might be 2 causes:\n - Make sure that the 'ref' is set correctly on the "+e+' element when isOpen: true. Also make sure your component forwards the ref with "forwardRef()".\n - Make sure that you are actually rendering the '+e+" when the isOpen prop is set to true"}function sf(e){var t=e.enabled,n=e.onChange,o=e.environment,c=e.ResizeObserverPolyfill,l=e.overflowContainer,u=e.triggerOption,d=function(e,t){if(void 0!==e)return t||e.ResizeObserver}(o,c);i((function(){}),[d]);var p,f,m=a(null),h=Boolean(u),g=(f=a({scrollContainers:[],trigger:null,layer:null}),r((function(){return[function(){return f.current},function(e){f.current="function"==typeof e?e(f.current):e}]}),[])),v=g[0],y=g[1],b=(p=a([]),r((function(){return{hasEventSubscriptions:function(){return p.current.length>0},removeAllEventSubscriptions:function(){for(var e,t=Qp(p.current);!(e=t()).done;)(0,e.value)();p.current=[]},addEventSubscription:function(e){p.current.push(e)}}}),[])),w=b.hasEventSubscriptions,x=b.addEventSubscription,E=b.removeAllEventSubscriptions,C=s((function(){var e=v(),t=e.layer,r=e.trigger,i=e.scrollContainers,a=i[0];if(!t)throw new Error(lf("layer"));if(!r&&!h)throw new Error(lf("trigger"));var c={top:0,left:0};if(a){var l=a.scrollLeft;c={top:a.scrollTop,left:l}}else{var s=o.scrollX;c={top:o.scrollY,left:s}}var u={left:0,top:0};if(a){var d=o.getComputedStyle(a),p=d.borderLeftWidth,f=d.borderTopWidth;u={left:nf(p)||0,top:nf(f)||0}}n({layer:t,trigger:r,scrollContainers:i,arrow:m.current},c,u)}),[v,n,o,m,h]),k=s((function(){var e=v(),t=e.trigger,n=e.layer,r=e.scrollContainers;if(!n)throw new Error(lf("layer"));if(!t&&!h)throw new Error(lf("trigger"));if(d){for(var i=!1,a=new d((function(){i?C():i=!0})),c=0,l=[t,n,document.body];c<l.length;c++){var s=l[c];s&&a.observe(s)}x((function(){for(var e=0,r=[t,n,document.body];e<r.length;e++){var o=r[e];o&&a.unobserve(o)}a.disconnect()}))}for(var u,p=function(){var e=u.value;e.addEventListener("scroll",C),x((function(){return e.removeEventListener("scroll",C)}))},f=Qp([o].concat(r));!(u=f()).done;)p()}),[v,x,C,o,d,h]),S=s((function(e,n){t&&e&&e!==n&&(E(),k(),C())}),[E,k,C,t]),_=ef(s((function(e){var t=v().layer;y((function(t){return Xp({},t,{layer:e})})),S(t,e)}),[v,y,S])),I=s((function(e){var t=cf(e,o),n=t[0];if(n){var r=o.getComputedStyle(n).position;["relative","absolute","fixed"].includes(r)||l||(n.style.position="relative")}return t}),[o,l]),T=ef(s((function(e){var t=I(e),n=v().trigger;y((function(n){return Xp({},n,{trigger:e,scrollContainers:t})})),S(n,e)}),[v,y,S,I])),B=null==u||null==u.getParent?void 0:u.getParent();return tf((function(){B&&y((function(e){return Xp({},e,{scrollContainers:I(B)})}))}),[B,y,I]),tf((function(){return t&&(w()||k()),function(){w()&&E()}}),[t,w,k,E]),tf((function(){t&&C()})),{triggerRef:T,layerRef:_,arrowRef:m,closestScrollContainer:v().scrollContainers[0]||null}}var uf=t({});function df(e){var t=e.children,n=e.registrations,r=s((function(e){return n.current.add(e),function(){return n.current.delete(e)}}),[n]);return l(uf.Provider,{value:r},t)}var pf={top:"bottom",left:"right",bottom:"top",right:"left",center:"center"},ff=function(){function e(e,t,n,r,o,i,a,c,l){this.prop=void 0,this.opposite=void 0,this.isHorizontal=void 0,this.sizeProp=void 0,this.oppositeSizeProp=void 0,this.cssProp=void 0,this.oppositeCssProp=void 0,this.isCenter=void 0,this.isPush=void 0,this.prop=e,this.opposite=t,this.isHorizontal=n,this.sizeProp=r,this.oppositeSizeProp=o,this.cssProp=i,this.oppositeCssProp=a,this.isCenter=c,this.isPush=l}var t=e.prototype;return t.factor=function(e){return e*(this.isPush?1:-1)},t.isOppositeDirection=function(e){return this.isHorizontal!==e.isHorizontal},e}();function mf(e,t){void 0===t&&(t=!0);var n=["left","right"].includes(e);return new ff(e,t?mf(pf[e],!1):null,n,n?"width":"height",n?"height":"width",n?"left":"top",n?"top":"left","center"===e,!["right","bottom"].includes(e))}var hf={top:mf("top"),bottom:mf("bottom"),left:mf("left"),right:mf("right")},gf=Xp({},hf,{center:mf("center")}),vf=["top","left","bottom","right"],yf=function(){function e(e){return this.top=void 0,this.left=void 0,this.right=void 0,this.bottom=void 0,Object.assign(this,e)}return e.mergeSmallestSides=function(t){var n=t[0],r=t.slice(1);if(!n)throw new Error("Please provide at least 1 bounds objects in order to merge");for(var o,i=Object.fromEntries(vf.map((function(e){return[e,n[e]]}))),a=Qp(r);!(o=a()).done;)for(var c,l=o.value,s=Qp(vf);!(c=s()).done;){var u=c.value;i[u]=Math.min(i[u],l[u])}return new e(i)},Kp(e,[{key:"allSidesArePositive",get:function(){var e=this;return vf.every((function(t){return e[t]>=0}))}},{key:"negativeSides",get:function(){var e=this;return Object.fromEntries(vf.filter((function(t){return e[t]<0})).map((function(t){return[t,e[t]]})))}}]),e}();function bf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return e+(t?nf(t):0)}),0)}function wf(e){return{top:e.top,left:e.left,right:e.right,bottom:e.bottom,width:e.width,height:e.height}}var xf,Ef,Cf={top:0,left:0,right:0,bottom:0,width:0,height:0},kf=function(){function e(e){return void 0===e&&(e={}),this.top=void 0,this.left=void 0,this.right=void 0,this.bottom=void 0,this.width=void 0,this.height=void 0,Object.assign(this,Cf,e)}e.create=function(t){return new e(t)},e.fromElement=function(t,n){void 0===n&&(n={});var r=n,o=r.withTransform,i=void 0===o||o,a=r.environment,c=void 0===a?window:a,l=r.withScrollbars,s=void 0===l||l,u=new e(wf(t.getBoundingClientRect()));if(!i){var d=c.getComputedStyle(t),p=d.width,f=d.height,m=d.boxSizing,h=d.borderLeft,g=d.borderRight,v=d.borderTop,y=d.borderBottom,b=d.paddingLeft,w=d.paddingRight,x=d.paddingTop,E=d.paddingBottom;u=new e(Xp({},u,{width:"border-box"===m?nf(p):bf(p,h,g,b,w),height:"border-box"===m?nf(f):bf(f,v,y,x,E)}))}if(!s){var C=u.width-t.clientWidth,k=u.height-t.clientHeight;return u.substract({right:C,bottom:k})}return u},e.empty=function(){return new e},e.fromWindow=function(t){var n=t||{},r=n.innerWidth,o=void 0===r?0:r,i=n.innerHeight,a=void 0===i?0:i;return new e({width:o,height:a,right:o,bottom:a})};var t=e.prototype;return t.toObject=function(){return wf(this)},t.merge=function(t){var n=this.toObject();return new e(Xp({},n,"function"==typeof t?t(n):t))},t.substract=function(t){for(var n=this.toObject(),r=0,o=Object.entries(t);r<o.length;r++){var i=o[r],a=i[0],c=i[1];if(a in hf){var l=hf[a];n[a]+=l.factor(c),n[l.isHorizontal?"width":"height"]-=c}else n[a]-=c||0}return new e(n)},t.offsetsTo=function(e){return new yf({top:e.top-this.top,bottom:this.bottom-e.bottom,left:e.left-this.left,right:this.right-e.right})},t.mapSides=function(t){for(var n=this.toObject(),r=0,o=Object.values(hf);r<o.length;r++){var i=o[r];n[i.prop]=t(i,n[i.prop])}return new e(n)},Kp(e,[{key:"surface",get:function(){return this.width*this.height}}]),e}(),Sf=function(){function e(e,t,n,r,o){this.primary=void 0,this.secondary=void 0,this.offsets=void 0,this.subjectsBounds=void 0,this._cachedLayerBounds=null,this._cachedContainerOffsets=null,this.primary=e,this.secondary=t,this.offsets=o,this.setSubjectsBounds(n,r)}var t=e.prototype;return t.setSubjectsBounds=function(e,t){if(t){var n="function"==typeof t?t(this.primary.prop):t;this.subjectsBounds=e.merge({layer:Xp({},e.layer,n)})}else this.subjectsBounds=e},t.getLayerBounds=function(e){if(void 0===e&&(e=0),this._cachedLayerBounds&&0===e)return this._cachedLayerBounds;var t=this.primary,n=this.secondary,r=this.subjectsBounds,o=r.trigger,i=r.layer,a=r.arrow,c=t.isHorizontal,l=t.oppositeCssProp,s=t.oppositeSizeProp,u=t.prop,d=t.opposite,p=kf.empty();p[d.prop]=o[u]-t.factor(this.offsets.trigger),p[u]=p[d.prop]-t.factor(i[t.sizeProp]);var f=2*this.offsets.arrow,m=o[l]-(i[s]-a[s])+f,h=o[l]+(o[s]-a[s])-f;if(n.isPush||(m+=i[s],h+=i[s]),n.isCenter){var g=(c?hf.top:hf.left).prop,v=(c?hf.bottom:hf.right).prop;p[g]=rf(o[g]+o[s]/2-i[s]/2+e,m,h),p[v]=p[g]+i[s]}else{var y=n,b=o[y.prop],w=b<m?m-b:b>h?h-b:0;p[y.prop]=rf(b+e+w,m,h),p[y.opposite.prop]=p[y.prop]+n.factor(i[s])}p.width=p.right-p.left,p.height=p.bottom-p.top;var x=kf.create(p);return 0===e&&(this._cachedLayerBounds=x),x},t.getLayerCollisionBounds=function(){var e=this.offsets.container;return this.getLayerBounds().mapSides((function(t,n){return n-t.factor(e)})).merge((function(t){var n=t.width,r=t.height;return{width:n+2*e,height:r+2*e}}))},t.getContainerOffsets=function(e){if(this._cachedContainerOffsets&&!e)return this._cachedContainerOffsets;var t=this.subjectsBounds.merge({layer:e||this.getLayerCollisionBounds()}),n=yf.mergeSmallestSides(t.layerOffsetsToScrollContainers);return e||(this._cachedContainerOffsets=n),n},Kp(e,[{key:"type",get:function(){return this.primary.prop+"-"+("center"===this.secondary.prop?"center":["bottom","right"].includes(this.secondary.prop)?"end":"start")}},{key:"triggerIsBigger",get:function(){var e=this.secondary.isHorizontal,t=this.subjectsBounds,n=t.triggerHasBiggerWidth,r=t.triggerHasBiggerHeight;return e&&n||!e&&r}},{key:"fitsContainer",get:function(){return this.getContainerOffsets().allSidesArePositive}},{key:"visibleSurface",get:function(){var e=this.getLayerBounds(),t=this.getContainerOffsets(e).negativeSides;for(var n in t)t[n]=-t[n];return e.substract(t).surface}},{key:"secondaryOffsetSide",get:function(){var e,t,n=this,r=this.getContainerOffsets();return(null!=(e=null==(t=Object.entries(r.negativeSides).map((function(e){var t=e[0],n=e[1];return[hf[t],n]})).filter((function(e){var t=e[0];return n.primary.isOppositeDirection(t)})).sort((function(e,t){var n=e[1];return t[1]-n})))?void 0:t[0])?e:[])[0]||null}}]),e}(),_f=function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Zp(t,n),r.prototype.getLayerBounds=function(){var e=this.subjectsBounds,t=e.trigger,n=e.layer,r=kf.empty();return r.top=t.top+t.height/2-n.height/2,r.bottom=r.top+n.height,r.left=t.left+t.width/2-n.width/2,r.right=r.left+n.width,r.width=r.right-r.left,r.height=r.bottom-r.top,r},r}(Sf),If={position:"absolute",willChange:"top, left",left:null,right:null,top:null,bottom:null},Tf=function(){function e(e,t,n){this.placements=void 0,this.config=void 0,this.subjectsBounds=void 0,this.placements=e,this.config=t,this.subjectsBounds=n}e.getSidesFromPlacementType=function(e){var t=e.split("-"),n=t[0],r=t[1],o=hf[n];return[o,"center"===r?gf.center:o.isHorizontal?"start"===r?gf.top:gf.bottom:"start"===r?gf.left:gf.right]},e.create=function(t,n){var r={arrow:n.arrowOffset,container:n.containerOffset,trigger:n.triggerOffset};function o(o){void 0===o&&(o=n.placement);var i=e.getSidesFromPlacementType(o),a=i[0],c=i[1],l=hf[a.isHorizontal?n.preferY:n.preferX],s=!a.isHorizontal&&t.triggerHasBiggerWidth||a.isHorizontal&&t.triggerHasBiggerHeight;function u(e,o){return new Sf(e,o,t,n.layerDimensions,r)}var d=[];return d[0]=u(a,c),d[1]=u(a,c.isCenter?l:gf.center),d[2]=u(a,gf[(c.opposite.isCenter?l.opposite:c.opposite).prop]),d[3]=u(l,s?a:gf[a.opposite.prop]),d[4]=u(l,gf.center),d[5]=u(l,s?gf[a.opposite.prop]:a),d[6]=u(hf[l.opposite.prop],s?a:gf[a.opposite.prop]),d[7]=u(hf[l.opposite.prop],gf.center),d[8]=u(hf[l.opposite.prop],s?gf[a.opposite.prop]:a),d[9]=u(hf[a.opposite.prop],c),d[10]=u(hf[a.opposite.prop],c.isCenter?l:gf.center),d[11]=u(hf[a.opposite.prop],gf[(c.opposite.isCenter?l.opposite:c.opposite).prop]),d.filter((function(e){return e.type===n.placement||n.possiblePlacements.includes(e.type)}))}return"center"===n.placement?new e([new _f(gf.center,gf.center,t,n.layerDimensions,r)].concat(o(n.preferY+"-"+n.preferX)),n,t):new e(o(),n,t)};var t=e.prototype;return t.filterPlacementsBySide=function(e){return this.placements.filter((function(t){return t.primary===e}))},t.findFirstPlacementThatFits=function(){return this.placements.find((function(e){return e.fitsContainer}))},t.placementWithBiggestVisibleSurface=function(){var e=this.placements.map((function(e){return{placement:e,surface:e.visibleSurface}})).sort((function(e,t){return t.surface-e.surface}));return e[0].placement},t.findSuitablePlacement=function(){return this.config.auto?this.findFirstPlacementThatFits()||this.placementWithBiggestVisibleSurface():this.placements[0]},t.getSecondaryOffset=function(e){var t=this.config,n=t.auto,r=t.snap;if(!n||r||e instanceof _f)return 0;var o=this.filterPlacementsBySide(e.primary);if(0===o.indexOf(e)&&e.fitsContainer)return 0;var i=o.find((function(e){return!e.fitsContainer}));if(!i)return 0;var a=i.secondaryOffsetSide;if(!a)return 0;var c,l=e.getContainerOffsets(),s=e.secondary;return c=e.triggerIsBigger||i===e?a.isPush?-1:1:s===gf.left||[gf.top,gf.center].includes(s)&&a.isPush?-1:1,l[a.prop]*c},t.getStyles=function(e,t,n,r){var o={willChange:"top, left, width, height"},i=function(e,t,n){var r;if(t.primary.isCenter)return If;var o=e.layer,i=e.trigger,a=e.arrow,c=t.primary.oppositeSizeProp,l=i[c]>o[c],s=n+a[c]/2,u=o[c]-a[c]/2-n,d=function(e,t,n){var r=e.layer,o=e.trigger,i=e.arrow,a=t.primary.oppositeSizeProp,c=t.primary.isHorizontal?["top","bottom"]:["left","right"],l=c[0],s=c[1],u=r[l]+r[a]/2-o[l]-i[a]/2-n,d=r[s]-r[a]/2-o[s]+i[a]/2+n;return(u<0?-u:0)+(d>0?-d:0)}(e,t,n),p=t.primary.prop,f=t.primary.oppositeCssProp,m=l?o[c]/2+d:i[f]+i[c]/2-o[f];return Xp({},If,((r={})[p]="100%",r[f]=rf(m,s,u),r))}(this.subjectsBounds.merge({layer:e}),t,this.config.arrowOffset);return{arrow:i,layer:this.config.overflowContainer?Xp({},o,{position:"fixed",top:e.top,left:e.left}):Xp({},o,{position:"absolute",top:e.top-this.subjectsBounds.parent.top+n.top-r.top,left:e.left-this.subjectsBounds.parent.left+n.left-r.left})}},t.getHasDisappeared=function(e){var t=this.config.overflowContainer?this.subjectsBounds.trigger:e,n=yf.mergeSmallestSides(this.subjectsBounds.offsetsToScrollContainers(t,!0));return Object.entries(n.negativeSides).some((function(e){var n=e[0];return e[1]<=-t[hf[n].sizeProp]}))?"full":n.allSidesArePositive?null:"partial"},t.result=function(e,t){var n=this.findSuitablePlacement(),r=this.getSecondaryOffset(n),o=n.getLayerBounds(r);return{styles:this.getStyles(o,n,e,t),layerSide:n.primary.prop,placement:n,layerBounds:o,hasDisappeared:this.getHasDisappeared(o)}},e}(),Bf=function(){function e(e,t){this.overflowContainer=void 0,this.trigger=void 0,this.layer=void 0,this.arrow=void 0,this.parent=void 0,this.window=void 0,this.scrollContainers=void 0,this.overflowContainer=t,Object.assign(this,e)}e.create=function(t,n,r,o,i,a,c,l){var s=kf.fromWindow(t);return new e({layer:kf.fromElement(n,{environment:t,withTransform:!1}),trigger:l?kf.create(wf(l())):kf.fromElement(r),arrow:i?kf.fromElement(i):kf.empty(),parent:o?kf.fromElement(o):s,window:s,scrollContainers:[s].concat(a.map((function(e){return kf.fromElement(e,{withScrollbars:!1})})))},c)};var t=e.prototype;return t.merge=function(t){return new e(Xp({},this,t),this.overflowContainer)},t.offsetsToScrollContainers=function(e,t){return void 0===t&&(t=!1),(this.overflowContainer&&!t?[this.window]:this.scrollContainers).map((function(t){return t.offsetsTo(e)}))},Kp(e,[{key:"layerOffsetsToScrollContainers",get:function(){return this.offsetsToScrollContainers(this.layer)}},{key:"triggerHasBiggerWidth",get:function(){return this.trigger.width>this.layer.width}},{key:"triggerHasBiggerHeight",get:function(){return this.trigger.height>this.layer.height}}]),e}(),zf={auto:!1,arrowOffset:0,containerOffset:10,triggerOffset:0,overflowContainer:!0,placement:"top-center",possiblePlacements:["bottom-start","bottom-end","bottom-center","top-start","top-center","top-end","left-end","left-center","left-start","right-end","right-center","right-start","center"],preferX:"right",preferY:"bottom",snap:!1,container:void 0,trigger:void 0};function Pf(e){var t,r=e.isOpen,c=void 0!==r&&r,u=e.overflowContainer,d=void 0===u?zf.overflowContainer:u,p=e.environment,f=void 0===p?"undefined"!=typeof window?window:void 0:p,m=e.ResizeObserver,g=e.placement,v=void 0===g?zf.placement:g,y=e.possiblePlacements,b=void 0===y?zf.possiblePlacements:y,w=e.preferX,x=void 0===w?zf.preferX:w,E=e.preferY,C=void 0===E?zf.preferY:E,k=e.auto,S=void 0===k?zf.auto:k,_=e.snap,I=void 0===_?zf.snap:_,T=e.triggerOffset,B=void 0===T?zf.triggerOffset:T,z=e.containerOffset,P=void 0===z?zf.containerOffset:z,N=e.arrowOffset,D=void 0===N?zf.arrowOffset:N,O=e.container,A=void 0===O?zf.container:O,R=e.layerDimensions,L=void 0===R?null:R,F=e.onDisappear,M=e.onOutsideClick,j=e.onParentClose,H=e.trigger,U=n((function(){return{layerSide:"center"===v?"center":Tf.getSidesFromPlacementType(v)[0].prop,styles:{layer:{position:d?"fixed":"absolute",top:0,left:0},arrow:{position:"absolute",top:0,left:0}}}})),V=U[0],$=U[1],W=a(null),Y=function(e,t){var n=a(e);return t?(n.current=e,n):(n.current=null,n)}(V,c),G=a(null);i((function(){return function(){G.current&&(cancelAnimationFrame(G.current),G.current=null)}}),[]);var q=s((function(e,t,n){var r=e.arrow,o=e.layer,i=e.scrollContainers,a=e.trigger,c=i[0],l=Bf.create(f,o,a,c,r,i,d,null==H?void 0:H.getBounds),s={placement:v,possiblePlacements:b,auto:S,layerDimensions:L,arrowOffset:D,containerOffset:P,triggerOffset:B,preferX:x,preferY:C,snap:I,overflowContainer:d},u=Tf.create(l,s).result(t,n),p=u.hasDisappeared,m={layerSide:u.layerSide,styles:u.styles};Y.current&&!function(e,t){if(e.layerSide!==t.layerSide)return!0;for(var n=0,r=["position","top","left","right","bottom"];n<r.length;n++){var o=r[n];if(e.styles.layer[o]!==t.styles.layer[o]||e.styles.arrow[o]!==t.styles.arrow[o])return!0}return!1}(Y.current,m)||(Y.current=m,G.current&&cancelAnimationFrame(G.current),G.current=requestAnimationFrame((function(){$(m),G.current=null}))),of(p)&&of(F)&&F(p)}),[D,S,P,f,L,F,d,v,b,x,C,I,B,Y,H]),K=sf({ResizeObserverPolyfill:m,environment:f,enabled:c,overflowContainer:d,onChange:q,triggerOption:H}),X=K.triggerRef,Z=K.layerRef,J=K.arrowRef,Q=K.closestScrollContainer,ee=function(e){var t=e.isOpen,n=e.onOutsideClick,r=e.onParentClose,c=a(null),l=a(null),u=a(new Set),d=o(uf),p=s((function(e){var t=e.target,n=c.current&&c.current.contains(t),r=l.current&&l.current.contains(t),o=function(e,t){for(var n,r=Qp(e);!(n=r()).done;)if(!(0,n.value.shouldCloseWhenClickedOutside)(t))return!1;return!0}(u.current,e);return r&&o&&u.current.forEach((function(e){return(0,e.closeChild)()})),!n&&!r&&o}),[c,l,u]);return i((function(){if("function"==typeof d)return d({shouldCloseWhenClickedOutside:p,closeChild:function(){r&&r()}})}),[d,p,r,u]),i((function(){if(t&&n&&"function"!=typeof d)return document.addEventListener("click",e,!0),function(){return document.removeEventListener("click",e,!0)};function e(e){p(e)&&n()}}),[t,n,p,d]),i((function(){t||u.current.forEach((function(e){return(0,e.closeChild)()}))}),[t]),{closeOnOutsideClickRefs:{trigger:c,layer:l},registrations:u}}({isOpen:c,onOutsideClick:M,onParentClose:j}),te=ee.closeOnOutsideClickRefs,ne=ee.registrations,re={triggerProps:Boolean(H)?{}:{ref:af(X,te.trigger,W)},layerProps:{ref:af(Z,te.layer),style:V.styles.layer},arrowProps:{ref:J,style:V.styles.arrow,layerSide:V.layerSide},layerSide:V.layerSide,triggerBounds:c?H?H.getBounds():null==(t=W.current)?void 0:t.getBoundingClientRect():null,renderLayer:function(e){return"undefined"!=typeof document?h(l(df,{registrations:ne,children:e}),d||!Q?function(e){var t;if("function"==typeof e){if(!((t=e())&&t instanceof HTMLElement))throw new Error("react-laag: You've passed a function to the 'container' prop, but it returned no valid HTMLElement")}else if(e instanceof HTMLElement)t=e;else if("string"==typeof e){if(!(t=document.getElementById(e)))throw new Error("react-laag: You've passed element with id '"+e+"' to the 'container' prop, but it returned no valid HTMLElement")}else{if(null instanceof HTMLElement)return null;(t=document.getElementById("layers"))||((t=document.createElement("div")).id="layers",t.style.cssText="\n position: absolute;\n top: 0px;\n left: 0px;\n right: 0px;\n ",document.body.appendChild(t))}return t}(A):Q):null}};return re}(Ef=xf||(xf={}))[Ef.ENTERING=0]="ENTERING",Ef[Ef.LEAVING=1]="LEAVING",Ef[Ef.IDLE=2]="IDLE";let Nf=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),"");var Df,Of,Af,Rf,Lf,Ff,Mf,jf,Hf,Uf;!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(Df||(Df={})),function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(Of||(Of={})),function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(Af||(Af={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(Rf||(Rf={})),function(e){e[e.RightClick=2]="RightClick"}(Lf||(Lf={})),function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(Ff||(Ff={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(Mf||(Mf={})),function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(jf||(jf={})),function(e){e.Optimized="optimized"}(Hf||(Hf={})),function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Uf||(Uf={}));var Vf={exports:{}};
|
|
21
|
+
***************************************************************************** */var wa=function(e,t){return wa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},wa(e,t)},xa=function(){return xa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},xa.apply(this,arguments)};function Ea(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Ca(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function c(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}l((r=r.apply(e,t||[])).next())}))}function ka(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}function Sa(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function _a(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var Ia=n(null);function Ba(e){var n=r({page:"assets"});return t.createElement(Ia.Provider,{value:n},e.children)}function Ta(){var e=i(Ia);if(null===e)throw new Error("useRouter must be used with a RouterProvider");return e}var Na=n(null),za={assets:"",collection:"",collections:"",isLoading:!1};function Da(e){var n=r(za),i=n[0],c=n[1],l=Ta()[0];function s(e,t){var n=""!==t;c((function(r){var o;return xa(xa({},r),((o={})[e]=t,o.isLoading=n,o))}))}function u(e){c((function(t){return xa(xa({},t),{isLoading:e})}))}function d(){c(za)}a((function(){var t;s("assets",null!==(t=e.defaultValue)&&void 0!==t?t:"")}),[e.defaultValue]),a((function(){c((function(e){return xa(xa({},e),{collection:""})}))}),[l]);var p=o((function(){return xa(xa({},i),{setSearch:s,setIsLoading:u,clear:d})}),[i]);return t.createElement(Na.Provider,{value:p},e.children)}function Pa(){var e=i(Na);if(null===e)throw new Error("useSearchState must be used within a SearchStateContext");return e}function Oa(e){var t=Pa();return{value:t[e],isLoading:t.isLoading,setSearch:function(n){return t.setSearch(e,n)},setIsLoading:t.setIsLoading}}var Aa={error:console.error},Ra=n(null),Fa=Ra.Provider,La=function(){var e=i(Ra);if(!e)throw new Error("useRootElement must be used withn a RootElementProvider");return e},Ma={exports:{}},ja={},Ha="function"==typeof Symbol&&Symbol.for,Ua=Ha?Symbol.for("react.element"):60103,Va=Ha?Symbol.for("react.portal"):60106,$a=Ha?Symbol.for("react.fragment"):60107,Wa=Ha?Symbol.for("react.strict_mode"):60108,Ga=Ha?Symbol.for("react.profiler"):60114,qa=Ha?Symbol.for("react.provider"):60109,Ya=Ha?Symbol.for("react.context"):60110,Ka=Ha?Symbol.for("react.async_mode"):60111,Xa=Ha?Symbol.for("react.concurrent_mode"):60111,Za=Ha?Symbol.for("react.forward_ref"):60112,Ja=Ha?Symbol.for("react.suspense"):60113,Qa=Ha?Symbol.for("react.suspense_list"):60120,ec=Ha?Symbol.for("react.memo"):60115,tc=Ha?Symbol.for("react.lazy"):60116,nc=Ha?Symbol.for("react.block"):60121,rc=Ha?Symbol.for("react.fundamental"):60117,oc=Ha?Symbol.for("react.responder"):60118,ic=Ha?Symbol.for("react.scope"):60119;function ac(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ua:switch(e=e.type){case Ka:case Xa:case $a:case Ga:case Wa:case Ja:return e;default:switch(e=e&&e.$$typeof){case Ya:case Za:case tc:case ec:case qa:return e;default:return t}}case Va:return t}}}function cc(e){return ac(e)===Xa}function lc(e){function t(e,r,l,s,p){for(var f,m,h,g,w,E=0,C=0,k=0,S=0,_=0,D=0,O=h=f=0,R=0,F=0,L=0,M=0,j=l.length,H=j-1,U="",V="",$="",W="";R<j;){if(m=l.charCodeAt(R),R===H&&0!==C+S+k+E&&(0!==C&&(m=47===C?10:47),S=k=E=0,j++,H++),0===C+S+k+E){if(R===H&&(0<F&&(U=U.replace(d,"")),0<U.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:U+=l.charAt(R)}m=59}switch(m){case 123:for(f=(U=U.trim()).charCodeAt(0),h=1,M=++R;R<j;){switch(m=l.charCodeAt(R)){case 123:h++;break;case 125:h--;break;case 47:switch(m=l.charCodeAt(R+1)){case 42:case 47:e:{for(O=R+1;O<H;++O)switch(l.charCodeAt(O)){case 47:if(42===m&&42===l.charCodeAt(O-1)&&R+2!==O){R=O+1;break e}break;case 10:if(47===m){R=O+1;break e}}R=O}}break;case 91:m++;case 40:m++;case 34:case 39:for(;R++<H&&l.charCodeAt(R)!==m;);}if(0===h)break;R++}if(h=l.substring(M,R),0===f&&(f=(U=U.replace(u,"").trim()).charCodeAt(0)),64===f){switch(0<F&&(U=U.replace(d,"")),m=U.charCodeAt(1)){case 100:case 109:case 115:case 45:F=r;break;default:F=z}if(M=(h=t(r,F,h,m,p+1)).length,0<P&&(w=c(3,h,F=n(z,U,L),r,B,I,M,m,p,s),U=F.join(""),void 0!==w&&0===(M=(h=w.trim()).length)&&(m=0,h="")),0<M)switch(m){case 115:U=U.replace(x,a);case 100:case 109:case 45:h=U+"{"+h+"}";break;case 107:h=(U=U.replace(v,"$1 $2"))+"{"+h+"}",h=1===N||2===N&&i("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=U+h,112===s&&(V+=h,h="")}else h=""}else h=t(r,n(r,U,L),h,s,p+1);$+=h,h=L=F=O=f=0,U="",m=l.charCodeAt(++R);break;case 125:case 59:if(1<(M=(U=(0<F?U.replace(d,""):U).trim()).length))switch(0===O&&(f=U.charCodeAt(0),45===f||96<f&&123>f)&&(M=(U=U.replace(" ",":")).length),0<P&&void 0!==(w=c(1,U,r,e,B,I,V.length,s,p,s))&&0===(M=(U=w.trim()).length)&&(U="\0\0"),f=U.charCodeAt(0),m=U.charCodeAt(1),f){case 0:break;case 64:if(105===m||99===m){W+=U+l.charAt(R);break}default:58!==U.charCodeAt(M-1)&&(V+=o(U,f,m,U.charCodeAt(2)))}L=F=O=f=0,U="",m=l.charCodeAt(++R)}}switch(m){case 13:case 10:47===C?C=0:0===1+f&&107!==s&&0<U.length&&(F=1,U+="\0"),0<P*A&&c(0,U,r,e,B,I,V.length,s,p,s),I=1,B++;break;case 59:case 125:if(0===C+S+k+E){I++;break}default:switch(I++,g=l.charAt(R),m){case 9:case 32:if(0===S+E+C)switch(_){case 44:case 58:case 9:case 32:g="";break;default:32!==m&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===S+C+E&&(F=L=1,g="\f"+g);break;case 108:if(0===S+C+E+T&&0<O)switch(R-O){case 2:112===_&&58===l.charCodeAt(R-3)&&(T=_);case 8:111===D&&(T=D)}break;case 58:0===S+C+E&&(O=R);break;case 44:0===C+k+S+E&&(F=1,g+="\r");break;case 34:case 39:0===C&&(S=S===m?0:0===S?m:S);break;case 91:0===S+C+k&&E++;break;case 93:0===S+C+k&&E--;break;case 41:0===S+C+E&&k--;break;case 40:0===S+C+E&&(0===f&&(2*_+3*D==533||(f=1)),k++);break;case 64:0===C+k+S+E+O+h&&(h=1);break;case 42:case 47:if(!(0<S+E+k))switch(C){case 0:switch(2*m+3*l.charCodeAt(R+1)){case 235:C=47;break;case 220:M=R,C=42}break;case 42:47===m&&42===_&&M+2!==R&&(33===l.charCodeAt(M+2)&&(V+=l.substring(M,R+1)),g="",C=0)}}0===C&&(U+=g)}D=_,_=m,R++}if(0<(M=V.length)){if(F=r,0<P&&void 0!==(w=c(2,V,F,e,B,I,M,s,p,s))&&0===(V=w).length)return W+V+$;if(V=F.join(",")+"{"+V+"}",0!=N*T){switch(2!==N||i(V,2)||(T=0),T){case 111:V=V.replace(b,":-moz-$1")+V;break;case 112:V=V.replace(y,"::-webkit-input-$1")+V.replace(y,"::-moz-$1")+V.replace(y,":-ms-input-$1")+V}T=0}}return W+V+$}function n(e,t,n){var o=t.trim().split(h);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var c=0;for(e=0===a?"":e[0]+" ";c<i;++c)t[c]=r(e,t[c],n).trim();break;default:var l=c=0;for(t=[];c<i;++c)for(var s=0;s<a;++s)t[l++]=r(e[s]+" ",o[c],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var a=e+";",c=2*t+3*n+4*r;if(944===c){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===N||2===N&&i(l,1)?"-webkit-"+l+l:l}if(0===N||2===N&&!i(a,1))return a;switch(c){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(_,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return f.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(w,"tb");break;case 232:l=a.replace(w,"tb-rl");break;case 220:l=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,c=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<c?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(C,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(C,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(m,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),O(2!==t?r:r.replace(k,"$1"),n,t)}function a(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(E," or ($1)").substring(4):"("+t+")"}function c(e,t,n,r,o,i,a,c,l,u){for(var d,p=0,f=t;p<P;++p)switch(d=D[p].call(s,e,f,n,r,o,i,a,c,l,u)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function l(e){return void 0!==(e=e.prefix)&&(O=null,e?"function"!=typeof e?N=1:(N=2,O=e):N=0),l}function s(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<P){var o=c(-1,n,r,r,B,I,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var i=t(z,r,n,0,0);return 0<P&&void 0!==(o=c(-2,i,r,r,B,I,i.length,0,0,0))&&(i=o),T=0,I=B=1,i}var u=/^\0+/g,d=/[\0\r\f]/g,p=/: */g,f=/zoo|gra/,m=/([,: ])(transform)/g,h=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,E=/([\s\S]*?);/g,C=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,_=/([^-])(image-set\()/,I=1,B=1,T=0,N=1,z=[],D=[],P=0,O=null,A=0;return s.use=function e(t){switch(t){case void 0:case null:P=D.length=0;break;default:if("function"==typeof t)D[P++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else A=0|!!t}return e},s.set=l,void 0!==e&&l(e),s}ja.AsyncMode=Ka,ja.ConcurrentMode=Xa,ja.ContextConsumer=Ya,ja.ContextProvider=qa,ja.Element=Ua,ja.ForwardRef=Za,ja.Fragment=$a,ja.Lazy=tc,ja.Memo=ec,ja.Portal=Va,ja.Profiler=Ga,ja.StrictMode=Wa,ja.Suspense=Ja,ja.isAsyncMode=function(e){return cc(e)||ac(e)===Ka},ja.isConcurrentMode=cc,ja.isContextConsumer=function(e){return ac(e)===Ya},ja.isContextProvider=function(e){return ac(e)===qa},ja.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ua},ja.isForwardRef=function(e){return ac(e)===Za},ja.isFragment=function(e){return ac(e)===$a},ja.isLazy=function(e){return ac(e)===tc},ja.isMemo=function(e){return ac(e)===ec},ja.isPortal=function(e){return ac(e)===Va},ja.isProfiler=function(e){return ac(e)===Ga},ja.isStrictMode=function(e){return ac(e)===Wa},ja.isSuspense=function(e){return ac(e)===Ja},ja.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===$a||e===Xa||e===Ga||e===Wa||e===Ja||e===Qa||"object"==typeof e&&null!==e&&(e.$$typeof===tc||e.$$typeof===ec||e.$$typeof===qa||e.$$typeof===Ya||e.$$typeof===Za||e.$$typeof===rc||e.$$typeof===oc||e.$$typeof===ic||e.$$typeof===nc)},ja.typeOf=ac,Ma.exports=ja;var sc={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},uc=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,dc=function(e){var t={};return function(e){return void 0===t[e]&&(t[e]=(n=e,uc.test(n)||111===n.charCodeAt(0)&&110===n.charCodeAt(1)&&n.charCodeAt(2)<91)),t[e];var n}}(),pc=Ma.exports,fc={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},mc={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},hc={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},gc={};function vc(e){return pc.isMemo(e)?hc:gc[e.$$typeof]||fc}gc[pc.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},gc[pc.Memo]=hc;var yc=Object.defineProperty,bc=Object.getOwnPropertyNames,wc=Object.getOwnPropertySymbols,xc=Object.getOwnPropertyDescriptor,Ec=Object.getPrototypeOf,Cc=Object.prototype,kc=function e(t,n,r){if("string"!=typeof n){if(Cc){var o=Ec(n);o&&o!==Cc&&e(t,o,r)}var i=bc(n);wc&&(i=i.concat(wc(n)));for(var a=vc(t),c=vc(n),l=0;l<i.length;++l){var s=i[l];if(!(mc[s]||r&&r[s]||c&&c[s]||a&&a[s])){var u=xc(n,s);try{yc(t,s,u)}catch(e){}}}}return t};function Sc(){return(Sc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var _c=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},Ic=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Ma.exports.typeOf(e)},Bc=Object.freeze([]),Tc=Object.freeze({});function Nc(e){return"function"==typeof e}function zc(e){return e.displayName||e.name||"Component"}function Dc(e){return e&&"string"==typeof e.styledComponentId}var Pc="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Oc="undefined"!=typeof window&&"HTMLElement"in window,Ac=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),Rc={};function Fc(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var Lc=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&Fc(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),c=0,l=t.length;c<l;c++)this.tag.insertRule(a,t[c])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),Mc=new Map,jc=new Map,Hc=1,Uc=function(e){if(Mc.has(e))return Mc.get(e);for(;jc.has(Hc);)Hc++;var t=Hc++;return Mc.set(e,t),jc.set(t,e),t},Vc=function(e){return jc.get(e)},$c=function(e,t){t>=Hc&&(Hc=t+1),Mc.set(e,t),jc.set(t,e)},Wc="style["+Pc+'][data-styled-version="5.3.3"]',Gc=new RegExp("^"+Pc+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),qc=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},Yc=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,i=n.length;o<i;o++){var a=n[o].trim();if(a){var c=a.match(Gc);if(c){var l=0|parseInt(c[1],10),s=c[2];0!==l&&($c(s,l),qc(e,s,c[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(a)}}},Kc=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(Pc))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(Pc,"active"),r.setAttribute("data-styled-version","5.3.3");var a="undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},Xc=function(){function e(e){var t=this.element=Kc(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}Fc(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),Zc=function(){function e(e){var t=this.element=Kc(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Jc=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Qc=Oc,el={isServer:!Oc,useCSSOMInjection:!Ac},tl=function(){function e(e,t,n){void 0===e&&(e=Tc),void 0===t&&(t={}),this.options=Sc({},el,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Oc&&Qc&&(Qc=!1,function(e){for(var t=document.querySelectorAll(Wc),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(Pc)&&(Yc(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return Uc(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(Sc({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new Jc(o):r?new Xc(o):new Zc(o),new Lc(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(Uc(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Uc(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(Uc(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var i=Vc(o);if(void 0!==i){var a=e.names.get(i),c=t.getGroup(o);if(a&&c&&a.size){var l=Pc+".g"+o+'[id="'+i+'"]',s="";void 0!==a&&a.forEach((function(e){e.length>0&&(s+=e+",")})),r+=""+c+l+'{content:"'+s+'"}/*!sc*/\n'}}}return r}(this)},e}(),nl=/(a)(d)/gi,rl=function(e){return String.fromCharCode(e+(e>25?39:97))};function ol(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=rl(t%52)+n;return(rl(t%52)+n).replace(nl,"$1-$2")}var il=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},al=function(e){return il(5381,e)};function cl(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Nc(n)&&!Dc(n))return!1}return!0}var ll=al("5.3.3"),sl=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&cl(e),this.componentId=t,this.baseHash=il(ll,t),this.baseStyle=n,tl.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var i=Il(this.rules,e,t,n).join(""),a=ol(il(this.baseHash,i)>>>0);if(!t.hasNameForId(r,a)){var c=n(i,"."+a,void 0,r);t.insertRules(r,a,c)}o.push(a),this.staticRulesId=a}else{for(var l=this.rules.length,s=il(this.baseHash,n.hash),u="",d=0;d<l;d++){var p=this.rules[d];if("string"==typeof p)u+=p;else if(p){var f=Il(p,e,t,n),m=Array.isArray(f)?f.join(""):f;s=il(s,m+d),u+=m}}if(u){var h=ol(s>>>0);if(!t.hasNameForId(r,h)){var g=n(u,"."+h,void 0,r);t.insertRules(r,h,g)}o.push(h)}}return o.join(" ")},e}(),ul=/^\s*\/\/.*$/gm,dl=[":","[",".","#"];function pl(e){var t,n,r,o,i=void 0===e?Tc:e,a=i.options,c=void 0===a?Tc:a,l=i.plugins,s=void 0===l?Bc:l,u=new lc(c),d=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,c,l,s,u,d){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===s)return r+"/*|*/";break;case 3:switch(s){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),f=function(e,r,i){return 0===r&&-1!==dl.indexOf(i[n.length])||i.match(o)?e:"."+t};function m(e,i,a,c){void 0===c&&(c="&");var l=e.replace(ul,""),s=i&&a?a+" "+i+" { "+l+" }":l;return t=c,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),u(a||!i?"":i,s)}return u.use([].concat(s,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,f))},p,function(e){if(-2===e){var t=d;return d=[],t}}])),m.hash=s.length?s.reduce((function(e,t){return t.name||Fc(15),il(e,t.name)}),5381).toString():"",m}var fl=t.createContext(),ml=t.createContext(),hl=new tl,gl=pl();function vl(){return i(fl)||hl}function yl(){return i(ml)||gl}function bl(e){var n=r(e.stylisPlugins),i=n[0],c=n[1],l=vl(),s=o((function(){var t=l;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),u=o((function(){return pl({options:{prefix:!e.disableVendorPrefixes},plugins:i})}),[e.disableVendorPrefixes,i]);return a((function(){(function(e,t,n,r){var o=void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var s=i[l];if(!c(s))return!1;var u=e[s],d=t[s];if(!1===(o=void 0)||void 0===o&&u!==d)return!1}return!0})(i,e.stylisPlugins)||c(e.stylisPlugins)}),[e.stylisPlugins]),t.createElement(fl.Provider,{value:s},t.createElement(ml.Provider,{value:u},e.children))}var wl=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=gl);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return Fc(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=gl),this.name+e.hash},e}(),xl=/([A-Z])/,El=/([A-Z])/g,Cl=/^ms-/,kl=function(e){return"-"+e.toLowerCase()};function Sl(e){return xl.test(e)?e.replace(El,kl).replace(Cl,"-ms-"):e}var _l=function(e){return null==e||!1===e||""===e};function Il(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,c=e.length;a<c;a+=1)""!==(o=Il(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return _l(e)?"":Dc(e)?"."+e.styledComponentId:Nc(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t?e:Il(e(t),t,n,r):e instanceof wl?n?(e.inject(n,r),e.getName(r)):e:Ic(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!_l(t[a])&&(Array.isArray(t[a])&&t[a].isCss||Nc(t[a])?i.push(Sl(a)+":",t[a],";"):Ic(t[a])?i.push.apply(i,e(t[a],a)):i.push(Sl(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in sc?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var l}var Bl=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Tl(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Nc(e)||Ic(e)?Bl(Il(_c(Bc,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:Bl(Il(_c(e,n)))}var Nl=function(e,t,n){return void 0===n&&(n=Tc),e.theme!==n.theme&&e.theme||t||n.theme},zl=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Dl=/(^-|-$)/g;function Pl(e){return e.replace(zl,"-").replace(Dl,"")}var Ol=function(e){return ol(al(e)>>>0)};function Al(e){return"string"==typeof e&&!0}var Rl=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Fl=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Ll(e,t,n){var r=e[n];Rl(t)&&Rl(r)?Ml(r,t):e[n]=t}function Ml(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];if(Rl(a))for(var c in a)Fl(c)&&Ll(e,a[c],c)}return e}var jl=t.createContext(),Hl={};function Ul(e,n,r){var o=Dc(e),a=!Al(e),c=n.attrs,l=void 0===c?Bc:c,u=n.componentId,d=void 0===u?function(e,t){var n="string"!=typeof e?"sc":Pl(e);Hl[n]=(Hl[n]||0)+1;var r=n+"-"+Ol("5.3.3"+n+Hl[n]);return t?t+"-"+r:r}(n.displayName,n.parentComponentId):u,p=n.displayName,f=void 0===p?function(e){return Al(e)?"styled."+e:"Styled("+zc(e)+")"}(e):p,m=n.displayName&&n.componentId?Pl(n.displayName)+"-"+n.componentId:n.componentId||d,h=o&&e.attrs?Array.prototype.concat(e.attrs,l).filter(Boolean):l,g=n.shouldForwardProp;o&&e.shouldForwardProp&&(g=n.shouldForwardProp?function(t,r,o){return e.shouldForwardProp(t,r,o)&&n.shouldForwardProp(t,r,o)}:e.shouldForwardProp);var v,y=new sl(r,m,o?e.componentStyle:void 0),b=y.isStatic&&0===l.length,w=function(e,t){return function(e,t,n,r){var o=e.attrs,a=e.componentStyle,c=e.defaultProps,l=e.foldedComponentIds,u=e.shouldForwardProp,d=e.styledComponentId,p=e.target,f=function(e,t,n){void 0===e&&(e=Tc);var r=Sc({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in Nc(a)&&(a=a(r)),a)r[t]=o[t]="className"===t?(n=o[t],i=a[t],n&&i?n+" "+i:n||i):a[t]})),[r,o]}(Nl(t,i(jl),c)||Tc,t,o),m=f[0],h=f[1],g=function(e,t,n,r){var o=vl(),i=yl();return t?e.generateAndInjectStyles(Tc,o,i):e.generateAndInjectStyles(n,o,i)}(a,r,m),v=n,y=h.$as||t.$as||h.as||t.as||p,b=Al(y),w=h!==t?Sc({},t,{},h):t,x={};for(var E in w)"$"!==E[0]&&"as"!==E&&("forwardedAs"===E?x.as=w[E]:(u?u(E,dc,y):!b||dc(E))&&(x[E]=w[E]));return t.style&&h.style!==t.style&&(x.style=Sc({},t.style,{},h.style)),x.className=Array.prototype.concat(l,d,g!==d?g:null,t.className,h.className).filter(Boolean).join(" "),x.ref=v,s(y,x)}(v,e,t,b)};return w.displayName=f,(v=t.forwardRef(w)).attrs=h,v.componentStyle=y,v.displayName=f,v.shouldForwardProp=g,v.foldedComponentIds=o?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):Bc,v.styledComponentId=m,v.target=o?e.target:e,v.withComponent=function(e){var t=n.componentId,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(n,["componentId"]),i=t&&t+"-"+(Al(e)?e:Pl(zc(e)));return Ul(e,Sc({},o,{attrs:h,componentId:i}),r)},Object.defineProperty(v,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?Ml({},e.defaultProps,t):t}}),v.toString=function(){return"."+v.styledComponentId},a&&kc(v,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),v}var Vl=function(e){return function e(t,n,r){if(void 0===r&&(r=Tc),!Ma.exports.isValidElementType(n))return Fc(1,String(n));var o=function(){return t(n,r,Tl.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,n,Sc({},r,{},o))},o.attrs=function(o){return e(t,n,Sc({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o}(Ul,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Vl[e]=Vl(e)}));var $l=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=cl(e),tl.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var o=r(Il(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&tl.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Wl(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var a=Tl.apply(void 0,[e].concat(r)),s="sc-global-"+Ol(JSON.stringify(a)),u=new $l(a,s);function d(e){var t=vl(),n=yl(),r=i(jl),o=c(t.allocateGSInstance(s)).current;return t.server&&p(o,e,t,r,n),l((function(){if(!t.server)return p(o,e,t,r,n),function(){return u.removeStyles(o,t)}}),[o,e,t,r,n]),null}function p(e,t,n,r,o){if(u.isStatic)u.renderStyles(e,Rc,n,o);else{var i=Sc({},t,{theme:Nl(t,r,d.defaultProps)});u.renderStyles(e,i,n,o)}}return t.memo(d)}function Gl(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Tl.apply(void 0,[e].concat(n)).join(""),i=Ol(o);return new wl(i,o)}var ql=Vl;const Yl="undefined"!=typeof window?t.useLayoutEffect:()=>{};let Kl=new Map,Xl=new Set;function Zl(){if("undefined"==typeof window)return;let e=t=>{let n=Kl.get(t.target);if(n&&(n.delete(t.propertyName),0===n.size&&(t.target.removeEventListener("transitioncancel",e),Kl.delete(t.target)),0===Kl.size)){for(let e of Xl)e();Xl.clear()}};document.body.addEventListener("transitionrun",(t=>{let n=Kl.get(t.target);n||(n=new Set,Kl.set(t.target,n),t.target.addEventListener("transitioncancel",e)),n.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}"undefined"!=typeof document&&("loading"!==document.readyState?Zl():document.addEventListener("DOMContentLoaded",Zl));class Jl{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function Ql(e){let t=c({isFocused:!1,onBlur:e,observer:null});return t.current.onBlur=e,Yl((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]),u((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=e.target,r=e=>{var r,o;t.current.isFocused=!1,n.disabled&&(null===(o=(r=t.current).onBlur)||void 0===o||o.call(r,new Jl("blur",e))),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};n.addEventListener("focusout",r,{once:!0}),t.current.observer=new MutationObserver((()=>{t.current.isFocused&&n.disabled&&(t.current.observer.disconnect(),n.dispatchEvent(new FocusEvent("blur")),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0})))})),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}}),[])}t.createContext(null).displayName="PressResponderContext";let es=null,ts=new Set,ns=!1,rs=!1,os=!1;const is={Tab:!0,Escape:!0};function as(e,t){for(let n of ts)n(e,t)}function cs(e){rs=!0,function(e){return!(e.metaKey||("undefined"==typeof window||null==window.navigator||!/^Mac/i.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform))&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key);var t}(e)&&(es="keyboard",as("keyboard",e))}function ls(e){es="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(rs=!0,as("pointer",e))}function ss(e){var t;(0===(t=e).mozInputSource&&t.isTrusted||0===t.detail&&!t.pointerType)&&(rs=!0,es="virtual")}function us(e){e.target!==window&&e.target!==document&&(rs||os||(es="virtual",as("virtual",e)),rs=!1,os=!1)}function ds(){rs=!1,os=!0}function ps(){if("undefined"==typeof window||ns)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){rs=!0,e.apply(this,arguments)},document.addEventListener("keydown",cs,!0),document.addEventListener("keyup",cs,!0),document.addEventListener("click",ss,!0),window.addEventListener("focus",us,!0),window.addEventListener("blur",ds,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",ls,!0),document.addEventListener("pointermove",ls,!0),document.addEventListener("pointerup",ls,!0)):(document.addEventListener("mousedown",ls,!0),document.addEventListener("mousemove",ls,!0),document.addEventListener("mouseup",ls,!0)),ns=!0}function fs(){return"pointer"!==es}"undefined"!=typeof document&&("loading"!==document.readyState?ps():document.addEventListener("DOMContentLoaded",ps));let ms=!1,hs=0;function gs(){ms=!0,setTimeout((()=>{ms=!1}),50)}function vs(e){"touch"===e.pointerType&&gs()}function ys(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",vs):document.addEventListener("touchend",gs),hs++,()=>{hs--,hs>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",vs):document.removeEventListener("touchend",gs))}}function bs(e,t){return t.some((t=>t.contains(e)))}class ws{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(null!=t?t:null),o=new xs({scopeRef:e});r.addChild(o),o.parent=r,this.fastMap.set(e,o),n&&(o.nodeToRestore=n)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e),n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef.current&&bs(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n.removeChild(t),r.length>0&&r.forEach((e=>n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.length>0)for(let t of e.children)yield*this.traverse(t)}clone(){let e=new ws;for(let t of this.traverse())e.addTreeNode(t.scopeRef,t.parent.scopeRef,t.nodeToRestore);return e}constructor(){this.fastMap=new Map,this.root=new xs({scopeRef:null}),this.fastMap.set(null,this.root)}}class xs{addChild(e){this.children.push(e),e.parent=this}removeChild(e){this.children.splice(this.children.indexOf(e),1),e.parent=void 0}constructor(e){this.children=[],this.contain=!1,this.scopeRef=e.scopeRef}}function Es(e={}){let{autoFocus:t=!1,isTextInput:n,within:o}=e,i=c({isFocused:!1,isFocusVisible:t||fs()}),[l,s]=r(!1),[d,p]=r((()=>i.current.isFocused&&i.current.isFocusVisible)),f=u((()=>p(i.current.isFocused&&i.current.isFocusVisible)),[]),m=u((e=>{i.current.isFocused=e,s(e),f()}),[f]);var h,g,v;h=e=>{i.current.isFocusVisible=e,f()},g=[],v={isTextInput:n},ps(),a((()=>{let e=(e,t)=>{(function(e,t,n){return!(e&&"keyboard"===t&&n instanceof KeyboardEvent&&!is[n.key])})(null==v?void 0:v.isTextInput,e,t)&&h(fs())};return ts.add(e),()=>{ts.delete(e)}}),g);let{focusProps:y}=function(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=u((e=>{if(e.target===e.currentTarget)return r&&r(e),o&&o(!1),!0}),[r,o]),a=Ql(i),c=u((e=>{e.target===e.currentTarget&&(n&&n(e),o&&o(!0),a(e))}),[o,n,a]);return{focusProps:{onFocus:!t&&(n||o||r)?c:void 0,onBlur:t||!r&&!o?null:i}}}({isDisabled:o,onFocusChange:m}),{focusWithinProps:b}=function(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=c({isFocusWithin:!1}),a=u((e=>{i.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(e),o&&o(!1))}),[n,o,i]),l=Ql(a),s=u((e=>{i.current.isFocusWithin||(r&&r(e),o&&o(!0),i.current.isFocusWithin=!0,l(e))}),[r,o,l]);return t?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:s,onBlur:a}}}({isDisabled:!o,onFocusWithinChange:m});return{isFocused:l,isFocusVisible:i.current.isFocused&&d,focusProps:o?b:y}}new ws;var Cs={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ks=t.createContext&&t.createContext(Cs),Ss=function(){return Ss=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ss.apply(this,arguments)};function _s(e){return e&&e.map((function(e,n){return t.createElement(e.tag,Ss({key:n},e.attr),_s(e.child))}))}function Is(e){return function(n){return t.createElement(Bs,Ss({attr:Ss({},e.attr)},n),_s(e.child))}}function Bs(e){var n=function(n){var r,o=e.attr,i=e.size,a=e.title,c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["attr","size","title"]),l=i||n.size||"1em";return n.className&&(r=n.className),e.className&&(r=(r?r+" ":"")+e.className),t.createElement("svg",Ss({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,o,c,{className:r,style:Ss(Ss({color:e.color||n.color},n.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&t.createElement("title",null,a),e.children)};return void 0!==ks?t.createElement(ks.Consumer,null,(function(e){return n(e)})):n(Cs)}function Ts(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 12h-2v3h-3v2h5v-5zM7 9h3V7H5v5h2V9zm14-6H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18v14.02z"}}]})(e)}function Ns(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}}]})(e)}function zs(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5a2 2 0 00-2 2v4h2V5h14v14H5v-4H3v4a2 2 0 002 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}}]})(e)}function Ds(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M12 4.81V19c-3.31 0-6-2.63-6-5.87 0-1.56.62-3.03 1.75-4.14L12 4.81M6.35 7.56C4.9 8.99 4 10.96 4 13.13 4 17.48 7.58 21 12 21s8-3.52 8-7.87c0-2.17-.9-4.14-2.35-5.57L12 2 6.35 7.56z"}}]})(e)}function Ps(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16z"}}]})(e)}function Os(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 19H5V5h7V3H5a2 2 0 00-2 2v14a2 2 0 002 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}}]})(e)}function As(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm0 12H6V10h12v10z"}}]})(e)}function Rs(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H8.9V6zM18 20H6V10h12v10z"}}]})(e)}function Fs(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M24 0H0v24h24V0zm0 0H0v24h24V0zM0 24h24V0H0v24z"}},{tag:"path",attr:{d:"M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8zM6 14c.01-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 17.99 12 18 14H6z"}}]})(e)}function Ls(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 19H5V5h7V3H5a2 2 0 00-2 2v14a2 2 0 002 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}}]})(e)}function Ms(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M10 9h4V6h3l-5-5-5 5h3v3zm-1 1H6V7l-5 5 5 5v-3h3v-4zm14 2l-5-5v3h-3v4h3v3l5-5zm-9 3h-4v3H7l5 5 5-5h-3v-3z"}}]})(e)}function js(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}}]})(e)}function Hs(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 00.12-.61l-1.92-3.32a.488.488 0 00-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 00-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 00-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}}]})(e)}function Us(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M15 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zM3 12a5.99 5.99 0 014-5.65V4.26C3.55 5.15 1 8.27 1 12s2.55 6.85 6 7.74v-2.09A5.99 5.99 0 013 12z"}}]})(e)}function Vs(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46A11.804 11.804 0 001 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}}]})(e)}function $s(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}}]})(e)}function Ws(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4z"}}]})(e)}function Gs(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 9v6h4l5 5V4L7 9H3zm13.5 3A4.5 4.5 0 0014 7.97v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"}}]})(e)}function qs(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}}]})(e)}function Ys(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20.54 5.23l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27zM12 17.5L6.5 12H10v-2h4v2h3.5L12 17.5zM5.12 5l.81-1h12l.94 1H5.12z"}}]})(e)}function Ks(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"}}]})(e)}function Xs(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"circle",attr:{cx:"6",cy:"18",r:"2",fill:"none"}},{tag:"circle",attr:{cx:"12",cy:"12",r:".5",fill:"none"}},{tag:"circle",attr:{cx:"6",cy:"6",r:"2",fill:"none"}},{tag:"path",attr:{d:"M9.64 7.64c.23-.5.36-1.05.36-1.64 0-2.21-1.79-4-4-4S2 3.79 2 6s1.79 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4c0-.59-.13-1.14-.36-1.64L12 14l7 7h3v-1L9.64 7.64zM6 8c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2zm0 12c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2zm6-7.5c-.28 0-.5-.22-.5-.5s.22-.5.5-.5.5.22.5.5-.22.5-.5.5zM19 3l-6 6 2 2 7-7V3z"}}]})(e)}function Zs(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}}]})(e)}function Js(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6z"}}]})(e)}function Qs(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M13 7h-2v2h2V7zm0 4h-2v2h2v-2zm4 0h-2v2h2v-2zM3 3v18h18V3H3zm16 16H5V5h14v14zm-6-4h-2v2h2v-2zm-4-4H7v2h2v-2z"}}]})(e)}function eu(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16.56 8.94L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15a1.49 1.49 0 000 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.58.59-1.53 0-2.12zM5.21 10L10 5.21 14.79 10H5.21zM19 11.5s-2 2.17-2 3.5c0 1.1.9 2 2 2s2-.9 2-2c0-1.33-2-3.5-2-3.5zM2 20h20v4H2v-4z"}}]})(e)}function tu(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6zm7 7V3.5L18.5 9H13z"}}]})(e)}function nu(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"}}]})(e)}function ru(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19.5 9.5c-1.03 0-1.9.62-2.29 1.5h-2.92c-.39-.88-1.26-1.5-2.29-1.5s-1.9.62-2.29 1.5H6.79c-.39-.88-1.26-1.5-2.29-1.5a2.5 2.5 0 000 5c1.03 0 1.9-.62 2.29-1.5h2.92c.39.88 1.26 1.5 2.29 1.5s1.9-.62 2.29-1.5h2.92c.39.88 1.26 1.5 2.29 1.5a2.5 2.5 0 000-5z"}}]})(e)}function ou(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M2.5 4v3h5v12h3V7h5V4h-13zm19 5h-9v3h3v7h3v-7h3V9z"}}]})(e)}function iu(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"}}]})(e)}function au(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}}]})(e)}function cu(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6 13c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-8c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm-3 .5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zM6 5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm15 5.5c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zM14 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm0-3.5c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zm-11 10c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm7 7c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm0-17c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zM10 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm0 5.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm8 .5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-8c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm3 8.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zM14 17c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 3.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm-4-12c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0 8.5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm4-4.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-4c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z"}}]})(e)}function lu(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"circle",attr:{cx:"12",cy:"12",r:"10"}}]})(e)}function su(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm-7 7H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4z"}}]})(e)}function uu(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20.71 5.63l-2.34-2.34a.996.996 0 00-1.41 0l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3.12c.4-.4.4-1.03.01-1.42zM6.92 19L5 17.08l8.06-8.06 1.92 1.92L6.92 19z"}}]})(e)}function du(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 12H5V7h14v10z"}}]})(e)}function pu(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H6V6h12v12z"}}]})(e)}function fu(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17 15h2V7c0-1.1-.9-2-2-2H9v2h8v8zM7 17V1H5v4H1v2h4v10c0 1.1.9 2 2 2h10v4h2v-4h4v-2H7z"}}]})(e)}function mu(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7 11H1v2h6v-2zm2.17-3.24L7.05 5.64 5.64 7.05l2.12 2.12 1.41-1.41zM13 1h-2v6h2V1zm5.36 6.05l-1.41-1.41-2.12 2.12 1.41 1.41 2.12-2.12zM17 11v2h6v-2h-6zm-5-2c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3zm2.83 7.24l2.12 2.12 1.41-1.41-2.12-2.12-1.41 1.41zm-9.19.71l1.41 1.41 2.12-2.12-1.41-1.41-2.12 2.12zM11 23h2v-6h-2v6z"}}]})(e)}function hu(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15 21h2v-2h-2v2zm4-12h2V7h-2v2zM3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2zm16-2v2h2c0-1.1-.9-2-2-2zm-8 20h2V1h-2v22zm8-6h2v-2h-2v2zM15 5h2V3h-2v2zm4 8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2z"}}]})(e)}function gu(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}}]})(e)}function vu(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"circle",attr:{cx:"12",cy:"12",r:"3.2"}},{tag:"path",attr:{d:"M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"}}]})(e)}function yu(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-11-4l2.03 2.71L16 11l4 5H8l3-4zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"}}]})(e)}function bu(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7.34 6.41L.86 12.9l6.49 6.48 6.49-6.48-6.5-6.49zM3.69 12.9l3.66-3.66L11 12.9l-3.66 3.66-3.65-3.66zm15.67-6.26A8.95 8.95 0 0013 4V.76L8.76 5 13 9.24V6c1.79 0 3.58.68 4.95 2.05a7.007 7.007 0 010 9.9 6.973 6.973 0 01-7.79 1.44l-1.49 1.49C10.02 21.62 11.51 22 13 22c2.3 0 4.61-.88 6.36-2.64a8.98 8.98 0 000-12.72z"}}]})(e)}function wu(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.94-.49-7-3.85-7-7.93s3.05-7.44 7-7.93v15.86zm2-15.86c1.03.13 2 .45 2.87.93H13v-.93zM13 7h5.24c.25.31.48.65.68 1H13V7zm0 3h6.74c.08.33.15.66.19 1H13v-1zm0 9.93V19h2.87c-.87.48-1.84.8-2.87.93zM18.24 17H13v-1h5.92c-.2.35-.43.69-.68 1zm1.5-3H13v-1h6.93c-.04.34-.11.67-.19 1z"}}]})(e)}function xu(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 17v2h6v-2H3zM3 5v2h10V5H3zm10 16v-2h8v-2h-8v-2h-2v6h2zM7 9v2H3v2h4v2h2V9H7zm14 4v-2H11v2h10zm-6-4h2V7h4V5h-4V3h-2v6z"}}]})(e)}function Eu(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7 10l5 5 5-5z"}}]})(e)}function Cu(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}}]})(e)}function ku(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}}]})(e)}function Su(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}}]})(e)}function _u(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}}]})(e)}function Iu(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}}]})(e)}function Bu(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}}]})(e)}function Tu(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}}]})(e)}function Nu(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}}]})(e)}function zu(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"}}]})(e)}function Du(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}}]})(e)}function Pu(e,t,n){return e[t]?e[t][0]?e[t][0][n]:e[t][n]:"contentBoxSize"===t?e.contentRect["inlineSize"===n?"width":"height"]:void 0}function Ou(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Au(e,t,n){return t&&Ou(e.prototype,t),n&&Ou(e,n),e}function Ru(){return Ru=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ru.apply(this,arguments)}function Fu(e,t){return Fu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Fu(e,t)}function Lu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mu(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Lu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lu(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ju(e){var t=c(null);return function(n){n&&n!==t.current&&(t.current=n,e(n))}}var Hu="undefined"!=typeof window?l:a;function Uu(e){return parseFloat(e.replace("px",""))}function Vu(e,t,n){return e<t?t:e>n?n:e}function $u(e){return null!=e}function Wu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n,r=Mu(t);!(n=r()).done;){var o=n.value;o&&("function"==typeof o?o(e):o.current=e)}}}function Gu(e,t){var n=[];if(!e||!t||e===document.body)return n;var r=t.getComputedStyle(e);return[r.overflow,r.overflowX,r.overflowY].some((function(e){return["auto","scroll"].includes(e)}))&&n.push(e),[].concat(n,Gu(e.parentElement,t))}function qu(e){return"react-laag: Could not find a valid reference for the "+e+" element. There might be 2 causes:\n - Make sure that the 'ref' is set correctly on the "+e+' element when isOpen: true. Also make sure your component forwards the ref with "forwardRef()".\n - Make sure that you are actually rendering the '+e+" when the isOpen prop is set to true"}function Yu(e){var t=e.enabled,n=e.onChange,r=e.environment,i=e.ResizeObserverPolyfill,l=e.overflowContainer,s=e.triggerOption,d=function(e,t){if(void 0!==e)return t||e.ResizeObserver}(r,i);a((function(){}),[d]);var p,f,m=c(null),h=Boolean(s),g=(f=c({scrollContainers:[],trigger:null,layer:null}),o((function(){return[function(){return f.current},function(e){f.current="function"==typeof e?e(f.current):e}]}),[])),v=g[0],y=g[1],b=(p=c([]),o((function(){return{hasEventSubscriptions:function(){return p.current.length>0},removeAllEventSubscriptions:function(){for(var e,t=Mu(p.current);!(e=t()).done;)(0,e.value)();p.current=[]},addEventSubscription:function(e){p.current.push(e)}}}),[])),w=b.hasEventSubscriptions,x=b.addEventSubscription,E=b.removeAllEventSubscriptions,C=u((function(){var e=v(),t=e.layer,o=e.trigger,i=e.scrollContainers,a=i[0];if(!t)throw new Error(qu("layer"));if(!o&&!h)throw new Error(qu("trigger"));var c={top:0,left:0};if(a){var l=a.scrollLeft;c={top:a.scrollTop,left:l}}else{var s=r.scrollX;c={top:r.scrollY,left:s}}var u={left:0,top:0};if(a){var d=r.getComputedStyle(a),p=d.borderLeftWidth,f=d.borderTopWidth;u={left:Uu(p)||0,top:Uu(f)||0}}n({layer:t,trigger:o,scrollContainers:i,arrow:m.current},c,u)}),[v,n,r,m,h]),k=u((function(){var e=v(),t=e.trigger,n=e.layer,o=e.scrollContainers;if(!n)throw new Error(qu("layer"));if(!t&&!h)throw new Error(qu("trigger"));if(d){for(var i=!1,a=new d((function(){i?C():i=!0})),c=0,l=[t,n,document.body];c<l.length;c++){var s=l[c];s&&a.observe(s)}x((function(){for(var e=0,r=[t,n,document.body];e<r.length;e++){var o=r[e];o&&a.unobserve(o)}a.disconnect()}))}for(var u,p=function(){var e=u.value;e.addEventListener("scroll",C),x((function(){return e.removeEventListener("scroll",C)}))},f=Mu([r].concat(o));!(u=f()).done;)p()}),[v,x,C,r,d,h]),S=u((function(e,n){t&&e&&e!==n&&(E(),k(),C())}),[E,k,C,t]),_=ju(u((function(e){var t=v().layer;y((function(t){return Ru({},t,{layer:e})})),S(t,e)}),[v,y,S])),I=u((function(e){var t=Gu(e,r),n=t[0];if(n){var o=r.getComputedStyle(n).position;["relative","absolute","fixed"].includes(o)||l||(n.style.position="relative")}return t}),[r,l]),B=ju(u((function(e){var t=I(e),n=v().trigger;y((function(n){return Ru({},n,{trigger:e,scrollContainers:t})})),S(n,e)}),[v,y,S,I])),T=null==s||null==s.getParent?void 0:s.getParent();return Hu((function(){T&&y((function(e){return Ru({},e,{scrollContainers:I(T)})}))}),[T,y,I]),Hu((function(){return t&&(w()||k()),function(){w()&&E()}}),[t,w,k,E]),Hu((function(){t&&C()})),{triggerRef:B,layerRef:_,arrowRef:m,closestScrollContainer:v().scrollContainers[0]||null}}var Ku=n({});function Xu(e){var t=e.children,n=e.registrations,r=u((function(e){return n.current.add(e),function(){return n.current.delete(e)}}),[n]);return s(Ku.Provider,{value:r},t)}var Zu={top:"bottom",left:"right",bottom:"top",right:"left",center:"center"},Ju=function(){function e(e,t,n,r,o,i,a,c,l){this.prop=void 0,this.opposite=void 0,this.isHorizontal=void 0,this.sizeProp=void 0,this.oppositeSizeProp=void 0,this.cssProp=void 0,this.oppositeCssProp=void 0,this.isCenter=void 0,this.isPush=void 0,this.prop=e,this.opposite=t,this.isHorizontal=n,this.sizeProp=r,this.oppositeSizeProp=o,this.cssProp=i,this.oppositeCssProp=a,this.isCenter=c,this.isPush=l}var t=e.prototype;return t.factor=function(e){return e*(this.isPush?1:-1)},t.isOppositeDirection=function(e){return this.isHorizontal!==e.isHorizontal},e}();function Qu(e,t){void 0===t&&(t=!0);var n=["left","right"].includes(e);return new Ju(e,t?Qu(Zu[e],!1):null,n,n?"width":"height",n?"height":"width",n?"left":"top",n?"top":"left","center"===e,!["right","bottom"].includes(e))}var ed={top:Qu("top"),bottom:Qu("bottom"),left:Qu("left"),right:Qu("right")},td=Ru({},ed,{center:Qu("center")}),nd=["top","left","bottom","right"],rd=function(){function e(e){return this.top=void 0,this.left=void 0,this.right=void 0,this.bottom=void 0,Object.assign(this,e)}return e.mergeSmallestSides=function(t){var n=t[0],r=t.slice(1);if(!n)throw new Error("Please provide at least 1 bounds objects in order to merge");for(var o,i=Object.fromEntries(nd.map((function(e){return[e,n[e]]}))),a=Mu(r);!(o=a()).done;)for(var c,l=o.value,s=Mu(nd);!(c=s()).done;){var u=c.value;i[u]=Math.min(i[u],l[u])}return new e(i)},Au(e,[{key:"allSidesArePositive",get:function(){var e=this;return nd.every((function(t){return e[t]>=0}))}},{key:"negativeSides",get:function(){var e=this;return Object.fromEntries(nd.filter((function(t){return e[t]<0})).map((function(t){return[t,e[t]]})))}}]),e}();function od(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return e+(t?Uu(t):0)}),0)}function id(e){return{top:e.top,left:e.left,right:e.right,bottom:e.bottom,width:e.width,height:e.height}}var ad,cd,ld={top:0,left:0,right:0,bottom:0,width:0,height:0},sd=function(){function e(e){return void 0===e&&(e={}),this.top=void 0,this.left=void 0,this.right=void 0,this.bottom=void 0,this.width=void 0,this.height=void 0,Object.assign(this,ld,e)}e.create=function(t){return new e(t)},e.fromElement=function(t,n){void 0===n&&(n={});var r=n,o=r.withTransform,i=void 0===o||o,a=r.environment,c=void 0===a?window:a,l=r.withScrollbars,s=void 0===l||l,u=new e(id(t.getBoundingClientRect()));if(!i){var d=c.getComputedStyle(t),p=d.width,f=d.height,m=d.boxSizing,h=d.borderLeft,g=d.borderRight,v=d.borderTop,y=d.borderBottom,b=d.paddingLeft,w=d.paddingRight,x=d.paddingTop,E=d.paddingBottom;u=new e(Ru({},u,{width:"border-box"===m?Uu(p):od(p,h,g,b,w),height:"border-box"===m?Uu(f):od(f,v,y,x,E)}))}if(!s){var C=u.width-t.clientWidth,k=u.height-t.clientHeight;return u.substract({right:C,bottom:k})}return u},e.empty=function(){return new e},e.fromWindow=function(t){var n=t||{},r=n.innerWidth,o=void 0===r?0:r,i=n.innerHeight,a=void 0===i?0:i;return new e({width:o,height:a,right:o,bottom:a})};var t=e.prototype;return t.toObject=function(){return id(this)},t.merge=function(t){var n=this.toObject();return new e(Ru({},n,"function"==typeof t?t(n):t))},t.substract=function(t){for(var n=this.toObject(),r=0,o=Object.entries(t);r<o.length;r++){var i=o[r],a=i[0],c=i[1];if(a in ed){var l=ed[a];n[a]+=l.factor(c),n[l.isHorizontal?"width":"height"]-=c}else n[a]-=c||0}return new e(n)},t.offsetsTo=function(e){return new rd({top:e.top-this.top,bottom:this.bottom-e.bottom,left:e.left-this.left,right:this.right-e.right})},t.mapSides=function(t){for(var n=this.toObject(),r=0,o=Object.values(ed);r<o.length;r++){var i=o[r];n[i.prop]=t(i,n[i.prop])}return new e(n)},Au(e,[{key:"surface",get:function(){return this.width*this.height}}]),e}(),ud=function(){function e(e,t,n,r,o){this.primary=void 0,this.secondary=void 0,this.offsets=void 0,this.subjectsBounds=void 0,this._cachedLayerBounds=null,this._cachedContainerOffsets=null,this.primary=e,this.secondary=t,this.offsets=o,this.setSubjectsBounds(n,r)}var t=e.prototype;return t.setSubjectsBounds=function(e,t){if(t){var n="function"==typeof t?t(this.primary.prop):t;this.subjectsBounds=e.merge({layer:Ru({},e.layer,n)})}else this.subjectsBounds=e},t.getLayerBounds=function(e){if(void 0===e&&(e=0),this._cachedLayerBounds&&0===e)return this._cachedLayerBounds;var t=this.primary,n=this.secondary,r=this.subjectsBounds,o=r.trigger,i=r.layer,a=r.arrow,c=t.isHorizontal,l=t.oppositeCssProp,s=t.oppositeSizeProp,u=t.prop,d=t.opposite,p=sd.empty();p[d.prop]=o[u]-t.factor(this.offsets.trigger),p[u]=p[d.prop]-t.factor(i[t.sizeProp]);var f=2*this.offsets.arrow,m=o[l]-(i[s]-a[s])+f,h=o[l]+(o[s]-a[s])-f;if(n.isPush||(m+=i[s],h+=i[s]),n.isCenter){var g=(c?ed.top:ed.left).prop,v=(c?ed.bottom:ed.right).prop;p[g]=Vu(o[g]+o[s]/2-i[s]/2+e,m,h),p[v]=p[g]+i[s]}else{var y=n,b=o[y.prop],w=b<m?m-b:b>h?h-b:0;p[y.prop]=Vu(b+e+w,m,h),p[y.opposite.prop]=p[y.prop]+n.factor(i[s])}p.width=p.right-p.left,p.height=p.bottom-p.top;var x=sd.create(p);return 0===e&&(this._cachedLayerBounds=x),x},t.getLayerCollisionBounds=function(){var e=this.offsets.container;return this.getLayerBounds().mapSides((function(t,n){return n-t.factor(e)})).merge((function(t){var n=t.width,r=t.height;return{width:n+2*e,height:r+2*e}}))},t.getContainerOffsets=function(e){if(this._cachedContainerOffsets&&!e)return this._cachedContainerOffsets;var t=this.subjectsBounds.merge({layer:e||this.getLayerCollisionBounds()}),n=rd.mergeSmallestSides(t.layerOffsetsToScrollContainers);return e||(this._cachedContainerOffsets=n),n},Au(e,[{key:"type",get:function(){return this.primary.prop+"-"+("center"===this.secondary.prop?"center":["bottom","right"].includes(this.secondary.prop)?"end":"start")}},{key:"triggerIsBigger",get:function(){var e=this.secondary.isHorizontal,t=this.subjectsBounds,n=t.triggerHasBiggerWidth,r=t.triggerHasBiggerHeight;return e&&n||!e&&r}},{key:"fitsContainer",get:function(){return this.getContainerOffsets().allSidesArePositive}},{key:"visibleSurface",get:function(){var e=this.getLayerBounds(),t=this.getContainerOffsets(e).negativeSides;for(var n in t)t[n]=-t[n];return e.substract(t).surface}},{key:"secondaryOffsetSide",get:function(){var e,t,n=this,r=this.getContainerOffsets(),o=null!=(e=null==(t=Object.entries(r.negativeSides).map((function(e){var t=e[0],n=e[1];return[ed[t],n]})).filter((function(e){var t=e[0];return n.primary.isOppositeDirection(t)})).sort((function(e,t){var n=e[1];return t[1]-n})))?void 0:t[0])?e:[];return o[0]||null}}]),e}(),dd=function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Fu(t,n),r.prototype.getLayerBounds=function(){var e=this.subjectsBounds,t=e.trigger,n=e.layer,r=sd.empty();return r.top=t.top+t.height/2-n.height/2,r.bottom=r.top+n.height,r.left=t.left+t.width/2-n.width/2,r.right=r.left+n.width,r.width=r.right-r.left,r.height=r.bottom-r.top,r},r}(ud),pd={position:"absolute",willChange:"top, left",left:null,right:null,top:null,bottom:null},fd=function(){function e(e,t,n){this.placements=void 0,this.config=void 0,this.subjectsBounds=void 0,this.placements=e,this.config=t,this.subjectsBounds=n}e.getSidesFromPlacementType=function(e){var t=e.split("-"),n=t[0],r=t[1],o=ed[n];return[o,"center"===r?td.center:o.isHorizontal?"start"===r?td.top:td.bottom:"start"===r?td.left:td.right]},e.create=function(t,n){var r={arrow:n.arrowOffset,container:n.containerOffset,trigger:n.triggerOffset};function o(o){void 0===o&&(o=n.placement);var i=e.getSidesFromPlacementType(o),a=i[0],c=i[1],l=ed[a.isHorizontal?n.preferY:n.preferX],s=!a.isHorizontal&&t.triggerHasBiggerWidth||a.isHorizontal&&t.triggerHasBiggerHeight;function u(e,o){return new ud(e,o,t,n.layerDimensions,r)}var d=[];return d[0]=u(a,c),d[1]=u(a,c.isCenter?l:td.center),d[2]=u(a,td[(c.opposite.isCenter?l.opposite:c.opposite).prop]),d[3]=u(l,s?a:td[a.opposite.prop]),d[4]=u(l,td.center),d[5]=u(l,s?td[a.opposite.prop]:a),d[6]=u(ed[l.opposite.prop],s?a:td[a.opposite.prop]),d[7]=u(ed[l.opposite.prop],td.center),d[8]=u(ed[l.opposite.prop],s?td[a.opposite.prop]:a),d[9]=u(ed[a.opposite.prop],c),d[10]=u(ed[a.opposite.prop],c.isCenter?l:td.center),d[11]=u(ed[a.opposite.prop],td[(c.opposite.isCenter?l.opposite:c.opposite).prop]),d.filter((function(e){return e.type===n.placement||n.possiblePlacements.includes(e.type)}))}return"center"===n.placement?new e([new dd(td.center,td.center,t,n.layerDimensions,r)].concat(o(n.preferY+"-"+n.preferX)),n,t):new e(o(),n,t)};var t=e.prototype;return t.filterPlacementsBySide=function(e){return this.placements.filter((function(t){return t.primary===e}))},t.findFirstPlacementThatFits=function(){return this.placements.find((function(e){return e.fitsContainer}))},t.placementWithBiggestVisibleSurface=function(){var e=this.placements.map((function(e){return{placement:e,surface:e.visibleSurface}})).sort((function(e,t){return t.surface-e.surface}));return e[0].placement},t.findSuitablePlacement=function(){return this.config.auto?this.findFirstPlacementThatFits()||this.placementWithBiggestVisibleSurface():this.placements[0]},t.getSecondaryOffset=function(e){var t=this.config,n=t.auto,r=t.snap;if(!n||r||e instanceof dd)return 0;var o=this.filterPlacementsBySide(e.primary);if(0===o.indexOf(e)&&e.fitsContainer)return 0;var i=o.find((function(e){return!e.fitsContainer}));if(!i)return 0;var a=i.secondaryOffsetSide;if(!a)return 0;var c,l=e.getContainerOffsets(),s=e.secondary;return c=e.triggerIsBigger||i===e?a.isPush?-1:1:s===td.left||[td.top,td.center].includes(s)&&a.isPush?-1:1,l[a.prop]*c},t.getStyles=function(e,t,n,r){var o={willChange:"top, left, width, height"},i=function(e,t,n){var r;if(t.primary.isCenter)return pd;var o=e.layer,i=e.trigger,a=e.arrow,c=t.primary.oppositeSizeProp,l=i[c]>o[c],s=n+a[c]/2,u=o[c]-a[c]/2-n,d=function(e,t,n){var r=e.layer,o=e.trigger,i=e.arrow,a=t.primary.oppositeSizeProp,c=t.primary.isHorizontal?["top","bottom"]:["left","right"],l=c[0],s=c[1],u=r[l]+r[a]/2-o[l]-i[a]/2-n,d=r[s]-r[a]/2-o[s]+i[a]/2+n;return(u<0?-u:0)+(d>0?-d:0)}(e,t,n),p=t.primary.prop,f=t.primary.oppositeCssProp,m=l?o[c]/2+d:i[f]+i[c]/2-o[f];return Ru({},pd,((r={})[p]="100%",r[f]=Vu(m,s,u),r))}(this.subjectsBounds.merge({layer:e}),t,this.config.arrowOffset);return{arrow:i,layer:this.config.overflowContainer?Ru({},o,{position:"fixed",top:e.top,left:e.left}):Ru({},o,{position:"absolute",top:e.top-this.subjectsBounds.parent.top+n.top-r.top,left:e.left-this.subjectsBounds.parent.left+n.left-r.left})}},t.getHasDisappeared=function(e){var t=this.config.overflowContainer?this.subjectsBounds.trigger:e,n=rd.mergeSmallestSides(this.subjectsBounds.offsetsToScrollContainers(t,!0));return Object.entries(n.negativeSides).some((function(e){var n=e[0];return e[1]<=-t[ed[n].sizeProp]}))?"full":n.allSidesArePositive?null:"partial"},t.result=function(e,t){var n=this.findSuitablePlacement(),r=this.getSecondaryOffset(n),o=n.getLayerBounds(r);return{styles:this.getStyles(o,n,e,t),layerSide:n.primary.prop,placement:n,layerBounds:o,hasDisappeared:this.getHasDisappeared(o)}},e}(),md=function(){function e(e,t){this.overflowContainer=void 0,this.trigger=void 0,this.layer=void 0,this.arrow=void 0,this.parent=void 0,this.window=void 0,this.scrollContainers=void 0,this.overflowContainer=t,Object.assign(this,e)}e.create=function(t,n,r,o,i,a,c,l){var s=sd.fromWindow(t);return new e({layer:sd.fromElement(n,{environment:t,withTransform:!1}),trigger:l?sd.create(id(l())):sd.fromElement(r),arrow:i?sd.fromElement(i):sd.empty(),parent:o?sd.fromElement(o):s,window:s,scrollContainers:[s].concat(a.map((function(e){return sd.fromElement(e,{withScrollbars:!1})})))},c)};var t=e.prototype;return t.merge=function(t){return new e(Ru({},this,t),this.overflowContainer)},t.offsetsToScrollContainers=function(e,t){return void 0===t&&(t=!1),(this.overflowContainer&&!t?[this.window]:this.scrollContainers).map((function(t){return t.offsetsTo(e)}))},Au(e,[{key:"layerOffsetsToScrollContainers",get:function(){return this.offsetsToScrollContainers(this.layer)}},{key:"triggerHasBiggerWidth",get:function(){return this.trigger.width>this.layer.width}},{key:"triggerHasBiggerHeight",get:function(){return this.trigger.height>this.layer.height}}]),e}(),hd={auto:!1,arrowOffset:0,containerOffset:10,triggerOffset:0,overflowContainer:!0,placement:"top-center",possiblePlacements:["bottom-start","bottom-end","bottom-center","top-start","top-center","top-end","left-end","left-center","left-start","right-end","right-center","right-start","center"],preferX:"right",preferY:"bottom",snap:!1,container:void 0,trigger:void 0};function gd(e){var t,n=e.isOpen,o=void 0!==n&&n,l=e.overflowContainer,d=void 0===l?hd.overflowContainer:l,p=e.environment,f=void 0===p?"undefined"!=typeof window?window:void 0:p,m=e.ResizeObserver,h=e.placement,v=void 0===h?hd.placement:h,y=e.possiblePlacements,b=void 0===y?hd.possiblePlacements:y,w=e.preferX,x=void 0===w?hd.preferX:w,E=e.preferY,C=void 0===E?hd.preferY:E,k=e.auto,S=void 0===k?hd.auto:k,_=e.snap,I=void 0===_?hd.snap:_,B=e.triggerOffset,T=void 0===B?hd.triggerOffset:B,N=e.containerOffset,z=void 0===N?hd.containerOffset:N,D=e.arrowOffset,P=void 0===D?hd.arrowOffset:D,O=e.container,A=void 0===O?hd.container:O,R=e.layerDimensions,F=void 0===R?null:R,L=e.onDisappear,M=e.onOutsideClick,j=e.onParentClose,H=e.trigger,U=r((function(){return{layerSide:"center"===v?"center":fd.getSidesFromPlacementType(v)[0].prop,styles:{layer:{position:d?"fixed":"absolute",top:0,left:0},arrow:{position:"absolute",top:0,left:0}}}})),V=U[0],$=U[1],W=c(null),G=function(e,t){var n=c(e);return t?(n.current=e,n):(n.current=null,n)}(V,o),q=c(null);a((function(){return function(){q.current&&(cancelAnimationFrame(q.current),q.current=null)}}),[]);var Y=u((function(e,t,n){var r=e.arrow,o=e.layer,i=e.scrollContainers,a=e.trigger,c=i[0],l=md.create(f,o,a,c,r,i,d,null==H?void 0:H.getBounds),s={placement:v,possiblePlacements:b,auto:S,layerDimensions:F,arrowOffset:P,containerOffset:z,triggerOffset:T,preferX:x,preferY:C,snap:I,overflowContainer:d},u=fd.create(l,s).result(t,n),p=u.hasDisappeared,m={layerSide:u.layerSide,styles:u.styles};G.current&&!function(e,t){if(e.layerSide!==t.layerSide)return!0;for(var n=0,r=["position","top","left","right","bottom"];n<r.length;n++){var o=r[n];if(e.styles.layer[o]!==t.styles.layer[o]||e.styles.arrow[o]!==t.styles.arrow[o])return!0}return!1}(G.current,m)||(G.current=m,q.current&&cancelAnimationFrame(q.current),q.current=requestAnimationFrame((function(){$(m),q.current=null}))),$u(p)&&$u(L)&&L(p)}),[P,S,z,f,F,L,d,v,b,x,C,I,T,G,H]),K=Yu({ResizeObserverPolyfill:m,environment:f,enabled:o,overflowContainer:d,onChange:Y,triggerOption:H}),X=K.triggerRef,Z=K.layerRef,J=K.arrowRef,Q=K.closestScrollContainer,ee=function(e){var t=e.isOpen,n=e.onOutsideClick,r=e.onParentClose,o=c(null),l=c(null),s=c(new Set),d=i(Ku),p=u((function(e){var t=e.target,n=o.current&&o.current.contains(t),r=l.current&&l.current.contains(t),i=function(e,t){for(var n,r=Mu(e);!(n=r()).done;)if(!(0,n.value.shouldCloseWhenClickedOutside)(t))return!1;return!0}(s.current,e);return r&&i&&s.current.forEach((function(e){return(0,e.closeChild)()})),!n&&!r&&i}),[o,l,s]);return a((function(){if("function"==typeof d)return d({shouldCloseWhenClickedOutside:p,closeChild:function(){r&&r()}})}),[d,p,r,s]),a((function(){if(t&&n&&"function"!=typeof d)return document.addEventListener("click",e,!0),function(){return document.removeEventListener("click",e,!0)};function e(e){p(e)&&n()}}),[t,n,p,d]),a((function(){t||s.current.forEach((function(e){return(0,e.closeChild)()}))}),[t]),{closeOnOutsideClickRefs:{trigger:o,layer:l},registrations:s}}({isOpen:o,onOutsideClick:M,onParentClose:j}),te=ee.closeOnOutsideClickRefs,ne=ee.registrations,re={triggerProps:Boolean(H)?{}:{ref:Wu(X,te.trigger,W)},layerProps:{ref:Wu(Z,te.layer),style:V.styles.layer},arrowProps:{ref:J,style:V.styles.arrow,layerSide:V.layerSide},layerSide:V.layerSide,triggerBounds:o?H?H.getBounds():null==(t=W.current)?void 0:t.getBoundingClientRect():null,renderLayer:function(e){return"undefined"!=typeof document?g(s(Xu,{registrations:ne,children:e}),d||!Q?function(e){var t;if("function"==typeof e){if(!((t=e())&&t instanceof HTMLElement))throw new Error("react-laag: You've passed a function to the 'container' prop, but it returned no valid HTMLElement")}else if(e instanceof HTMLElement)t=e;else if("string"==typeof e){if(!(t=document.getElementById(e)))throw new Error("react-laag: You've passed element with id '"+e+"' to the 'container' prop, but it returned no valid HTMLElement")}else{if(null instanceof HTMLElement)return null;(t=document.getElementById("layers"))||((t=document.createElement("div")).id="layers",t.style.cssText="\n position: absolute;\n top: 0px;\n left: 0px;\n right: 0px;\n ",document.body.appendChild(t))}return t}(A):Q):null}};return re}(cd=ad||(ad={}))[cd.ENTERING=0]="ENTERING",cd[cd.LEAVING=1]="LEAVING",cd[cd.IDLE=2]="IDLE";let vd=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),"");var yd,bd,wd,xd,Ed,Cd,kd,Sd,_d,Id,Bd;!function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"}(yd||(yd={})),function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(bd||(bd={})),function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(wd||(wd={})),function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(xd||(xd={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(Ed||(Ed={})),function(e){e[e.RightClick=2]="RightClick"}(Cd||(Cd={})),function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(kd||(kd={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(Sd||(Sd={})),function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(_d||(_d={})),function(e){e.Optimized="optimized"}(Id||(Id={})),function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Bd||(Bd={}));var Td={exports:{}};
|
|
22
22
|
/*!
|
|
23
23
|
Copyright (c) 2018 Jed Watson.
|
|
24
24
|
Licensed under the MIT License (MIT), see
|
|
25
25
|
http://jedwatson.github.io/classnames
|
|
26
|
-
*/!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)){if(o.length){var a=n.apply(null,o);a&&e.push(a)}}else if("object"===i)if(o.toString===Object.prototype.toString)for(var c in o)t.call(o,c)&&o[c]&&e.push(c);else e.push(o.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(Vf);var $f=Vf.exports,Wf=!1;if("undefined"!=typeof window){var Yf={get passive(){Wf=!0}};window.addEventListener("testPassive",null,Yf),window.removeEventListener("testPassive",null,Yf)}var Gf="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),qf=[],Kf=!1,Xf=-1,Zf=void 0,Jf=void 0,Qf=function(e){return qf.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},em=function(e){var t=e||window.event;return!!Qf(t.target)||t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1)};function tm(){return tm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tm.apply(this,arguments)}var nm=function(t){var n=t.classes,r=t.classNames,o=t.styles,i=t.id,a=t.closeIcon,c=t.onClick;return e.createElement("button",{id:i,className:$f(n.closeButton,null==r?void 0:r.closeButton),style:null==o?void 0:o.closeButton,onClick:c,"data-testid":"close-button"},a||e.createElement("svg",{className:null==r?void 0:r.closeIcon,style:null==o?void 0:o.closeIcon,width:28,height:28,viewBox:"0 0 36 36","data-testid":"close-icon"},e.createElement("path",{d:"M28.5 9.62L26.38 7.5 18 15.88 9.62 7.5 7.5 9.62 15.88 18 7.5 26.38l2.12 2.12L18 20.12l8.38 8.38 2.12-2.12L20.12 18z"})))},rm="undefined"!=typeof window,om=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'];function im(e){return null===e.offsetParent||"hidden"===getComputedStyle(e).visibility}function am(e){if("INPUT"!==e.tagName||"radio"!==e.type||!e.name)return!0;var t=(e.form||e.ownerDocument).querySelectorAll('input[type="radio"][name="'+e.name+'"]'),n=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return n===e||void 0===n&&t[0]===e}function cm(e){for(var t=document.activeElement,n=e.querySelectorAll(om.join(",")),r=[],o=0;o<n.length;o++){var i=n[o];(t===i||!i.disabled&&lm(i)>-1&&!im(i)&&am(i))&&r.push(i)}return r}function lm(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return e.getAttribute("contentEditable")}(e)?0:e.tabIndex:t}var sm=function(e){var t=e.container,n=e.initialFocusRef,r=a();return i((function(){var e=function(e){(null==t?void 0:t.current)&&function(e,t){if(e&&"Tab"===e.key){if(!t||!t.contains)return process,!1;if(!t.contains(e.target))return!1;var n=cm(t),r=n[0],o=n[n.length-1];e.shiftKey&&e.target===r?(o.focus(),e.preventDefault()):!e.shiftKey&&e.target===o&&(r.focus(),e.preventDefault())}}(e,t.current)};if(rm&&document.addEventListener("keydown",e),rm&&(null==t?void 0:t.current)){var o=function(){-1!==om.findIndex((function(e){var t;return null==(t=document.activeElement)?void 0:t.matches(e)}))&&(r.current=document.activeElement)};if(n)o(),requestAnimationFrame((function(){var e;null==(e=n.current)||e.focus()}));else{var i=cm(t.current);i[0]&&(o(),i[0].focus())}}return function(){var t;rm&&(document.removeEventListener("keydown",e),null==(t=r.current)||t.focus())}}),[t,n]),null},um=[],dm={root:"react-responsive-modal-root",overlay:"react-responsive-modal-overlay",overlayAnimationIn:"react-responsive-modal-overlay-in",overlayAnimationOut:"react-responsive-modal-overlay-out",modalContainer:"react-responsive-modal-container",modalContainerCenter:"react-responsive-modal-containerCenter",modal:"react-responsive-modal-modal",modalAnimationIn:"react-responsive-modal-modal-in",modalAnimationOut:"react-responsive-modal-modal-out",closeButton:"react-responsive-modal-closeButton"},pm=e.forwardRef((function(t,r){var o,c,l,s,u=t.open,d=t.center,p=t.blockScroll,f=void 0===p||p,h=t.closeOnEsc,g=void 0===h||h,v=t.closeOnOverlayClick,y=void 0===v||v,b=t.container,w=t.showCloseIcon,x=void 0===w||w,E=t.closeIconId,C=t.closeIcon,k=t.focusTrapped,S=void 0===k||k,_=t.initialFocusRef,I=void 0===_?void 0:_,T=t.animationDuration,B=void 0===T?300:T,z=t.classNames,P=t.styles,N=t.role,D=void 0===N?"dialog":N,O=t.ariaDescribedby,A=t.ariaLabelledby,R=t.modalId,L=t.onClose,F=t.onEscKeyDown,M=t.onOverlayClick,j=t.onAnimationEnd,H=t.children,U=t.reserveScrollBarGap,V=function(t){var n=function(t){void 0===t&&(t=null);var n=e.useState(t),r=n[0],o=n[1],i=e.useRef({current:r}).current;return Object.defineProperty(i,"current",{get:function(){return r},set:function(e){Object.is(r,e)||(r=e,o(e))}}),i}(null);return e.useEffect((function(){t&&("function"==typeof t?t(n.current):t.current=n.current)})),n}(r),$=a(null),W=a(null),Y=a(null);null===Y.current&&rm&&(Y.current=document.createElement("div"));var G=n(!1),q=G[0],K=G[1];!function(e,t){i((function(){return t&&(n=e,um.push(n)),function(){var t;t=e,um=um.filter((function(e){return e!==t}))};var n}),[t,e])}($,u),function(e,t,n,r,o){var c=a(null);i((function(){return t&&e.current&&r&&(c.current=e.current,function(e,t){if(e){if(!qf.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};qf=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(qf),[n]),Gf?(e.ontouchstart=function(e){1===e.targetTouches.length&&(Xf=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-Xf;!Qf(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?em(e):e.stopPropagation())}(t,e)},Kf||(document.addEventListener("touchmove",em,Wf?{passive:!1}:void 0),Kf=!0)):function(e){if(void 0===Jf){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(Jf=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===Zf&&(Zf=document.body.style.overflow,document.body.style.overflow="hidden")}(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")}(e.current,{reserveScrollBarGap:o})),function(){var e;c.current&&((e=c.current)?(qf=qf.filter((function(t){return t.targetElement!==e})),Gf?(e.ontouchstart=null,e.ontouchmove=null,Kf&&0===qf.length&&(document.removeEventListener("touchmove",em,Wf?{passive:!1}:void 0),Kf=!1)):qf.length||(void 0!==Jf&&(document.body.style.paddingRight=Jf,Jf=void 0),void 0!==Zf&&(document.body.style.overflow=Zf,Zf=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices."),c.current=null)}}),[t,n,e,r,o])}($,u,q,f,U);var X=function(e){var t;27===e.keyCode&&(t=$,um.length&&um[um.length-1]===t)&&(null==F||F(e),g&&L())};i((function(){return function(){q&&(Y.current&&!b&&document.body.contains(Y.current)&&document.body.removeChild(Y.current),document.removeEventListener("keydown",X))}}),[q]),i((function(){u&&!q&&(K(!0),!Y.current||b||document.body.contains(Y.current)||document.body.appendChild(Y.current),document.addEventListener("keydown",X))}),[u]);var Z=function(){W.current=!1},J=b||Y.current,Q=u?null!=(o=null==z?void 0:z.overlayAnimationIn)?o:dm.overlayAnimationIn:null!=(c=null==z?void 0:z.overlayAnimationOut)?c:dm.overlayAnimationOut,ee=u?null!=(l=null==z?void 0:z.modalAnimationIn)?l:dm.modalAnimationIn:null!=(s=null==z?void 0:z.modalAnimationOut)?s:dm.modalAnimationOut;return q&&J?m.createPortal(e.createElement("div",{className:$f(dm.root,null==z?void 0:z.root),style:null==P?void 0:P.root,"data-testid":"root"},e.createElement("div",{className:$f(dm.overlay,null==z?void 0:z.overlay),"data-testid":"overlay","aria-hidden":!0,style:tm({animation:Q+" "+B+"ms"},null==P?void 0:P.overlay)}),e.createElement("div",{ref:$,className:$f(dm.modalContainer,d&&dm.modalContainerCenter,null==z?void 0:z.modalContainer),style:null==P?void 0:P.modalContainer,"data-testid":"modal-container",onClick:function(e){null===W.current&&(W.current=!0),W.current?(null==M||M(e),y&&L(),W.current=null):W.current=null}},e.createElement("div",{ref:V,className:$f(dm.modal,null==z?void 0:z.modal),style:tm({animation:ee+" "+B+"ms"},null==P?void 0:P.modal),onMouseDown:Z,onMouseUp:Z,onClick:Z,onAnimationEnd:function(){u||K(!1),null==j||j()},id:R,role:D,"aria-modal":"true","aria-labelledby":A,"aria-describedby":O,"data-testid":"modal",tabIndex:-1},S&&e.createElement(sm,{container:V,initialFocusRef:I}),H,x&&e.createElement(nm,{classes:dm,classNames:z,styles:P,closeIcon:C,onClick:L,id:E})))),J):null}));function fm(){return fm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fm.apply(this,arguments)}var mm,hm=function(e,t){return function(e){return"function"==typeof e}(e)?e(t):e},gm=function(){var e=0;return function(){return(++e).toString()}}();!function(e){e[e.ADD_TOAST=0]="ADD_TOAST",e[e.UPDATE_TOAST=1]="UPDATE_TOAST",e[e.UPSERT_TOAST=2]="UPSERT_TOAST",e[e.DISMISS_TOAST=3]="DISMISS_TOAST",e[e.REMOVE_TOAST=4]="REMOVE_TOAST",e[e.START_PAUSE=5]="START_PAUSE",e[e.END_PAUSE=6]="END_PAUSE"}(mm||(mm={}));var vm=new Map,ym=function(e){if(!vm.has(e)){var t=setTimeout((function(){vm.delete(e),Em({type:mm.REMOVE_TOAST,toastId:e})}),1e3);vm.set(e,t)}},bm=function e(t,n){switch(n.type){case mm.ADD_TOAST:return fm({},t,{toasts:[n.toast].concat(t.toasts).slice(0,20)});case mm.UPDATE_TOAST:return n.toast.id&&function(e){var t=vm.get(e);t&&clearTimeout(t)}(n.toast.id),fm({},t,{toasts:t.toasts.map((function(e){return e.id===n.toast.id?fm({},e,n.toast):e}))});case mm.UPSERT_TOAST:var r=n.toast;return t.toasts.find((function(e){return e.id===r.id}))?e(t,{type:mm.UPDATE_TOAST,toast:r}):e(t,{type:mm.ADD_TOAST,toast:r});case mm.DISMISS_TOAST:var o=n.toastId;return o?ym(o):t.toasts.forEach((function(e){ym(e.id)})),fm({},t,{toasts:t.toasts.map((function(e){return e.id===o||void 0===o?fm({},e,{visible:!1}):e}))});case mm.REMOVE_TOAST:return void 0===n.toastId?fm({},t,{toasts:[]}):fm({},t,{toasts:t.toasts.filter((function(e){return e.id!==n.toastId}))});case mm.START_PAUSE:return fm({},t,{pausedAt:n.time});case mm.END_PAUSE:var i=n.time-(t.pausedAt||0);return fm({},t,{pausedAt:void 0,toasts:t.toasts.map((function(e){return fm({},e,{pauseDuration:e.pauseDuration+i})}))})}},wm=[],xm={toasts:[],pausedAt:void 0},Em=function(e){xm=bm(xm,e),wm.forEach((function(e){e(xm)}))},Cm=function(e){return function(t,n){var r=function(e,t,n){return void 0===t&&(t="blank"),fm({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0},n,{id:(null==n?void 0:n.id)||gm()})}(t,e,n);return Em({type:mm.UPSERT_TOAST,toast:r}),r.id}},km=function(e,t){return Cm("blank")(e,t)};km.error=Cm("error"),km.success=Cm("success"),km.loading=Cm("loading"),km.custom=Cm("custom"),km.dismiss=function(e){Em({type:mm.DISMISS_TOAST,toastId:e})},km.remove=function(e){return Em({type:mm.REMOVE_TOAST,toastId:e})},km.promise=function(e,t,n){var r=km.loading(t.loading,fm({},n,null==n?void 0:n.loading));return e.then((function(e){return km.success(hm(t.success,e),fm({id:r},n,null==n?void 0:n.success)),e})).catch((function(e){km.error(hm(t.error,e),fm({id:r},n,null==n?void 0:n.error))})),e};const Sm={white:"var(--white)","white-rgb":"var(--white-rgb)",gray1000:"var(--gray1000)","gray1000-rgb":"var(--gray1000-rgb)",gray900:"var(--gray900)",gray800:"var(--gray800)",gray700:"var(--gray700)",gray600:"var(--gray600)",gray500:"var(--gray500)",gray400:"var(--gray400)",gray300:"var(--gray300)",gray200:"var(--gray200)",gray100:"var(--gray100)",gray75:"var(--gray75)",gray50:"var(--gray50)",gray25:"var(--gray25)",gray10:"var(--gray10)",blue1000:"var(--blue1000)",blue900:"var(--blue900)",blue800:"var(--blue800)",blue700:"var(--blue700)",blue600:"var(--blue600)",blue500:"var(--blue500)",blue500a10:"var(--blue500a10)",blue400:"var(--blue400)",blue300:"var(--blue300)",blue200:"var(--blue200)",blue100:"var(--blue100)",red400:"var(--red400)",red500:"var(--red500)",red500a10:"var(--red500a10)",red600:"var(--red600)",red700:"var(--red700)",yellow500:"var(--yellow500)",yellow500a10:"var(--yellow500a10)",yellow600:"var(--yellow600)",yellow700:"var(--yellow700)",green500:"var(--green500)",purple1000:"var(--purple1000)",purple900:"var(--purple900)",purple800:"var(--purple800)",purple700:"var(--purple700)",purple600:"var(--purple600)",purple500:"var(--purple500)",purple400:"var(--purple400)",purple300:"var(--purple300)",purple200:"var(--purple200)",purple100:"var(--purple100)",magenta1000:"var(--magenta1000)",magenta900:"var(--magenta900)",magenta800:"var(--magenta800)",magenta700:"var(--magenta700)",magenta600:"var(--magenta600)",magenta500:"var(--magenta500)",magenta400:"var(--magenta400)",magenta300:"var(--magenta300)",magenta200:"var(--magenta200)",magenta100:"var(--magenta100)",teal1000:"var(--teal1000)",teal900:"var(--teal900)",teal800:"var(--teal800)",teal700:"var(--teal700)",teal600:"var(--teal600)",teal500:"var(--teal500)",teal400:"var(--teal400)",teal300:"var(--teal300)",teal200:"var(--teal200)",teal100:"var(--teal100)",brandPrimary700:"var(--brandPrimary700)",brandPrimary600:"var(--brandPrimary600)",brandPrimary500:"var(--brandPrimary500)","brandPrimary500-rgb":"var(--brandPrimary500-rgb)",brandPrimary300:"var(--brandPrimary300)",brandPrimary100:"var(--brandPrimary100)",spacing1:"var(--spacing1)",spacing2:"var(--spacing2)",spacing3:"var(--spacing3)",spacing4:"var(--spacing4)",spacing5:"var(--spacing5)",spacing6:"var(--spacing6)",spacing7:"var(--spacing7)",spacing8:"var(--spacing8)",spacing9:"var(--spacing9)",layoutSpacing1:"var(--layoutSpacing1)",layoutSpacing2:"var(--layoutSpacing2)",layoutSpacing3:"var(--layoutSpacing3)",layoutSpacing4:"var(--layoutSpacing4)",layoutSpacing5:"var(--layoutSpacing5)",layoutSpacing6:"var(--layoutSpacing6)",layoutSpacing7:"var(--layoutSpacing7)",radiusSmall:"var(--radiusSmall)",radiusMedium:"var(--radiusMedium)",radiusLarge:"var(--radiusLarge)",radiusCircle:"var(--radiusCircle)",radiusPill:"var(--radiusPill)",radiusBase:"var(--radiusBase)",brandRadiusBase:"var(--brandRadiusBase)",fontStackBase:"var(--fontStackBase)",brandFontStackBase:"var(--brandFontStackBase)",fontSize25:"var(--fontSize25)",fontSize50:"var(--fontSize50)",fontSize75:"var(--fontSize75)",fontSize100:"var(--fontSize100)",fontSize200:"var(--fontSize200)",fontSize300:"var(--fontSize300)",fontSize400:"var(--fontSize400)",fontSize500:"var(--fontSize500)",fontSize600:"var(--fontSize600)",fontSize700:"var(--fontSize700)",fontSize800:"var(--fontSize800)",fontSize900:"var(--fontSize900)",fontSize1000:"var(--fontSize1000)",fontSizeBase:"var(--fontSizeBase)",lineHeightBase:"var(--lineHeightBase)",lineHeightHeading:"var(--lineHeightHeading)",lineHeightText:"var(--lineHeightText)",gray900a:"var(--gray900a)",gray800a:"var(--gray800a)",gray700a:"var(--gray700a)",gray600a:"var(--gray600a)",gray500a:"var(--gray500a)",gray400a:"var(--gray400a)",gray300a:"var(--gray300a)",gray200a:"var(--gray200a)",gray100a:"var(--gray100a)",gray75a:"var(--gray75a)",gray50a:"var(--gray50a)",gray25a:"var(--gray25a)",colorText:"var(--colorText)",colorTextMuted:"var(--colorTextMuted)",colorTextDisabled:"var(--colorTextDisabled)",focusRingWidth:"var(--focusRingWidth)",focusRingColorPrimary:"var(--focusRingColorPrimary)",focusRingColorSecondary:"var(--focusRingColorSecondary)",colorShadow:"var(--colorShadow)",elevationStatic:"var(--elevationStatic)",elevation1:"var(--elevation1)",elevation2:"var(--elevation2)",elevation4:"var(--elevation4)",elevation8:"var(--elevation8)",elevation12:"var(--elevation12)",elevation16:"var(--elevation16)",elevation24:"var(--elevation24)",componentButtonPrimaryBorderHover:"var(--componentButtonPrimaryBorderHover)",componentButtonPrimaryBorderActive:"var(--componentButtonPrimaryBorderActive)",componentButtonPrimaryBorderFocus:"var(--componentButtonPrimaryBorderFocus)",componentButtonPrimaryBorderDisabled:"var(--componentButtonPrimaryBorderDisabled)",componentButtonPrimaryColor:"var(--componentButtonPrimaryColor)",componentButtonPrimaryColorHover:"var(--componentButtonPrimaryColorHover)",componentButtonPrimaryColorActive:"var(--componentButtonPrimaryColorActive)",componentButtonPrimaryColorFocus:"var(--componentButtonPrimaryColorFocus)",componentButtonPrimaryColorDisabled:"var(--componentButtonPrimaryColorDisabled)",componentButtonPrimaryFill:"var(--componentButtonPrimaryFill)",componentButtonPrimaryFillHover:"var(--componentButtonPrimaryFillHover)",componentButtonPrimaryFillActive:"var(--componentButtonPrimaryFillActive)",componentButtonPrimaryFillFocus:"var(--componentButtonPrimaryFillFocus)",componentButtonPrimaryFillDisabled:"var(--componentButtonPrimaryFillDisabled)",componentButtonPrimaryFocusRing:"var(--componentButtonPrimaryFocusRing)",componentButtonSecondaryBorder:"var(--componentButtonSecondaryBorder)",componentButtonSecondaryBorderHover:"var(--componentButtonSecondaryBorderHover)",componentButtonSecondaryBorderActive:"var(--componentButtonSecondaryBorderActive)",componentButtonSecondaryBorderFocus:"var(--componentButtonSecondaryBorderFocus)",componentButtonSecondaryBorderDisabled:"var(--componentButtonSecondaryBorderDisabled)",componentButtonSecondaryColor:"var(--componentButtonSecondaryColor)",componentButtonSecondaryColorHover:"var(--componentButtonSecondaryColorHover)",componentButtonSecondaryColorActive:"var(--componentButtonSecondaryColorActive)",componentButtonSecondaryColorFocus:"var(--componentButtonSecondaryColorFocus)",componentButtonSecondaryColorDisabled:"var(--componentButtonSecondaryColorDisabled)",componentButtonSecondaryFill:"var(--componentButtonSecondaryFill)",componentButtonSecondaryFillHover:"var(--componentButtonSecondaryFillHover)",componentButtonSecondaryFillActive:"var(--componentButtonSecondaryFillActive)",componentButtonSecondaryFillFocus:"var(--componentButtonSecondaryFillFocus)",componentButtonSecondaryFillDisabled:"var(--componentButtonSecondaryFillDisabled)",componentButtonSecondaryFocusRing:"var(--componentButtonSecondaryFocusRing)",componentButtonCleanBorderFocus:"var(--componentButtonCleanBorderFocus)",componentButtonCleanBorderActive:"var(--componentButtonCleanBorderActive)",componentButtonCleanColor:"var(--componentButtonCleanColor)",componentButtonCleanColorHover:"var(--componentButtonCleanColorHover)",componentButtonCleanColorActive:"var(--componentButtonCleanColorActive)",componentButtonCleanColorFocus:"var(--componentButtonCleanColorFocus)",componentButtonCleanColorDisabled:"var(--componentButtonCleanColorDisabled)",componentButtonCleanFill:"var(--componentButtonCleanFill)",componentButtonCleanFillHover:"var(--componentButtonCleanFillHover)",componentButtonCleanFillActive:"var(--componentButtonCleanFillActive)",componentButtonCleanFillFocus:"var(--componentButtonCleanFillFocus)",componentButtonCleanFillDisabled:"var(--componentButtonCleanFillDisabled)",componentButtonCleanFocusRing:"var(--componentButtonCleanFocusRing)",componentButtonDangerBorderHover:"var(--componentButtonDangerBorderHover)",componentButtonDangerBorderActive:"var(--componentButtonDangerBorderActive)",componentButtonDangerBorderFocus:"var(--componentButtonDangerBorderFocus)",componentButtonDangerBorderDisabled:"var(--componentButtonDangerBorderDisabled)",componentButtonDangerColor:"var(--componentButtonDangerColor)",componentButtonDangerColorHover:"var(--componentButtonDangerColorHover)",componentButtonDangerColorActive:"var(--componentButtonDangerColorActive)",componentButtonDangerColorFocus:"var(--componentButtonDangerColorFocus)",componentButtonDangerColorDisabled:"var(--componentButtonDangerColorDisabled)",componentButtonDangerFill:"var(--componentButtonDangerFill)",componentButtonDangerFillHover:"var(--componentButtonDangerFillHover)",componentButtonDangerFillActive:"var(--componentButtonDangerFillActive)",componentButtonDangerFillFocus:"var(--componentButtonDangerFillFocus)",componentButtonDangerFillDisabled:"var(--componentButtonDangerFillDisabled)",componentButtonDangerFocusRing:"var(--componentButtonDangerFocusRing)",componentDividerColor:"var(--componentDividerColor)",componentCheckboxBorderUnchecked:"var(--componentCheckboxBorderUnchecked)",componentCheckboxBorderUncheckedHover:"var(--componentCheckboxBorderUncheckedHover)",componentCheckboxBorderUncheckedFocus:"var(--componentCheckboxBorderUncheckedFocus)",componentCheckboxFillDisabled:"var(--componentCheckboxFillDisabled)",componentCheckboxCheckmarkColorDisabled:"var(--componentCheckboxCheckmarkColorDisabled)",componentRadioBorderUnchecked:"var(--componentRadioBorderUnchecked)",componentRadioFillDisabled:"var(--componentRadioFillDisabled)",componentRadioCheckmarkColorDisabled:"var(--componentRadioCheckmarkColorDisabled)",componentRadioBorderUncheckedHover:"var(--componentRadioBorderUncheckedHover)"};function _m({...t}){const{children:n,color:r="brand",hasBorder:o=!1,isPillShaped:i=!1,icon:a,isSmall:c=!1,isSecondary:l=!1}=t;return e.createElement(Im,{color:r,hasBorder:o,isPillShaped:i,isSecondary:l,isSmall:c,...t},a&&e.createElement(Tm,{isSmall:c},a),n)}const Im=Ul.div.withConfig({shouldForwardProp:(e,t)=>!["color"].includes(e)&&t(e)}).withConfig({displayName:"BadgeStyled",componentId:"sc-120kp1z-0"})(["display:inline-flex;vertical-align:middle;flex-wrap:nowrap;justify-content:center;align-items:center;box-sizing:border-box;height:",";padding:0 ",";border:2px solid transparent;border-radius:",";color:",";font-weight:normal;font-size:",";line-height:normal;",""],(e=>e.isSmall?"20px":"24px"),(e=>e.isSmall?Sm.spacing2:"6px"),(e=>e.isPillShaped?Sm.radiusPill:Sm.radiusMedium),Sm.white,Sm.fontSize50,(e=>{if(!e.isSecondary&&e.color){const t={brand:Sm.brandPrimary500,gray:Sm.gray400,black:Sm.gray900,"black-alpha":Sm.gray600a,blue:Sm.blue500,red:Sm.red400};return e.hasBorder?Tl(["border-color:",";color:",";"],t[e.color],t[e.color]):Tl(["background-color:",";"],t[e.color])}if(e.isSecondary)return Tl(["border-color:",";background-color:",";color:",";"],e.hasBorder?Sm.gray100:"transparent",e.hasBorder?Sm.white:Sm.gray100,Sm.gray800)})),Tm=Ul.div.withConfig({displayName:"IconHolder1",componentId:"sc-120kp1z-1"})(["display:flex;align-items:center;height:100%;margin-right:",";margin-left:calc("," * -1);svg{width:18px;height:18px;}"],(e=>e.isSmall?Sm.spacing1:Sm.spacing2),Sm.spacing1),Bm=Tl(["color:",";font-size:",";font-family:",";line-height:",";"],Sm.colorText,Sm.fontSizeBase,Sm.brandFontStackBase,Sm.lineHeightBase);Ul.div.withConfig({displayName:"BaseStyles",componentId:"sc-120kp1z-2"})(["",""],Bm),Ul.div.withConfig({shouldForwardProp:(e,t)=>!["color"].includes(e)&&t(e)}).withConfig({displayName:"Track1",componentId:"sc-120kp1z-3"})(["overflow:hidden;height:4px;border-radius:",";background:",";"],(e=>e.noCornerRadius?"0":Sm.radiusPill),(e=>"brand"===e.color?Sm.brandPrimary500:`\n\t\t\t\tlinear-gradient(\n\t\t\t\t\t0deg,\n\t\t\t\t\trgb(${Sm["white-rgb"]} / 30%),\n\t\t\t\t\trgb(${Sm["white-rgb"]} / 30%)\n\t\t\t\t),\n\t\t\t\t${Sm.gray100a}\n\t\t\t`));const zm=Wl(["to{transform:translateX(-40px);}"]),Pm=`rgb(${Sm["white-rgb"]} / 0.15)`,Nm=`rgb(${Sm["gray1000-rgb"]} / 0.15)`;Ul.div.withConfig({displayName:"Fill2",componentId:"sc-120kp1z-4"})(["width:calc(100% + 60px);height:100%;background-image:linear-gradient( -45deg,"," 25%,"," 25%,"," 50%,"," 50%,"," 75%,"," 75%,"," );background-size:40px 40px;background-repeat:repeat-x;animation:"," 0.8s linear infinite;"],Pm,Nm,Nm,Pm,Pm,Nm,Nm,zm);const Dm=Ul.button.withConfig({displayName:"ButtonStyled1",componentId:"sc-120kp1z-5"})(["vertical-align:middle;justify-content:center;align-items:center !important;box-sizing:border-box !important;border:1px solid transparent !important;border-radius:",";outline:none !important;font-weight:400 !important;font-style:normal;font-size:"," !important;font-family:"," !important;line-height:"," !important;text-transform:none !important;text-shadow:none !important;cursor:pointer !important;transition-duration:0.1s;transition-property:background-color,border-color,box-shadow,color;button&,a&{position:relative;display:flex;flex:0 0 auto;flex-wrap:nowrap;min-width:40px;background-position:center;text-align:center;text-decoration:none;white-space:nowrap;fill:currentColor;&:focus{display:flex;}}&:disabled{cursor:default !important;pointer-events:none;}"," ",";",""],Sm.brandRadiusBase,Sm.fontSizeBase,Sm.brandFontStackBase,Sm.lineHeightBase,(e=>e.isFullWidth&&"width: 100%;"),(e=>e.isSmall?Tl(["height:32px !important;padding:0 "," !important;font-size:"," !important;line-height:20px !important;"],Sm.spacing4,Sm.fontSize75):Tl(["height:40px !important;padding:0 "," !important;"],Sm.spacing5)),(e=>{if("primary"===e.variant){const t=Tl(["border-color:",";background-color:",";color:",";box-shadow:none !important;"],Sm.componentButtonPrimaryBorderActive,Sm.componentButtonPrimaryFillActive,Sm.componentButtonPrimaryColorActive);return Tl(["border-color:transparent;background-color:",";color:",";"," &:hover{border-color:",";background-color:",";color:",";box-shadow:"," !important;}&:focus{border-color:",";background-color:",";color:",";box-shadow:"," !important;}&:active{","}&:disabled{border-color:",";background-color:",";color:",";box-shadow:none !important;}"],Sm.componentButtonPrimaryFill,Sm.componentButtonPrimaryColor,e.isPressed&&t,Sm.componentButtonPrimaryBorderHover,Sm.componentButtonPrimaryFillHover,Sm.componentButtonPrimaryColorHover,Sm.elevation1,Sm.componentButtonPrimaryBorderFocus,Sm.componentButtonPrimaryFillFocus,Sm.componentButtonPrimaryColorFocus,Sm.componentButtonPrimaryFocusRing,t,Sm.componentButtonPrimaryBorderDisabled,Sm.componentButtonPrimaryFillDisabled,Sm.componentButtonPrimaryColorDisabled)}if("secondary"===e.variant){const t=Tl(["border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;"],Sm.componentButtonSecondaryBorderActive,Sm.componentButtonSecondaryFillActive,Sm.componentButtonSecondaryColorActive);return Tl(["border-color:"," !important;background-color:"," !important;color:"," !important;"," &:hover{border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:"," !important;}&:focus{border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:"," !important;}&:active{","}&:disabled{border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;}"],Sm.componentButtonSecondaryBorder,Sm.componentButtonSecondaryFill,Sm.componentButtonSecondaryColor,e.isPressed&&t,Sm.componentButtonSecondaryBorderHover,Sm.componentButtonSecondaryFillHover,Sm.componentButtonSecondaryColorHover,Sm.elevation1,Sm.componentButtonSecondaryBorderFocus,Sm.componentButtonSecondaryFillFocus,Sm.componentButtonSecondaryColorFocus,Sm.componentButtonSecondaryFocusRing,t,Sm.componentButtonSecondaryBorderDisabled,Sm.componentButtonSecondaryFillDisabled,Sm.componentButtonSecondaryColorDisabled)}if("clean"===e.variant){const t=Tl(["border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;"],Sm.componentButtonCleanBorderActive,Sm.componentButtonCleanFillActive,Sm.componentButtonCleanColorActive);return Tl(["background-color:"," !important;color:",";"," &:hover{background-color:"," !important;color:"," !important;box-shadow:none !important;}&:focus{border-color:"," !important;color:"," !important;box-shadow:"," !important;}&:active{","}&:disabled{background-color:"," !important;color:"," !important;}"],Sm.componentButtonCleanFill,Sm.componentButtonCleanColor,e.isPressed&&t,Sm.componentButtonCleanFillHover,Sm.componentButtonCleanColorHover,Sm.componentButtonCleanBorderFocus,Sm.componentButtonCleanColorFocus,Sm.componentButtonCleanFocusRing,t,Sm.componentButtonCleanFillDisabled,Sm.componentButtonCleanColorDisabled)}if("danger"===e.variant){const t=Tl(["border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;"],Sm.componentButtonDangerBorderActive,Sm.componentButtonDangerFillActive,Sm.componentButtonDangerColorActive);return Tl(["border-color:transparent;background-color:"," !important;color:"," !important;box-shadow:"," !important;"," &:hover{border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:"," !important;}&:focus{border-color:"," !important;color:"," !important;box-shadow:"," !important;}&:active{","}&:disabled{border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;}"],Sm.componentButtonDangerFill,Sm.componentButtonDangerColor,Sm.elevation1,e.isPressed&&t,Sm.componentButtonDangerBorderHover,Sm.componentButtonDangerFillHover,Sm.componentButtonDangerColorHover,Sm.elevation2,Sm.componentButtonDangerBorderFocus,Sm.componentButtonDangerColorFocus,Sm.componentButtonDangerFocusRing,t,Sm.componentButtonDangerBorderDisabled,Sm.componentButtonDangerFillDisabled,Sm.componentButtonDangerColorDisabled)}return""})),Om=Ul.button.withConfig({displayName:"ButtonStyled",componentId:"sc-120kp1z-6"})(["display:inline-flex;vertical-align:middle;flex-wrap:nowrap;justify-content:center;align-items:center;box-sizing:border-box;min-width:40px;border:1px solid transparent;border-radius:",";background-color:transparent;outline:none;font-weight:400;font-style:normal;font-size:",";font-family:",";line-height:",";letter-spacing:normal;text-align:center;text-decoration:none;white-space:nowrap;cursor:pointer;fill:currentColor;transition-duration:0.1s;transition-property:background-color,border-color,box-shadow,color;&:disabled{cursor:default;}"," ",";",""],Sm.brandRadiusBase,Sm.fontSizeBase,Sm.brandFontStackBase,Sm.lineHeightBase,(e=>e.isFullWidth&&"width: 100%;"),(e=>e.isSmall?Tl(["height:32px;padding:0 ",";font-size:",";line-height:20px;"],Sm.spacing4,Sm.fontSize75):Tl(["height:40px;padding:0 ",";"],Sm.spacing5)),(e=>{if("primary"===e.variant){const t=Tl(["border-color:",";background-color:",";color:",";box-shadow:none;"],Sm.componentButtonPrimaryBorderActive,Sm.componentButtonPrimaryFillActive,Sm.componentButtonPrimaryColorActive);return Tl(["border-color:transparent;background-color:",";color:",";"," &:hover{border-color:",";background-color:",";color:",";box-shadow:",";}&:active{","}"," &:disabled{border-color:",";background-color:",";color:",";box-shadow:none;}"],Sm.componentButtonPrimaryFill,Sm.componentButtonPrimaryColor,e.isPressed&&t,Sm.componentButtonPrimaryBorderHover,Sm.componentButtonPrimaryFillHover,Sm.componentButtonPrimaryColorHover,Sm.elevation1,t,e.isFocusVisible&&Tl(["background-color:",";color:",";&,&:hover{border-color:",";box-shadow:",";}"],Sm.componentButtonPrimaryFillFocus,Sm.componentButtonPrimaryColorFocus,Sm.componentButtonPrimaryBorderFocus,Sm.componentButtonPrimaryFocusRing),Sm.componentButtonPrimaryBorderDisabled,Sm.componentButtonPrimaryFillDisabled,Sm.componentButtonPrimaryColorDisabled)}if("secondary"===e.variant){const t=Tl(["border-color:",";background-color:",";color:",";box-shadow:none;"],Sm.componentButtonSecondaryBorderActive,Sm.componentButtonSecondaryFillActive,Sm.componentButtonSecondaryColorActive);return Tl(["border-color:",";background-color:",";color:",";"," &:hover{border-color:",";background-color:",";color:",";box-shadow:",";}&:active{","}"," &:disabled{border-color:",";background-color:",";color:",";box-shadow:none;}"],Sm.componentButtonSecondaryBorder,Sm.componentButtonSecondaryFill,Sm.componentButtonSecondaryColor,e.isPressed&&t,Sm.componentButtonSecondaryBorderHover,Sm.componentButtonSecondaryFillHover,Sm.componentButtonSecondaryColorHover,Sm.elevation1,t,e.isFocusVisible&&Tl(["background-color:",";color:",";&,&:hover{border-color:",";box-shadow:",";}"],Sm.componentButtonSecondaryFillFocus,Sm.componentButtonSecondaryColorFocus,Sm.componentButtonSecondaryBorderFocus,Sm.componentButtonSecondaryFocusRing),Sm.componentButtonSecondaryBorderDisabled,Sm.componentButtonSecondaryFillDisabled,Sm.componentButtonSecondaryColorDisabled)}if("clean"===e.variant){const t=Tl(["border-color:",";background-color:",";color:",";box-shadow:none;"],Sm.componentButtonCleanBorderActive,Sm.componentButtonCleanFillActive,Sm.componentButtonCleanColorActive);return Tl(["background-color:",";color:",";"," &:hover{background-color:",";color:",";box-shadow:none;}&:active{","}"," &:disabled{background-color:",";color:",";}"],Sm.componentButtonCleanFill,Sm.componentButtonCleanColor,e.isPressed&&t,Sm.componentButtonCleanFillHover,Sm.componentButtonCleanColorHover,t,e.isFocusVisible&&Tl(["color:",";&,&:hover{border-color:",";box-shadow:",";}"],Sm.componentButtonCleanColorFocus,Sm.componentButtonCleanBorderFocus,Sm.componentButtonCleanFocusRing),Sm.componentButtonCleanFillDisabled,Sm.componentButtonCleanColorDisabled)}if("danger"===e.variant){const t=Tl(["border-color:",";background-color:",";color:",";box-shadow:none;"],Sm.componentButtonDangerBorderActive,Sm.componentButtonDangerFillActive,Sm.componentButtonDangerColorActive);return Tl(["border-color:transparent;background-color:",";color:",";box-shadow:",";"," &:hover{border-color:",";background-color:",";color:",";box-shadow:",";}&:active{","}"," &:disabled{border-color:",";background-color:",";color:",";box-shadow:none;}"],Sm.componentButtonDangerFill,Sm.componentButtonDangerColor,Sm.elevation1,e.isPressed&&t,Sm.componentButtonDangerBorderHover,Sm.componentButtonDangerFillHover,Sm.componentButtonDangerColorHover,Sm.elevation2,t,e.isFocusVisible&&Tl(["background-color:",";color:",";box-shadow:none;&,&:hover{border-color:",";box-shadow:",";}"],Sm.componentButtonDangerFillFocus,Sm.componentButtonDangerColorFocus,Sm.componentButtonDangerBorderFocus,Sm.componentButtonDangerFocusRing),Sm.componentButtonDangerBorderDisabled,Sm.componentButtonDangerFillDisabled,Sm.componentButtonDangerColorDisabled)}return""})),Am=Ul.div.withConfig({displayName:"Icon4",componentId:"sc-120kp1z-7"})(["display:flex;align-items:center;height:100%;"]),Rm=Ul(Am).withConfig({displayName:"LeftIcon",componentId:"sc-120kp1z-8"})(["margin-right:",";margin-left:calc("," * -1);"],(e=>e.lastChild?`calc(${Sm.spacing2} * -1) `:Sm.spacing3),Sm.spacing2),Lm=Ul(Am).withConfig({displayName:"RightIcon1",componentId:"sc-120kp1z-9"})(["margin-right:calc("," * -1);margin-left:",";"],Sm.spacing2,Sm.spacing3);function Fm(){return e.createElement(Hm,{viewBox:"0 0 24 24","aria-hidden":"true"},e.createElement(Um,{cx:"12",cy:"12",r:"8",fill:"none",strokeWidth:"3"}))}const Mm=Wl(["100%{transform:rotate(360deg);}"]),jm=Wl(["0%{stroke-dasharray:1,100;stroke-dashoffset:0;}50%{stroke-dasharray:80,100;stroke-dashoffset:-20;}100%{stroke-dasharray:80,100;stroke-dashoffset:-48;}"]),Hm=Ul.svg.withConfig({displayName:"Svg",componentId:"sc-120kp1z-10"})(["width:24px;height:24px;animation:"," 1s linear infinite;"],Mm),Um=Ul.circle.withConfig({displayName:"Circle",componentId:"sc-120kp1z-11"})(["stroke:currentColor;animation:"," 1.5s ease-in-out infinite;stroke-linecap:round;"],jm),Vm=u((({children:t,className:n="",rightIcon:r,type:o="button","aria-label":i,isFullWidth:a=!1,icon:c,variant:l="secondary",isSmall:s=!1,isDisabled:u=!1,isPressed:d=!1,isLoading:p=!1,...f},m)=>{const h=function({variant:e,isSmall:t,icon:n,isDisabled:r,className:o=""}){return[o,"action-btn","secondary"===e||"clean"===e?"cancel gray":"cta-main blue",t?"button-small":"",n?"button-icon":"",r?"disabled":""].join(" ")}({className:n,variant:l,isSmall:s,icon:c,isDisabled:u});return e.createElement(Dm,{"aria-label":i||f.title,className:h,disabled:u||p,type:o,variant:l,isPressed:d,isSmall:s,isFullWidth:a,as:f.href?"a":"button",ref:m,...f},p?e.createElement(e.Fragment,null,e.createElement(Rm,null,e.createElement(Fm,null)),t):e.createElement(e.Fragment,null,c&&e.createElement(Rm,{lastChild:!t},c),t,r&&e.createElement(Lm,null,r)))})),$m=t("modern"),Wm=u((({children:t,variant:n="secondary",isSmall:r=!1,icon:o,rightIcon:i,isDisabled:a=!1,isLoading:c=!1,type:l="button",...s},u)=>{const{isFocusVisible:d,focusProps:p}=zd();return e.createElement(Om,{variant:n,isSmall:r,disabled:c||a,type:l,as:s.href?"a":"button",isFocusVisible:d,ref:u,...p,...s},c?e.createElement(e.Fragment,null,e.createElement(Rm,{"data-testid":"ds-button-loading-icon"},e.createElement(Fm,null)),t):e.createElement(e.Fragment,null,o&&e.createElement(Rm,{lastChild:!t},o),t,i&&e.createElement(Lm,null,i)))})),Ym=u(((t,n)=>"legacy"===(o($m)||"modern")?e.createElement(Vm,{ref:n,...t}):e.createElement(Wm,{ref:n,...t}))),Gm=Object.assign(Ym,{VersionProvider:$m.Provider}),qm=t(null);function Km(){const e=o(qm);if(!e)throw new Error("Card compound components cannot be rendered outside the Card component");return e}const Xm=Ul.div.withConfig({shouldForwardProp:(e,t)=>!["height"].includes(e)&&t(e)}).withConfig({displayName:"FrameStyled",componentId:"sc-120kp1z-12"})(["position:relative;min-height:92px;border-radius:var(--card-frame-border-radius);background:",";",""],(e=>e.isCheckeredBackground?"url(\"data:image/svg+xml,%3Csvg width='12' height='12' xmlns='http://www.w3.org/2000/svg'%3E%3Crect height='12' width='12' y='0' x='0' fill='%23ffffff'/%3E%3Crect height='6' width='6' y='0' x='0' fill='%23e9ecee'/%3E%3Crect height='6' width='6' y='6' x='6' fill='%23e9ecee'/%3E%3C/svg%3E%0A\") ":Sm.gray25),(e=>"fixed"===e.height&&Tl(["&::before{content:'';display:inline-block;vertical-align:top;width:0;height:0;padding-bottom:calc(100% / (16 / 10));}"]))),Zm=Ul.div.withConfig({displayName:"FocusRing",componentId:"sc-120kp1z-13"})(["position:absolute;top:-4px;right:-4px;bottom:-4px;left:-4px;border:var(--card-selected-border-width) solid var(--card-selected-border-color);border-radius:calc(var(--card-border-radius) + 4px);"]),Jm=Ul.div.withConfig({shouldForwardProp:(e,t)=>!["height"].includes(e)&&t(e)}).withConfig({displayName:"Children",componentId:"sc-120kp1z-14"})([""," display:grid;overflow:hidden;border-radius:var(--card-frame-border-radius);"],(e=>"fixed"===e.height&&Tl(["position:absolute;inset:0;"]))),Qm=Ul.div.withConfig({displayName:"Overlay1",componentId:"sc-120kp1z-15"})(["position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border:var(--card-inner-border-width) solid var(--card-inner-border-color);border-bottom-width:var(--card-frame-border-bottom-width);border-radius:var(--card-frame-border-radius);background:var(--card-frame-overlay-color);"]),eh=Ul.div.withConfig({displayName:"BadgeContainer",componentId:"sc-120kp1z-16"})(["position:absolute;right:",";bottom:",";"],Sm.spacing4,Sm.spacing4),th=Ul.div.withConfig({displayName:"IconContainer4",componentId:"sc-120kp1z-17"})(["position:absolute;bottom:",";left:",";color:",";path{stroke:",";stroke-width:2px;paint-order:stroke;&[d='M0 0h24v24H0z']{stroke:none;}}"],Sm.spacing4,Sm.spacing4,Sm.white,Sm.gray100a),nh=Ul.div.withConfig({displayName:"ProgressContainer",componentId:"sc-120kp1z-18"})(["position:absolute;bottom:0;left:0;width:100%;"]),rh={paragraphS:Tl(["font-weight:normal;font-size:",";line-height:",";"],Sm.fontSize75,Sm.lineHeightText),paragraphM:Tl(["font-weight:normal;font-size:",";line-height:",";"],Sm.fontSize100,Sm.lineHeightText),paragraphL:Tl(["font-weight:normal;font-size:",";line-height:",";"],Sm.fontSize200,Sm.lineHeightText),uiTextXS:Tl(["font-weight:normal;font-size:",";line-height:20px;"],Sm.fontSize50),uiTextS:Tl(["font-weight:normal;font-size:",";line-height:20px;"],Sm.fontSize75),uiTextM:Tl(["font-weight:normal;font-size:",";line-height:20px;"],Sm.fontSize100),uiTextL:Tl(["font-weight:normal;font-size:",";line-height:24px;"],Sm.fontSize200),headingXS:Tl(["font-weight:600;font-size:",";line-height:",";"],Sm.fontSize100,Sm.lineHeightHeading),headingS:Tl(["font-weight:600;font-size:",";line-height:",";"],Sm.fontSize200,Sm.lineHeightHeading),headingM:Tl(["font-weight:normal;font-size:",";line-height:",";"],Sm.fontSize400,Sm.lineHeightHeading),headingL:Tl(["font-weight:normal;font-size:",";line-height:",";"],Sm.fontSize600,Sm.lineHeightHeading),headingXL:Tl(["font-weight:normal;font-size:",";line-height:",";"],Sm.fontSize800,Sm.lineHeightHeading),headingXXL:Tl(["font-weight:normal;font-size:",";line-height:",";"],Sm.fontSize1000,Sm.lineHeightHeading)};function oh({children:t,direction:n="row",wrap:r="nowrap",justifyContent:o="flex-start",alignItems:i="stretch",gap:a,...c}){return e.createElement(ih,{direction:n,wrap:r,justifyContent:o,alignItems:i,gap:a,...c},t)}const ih=Ul.div.withConfig({shouldForwardProp:(e,t)=>!["direction","wrap"].includes(e)&&t(e)}).withConfig({displayName:"FlexStyled",componentId:"sc-120kp1z-19"})(["display:flex;flex-direction:",";flex-wrap:",";gap:",";justify-content:",";align-items:",";box-sizing:border-box;width:100%;height:100%;"],(e=>e.direction),(e=>e.wrap),(e=>Sm[`spacing${e.gap}`]),(e=>e.justifyContent),(e=>e.alignItems));function ah(e){if(!/^#([\da-f]{3}){1,2}$/i.test(e))throw new Error(`Invalid HEX to RGB conversion: ${e}`);let t,n,r;return 4===e.length?(t="0x"+e[1]+e[1],n="0x"+e[2]+e[2],r="0x"+e[3]+e[3]):7===e.length?(t="0x"+e[1]+e[2],n="0x"+e[3]+e[4],r="0x"+e[5]+e[6]):(t="",n="",r=""),`${Number(t)} ${Number(n)} ${Number(r)}`}const ch={"--white":"#ffffff","--white-rgb":ah("#ffffff"),"--gray1000":"#002233","--gray1000-rgb":ah("#002233"),"--gray900":"#1a3847","--gray800":"#334e5c","--gray700":"#4d6470","--gray600":"#667a85","--gray500":"#809199","--gray400":"#99a7ad","--gray300":"#b3bdc2","--gray200":"#ccd3d6","--gray100":"#e6e9eb","--gray75":"#ebedef","--gray50":"#f2f4f5","--gray25":"#f7f8f9","--gray10":"#ffffff","--blue1000":"#001f33","--blue900":"#003d66","--blue800":"#005c99","--blue700":"#007acc","--blue600":"#008ae6","--blue500":"#0099ff","--blue500-rgb":ah("#0099ff"),"--blue500a10":"rgb(var(--blue500-rgb) / 10%)","--blue400":"#1aa3ff","--blue300":"#33adff","--blue200":"#80ccff","--blue100":"#ccebff","--red400":"#f45225","--red500":"#f23e0d","--red500-rgb":ah("#f23e0d"),"--red500a10":"rgb(var(--red500-rgb) / 10%)","--red500a50":"rgb(var(--red500-rgb) / 50%)","--red600":"#da380b","--red700":"#c2320a","--yellow500":"#fea900","--yellow500-rgb":ah("#fea900"),"--yellow500a10":"rgb(var(--yellow500-rgb) / 10%)","--yellow600":"#e59800","--yellow700":"#cb8700","--green500":"#72d400","--purple1000":"#15122e","--purple900":"#1f1b44","--purple800":"#2a245c","--purple700":"#40378a","--purple600":"#5549b8","--purple500":"#6b5ce6","--purple400":"#978ced","--purple300":"#c3bdf5","--purple200":"#e1defa","--purple100":"#f7f6fd","--magenta1000":"#2e0d18","--magenta900":"#451424","--magenta800":"#5c1b30","--magenta700":"#8a2949","--magenta600":"#b83761","--magenta500":"#e6457a","--magenta400":"#eb6a94","--magenta300":"#f5b4c9","--magenta200":"#fad9e4","--magenta100":"#fdf5f8","--teal1000":"#062822","--teal900":"#0a3c32","--teal800":"#0d5144","--teal700":"#147a66","--teal600":"#1ba388","--teal500":"#22ccaa","--teal400":"#64dbc3","--teal300":"#a6eadd","--teal200":"#d2f4ee","--teal100":"#f3fcfa","--brandPrimary700":dh("brandPrimary700","#0087e0"),"--brandPrimary600":dh("brandPrimary600","#0095eb"),"--brandPrimary500":dh("brandPrimary500","#00aaff"),"--brandPrimary500-rgb":dh("brandPrimary500-rgb",ah("#00aaff")),"--brandPrimary300":dh("brandPrimary300","#b3e6ff"),"--brandPrimary100":dh("brandPrimary100","#e5f7ff"),"--spacing1":"2px","--spacing2":"4px","--spacing3":"8px","--spacing4":"12px","--spacing5":"16px","--spacing6":"24px","--spacing7":"32px","--spacing8":"40px","--spacing9":"48px","--layoutSpacing1":"16px","--layoutSpacing2":"24px","--layoutSpacing3":"32px","--layoutSpacing4":"48px","--layoutSpacing5":"64px","--layoutSpacing6":"96px","--layoutSpacing7":"160px","--radiusSmall":"2px","--radiusMedium":"5px","--radiusLarge":"8px","--radiusCircle":"50%","--radiusPill":"9999px","--radiusBase":"var(--radiusMedium)","--brandRadiusBase":"var(--radiusBase)","--fontStackBase":"Source Sans Pro, SourceSansPro, system-ui, sans-serif","--brandFontStackBase":"inherit","--fontSize25":"10px","--fontSize50":"12px","--fontSize75":"14px","--fontSize100":"16px","--fontSize200":"18px","--fontSize300":"20px","--fontSize400":"22px","--fontSize500":"25px","--fontSize600":"28px","--fontSize700":"32px","--fontSize800":"36px","--fontSize900":"40px","--fontSize1000":"45px","--fontSizeBase":"var(--fontSize100)","--lineHeightBase":"1.25","--lineHeightHeading":"1.25","--lineHeightText":"1.5","--gray900a":"rgb(var(--gray1000-rgb) / 90%)","--gray800a":"rgb(var(--gray1000-rgb) / 80%)","--gray700a":"rgb(var(--gray1000-rgb) / 70%)","--gray600a":"rgb(var(--gray1000-rgb) / 60%)","--gray500a":"rgb(var(--gray1000-rgb) / 50%)","--gray400a":"rgb(var(--gray1000-rgb) / 40%)","--gray300a":"rgb(var(--gray1000-rgb) / 30%)","--gray200a":"rgb(var(--gray1000-rgb) / 20%)","--gray100a":"rgb(var(--gray1000-rgb) / 10%)","--gray75a":"rgb(var(--gray1000-rgb) / 7%)","--gray50a":"rgb(var(--gray1000-rgb) / 5%)","--gray25a":"rgb(var(--gray1000-rgb) / 3%)","--colorText":"var(--gray800)","--colorTextMuted":"var(--gray600)","--colorTextDisabled":"var(--gray400)","--focusRingWidth":"2px","--focusRingColorPrimary":"var(--blue500)","--focusRingColorSecondary":"var(--gray200)","--colorShadow":"var(--gray100a)","--elevationStatic":"0 0 0 1px var(--colorShadow)","--elevation1":"0 1px 4px -1px var(--colorShadow)","--elevation2":"0 2px 4px -1px var(--colorShadow)","--elevation4":"0 4px 6px -2px var(--colorShadow)","--elevation8":"0 8px 12px -2px var(--colorShadow)","--elevation12":"0 12px 12px -2px var(--colorShadow)","--elevation16":"0 16px 12px -2px var(--colorShadow)","--elevation24":"0 24px 12px -2px var(--colorShadow)","--componentButtonPrimaryBorderHover":"var(--brandPrimary600)","--componentButtonPrimaryBorderActive":"var(--brandPrimary700)","--componentButtonPrimaryBorderFocus":"var(--brandPrimary500)","--componentButtonPrimaryBorderDisabled":"transparent","--componentButtonPrimaryColor":"var(--white)","--componentButtonPrimaryColorHover":"var(--white)","--componentButtonPrimaryColorActive":"var(--white)","--componentButtonPrimaryColorFocus":"var(--white)","--componentButtonPrimaryColorDisabled":"var(--white)","--componentButtonPrimaryFill":"var(--brandPrimary500)","--componentButtonPrimaryFillHover":"var(--brandPrimary600)","--componentButtonPrimaryFillActive":"var(--brandPrimary700)","--componentButtonPrimaryFillFocus":"var(--brandPrimary500)","--componentButtonPrimaryFillDisabled":"var(--brandPrimary300)","--componentButtonPrimaryFocusRing":"0 0 0 3px rgb(var(--brandPrimary500-rgb) / 30%)","--componentButtonSecondaryBorder":"var(--gray100)","--componentButtonSecondaryBorderHover":"var(--gray200)","--componentButtonSecondaryBorderActive":"var(--gray300)","--componentButtonSecondaryBorderFocus":"var(--gray300)","--componentButtonSecondaryBorderDisabled":"var(--gray50)","--componentButtonSecondaryColor":"var(--gray800)","--componentButtonSecondaryColorHover":"var(--gray800)","--componentButtonSecondaryColorActive":"var(--gray800)","--componentButtonSecondaryColorFocus":"var(--gray800)","--componentButtonSecondaryColorDisabled":"var(--gray300)","--componentButtonSecondaryFill":"var(--gray25)","--componentButtonSecondaryFillHover":"var(--gray50)","--componentButtonSecondaryFillActive":"var(--gray75)","--componentButtonSecondaryFillFocus":"var(--gray25)","--componentButtonSecondaryFillDisabled":"var(--gray25)","--componentButtonSecondaryFocusRing":"0 0 0 3px var(--gray50a)","--componentButtonCleanBorderFocus":"var(--gray200)","--componentButtonCleanBorderActive":"transparent","--componentButtonCleanColor":"var(--gray600)","--componentButtonCleanColorHover":"var(--gray900)","--componentButtonCleanColorActive":"var(--gray900)","--componentButtonCleanColorFocus":"var(--gray900)","--componentButtonCleanColorDisabled":"var(--gray300)","--componentButtonCleanFill":"transparent","--componentButtonCleanFillHover":"var(--gray25a)","--componentButtonCleanFillActive":"var(--gray50a)","--componentButtonCleanFillFocus":"var(--gray25a)","--componentButtonCleanFillDisabled":"transparent","--componentButtonCleanFocusRing":"0 0 0 3px var(--gray50a)","--componentButtonDangerBorderHover":"var(--red600)","--componentButtonDangerBorderActive":"var(--red700)","--componentButtonDangerBorderFocus":"var(--red500)","--componentButtonDangerBorderDisabled":"transparent","--componentButtonDangerColor":"var(--white)","--componentButtonDangerColorHover":"var(--white)","--componentButtonDangerColorActive":"var(--white)","--componentButtonDangerColorFocus":"var(--white)","--componentButtonDangerColorDisabled":"var(--white)","--componentButtonDangerFill":"var(--red500)","--componentButtonDangerFillHover":"var(--red600)","--componentButtonDangerFillActive":"var(--red700)","--componentButtonDangerFillFocus":"var(--red500)","--componentButtonDangerFillDisabled":"var(--red500a50)","--componentButtonDangerFocusRing":"0 0 0 3px rgb(var(--red500-rgb) / 30%)","--componentDividerColor":"var(--gray100a)","--componentCheckboxBorderUnchecked":"var(--gray300)","--componentCheckboxBorderUncheckedHover":"var(--gray500)","--componentCheckboxBorderUncheckedFocus":"var(--gray500)","--componentCheckboxFillDisabled":"var(--gray100)","--componentCheckboxCheckmarkColorDisabled":"var(--gray500)","--componentRadioBorderUnchecked":"var(--gray300)","--componentRadioFillDisabled":"var(--gray100)","--componentRadioCheckmarkColorDisabled":"var(--gray500)","--componentRadioBorderUncheckedHover":"var(--gray500)"},lh={"--gray1000":"#ffffff","--gray1000-rgb":ah("#ffffff"),"--gray900":"#e6e9eb","--gray800":"#ccd3d6","--gray700":"#b3bdc2","--gray600":"#99a7ad","--gray500":"#809199","--gray400":"#667a85","--gray300":"#4d6470","--gray200":"#334e5c","--gray100":"#1a3847","--gray75":"#123141","--gray50":"#0d2d3d","--gray25":"#082939","--gray10":"#002233","--componentDividerColor":"var(--gray100a)","--focusRingColorSecondary":"var(--gray200a)","--componentCheckboxBorderUnchecked":"var(--gray300a)","--componentCheckboxBorderUncheckedHover":"var(--gray500a)","--componentCheckboxBorderUncheckedFocus":"var(--gray500a)","--componentCheckboxFillDisabled":"var(--gray100a)","--componentCheckboxCheckmarkColorDisabled":"var(--gray500a)","--componentRadioBorderUnchecked":"var(--gray300a)","--componentRadioFillDisabled":"var(--gray100a)","--componentRadioCheckmarkColorDisabled":"var(--gray500a)","--componentRadioBorderUncheckedHover":"var(--gray500a)"},sh=$l(["",""],Tl([":root,:host,.",",.","{","}.","{","}"],"ds-light-theme","ds-dark-theme",uh(ch),"ds-dark-theme",uh(lh)));function uh(e){return Object.entries(e).map((e=>e.join(":"))).join(";")+";"}function dh(e,t){return`var(--user-${e}, var(--theme-${e}, ${t}))`}const ph={size:"24px",attr:{"aria-hidden":"true"},style:{verticalAlign:"middle"}},fh=e.createContext({zIndexBase:1031});function mh({children:t,noTheme:n,zIndexBase:o=1031,buttonVersion:i="modern"}){const a=r((()=>({zIndexBase:o})),[o]);return e.createElement(fh.Provider,{value:a},e.createElement(Fd.Provider,{value:ph},e.createElement(Gm.VersionProvider,{value:i},!n&&e.createElement(sh,null),t)))}const hh=["modal","dropdown","tooltip"];function gh(e){return o(fh).zIndexBase+hh.indexOf(e)}function vh({position:t="top-center",timing:r="instant",className:o,...c}){const[l,u]=function(e){var t=void 0===e?{}:e,r=t.delayEnter,o=void 0===r?0:r,c=t.delayLeave,l=void 0===c?0:c,u=t.hideOnScroll,d=void 0===u||u,p=n(!1),f=p[0],m=p[1],h=a(null),g=a(xf.IDLE),v=a(!1),y=s((function(){clearTimeout(h.current),h.current=null,g.current=xf.IDLE}),[]);function b(e,t){if(g.current===xf.ENTERING&&h.current&&y(),f){if(t)return m(!1),h.current=null,void(g.current=xf.IDLE);g.current=xf.LEAVING,h.current=window.setTimeout((function(){m(!1),h.current=null,g.current=xf.IDLE}),l)}}return i((function(){function e(){f&&d&&(y(),m(!1))}function t(){f&&(y(),m(!1))}return window.addEventListener("scroll",e,!0),window.addEventListener("touchend",t,!0),function(){window.removeEventListener("scroll",e,!0),window.removeEventListener("touchend",t,!0),h.current&&clearTimeout(h.current)}}),[f,d,y]),[f,{onMouseEnter:function(){g.current===xf.LEAVING&&h.current&&y(),f||(g.current=xf.ENTERING,h.current=window.setTimeout((function(){m(!0),h.current=null,g.current=xf.IDLE}),o))},onMouseLeave:b,onTouchStart:function(){v.current=!1},onTouchMove:function(){v.current=!0},onTouchEnd:function(){v.current||f||m(!0),v.current=!1}},function(){return b(0,!0)}]}({delayEnter:"delay"===r?800:0}),{isFocusVisible:d,focusProps:p}=zd(),f=gh("tooltip"),m=void 0===c.isOpen?l||d:c.isOpen,{triggerProps:h,layerProps:g,renderLayer:v}=Pf({isOpen:m,auto:!0,snap:!0,placement:yh(t),possiblePlacements:bh(t),triggerOffset:8,containerOffset:8}),y="icon"in c?e.createElement(oh,{alignItems:"center"},e.createElement(xh,null,c.icon)," ",c.content):"label"in c&&c.isLabelVertical?e.createElement("div",null,e.createElement(Ch,null,c.label),e.createElement("div",null,c.content)):"label"in c&&!c.isLabelVertical?e.createElement(e.Fragment,null,e.createElement(Eh,null,c.label)," ",c.content):c.content;return e.createElement(e.Fragment,null,"function"==typeof c.children?c.children({...h,...u,...p}):e.createElement("div",{...h,...u,...p},c.children),m&&v(e.createElement(wh,{...g,zIndex:f,className:o},y)))}function yh(e){return{"top-left":"top-start","top-center":"top-center","top-right":"top-end",left:"left-center",right:"right-center","bottom-left":"bottom-start","bottom-center":"bottom-center","bottom-right":"bottom-end"}[e]}function bh(e){const t=["top-center","bottom-center"],n=["left-center","right-center"],r=["top-end","top-start","bottom-end","bottom-start"];return{"top-left":r,"top-center":t,"top-right":r,left:n,right:n,"bottom-left":r,"bottom-center":t,"bottom-right":r}[e]}const wh=Ul.div.withConfig({displayName:"TooltipContainer",componentId:"sc-120kp1z-20"})([""," z-index:",";display:flex;max-width:240px;padding:calc("," / 2) ",";border-radius:",";background:",";color:",";word-break:break-word;"],rh.uiTextS,(e=>e.zIndex),Sm.spacing4,Sm.spacing4,Sm.radiusBase,Sm.gray900a,Sm.gray10),xh=Ul.span.withConfig({displayName:"IconContainer3",componentId:"sc-120kp1z-21"})(["display:flex;align-items:center;width:24px;height:24px;margin:-"," "," -"," -",";color:",";"],Sm.spacing1,Sm.spacing2,Sm.spacing1,Sm.spacing2,Sm.gray400),Eh=Ul.span.withConfig({displayName:"LabelContainer",componentId:"sc-120kp1z-22"})(["margin-right:",";color:",";"],Sm.spacing2,Sm.gray400),Ch=Ul.div.withConfig({displayName:"VerticalLabelContainer",componentId:"sc-120kp1z-23"})(["color:",";"],Sm.gray400);function kh({children:t,tooltipPosition:o="top-left"}){const[l,u]=n(!1),d=a(null);function p(){if(d.current){const e=d.current.offsetWidth<d.current.scrollWidth;u(e)}}return function(e){void 0===e&&(e={});var t=e.onResize,o=a(void 0);o.current=t;var c=e.round||Math.round,l=a(),u=n({width:void 0,height:void 0}),d=u[0],p=u[1],f=a(!1);i((function(){return f.current=!1,function(){f.current=!0}}),[]);var m=a({width:void 0,height:void 0}),h=function(e,t){var n=a(null),r=a(null);r.current=t;var o=a(null);i((function(){c()}));var c=s((function(){var t=o.current,i=r.current,a=t||(i?i instanceof Element?i:i.current:null);n.current&&n.current.element===a&&n.current.subscriber===e||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:a,subscriber:e,cleanup:a?e(a):void 0})}),[e]);return i((function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}}),[]),s((function(e){o.current=e,c()}),[c])}(s((function(t){return l.current&&l.current.box===e.box&&l.current.round===c||(l.current={box:e.box,round:c,instance:new ResizeObserver((function(t){var n=t[0],r="border-box"===e.box?"borderBoxSize":"device-pixel-content-box"===e.box?"devicePixelContentBoxSize":"contentBoxSize",i=Gp(n,r,"inlineSize"),a=Gp(n,r,"blockSize"),l=i?c(i):void 0,s=a?c(a):void 0;if(m.current.width!==l||m.current.height!==s){var u={width:l,height:s};m.current.width=l,m.current.height=s,o.current?o.current(u):f.current||p(u)}}))}),l.current.instance.observe(t,{box:e.box}),function(){l.current&&l.current.instance.unobserve(t)}}),[e.box,c]),e.ref);r((function(){return{ref:h,width:d.width,height:d.height}}),[h,d.width,d.height])}({ref:d,onResize:()=>{p()}}),c((()=>{p()}),[]),e.createElement(Sh,{ref:d},l?e.createElement(vh,{content:t,position:o,timing:"delay"},(n=>e.createElement("span",{...n},t))):t)}const Sh=Ul.span.withConfig({displayName:"StyledText",componentId:"sc-120kp1z-24"})(["display:block;overflow:hidden;min-width:0;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;"]),_h=Ul.div.withConfig({displayName:"HeaderStyled1",componentId:"sc-120kp1z-25"})(["display:grid;grid-template-areas:'thumbnail title icon' 'thumbnail detail icon';grid-template-columns:auto 1fr auto;padding:var(--card-content-padding);"]),Ih=Ul.div.withConfig({displayName:"ThumbnailContainer3",componentId:"sc-120kp1z-26"})(["grid-area:thumbnail;margin-top:2px;margin-right:",";"],Sm.spacing4),Th=Ul.div.withConfig({displayName:"Title4",componentId:"sc-120kp1z-27"})([""," grid-area:title;min-width:0;color:",";overflow-wrap:break-word;"],rh.uiTextM,Sm.gray800),Bh=Ul.div.withConfig({displayName:"Detail",componentId:"sc-120kp1z-28"})([""," grid-area:detail;min-width:0;margin-top:",";color:",";overflow-wrap:break-word;"],rh.uiTextS,Sm.spacing2,Sm.gray600),zh=Ul.div.withConfig({displayName:"IconContainer2",componentId:"sc-120kp1z-29"})(["z-index:2;display:grid;grid-area:icon;align-items:center;margin-left:",";color:",";"],Sm.spacing2,Sm.gray600),Ph=Ul.div.withConfig({displayName:"AdditionalInfoStyled",componentId:"sc-120kp1z-30"})([""," padding:",";border-top:1px solid ",";color:",";"],rh.uiTextS,(e=>"all"===e.padding?"var(--card-content-padding)":"0"),Sm.gray100a,Sm.colorText),Nh=u((({children:t,isDisabled:n=!1,isPressed:r=!1,tooltip:o,"aria-label":i,...a},c)=>{const{isFocusVisible:l,focusProps:s}=zd(),u=e.createElement(Dh,{disabled:n,type:"button",isFocusVisible:l,ref:c,isPressed:r,"aria-label":i,...s,...a},t);return o?e.createElement(vh,{timing:"delay",content:o},u):u})),Dh=Ul.button.withConfig({displayName:"ContextActionButtonStyled",componentId:"sc-120kp1z-31"})(["display:inline-flex;vertical-align:middle;flex-wrap:nowrap;justify-content:center;align-items:center;box-sizing:border-box;min-width:40px;height:32px;padding:0 ",";border:none;border-radius:",";background-color:transparent;box-shadow:0 0 0 1px ",";font-weight:400;font-style:normal;font-size:",";font-family:",";line-height:",";letter-spacing:normal;text-align:center;text-decoration:none;white-space:nowrap;cursor:pointer;fill:currentColor;transition-duration:0.1s;transition-property:background-color,border-color,box-shadow,color;",""],Sm.spacing3,Sm.brandRadiusBase,Sm.gray100a,Sm.fontSize75,Sm.brandFontStackBase,Sm.lineHeightBase,(e=>{const t=Tl(["background-color:",";color:",";box-shadow:0 0 0 1px ",";"],Sm.gray10,Sm.gray800,Sm.gray100a);return Tl(["background-color:rgb("," / 90%);color:",";"," &:hover{background-color:",";color:",";box-shadow:",",",";}&:active{","}&:disabled{background-color:rgb("," / 70%);color:",";box-shadow:0 0 0 1px ",";cursor:default;}"],Sm["white-rgb"],Sm.gray600a,e.isPressed&&t,Sm.gray10,Sm.gray800,Sm.elevation1,Sm.elevationStatic,t,Sm["white-rgb"],Sm.gray200a,Sm.gray100a)})),Oh=Ul.div.withConfig({displayName:"ImagesStyled",componentId:"sc-120kp1z-32"})(["display:grid;grid-template-rows:1fr 1fr;grid-template-columns:3fr 2fr;gap:",";min-height:10px;"],Sm.spacing1),Ah=Ul.img.withConfig({displayName:"ImgStyled",componentId:"sc-120kp1z-33"})(["object-fit:",";width:100%;height:100%;min-height:0;max-height:410px;&:nth-child(1){grid-row:1 / -1;grid-column:1;}&:nth-child(1):last-child{grid-column:span 2;}&:nth-child(2){grid-row:1;grid-column:2;}&:nth-child(2):last-child{grid-row:span 2;}&:nth-child(3){grid-row:2;grid-column:2;}"],(e=>"fill"===e.contentResize?"cover":"scale-down"));function Rh({children:t,...n}){return e.createElement(Lh,{...n},e.createElement(Fh,null,t))}const Lh=Ul.div.withConfig({displayName:"Placeholder1",componentId:"sc-120kp1z-34"})(["display:grid;place-items:center;min-height:100px;"]),Fh=Ul.div.withConfig({displayName:"IconContainer1",componentId:"sc-120kp1z-35"})(["display:grid;place-items:center;width:60px;height:70px;border-radius:",";background:",";color:",";"],Sm.brandRadiusBase,Sm.gray10,Sm.gray600);function Mh(e){return r((()=>e+"-"+Nf()),[e])}const jh=Ul.div.withConfig({displayName:"Placeholder",componentId:"sc-120kp1z-36"})(["display:flex;justify-content:center;align-items:center;min-height:100px;background:",";"],(e=>e.backgroundColor));function Hh({children:t,variant:n="outlined",isSelected:o=!1,contextAction:i,onClick:a,onSelect:c,as:l="button",href:s,to:u,selectButtonAriaLabel:d,...p}){const f=Mh("card-title"),m=r((()=>({variant:n,isSelected:o,cardTitleId:f})),[o,n,f]);return e.createElement(qm.Provider,{value:m},e.createElement(Uh,{variant:n,isSelected:o,...p},e.createElement(Vh,{as:l,to:u,href:"a"===l?s:void 0,type:"button"===l?"button":void 0,onClick:function(e){if(c&&(e.metaKey||e.ctrlKey||e.shiftKey))return c(e),void e.preventDefault();null==a||a(e)},"aria-labelledby":f},t),i?e.createElement(Wh,null,i):null,c?e.createElement($h,{type:"button",isSelected:o,onClick:c,"aria-label":d},e.createElement(Fp,null)):null))}Hh.Frame=function({children:t,progressBar:n,badge:r,icon:o,isCheckeredBackground:i=!1,height:a="fixed",...c}){const{variant:l,isSelected:s}=Km();return e.createElement(Xm,{isCheckeredBackground:i,height:a,...c},"clean"===l&&s&&e.createElement(Zm,null),e.createElement(Jm,{height:a},t),e.createElement(Qm,null),n?e.createElement(nh,null,n):null,r?e.createElement(eh,null,e.createElement(_m,{color:"black-alpha"},r)):null,o?e.createElement(th,null,o):null)},Hh.Header=function({thumbnail:t,title:n,detail:r,icon:o,isNotTruncated:i=!1,...a}){const{cardTitleId:c}=Km();return e.createElement(_h,{...a},t?e.createElement(Ih,null,t):null,e.createElement(Th,{id:c},i?n:e.createElement(kh,null,n)),r?e.createElement(Bh,null,i?r:e.createElement(kh,null,r)):null,o?e.createElement(zh,null,o):null)},Hh.AdditionalInfo=function({children:t,padding:n="all",...r}){return e.createElement(Ph,{padding:n,...r},t)},Hh.ContextActionButton=Nh,Hh.Images=function({children:t,...n}){return e.createElement(Oh,{...n},t)},Hh.Img=function({src:t,contentResize:n="fill",alt:r="",...o}){return e.createElement(Ah,{src:t,alt:r,contentResize:n,...o})},Hh.FilePlaceholder=Rh,Hh.PlaceholderIcon=Rh,Hh.IconPlaceholder=function({children:t,backgroundColor:n=Sm.gray25,iconColor:r=Sm.gray400a,...o}){const i=e.useMemo((()=>({color:r,size:"48px",attr:{"aria-hidden":"true"},style:{verticalAlign:"middle"}})),[r]);return e.createElement(jh,{...o,backgroundColor:n},e.createElement(Fd.Provider,{value:i},t))};const Uh=Ul.div.withConfig({displayName:"Container7",componentId:"sc-120kp1z-37"})(["--card-border-radius:",";--card-inner-border-color:",";--card-inner-border-width:1px;--card-selected-border-color:var(--userComponentCardSelectedColor,",");--card-selected-border-width:2px;--card-elevation:",";--card-frame-overlay-color:transparent;--card-actions-opacity:0;&:hover{--card-frame-overlay-color:",";--card-actions-opacity:1;}&:focus-within{--card-actions-opacity:1;}"," position:relative;box-sizing:border-box;min-width:224px;border-radius:var(--card-border-radius);background:",";box-shadow:var(--card-box-shadow);"],Sm.radiusBase,Sm.gray100a,Sm.brandPrimary500,Sm.elevation1,Sm.gray100a,(e=>"outlined"===e.variant?Tl(["--card-frame-border-radius:var(--card-border-radius) var(--card-border-radius) 0 0;--card-box-shadow:var(--card-elevation),inset 0 0 0 var(--card-inner-border-width) var(--card-inner-border-color);--card-frame-border-bottom-width:0;--card-content-padding:"," ",";&:hover{--card-inner-border-color:",";--card-elevation:",";}",""],Sm.spacing4,Sm.spacing5,Sm.gray200a,Sm.elevation2,e.isSelected?Tl(["--card-inner-border-width:var(--card-selected-border-width);--card-inner-border-color:var(--card-selected-border-color);&:hover{--card-inner-border-color:var(--card-selected-border-color);}"]):""):Tl(["--card-frame-border-radius:var(--card-border-radius);--card-box-shadow:none;--card-frame-border-bottom-width:1px;--card-content-padding:"," 0;"],Sm.spacing3)),Sm.gray10),Vh=Ul.button.withConfig({displayName:"MainAction",componentId:"sc-120kp1z-38"})(["display:block;box-sizing:border-box;width:100%;padding:0;border:none;background:none;font:inherit;text-align:left;text-decoration:none;cursor:pointer;"]),$h=Ul.button.withConfig({displayName:"SelectButton",componentId:"sc-120kp1z-39"})(["position:absolute;top:",";right:",";z-index:2;display:grid;place-items:center;box-sizing:border-box;width:32px;height:32px;padding:0;border:2px solid rgb(var(--white-rgb) / 80%);border-radius:",";background:none;color:transparent;opacity:",";cursor:pointer;&:hover{border-color:",";}&:active{border-width:3px;border-color:",";}",""],Sm.spacing4,Sm.spacing4,Sm.radiusCircle,(e=>e.isSelected?"1":"var(--card-actions-opacity)"),Sm.white,Sm.white,(e=>e.isSelected&&Tl(["border:none;background:var(--userComponentCardSelectedColor,",");color:",";&:hover{background:var(--userComponentCardSelectedColorHover,",");box-shadow:",";}&:active{background:var(--userComponentCardSelectedColorActive,",");box-shadow:none;}"],Sm.brandPrimary500,Sm.white,Sm.brandPrimary600,Sm.elevation1,Sm.brandPrimary700))),Wh=Ul.div.withConfig({displayName:"ActionContainer",componentId:"sc-120kp1z-40"})(["position:absolute;top:",";left:",";z-index:2;opacity:var(--card-actions-opacity);"],Sm.spacing4,Sm.spacing4);function Yh(){return e.createElement("svg",{width:"12",height:"12",viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M1.793 5.621a1 1 0 000 1.415l2.121 2.12a.995.995 0 00.773.292.996.996 0 00.641-.291l4.95-4.95a1 1 0 00-1.414-1.414L4.621 7.036 3.207 5.62a1 1 0 00-1.414 0z"}))}function Gh({isChecked:t=!1,isDisabled:n=!1,isIndeterminate:r=!1,inputProps:o,children:i,onChange:a=(()=>{}),id:c,...l}){const{isFocusVisible:s,focusProps:u}=zd();return e.createElement(qh,{isIndeterminate:r,isDisabled:n,isChecked:t,className:"ds-checkbox__pointer-events-wrapper",...l},e.createElement(Zh,{type:"checkbox",ref:e=>{e&&(e.indeterminate=r)},"aria-checked":r?"mixed":t,disabled:n,checked:t,onChange:a,id:c,...u,...o}),e.createElement(Kh,null,e.createElement(Xh,{isFocusVisible:s,isIndeterminate:r,isDisabled:n,isChecked:t},t&&e.createElement(Yh,null),r&&e.createElement(Jh,null))),i&&e.createElement(Qh,{isDisabled:n},i))}Gh.pointerEventsClassname="ds-checkbox__pointer-events-wrapper";const qh=Ul.label.withConfig({displayName:"Container6",componentId:"sc-120kp1z-41"})([""," display:flex;align-items:flex-start;margin:0;padding:"," 0;cursor:",";user-select:none;"],rh.uiTextM,Sm.spacing1,(e=>!e.isDisabled&&"pointer")),Kh=Ul.div.withConfig({displayName:"IndicatorPosition1",componentId:"sc-120kp1z-42"})(["display:flex;flex:none;align-items:center;&::before{content:'';}"]),Xh=Ul.div.withConfig({displayName:"Indicator3",componentId:"sc-120kp1z-43"})(["position:relative;display:flex;justify-content:center;align-items:center;box-sizing:border-box;width:16px;height:16px;border:2px solid ",";border-radius:",";background-color:transparent;&::before{content:'';position:absolute;top:-5px;right:-5px;bottom:-5px;left:-5px;border:"," solid transparent;border-radius:calc( "," + 3px );}"," "," "," "," ",":hover &,",":focus-visible &{"," background-color:",";}"],Sm.componentCheckboxBorderUnchecked,Sm.radiusMedium,Sm.focusRingWidth,Sm.radiusMedium,(e=>e.isFocusVisible&&Tl(["border-color:",";&::before{border-color:",";}"],Sm.componentCheckboxBorderUncheckedFocus,e.isChecked||e.isIndeterminate?Sm.focusRingColorPrimary:Sm.focusRingColorSecondary)),(e=>e.isChecked&&Tl(["border-color:transparent;background-color:",";fill:#fff;"],Sm.blue500)),(e=>e.isIndeterminate&&Tl(["border-color:transparent;background-color:",";"],Sm.blue500)),(e=>e.isDisabled&&Tl(["border-color:transparent;background-color:",";fill:",";"],Sm.componentCheckboxFillDisabled,Sm.componentCheckboxCheckmarkColorDisabled)),".ds-checkbox__pointer-events-wrapper",".ds-checkbox__pointer-events-wrapper",(e=>!e.isChecked&&!e.isIndeterminate&&!e.isDisabled&&`border-color: ${Sm.componentCheckboxBorderUncheckedHover};`),(e=>!e.isChecked&&!e.isIndeterminate||e.isDisabled?void 0:Sm.blue600)),Zh=Ul.input.withConfig({displayName:"Input2",componentId:"sc-120kp1z-44"})(["position:absolute;overflow:hidden;clip:rect(0,0,0,0);width:1px;height:1px;margin:0 -1px -1px 0;padding:0;border:0;white-space:nowrap;clip-path:inset(50%);"]),Jh=Ul.div.withConfig({displayName:"IndeterminateMark",componentId:"sc-120kp1z-45"})(["width:8px;height:2px;border-radius:",";background-color:",";"],Sm.radiusPill,Sm.white),Qh=Ul.div.withConfig({displayName:"Label4",componentId:"sc-120kp1z-46"})(["display:block;margin-left:8px;color:",";"],(e=>e.isDisabled?Sm.gray400:Sm.colorText)),eg=t(void 0);function tg(e){if(!o(eg))throw new Error(`<Form.${e}> cannot be rendered outside the <Form.Group> component`)}const ng=Ul.div.withConfig({displayName:"GroupStyled",componentId:"sc-120kp1z-47"})(["margin:0;padding:"," 0;border:0;"],Sm.spacing3),rg=Ul.div.withConfig({displayName:"HelperTextStyled",componentId:"sc-120kp1z-48"})([""," display:flex;align-items:center;margin-top:",";padding-top:",";color:",";"],rh.uiTextS,Sm.spacing2,(e=>e.hasIcon?"2px":"0"),(e=>e.isInvalid?Sm.red500:Sm.gray600)),og=Ul.div.withConfig({displayName:"Icon3",componentId:"sc-120kp1z-49"})(["flex:none;align-self:flex-start;margin-top:-2px;margin-right:",";"],Sm.spacing2),ig=Ul.label.withConfig({displayName:"LabelStyled",componentId:"sc-120kp1z-50"})([""," display:block;margin:0 0 ",";padding:0;border:none;color:",";"],rh.uiTextM,Sm.spacing3,Sm.colorText),ag=Ul.span.withConfig({displayName:"SecondaryText",componentId:"sc-120kp1z-51"})(["color:",";"],Sm.gray600),cg=Ul.span.withConfig({displayName:"Space",componentId:"sc-120kp1z-52"})(["display:inline-block;width:",";"],Sm.spacing3),lg=Ul.div.withConfig({displayName:"RowStyled",componentId:"sc-120kp1z-53"})(["display:grid;grid-template-columns:repeat(auto-fit,minmax(10px,1fr));gap:",";"],Sm.spacing4),sg=Ul.div.withConfig({displayName:"InputRowStyled",componentId:"sc-120kp1z-54"})(["display:flex;& > *{min-width:min-content;&:not(:first-child){margin-left:",";}}"],Sm.spacing4);function ug({children:t,onSubmit:n,...r}){return e.createElement("form",{onSubmit:n,...r},t)}ug.Group=function({children:t,...n}){return e.createElement(eg.Provider,{value:"group"},e.createElement(ng,{...n},t))},ug.HelperText=function({icon:t,isInvalid:n,children:r,...o}){return tg("HelperText"),e.createElement(rg,{isInvalid:n,hasIcon:Boolean(t),...o},t&&e.createElement(og,null,t),r)},ug.Label=function({children:t,secondaryText:n,htmlFor:r,id:o,...i}){return tg("Label"),e.createElement(ig,{htmlFor:r,id:o,...i},t,n?e.createElement(ag,null,e.createElement(cg,null," "),n):null)},ug.Row=function({children:t,...n}){return e.createElement(lg,{...n},t)},ug.InputRow=function({children:t,...n}){return tg("InputRow"),e.createElement(sg,{...n},t)},ug.IconError=function(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}}]})(e)},Ul.ul.withConfig({displayName:"List1",componentId:"sc-120kp1z-55"})(["margin:0;padding:0;list-style:none;"]),Ul.li.withConfig({displayName:"Item5",componentId:"sc-120kp1z-56"})(["&:not(:last-child){margin-bottom:",";}"],Sm.spacing2);const dg=Ul.span.withConfig({displayName:"DeleteButton",componentId:"sc-120kp1z-57"})(["display:flex;justify-content:center;align-items:center;width:24px;height:24px;margin:0 calc("," * -1) 0 ",";padding:0;border:0;border-radius:",";background:none;color:",";outline:0;cursor:pointer;&:hover{background:",";color:",";}&:active{background:",";}"],Sm.spacing3,Sm.spacing3,Sm.radiusCircle,(e=>e.isDisabled?Sm.gray400:Sm.gray600),Sm.gray50a,Sm.gray800,Sm.gray100a);Ul.button.withConfig({displayName:"ChipStyled",componentId:"sc-120kp1z-58"})(["display:inline-flex;align-items:center;border:0;border-radius:",";background-color:",";color:",";outline:none;font-family:",";white-space:nowrap;",";",";",";",";",";"],Sm.radiusPill,Sm.gray50,Sm.gray800,Sm.brandFontStackBase,(e=>e.onClick&&Tl(["cursor:pointer;&:hover{background-color:",";","{color:",";}}&:active{background-color:",";}"],Sm.gray75,dg,Sm.gray800,Sm.gray100)),(e=>e.isFocusVisible&&Tl(["background:",";box-shadow:inset ",";outline:0;"],Sm.gray25,Sm.elevationStatic)),(e=>"m"===e.size&&mg),(e=>"s"===e.size&&fg),(e=>e.isDisabled&&hg));const pg=Ul.div.withConfig({displayName:"ThumbnailContainer2",componentId:"sc-120kp1z-59"})(["display:block;"]),fg=Tl([""," height:32px;padding:0 12px;","{margin:0 "," 0 calc("," * -1);}"],rh.uiTextS,pg,Sm.spacing3,Sm.spacing3),mg=Tl([""," height:40px;padding:0 16px;","{margin:0 "," 0 calc("," * -1);}"],rh.uiTextM,pg,Sm.spacing3,Sm.spacing4),hg=Tl(["background-color:",";color:",";pointer-events:none;"],Sm.gray25,Sm.gray400);function gg({direction:t="horizontal",...n}){return"horizontal"===t?e.createElement(vg,{...n}):e.createElement(yg,{role:"separator",...n})}Ul.div.withConfig({displayName:"IconContainer",componentId:"sc-120kp1z-60"})(["width:24px;height:24px;margin-left:calc("," * -1);padding:0 "," 0 0;"],Sm.spacing2,Sm.spacing3);const vg=Ul.hr.withConfig({displayName:"HorizontalDivider",componentId:"sc-120kp1z-61"})(["box-sizing:content-box;height:1px;margin:0;padding:"," 0;border:none;background:",";background-clip:content-box;"],Sm.spacing3,Sm.componentDividerColor),yg=Ul.div.withConfig({displayName:"VerticalDivider",componentId:"sc-120kp1z-62"})(["box-sizing:content-box;width:1px;margin:0;padding:0 ",";background:",";background-clip:content-box;"],Sm.spacing2,Sm.componentDividerColor);function bg(e,t){i((()=>{function n(n){n.key===e&&t(n)}return window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}}),[t,e])}const wg=Ul.div.withConfig({displayName:"ArrowStyled",componentId:"sc-120kp1z-63"})(["margin-right:calc("," * -1);margin-left:calc("," * -1);"],Sm.spacing2,Sm.spacing2),xg=t(null);function Eg(){const e=o(xg);if(!e)throw new Error("Dropdown compound components cannot be rendered outside the Dropdown component");return e}function Cg(...e){return t=>{for(const n of e)n&&("function"==typeof n?n(t):n.current=t)}}const kg=t(void 0),Sg=u((({children:t,...n},r)=>{const c=gh("dropdown"),l=a(null),{dispatch:s}=Eg(),u=o(kg);return i((()=>()=>{s({type:"purge-menu-items",payload:u})}),[t,s,u]),e.createElement(_g,{role:"menu",ref:Cg(r,l),zIndex:c,...n},t)})),_g=Ul.div.withConfig({displayName:"ContainerStyled",componentId:"sc-120kp1z-64"})(["z-index:",";overflow-y:auto;box-sizing:border-box;min-width:224px;max-width:336px;max-height:calc(36px * 9.5 + ",");padding:"," 0;border-radius:",";background:",";color:",";box-shadow:",",",";&:empty{display:none;}"],(e=>e.zIndex),Sm.spacing3,Sm.spacing3,Sm.radiusBase,Sm.gray10,Sm.colorText,Sm.elevationStatic,Sm.elevation2);function Ig({children:t,isChecked:n,isDisabled:r,inputProps:o,onChange:i=(()=>{}),...a}){const{isFocusVisible:c,focusProps:l}=zd();return e.createElement(Tg,{isDisabled:r,className:"ds-switch__pointer-events-wrapper",...a},t&&e.createElement(Bg,null,t),e.createElement(zg,null,e.createElement(Pg,null,e.createElement("input",{role:"switch",type:"checkbox",disabled:r,onChange:i,checked:n,"aria-checked":n,...l,...o}),e.createElement(Ng,{"aria-hidden":"true",isDisabled:r,isFocusVisible:c}))))}Ig.pointerEventsClassname="ds-switch__pointer-events-wrapper";const Tg=Ul.label.withConfig({displayName:"SwitchStyled",componentId:"sc-120kp1z-65"})([""," display:flex;align-items:baseline;margin:0;padding:"," 0;color:",";cursor:",";user-select:none;"],rh.uiTextM,Sm.spacing1,Sm.gray800,(e=>!e.isDisabled&&"pointer")),Bg=Ul.span.withConfig({displayName:"Label2",componentId:"sc-120kp1z-66"})(["align-self:center;margin-right:",";"],Sm.spacing4),zg=Ul.span.withConfig({displayName:"ToggleAlignment",componentId:"sc-120kp1z-67"})(["margin-left:auto;&::before{content:'\\200B';display:inline-block;vertical-align:middle;}"]),Pg=Ul.span.withConfig({displayName:"Toggle",componentId:"sc-120kp1z-68"})(["position:relative;display:inline-block;vertical-align:middle;width:36px;height:22px;input{position:absolute;opacity:0;}"]),Ng=Ul.span.withConfig({displayName:"Indicator2",componentId:"sc-120kp1z-69"})(["position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box;width:100%;height:100%;border-radius:",";background:",";cursor:",";transition:0.2s;&::before{content:'';position:absolute;right:calc(100% - 20px);bottom:2px;left:2px;height:18px;border-radius:50%;background-color:",";box-shadow:",";transition:0.2s;}"," input:checked + &{background-color:",";opacity:",";&::before{right:2px;left:calc(100% - 20px);background-color:",";}}"," ",":hover &,",":focus-visible &{background-color:",";}",":hover input:checked + &,",":focus-visible input:checked + &{background-color:",";}",""],Sm.radiusPill,(e=>e.isDisabled?Sm.gray100:Sm.gray75),(e=>!e.isDisabled&&"pointer"),(e=>e.isDisabled?Sm.gray50:Sm.gray10),Sm.elevation2,Pg,(e=>e.isDisabled?Sm.gray400:Sm.blue500),(e=>e.isDisabled?"0.5":"1"),(e=>e.isDisabled?Sm.gray100:Sm.gray10),(e=>!e.isDisabled&&Tl(["",":active input + &::before{right:calc(100% - 24px);left:2px;border-radius:9px;}",":active input:checked + &::before{right:2px;left:calc(100% - 24px);}"],".ds-switch__pointer-events-wrapper",".ds-switch__pointer-events-wrapper")),".ds-switch__pointer-events-wrapper",".ds-switch__pointer-events-wrapper",Sm.gray100,".ds-switch__pointer-events-wrapper",".ds-switch__pointer-events-wrapper",(e=>e.isDisabled?Sm.gray400:Sm.blue600),(e=>e.isFocusVisible&&Tl([""," input + &{background-color:",";&::after{content:'';position:absolute;top:-3px;right:-3px;bottom:-3px;left:-3px;border:2px solid ",";border-radius:100px;}}"," input:checked + &::after{border-color:",";}"],Pg,Sm.gray100,Sm.gray200,Pg,Sm.blue500))),Dg=Ul.div.withConfig({displayName:"ItemWrapper1",componentId:"sc-120kp1z-70"})(["position:relative;"]),Og=Ul.button.withConfig({displayName:"ItemStyled1",componentId:"sc-120kp1z-71"})([""," display:flex;align-items:center;box-sizing:border-box;width:100%;height:36px;margin:0;padding:0 ",";border:none;background:none;color:",";outline:none;font-family:",";cursor:pointer;"," "," &:hover{background:",";color:",";}&:active{background:",";color:",";}&:disabled{background:none;color:",";cursor:default;}"],rh.uiTextS,Sm.spacing5,(e=>e.isChecked?Sm.gray800:Sm.gray600),Sm.brandFontStackBase,(e=>e.isSubmenuOpen&&Tl(["background:",";color:",";"],Sm.gray25,Sm.gray800)),(e=>e.isHighlighted&&Tl(["background:",";color:",";"],Sm.gray50,Sm.gray800)),Sm.gray25,Sm.gray800,Sm.gray50,Sm.gray800,Sm.gray400),Ag=Ul.span.withConfig({displayName:"CheckboxContainer1",componentId:"sc-120kp1z-72"})(["display:flex;flex:none;justify-content:center;align-items:center;width:24px;height:24px;margin-right:",";"],Sm.spacing3),Rg=Ul.span.withConfig({displayName:"Icon2",componentId:"sc-120kp1z-73"})(["display:flex;flex:none;justify-content:center;align-items:center;width:24px;height:24px;margin-right:",";"],Sm.spacing3),Lg=Ul.span.withConfig({displayName:"Label1",componentId:"sc-120kp1z-74"})(["flex:1;overflow:hidden;min-width:0;text-align:left;text-overflow:ellipsis;white-space:nowrap;"]),Fg=Ul.span.withConfig({displayName:"RightContainer",componentId:"sc-120kp1z-75"})(["flex:none;margin:0 ",";&:last-child{margin-right:calc("," * -1);}"],Sm.spacing3,Sm.spacing2),Mg=Ul.span.withConfig({displayName:"SubmenuIconContainer",componentId:"sc-120kp1z-76"})(["flex:none;margin-right:calc("," * -1);margin-left:",";color:",";",":hover,",":active{color:",";}"],Sm.spacing3,Sm.spacing3,(e=>e.isActive?Sm.gray400:Sm.gray200),Og,Og,Sm.gray400),jg=Ul(Sg).withConfig({displayName:"SubMenuContainer",componentId:"sc-120kp1z-77"})(["margin-top:calc("," * -1);"],Sm.spacing3),Hg=Ul.div.withConfig({displayName:"SectionTitleStyled",componentId:"sc-120kp1z-78"})([""," overflow:hidden;padding:"," "," ",";color:",";text-overflow:ellipsis;white-space:nowrap;"],rh.uiTextS,Sm.spacing4,Sm.spacing5,Sm.spacing3,Sm.gray800);function Ug(e){return{"bottom-left":{placement:"bottom-start",preferX:"left",preferY:"bottom",possiblePlacements:["bottom-start","top-start"]},"bottom-right":{placement:"bottom-end",preferX:"right",preferY:"bottom",possiblePlacements:["bottom-end","top-end"]},bottom:{placement:"bottom-start",preferX:"left",preferY:"bottom",possiblePlacements:["bottom-start","top-start"]},"top-left":{placement:"top-start",preferX:"left",preferY:"top",possiblePlacements:["top-start","bottom-start"]},"top-right":{placement:"top-end",preferX:"right",preferY:"top",possiblePlacements:["top-end","bottom-end"]},"right-center":{placement:"right-center",possiblePlacements:["right-center"]},"left-center":{placement:"left-center",possiblePlacements:["left-center"]}}[e]}const Vg={isOpen:!1,isOpenedWithKeyboard:!1,items:[],highlightedItemId:"",hasSearch:!1,keepHighlight:!1};function $g(e,t){if("open"===t.type)return{...e,isOpen:!0};if("close"===t.type)return{...Vg};if("toggle"===t.type)return{...Vg,isOpen:!e.isOpen};if("toggle-from-keyboard"===t.type)return{...Vg,isOpen:!e.isOpen,isOpenedWithKeyboard:!e.isOpen};if("highlight-current-item"===t.type){const t=e.items.find((e=>e.isSelected));return e.hasSearch&&t?{...e,highlightedItemId:t.id}:e.isOpenedWithKeyboard&&e.items.length?{...e,highlightedItemId:e.items[0].id}:e}if("highlight-item"===t.type)return{...e,highlightedItemId:t.payload,keepHighlight:!0};if("highlight-previous"===t.type){var n;if(0===e.items.length)return e;const t=null===(n=e.items.find((t=>t.id===e.highlightedItemId)))||void 0===n?void 0:n.parentId,r=e.items.filter((e=>e.parentId===t&&!e.isDisabled)),o=r.findIndex((t=>t.id===e.highlightedItemId)),i=0===o,a=r.length-1,c=-1===o||i?r[a].id:r[o-1].id;return{...e,highlightedItemId:c}}if("highlight-next"===t.type){var r;if(0===e.items.length)return e;const t=null===(r=e.items.find((t=>t.id===e.highlightedItemId)))||void 0===r?void 0:r.parentId,n=e.items.filter((e=>e.parentId===t&&!e.isDisabled)),o=n.findIndex((t=>t.id===e.highlightedItemId)),i=o===n.length-1,a=-1===o||i?n[0].id:n[o+1].id;return{...e,highlightedItemId:a}}if("highlight-submenu"===t.type){const t=e.highlightedItemId,n=e.items.find((e=>e.parentId===t));return{...e,highlightedItemId:n.id}}if("add-item"===t.type){const n=t.payload;return e.items.find((e=>e.id===n.id))?e:{...e,items:[...e.items,n]}}if("purge-menu-items"===t.type){const n=t.payload,r=e.items.filter((e=>e.parentId!==n));return{...e,items:r,highlightedItemId:e.keepHighlight?e.highlightedItemId:"",keepHighlight:!1}}return"keep-highlight"===t.type?{...e,keepHighlight:!0}:"set-search-presence"===t.type?{...e,hasSearch:!0}:void function(e,t){throw new Error("Unexpected action: "+t)}(0,t)}const Wg=Ul.span.withConfig({displayName:"Text2",componentId:"sc-120kp1z-79"})(["width:100%;min-width:0;text-align:left;"]),Yg=Ul.div.withConfig({displayName:"InputWrapper",componentId:"sc-120kp1z-80"})([""," display:flex;align-items:center;box-sizing:border-box;width:100%;height:var(--ds-input-height);padding:0 var(--ds-input-side-padding);border:1px solid ",";border-radius:",";background:",";&:hover{border-color:",";box-shadow:",";}&:focus-within{border-color:",";box-shadow:0 0 0 3px ",";}",";",";"],(e=>e.isSmall?Tl(["--ds-input-height:32px;--ds-input-side-padding:12px;--ds-input-icons-gap:4px;"]):Tl(["--ds-input-height:40px;--ds-input-side-padding:16px;--ds-input-icons-gap:8px;"])),(e=>e.isInvalid?Sm.red500:Sm.gray100),Sm.radiusMedium,Sm.gray10,(e=>e.isInvalid?Sm.red600:Sm.gray200),Sm.elevation1,(e=>e.isInvalid?Sm.red500:Sm.gray300),Sm.gray100,(e=>e.isDisabled&&Tl(["border-color:",";background:",";color:",";cursor:not-allowed;&:hover{border-color:",";box-shadow:none;}"],Sm.gray100,Sm.gray25,Sm.gray600,Sm.gray100)),(e=>"clean"===e.variant&&Tl(["border-color:transparent;box-shadow:none;&:hover{border-color:transparent;background:",";box-shadow:none;}&:focus-within{border-color:transparent;background:",";box-shadow:none;}"],Sm.gray25a,Sm.gray50a))),Gg=Ul.input.withConfig({displayName:"InputStyled",componentId:"sc-120kp1z-81"})(["&&&{flex:1;min-width:0;height:100%;margin:0;padding:0;border:0;background:transparent;color:",";box-shadow:none;outline:none;font-family:",";"," &::-webkit-inner-spin-button,&::-webkit-outer-spin-button{display:none;margin:0;appearance:none;}&[type='number']{appearance:textfield;}&::placeholder{color:",";}&:disabled{color:",";cursor:not-allowed;&::placeholder{color:",";}}}"],Sm.colorText,Sm.brandFontStackBase,rh.uiTextM,Sm.gray400,Sm.gray600,Sm.gray400),qg=Ul.div.withConfig({displayName:"IconLeftContainer",componentId:"sc-120kp1z-82"})(["flex:none;margin-right:var(--ds-input-icons-gap);margin-left:calc("," * -1);color:",";"],Sm.spacing2,Sm.gray600),Kg=Ul.div.withConfig({displayName:"RightItems",componentId:"sc-120kp1z-83"})(["flex:none;margin-right:-4px;margin-left:var(--ds-input-icons-gap);"]),Xg=Ul.div.withConfig({displayName:"IconRightContainer",componentId:"sc-120kp1z-84"})(["display:grid;flex:none;align-items:center;color:",";"],Sm.gray600),Zg=Ul.button.withConfig({displayName:"ClearButton",componentId:"sc-120kp1z-85"})(["flex:none;padding:0;border:none;background:transparent;color:",";cursor:pointer;&:hover,&:focus{color:",";outline:none;}&:active{color:",";}"],Sm.gray200a,Sm.gray300a,Sm.gray400a);function Jg({icon:t,onClick:n,isTooltipShown:r=!1,label:o,isDisabled:i=!1,...a}){const{isFocusVisible:c,focusProps:l}=zd();return r?e.createElement(vh,{content:o,isOpen:!!c||void 0},(r=>e.createElement(Qg,{...a,...r,...l,onClick:n,disabled:i,type:"button","aria-label":o,isFocusVisible:c},t))):e.createElement(Qg,{...a,...l,onClick:n,disabled:i,type:"button","aria-label":o,isFocusVisible:c},t)}const Qg=Ul.button.withConfig({displayName:"InteractiveIconWrapper",componentId:"sc-120kp1z-86"})(["width:24px;height:24px;padding:0;border:none;background:transparent;color:",";cursor:pointer;&:hover,&:active{color:",";}&:disabled{color:",";cursor:not-allowed;}",""],Sm.gray600,Sm.gray800,Sm.gray200,(e=>e.isFocusVisible&&Tl(["border-radius:2px;color:",";box-shadow:0 0 0 2px ",";outline:none;"],Sm.gray800,Sm.gray200))),ev=u((({hasClearButton:t=!1,icon:r,iconRight:o,id:i,name:c,isDisabled:l=!1,isReadOnly:s=!1,isInvalid:u=!1,isSmall:d=!1,onBlur:p,onChange:f,onFocus:m,onKeyDown:h,placeholder:g,type:v="text",value:y,variant:b="outlined","aria-label":w,"aria-labelledby":x,"aria-describedby":E,inputRef:C,maxLength:k,...S},_)=>{const[I,T]=n(!1),B=a(null),z=C||B,P=t&&y.length>0&&"number"!==v&&"password"!==v,N="password"===v?I?"text":"password":v;function D(){var e;null==z||null===(e=z.current)||void 0===e||e.focus()}const O="password"===v,A=!O&&(P||o)||O;return e.createElement(Yg,{...S,isDisabled:l,isInvalid:u,isSmall:d,onClick:D,ref:_,variant:b},r&&e.createElement(qg,null,r),e.createElement(Gg,{autoComplete:"off",autoCorrect:"off",disabled:l,isDisabled:l,readOnly:s,onBlur:p,onChange:function(e){const t=e.currentTarget.value;null==f||f(t)},onFocus:m,onKeyDown:h,placeholder:g,ref:z,spellCheck:!1,type:N,value:y,"aria-label":w,"aria-labelledby":x,"aria-describedby":E,id:i,name:c,maxLength:k}),A&&e.createElement(Kg,null,e.createElement(oh,{gap:d?"2":"3"},O&&e.createElement(Jg,{"data-testid":"ds-input-password-visibility-button",onClick:()=>(T((e=>!e)),void D()),label:I?"Hide password":"Show password",icon:I?e.createElement(op,null):e.createElement(rp,null),isTooltipShown:!0}),P&&e.createElement(Zg,{"data-testid":"ds-input-clear-button",onClick:function(){null==f||f(""),D()},type:"button"},e.createElement(Lp,null)),o&&e.createElement(Xg,null,o))))})),tv=Ul.div.withConfig({displayName:"Container4",componentId:"sc-120kp1z-87"})(["--container-top-padding-compensation:calc("," * -1);position:sticky;top:var(--container-top-padding-compensation);z-index:1;box-sizing:content-box;height:40px;margin-top:var(--container-top-padding-compensation);padding:",";background:linear-gradient(180deg,#fff 22.4%,rgb(255 255 255 / 0) 100%);"],Sm.spacing3,Sm.spacing4),nv=Ul.div.withConfig({displayName:"Inner",componentId:"sc-120kp1z-88"})(["position:absolute;top:",";right:",";left:",";"],Sm.spacing4,Sm.spacing4,Sm.spacing4),rv=Ul.div.withConfig({displayName:"TextStyled",componentId:"sc-120kp1z-89"})([""," padding:"," ",";color:",";"],(e=>"item"===e.fontSize?rh.uiTextS:rh.uiTextM),Sm.spacing3,Sm.spacing5,Sm.gray400);const ov=Ul.div.withConfig({displayName:"ConcealedActionStyled",componentId:"sc-120kp1z-90"})(["opacity:",";&:focus-within{opacity:1;}"],(e=>e.isVisible?"1":"var(--list-item-concealead-action-opacity, 0)")),iv=Ul.div.withConfig({displayName:"Header1",componentId:"sc-120kp1z-91"})(["display:flex;justify-content:space-between;align-items:center;padding:"," 0 ",";"],Sm.spacing3,Sm.spacing2),av="ds-thumbnail__pointer-events-wrapper",cv=Ul.div.withConfig({displayName:"OverlayStyled",componentId:"sc-120kp1z-92"})(["position:absolute;top:0;left:0;display:grid;place-items:center;width:100%;height:100%;border-radius:var(--ds-thumbnail-border-radius);background:",";color:",";-webkit-mask-image:var(--ds-thumbnail-indicator-cutoff);",""],Sm.gray200a,Sm.gray10,(e=>e.isConcealed&&Tl(["opacity:0;",":hover &,",":focus-visible &{opacity:1;}"],"."+av,"."+av))),lv=e.createContext({indicator:"none",setIndicator:()=>null}),sv={square:{state:{l:{radius:8,offset:[4,4]},m:{radius:8,offset:[4,4]},s:{radius:8,offset:[4,4]},xs:{radius:8,offset:[7,7]}},status:{l:{radius:5,offset:[1,1]},m:{radius:5,offset:[1,1]},s:{radius:5,offset:[1,1]},xs:{radius:3,offset:[1,1]}}},circle:{state:{l:{radius:8,offset:[0,0]},m:{radius:8,offset:[2,2]},s:{radius:8,offset:[4,4]},xs:{radius:8,offset:[9,5]}},status:{l:{radius:5,offset:[-5,-5]},m:{radius:5,offset:[-1,-1]},s:{radius:5,offset:[1,1]},xs:{radius:3,offset:[-1,-1]}}}},uv=Ul.svg.withConfig({displayName:"SvgIcon",componentId:"sc-120kp1z-93"})(["position:absolute;right:calc(var(--ds-thumbnail-indicator-offset-x) * -1);bottom:calc(var(--ds-thumbnail-indicator-offset-y) * -1);overflow:visible;width:calc(var(--ds-thumbnail-indicator-radius) * 2);height:calc(var(--ds-thumbnail-indicator-radius) * 2);"]),dv={draft:function(){return e.createElement(uv,{viewBox:"0 0 24 24","aria-hidden":"true",fill:Sm.gray400},e.createElement("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}),e.createElement("path",{d:"M 7.5 10.5 C 6.671875 10.5 6 11.171875 6 12 C 6 12.828125 6.671875 13.5 7.5 13.5 C 8.328125 13.5 9 12.828125 9 12 C 9 11.171875 8.328125 10.5 7.5 10.5 Z M 10.5 12 C 10.5 11.171875 11.171875 10.5 12 10.5 C 12.828125 10.5 13.5 11.171875 13.5 12 C 13.5 12.828125 12.828125 13.5 12 13.5 C 11.171875 13.5 10.5 12.828125 10.5 12 Z M 15 12 C 15 11.171875 15.671875 10.5 16.5 10.5 C 17.328125 10.5 18 11.171875 18 12 C 18 12.828125 17.328125 13.5 16.5 13.5 C 15.671875 13.5 15 12.828125 15 12 Z M 15 12 ",fill:"white"}))},error:function(){return e.createElement(uv,{viewBox:"0 0 24 24","aria-hidden":"true",fill:Sm.red400},e.createElement("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}),e.createElement("path",{d:"M 13.5 4.5 L 10.5 4.5 L 10.5 13.5 L 13.5 13.5 Z M 13.5 4.5 ",fill:"white"}),e.createElement("path",{d:"M 13.5 16.5 L 10.5 16.5 L 10.5 19.5 L 13.5 19.5 Z M 13.5 16.5 ",fill:"white"}))},loading:function(){return e.createElement(uv,{viewBox:"0 0 14 14","aria-hidden":"true",fill:Sm.gray400},e.createElement(fv,{cx:"7",cy:"7",r:"5",fill:"transparent",strokeWidth:"2"}))},negative:function(){return e.createElement(uv,{viewBox:"0 0 24 24","aria-hidden":"true",fill:Sm.red400},e.createElement("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}),e.createElement("path",{d:"M 17.304688 6.695312 C 16.71875 6.109375 15.769531 6.109375 15.183594 6.695312 L 12 9.878906 L 8.816406 6.695312 C 8.230469 6.109375 7.28125 6.109375 6.695312 6.695312 C 6.109375 7.28125 6.109375 8.230469 6.695312 8.816406 L 9.878906 12 L 6.695312 15.183594 C 6.109375 15.769531 6.109375 16.71875 6.695312 17.304688 C 7.28125 17.890625 8.230469 17.890625 8.816406 17.304688 L 12 14.121094 L 15.183594 17.304688 C 15.769531 17.890625 16.71875 17.890625 17.304688 17.304688 C 17.890625 16.71875 17.890625 15.769531 17.304688 15.183594 L 14.121094 12 L 17.304688 8.816406 C 17.890625 8.230469 17.890625 7.28125 17.304688 6.695312 Z M 17.304688 6.695312",fill:"white"}))},positive:function(){return e.createElement(uv,{viewBox:"0 0 24 24","aria-hidden":"true",fill:Sm.teal500},e.createElement("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}),e.createElement("path",{d:"m5.69215,11.43763c-0.58607,0.58607 -0.58607,1.53629 0,2.12236l3.18355,3.18363c0.21978,0.21971 0.49077,0.35703 0.77456,0.41195c0.12714,0.02461 0.25685,0.03272 0.38568,0.02431c0.35044,-0.02311 0.69432,-0.16853 0.96216,-0.43627l7.42831,-7.42836c0.58604,-0.58608 0.58604,-1.53629 0,-2.12238c-0.58604,-0.58607 -1.53631,-0.58607 -2.12235,0l-6.36715,6.36712l-2.12238,-2.12238c-0.58608,-0.58608 -1.53629,-0.58608 -2.12238,0z",fill:"white"}))}},pv=Wl(["0%{transform:rotate(0deg);stroke-dashoffset:6.6;}50%{transform:rotate(720deg);stroke-dashoffset:31.4;}100%{transform:rotate(1080deg);stroke-dashoffset:6.6;}"]),fv=Ul.circle.withConfig({displayName:"SvgSpinner",componentId:"sc-120kp1z-94"})(["--spinner-radius:10;--spinner-circumference:calc(2 * var(--spinner-radius) * 3.1415927);stroke:",";transform-origin:center;animation:"," 2s linear infinite;stroke-dasharray:31.4;stroke-linecap:round;"],(e=>e.color||Sm.gray400),pv),mv={online:function(){return e.createElement(uv,{viewBox:"0 0 24 24","aria-hidden":"true",fill:Sm.teal500},e.createElement("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}))},offline:function(){return e.createElement(uv,{viewBox:"0 0 24 24","aria-hidden":"true",fill:Sm.gray400},e.createElement("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}))},inactive:function(){return e.createElement(uv,{viewBox:"0 0 24 24","aria-hidden":"true",fill:"transparent"},e.createElement("circle",{cx:"12",cy:"12",r:"9",stroke:Sm.gray400,strokeWidth:"4"}))}};function hv({size:t="m",shape:o="square",variant:i="clean",icon:a,imageUrl:c,backgroundColor:l,iconColor:s,children:u,...d}){const p="content"===i,f="clean"===i;let m;m=l?Sm[l]||l:f?Sm.gray50a:l||c?"transparent":Sm.white;const h=f?Sm[s]||s||Sm.gray600:void 0,[g,v]=n("none"),y=r((()=>({indicator:g,setIndicator:v})),[g]);return e.createElement(lv.Provider,{value:y},e.createElement(gv,{size:t,shape:o,hasCheckers:p,indicator:g,className:av,...d},e.createElement(yv,{iconColor:h,backgroundColor:m,imageUrl:c,size:t,"data-testid":"thumbnail-fill"},a,p&&!l&&!c&&e.createElement(wv,{"data-testid":"thumbnail-no-image-line"})),p&&e.createElement(bv,{"data-testid":"thumbnail-inner-shadow"}),u))}hv.Overlay=function({children:t,isConcealed:n=!1,isLoading:r=!1,...o}){return e.createElement(cv,{isConcealed:n,...o},r?e.createElement(Fm,null):t)},hv.pointerEventsClassname=av,hv.Indicator=function({type:t}){const{setIndicator:n}=o(lv),r=dv[t];return i((()=>(n("state"),()=>n("none"))),[n]),e.createElement(r,null)},hv.Status=function({type:t}){const{setIndicator:n}=o(lv),r=mv[t];return i((()=>(n("status"),()=>n("none"))),[n]),e.createElement(r,null)};const gv=Ul.div.withConfig({shouldForwardProp:(e,t)=>!["shape"].includes(e)&&t(e)}).withConfig({displayName:"ThumbnailContainer1",componentId:"sc-120kp1z-95"})(["--ds-thumbnail-border-radius:",";position:relative;border-radius:var(--ds-thumbnail-border-radius);"," "," ",""],(e=>"circle"===e.shape?Sm.radiusCircle:Sm.brandRadiusBase),(e=>e.hasCheckers&&Tl(["background:url(\"data:image/svg+xml,%3Csvg width='8' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Crect height='8' width='8' y='0' x='0' fill='%23ffffff'/%3E%3Crect height='4' width='4' y='0' x='0' fill='%23e9ecee'/%3E%3Crect height='4' width='4' y='4' x='4' fill='%23e9ecee'/%3E%3C/svg%3E%0A\");"])),(e=>{const t={xs:"24px",s:"32px",m:"40px",l:"64px"}[e.size];return Tl(["width:",";height:",";"],t,t)}),(e=>{if("none"===e.indicator)return;const{radius:t,offset:n}=sv[e.shape][e.indicator][e.size];return Tl(["--ds-thumbnail-indicator-offset-x:","px;--ds-thumbnail-indicator-offset-y:","px;--ds-thumbnail-indicator-radius:","px;--ds-thumbnail-indicator-cutoff:-webkit-radial-gradient( calc( 100% - ( var(--ds-thumbnail-indicator-radius) - var(--ds-thumbnail-indicator-offset-x) ) ) calc( 100% - ( var(--ds-thumbnail-indicator-radius) - var(--ds-thumbnail-indicator-offset-y) ) ),circle,transparent calc(var(--ds-thumbnail-indicator-radius) + ","px),black 0 );"],n[0],n[1],t,2)})),vv={xs:Sm.fontSize100,s:Sm.fontSize200,m:Sm.fontSize500,l:Sm.fontSize500},yv=Ul.div.withConfig({displayName:"Fill1",componentId:"sc-120kp1z-96"})(["display:flex;justify-content:center;align-items:center;width:100%;height:100%;border-radius:var(--ds-thumbnail-border-radius);background:50% 50% no-repeat;background-color:",";background-image:",";background-size:cover;color:",";font-weight:600;font-size:",";line-height:1;text-indent:1px;-webkit-mask-image:var(--ds-thumbnail-indicator-cutoff);"],(e=>e.backgroundColor),(e=>e.imageUrl?`url(${e.imageUrl}) `:void 0),(e=>e.iconColor),(e=>vv[e.size])),bv=Ul.div.withConfig({displayName:"InnerShadow",componentId:"sc-120kp1z-97"})(["position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border:1px solid ",";border-radius:var(--ds-thumbnail-border-radius);-webkit-mask-image:var(--ds-thumbnail-indicator-cutoff);"],Sm.gray100a),wv=Ul.div.withConfig({displayName:"NoImage",componentId:"sc-120kp1z-98"})(["width:80%;height:2px;border-radius:2px;background:",";transform:rotate(-45deg);"],Sm.red500),xv=t({isDragging:!1,dragIndicator:null}),Ev=u((({children:t,subtext:n,thumbnail:r,rightElements:i,onClick:a,isDisabled:c=!1,isSelected:l=!1,checkedVariant:s,isChecked:u=!1,...d},p)=>{const f=Mh("list-item-label"),{isFocusVisible:m,focusProps:h}=zd(),g=o(xv),v=e.useRef(null),y=[Gh.pointerEventsClassname,Ig.pointerEventsClassname,hv.pointerEventsClassname].join(" "),b="function"==typeof a,w=b&&!c;return e.createElement(Cv,{isDragging:(null==g?void 0:g.isDragging)??!1,isSelected:l,isActive:b,tabIndex:w?0:void 0,onClick:w?a:void 0,onKeyDown:e=>{"function"!=typeof a||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),a())},isDisabled:c,className:y,isFocusVisible:m,ref:p,...d,...h},"checkbox"===s&&e.createElement(kv,{onClick:e=>{e.stopPropagation()},onKeyDown:e=>{e.stopPropagation()}},e.createElement(Gh,{isChecked:u,isDisabled:c,"aria-labelledby":f,onChange:a})),r&&e.createElement(Sv,{isDisabled:c},r),e.createElement(_v,{id:f},e.createElement(kh,null,t),n?e.createElement(Iv,{isDisabled:c},e.createElement(kh,null,n)):null),(i||(null==g?void 0:g.dragIndicator))&&e.createElement(Tv,{ref:v,onClick:e=>{var t;(null==v||null===(t=v.current)||void 0===t?void 0:t.querySelectorAll("a, button").length)&&e.stopPropagation()},onKeyDown:e=>{e.stopPropagation()}},e.createElement(oh,{alignItems:"center",gap:"3"},i,null==g?void 0:g.dragIndicator)),"switch"===s&&e.createElement(Tv,{onClick:e=>{e.stopPropagation()},onKeyDown:e=>{e.stopPropagation()}},e.createElement(Ig,{isChecked:u,isDisabled:c,"aria-labelledby":f,onChange:a})))})),Cv=Ul.div.withConfig({displayName:"ItemStyled",componentId:"sc-120kp1z-99"})(["--list-item-right-elements-color:",";display:flex;align-items:center;margin-right:calc("," * -1);margin-left:calc("," * -1);padding:"," ",";border-radius:var(--ds-list-item-border-radius-override,",");&:hover{--list-item-concealead-action-opacity:1;}"," "," ",""],Sm.gray200,Sm.spacing4,Sm.spacing4,Sm.spacing3,Sm.spacing4,Sm.radiusLarge,(e=>e.isActive&&Tl(["--list-item-right-elements-color:",";outline:none;cursor:pointer;&:hover{--list-item-right-elements-color:",";background:",";}"," &:active{background:",";box-shadow:none;}",""],Sm.gray200,Sm.gray600,Sm.gray25,e.isFocusVisible&&Tl(["--list-item-right-elements-color:",";background:",";&,&:hover{box-shadow:var( --ds-list-item-focus-ring-override,inset 0 0 0 2px ",",inset 0 0 0 4px "," );}"],Sm.gray600,Sm.gray25,Sm.gray50,Sm.gray10),Sm.gray50,e.isDisabled&&Tl(["--list-item-right-elements-color:",";color:",";pointer-events:none;"],Sm.gray200,Sm.gray200))),(e=>e.isSelected&&Tl(["--list-item-right-elements-color:",";&,&:hover{background:",";}"],Sm.gray600,Sm.gray50)),(e=>e.isDragging&&Tl(["--list-item-right-elements-color:",";background:",";box-shadow:",";cursor:grabbing;"],Sm.gray600,Sm.gray25,Sm.elevation4))),kv=Ul.div.withConfig({displayName:"CheckboxContainer",componentId:"sc-120kp1z-100"})(["flex:none;margin-right:",";"],Sm.spacing4),Sv=Ul.div.withConfig({displayName:"ThumbnailContainer",componentId:"sc-120kp1z-101"})(["flex:none;margin-right:",";",""],Sm.spacing4,(e=>e.isDisabled&&"opacity: 50%;")),_v=Ul.div.withConfig({displayName:"Content2",componentId:"sc-120kp1z-102"})([""," flex:1;min-width:0;"],rh.uiTextM),Iv=Ul.div.withConfig({displayName:"Subtext1",componentId:"sc-120kp1z-103"})([""," color:",";"],rh.uiTextS,(e=>e.isDisabled?Sm.gray200:Sm.gray600)),Tv=Ul.div.withConfig({displayName:"RightElements",componentId:"sc-120kp1z-104"})(["flex:none;margin-left:",";color:var(--list-item-right-elements-color);"],Sm.spacing4);function Bv({children:t,isContained:n=!1,...r}){return e.createElement(zv,{isContained:n,...r},t)}Bv.Group=function({title:t,action:n,children:r,...o}){const i=Mh("list-group-header");return e.createElement("div",{...o},e.createElement(iv,null,e.createElement("span",{id:i},t),n),e.createElement("div",{"aria-describedby":i},r))},Bv.Item=Ev,Bv.Divider=gg,Bv.ConcealedAction=function(t){return e.createElement(ov,{...t})};const zv=Ul.div.withConfig({displayName:"ListStyled",componentId:"sc-120kp1z-105"})(["padding:",";"],(e=>e.isContained?`0 ${Sm.spacing5}`:`${Sm.spacing3} 0`)),Pv=Ul.div.withConfig({displayName:"ItemWrapper",componentId:"sc-120kp1z-106"})(["--ds-list-item-border-radius-override:0;--ds-list-item-focus-ring-override:none;padding:0 ",";"],Sm.spacing4);function Nv(e){return!!e&&e.getRootNode()instanceof ShadowRoot}function Dv(e){if(!e||!Nv(e))return;const t=null==e?void 0:e.getRootNode();return Array.from(t.children).find((e=>"STYLE"!==e.tagName))}function Ov({children:t,trigger:n,position:o="bottom-left",isClosedOnScroll:c=!1,isKeepingFocusOnTrigger:l=!1,containerRef:u,onOpen:d,onClose:f,...m}){const[h,g]=p($g,Vg),v=a(!0),y=a(),b=Mh("dropdown-menu");var w,x;i((()=>{v.current?v.current=!1:h.isOpen?(g({type:"highlight-current-item"}),null==d||d()):null==f||f()}),[h.isOpen]),w=h.highlightedItemId,x=h.hasSearch,i((()=>{if(!w)return;const e=document.querySelector("#"+w);if(e){const t=e.closest('[role="menu"');t&&(function(e,t,n){const{top:r,bottom:o,height:i}=e.getBoundingClientRect(),a=t.getBoundingClientRect(),c=n?64:0;return!(r>=a.bottom-i||o<=a.top+c+i)}(e,t,x)||e.scrollIntoView(!1))}}),[w,x]);const E=s((()=>{var e;h.isOpen&&(g({type:"close"}),null==y||null===(e=y.current)||void 0===e||e.focus())}),[h.isOpen]);i((()=>{function e(){E()}if(c&&h.isOpen)return document.addEventListener("scroll",e),()=>{document.removeEventListener("scroll",e)}}),[c,E,h.isOpen]),bg("Tab",(()=>{h.isOpen&&E()})),bg("Escape",(()=>{h.isOpen&&E()})),bg("Enter",(e=>{var t;h.isOpen&&h.highlightedItemId&&(null===(t=document.querySelector("#"+h.highlightedItemId))||void 0===t||t.click(),e.preventDefault())})),bg("ArrowDown",(e=>{h.isOpen&&(g({type:"highlight-next"}),e.preventDefault())})),bg("ArrowUp",(e=>{h.isOpen&&(g({type:"highlight-previous"}),e.preventDefault())}));const C=r((()=>({dispatch:g,close:E,highlightedItemId:h.highlightedItemId,hasSearch:h.hasSearch,isKeepingFocusOnTrigger:l,menuId:b})),[E,l,h.hasSearch,h.highlightedItemId,b]),{renderLayer:k,triggerProps:{ref:S},layerProps:_,triggerBounds:I}=Pf({isOpen:h.isOpen,onOutsideClick:Nv(y.current)?void 0:()=>g({type:"close"}),onDisappear:e=>{"full"===e&&g({type:"close"})},triggerOffset:4,containerOffset:16,auto:!0,container:Dv(y.current),...Ug(o)}),T="bottom"===o?{width:null==I?void 0:I.width,minWidth:"initial",maxWidth:"initial"}:{};return e.createElement(xg.Provider,{value:C},e.createElement("div",{...m},n({isOpen:h.isOpen,onClick:()=>{g({type:"toggle"})},"aria-haspopup":!0,"aria-expanded":h.isOpen,"aria-controls":b,onKeyDown:function(e){" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),g({type:"toggle-from-keyboard"}))},ref:af(S,y)},{open:()=>{g({type:"open"})},close:()=>{g({type:"close"})}}),h.isOpen&&k(e.createElement(Sg,{id:b,..._,ref:af(_.ref,u),style:{..._.style,...T}},t))))}function Av({attr:t,title:n,size:r,children:i,color:a,style:c,...l}){const s=o(Fd),u=r||s.size,d={...s.attr,...t};return e.createElement("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...d,...l,style:{color:a,...s.style,...c},height:u,width:u,xmlns:"http://www.w3.org/2000/svg"},n&&e.createElement("title",null,n),i)}function Rv({label:t,labelSecondaryText:n,helperText:r,helperTextIcon:o,id:i,name:a,isInvalid:c,hasClearButton:l,icon:s,iconRight:u,inputRef:d,isDisabled:p,isReadOnly:f,isSmall:m,maxLength:h,onBlur:g,onChange:v,onFocus:y,onKeyDown:b,placeholder:w,type:x,value:E,variant:C,...k}){const S=Mh("input"),_=i||S,I=Mh("helper-text");return e.createElement(ug.Group,{...k},e.createElement(ug.Label,{secondaryText:n,htmlFor:_},t),e.createElement(ev,{hasClearButton:l,icon:s,iconRight:u,inputRef:d,isDisabled:p,isReadOnly:f,isInvalid:c,isSmall:m,maxLength:h,onBlur:g,onChange:v,onFocus:y,onKeyDown:b,placeholder:w,type:x,value:E,variant:C,id:_,name:a,"aria-describedby":r?I:void 0}),r?e.createElement(ug.HelperText,{icon:o,isInvalid:c,id:I},r):null)}Ov.Divider=gg,Ov.Item=function({children:t,isDisabled:r,icon:a,checkedVariant:c="checkmark",isChecked:l=!1,badge:s,onClick:u,submenu:d,role:p,...f}){const[m,h]=n(!1),[g,v]=n(!1),y=Mh("dropdown-item"),b=Mh("dropdown-item-label"),w=Mh("dropdown-submenu"),x=Boolean(d),{dispatch:E,...C}=Eg(),k=C.highlightedItemId===y,S=o(kg),{isFocusVisible:_,focusProps:I}=zd(),{hoverProps:T}=ed({onHoverStart:()=>{x&&h(!0)},onHoverEnd:()=>{x&&h(!1)}}),B=m&&x,{triggerProps:z,layerProps:P,renderLayer:N}=Pf({isOpen:B,auto:!0,placement:"right-start",possiblePlacements:["right-end","right-start","left-start","left-end"],triggerOffset:-4,onParentClose:()=>{}});i((()=>{E({type:"add-item",payload:{id:y,parentId:S,isDisabled:r,isSelected:"checkmark"===c?l:void 0}})})),i((()=>{g&&E({type:"highlight-submenu"})}),[E,g]),i((()=>{var e;C.hasSearch||C.isKeepingFocusOnTrigger||k&&(null===(e=document.querySelector("#"+y))||void 0===e||e.focus())}),[C.hasSearch,C.isKeepingFocusOnTrigger,y,k]),bg("ArrowLeft",(e=>{x&&g&&(E({type:"highlight-item",payload:y}),h(!1),v(!1),e.preventDefault())})),bg("ArrowRight",(e=>{k&&x&&(h(!0),v(!0),e.preventDefault())}));const D=function(e){return"checkbox"===e?Gh.pointerEventsClassname:"switch"===e?Ig.pointerEventsClassname:""}(c),O=function(e,t,n){return e||("checkbox"===t||"switch"===t?"menuitemcheckbox":"checkmark"===t&&n?"menuitemradio":"menuitem")}(p,c,l),A="menuitemcheckbox"===O||"menuitemradio"===O?l:void 0,R=x?{"aria-haspopup":!0,"aria-expanded":m,"aria-controls":w}:{};function L(e){null==u||u(e),x||("menuitemcheckbox"!==O?C.close():E({type:"keep-highlight"}))}return e.createElement(kg.Provider,{value:y},e.createElement(Dg,{...T,...z,onClick:e=>e.stopPropagation()},e.createElement(Og,{disabled:r,"aria-disabled":r,isChecked:l,"aria-checked":A,"aria-selected":C.hasSearch||C.isKeepingFocusOnTrigger?k:void 0,role:O,onClick:L,tabIndex:-1,id:y,onKeyDown:function(e){x&&(" "!==e.key&&"Enter"!==e.key||(null==u||u(e),h((e=>{const t=!e;return v(t),t})),e.preventDefault()))},isHighlighted:k||_,isSubmenuOpen:m,className:D,...R,...I,...f},"checkbox"===c&&e.createElement(Ag,{onClick:e=>e.stopPropagation()},e.createElement(Gh,{isChecked:l,isDisabled:r,"aria-labelledby":b,onChange:L})),a&&e.createElement(Rg,null,a),e.createElement(Lg,{id:b},t),"checkmark"===c&&l&&e.createElement(Fg,null,e.createElement(Fp,null)),s&&e.createElement(Fg,null,s),"switch"===c&&e.createElement(Fg,{onClick:e=>e.stopPropagation()},e.createElement(Ig,{isChecked:l,isDisabled:r,"aria-labelledby":b,onChange:L})),x&&e.createElement(Mg,{isActive:m||_||k},e.createElement(jp,null))),B&&N(e.createElement(jg,{id:w,...P},d))))},Ov.ListItem=function({children:t,isDisabled:n,isChecked:r=!1,onClick:o,role:a="menuitem",rightElements:c,...l}){const s=Mh("dropdown-item"),{dispatch:u,...d}=Eg(),p=d.highlightedItemId===s;i((()=>{u({type:"add-item",payload:{id:s,parentId:void 0,isDisabled:n,isSelected:r}})})),i((()=>{var e;d.hasSearch||d.isKeepingFocusOnTrigger||p&&(null===(e=document.querySelector("#"+s))||void 0===e||e.focus())}),[d.hasSearch,d.isKeepingFocusOnTrigger,s,p]);const f=r?e.createElement(Fp,{color:Sm.gray800}):null;return e.createElement(Pv,{onClick:e=>e.stopPropagation()},e.createElement(Bv.Item,{isSelected:p,isDisabled:n,onClick:function(){null==o||o(),d.close()},"aria-disabled":n,"aria-checked":"menuitemradio"===a?r:void 0,"aria-selected":d.hasSearch||d.isKeepingFocusOnTrigger?p:void 0,role:a,rightElements:c?e.createElement(e.Fragment,null,c,f):f,id:s,...l},t))},Ov.SectionTitle=function({children:t,...n}){return e.createElement(Hg,{...n},t)},Ov.Arrow=function(t){return e.createElement(wg,{...t},e.createElement(Rp,null))},Ov.SelectButtonText=function({children:t,...n}){return e.createElement(Wg,{...n},e.createElement(kh,null,t))},Ov.SearchInput=function({onChange:t,...n}){const r=a(null),{dispatch:o}=Eg(),{menuId:c}=Eg();return i((()=>{var e;null===(e=r.current)||void 0===e||e.focus()}),[]),i((()=>{o({type:"set-search-presence"})}),[o]),e.createElement(tv,null,e.createElement(nv,null,e.createElement(ev,{inputRef:r,hasClearButton:!0,icon:e.createElement(ep,null),onChange:function(e){var n,r;null===(n=document.querySelector(`#${c}`))||void 0===n||null===(r=n.scrollTo)||void 0===r||r.call(n,{top:0}),t(e)},...n})))},Ov.Text=function({fontSize:t="item",children:n,...r}){return e.createElement(rv,{fontSize:t,...r},n)},Ul.div.withConfig({displayName:"EmptyStateStyled",componentId:"sc-120kp1z-107"})(["display:grid;grid-template-columns:minmax(10px,472px);justify-content:center;justify-items:center;text-align:center;"]),Ul.p.withConfig({displayName:"Image1",componentId:"sc-120kp1z-108"})(["display:grid;place-items:center;width:128px;height:128px;margin:0 0 ",";border-radius:",";background:",";color:",";"],Sm.spacing5,Sm.radiusCircle,Sm.gray25,Sm.gray400),Ul.h2.withConfig({displayName:"Title3",componentId:"sc-120kp1z-109"})([""," margin:0 0 ",";color:",";"],rh.headingM,Sm.spacing4,Sm.gray800),Ul.p.withConfig({displayName:"Description1",componentId:"sc-120kp1z-110"})([""," margin:0;color:",";"],rh.paragraphM,Sm.gray600),Ul.p.withConfig({displayName:"Actions",componentId:"sc-120kp1z-111"})(["display:flex;gap:",";justify-content:center;margin:"," 0 0;"],Sm.spacing4,Sm.spacing6),Ul.div.withConfig({displayName:"InlineBannerStyled",componentId:"sc-120kp1z-112"})([""," display:flex;align-items:flex-start;padding:"," ",";border-radius:",";background:var(--background-color);"],(e=>"info"===e.variant?Tl(["--background-color:",";--icon-color:",";--link-color:",";--link-color-hover:",";"],Sm.blue500a10,Sm.blue500,Sm.blue600,Sm.blue700):"warning"===e.variant?Tl(["--background-color:",";--icon-color:",";--link-color:",";--link-color-hover:",";"],Sm.yellow500a10,Sm.yellow500,Sm.yellow600,Sm.yellow700):"error"===e.variant?Tl(["--background-color:",";--icon-color:",";--link-color:",";--link-color-hover:",";"],Sm.red500a10,Sm.red500,Sm.red600,Sm.red700):Tl(["--background-color:",";--icon-color:",";--link-color:",";--link-color-hover:",";"],Sm.gray50,Sm.gray500,Sm.blue600,Sm.blue700)),Sm.spacing4,Sm.spacing4,Sm.radiusMedium),Ul.div.withConfig({displayName:"IconHolder",componentId:"sc-120kp1z-113"})(["display:flex;width:24px;height:24px;margin-right:",";color:var(--icon-color);"],Sm.spacing3),Ul.div.withConfig({displayName:"TitleHolder",componentId:"sc-120kp1z-114"})([""," margin-bottom:",";color:",";"],rh.uiTextM,Sm.spacing2,Sm.gray1000),Ul.div.withConfig({displayName:"DescriptionHolder",componentId:"sc-120kp1z-115"})([""," color:",";line-height:",";"],rh.uiTextS,Sm.gray800,Sm.layoutSpacing2),Ul.div.withConfig({displayName:"LinkHolder",componentId:"sc-120kp1z-116"})([""," margin-top:",";a{color:var(--link-color);text-decoration:none;}a:hover{color:var(--link-color-hover);}a:focus-visible{border-radius:2px;box-shadow:0 0 0 2px ",";outline:none;}"],rh.uiTextS,Sm.spacing2,Sm.blue500),Ul.div.withConfig({displayName:"StyledItemWrapper",componentId:"sc-120kp1z-117"})(["position:relative;user-select:none;"," ",""],(e=>"after"===e.insertPosition&&Tl(["&::after{content:'';position:absolute;bottom:",";z-index:1;width:100%;height:",";background-color:",";}"],e.isDividerShown?"-10px":"0","2px",Sm.blue300)),(e=>"before"===e.insertPosition&&Tl(["&::before{content:'';position:absolute;top:",";z-index:1;width:100%;height:",";background-color:",";}"],e.isDividerShown?"-10px":"0","2px",Sm.blue300))),Ul.div.withConfig({displayName:"ShadowItem",componentId:"sc-120kp1z-118"})(["position:absolute;top:0;box-sizing:content-box;width:100%;height:100%;margin-right:calc("," * -1);margin-left:calc("," * -1);padding-right:",";padding-left:",";border-radius:",";background-color:",";"],Sm.spacing4,Sm.spacing4,Sm.spacing4,Sm.spacing4,Sm.radiusLarge,Sm.gray50),Ul.div.withConfig({displayName:"StyledDragIndicator",componentId:"sc-120kp1z-119"})(["cursor:",";"],(e=>e.isDragging?"grabbing":"grab"));const Lv=$l((e=>Tl(["@keyframes ","{0%{opacity:0;}100%{opacity:1;}}@keyframes ","{0%{opacity:1;}100%{opacity:0;}}@keyframes ","{0%{opacity:0.5;transform:scale(0.95);}100%{opacity:1;transform:scale(1);}}@keyframes ","{0%{opacity:1;transform:scale(1);}100%{opacity:0.5;transform:scale(0.95);}}.",",.","{position:fixed;top:0;right:0;bottom:0;left:0;z-index:",";}.","{background:",";}.","{display:flex;align-items:flex-start;overflow-x:hidden;overflow-y:auto;padding:",";}.","{"," position:relative;display:flex;flex-direction:column;align-items:stretch;box-sizing:border-box;width:520px;margin:auto;border-radius:",";background:",";box-shadow:",";}.","{width:866px;}.","{width:100%;height:100%;min-height:0;}"],"b-modal-overlay-in","b-modal-overlay-out","b-modal-container-in","b-modal-container-out","b-modal__overlay","b-modal__container",e.zIndex,"b-modal__overlay",Sm.gray200a,"b-modal__container",Sm.spacing6,"b-modal__modal",Bm,Sm.radiusLarge,Sm.gray10,Sm.elevation8,"b-modal__modal--medium","b-modal__modal--full-screen"))),Fv=Ul.div.withConfig({displayName:"HeaderStyled",componentId:"sc-120kp1z-120"})(["display:flex;flex:none;align-items:center;box-sizing:border-box;height:72px;padding:"," ",";",""],Sm.spacing4,Sm.spacing6,(e=>!e.hideCloseIcon&&Tl(["padding-right:calc( "," + 50px + "," );"],Sm.spacing4,Sm.spacing6))),Mv=Ul.div.withConfig({displayName:"BackButton",componentId:"sc-120kp1z-121"})(["margin-right:",";margin-left:calc("," * -1);"],Sm.spacing4,Sm.spacing4),jv=Ul.div.withConfig({displayName:"ModalThumbnail",componentId:"sc-120kp1z-122"})(["margin-right:",";"],Sm.spacing4),Hv=Ul.div.withConfig({displayName:"Headings",componentId:"sc-120kp1z-123"})(["flex:1;min-width:0;"]),Uv=Ul.h2.withConfig({displayName:"Title2",componentId:"sc-120kp1z-124"})([""," overflow:hidden;margin:0;color:",";text-overflow:ellipsis;white-space:nowrap;"],rh.uiTextL,Sm.colorText),Vv=Ul.h3.withConfig({displayName:"SecondaryInformation",componentId:"sc-120kp1z-125"})([""," overflow:hidden;margin:0;color:",";text-overflow:ellipsis;white-space:nowrap;"],rh.uiTextS,Sm.gray500),$v=Ul.div.withConfig({displayName:"ContentStyled",componentId:"sc-120kp1z-126"})(["flex:1 1 auto;min-height:0;",""],(e=>e.scrollable&&Tl(["position:relative;&::before,&::after{content:'';position:absolute;left:0;display:block;width:100%;height:6px;}&::before{top:0;z-index:1;background:linear-gradient(to bottom,",",transparent);}&::after{bottom:0;background:linear-gradient(to top,",",transparent);}"],Sm.colorShadow,Sm.colorShadow))),Wv=Ul.div.withConfig({displayName:"ContentInner",componentId:"sc-120kp1z-127"})([""," box-sizing:border-box;padding:"," ",";color:",";font-family:",";",""],rh.paragraphM,Sm.spacing5,Sm.spacing6,Sm.colorText,Sm.brandFontStackBase,(e=>e.scrollable&&Tl(["position:relative;overflow-x:hidden;overflow-y:auto;height:100%;scroll-behavior:smooth;&::before,&::after{content:'';position:relative;left:0;z-index:1;display:block;height:",";}&::before{margin:calc("," * -1) calc("," * -1) 0;background:linear-gradient( to bottom,",","," 50%,rgb(255 255 255 / 0) );}&::after{margin:0 calc("," * -1) calc("," * -1);background:linear-gradient( to top,",","," 50%,rgb(255 255 255 / 0) );}"],Sm.spacing5,Sm.spacing5,Sm.spacing6,Sm.gray10,Sm.gray10,Sm.spacing6,Sm.spacing5,Sm.gray10,Sm.gray10))),Yv=Ul.div.withConfig({displayName:"ContentExpander",componentId:"sc-120kp1z-128"})(["min-height:100%;"]),Gv=Ul.div.withConfig({displayName:"FooterStyled",componentId:"sc-120kp1z-129"})(["display:flex;flex:none;padding:",";"],Sm.spacing6),qv=Ul.div.withConfig({displayName:"ActionsRight",componentId:"sc-120kp1z-130"})(["margin-left:auto;"]),Kv=Ul.div.withConfig({displayName:"CloseButton",componentId:"sc-120kp1z-131"})(["position:absolute;top:",";right:",";"],Sm.spacing5,Sm.spacing4),Xv=e.createContext({size:"small",hideCloseIcon:!1}),Zv={small:"",medium:"b-modal__modal--medium",fullscreen:"b-modal__modal--full-screen"};function Jv({isOpen:t,onClose:o,size:a="small",isCloseButtonHidden:c=!1,closeButtonTitle:l="Close",isClosedOnOverlayClick:s=!1,onCloseAnimationEnd:u,children:d,container:p}){const f={root:"b-modal",overlay:"b-modal__overlay",modalContainer:"b-modal__container",modal:`b-modal__modal ${Zv[a]}`,modalAnimationIn:"b-modal-container-in",modalAnimationOut:"b-modal-container-out",overlayAnimationIn:"b-modal-overlay-in",overlayAnimationOut:"b-modal-overlay-out"},m=!c,h=gh("modal"),g=r((()=>({size:a,hideCloseIcon:c})),[a,c]),[v,y]=n(!1);return i((()=>{t&&y(!0)}),[t]),e.createElement(Xv.Provider,{value:g},e.createElement(pm,{open:t,onClose:o,classNames:f,animationDuration:200,showCloseIcon:!1,closeOnEsc:m,closeOnOverlayClick:s,container:p,onAnimationEnd:()=>{t||(y(!1),null==u||u())}},t||v?d:null,m&&e.createElement(Kv,null,e.createElement(Gm,{variant:"clean",icon:e.createElement(Hp,null),"aria-label":l,title:l,onClick:o}))),e.createElement(Lv,{zIndex:h}))}function Qv({isOpen:t,onClose:n,size:r,isCloseButtonHidden:o,isClosedOnOverlayClick:i,closeButtonTitle:a,title:c,secondaryInfo:l,thumbnail:s,children:u,actionPrimary:d,actionSecondary:p,actionTertiary:f,container:m,onCloseAnimationEnd:h}){return e.createElement(Jv,{isOpen:t,onClose:n,isClosedOnOverlayClick:i,isCloseButtonHidden:o,size:r,closeButtonTitle:a,onCloseAnimationEnd:h,container:m},e.createElement(Jv.Header,{title:c,secondaryInfo:l,thumbnail:s}),e.createElement(Jv.Content,null,u),d&&e.createElement(Jv.Footer,{actionPrimary:d,actionSecondary:p,actionTertiary:f}))}function ey(t){return e.createElement(Qv,{...t})}function ty(t){return e.createElement(ny,{role:"status","aria-live":"polite"},t.thumbnail&&e.createElement(ry,null,t.thumbnail),e.createElement(oy,null,e.createElement(iy,{title:"string"==typeof t.title?t.title:""},t.title),t.description&&e.createElement(ay,{title:"string"==typeof t.description?t.description:""},t.description)),e.createElement(cy,null,t.button),"number"==typeof t.progressPercentage&&e.createElement(ly,{style:{width:t.progressPercentage+"%"}}))}Jv.Header=function({title:t,secondaryInfo:n,thumbnail:r,backButton:i}){const{hideCloseIcon:a}=o(Xv);return e.createElement(Fv,{hideCloseIcon:a},i&&e.createElement(Mv,null,e.createElement(Gm,{variant:"clean",icon:e.createElement(Mp,null),"aria-label":i.title,...i})),r&&e.createElement(jv,null,r),e.createElement(Hv,null,e.createElement(Uv,null,t),n&&e.createElement(Vv,null,n)))},Jv.Content=function({children:t}){const{size:n}=o(Xv),r="fullscreen"===n;return e.createElement($v,{scrollable:r},e.createElement(Wv,{scrollable:r},r?e.createElement(Yv,null,t):t))},Jv.Footer=function({actionPrimary:t,actionSecondary:n,actionTertiary:r}){return e.createElement(Gv,null,r,e.createElement(qv,null,e.createElement(oh,{gap:"4"},n,t)))},Ul.div.withConfig({displayName:"NotificationPositionStyled",componentId:"sc-120kp1z-132"})(["position:absolute;bottom:0;left:0;z-index:",";opacity:",";transition:all 0.2s ease-out;transform:translateY(","px) translate3d(0,",",0) translateX(",");will-change:transform,opacity;"],(e=>e.isVisible?9999:void 0),(e=>e.isExists?"1":"0"),(e=>-1*e.offset),(e=>e.isItJustAdded?"calc(100% + 16px)":"0"),(e=>e.isDismissed?"-100%":"0")),Ul.div.withConfig({displayName:"NotificationsStyled",componentId:"sc-120kp1z-133"})(["position:fixed;bottom:",";left:",";z-index:",";"],Sm.spacing6,Sm.spacing6,9999);const ny=Ul.div.withConfig({displayName:"BaloonStyled",componentId:"sc-120kp1z-134"})(["",";position:relative;display:flex;align-items:flex-start;overflow:hidden;box-sizing:border-box;width:480px;padding:",";border-radius:",";background:",";box-shadow:",",",";"],Bm,Sm.spacing5,Sm.radiusLarge,Sm.white,Sm.elevationStatic,Sm.elevation2),ry=Ul.div.withConfig({displayName:"ThumbnailWrapper1",componentId:"sc-120kp1z-135"})(["flex:none;margin-right:",";"],Sm.spacing5),oy=Ul.div.withConfig({displayName:"Text",componentId:"sc-120kp1z-136"})(["flex:1;align-self:center;"]),iy=Ul.h2.withConfig({displayName:"Title1",componentId:"sc-120kp1z-137"})(["display:-webkit-box;overflow:hidden;margin:0;font:inherit;-webkit-line-clamp:3;-webkit-box-orient:vertical;"]),ay=Ul.p.withConfig({displayName:"Description",componentId:"sc-120kp1z-138"})(["display:-webkit-box;overflow:hidden;margin:"," 0 0;color:",";font-size:",";line-height:20px;-webkit-line-clamp:4;-webkit-box-orient:vertical;"],Sm.spacing2,Sm.gray500,Sm.fontSize75),cy=Ul.div.withConfig({displayName:"Action",componentId:"sc-120kp1z-139"})(["flex:none;"]),ly=Ul.div.withConfig({displayName:"Progress1",componentId:"sc-120kp1z-140"})(["position:absolute;bottom:0;left:0;height:4px;background-color:",";transition:width 0.2s;"],Sm.brandPrimary500);function sy({isPersistent:t,button:n,id:r=Nf(),variant:o,thumbnail:i,...a}){return km((t=>e.createElement(ty,{thumbnail:uy(i,o),...a,button:n?d(n,{variant:"clean",onClick(){var e,r;null===(e=(r=n.props).onClick)||void 0===e||e.call(r),km.dismiss(t.id)}}):e.createElement(Gm,{variant:"clean",onClick:()=>{km.dismiss(t.id)},icon:e.createElement(Hp,null),title:"Close"})})),{id:r,duration:t?288e5:8e3})}function uy(t,n){return t||(n?{loading:e.createElement(hv,{shape:"circle",backgroundColor:"transparent",icon:e.createElement(Fm,null)}),success:e.createElement(hv,{shape:"circle",backgroundColor:"green500",icon:e.createElement(Fp,null),iconColor:"white"}),error:e.createElement(hv,{shape:"circle",backgroundColor:"red500",icon:e.createElement(Hp,null),iconColor:"white"})}[n]:void 0)}sy.dismiss=function(e){km.dismiss(e)},Ul.div.withConfig({displayName:"Track",componentId:"sc-120kp1z-141"})(["height:4px;border-radius:",";background:",";"],(e=>e.noCornerRadius?"0":Sm.radiusPill),(e=>e.noBackground?"none":Sm.gray100a)),Ul.div.withConfig({shouldForwardProp:(e,t)=>!["color"].includes(e)&&t(e)}).withConfig({displayName:"Fill",componentId:"sc-120kp1z-142"})(["max-width:100%;height:100%;border-radius:",";background:",";transition:width 0.2s ease-out;"],(e=>e.noCornerRadius?"0":Sm.radiusPill),(e=>"brand"===e.color?Sm.brandPrimary500:Sm.gray600)),Ul.div.withConfig({displayName:"IndicatorPosition",componentId:"sc-120kp1z-143"})(["display:flex;flex:none;align-items:center;&::before{content:'';}"]);const dy=Ul.div.withConfig({displayName:"Indicator",componentId:"sc-120kp1z-144"})(["position:relative;display:flex;justify-content:center;align-items:center;box-sizing:border-box;width:16px;height:16px;border:2px solid ",";border-radius:",";background-color:transparent;&::before{content:'';position:absolute;top:-5px;right:-5px;bottom:-5px;left:-5px;border:"," solid transparent;border-color:",";border-radius:",";}"," ",""],Sm.componentRadioBorderUnchecked,Sm.radiusCircle,Sm.focusRingWidth,(e=>e.isFocusVisible&&Sm.focusRingColorPrimary),Sm.radiusCircle,(e=>e.isChecked&&Tl(["border-color:transparent;background-color:",";color:#fff;"],Sm.blue500)),(e=>e.isDisabled&&Tl(["border-color:transparent;background-color:",";color:",";"],Sm.componentRadioFillDisabled,Sm.componentRadioCheckmarkColorDisabled)));Ul.div.withConfig({displayName:"IndicatorMark",componentId:"sc-120kp1z-145"})(["width:6px;height:6px;border-radius:",";background:currentColor;"],Sm.radiusCircle),Ul.input.withConfig({displayName:"Input",componentId:"sc-120kp1z-146"})(["position:absolute;overflow:hidden;clip:rect(0,0,0,0);width:1px;height:1px;margin:0 -1px -1px 0;padding:0;border:0;white-space:nowrap;clip-path:inset(50%);"]),Ul.label.withConfig({displayName:"Container3",componentId:"sc-120kp1z-147"})([""," display:flex;align-items:flex-start;margin:0;padding:"," 0;cursor:",";user-select:none;&:hover ","{","}"],rh.uiTextM,Sm.spacing1,(e=>!e.isDisabled&&"pointer"),dy,(e=>{if(!e.isDisabled)return e.isChecked?Tl(["background-color:",";"],Sm.blue600):Tl(["border-color:",";"],Sm.componentRadioBorderUncheckedHover)})),Ul.div.withConfig({displayName:"Label",componentId:"sc-120kp1z-148"})(["display:block;margin-left:8px;color:",";"],(e=>e.isDisabled?Sm.gray400:Sm.colorText));const py=t({value:"",onChange:()=>{}});function fy({children:t,isDisabled:n,onChange:o,value:i,label:a,icon:c}){const l=r((()=>({value:i,onChange:o})),[o,i]);return e.createElement(py.Provider,{value:l},e.createElement(Ov,{trigger:({isOpen:t,...r})=>e.createElement(Gm,{icon:c,isPressed:t,rightIcon:e.createElement(Ov.Arrow,null),isFullWidth:!0,isDisabled:n,...r},e.createElement(Ov.SelectButtonText,null,a)),position:"bottom"},t))}function my(e,t,n){return 100*(n-e)/(t-e)+"%"}fy.Item=function({icon:t,children:n,isDisabled:r,value:i}){const a=o(py);return e.createElement(Ov.Item,{isChecked:i===a.value,role:"menuitemradio",icon:t,isDisabled:r,onClick:()=>{a.onChange(i)}},n)},fy.SectionTitle=Ov.SectionTitle,fy.Divider=Ov.Divider,fy.SearchInput=Ov.SearchInput,fy.Text=Ov.Text,Ul.aside.withConfig({displayName:"Container2",componentId:"sc-120kp1z-149"})(["overflow-y:auto;box-sizing:border-box;width:272px;height:100%;padding:"," 0;border-right:1px solid ",";background:",";"],Sm.spacing5,Sm.gray100,Sm.white),Ul.div.withConfig({shouldForwardProp:(e,t)=>!["width","height"].includes(e)&&t(e)}).withConfig({displayName:"Image",componentId:"sc-120kp1z-150"})(["width:",";min-width:10px;height:",";min-height:10px;border-radius:",";background:",";"],(e=>e.width),(e=>e.height),Sm.radiusBase,Sm.gray100),Ul.div.withConfig({displayName:"TextContainer",componentId:"sc-120kp1z-151"})(["display:flex;align-items:center;width:100%;height:20px;&::before{content:'';height:6px;border-radius:",";","}"],Sm.radiusPill,(e=>"primary"===e.variant?Tl(["width:75%;max-width:240px;background:",";"],Sm.gray200):"secondary"===e.variant?Tl(["width:50%;max-width:160px;background:",";"],Sm.gray100):void 0)),Ul.div.withConfig({displayName:"Opacity",componentId:"sc-120kp1z-152"})(["opacity:",";"],(({value:e=1})=>e));const hy=Ul.div.withConfig({displayName:"Container1",componentId:"sc-120kp1z-153"})(["position:relative;display:flex;gap:",";align-items:center;"],Sm.spacing3),gy=Ul.div.withConfig({displayName:"SliderContainer",componentId:"sc-120kp1z-154"})(["position:relative;display:flex;flex:1;align-items:center;height:24px;"]),vy=Tl(["position:relative;box-sizing:border-box;height:24px;padding:0;border:10px solid transparent;border-radius:2px / 50%;background-image:var(--track-background);background-clip:padding-box;cursor:pointer;border-inline:none;appearance:none;"]),yy=Tl(["position:relative;top:50%;bottom:0;width:20px;height:20px;padding:0;opacity:0;pointer-events:auto;transform:translateY(-50%);-webkit-appearance:none;appearance:none;&:hover{cursor:pointer;}"]);function by(e){const t=my(e.min,e.max,e.value);let n,r;return Array.isArray(e.values)?(n=my(e.min,e.max,e.values[0]),r=my(e.min,e.max,e.values[1])):e.isFromCenter?(n=`min(${t}, 50%)`,r=`max(50%, ${t})`):(n="0",r=t),`linear-gradient(\n\t\t90deg,\n\t\t${Sm.gray100a} ${n},\n\t\t${Sm.brandPrimary500} ${n},\n\t\t${Sm.brandPrimary500} ${r},\n\t\t${Sm.gray100a} ${r}\n\t)`}const wy=Ul.input.attrs((e=>({style:{"--track-background":by(e)}}))).withConfig({displayName:"SliderInput",componentId:"sc-120kp1z-155"})(["position:absolute;left:0;width:100%;margin:0;padding:0;border:none;background:transparent;",";-webkit-appearance:none;appearance:none;&:focus{outline:none;}&::-webkit-slider-thumb{","}&::-moz-range-thumb{"," transform:none;}&::-webkit-slider-runnable-track{","}&::-moz-range-track{","}"],(e=>e.isRange?"pointer-events: none":"pointer-events: auto"),yy,yy,vy,vy),xy=Ul.div.withConfig({displayName:"ThumbContainer",componentId:"sc-120kp1z-156"})(["position:absolute;top:50%;z-index:1;box-sizing:border-box;width:16px;height:16px;opacity:var(--thumb-opacity,",");pointer-events:none;transition:opacity 120ms ease-in-out;",":hover &{--thumb-opacity:1;}",":hover + &{--thumb-opacity:1;--thumb-inner-circle-visibility:visible;--thumb-border:0 0 0 1px ",";--thumb-shadow:",",",";}",":focus-visible + &{--thumb-opacity:1;--thumb-inner-circle-visibility:visible;--thumb-border:0 0 0 1px ",";--thumb-shadow:0 0 0 3px ",";}",":active + &{--thumb-opacity:1;--thumb-inner-circle-visibility:visible;--thumb-border:0 0 0 1px ",";--thumb-shadow:",",",";--thumb-size:20px;}"],(e=>e.isInactive?0:1),gy,wy,Sm.gray100a,Sm.elevationStatic,Sm.elevation1,wy,Sm.gray100a,Sm.gray100a,wy,Sm.gray100a,Sm.elevationStatic,Sm.elevation2),Ey=Ul.div.withConfig({displayName:"ThumbCircle",componentId:"sc-120kp1z-157"})(["position:absolute;top:50%;left:50%;width:var(--thumb-size,16px);height:var(--thumb-size,16px);border-radius:",";background:",";box-shadow:var(--thumb-shadow,",",","),var(--thumb-border,0 0 0 1px ",");transform:translate(-50%,-50%);&::before{content:'';position:absolute;top:50%;left:50%;display:block;width:8px;height:8px;border-radius:",";background-color:",";visibility:var(--thumb-inner-circle-visibility,hidden);transform:translate(-50%,-50%);}"],Sm.radiusCircle,Sm.gray10,Sm.elevationStatic,Sm.elevation1,Sm.gray75a,Sm.radiusCircle,Sm.gray25),Cy=Ul.div.withConfig({displayName:"InputContainer",componentId:"sc-120kp1z-158"})(["width:",";input{text-align:center;}"],(function(e){return 40+8*Math.max(e.min.toString().length,e.max.toString().length)+"px"}));function ky({min:t,max:n,value:r,isTooltipOpen:o,inputPosition:i,isInactive:a}){const c=my(t,n,r);return e.createElement(xy,{isInactive:a,style:Sy(c),"data-testid":"thumb"},e.createElement(Ey,null),"none"===i&&e.createElement(vh,{isOpen:o,content:r,position:"top-center"},(t=>e.createElement("div",{...t}))))}function Sy(e){return{left:e,transform:`translateY(-50%) translateX(calc(${e} * -1))`}}function _y({min:t,max:r,value:o,onChange:i,inputPosition:a,isFromCenter:c=!1,isInactive:l,isTooltipHidden:s}){const[u,d]=n(!1),p=Array.isArray(o);return e.createElement(e.Fragment,null,e.createElement(wy,{min:t,max:r,value:p?o[0]:o,values:o,type:"range",onChange:i,name:"min-input",onMouseDown:()=>{d(!0)},onMouseUp:()=>{d(!1)},isFromCenter:c,isRange:p,role:"slider"}),e.createElement(ky,{isTooltipOpen:u&&!s,min:t,max:r,value:p?o[0]:o,inputPosition:a,isInactive:l}),p&&e.createElement(e.Fragment,null,e.createElement(wy,{min:t,max:r,value:o[1],type:"range",onChange:i,name:"max-input",values:o,onMouseDown:()=>{d(!0)},onMouseUp:()=>{d(!1)},isRange:p}),e.createElement(ky,{isTooltipOpen:u&&!s,min:t,max:r,value:o[1],inputPosition:a,isInactive:l})))}function Iy({min:t,max:r,inputPosition:o="none",value:i,onChange:a,iconLeft:c,iconRight:l,isFromCenter:s=!1,isInactive:u=!1,isTooltipHidden:d=!1,...p}){const[f,m]=n(""),[h,g]=n("none");function v(e){g("none");const n=Number(e.target.value);n<t||r<n||(Array.isArray(i)?("min-input"===e.target.name&&n<i[1]&&a([n,i[1]]),"max-input"===e.target.name&&i[0]<n&&a([i[0],n])):a(n))}function y(e){"Enter"===e.key&&e.target.blur()}const b=String(Array.isArray(i)?i[0]:i),w=String(Array.isArray(i)?i[1]:i);return e.createElement(hy,{...p},("left"===o||"both"===o)&&e.createElement(Cy,{min:t,max:r,"data-testid":"input-left"},e.createElement(ev,{onChange:m,value:"left"===h?f:b,type:"number",onFocus:()=>{m(b),g("left")},onBlur:()=>{v({target:{name:"min-input",value:f}})},onKeyDown:y})),c,e.createElement(gy,null,e.createElement(_y,{min:t,max:r,value:i,inputPosition:o,onChange:v,isFromCenter:s,isInactive:u,isTooltipHidden:d})),l,("right"===o||"both"===o)&&e.createElement(Cy,{min:t,max:r,"data-testid":"input-right"},e.createElement(ev,{onChange:m,value:"right"===h?f:w,type:"number",onFocus:()=>{m(w),g("right")},onBlur:()=>{v({target:{name:"max-input",value:f}})},onKeyDown:y})))}Ul.td.withConfig({displayName:"StyledCell",componentId:"sc-120kp1z-159"})([""," "," padding:"," ",";word-break:break-word;&[data-checkbox-cell]{width:16px;}&[data-icon-cell]{width:24px;padding-left:0;}tr &:first-child{border-top-left-radius:",";border-bottom-left-radius:",";}tr &:last-child{border-top-right-radius:",";border-bottom-right-radius:",";}"],(e=>"primary"===e.variant?Tl([""," color:var(--table-row-color-override,inherit);"],rh.uiTextM):"secondary"===e.variant?Tl([""," color:var(--table-row-color-override,",");"],rh.uiTextS,Sm.gray600):void 0),(e=>e.isTruncated&&"max-width: 1px;"),Sm.spacing3,Sm.spacing4,Sm.radiusLarge,Sm.radiusLarge,Sm.radiusLarge,Sm.radiusLarge),Ul.div.withConfig({displayName:"ThumbnailWrapper",componentId:"sc-120kp1z-160"})(["flex:none;align-self:flex-start;opacity:var(--table-thumbnail-opacity,1);"]),Ul.div.withConfig({displayName:"Content",componentId:"sc-120kp1z-161"})(["flex:1;min-width:0;white-space:",";"],(e=>e.isNoWrap?"nowrap":"normal")),Ul.div.withConfig({displayName:"Subtext",componentId:"sc-120kp1z-162"})([""," color:var(--table-row-color-override,",");"],rh.uiTextS,Sm.gray600),Ul.div.withConfig({displayName:"IconRight",componentId:"sc-120kp1z-163"})(["flex:none;margin-left:",";color:",";"],Sm.spacing4,Sm.gray600),Ul.tr.withConfig({displayName:"DividerRow",componentId:"sc-120kp1z-164"})(["&:nth-child(2){display:none;}"]),Ul.td.withConfig({displayName:"DividerCell",componentId:"sc-120kp1z-165"})(["padding:"," 0;&::before{content:'';display:block;height:1px;height:1px;background:",";}"],Sm.spacing3,Sm.gray100a),Ul.tr.withConfig({displayName:"StyledRow",componentId:"sc-120kp1z-166"})([""," "," ",""],(e=>e.isActive&&Tl(["--table-row-right-icon-color:",";border-radius:",";outline:none;cursor:pointer;&:hover{--table-row-right-icon-color:",";background:",";}"," &:active{background:",";box-shadow:none;}"],Sm.gray200,Sm.radiusLarge,Sm.gray600,Sm.gray25,e.isFocusVisible&&Tl(["--table-row-right-icon-color:",";background:",";box-shadow:inset 0 0 0 2px ",",inset 0 0 0 4px ",";&:hover{box-shadow:inset 0 0 0 2px ",",inset 0 0 0 4px ",";}"],Sm.gray600,Sm.gray25,Sm.gray100,Sm.gray10,Sm.gray50,Sm.gray10),Sm.gray50)),(e=>e.isPressed&&Tl(["--table-row-right-icon-color:",";&,&:hover{background:",";}"],Sm.gray600,Sm.gray50)),(e=>e.isDisabled&&Tl(["--table-row-right-icon-color:",";--table-thumbnail-opacity:50%;--table-row-color-override:",";pointer-events:none;"],Sm.gray200,Sm.gray200))),Ul.div.withConfig({displayName:"Icon1",componentId:"sc-120kp1z-167"})(["color:var(--table-row-right-icon-color);"]),Ul.thead.withConfig({displayName:"StyledHeader",componentId:"sc-120kp1z-168"})(["",""],(e=>"string"==typeof e.stickyOffset&&Tl(["--table-head-sticky-offset:",";position:sticky;top:var(--table-head-sticky-offset);z-index:1;background-color:",";",""],"0"===e.stickyOffset?"0px":e.stickyOffset,Sm.white,e.isStuck&&Tl(["box-shadow:0 3px 0 ",",0 1px 0 ",";"],Sm.gray50a,Sm.gray100a)))),Ul.div.withConfig({displayName:"Trigger",componentId:"sc-120kp1z-169"})(["position:absolute;top:calc((var(--table-head-sticky-offset) + 1px) * -1);width:1px;height:1px;"]),Ul.th.withConfig({displayName:"StyledHeadCell",componentId:"sc-120kp1z-170"})([""," padding:"," ",";text-align:left;"],rh.uiTextM,Sm.spacing2,Sm.spacing4),Ul.div.withConfig({displayName:"Static",componentId:"sc-120kp1z-171"})(["padding:"," 0;"],Sm.spacing3),Ul.span.withConfig({displayName:"Active",componentId:"sc-120kp1z-172"})(["font-weight:600;"]),Ul.td.withConfig({displayName:"Cell2",componentId:"sc-120kp1z-173"})(["height:",";"],Sm.spacing3),Ul.td.withConfig({displayName:"Cell1",componentId:"sc-120kp1z-174"})(["padding:"," ",";"],Sm.spacing3,Sm.spacing4),Ul.td.withConfig({displayName:"Cell",componentId:"sc-120kp1z-175"})(["padding:",";"],Sm.spacing4),Ul.table.withConfig({displayName:"StyledTable",componentId:"sc-120kp1z-176"})(["width:100%;border-collapse:collapse;table-layout:"," !important;word-wrap:initial !important;"],(e=>e.isFixedLayout?"fixed":"auto")),Ul.button.withConfig({shouldForwardProp:(e,t)=>!["shape"].includes(e)&&t(e)}).withConfig({displayName:"TabStyled",componentId:"sc-120kp1z-177"})(["display:flex;flex-grow:1;flex-basis:0;justify-content:center;align-items:center;min-width:0;height:",";padding:"," ",";border:0;border-radius:",";background-color:transparent;color:",";font-family:inherit;text-align:center;cursor:pointer;"," &:disabled{color:",";cursor:default;}&:focus-visible{color:",";box-shadow:inset 0 0 0 2px ",";outline:none;}&:hover:enabled{color:",";",";}",";",";"],(e=>"contained"===e.variant?"36px":"40px"),Sm.spacing3,Sm.spacing5,(e=>"pill"===e.shape?Sm.radiusPill:Sm.radiusBase),(e=>e.isActive?Sm.gray800:Sm.gray600),rh.uiTextM,Sm.gray400,Sm.gray800,Sm.gray200,Sm.gray800,(e=>"clean"===e.variant&&Tl(["background-color:",";"],Sm.gray25a)),(e=>e.isActive&&"contained"===e.variant&&Tl(["background-color:",";box-shadow:0 0 1px ",",",";"],Sm.white,Sm.colorShadow,Sm.elevation1)),(e=>e.isActive&&"clean"===e.variant&&Tl(["background-color:",";"],Sm.gray50a))),Ul.span.withConfig({displayName:"Icon",componentId:"sc-120kp1z-178"})(["margin-right:",";"],Sm.spacing3),Ul.div.withConfig({shouldForwardProp:(e,t)=>!["shape"].includes(e)&&t(e)}).withConfig({displayName:"TabsStyled",componentId:"sc-120kp1z-179"})(["display:flex;gap:",";align-items:center;border-radius:",";",";"],Sm.spacing1,(e=>"pill"===e.shape?Sm.radiusPill:`calc(${Sm.radiusBase} + 2px) `),(e=>"contained"===e.variant&&Tl(["padding:",";background-color:",";"],Sm.spacing1,Sm.gray50a)));const Ty={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"};function By(e){Object.keys(Ty).forEach((t=>{e.style.setProperty(t,Ty[t],"important")}))}let zy=null;const Py=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"];function Ny({id:t,isDisabled:n=!1,isReadOnly:r=!1,isInvalid:o=!1,onBlur:i,onChange:l,onFocus:s,placeholder:u,value:d,"aria-label":p,"aria-labelledby":f,"aria-describedby":m,minRows:h=2,maxRows:g=8,maxLength:v,...y}){const b=a(null);return function(e,t,n){const r=a(0),[o,i]=function(e,t){let n=e||2,r=t||8;return n>r&&(n=r),n<2&&(n=2),r>8&&(r=8),[n,r]}(t,n);c((()=>{const t=e.current;if(!t)return;const n=function(e){const t=window.getComputedStyle(e);if(null===t)return null;const n=(r=t,Py.reduce(((e,t)=>(e[t]=r[t],e)),{}));var r;return""===n.boxSizing?null:{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom||"0")+parseFloat(n.paddingTop||"0"),borderSize:parseFloat(n.borderBottomWidth||"0")+parseFloat(n.borderTopWidth||"0")}}(t);if(!n)return;const a=function({sizingData:e,value:t,minRows:n,maxRows:r}){zy||(zy=document.createElement("textarea"),zy.setAttribute("tabindex","-1"),zy.setAttribute("aria-hidden","true"),By(zy)),null===zy.parentNode&&document.body.appendChild(zy);const{paddingSize:o,borderSize:i,sizingStyle:a}=e;Object.keys(a).forEach((e=>{if(!zy)return;const t=e;zy.style[t]=a[t]})),By(zy),zy.value=t;let c=function(e,t){const n=zy.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize}(0,e);zy.value="x";const l=zy.scrollHeight-o;let s=l*n;"border-box"===a.boxSizing&&(s=s+o+i),c=Math.max(s,c);let u=l*r;return"border-box"===a.boxSizing&&(u=u+o+i),c=Math.min(u,c),c}({sizingData:n,value:t.value||t.placeholder||"x",minRows:o,maxRows:i});r.current!==a&&(r.current=a,t.style.setProperty("height",`${a}px`,"important"))}))}(b,h,g),e.createElement(Dy,{value:d,onChange:function(e){if(l){const t=e.currentTarget.value;l(t)}},id:t,disabled:n,readOnly:r,isInvalid:o,"aria-label":p,"aria-labelledby":f,"aria-describedby":m,onBlur:i,onFocus:s,placeholder:u,autoComplete:"off",autoCorrect:"off",ref:b,maxLength:v,...y})}const Dy=Ul.textarea.withConfig({displayName:"TextareaStyled",componentId:"sc-120kp1z-180"})(["&&{display:block;box-sizing:border-box;width:100%;margin:0;padding:"," ",";border:1px solid ",";border-radius:",";background:",";color:",";outline:none;font-family:",";resize:none;transition:none;"," &::placeholder{color:",";}&:hover{border-color:",";box-shadow:",";}&:focus{border-color:",";box-shadow:0 0 0 3px ",";}&:disabled{border-color:",";background:",";color:",";box-shadow:none;}",";}"],Sm.spacing3,Sm.spacing5,Sm.gray100,Sm.radiusBase,Sm.white,Sm.colorText,Sm.brandFontStackBase,rh.paragraphM,Sm.gray400,Sm.gray200,Sm.elevation1,Sm.gray300,Sm.gray100a,Sm.gray100,Sm.gray25,Sm.gray600,(e=>e.isInvalid&&Tl(["border-color:",";&:hover{border-color:",";}&:focus{border-color:",";}"],Sm.red500,Sm.red600,Sm.red500))),Oy=Ul.div.withConfig({displayName:"RightElementText",componentId:"sc-120kp1z-181"})(["display:flex;justify-content:flex-end;align-items:center;color:",";text-align:right;"],Sm.gray400);Ul.div.withConfig({displayName:"LeftIconContainer",componentId:"sc-120kp1z-182"})(["margin-right:",";*{max-width:24px;max-height:24px;}"],Sm.spacing4),Ul.div.withConfig({displayName:"RightElementsContainer",componentId:"sc-120kp1z-183"})(["margin-left:auto;padding-left:",";"],Sm.spacing4);const Ay=Tl(["background-color:"," !important;color:"," !important;","{color:",";}"],Sm.gray50,Sm.gray800,Oy,Sm.gray600);function Ry(e){var t;return null!==(t=Ly[e])&&void 0!==t?t:e}Ul.a.withConfig({displayName:"StyledNavItem",componentId:"sc-120kp1z-184"})(["&&{"," display:flex;align-items:center;box-sizing:border-box;width:100%;height:40px;margin:0;padding:"," ",";border:0;border-radius:",";background:none;color:",";outline:none;font-family:",";text-decoration:none;cursor:",";&:hover{background-color:",";color:",";","{color:",";}}&:active{","}"," "," ",";}"],rh.uiTextM,Sm.spacing3,Sm.spacing4,Sm.brandRadiusBase,Sm.gray600,Sm.brandFontStackBase,(e=>e.disabled?"default":"pointer"),Sm.gray25,Sm.gray800,Oy,Sm.gray600,Ay,(e=>e.$isSelected&&Ay),(e=>e.$isFocusVisible&&Tl(["background-color:",";color:",";","{color:",";}"],Sm.gray25,Sm.gray800,Oy,Sm.gray600)),(e=>e.disabled&&Tl(["background-color:transparent;color:",";pointer-events:none;","{color:",";}"],Sm.gray400,Oy,Sm.gray400))),Ul(gg).withConfig({displayName:"Divider",componentId:"sc-120kp1z-185"})(["margin:"," ",";"],Sm.spacing2,Sm.spacing4),Ul.div.withConfig({displayName:"StyledTitleContainer",componentId:"sc-120kp1z-186"})(["",";display:flex;align-items:center;box-sizing:border-box;height:32px;padding:0 ",";color:",";"],rh.uiTextS,Sm.spacing4,Sm.gray800),Ul.div.withConfig({displayName:"RightElementIcon",componentId:"sc-120kp1z-187"})(["&:last-child{margin-right:calc("," * -1);}"],Sm.spacing2),Ul.div.withConfig({displayName:"Container",componentId:"sc-120kp1z-188"})(["margin:0 ",";"],Sm.spacing5);var Ly={};function Fy(e){i((function(){var t=e.slice(0,2).toLowerCase(),n="".concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/modules/compactview/i18n/").concat(t,".json");fetch(n).then((function(e){return e.json()})).then((function(e){Ly=e}))}),[e])}function My(){return e.createElement("svg",{width:"190",height:"130"},e.createElement("defs",null,e.createElement("linearGradient",{id:"prefix__b",x1:"100%",x2:"25.598%",y1:"11.782%",y2:"100%"},e.createElement("stop",{offset:"0%",stopColor:"#F8FAFC"}),e.createElement("stop",{offset:"100%",stopColor:"#EFF2F4"})),e.createElement("rect",{id:"prefix__a",width:"190",height:"130",rx:"3"})),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("mask",{id:"prefix__c",fill:"#fff"},e.createElement("use",{xlinkHref:"#prefix__a"})),e.createElement("use",{fill:"url(#prefix__b)",xlinkHref:"#prefix__a"}),e.createElement("g",{mask:"url(#prefix__c)"},e.createElement("path",{fill:"#F5A623",d:"M100.296 45.951l23.01 43.23A6 6 0 01118.009 98H71.991a6 6 0 01-5.297-8.82l23.01-43.229a6 6 0 0110.592 0z"}),e.createElement("path",{fill:"#FFF",fillRule:"nonzero",d:"M93.21 60h3.58a2 2 0 011.99 2.199l-1.6 16A2 2 0 0195.19 80h-.38a2 2 0 01-1.99-1.801l-1.6-16A2 2 0 0193.21 60zM95 84a3 3 0 110 6 3 3 0 010-6z"})),e.createElement("path",{fill:"#EEF1F3",d:"M3 0h184a3 3 0 013 3v13H0V3a3 3 0 013-3z",mask:"url(#prefix__c)"}),e.createElement("circle",{cx:"11",cy:"8",r:"3",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)"}),e.createElement("circle",{cx:"20",cy:"8",r:"3",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)"}),e.createElement("circle",{cx:"29",cy:"8",r:"3",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)"})))}function jy(t){return e.createElement(e.Fragment,null,e.createElement(My,null),e.createElement($y,null,Ry("Oops! Something went wrong")),e.createElement(Wy,null,Ry("Please try again or get in contact with our customer support.")),e.createElement(Yy,null,e.createElement(Gm,{variant:"secondary",title:Ry("Send report"),onClick:t.onClickSend,isDisabled:t.isReportSent},t.isReportSent?Ry("Report sent"):Ry("Send report...")),e.createElement(Gm,{variant:"primary",title:Ry("Try again"),onClick:t.onClickRetry},Ry("Try again"))))}var Hy,Uy,Vy,$y=Ul.h1(Hy||(Hy=Sa(["\n\tmargin-top: ",";\n\tfont-size: ",";\n"],["\n\tmargin-top: ",";\n\tfont-size: ",";\n"])),Sm.spacing8,Sm.fontSize400),Wy=Ul.span(Uy||(Uy=Sa(["\n\tmargin-top: ",";\n\tcolor: ",";\n"],["\n\tmargin-top: ",";\n\tcolor: ",";\n"])),Sm.spacing5,Sm.colorTextDisabled),Yy=Ul.div(Vy||(Vy=Sa(["\n\tmargin-top: ",";\n\tdisplay: flex;\n\tgap: ",";\n"],["\n\tmargin-top: ",";\n\tdisplay: flex;\n\tgap: ",";\n"])),Sm.spacing7,Sm.spacing3);function Gy(t){var n;return e.createElement(ey,{title:Ry("Send error report"),isOpen:t.isOpen,onClose:t.onCancel,actionPrimary:e.createElement(Gm,{variant:"primary",title:Ry("Send report"),onClick:t.onDone},Ry("Send report")),actionSecondary:e.createElement(Gm,{variant:"secondary",title:Ry("Cancel"),onClick:t.onCancel},Ry("Cancel")),container:t.container},e.createElement(Zy,null,Ry("We have created a report that you can send us to help us prevent this from happening in the future.")),e.createElement(Jy,{"data-testid":"error-stack"},null===(n=t.error.stack)||void 0===n?void 0:n.split("\n").map((function(t){return e.createElement(e.Fragment,{key:t},t,e.createElement("br",null))}))),e.createElement(Qy,null,Ry("We will treat this report as confidential and anonymous.")))}var qy,Ky,Xy,Zy=Ul.div(qy||(qy=Sa(["\n\tline-height: ",";\n"],["\n\tline-height: ",";\n"])),Sm.lineHeightText),Jy=Ul.div(Ky||(Ky=Sa(["\n\tmargin: "," 0;\n\tflex-grow: 1;\n\talign-self: stretch;\n\tbackground-color: ",";\n\tborder-radius: ",";\n\tborder: 1px solid ",";\n\tline-height: ",";\n\toverflow: scroll;\n\tpadding: "," ",";\n\tmax-height: 200px;\n"],["\n\tmargin: "," 0;\n\tflex-grow: 1;\n\talign-self: stretch;\n\tbackground-color: ",";\n\tborder-radius: ",";\n\tborder: 1px solid ",";\n\tline-height: ",";\n\toverflow: scroll;\n\tpadding: "," ",";\n\tmax-height: 200px;\n"])),Sm.spacing5,Sm.gray25,Sm.radiusMedium,Sm.gray200,Sm.lineHeightText,Sm.spacing5,Sm.spacing4),Qy=Ul.span(Xy||(Xy=Sa(["\n\tcolor: ",";\n\tline-height: ",";\n\tfont-size: ",";\n"],["\n\tcolor: ",";\n\tline-height: ",";\n\tfont-size: ",";\n"])),Sm.colorTextDisabled,Sm.lineHeightBase,Sm.fontSize75);function eb(t){var r=t.error,o=t.onRetry,a=La(),c=n(!1),l=c[0],s=c[1],u=n(!1),d=u[0],p=u[1];return i((function(){Oa.error(r)}),[r]),e.createElement("div",{className:"w-full h-full flex flex-col items-center justify-center bg-ui-0 font-sans\n text-base text-body-500"},e.createElement(jy,{isReportSent:d,onClickSend:function(){s(!0)},onClickRetry:o}),e.createElement(Gy,{isOpen:l,error:r,container:a,onDone:function(){ei(r),s(!1),p(!0)},onCancel:function(){s(!1)}}))}function tb(){var t=ya(Ta()[0].page),n=t[0],r=t[1],o={ASC:Ry("Ascending"),DESC:Ry("Descending")},i={ASC:"DESC",DESC:"ASC"};return e.createElement(Gm,{variant:"clean",isSmall:!0,title:o[n.direction],onClick:function(){r({field:n.field,direction:i[n.direction]})},icon:e.createElement(rb,{$isAscending:"ASC"===n.direction})})}var nb,rb=Ul((function(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"}}]})(e)}))(nb||(nb=Sa(["\n\twidth: ",";\n\theight: ",";\n\t","\n"],["\n\twidth: ",";\n\theight: ",";\n\t","\n"])),Sm.spacing6,Sm.spacing6,(function(e){return e.$isAscending&&"transform: scaleY(-1)"}));function ob(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(Boolean).join(" ")}function ib(t){var r,o=a(null),l=n(0)[1];!function(e,t){var n=La();i((function(){function r(n){var r=n.target;e.map((function(e){return null==e?void 0:e.current})).some((function(e){return e&&e.contains(r)}))||t()}return null==n||n.addEventListener("mousedown",r),function(){return null==n?void 0:n.removeEventListener("mousedown",r)}}),[e,t,n])}([t.target,o],t.onClickOutside),c((function(){l(null!==t.target.current?t.target.current.getBoundingClientRect().x:0)}),[t.target]);var s=La(),u=null!==(r=s.querySelector(".cv-root"))&&void 0!==r?r:s;if(null===s||null===t.target.current)return null;var d=t.target.current.getBoundingClientRect(),p=d.x,f=window.innerWidth,m=p+300>f?void 0:p,g=p+300>f?f-d.width-p:void 0,v="Down"===t.direction?d.top+d.height:void 0,y="Up"===t.direction?window.innerHeight-d.top:void 0,b=u.getBoundingClientRect(),w={left:m,right:g,top:v,bottom:y,maxWidth:b.width-(null!=m?m:0)-(null!=g?g:0),maxHeight:b.height-(null!=y?y:0)-(null!=v?v:0)},x=ob("cv-root cv-dropdown select-none",t.className);return h(e.createElement("div",{role:"menu",id:t.id,className:x,ref:o,style:w},t.children),s)}function ab(t){var o=t.buttonKind,i=void 0===o?"clean":o,c=t.direction,l=void 0===c?"Down":c,s=t.isSmall,u=t.fadeIn,d=xa(t,["buttonKind","direction","isSmall","fadeIn"]),p=r((function(){return"dropdownmenu-".concat(Date.now(),"-").concat(Math.random().toString(36).substring(2))}),[]),f=n(!1),m=f[0],h=f[1],g=a(null),v=function(){return h((function(e){return!e}))};return e.createElement(e.Fragment,null,e.createElement(lb,{variant:i,isSmall:s,onClick:v,ref:g,isDisabled:d.disabled,isPressed:m,"aria-haspopup":!0,"aria-expanded":m,"aria-controls":p,fadeIn:u,"data-testid":"button"},e.createElement("span",{className:"inline-flex items-center",title:d.alt},d.title),e.createElement(Rp,{className:"w-6 h-6 ml-1 -mr-2"})),m&&e.createElement(ib,{className:d.className,onClickOutside:v,direction:l,target:g,id:p},d.children(v)))}var cb,lb=Ul(Gm)(cb||(cb=Sa(["\n\tdisplay: flex;\n\talign-items: center;\n\ttext-transform: inherit;\n\t","\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\ttext-transform: inherit;\n\t","\n"])),(function(e){return e.fadeIn?"animation: var(--fade-in-down);":""}));function sb(t){var n=t.selected,r=void 0!==n&&n,o=xa(t,["selected"]),i=ob("text-left w-full cursor-pointer flex hover:bg-ui-400 hover:text-body-500 items-center transition-color",r?"text-body-500":"text-body-400",o.className);return e.createElement("li",null,e.createElement("button",{type:"button",className:i,onClick:o.onClick,role:"menuitemradio","aria-checked":r,tabIndex:-1},o.children,r&&e.createElement(Fp,{className:"w-6 h-6 ml-3 fade-in"})))}function ub(t){var n=t.options,r=void 0===n?["CREATED_AT","PUBLISHED_AT","UPDATED_AT","NAME"]:n,o=ya(Ta()[0].page),i=o[0],a=o[1],c={CREATED_AT:Ry("Date added"),NAME:Ry("Name"),PUBLISHED_AT:Ry("Date published"),UPDATED_AT:Ry("Date modified")};return e.createElement(pb,null,e.createElement(ab,{className:"py-2",title:c[i.field],alt:Ry("Order by")},(function(t){return e.createElement("ul",null,r.map((function(n){return e.createElement(sb,{className:"px-4 py-px text-sm",selected:i.field===n,key:c[n],onClick:function(){a({field:n,direction:i.direction}),t()}},e.createElement("span",{className:"flex-grow min-w-24 py-2"},c[n]))})))})))}var db,pb=Ul.div(db||(db=Sa(["\n\tmargin-left: auto;\n"],["\n\tmargin-left: auto;\n"])));function fb(e,t,n){return(1===e?t:n).replace("{}",e.toString())}function mb(t){var n=t.width,r=void 0===n?100:n,o=t.className;return e.createElement("span",{className:ob("cv-skeleton",o),style:{width:r},"data-testid":"skeleton"},"")}function hb(t){return e.createElement(e.Fragment,null,Array(t.rows*t.columns).fill(void 0).map((function(n,r){return e.createElement("div",{key:r,className:"m-2 w-56 self-start group relative","data-testid":"asset-card"},e.createElement(Hh,null,e.createElement(Hh.Frame,null),e.createElement(Hh.AdditionalInfo,null,e.createElement(mb,{width:70+gb(100,r),className:"h-4"})),t.title))})))}function gb(e,t){return 16807*((t+20)%2147483647+2147483646)%2147483647%e}var vb=t({assetTypes:[],language:"en_US",onSuccess:function(e,t){var n=t.selectedFile;return console.log(e,n)},selectionMode:"MultiSelect",hideExternalAccess:!1}),yb=vb.Provider,bb=function(){return o(vb)},wb=function(){return bb().selectionMode};function xb(e){return{tag:"ok",value:e}}function Eb(e){return{tag:"error",error:e}}function Cb(e){return"ok"===e.tag}function kb(e){return"error"===e.tag}function Sb(e){var t=e.replace(/^https?:\/\//i,"").replace(/\/+$/i,"");return"https://".concat(t,"/")}var _b=new Map;function Ib(e,t,n){return Ea(this,void 0,void 0,(function(){var r,o,i,a,c,l,s;return Ca(this,(function(u){switch(u.label){case 0:if(!n)return[2,Eb("No authentication provided")];if(r=n.getAccessToken&&n.getAccessToken(),"/"===(o=void 0!==n.accountDomain?Sb(n.accountDomain.trim()):"https://".concat(window.location.host)).charAt(o.length-1)&&(o=o.slice(0,-1)),i="".concat(o,":").concat(e,":").concat(JSON.stringify(t),":").concat(r),_b.has(i))return[2,xb(_b.get(i))];a={Accept:"application/json","Content-Type":"application/json","X-Bynder-Integration":"UCV/v".concat("3.2.2")},c=void 0===r?a:wa(wa({},a),{Authorization:"Bearer ".concat(r)}),l={method:"post",headers:c,body:JSON.stringify({query:e,variables:t})},u.label=1;case 1:return u.trys.push([1,4,,5]),[4,fetch("".concat(o,"/graphql"),l)];case 2:return[4,u.sent().json()];case 3:return s=u.sent(),[3,5];case 4:return[2,Eb(u.sent())];case 5:return void 0!==s.errors?[2,Eb(s.errors.map((function(e){return e.message})).join(","))]:(_b.set(i,s.data),_b.size>50&&_b.delete(_b.keys().next().value),[2,xb(s.data)])}}))}))}function Tb(e){var t;if(!(null===(t=window.crypto)||void 0===t?void 0:t.subtle))return Promise.reject("Access to the WebCrypto API is restricted to secure origins. Compact View requires HTTPS when used outside localhost (for development).");var n=(new TextEncoder).encode(e);return window.crypto.subtle.digest("SHA-256",n)}function Bb(){var e=new Uint32Array(28),t=window.crypto.getRandomValues(e),n=Array.from(t).map((function(e){return"0".concat(e.toString(16)).substr(-2)}));return n.join("")}var zb="42b1eefa-d754-4802-b9c4-bf80d6ab6052",Pb="".concat("https://d8ejoa1fys2rk.cloudfront.net"),Nb=Pb+"/5.0.5/modules/compactview/loginCompleted.html",Db="".concat("https://apiv2.webdamdb.com","/"),Ob=["offline","asset:read","collection:read","meta.assetbank:read"];function Ab(e,t,n){return Ea(this,void 0,void 0,(function(){var r,o,i,a;return Ca(this,(function(c){switch(c.label){case 0:r=Rb(n)+"token",o=new URLSearchParams({client_id:zb,code_verifier:t,code:e,redirect_uri:Nb,grant_type:"authorization_code"}),c.label=1;case 1:return c.trys.push([1,4,,5]),[4,fetch(r,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:o})];case 2:return(i=c.sent()).ok?[4,i.json()]:[2,Eb("Failed to fetch access token: ".concat(i.status))];case 3:return[2,xb({refreshToken:(a=c.sent()).refresh_token,accessToken:a.access_token,expiresIn:a.expires_in})];case 4:return[2,Eb(c.sent().toString())];case 5:return[2]}}))}))}function Rb(e){return"webdam"===Lb()?Db+"oauth2/":Sb(e)+"v6/authentication/oauth2/"}function Lb(){var e;return null!==(e=localStorage.getItem("cvp"))&&void 0!==e?e:void 0}function Fb(e){return Ea(this,void 0,void 0,(function(){var t,n,r,o,i,a;return Ca(this,(function(c){switch(c.label){case 0:return t=window.screen,n=t.width/2-285+window.screenX,r=t.height/2-350+window.screenY,null===(o=window.open("","Bynder Brand Portal","height=".concat(700,",width=").concat(570,",left=").concat(n,",top=").concat(r)))?[2,Eb("Error opening login window")]:(o.document.head.innerHTML=Mb,o.document.body.innerHTML=jb,o.location.href=e,[4,Promise.race([new Promise((function(e){window.addEventListener("message",(function(t){t.origin===Pb&&e(xb(t))}))})),new Promise((function(e){setTimeout((function(){return e(Eb("Timeout"))}),6e5)})),(l=o,new Promise((function(e){var t=setInterval((function(){l.closed&&(clearInterval(t),e(Eb("Login window closed")))}),1e3)})))])]);case 1:return kb(i=c.sent())?[2,i]:[2,xb({state:(a=new URLSearchParams(i.value.data)).get("state"),code:a.get("code")})]}var l}))}))}var Mb='\n<title>Redirecting...</title>\n<style>\n @keyframes cv-spinner-animation {\n to {\n transform:rotate(1turn)\n }\n }\n\n .cv-spinner {\n position: relative;\n display: inline-block;\n padding: 175px 0 100px;\n width: 100%;\n height: auto;\n background: #fff;\n box-sizing: border-box;\n }\n \n .cv-spinner:before {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 40px;\n height: 40px;\n margin-top: -20px;\n margin-left: -20px;\n box-sizing: border-box;\n border-top: 3px solid #7e8890;\n border-right: 3px solid transparent;\n border-radius: 50%;\n content: "";\n animation: cv-spinner-animation .8s linear infinite;\n z-index: 3;\n }\n</style>',jb='<div class="cv-spinner"></div>';function Hb(t){var n=La();return e.createElement(yl,{target:n,disableVendorPrefixes:!0},e.createElement(mh,{zIndexBase:1e6},t.children))}function Ub(t){var r=t.children,o=e.useRef(null),a=n(null),c=a[0],l=a[1];return i((function(){if(null!==o.current){var e,t,n=function(e){try{return e.attachShadow({mode:"open"})}catch(e){return null}}(o.current);e=n,t="@import url(".concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/includes/css/vendor/font-awesome.min.css);")+'/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}a{background-color:transparent}b{font-weight:bolder}code{font-family:monospace,monospace;font-size:1em}img{border-style:none}button,input,select{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}progress{vertical-align:baseline}[type=checkbox]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}[hidden]{display:none}dd,dl,h1,p{margin:0}button{background-color:transparent;background-image:none}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}ul{list-style:none;margin:0;padding:0}html{font-family:SourceSansPro,Source Sans Pro,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}*,:after,:before{-webkit-box-sizing:border-box;box-sizing:border-box;border:0 solid rgba(0,34,51,.1)}img{border-style:solid}input::-webkit-input-placeholder{color:#a0aec0}input::-moz-placeholder{color:#a0aec0}input:-ms-input-placeholder{color:#a0aec0}input::-ms-input-placeholder{color:#a0aec0}input::placeholder{color:#a0aec0}[role=button],button{cursor:pointer}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,select{padding:0;line-height:inherit;color:inherit}code{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}audio,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}.bg-ui-0{--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity))}.bg-ui-500{background-color:rgba(0,34,51,.05)}.hover\\:bg-ui-400:hover{background-color:rgba(0,34,51,.03)}.border-brand-500{--border-opacity:1;border-color:#0af;border-color:rgba(0,170,255,var(--border-opacity))}.border-ui-600{border-color:rgba(0,34,51,.1)}.rounded{border-radius:5px}.rounded-full{border-radius:9999px}.border-2{border-width:2px}.border{border-width:1px}.border-b{border-bottom-width:1px}.last\\:border-b-0:last-child{border-bottom-width:0}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.inline-block{display:inline-block}.inline{display:inline}.flex{display:-webkit-box;display:-ms-flexbox;display:flex}.inline-flex{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.grid{display:grid}.contents{display:contents}.hidden{display:none}.flex-col{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.flex-wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.items-center{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.self-start{-ms-flex-item-align:start;align-self:flex-start}.justify-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.justify-between{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.flex-1{-webkit-box-flex:1;-ms-flex:1 1 0%;flex:1 1 0%}.flex-grow{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.flex-shrink-0{-ms-flex-negative:0;flex-shrink:0}.flex-shrink{-ms-flex-negative:1;flex-shrink:1}.font-sans{font-family:SourceSansPro,Source Sans Pro,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.font-semibold{font-weight:600}.h-4{height:16px}.h-5{height:20px}.h-6{height:24px}.h-8{height:32px}.h-10{height:40px}.h-12{height:48px}.h-20{height:80px}.h-32{height:128px}.h-full{height:100%}.text-xs{font-size:12px}.text-sm{font-size:14px}.text-base{font-size:16px}.text-xl{font-size:20px}.m-2{margin:8px}.my-2{margin-top:8px;margin-bottom:8px}.mx-2{margin-left:8px;margin-right:8px}.mr-1{margin-right:4px}.ml-1{margin-left:4px}.mt-2{margin-top:8px}.mr-2{margin-right:8px}.mb-2{margin-bottom:8px}.ml-2{margin-left:8px}.mt-3{margin-top:12px}.mr-3{margin-right:12px}.ml-3{margin-left:12px}.mb-4{margin-bottom:16px}.mb-8{margin-bottom:32px}.-mt-1{margin-top:-4px}.-mr-1{margin-right:-4px}.-mr-2{margin-right:-8px}.max-w-24{max-width:96px}.max-w-32{max-width:128px}.min-w-24{min-width:96px}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.py-1{padding-top:4px;padding-bottom:4px}.py-2{padding-top:8px;padding-bottom:8px}.px-2{padding-left:8px;padding-right:8px}.px-3{padding-left:12px;padding-right:12px}.py-4{padding-top:16px;padding-bottom:16px}.px-4{padding-left:16px;padding-right:16px}.py-px{padding-top:1px;padding-bottom:1px}.pr-1{padding-right:4px}.pb-1{padding-bottom:4px}.pb-2{padding-bottom:8px}.pb-3{padding-bottom:12px}.pl-3{padding-left:12px}.pt-4{padding-top:16px}.pl-4{padding-left:16px}.pr-5{padding-right:20px}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.top-0{top:0}.right-0{right:0}.resize{resize:both}.shadow{-webkit-box-shadow:0 1px 6px 0 rgba(0,34,51,.1),0 0 0 1px rgba(0,34,51,.1);box-shadow:0 1px 6px 0 rgba(0,34,51,.1),0 0 0 1px rgba(0,34,51,.1)}.shadow-border{-webkit-box-shadow:0 1px 6px -2px rgba(0,34,51,.1);box-shadow:0 1px 6px -2px rgba(0,34,51,.1)}.text-left{text-align:left}.text-right{text-align:right}.text-body-300{color:rgba(0,34,51,.3)}.text-body-400{color:rgba(0,34,51,.5)}.text-body-500{color:rgba(0,34,51,.8)}.hover\\:text-body-400:hover{color:rgba(0,34,51,.5)}.hover\\:text-body-500:hover{color:rgba(0,34,51,.8)}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.select-none{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.visible{visibility:visible}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.w-5{width:20px}.w-6{width:24px}.w-10{width:40px}.w-40{width:160px}.w-48{width:192px}.w-56{width:224px}.w-full{width:100%}.z-10{z-index:10}.z-20{z-index:20}.gap-y-px{grid-row-gap:1px;row-gap:1px}.transform{--transform-translate-x:0;--transform-translate-y:0;--transform-rotate:0;--transform-skew-x:0;--transform-skew-y:0;--transform-scale-x:1;--transform-scale-y:1;-webkit-transform:translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y));transform:translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y))}.transition-transform{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform}@-webkit-keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes ping{75%,to{-webkit-transform:scale(2);transform:scale(2);opacity:0}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{-webkit-transform:translateY(-25%);transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{-webkit-transform:none;transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes fade-in-down{0%{opacity:0;-webkit-transform:translateY(-2px);transform:translateY(-2px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes border-rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes border-dash{0%{stroke-dasharray:1,100;stroke-dashoffset:0}50%{stroke-dasharray:80,100;stroke-dashoffset:-20}to{stroke-dasharray:80,100;stroke-dashoffset:-48}}.transition-color{-webkit-transition:color .05s linear,background-color .05s linear,border-color .05s linear,opacity .05s linear;transition:color .05s linear,background-color .05s linear,border-color .05s linear,opacity .05s linear}.transition-transform{-webkit-transition:-webkit-transform .6s cubic-bezier(.175,.885,.32,1.15);transition:-webkit-transform .6s cubic-bezier(.175,.885,.32,1.15);transition:transform .6s cubic-bezier(.175,.885,.32,1.15);transition:transform .6s cubic-bezier(.175,.885,.32,1.15),-webkit-transform .6s cubic-bezier(.175,.885,.32,1.15)}.cv-root{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity));font-family:SourceSansPro,Source Sans Pro,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:16px;color:rgba(0,34,51,.8);-webkit-box-sizing:border-box;box-sizing:border-box;position:relative}.cv-root *,.cv-root :after,.cv-root :before{-webkit-box-sizing:inherit;box-sizing:inherit}.cv-container{overflow:hidden;width:100%;height:100%}.cv-container nav:last-of-type{-webkit-box-shadow:0 1px 0 0 rgba(0,34,51,.1),0 1px 6px 0 rgba(0,34,51,.1);box-shadow:0 1px 0 0 rgba(0,34,51,.1),0 1px 6px 0 rgba(0,34,51,.1)}.cv-dropdown{position:fixed;border-width:1px;border-color:rgba(0,34,51,.1);-webkit-animation:fade-in-down .15s ease-out;animation:fade-in-down .15s ease-out;margin-top:4px;margin-bottom:4px;overflow-y:auto;border-radius:5px;-webkit-box-shadow:0 4px 10px 0 rgba(0,34,51,.1);box-shadow:0 4px 10px 0 rgba(0,34,51,.1);z-index:9999999;overflow-y:hidden;-webkit-transition:left .1s ease-out;transition:left .1s ease-out}.card-list{padding-left:8px;padding-right:8px;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-line-pack:start;align-content:flex-start;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.max-h-400{max-height:400px}.max-w-600{max-width:600px}.spinner{-webkit-animation:border-rotate 1s linear infinite;animation:border-rotate 1s linear infinite;z-index:2;position:absolute;top:50%;left:50%;margin:-10px 0 0 -10px;width:20px;height:20px}.spinner circle{stroke:currentColor;stroke-linecap:round;-webkit-animation:border-dash 1.5s ease-in-out infinite;animation:border-dash 1.5s ease-in-out infinite}.fade-in{-webkit-animation:fade-in .15s ease-out;animation:fade-in .15s ease-out}.fade-in-down{-webkit-animation:fade-in-down .15s ease-out;animation:fade-in-down .15s ease-out}.cv-skeleton{overflow:hidden;display:inline-block;position:relative;border-radius:4px;background-color:rgba(0,34,51,.05)}.cv-skeleton:before{position:absolute;height:100%;top:0;-webkit-animation:cv-skeleton-progress 1.5s ease-in-out infinite;animation:cv-skeleton-progress 1.5s ease-in-out infinite;content:"";width:500px;left:-500px;background-image:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,0)),color-stop(hsla(0,0%,100%,.6)),to(hsla(0,0%,100%,0)));background-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.6),hsla(0,0%,100%,0))}@keyframes cv-skeleton-progress{0%{left:-500px}to{left:100%}}.fa-lg{line-height:1.05em}.z-a-lot{z-index:999999}button:focus{outline:revert}',Vb(null!=e?e:document.head,t),n&&Vb(document.head,Wb),l(null!=n?n:o.current)}}),[]),e.createElement("div",{ref:o,style:{display:"flex",height:"100%"},"data-testid":"root"},c&&e.createElement(Ra,{value:c},e.createElement(Hb,null,h(e.createElement(Yb,null,r),c))))}function Vb(e,t){var n=document.createElement("style"),r=document.createTextNode(t);n.appendChild(r),e.appendChild(n)}var $b,Wb="\n@font-face {\n font-family: 'Source Sans Pro';\n font-style: normal;\n font-weight: 400;\n src: local('Source Sans Pro Regular'),\n local('SourceSansPro-Regular'),\n url('".concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/includes/fonts/SourceSans/sourcesanspro-regular.woff2') format('woff2'),\n url('").concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/includes/fonts/SourceSans/sourcesanspro-regular.woff') format('woff');\n }\n \n @font-face {\n font-family: \"FontAwesome\";\n src: url(\"").concat("https://d8ejoa1fys2rk.cloudfront.net",'/5.0.5/includes/fonts/fontawesome-webfont.woff2?v=4.7.0") format("woff2"),\n url("').concat("https://d8ejoa1fys2rk.cloudfront.net",'/5.0.5/includes/fonts/fontawesome-webfont.woff?v=4.7.0") format("woff");\n font-weight: 400;\n font-style: normal;\n }\n'),Yb=Ul.div($b||($b=Sa(["\n\tfont-family: 'Source Sans Pro';\n"],["\n\tfont-family: 'Source Sans Pro';\n"]))),Gb=t("parent");function qb(t){return"parent"===o(Gb)?e.createElement(Gb.Provider,{value:"child"},e.createElement(Ub,null,t.children)):e.createElement(e.Fragment,null,t.children)}var Kb=t(null),Xb=function(){return o(Kb)};function Zb(t){var o=t.children,a=t.isOpen,c=void 0===a||a,l=t.style,s=t.onClose,u=void 0===s?function(){}:s,d=n(null),p=d[0],f=d[1],m=r((function(){return{onClose:u}}),[u]);return i((function(){var e=document.createElement("div");return document.body.appendChild(e),f(e),function(){e.remove()}}),[]),c?e.createElement(Kb.Provider,{value:m},p&&e.createElement(e.Fragment,null,h(e.createElement(qb,null,e.createElement(ew,{className:"z-a-lot"},e.createElement(tw,{style:l,"data-testid":"modal"},o))),p))):null}var Jb,Qb,ew=Ul.div(Jb||(Jb=Sa(["\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tpadding: ",";\n\tposition: fixed;\n\tanimation: var(--fade-in-down);\n\tbackground: ",";\n"],["\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tpadding: ",";\n\tposition: fixed;\n\tanimation: var(--fade-in-down);\n\tbackground: ",";\n"])),Sm.spacing5,Sm.gray100a),tw=Ul.div(Qb||(Qb=Sa(["\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\theight: 100%;\n\twidth: 100%;\n\toverflow: hidden;\n\tborder-radius: ",";\n"],["\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\theight: 100%;\n\twidth: 100%;\n\toverflow: hidden;\n\tborder-radius: ",";\n"])),Sm.radiusBase);function nw(t){var n=Xb();return e.createElement(iw,{className:"cv-root"},null!==n&&e.createElement(aw,{variant:"clean",onClick:n.onClose,title:Ry("Close"),icon:e.createElement(Hp,null)}),e.createElement("div",{className:"flex flex-col"},t.children))}var rw,ow,iw=Ul.div(rw||(rw=Sa(["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tjustify-content: center;\n\tposition: relative;\n\tbackground-color: ",";\n"],["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tjustify-content: center;\n\tposition: relative;\n\tbackground-color: ",";\n"])),Sm.gray10),aw=Ul(Gm)(ow||(ow=Sa(["\n\tposition: absolute;\n\ttop: ",";\n\tright: ",";\n"],["\n\tposition: absolute;\n\ttop: ",";\n\tright: ",";\n"])),Sm.spacing4,Sm.spacing5);function cw(){return e.createElement(e.Fragment,null,e.createElement("svg",{viewBox:"0 0 479.438 361.46",className:"w-10 mb-8"},e.createElement("path",{d:"\n\t\t\t\t\t\tM365.18 0a114 114 0 00-85.9 38.93l-153.18 153-43.82-43.84a45.18 45.18\n\t\t\t\t\t\t0 01-11.54-30.75 46.06 46.06 0 0146.34-46.08 44.81 44.81 0 0130.42\n\t\t\t\t\t\t11.49c2.73 2.42 10.48 10.43 10.48 10.43l48.5-48.51-14-14C172.19 11.43\n\t\t\t\t\t\t144.48.03 114.3.03 51.24.03 0 51.03 0 114.1a115.08 115.08 0 0028.09\n\t\t\t\t\t\t75.46l98.35 98.77 205.53-205.5a44.78 44.78 0 0130.58-11.57 46.07 46.07 0\n\t\t\t\t\t\t0146.06 46.43 45.07 45.07 0 01-11.52 30.5l-136.6 136.57a28.73 28.73 0\n\t\t\t\t\t\t01-20.83 8.58 28.29 28.29 0 01-20.51-8.92l-10.27-10.16-48.28 48.28 9.88\n\t\t\t\t\t\t9.72a97.06 97.06 0 0069.38 29.2h.07a96 96 0\n\t\t\t\t\t\t0069-29.13l142.35-142.67A114.47 114.47 0 00365.18 0z",fill:"#0af"})),e.createElement("h1",{className:"text-xl mb-2"},Ry("Connect your brand portal")))}function lw(t){var n=ob("w-6 h-6 text-body-300",t.className);return e.createElement("div",{"data-testid":"spinner",className:n},e.createElement("svg",{className:"spinner",viewBox:"0 0 20 20"},e.createElement("circle",{cx:"10",cy:"10",r:"8",fill:"none",strokeWidth:"3"})))}function sw(t){var n=t.status,r=t.isReadOnly,o=t.value,i=t.onChange,a=t.onSubmit;return e.createElement(pw,null,e.createElement(Rv,{type:"url",value:o,placeholder:"yourdomain.bynder.com",label:Ry("Enter the portal domain"),onChange:i,onKeyDown:function(e){"valid"===n&&13===e.keyCode&&a()},isInvalid:"invalid"===n,helperText:"invalid"===n&&Ry("This portal domain does not exist"),hasClearButton:"validating"!==n&&!r,iconRight:"validating"===n?e.createElement(fw,{role:"alert","aria-live":"polite"},e.createElement(lw,{className:"relative right-0"})):void 0,isDisabled:r,"data-testid":"login-input"}))}var uw,dw,pw=Ul.div(uw||(uw=Sa(["\n\tmargin: "," 0;\n\twidth: 320px;\n"],["\n\tmargin: "," 0;\n\twidth: 320px;\n"])),Sm.spacing4),fw=Ul.div(dw||(dw=Sa(["\n\theight: 100%;\n\tdisplay: flex;\n\talign-items: center;\n"],["\n\theight: 100%;\n\tdisplay: flex;\n\talign-items: center;\n"])));function mw(t){return e.createElement(Gm,{variant:"primary",isDisabled:!t.isValidDomain||t.isSubmitting,onClick:t.onClick,isLoading:t.isSubmitting,"data-testid":"login-button"},Ry("Connect"))}function hw(t){return e.createElement(nw,null,e.createElement(cw,null),e.createElement(sw,{value:t.domainValue,isReadOnly:!1===t.isEditable||t.isSubmitting,onChange:t.onChangeDomain,onSubmit:t.onSubmit,status:t.domainStatus}),e.createElement(mw,{isValidDomain:"valid"===t.domainStatus,isSubmitting:t.isSubmitting,onClick:t.onSubmit}))}var gw=function(t){function n(e){var n=t.call(this,e)||this;return n.state={error:null},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ba(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(n,t),n.getDerivedStateFromError=function(e){return{error:e}},n.prototype.render=function(){var t=this;return this.state.error?e.createElement(eb,{error:this.state.error,onRetry:function(){return t.setState({error:null})}}):this.props.children},n}(e.Component);function vw(){return e.createElement("div",{role:"alert","aria-live":"polite",className:"bg-ui-0 w-full h-full"}," ",e.createElement(lw,null)," ")}var yw=t(null);function bw(t){var r,o,c,l,s,u,d,p,f;Fy(null!==(r=t.language)&&void 0!==r?r:"en_US");var m=function(){var e,t,r=n(void 0),o=r[0],c=r[1],l=n(null!==(e=localStorage.getItem("cvrt"))&&void 0!==e?e:void 0),s=l[0],u=l[1],d=n(null!==(t=localStorage.getItem("cvad"))&&void 0!==t?t:void 0),p=d[0],f=d[1],m=n(w()),h=m[0],g=m[1],v=a();function y(e){c((function(){return e.getAccessToken})),u(e.refreshToken),f(e.accountDomain),g(w(e.getAccessToken,e.refreshToken)),e.accountDomain&&localStorage.setItem("cvad",e.accountDomain),e.refreshToken&&localStorage.setItem("cvrt",e.refreshToken),v.current&&clearTimeout(v.current),e.expiresIn&&(v.current=setTimeout((function(){c(void 0)}),1e3*e.expiresIn))}function b(){var e;c(void 0),u(void 0),f(null!==(e=localStorage.getItem("cvad"))&&void 0!==e?e:void 0),g("not-authenticated"),localStorage.removeItem("cvrt"),v.current&&clearTimeout(v.current)}function w(e,t){return void 0===e&&(e=o),void 0===t&&(t=s),void 0!==e?"authenticated":void 0!==t?"refreshing":"not-authenticated"}return i((function(){return function(){v.current&&clearTimeout(v.current)}}),[]),i((function(){o&&o()||!s||!p||(g("refreshing"),function(e,t){return Ea(this,void 0,void 0,(function(){var n,r,o,i;return Ca(this,(function(a){switch(a.label){case 0:n=Rb(t)+"token",r=new URLSearchParams({client_id:zb,refresh_token:e,grant_type:"refresh_token"}),a.label=1;case 1:return a.trys.push([1,4,,5]),[4,fetch(n,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:r})];case 2:return(o=a.sent()).ok?[4,o.json()]:[2,Eb("Failed to fetch refresh token: ".concat(o.status))];case 3:return[2,xb({accessToken:(i=a.sent()).access_token,expiresIn:i.expires_in})];case 4:return[2,Eb(a.sent().toString())];case 5:return[2]}}))}))}(s,p).then((function(e){Cb(e)?y({getAccessToken:function(){return e.value.accessToken},expiresIn:e.value.expiresIn,refreshToken:s,accountDomain:p}):(Oa.error(e.error),b())})))}),[o,s,p]),[{getAccessToken:o,accountDomain:p,status:h},y,b]}(),h=m[0],g=m[1],v=m[2],y=function(e){var t=n(null!=e?e:""),r=t[0],o=t[1],c=n(e?"validating":"empty"),l=c[0],s=c[1],u=a();return i((function(){if(r){var e=!1;return u.current=setTimeout((function(){(function(e){return Ea(this,void 0,void 0,(function(){var t,n,r;return Ca(this,(function(o){switch(o.label){case 0:t=Sb(e.trim())+"feeds/media/is-bynder-portal/",o.label=1;case 1:return o.trys.push([1,4,,5]),[4,fetch(t)];case 2:return[4,(n=o.sent()).json()];case 3:return r=o.sent(),200===n.status&&"application/json;charset=UTF-8"===n.headers.get("Content-Type")?[2,r.webdam?"webdam":"bynder"]:[2,"invalid"];case 4:return o.sent(),[2,"invalid"];case 5:return[2]}}))}))})(r).then((function(t){e||(s("invalid"!==t?"valid":"invalid"),localStorage.setItem("cvp",t))}))}),1e3),function(){e=!0}}}),[r]),[r,function(e){u.current&&clearTimeout(u.current),o(e),s(""===e?"empty":"validating")},l]}(null!==(c=null===(o=t.portal)||void 0===o?void 0:o.url)&&void 0!==c?c:h.accountDomain),b=y[0],w=y[1],x=y[2],E=n(!1),C=E[0],k=E[1];i((function(){var e,n;(null===(e=t.authentication)||void 0===e?void 0:e.hideLogout)&&!(null===(n=t.authentication)||void 0===n?void 0:n.getAccessToken)&&Oa.error("The hideLogout property can only be used in combination with getAccessToken property")}),[null===(l=t.authentication)||void 0===l?void 0:l.hideLogout,null===(s=t.authentication)||void 0===s?void 0:s.getAccessToken]),i((function(){var e,n;(null===(e=t.authentication)||void 0===e?void 0:e.getAccessToken)&&g({getAccessToken:t.authentication.getAccessToken,accountDomain:null===(n=t.portal)||void 0===n?void 0:n.url})}),[null===(u=t.authentication)||void 0===u?void 0:u.getAccessToken]),i((function(){var e=!0;return!0===C&&function(e){return Ea(this,void 0,void 0,(function(){var t,n,r,o,i,a,c,l,s,u,d;return Ca(this,(function(p){switch(p.label){case 0:t=Bb(),p.label=1;case 1:return p.trys.push([1,3,,4]),[4,Tb(t)];case 2:return n=p.sent(),[3,4];case 3:return[2,Eb(p.sent().toString())];case 4:return f=n,r=btoa(String.fromCharCode.apply(null,Array.from(new Uint8Array(f)))).replace(/\+/g,"-").replace(/\//g,"_").replace(/[=]+$/,""),o=Bb(),i=function(e,t,n){var r={client_id:zb,code_challenge:e,code_challenge_method:"S256",redirect_uri:Nb,response_type:"code",scope:Ob.join(" "),domain:"",state:t},o="auth?";"webdam"===Lb()&&(o="authorize?",delete r.scope,r.domain=n);var i=new URLSearchParams(r);return Rb(n)+o+i}(r,o,e),[4,Fb(i)];case 5:return kb(a=p.sent())?[2,a]:a.value.state!==o||null===a.value.code?[2,Eb("Error logging in")]:[4,Ab(a.value.code,t,e)];case 6:return kb(c=p.sent())?[2,c]:(l=c.value,s=l.refreshToken,u=l.accessToken,d=l.expiresIn,[2,xb({accessToken:u,expiresIn:parseFloat(d),refreshToken:s})])}var f}))}))}(b).then((function(t){e&&(function(e){if(Cb(e)){var t=e.value,n=t.accessToken,r=t.refreshToken,o=t.expiresIn;g({getAccessToken:function(){return n},refreshToken:r,expiresIn:o,accountDomain:b})}else Oa.error(e.error)}(t),k(!1))})),function(){e=!1}}),[C,b]);var S=wa(wa({},h),{logout:function(){v()},hideLogout:!!(null===(d=t.authentication)||void 0===d?void 0:d.getAccessToken)&&t.authentication.hideLogout});switch(h.status){case"authenticated":return e.createElement(yw.Provider,{value:S},t.children);case"not-authenticated":return e.createElement(qb,null,e.createElement(hw,{domainValue:b,domainStatus:x,onChangeDomain:w,isSubmitting:C,isEditable:null===(f=null===(p=t.portal)||void 0===p?void 0:p.editable)||void 0===f||f,onSubmit:function(){k(!0)}}));case"refreshing":return e.createElement(vw,null)}}var ww=function(t){return e.createElement(gw,null,e.createElement(bw,wa({},t)))},xw=function(){return o(yw)},Ew="\nfragment DisplayAsset on Asset {\n __typename\n id\n derivatives {\n thumbnail\n }\n extensions\n name\n url\n isArchived\n isWatermarked\n\tisLimitedUse\n\tfiles\n\tmetaproperties {\n\t\tnodes {\n\t\t id\n\t\t label(language: $language)\n\t\t showInGridView\n\t\t showInListView\n\t\t options {\n\t\t\tid\n\t\t\tlabel(language: $language)\n\t\t\tassetCount\n\t\t }\n\t\t}\n\t}\n}",Cw="\n query searchAssets($filter: AssetFilter!, $after: Cursor, $orderBy: AssetOrder!, $language: String) {\n searchAssets(filter: $filter) {\n assets(after: $after, first: 50, orderBy: $orderBy) {\n nodes {\n __typename\n ...DisplayAsset\n }\n\t\t\t\ttotalCount\n\t\t\t\tpageInfo {\n\t\t\t\t\tendCursor\n\t\t\t\t\thasNextPage\n }\n }\n }\n }\n ".concat(Ew,"\n");function kw(e){var t,r,o,a,c,l=this,s=xw(),u=n({tag:"Loading",value:null}),d=u[0],p=u[1],f=!1,m=function(t){return Ea(l,void 0,void 0,(function(){var n,r;return Ca(this,(function(o){switch(o.label){case 0:return p((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),n=Sw(e,null!=t?t:null),[4,Ib(Cw,n,s)];case 1:return r=o.sent(),f||(kb(r)?p({tag:"Failure",value:r.error}):h(r,t)),[2]}}))}))},h=function(e,t){_w(d)&&t?p((function(t){var n,r,o=null!==(r=null===(n=_w(t))||void 0===n?void 0:n.nodes)&&void 0!==r?r:[];return{tag:"Loaded",value:{searchAssets:{assets:wa(wa({},e.value.searchAssets.assets),{nodes:ka(ka([],o,!0),e.value.searchAssets.assets.nodes,!0)})}}}})):p({tag:"Loaded",value:e.value})};return i((function(){return m(),function(){f=!0}}),[null===(t=e.filter)||void 0===t?void 0:t.assetTypes,null===(r=e.filter)||void 0===r?void 0:r.metaproperties,null===(o=e.filter)||void 0===o?void 0:o.tags,null===(a=e.filter)||void 0===a?void 0:a.isLimited,e.collection,e.orderBy,e.searchTerm,e.language]),{data:d,executeQuery:function(){return m()},isLoading:!d||"Loading"===d.tag,loadMore:function(){var e;return m(null===(e=_w(d))||void 0===e?void 0:e.pageInfo.endCursor)},hasNextPage:!!(null===(c=_w(d))||void 0===c?void 0:c.pageInfo.hasNextPage)}}var Sw=function(e,t){var n,r,o,i,a,c=e.filter,l=e.predefinedFilter,s=e.collection,u=e.orderBy,d=e.allAssetTypes,p=e.searchTerm,f=e.language,m=(null===(n=null==c?void 0:c.assetTypes)||void 0===n?void 0:n.length)?c.assetTypes:null==l?void 0:l.assetType_in;return{orderBy:u,filter:{collectionId:null!==(r=null==s?void 0:s.id)&&void 0!==r?r:null==l?void 0:l.collectionId,assetType_in:null!=m?m:d,metapropertyOptionId_in:null!==(o=Iw(null==c?void 0:c.metaproperties))&&void 0!==o?o:null==l?void 0:l.metapropertyOptionId_in,searchTerm:null!==(i=null!=p?p:null==l?void 0:l.searchTerm)&&void 0!==i?i:null,tagNames_in:null!==(a=null==c?void 0:c.tags)&&void 0!==a?a:null==l?void 0:l.tagNames_in,isLimitedUse:null==c?void 0:c.isLimited},after:t,language:f}},_w=function(e,t){var n,r=null!=t?t:e;if("Failure"!==r.tag)return null===(n=r.value)||void 0===n?void 0:n.searchAssets.assets},Iw=function(e){return e?e.map((function(e){return e.id})):null};function Tw(e,t,n){return Ea(this,void 0,void 0,(function(){var r;return Ca(this,(function(o){switch(o.label){case 0:return[4,Ib("\n query getAssetsById($ids: [ID!]!, $language: String) {\n nodes(ids: $ids) {\n __typename\n id\n ...on Asset {\n ...DisplayAsset\n files\n }\n }\n }\n ".concat(Ew),{ids:e,language:n},t)];case 1:return kb(r=o.sent())?[2,r]:[2,xb(r.value.nodes)]}}))}))}var Bw="object"==typeof g&&g&&g.Object===Object&&g,zw=Bw,Pw="object"==typeof self&&self&&self.Object===Object&&self,Nw=zw||Pw||Function("return this")(),Dw=Nw.Symbol,Ow=Dw,Aw=Object.prototype,Rw=Aw.hasOwnProperty,Lw=Aw.toString,Fw=Ow?Ow.toStringTag:void 0,Mw=Object.prototype.toString,jw=function(e){var t=Rw.call(e,Fw),n=e[Fw];try{e[Fw]=void 0;var r=!0}catch(e){}var o=Lw.call(e);return r&&(t?e[Fw]=n:delete e[Fw]),o},Hw=Dw?Dw.toStringTag:void 0,Uw=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Hw&&Hw in Object(e)?jw(e):function(e){return Mw.call(e)}(e)},Vw=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},$w=Uw,Ww=Vw,Yw=Nw["__core-js_shared__"],Gw=function(){var e=/[^.]+$/.exec(Yw&&Yw.keys&&Yw.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),qw=Function.prototype.toString,Kw=function(e){if(null!=e){try{return qw.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Xw=function(e){if(!Ww(e))return!1;var t=$w(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Zw=function(e){return!!Gw&&Gw in e},Jw=Vw,Qw=Kw,ex=/^\[object .+?Constructor\]$/,tx=Function.prototype,nx=Object.prototype,rx=tx.toString,ox=nx.hasOwnProperty,ix=RegExp("^"+rx.call(ox).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ax=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Jw(e)||Zw(e))&&(Xw(e)?ix:ex).test(Qw(e))}(n)?n:void 0},cx=ax(Nw,"DataView"),lx=ax(Nw,"Map"),sx=ax(Nw,"Promise"),ux=ax(Nw,"Set"),dx=ax(Nw,"WeakMap"),px=Uw,fx=Kw,mx=fx(cx),hx=fx(lx),gx=fx(sx),vx=fx(ux),yx=fx(dx),bx=px;(cx&&"[object DataView]"!=bx(new cx(new ArrayBuffer(1)))||lx&&"[object Map]"!=bx(new lx)||sx&&"[object Promise]"!=bx(sx.resolve())||ux&&"[object Set]"!=bx(new ux)||dx&&"[object WeakMap]"!=bx(new dx))&&(bx=function(e){var t=px(e),n="[object Object]"==t?e.constructor:void 0,r=n?fx(n):"";if(r)switch(r){case mx:return"[object DataView]";case hx:return"[object Map]";case gx:return"[object Promise]";case vx:return"[object Set]";case yx:return"[object WeakMap]"}return t});var wx,xx=Uw,Ex=function(e){return null!=e&&"object"==typeof e},Cx=Object.prototype;Cx.hasOwnProperty,Cx.propertyIsEnumerable,wx=function(){return arguments}(),Ex(wx)&&xx(wx);var kx={exports:{}},Sx=function(){return!1};!function(e,t){var n=Nw,r=Sx,o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,c=(a?a.isBuffer:void 0)||r;e.exports=c}(kx,kx.exports);var _x={exports:{}};!function(e,t){var n=Bw,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,a=function(){try{return o&&o.require&&o.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}(_x,_x.exports);var Ix={},Tx={"text/plain":"Text","text/html":"Url",default:"Text"};function Bx(e){return Bx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bx(e)}Object.defineProperty(Ix,"__esModule",{value:!0}),Ix.CopyToClipboard=void 0;var zx=Dx(e),Px=Dx((function(e,t){var n,r,o,i,a,c,l=!1;t||(t={}),n=t.debug||!1;try{if(o=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}(),i=document.createRange(),a=document.getSelection(),(c=document.createElement("span")).textContent=e,c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=Tx[t.format]||Tx.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),i.selectNodeContents(c),a.addRange(i),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(o){n&&console.error("unable to copy using execCommand: ",o),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(o){n&&console.error("unable to copy using clipboardData: ",o),n&&console.error("falling back to prompt"),r=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(r,e)}}finally{a&&("function"==typeof a.removeRange?a.removeRange(i):a.removeAllRanges()),c&&document.body.removeChild(c),o()}return l})),Nx=["text","onCopy","options","children"];function Dx(e){return e&&e.__esModule?e:{default:e}}function Ox(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ax(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ox(Object(n),!0).forEach((function(t){Ux(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ox(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lx(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fx(e,t){return Fx=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Fx(e,t)}function Mx(e,t){if(t&&("object"===Bx(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return jx(e)}function jx(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hx(e){return Hx=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Hx(e)}function Ux(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vx=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fx(e,t)}(a,zx.default.PureComponent);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Hx(r);if(o){var n=Hx(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Mx(this,e)});function a(){var e;Rx(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ux(jx(e=i.call.apply(i,[this].concat(n))),"onClick",(function(t){var n=e.props,r=n.text,o=n.onCopy,i=n.children,a=n.options,c=zx.default.Children.only(i),l=(0,Px.default)(r,a);o&&o(r,l),c&&c.props&&"function"==typeof c.props.onClick&&c.props.onClick(t)})),e}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.children,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Nx),r=zx.default.Children.only(t);return zx.default.cloneElement(r,Ax(Ax({},n),{},{onClick:this.onClick}))}}])&&Lx(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}();Ix.CopyToClipboard=Vx,Ux(Vx,"defaultProps",{onCopy:void 0,options:void 0});var $x=Ix.CopyToClipboard;$x.CopyToClipboard=$x;var Wx=$x;let Yx=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};function Gx(e){return Hd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 22l-4-4h8l-4 4zm0-20l4 4H8l4-4zm0 12a2 2 0 1 1 0-4 2 2 0 0 1 0 4zM2 12l4-4v8l-4-4zm20 0l-4 4V8l4 4z"}}]}]})(e)}var qx={exports:{}},Kx=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}},Xx=Kx,Zx=Object.prototype.toString;function Jx(e){return"[object Array]"===Zx.call(e)}function Qx(e){return void 0===e}function eE(e){return null!==e&&"object"==typeof e}function tE(e){if("[object Object]"!==Zx.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function nE(e){return"[object Function]"===Zx.call(e)}function rE(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),Jx(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var oE={isArray:Jx,isArrayBuffer:function(e){return"[object ArrayBuffer]"===Zx.call(e)},isBuffer:function(e){return null!==e&&!Qx(e)&&null!==e.constructor&&!Qx(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:eE,isPlainObject:tE,isUndefined:Qx,isDate:function(e){return"[object Date]"===Zx.call(e)},isFile:function(e){return"[object File]"===Zx.call(e)},isBlob:function(e){return"[object Blob]"===Zx.call(e)},isFunction:nE,isStream:function(e){return eE(e)&&nE(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:rE,merge:function e(){var t={};function n(n,r){tE(t[r])&&tE(n)?t[r]=e(t[r],n):tE(n)?t[r]=e({},n):Jx(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)rE(arguments[r],n);return t},extend:function(e,t,n){return rE(t,(function(t,r){e[r]=n&&"function"==typeof t?Xx(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}},iE=oE;function aE(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var cE=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(iE.isURLSearchParams(t))r=t.toString();else{var o=[];iE.forEach(t,(function(e,t){null!=e&&(iE.isArray(e)?t+="[]":e=[e],iE.forEach(e,(function(e){iE.isDate(e)?e=e.toISOString():iE.isObject(e)&&(e=JSON.stringify(e)),o.push(aE(t)+"="+aE(e))})))})),r=o.join("&")}if(r){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e},lE=oE;function sE(){this.handlers=[]}sE.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},sE.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},sE.prototype.forEach=function(e){lE.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var uE=sE,dE=oE,pE=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e},fE=pE,mE=function(e,t,n,r,o){var i=new Error(e);return fE(i,t,n,r,o)},hE=mE,gE=oE,vE=gE.isStandardBrowserEnv()?{write:function(e,t,n,r,o,i){var a=[];a.push(e+"="+encodeURIComponent(t)),gE.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),gE.isString(r)&&a.push("path="+r),gE.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},yE=oE,bE=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],wE=oE,xE=wE.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=wE.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0},EE=oE,CE=vE,kE=cE,SE=xE,_E=mE,IE=oE,TE=function(e,t){dE.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))},BE=pE,zE={"Content-Type":"application/x-www-form-urlencoded"};function PE(e,t){!IE.isUndefined(e)&&IE.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var NE,DE={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(NE=function(e){return new Promise((function(t,n){var r=e.data,o=e.headers,i=e.responseType;EE.isFormData(r)&&delete o["Content-Type"];var a=new XMLHttpRequest;if(e.auth){var c=e.auth.username||"",l=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.Authorization="Basic "+btoa(c+":"+l)}var s,u,d=(s=e.baseURL,u=e.url,s&&!/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(u)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(s,u):u);function p(){if(a){var r="getAllResponseHeaders"in a?function(e){var t,n,r,o={};return e?(yE.forEach(e.split("\n"),(function(e){if(r=e.indexOf(":"),t=yE.trim(e.substr(0,r)).toLowerCase(),n=yE.trim(e.substr(r+1)),t){if(o[t]&&bE.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}(a.getAllResponseHeaders()):null,o={data:i&&"text"!==i&&"json"!==i?a.response:a.responseText,status:a.status,statusText:a.statusText,headers:r,config:e,request:a};(function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(hE("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)})(t,n,o),a=null}}if(a.open(e.method.toUpperCase(),kE(d,e.params,e.paramsSerializer),!0),a.timeout=e.timeout,"onloadend"in a?a.onloadend=p:a.onreadystatechange=function(){a&&4===a.readyState&&(0!==a.status||a.responseURL&&0===a.responseURL.indexOf("file:"))&&setTimeout(p)},a.onabort=function(){a&&(n(_E("Request aborted",e,"ECONNABORTED",a)),a=null)},a.onerror=function(){n(_E("Network Error",e,null,a)),a=null},a.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(_E(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",a)),a=null},EE.isStandardBrowserEnv()){var f=(e.withCredentials||SE(d))&&e.xsrfCookieName?CE.read(e.xsrfCookieName):void 0;f&&(o[e.xsrfHeaderName]=f)}"setRequestHeader"in a&&EE.forEach(o,(function(e,t){void 0===r&&"content-type"===t.toLowerCase()?delete o[t]:a.setRequestHeader(t,e)})),EE.isUndefined(e.withCredentials)||(a.withCredentials=!!e.withCredentials),i&&"json"!==i&&(a.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&a.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&a.upload&&a.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){a&&(a.abort(),n(e),a=null)})),r||(r=null),a.send(r)}))}),NE),transformRequest:[function(e,t){return TE(t,"Accept"),TE(t,"Content-Type"),IE.isFormData(e)||IE.isArrayBuffer(e)||IE.isBuffer(e)||IE.isStream(e)||IE.isFile(e)||IE.isBlob(e)?e:IE.isArrayBufferView(e)?e.buffer:IE.isURLSearchParams(e)?(PE(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):IE.isObject(e)||t&&"application/json"===t["Content-Type"]?(PE(t,"application/json"),function(e,t,n){if(IE.isString(e))try{return(0,JSON.parse)(e),IE.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||r&&IE.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw BE(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};IE.forEach(["delete","get","head"],(function(e){DE.headers[e]={}})),IE.forEach(["post","put","patch"],(function(e){DE.headers[e]=IE.merge(zE)}));var OE=DE,AE=oE,RE=OE,LE=function(e){return!(!e||!e.__CANCEL__)},FE=oE,ME=function(e,t,n){var r=this||RE;return AE.forEach(n,(function(n){e=n.call(r,e,t)})),e},jE=LE,HE=OE;function UE(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var VE=oE,$E=function(e,t){t=t||{};var n={},r=["url","method","data"],o=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function c(e,t){return VE.isPlainObject(e)&&VE.isPlainObject(t)?VE.merge(e,t):VE.isPlainObject(t)?VE.merge({},t):VE.isArray(t)?t.slice():t}function l(r){VE.isUndefined(t[r])?VE.isUndefined(e[r])||(n[r]=c(void 0,e[r])):n[r]=c(e[r],t[r])}VE.forEach(r,(function(e){VE.isUndefined(t[e])||(n[e]=c(void 0,t[e]))})),VE.forEach(o,l),VE.forEach(i,(function(r){VE.isUndefined(t[r])?VE.isUndefined(e[r])||(n[r]=c(void 0,e[r])):n[r]=c(void 0,t[r])})),VE.forEach(a,(function(r){r in t?n[r]=c(e[r],t[r]):r in e&&(n[r]=c(void 0,e[r]))}));var s=r.concat(o).concat(i).concat(a),u=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===s.indexOf(e)}));return VE.forEach(u,l),n},WE={name:"axios",version:"0.21.4",description:"Promise based HTTP client for the browser and node.js",main:"index.js",scripts:{test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository:{type:"git",url:"https://github.com/axios/axios.git"},keywords:["xhr","http","ajax","promise","node"],author:"Matt Zabriskie",license:"MIT",bugs:{url:"https://github.com/axios/axios/issues"},homepage:"https://axios-http.com",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr:"dist/axios.min.js",unpkg:"dist/axios.min.js",typings:"./index.d.ts",dependencies:{"follow-redirects":"^1.14.0"},bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}]},YE={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){YE[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var GE={},qE=WE.version.split(".");function KE(e,t){for(var n=t?t.split("."):qE,r=e.split("."),o=0;o<3;o++){if(n[o]>r[o])return!0;if(n[o]<r[o])return!1}return!1}YE.transitional=function(e,t,n){var r=t&&KE(t);function o(e,t){return"[Axios v"+WE.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,a){if(!1===e)throw new Error(o(i," has been removed in "+t));return r&&!GE[i]&&(GE[i]=!0,console.warn(o(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,a)}};var XE={isOlderVersion:KE,assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var c=e[i],l=void 0===c||a(c,i,e);if(!0!==l)throw new TypeError("option "+i+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:YE},ZE=oE,JE=cE,QE=uE,eC=function(e){return UE(e),e.headers=e.headers||{},e.data=ME.call(e,e.data,e.headers,e.transformRequest),e.headers=FE.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),FE.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||HE.adapter)(e).then((function(t){return UE(e),t.data=ME.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return jE(t)||(UE(e),t&&t.response&&(t.response.data=ME.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},tC=$E,nC=XE,rC=nC.validators;function oC(e){this.defaults=e,this.interceptors={request:new QE,response:new QE}}oC.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=tC(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&nC.assertOptions(t,{silentJSONParsing:rC.transitional(rC.boolean,"1.0.0"),forcedJSONParsing:rC.transitional(rC.boolean,"1.0.0"),clarifyTimeoutError:rC.transitional(rC.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!r){var a=[eC,void 0];for(Array.prototype.unshift.apply(a,n),a=a.concat(i),o=Promise.resolve(e);a.length;)o=o.then(a.shift(),a.shift());return o}for(var c=e;n.length;){var l=n.shift(),s=n.shift();try{c=l(c)}catch(e){s(e);break}}try{o=eC(c)}catch(e){return Promise.reject(e)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},oC.prototype.getUri=function(e){return e=tC(this.defaults,e),JE(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},ZE.forEach(["delete","get","head","options"],(function(e){oC.prototype[e]=function(t,n){return this.request(tC(n||{},{method:e,url:t,data:(n||{}).data}))}})),ZE.forEach(["post","put","patch"],(function(e){oC.prototype[e]=function(t,n,r){return this.request(tC(r||{},{method:e,url:t,data:n}))}}));var iC=oC;function aC(e){this.message=e}aC.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},aC.prototype.__CANCEL__=!0;var cC=aC,lC=cC;function sC(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new lC(e),t(n.reason))}))}sC.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},sC.source=function(){var e;return{token:new sC((function(t){e=t})),cancel:e}};var uC=sC,dC=oE,pC=Kx,fC=iC,mC=$E;function hC(e){var t=new fC(e),n=pC(fC.prototype.request,t);return dC.extend(n,fC.prototype,t),dC.extend(n,t),n}var gC=hC(OE);gC.Axios=fC,gC.create=function(e){return hC(mC(gC.defaults,e))},gC.Cancel=cC,gC.CancelToken=uC,gC.isCancel=LE,gC.all=function(e){return Promise.all(e)},gC.spread=function(e){return function(t){return e.apply(null,t)}},gC.isAxiosError=function(e){return"object"==typeof e&&!0===e.isAxiosError},qx.exports=gC,qx.exports.default=gC;var vC=qx.exports;function yC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yC(Object(n),!0).forEach((function(t){wC(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xC(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function EC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||kC(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function CC(e){return function(e){if(Array.isArray(e))return SC(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||kC(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kC(e,t){if(e){if("string"==typeof e)return SC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?SC(e,t):void 0}}function SC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var _C=["theme"];Ul.button.withConfig({displayName:"ButtonStyled",componentId:"sc-1kgkg60-0"})(["button&,a&{display:flex;flex-wrap:nowrap;flex:0 0 auto;white-space:nowrap;position:relative;min-width:40px;text-align:center;background-position:center;fill:currentColor;text-decoration:none;&:focus{display:flex;}}align-items:center !important;box-sizing:border-box !important;text-shadow:none !important;text-transform:none !important;font-family:"," !important;font-size:"," !important;font-weight:400 !important;line-height:"," !important;border-radius:",";outline:none !important;border:1px solid transparent !important;cursor:pointer !important;vertical-align:middle;justify-content:center;font-style:normal;transition-duration:0.1s;transition-property:background-color,border-color,box-shadow,color;&:disabled{cursor:default !important;pointer-events:none;}"," ",";",""],Sm.fontStackBase,Sm.fontSizeBase,Sm.lineHeightBase,Sm.brandRadiusBase,(function(e){return e.isFullWidth&&"width: 100%;"}),(function(e){return e.isSmall?Tl(["height:32px !important;padding:0 "," !important;font-size:"," !important;line-height:20px !important;"],Sm.spacing4,Sm.fontSize75):Tl(["height:40px !important;padding:0 "," !important;"],Sm.spacing5)}),(function(e){var t=e.theme,n=xC(e,_C);if("primary-dark"===n.variant){var r=Tl(["border-color:",";background-color:",";color:",";box-shadow:none !important;"],Sm.componentButtonPrimaryBorderActive,Sm.componentButtonPrimaryFillActive,Sm.componentButtonPrimaryColorActive);return Tl(["border-color:transparent;background-color:",";color:",";"," &:hover{border-color:",";background-color:",";color:",";box-shadow:"," !important;}&:focus{background-color:",";color:",";border-color:",";box-shadow:"," !important;}&:active{","}&:disabled{border-color:",";background-color:",";color:",";box-shadow:none !important;}"],Sm.componentButtonPrimaryFill,Sm.componentButtonPrimaryColor,n.isPressed&&r,Sm.componentButtonPrimaryBorderHover,Sm.componentButtonPrimaryFillHover,Sm.componentButtonPrimaryColorHover,Sm.elevation1,Sm.componentButtonPrimaryFillFocus,Sm.componentButtonPrimaryColorFocus,Sm.componentButtonPrimaryBorderFocus,Sm.componentButtonPrimaryFocusRing,r,Sm.componentButtonPrimaryBorderDisabled,Sm.componentButtonPrimaryFillDisabled,Sm.componentButtonPrimaryColorDisabled)}if("secondary-dark"===n.variant){var o=Tl(["border-color:transparent !important;background-color:rgba(255,255,255,0.1) !important;color:"," !important;"],t.legacy.colorTextDark);return Tl(["color:rgba(255,255,255,0.8) !important;background-color:rgba(255,255,255,0.1) !important;"," &:hover{color:"," !important;background-color:rgba(255,255,255,0.15) !important;}&:focus{border-color:rgba(255,255,255,0.15) !important;}&:active{","}&:disabled{color:rgba(255,255,255,0.3) !important;background-color:rgba(255,255,255,0.05) !important;border-color:transparent !important;box-shadow:none !important;}"],n.isPressed&&o,t.legacy.colorWhite,o)}if("clean-dark"===n.variant){var i=Tl(["border-color:transparent !important;background-color:rgba(255,255,255,0.05) !important;color:"," !important;cursor:pointer !important;"],t.legacy.colorTextDark);return Tl(["color:",";background-color:transparent !important;border-color:transparent !important;box-shadow:none !important;border-radius:"," !important;"," &:hover{color:#fff !important;background-color:rgba(255,255,255,0.05) !important;}&:focus{border-color:rgba(255,255,255,0.15) !important;}&:active{","}&:disabled{color:rgba(255,255,255,0.15) !important;background-color:transparent !important;}"],t.legacy.colorTextDarker,t.legacy.buttonBorderRadius,n.isPressed&&i,i)}return""}));var IC=Ul.div.withConfig({displayName:"Icon",componentId:"sc-1kgkg60-1"})(["height:100%;display:flex;align-items:center;"]);Ul(IC).withConfig({displayName:"LeftIcon",componentId:"sc-1kgkg60-2"})(["margin-right:",";margin-left:calc("," * -1);"],(function(e){return e.lastChild?"calc(".concat(Sm.spacing2," * -1)"):Sm.spacing3}),Sm.spacing2),Ul(IC).withConfig({displayName:"RightIcon",componentId:"sc-1kgkg60-3"})(["margin-right:calc("," * -1);margin-left:",";"],Sm.spacing2,Sm.spacing3);var TC,BC=Wl(["100%{transform:rotate(360deg);}"]),zC=Wl(["0%{stroke-dasharray:1,100;stroke-dashoffset:0;}50%{stroke-dasharray:80,100;stroke-dashoffset:-20;}100%{stroke-dasharray:80,100;stroke-dashoffset:-48;}"]);Ul.svg.withConfig({displayName:"Svg",componentId:"sc-2khuyx-0"})(["width:24px;height:24px;animation:"," 1s linear infinite;"],BC),Ul.circle.withConfig({displayName:"Circle",componentId:"sc-2khuyx-1"})(["stroke:currentColor;animation:"," 1.5s ease-in-out infinite;stroke-linecap:round;"],zC),function(e){e[e.Date=0]="Date",e[e.MultiSelect=1]="MultiSelect",e[e.Select=2]="Select",e[e.Search=3]="Search"}(TC||(TC={}));var PC,NC,DC,OC=Ul.div.withConfig({displayName:"IconContainer",componentId:"sc-16awveu-0"})(["height:0;position:absolute;bottom:32px;"]),AC=Ul(OC).withConfig({displayName:"IconRightContainer",componentId:"sc-16awveu-1"})(["right:12px;cursor:pointer;fill:",";&:focus,&:hover{fill:",";}"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive}));Ul.input.withConfig({displayName:"StyledInput",componentId:"sc-16awveu-2"})(["box-sizing:border-box;width:100%;height:40px;font-family:",";font-size:",";line-height:",";color:",";background:",";border-radius:5px;outline:none !important;border:1px solid ",";"," &::placeholder{color:",";}&:focus,&:hover{& ","{fill:"," !important;}border:1px solid ",";}",";padding-left:","px;padding-right:","px;",";"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.theme.legacy.colorText}),(function(e){return e.theme.legacy.colorBackground}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorder}),(function(e){return e.inputType===TC.Select&&"\n background: rgba(0, 34, 51, 0.03) !important;\n color: transparent !important;\n text-shadow: 0 0 0 ".concat(e.theme.legacy.colorText,";\n cursor: pointer;\n\n &:hover {\n background: rgba(0, 34, 51, 0.03) !important;\n }\n ")}),(function(e){return e.theme.legacy.colorTextDisabled}),AC,(function(e){return e.theme.legacy.colorIconActive}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorderFocus}),(function(e){return e.borderless?"\n border: none !important; /* overrides bynder-custom17 */\n &:focus, &:hover {\n border: none;\n }\n ":""}),(function(e){return e.hasLeftIcon?40:16}),(function(e){return e.hasRightIcon?40:0}),(function(e){return e.forceActive?"border: 1px solid ".concat(e.theme.legacy.colorBorderFocus):""})),Ul.label.withConfig({displayName:"Label",componentId:"sc-16awveu-3"})(["font-weight:normal;font-family:",";font-size:",";width:100%;margin-bottom:0px;"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6})),Ul.p.withConfig({displayName:"ErrorMessage",componentId:"sc-16awveu-4"})(["font-size:",";color:",";margin-bottom:0;"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.colorError})),Ul.div.withConfig({displayName:"WrapperRelative",componentId:"sc-16awveu-5"})(["position:relative;margin-top:","px;"],(function(e){return e.isLabeled?8:0})),Ul(OC).withConfig({displayName:"IconErrorContainer",componentId:"sc-16awveu-6"})(["fill:",";"],(function(e){return e.theme.legacy.colorError})),Ul(OC).withConfig({displayName:"InputTypeContainer",componentId:"sc-16awveu-7"})(["left:10px;fill:",";"],(function(e){return e.theme.legacy.colorIcon})),Ul.svg.withConfig({displayName:"Svg",componentId:"sc-16awveu-8"})(["display:inline-block,stroke-width:0,stroke:current-color,fill:current-color,font-size:32px,"]),Ul.div.withConfig({displayName:"ListContainer",componentId:"sc-16awveu-9"})(["width:",";position:fixed;padding-top:4px;z-index:10;top:",";"],(function(e){return e.width}),(function(e){return e.top})),$l(["textarea,input[type='text'],input[type='password'],input[type='datetime'],input[type='datetime-local'],input[type='date'],input[type='month'],input[type='time'],input[type='week'],input[type='number'],input[type='email'],input[type='url'],input[type='search'],input[type='tel'],input[type='color']{height:40px;line-height:",";margin-bottom:0;padding-top:0;padding-bottom:0;padding-left:","px;padding-right:","px;font-size:",";"," &::placeholder{color:",";}&:focus,&:hover{&::placeholder{color:",";}}}"],(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.hasLeftIcon?40:16}),(function(e){return e.hasRightIcon?40:0}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.error?"border: 1px solid ".concat(e.theme.legacy.colorError,";"):""}),(function(e){return e.theme.legacy.colorTextDisabled}),(function(e){return e.theme.legacy.colorTextDisabled})),function(e){e.ArrowDown="ArrowDown",e.ArrowUp="ArrowUp",e.Enter="Enter",e.Backspace="Backspace",e.Escape="Escape",e.Tab="Tab"}(PC||(PC={})),function(e){e[e.COLOR=0]="COLOR",e[e.GREYSCALE=1]="GREYSCALE",e[e.WHITE=2]="WHITE"}(NC||(NC={})),function(e){e.USER="USER",e.PROFILE="PROFILE",e.GROUP="GROUP"}(DC||(DC={})),Ul.div.withConfig({displayName:"MainContainer",componentId:"sc-167ea0r-0"})(["background-color:",";border:",";box-shadow:",";border-radius:5px;padding:8px 0;"],(function(e){return e.dark?e.theme.legacy.colorBackgroundDark:e.theme.legacy.colorBackground}),(function(e){return e.borderless?"none":"1px solid ".concat(e.theme.legacy.colorBorder)}),(function(e){return e.borderless?"none":e.theme.legacy.boxShadow}));var RC=Ul.li.withConfig({displayName:"Li",componentId:"sc-167ea0r-1"})(["display:flex;font-size:",";align-items:center;height:36px;padding:0 16px !important;"],(function(e){return e.theme.legacy.fontSizeSmall})),LC=Ul(RC).withConfig({displayName:"Item",componentId:"sc-167ea0r-2"})(["cursor:pointer;&&&{&:active,&:focus,&:hover{color:",";background-color:",";outline:none;}}"],(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorTextLightActive}),(function(e){return e.dark?e.theme.legacy.colorBackgroundDarkHover:e.theme.legacy.colorBackgroundLight}));Ul(RC).withConfig({displayName:"GroupName",componentId:"sc-167ea0r-3"})(["cursor:default;color:",";"],(function(e){return e.dark?e.theme.legacy.colorTextDarker:e.theme.legacy.colorText})),Ul(RC).withConfig({displayName:"EmptyState",componentId:"sc-167ea0r-4"})(["color:",";cursor:default;"],(function(e){return e.theme.legacy.colorText})),Ul.ul.withConfig({displayName:"Ul",componentId:"sc-167ea0r-5"})(["margin:0;padding:0;list-style-type:none;max-height:",";overflow-y:auto;","{color:",";}"],(function(e){return e.maxHeight||"350px"}),LC,(function(e){return e.dark?e.theme.legacy.colorTextDark:e.hasGroups?e.theme.legacy.colorTextLight:e.theme.legacy.colorText})),Ul.div.withConfig({displayName:"IconContainer",componentId:"sc-167ea0r-6"})(["display:flex;margin-right:8px;fill:",";"],(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorIcon})),Ul.div.withConfig({displayName:"Divider",componentId:"sc-167ea0r-7"})(["margin:8px 0;border-bottom:1px solid ",";width:100%;"],(function(e){return e.dark?e.theme.legacy.colorRichBlack30:e.theme.legacy.colorBorder})),Ul.svg.withConfig({displayName:"Svg",componentId:"sc-hfnr8h-0"})(["display:inline-block;stroke-width:0;stroke:current-color;fill:current-color;font-size:32px;"]);var FC=Ul.div.withConfig({displayName:"IconContainer",componentId:"sc-6ftogw-0"})(["height:0;position:absolute;bottom:32px;"]),MC=Ul(FC).withConfig({displayName:"IconRightContainer",componentId:"sc-6ftogw-1"})(["right:12px;cursor:",";fill:",";&:focus,&:hover{fill:",";}"],(function(e){return e.disabled?"not-allowed":"pointer"}),(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorMutedIcon}),(function(e){return e.dark?e.theme.legacy.colorTextDark:e.disabled?e.theme.legacy.colorMutedIcon:e.theme.legacy.colorMutedIconActive}));Ul.input.withConfig({displayName:"StyledInput",componentId:"sc-6ftogw-2"})(["box-sizing:border-box;width:100%;height:40px !important;font-family:",";font-size:"," !important;line-height:"," !important;color:",";cursor:",";background:",";border-radius:5px;outline:none !important;border:1px solid ",";&:focus,&:hover{& ","{fill:"," !important;}&::placeholder{color:"," !important;}","}&::placeholder{color:"," !important;}",";padding-left:","px !important;padding-right:","px !important;padding-top:0 !important;padding-bottom:0 !important;margin-bottom:0 !important;",";"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.disabled?e.theme.legacy.colorTextDisabled:e.theme.legacy.colorText}),(function(e){return e.disabled?"not-allowed":"pointer"}),(function(e){return e.disabled?Sm.gray25:e.theme.legacy.colorBackground}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorder}),MC,(function(e){return e.theme.legacy.colorMutedIconActive}),(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorTextDisabled}),(function(e){return e.error?"border: 1px solid ".concat(e.theme.legacy.colorError," !important;"):e.dark?"":e.disabled?"border: 1px solid ".concat(e.theme.legacy.colorBorder," !important;"):"border: 1px solid ".concat(e.theme.legacy.colorBorderFocus," !important;")}),(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorTextDisabled}),(function(e){return e.borderless?Tl(["border:none !important;&:focus,&:hover{border:none;}"]):""}),(function(e){return e.hasLeftIcon?40:16}),(function(e){return e.hasRightIcon?40:0}),(function(e){return e.forceActive?"border: 1px solid ".concat(e.theme.legacy.colorBorderFocus):""})),Ul.label.withConfig({displayName:"Label",componentId:"sc-6ftogw-3"})(["font-weight:normal;font-family:",";font-size:",";width:100%;margin-bottom:0px;"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6})),Ul.p.withConfig({displayName:"ErrorMessage",componentId:"sc-6ftogw-4"})(["font-size:",";color:",";margin-bottom:0;"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.colorError})),Ul.div.withConfig({displayName:"LabelContainer",componentId:"sc-6ftogw-5"})(["width:100%;"]),Ul.div.withConfig({displayName:"WrapperRelative",componentId:"sc-6ftogw-6"})(["position:relative;margin-top:","px;"],(function(e){return e.isLabeled?8:0})),Ul(FC).withConfig({displayName:"IconErrorContainer",componentId:"sc-6ftogw-7"})(["fill:",";"],(function(e){return e.theme.legacy.colorError})),Ul(FC).withConfig({displayName:"IconLeftContainer",componentId:"sc-6ftogw-8"})(["left:10px;fill:",";"],(function(e){return e.theme.legacy.colorIcon})),Ul.div.withConfig({displayName:"ListContainer",componentId:"sc-6ftogw-9"})(["position:absolute;padding-top:4px;width:100%;z-index:10;"]),Ul.div.withConfig({displayName:"SpinnerBorder",componentId:"sc-1lat4jy-0"})(["display:flex;width:24px;height:24px;justify-content:center;align-items:center;svg{animation:borderRotate 1s linear infinite;width:20px;height:20px;circle{stroke:",";stroke-linecap:round;animation:borderDash 1.5s ease-in-out infinite;}}@keyframes borderRotate{100%{transform:rotate(360deg);}}@keyframes borderDash{0%{stroke-dasharray:1,100;stroke-dashoffset:0;}50%{stroke-dasharray:80,100;stroke-dashoffset:-20;}100%{stroke-dasharray:80,100;stroke-dashoffset:-48;}}"],(function(e){switch(e.colorMode){case NC.COLOR:return e.theme.legacy.colorPrimary;case NC.WHITE:return e.theme.legacy.colorWhite30;default:return e.theme.legacy.colorRichBlack30}}));var jC=Ul.div.withConfig({displayName:"IconContainer",componentId:"sc-hv8gko-0"})(["position:absolute;height:100%;display:flex;align-items:center;"]);Ul(jC).withConfig({displayName:"IconRightContainer",componentId:"sc-hv8gko-1"})(["top:0;right:12px;",";fill:",";&:focus,&:hover{fill:",";}"],(function(e){return e.onClick&&"cursor: pointer;"}),(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive})),Ul.input.withConfig({displayName:"StyledInput",componentId:"sc-hv8gko-2"})(["box-sizing:border-box;width:100%;height:","px !important;font-family:",";font-size:"," !important;line-height:"," !important;color:",";background:",";border-radius:5px;outline:none !important;border:1px solid "," !important;&::placeholder{color:"," !important;}&:focus,&:hover:not([disabled]){&::placeholder{color:"," !important;}border:1px solid "," !important;}",";padding-left:","px !important;padding-right:","px !important;padding-top:0 !important;padding-bottom:0 !important;margin-bottom:0 !important;",";&&:disabled{background:",";border-color:"," !important;}"],(function(e){return e.small?32:40}),(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.theme.legacy.colorText}),(function(e){return e.theme.legacy.colorBackground}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorder}),(function(e){return e.theme.legacy.colorTextDisabled}),(function(e){return e.theme.legacy.colorTextDisabled}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorderFocus}),(function(e){return e.borderless?Tl(["border:none !important;&:focus,&:hover{border:none;}"]):""}),(function(e){return e.hasLeftIcon?40:16}),(function(e){return e.hasRightIcon?40:0}),(function(e){return e.forceActive&&!e.error?"border: 1px solid ".concat(e.theme.legacy.colorBorderFocus):""}),(function(e){return e.theme.legacy.colorBackgroundLight}),(function(e){return e.theme.legacy.colorBackgroundLight})),Ul.label.withConfig({displayName:"Label",componentId:"sc-hv8gko-3"})(["font-weight:normal;font-family:",";font-size:",";color:",";width:100%;margin-bottom:0px;"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.colorText})),Ul.p.withConfig({displayName:"ErrorMessage",componentId:"sc-hv8gko-4"})(["margin:4px 0 0;font-size:",";line-height:",";color:",";"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.lineHeightSmall}),(function(e){return e.theme.legacy.colorError})),Ul.div.withConfig({displayName:"LabelContainer",componentId:"sc-hv8gko-5"})(["width:100%;"]),Ul.div.withConfig({displayName:"WrapperRelative",componentId:"sc-hv8gko-6"})(["position:relative;margin-top:","px;"],(function(e){return e.isLabeled?8:0})),Ul(jC).withConfig({displayName:"IconLeftContainer",componentId:"sc-hv8gko-7"})(["top:0;left:10px;fill:",";color:",";"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIcon})),Ul.p.withConfig({displayName:"Counter",componentId:"sc-hv8gko-8"})(["position:absolute;right:0;font-size:",";color:",";margin:4px 0 0 0;text-align:right;"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.colorTextDisabled})),Ul.div.withConfig({displayName:"FixedContainer",componentId:"sc-kc8vou-0"})(["position:fixed;z-index:2;"]),Ul.div.withConfig({displayName:"StyledItemStatus",componentId:"sc-uhd8g-0"})(["padding:0 ",";color:",";"],Sm.spacing5,(function(e){return e.theme.legacy.colorRichBlack30})),Ul.div.withConfig({displayName:"StyledUserSearchContainer",componentId:"sc-uhd8g-1"})(["position:relative;"]),Ul.ul.withConfig({displayName:"StyledUserSearchDropdown",componentId:"sc-uhd8g-2"})(["display:block;box-sizing:border-box;overflow-y:auto;padding:"," 0;margin:0;border:none;border-radius:",";background-color:",";box-shadow:0 0 0 1px ",";z-index:1;&:empty{display:none;}> li{list-style:none;}"],Sm.spacing3,(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.theme.legacy.colorWhite}),(function(e){return e.theme.legacy.colorRichBlack15}));var HC=Ul.div.withConfig({displayName:"IconContainer",componentId:"sc-uhd8g-3"})(["position:absolute;height:0;right:0;bottom:32px;"]);Ul(HC).withConfig({displayName:"IconRightContainer",componentId:"sc-uhd8g-4"})(["cursor:pointer;fill:",";&:focus,&:hover{fill:",";}"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive})),Ul.div.withConfig({displayName:"Container",componentId:"sc-1ozn84q-0"})(["padding:8px 0;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;"]),Ul.div.withConfig({displayName:"InfoContainer",componentId:"sc-1ozn84q-1"})(["flex:1;margin-right:12px;color:",";min-width:0;"],(function(e){return e.isDisabled?e.theme.legacy.colorTextLight:e.theme.legacy.colorText})),Ul.div.withConfig({displayName:"NameContainer",componentId:"sc-1ozn84q-2"})(["display:flex;"]),Ul.div.withConfig({displayName:"Name",componentId:"sc-1ozn84q-3"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]),Ul.div.withConfig({displayName:"NameSmoked",componentId:"sc-1ozn84q-4"})(["color:",";margin-left:8px;"],(function(e){return e.theme.legacy.colorTextDisabled})),Ul.div.withConfig({displayName:"ExtraInfo",componentId:"sc-1ozn84q-5"})(["font-size:14px;color:",";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"],(function(e){return e.theme.legacy.colorTextLight}));var UC=Ul.div.withConfig({displayName:"LoadingPlaceholder",componentId:"sc-1ozn84q-6"})(["&:after{content:'';display:flex;width:120px;height:6px;border-radius:4px;margin:3px 0;background-color:",";}"],(function(e){return e.theme.legacy.colorRichBlack20}));Ul(UC).withConfig({displayName:"LoadingName",componentId:"sc-1ozn84q-7"})(["&:after{width:120px;background-color:",";}"],(function(e){return e.theme.legacy.colorRichBlack20})),Ul(UC).withConfig({displayName:"LoadingExtraInfo",componentId:"sc-1ozn84q-8"})(["&:after{width:80px;background-color:",";}"],(function(e){return e.theme.legacy.colorRichBlack10})),Ul.div.withConfig({displayName:"IconContainer",componentId:"sc-1ozn84q-9"})(["min-width:40px;height:40px;margin-right:8px;display:flex;align-items:center;justify-content:center;border-radius:",";background-color:",";fill:",";"],(function(e){return e.square?"5px":"50%"}),(function(e){return e.theme.legacy.colorBackgroundLight}),(function(e){return e.theme.legacy.colorBackgroundActive})),Ul.div.withConfig({displayName:"EntityListContainer",componentId:"sc-1ozn84q-10"})(["flex:1;overflow-y:auto;overflow-x:hidden;margin-top:16px;max-height:256px;"]),Ul.div.withConfig({displayName:"StyledItemCheck",componentId:"sc-ri03d3-0"})(["display:flex;width:28px;height:28px;align-items:center;justify-content:center;border-radius:50%;box-shadow:inset 0 0 0 2px ",";"," svg{","}"],(function(e){return e.theme.legacy.colorRichBlack10}),(function(e){return e.checked&&"\n background-color: ".concat(e.theme.legacy.colorPrimary,";\n box-shadow: none;\n color: ").concat(e.theme.legacy.colorWhite,";\n ")}),(function(e){return e.checked?"\n opacity: 1;\n transform: scale(1);\n ":"\n opacity: 0;\n "})),Ul.div.withConfig({displayName:"StyledEntityListContainer",componentId:"sc-ri03d3-1"})(["",""],(function(e){return e.isDisabled&&"opacity: 0.6;"}));var VC=Ul.div.withConfig({displayName:"Section",componentId:"sc-ri03d3-2"})(["margin:0 0 12px 0;list-style:none;min-width:224px;"]);Ul.div.withConfig({displayName:"SubTitle",componentId:"sc-ri03d3-3"})(["margin:8px 0 8px 0;"]),Ul.div.withConfig({displayName:"ListContent",componentId:"sc-ri03d3-4"})(["padding:8px 0;margin:0;display:flex;flex-direction:row;align-items:center;position:relative;justify-content:flex-start;"]),Ul.div.withConfig({displayName:"ListInfo",componentId:"sc-ri03d3-5"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:12px;color:",";"],(function(e){return e.theme.legacy.colorRichBlack80}));var $C=Ul.div.withConfig({displayName:"ListTitle",componentId:"sc-ri03d3-6"})(["width:100%;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]);Ul($C).withConfig({displayName:"ListSecondary",componentId:"sc-ri03d3-7"})(["font-size:14px;color:",";"],(function(e){return e.theme.legacy.colorRichBlack50})),Ul.div.withConfig({displayName:"ListActions",componentId:"sc-ri03d3-8"})(["margin-left:auto;display:flex;div + button{margin-left:8px;}"]),Ul.div.withConfig({displayName:"ListItem",componentId:"sc-ri03d3-9"})(["padding:0 16px;"," ",""],(function(e){return e.pointer&&"\n cursor: pointer;\n "}),(function(e){return e.isFocused&&"\n background-color: ".concat(e.theme.legacy.colorRichBlack03,";\n ")})),Ul.div.withConfig({displayName:"ListIcon",componentId:"sc-ri03d3-10"})(["width:48px;height:48px;margin:0 8px 0 0;border-radius:5px;position:relative;box-shadow:inset 0 0 0 1px ",";display:flex;align-items:center;justify-content:center;border-radius:50%;background-color:",";fill:",";color:",";box-shadow:none;> svg{width:24px;height:24px;}"],(function(e){return e.theme.legacy.colorRichBlack10}),(function(e){return e.theme.legacy.colorRichBlack05}),(function(e){return e.theme.legacy.colorRichBlack50}),(function(e){return e.theme.legacy.colorRichBlack50})),Ul.span.withConfig({displayName:"SpanSmoke",componentId:"sc-ri03d3-11"})(["color:",";"],(function(e){return e.theme.legacy.colorRichBlack30}));var WC,YC,GC=Ul.div.withConfig({displayName:"Icon",componentId:"sc-ri03d3-12"})(["background-color:",";width:24px;height:24px;margin:0 12px 0 0px;border-radius:5px;flex-shrink:0;img{width:24px;height:24px;margin:0 12px 0 0px;border-radius:5px;background-color:",";}"],(function(e){return!e.withImage&&(e.color||e.theme.legacy.colorRichBlack10)}),(function(e){return e.color||e.theme.legacy.colorRichBlack10})),qC=Ul.span.withConfig({displayName:"ComponentIcon",componentId:"sc-ri03d3-13"})(["display:flex;width:32px;height:32px;align-items:center;fill:",";margin-right:8px;justify-content:center;flex-shrink:0;border-radius:5px;","{margin:0;}> img{width:24px;height:24px;border-radius:5px;}"],(function(e){return e.theme.legacy.colorRichBlack30}),GC);Ul.div.withConfig({displayName:"TextEllipsis",componentId:"sc-ri03d3-14"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:initial;"]),Ul.div.withConfig({displayName:"MainContainer",componentId:"sc-ri03d3-15"})(["display:flex;flex-direction:column;max-height:100%;"]),Ul(VC).withConfig({displayName:"EntityListSection",componentId:"sc-ri03d3-16"})(["margin-right:calc("," * -1);padding-right:",";flex:1;overflow-y:auto;overflow-x:hidden;margin-top:4px;min-height:186px;max-height:256px;margin-bottom:12px;"],Sm.spacing6,Sm.spacing6),Ul.div.withConfig({displayName:"DropdownArrowIconContainer",componentId:"sc-ri03d3-17"})(["height:24px;margin:0 calc("," * -1);"],Sm.spacing2),function(e){e.PRIVATE="PRIVATE",e.RESTRICTED="RESTRICTED",e.ALL_USERS="ALL_USERS",e.PUBLIC="PUBLIC"}(WC||(WC={})),function(e){e.LEFT="left",e.RIGHT="right",e.CENTER="center",e.TOP="top"}(YC||(YC={})),Ul.div.withConfig({displayName:"Dropdown",componentId:"sc-td9xdv-0"})(["position:relative;margin-left:0px;"]);var KC=Ul.div.withConfig({displayName:"DropdownContainer",componentId:"sc-td9xdv-1"})(["top:100%;left:0;border-radius:",";background-color:",";box-shadow:0 1px 6px 0 ",";border:1px solid ",";min-width:170px;overflow:auto;background-clip:padding-box;"],(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.theme.legacy.colorWhite}),(function(e){return e.theme.legacy.colorRichBlack10}),(function(e){return e.theme.legacy.colorRichBlack05}));Ul.div.withConfig({displayName:"DropdownContent",componentId:"sc-td9xdv-2"})(["position:absolute;min-width:",";"," overflow:auto;background-color:",";box-shadow:0 1px 8px 0 ",";border-radius:",";background-clip:padding-box;z-index:100;",""],(function(e){return e.small?"148px":"200px"}),(function(e){return e.fullWidth&&"width: 100%;"}),(function(e){return e.theme.legacy.colorWhite}),(function(e){return e.theme.legacy.colorRichBlack10}),(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return function(){switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:YC.LEFT){case YC.RIGHT:return Tl(["top:110%;right:0;"]);case YC.CENTER:return Tl(["top:110%;left:50%;transform:translateX(-50%);"]);case YC.TOP:return Tl(["top:auto;bottom:110%;"]);case YC.LEFT:default:return Tl(["top:110%;left:0;"])}}(e.position)})),Ul.div.withConfig({displayName:"Entry",componentId:"sc-td9xdv-3"})(["margin:0;display:flex;flex-direction:row;align-items:center;position:relative;text-decoration:none;white-space:nowrap;","{width:24px;}"],qC);var XC=Ul.span.withConfig({displayName:"IconContainer",componentId:"sc-td9xdv-4"})(["display:flex;margin:0 -8px 0 auto;fill:",";svg{margin-left:auto;}"],(function(e){return e.theme.legacy.colorRichBlack80}));Ul.li.withConfig({displayName:"DropdownListItem",componentId:"sc-td9xdv-5"})([""," margin:0;height:36px;display:flex;flex-direction:row;align-items:center;position:relative;color:",";font-size:14px;"," &:hover{background-color:",";cursor:pointer;color:",";}list-style:none;","{fill:",";color:",";}","{margin:0 -8px 0 auto;svg{color:rgba(0,34,51,0.8);}}"],(function(e){return e.woPaddingLeft?"padding: 0 16px 0 0;":"padding: 0 16px;"}),(function(e){return e.theme.legacy.colorRichBlack50}),(function(e){return e.enabled&&"color: ".concat(e.theme.legacy.colorRichBlack80,";")}),(function(e){return e.theme.legacy.colorRichBlack03}),(function(e){return e.theme.legacy.colorRichBlack80}),qC,(function(e){return e.theme.legacy.colorRichBlack50}),(function(e){return e.theme.legacy.colorRichBlack50}),XC);var ZC=Tl(["width:32px;height:32px;display:flex;align-items:center;justify-content:center;"]),JC=Tl(["margin:0 4px 0 -8px;flex-shrink:0;border-radius:",";"],(function(e){return e.theme.legacy.buttonBorderRadius}));Ul.ul.withConfig({displayName:"DropdownList",componentId:"sc-td9xdv-6"})(["list-style:none;padding:8px 0;margin:0;hr{margin:8px 0;}",""],(function(e){return e.scrollable&&"\n max-height: 300px;\n overflow: scroll;\n "})),Ul(KC).withConfig({displayName:"CardDropdownContainer",componentId:"sc-td9xdv-7"})(["top:110%;min-width:200px;background-clip:padding-box;align-self:flex-start;min-height:8px;z-index:1;"]),Ul.span.withConfig({displayName:"CardDropdownListIcon",componentId:"sc-td9xdv-8"})([""," "," color:",";"],ZC,JC,(function(e){return e.theme.legacy.colorRichBlack50}));var QC=Ul.input.withConfig({displayName:"StyledInput",componentId:"sc-1jv4ai7-0"})(["flex-grow:2;box-sizing:border-box;height:40px;font-size:",";line-height:",";color:",";background:",";padding-left:16px;padding-right:40px;input&{\bwidth:156px;outline:none;border:none;border-radius:",";&:focus,&:hover{border:none;box-shadow:none;}}&::placeholder{color:",";}"],(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.theme.legacy.colorText}),(function(e){return e.theme.legacy.colorBackground}),(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.theme.legacy.colorTextDisabled}));Ul.div.withConfig({displayName:"WrapperRelative",componentId:"sc-1jv4ai7-1"})(["position:relative;margin-top:","px;border-radius:",";border:1px solid ",";&:focus,&:hover{border:1px solid ",";}"],(function(e){return e.isLabeled?8:0}),(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.isFocused?e.theme.legacy.colorBorderFocus:e.theme.legacy.colorBorder}),(function(e){return e.theme.legacy.colorBorderFocus})),Ul.div.withConfig({displayName:"WrapperFlex",componentId:"sc-1jv4ai7-2"})(["display:flex;align-items:center;flex-wrap:wrap;"]);var ek=Ul.div.withConfig({displayName:"IconContainer",componentId:"sc-1jv4ai7-3"})(["height:0;position:absolute;bottom:32px;"]);Ul(ek).withConfig({displayName:"IconErrorContainer",componentId:"sc-1jv4ai7-4"})(["fill:",";"],(function(e){return e.theme.legacy.colorError})),Ul(ek).withConfig({displayName:"IconRightContainer",componentId:"sc-1jv4ai7-5"})(["right:12px;cursor:pointer;fill:",";&:focus,&:hover{fill:",";}",":focus &{fill:",";}"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive}),QC,(function(e){return e.theme.legacy.colorIconActive})),Ul.label.withConfig({displayName:"Label",componentId:"sc-1jv4ai7-6"})(["font-weight:normal;font-size:",";width:100%;margin-bottom:0px;"],(function(e){return e.theme.legacy.fontSizeH6})),Ul.p.withConfig({displayName:"ErrorMessage",componentId:"sc-1jv4ai7-7"})(["font-size:",";color:",";margin-bottom:0;"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.colorError})),Ul.svg.withConfig({displayName:"Svg",componentId:"sc-1jv4ai7-8"})(["display:inline-block,stroke-width:0,stroke:current-color,fill:current-color,font-size:32px,"]),Ul.div.withConfig({displayName:"ListContainer",componentId:"sc-1jv4ai7-9"})(["width:",";position:fixed;padding-top:4px;z-index:10;top:",";"],(function(e){return e.width}),(function(e){return e.top})),Ul.div.withConfig({displayName:"ListItem",componentId:"sc-4vrawh-0"})(["padding:0 16px;cursor:pointer;",""],(function(e){return e.isFocused&&Tl(["background-color:",";"],e.theme.legacy.colorRichBlack03)})),Ul.input.withConfig({displayName:"Input",componentId:"sc-1rwvhxx-0"})(["flex-grow:2;box-sizing:border-box;height:32px;font-size:",";line-height:",";color:",";background:",";padding-left:8px;padding-right:8px;input&{width:20%;outline:none;border:none;border-radius:",";&:focus,&:hover{border:none;box-shadow:none;}}&&::placeholder{color:",";}"],(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.theme.legacy.colorText}),(function(e){return e.theme.legacy.colorBackground}),(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.theme.legacy.colorTextDisabled})),Ul.div.withConfig({displayName:"WrapperRelative",componentId:"sc-1rwvhxx-1"})(["position:relative;padding:2px;border-radius:",";border:1px solid ",";&:focus,&:hover{border:1px solid ",";}"],(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.isFocused?e.theme.legacy.colorBorderFocus:e.theme.legacy.colorBorder}),(function(e){return e.theme.legacy.colorBorderFocus})),Ul.div.withConfig({displayName:"WrapperFlex",componentId:"sc-1rwvhxx-2"})(["display:flex;flex-wrap:wrap;align-items:center;"]),Ul.div.withConfig({displayName:"SelectedChip",componentId:"sc-1rwvhxx-3"})(["margin:2px;"]),Ul.div.withConfig({displayName:"AvailableChip",componentId:"sc-1rwvhxx-4"})(["margin:8px 2px 0;"]),Ul.div.withConfig({displayName:"AvailableChipContainer",componentId:"sc-1rwvhxx-5"})(["display:flex;align-items:flex-start;width:100%;height:",";scroll-behavior:smooth;overflow-x:scroll;&::-webkit-scrollbar{display:none;}-ms-overflow-style:none;scrollbar-width:none;"],"44px"),Ul.div.withConfig({displayName:"Footer",componentId:"sc-1rwvhxx-6"})(["position:relative;z-index:0;"]);var tk=Ul.div.withConfig({displayName:"Arrow",componentId:"sc-1rwvhxx-7"})(["z-index:2;position:absolute;top:8px;display:flex;align-items:center;justify-content:center;width:24px;height:32px;background-color:#fff;border-radius:5px;cursor:pointer;> svg{height:24px;width:24px;fill:",";}&:hover{background-color:#f2f4f5;> svg{fill:",";}}&:active{background-color:#e6e9eb;}"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive}));Ul(tk).withConfig({displayName:"RightArrow",componentId:"sc-1rwvhxx-8"})(["right:0;"]),Ul(tk).withConfig({displayName:"LeftArrow",componentId:"sc-1rwvhxx-9"})(["left:0;"]);var nk=Ul.div.withConfig({displayName:"Shadow",componentId:"sc-1rwvhxx-10"})(["z-index:1;position:absolute;top:0;width:32px;height:",";"],"44px");Ul(nk).withConfig({displayName:"RightShadow",componentId:"sc-1rwvhxx-11"})(["background:linear-gradient(270deg,#ffffff 0%,rgba(255,255,255,0) 100%);right:24px;"]),Ul(nk).withConfig({displayName:"LeftShadow",componentId:"sc-1rwvhxx-12"})(["background:linear-gradient(90deg,#ffffff 0%,rgba(255,255,255,0) 100%);left:24px;"]);var rk=Ul.div.withConfig({displayName:"ArrowBackground",componentId:"sc-1rwvhxx-13"})(["z-index:1;position:absolute;top:0;background-color:#fff;border-radius:5px 0 0 5px;height:",";width:26px;"],"44px");Ul(rk).withConfig({displayName:"ArrowBackgroundRight",componentId:"sc-1rwvhxx-14"})(["right:0;"]),Ul(rk).withConfig({displayName:"ArrowBackgroundLeft",componentId:"sc-1rwvhxx-15"})(["left:-1px;"]);var ok=["isOpen"];function ik(t){var n=t.presetURL,r=t.alwaysVisible,o=new RegExp("[-?]io"),i="".concat(n).concat(o.test(n)?"&download=true":"?download=true");return e.createElement(Ov,{position:"bottom-right",trigger:function(t){var n=t.isOpen,o=xC(t,ok);return e.createElement(ck,{isVisible:r||n},e.createElement(Gm,bC(bC({},o),{},{variant:"clean",isPressed:n,icon:e.createElement($p,null),"aria-label":"More options"})))}},e.createElement(Wx.CopyToClipboard,{text:n,onCopy:function(){sy({title:"Link copied to clipboard",variant:"success"})}},e.createElement(Ov.Item,{icon:e.createElement(sp,null),onClick:function(){return!1}},"Copy Link")),e.createElement(Ov.Divider,null),e.createElement(Ov.Item,{icon:e.createElement(qd,null),onClick:function(){window.open(n,"_blank")}},"Open in new tab"),e.createElement(Ov.Divider,null),e.createElement(Ov.Item,{icon:e.createElement(bp,null),onClick:function(){return!1}},e.createElement(ak,{href:i,download:"presetimage"},"Download")))}var ak=Ul.a.withConfig({displayName:"DownloadLink",componentId:"sc-1xq1wim-0"})(["display:block;"]),ck=Ul.div.withConfig({displayName:"ButtonWrapper",componentId:"sc-1xq1wim-1"})(["opacity:",";",":hover &,&:focus-within{opacity:1;}"],(function(e){return e.isVisible?"1":"0"}),".dat-menu-pointer-events-wrapper"),lk=function(e){var t="",n=e.match(/(https:\/\/(.*))\/transform\/(.*)\/(.*)/);return n&&n[3]&&(t=n[3]),t},sk=function(t){var n=t.name,r=t.onSelect,o=t.subtitle,i=t.isMenuHidden,a=void 0!==i&&i,c=t.isSelected,l=t.baseURL,s="Base"===n?"":"".concat(n,"/"),u=lk(l),d="/transform/".concat(s).concat(u,"/"),p=mk(d,l);return e.createElement(uk,{className:"dat-menu-pointer-events-wrapper",onClick:r,isSelected:c},e.createElement(hv,{variant:"content",imageUrl:p}),e.createElement(dk,null,e.createElement(pk,null,n),e.createElement(fk,null,o)),!a&&e.createElement(ik,{alwaysVisible:!1,presetURL:d}))},uk=Ul.div.withConfig({displayName:"ItemContainer",componentId:"sc-1q57zbs-0"})(["padding:"," ",";display:flex;border-radius:",";align-items:center;background:",";&:hover{background:",";cursor:pointer;}"],Sm.spacing3,Sm.spacing4,Sm.spacing3,(function(e){return e.isSelected&&Sm.gray25}),Sm.gray25),dk=Ul.div.withConfig({displayName:"ItemDetails",componentId:"sc-1q57zbs-1"})(["display:flex;flex-direction:column;flex:1;min-width:0;"]),pk=Ul.p.withConfig({displayName:"Title",componentId:"sc-1q57zbs-2"})(["font-size:",";line-height:",";color:",";padding:0px ",";margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;"],Sm.fontSize100,Sm.lineHeightText,Sm.gray800,Sm.spacing4),fk=Ul.p.withConfig({displayName:"Subtitle",componentId:"sc-1q57zbs-3"})(["color:",";font-size:",";line-height:",";padding:0px ",";margin:0;"],Sm.gray600,Sm.fontSize100,Sm.lineHeightText,Sm.spacing4),mk=function(e,t){var n=t.split("/transform"),r=n.length>1?n[0]:"";return"".concat(r).concat(e,"?io=transform:fit,width:80")},hk=e.memo(sk),gk=function(t){var n=t.onPresetSelected,r=t.presets,o=t.selectedPreset,i=t.baseURL;return e.createElement(yk,null,e.createElement(vk,null,"Base transformation"),e.createElement(hk,{baseURL:i,onSelect:function(){return n("")},name:"Base",isMenuHidden:!0,subtitle:"",isSelected:""===o}),r.length>0&&e.createElement(vk,null,r.length," Presets"),r.map((function(t){var r=t.name===o;return e.createElement(hk,{baseURL:i,key:t.id,onSelect:function(){return n(t.name)},name:t.name,subtitle:"",isSelected:r})})))},vk=Ul.p.withConfig({displayName:"ListGroupTitle",componentId:"sc-yqslcx-0"})(["color:",";font-size:",";margin-bottom:",";padding:0 ",";"],Sm.gray800,Sm.spacing5,Sm.spacing5,Sm.spacing4),yk=Ul.div.withConfig({displayName:"Container",componentId:"sc-yqslcx-1"})(["padding:0px ",";"],Sm.spacing4),bk=e.memo(gk);function wk(e){return e?e[0].toUpperCase()+e.split("").splice(1).join("").toLocaleLowerCase():""}var xk=function(t){switch(t.type){case"fill":case"crop":return e.createElement(Ip,null);case"fit":return e.createElement(Vd,null);case"extend":return e.createElement(Qd,null);case"scale":return e.createElement(vp,null);case"rotate":return e.createElement(Dp,null);case"flip":return e.createElement(Bp,null);case"mirror":return e.createElement(Sp,null);case"border":return e.createElement(fp,null);case"background":return e.createElement(mp,null);case"trim":return e.createElement(up,null);case"opacity":return e.createElement(Zd,null);case"sepia":return e.createElement(kp,null);case"contrast":return e.createElement(Yd,null);case"brightness":return e.createElement(pp,null);case"grayscale":return e.createElement(Op,null);case"blur":return e.createElement(xp,null);case"sharpness":return e.createElement(Tp,null);case"saturation":return e.createElement(Ep,null);case"text":return e.createElement(yp,null);case"advanced":return e.createElement(tp,null);case"multiple":return e.createElement(np,null);case"removebg":return e.createElement(Ck,null);default:return null}};function Ek(t){return e.createElement(Av,bC({},t),e.createElement("path",{d:"M3 17V19H9V17H3ZM3 5V7H13V5H3ZM13 21V19H21V17H13V15H11V21H13ZM7 9V11H3V13H7V15H9V9H7ZM21 13V11H11V13H21ZM15 9H17V7H21V5H17V3H15V9Z"}))}function Ck(t){return e.createElement(Av,bC({},t),e.createElement("path",{d:"M3 5h2V3c-1.1 0-2 .9-2 2Zm0 8h2v-2H3v2Zm4 8h2v-2H7v2ZM3 9h2V7H3v2Zm10-6h-2v2h2V3Zm6 0v2h2c0-1.1-.9-2-2-2ZM5 21v-2H3c0 1.1.9 2 2 2Zm-2-4h2v-2H3v2ZM9 3H7v2h2V3Zm2 18h2v-2h-2v2Zm8-8h2v-2h-2v2Zm0 8c1.1 0 2-.9 2-2h-2v2Zm0-12h2V7h-2v2Zm0 8h2v-2h-2v2Zm-4 4h2v-2h-2v2Zm0-16h2V3h-2v2ZM7 17h10V7H7v10Zm2-8h6v6H9V9Z"}))}function kk(t){return e.createElement(Av,bC({},t),e.createElement("path",{d:"M19 15.18V7c0-2.21-1.79-4-4-4s-4 1.79-4 4v10c0 1.1-.9 2-2 2s-2-.9-2-2V8.82C8.16 8.4 9 7.3 9 6c0-1.66-1.34-3-3-3S3 4.34 3 6c0 1.3.84 2.4 2 2.82V17c0 2.21 1.79 4 4 4s4-1.79 4-4V7c0-1.1.9-2 2-2s2 .9 2 2v8.18A2.996 2.996 0 0 0 18 21c1.66 0 3-1.34 3-3 0-1.3-.84-2.4-2-2.82ZM6 7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1Zm12 12c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1Z"}))}function Sk(t){var n=t.children,r=t.label,o=t.helpText;return e.createElement(_k,null,e.createElement(ug.Label,null,r),n,e.createElement(ug.HelperText,null,o))}var _k=Ul(ug.Group).withConfig({displayName:"FormGroup",componentId:"sc-uzgeip-0"})(["height:fit-content;"]),Ik={transformation:null,group:null,label:"Select a transform"},Tk=[{label:"Background",transformation:"background",group:"transform"},{label:"Border",transformation:"border",group:"transform"},{label:"Crop",transformation:"crop",group:"transform",description:"Extracts a region of the specified dimensions from the original image without first resizing it."},{label:"Remove Background",transformation:"removebg",group:"transform",description:"We will use the available clipping path information to mask the image, and remove the background."},{label:"Extend",transformation:"extend",group:"transform",description:"Resizes the image to fit inside the bounding box specified by the dimensions, maintaining the aspect ratio, and extends the canvas if the resized image does not fill the whole area."},{label:"Fill",transformation:"fill",group:"transform",description:"Resizes the image to fill the specified dimensions without distortion. The image may be cropped as a result."},{label:"Fit",transformation:"fit",group:"transform",description:"Resizes the image to fit inside the bounding box specified by the dimensions, maintaining the aspect ratio."},{label:"Flip",transformation:"flip",group:"transform"},{label:"Mirror",transformation:"mirror",group:"transform"},{label:"Rotate",transformation:"rotate",group:"transform"},{label:"Scale",transformation:"scale",group:"transform",description:"Resizes the image to the specified dimensions without necessarily retaining the original aspect ratio."},{label:"Trim",transformation:"trim",group:"transform",description:"Removes any transparent or white colored areas at the edges of an image."},{label:"Text overlay",transformation:"text",group:"overlay"},{label:"Opacity",transformation:"opacity",group:"filter"},{label:"Sepia",transformation:"sepia",group:"filter"},{label:"Contrast",transformation:"contrast",group:"filter"},{label:"Brightness",transformation:"brightness",group:"filter"},{label:"Grayscale",transformation:"grayscale",group:"filter"},{label:"Blur",transformation:"blur",group:"filter"},{label:"Sharpness",transformation:"sharpness",group:"filter"},{label:"Saturation",transformation:"saturation",group:"filter"}];function Bk(t){var n,r=Tk.find((function(e){return e.transformation===t.transformation}))||Ik;return e.createElement(Sk,{label:"Transformation",helpText:null!==(n=r.description)&&void 0!==n?n:""},e.createElement(fy,{onChange:function(e){var n=Tk.find((function(t){return t.transformation===e})).group;t.onChange({group:n,transformation:e})},label:r.label,value:r.transformation,icon:e.createElement(xk,{type:r.transformation})},e.createElement(fy.SectionTitle,null,"Transforms"),Tk.filter((function(e){return"transform"===e.group})).map((function(t){return e.createElement(fy.Item,{value:t.transformation,key:t.transformation,icon:e.createElement(xk,{type:t.transformation})},t.label)})),e.createElement(fy.Divider,null),e.createElement(fy.SectionTitle,null,"Filters"),Tk.filter((function(e){return"filter"===e.group})).map((function(t){return e.createElement(fy.Item,{value:t.transformation,key:t.transformation,icon:e.createElement(xk,{type:t.transformation})},t.label)})),e.createElement(fy.Divider,null),e.createElement(fy.SectionTitle,null,"Overlay"),Tk.filter((function(e){return"overlay"===e.group})).map((function(t){return e.createElement(fy.Item,{value:t.transformation,key:t.transformation,icon:e.createElement(xk,{type:t.transformation})},t.label)}))))}var zk=function(e){return"number"==typeof e&&!isNaN(e)},Pk=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(!zk(e))return 0;var n=Math.abs(e),r=Math.trunc(n);return r<=t?r:t},Nk=function(e){return e&&e>0?e.toString():""};function Dk(t){var r=t.id,o=t.height,i=void 0===o?0:o,a=t.width,c=void 0===a?0:a,l=t.showLock,s=void 0!==l&&l,u=t.onDispatch,d=EC(n(!1),2),p=d[0],f=d[1],m=EC(n(1),2),h=m[0],g=m[1],v=e.createElement(Ak,null,p?e.createElement(Xd,null):e.createElement(Kd,null)),y=Nk(c),b=Nk(i);return e.createElement(Sk,{label:"Dimensions"},e.createElement(Ok,null,e.createElement(Rk,null,e.createElement(ev,{"aria-label":"Dimensions width",placeholder:"1000",icon:e.createElement(Lk,null,"W"),value:y,onChange:function(e){var t=parseInt(e,10),n=Pk(t,9e3);u({type:"width",payload:{value:n,id:r}}),p?u({type:"height",payload:{value:n/h,id:r}}):g(i&&n?n/i:1)},iconRight:e.createElement("span",null,"px")})),s?e.createElement(Gm,{variant:"clean",onClick:function(){f((function(e){return!e}))},icon:v,title:"Lock ratio"}):e.createElement(Fk,null),e.createElement(Rk,null,e.createElement(ev,{"aria-label":"Dimensions height",placeholder:"1000",icon:e.createElement(Lk,null,"H"),value:b,onChange:function(e){var t=parseInt(e,10),n=Pk(t,9e3);u({type:"height",payload:{value:n,id:r}}),p?u({type:"width",payload:{value:n*h,id:r}}):g(c&&n?c/n:1)},iconRight:e.createElement("span",null,"px")}))))}var Ok=Ul.div.withConfig({displayName:"SpaceBetween",componentId:"sc-zla2g2-0"})(["display:flex;align-items:center;justify-content:space-between;"]),Ak=Ul.div.withConfig({displayName:"IconContainer",componentId:"sc-zla2g2-1"})(["color:",";"],Sm.gray400a),Rk=Ul.div.withConfig({displayName:"FlexInput",componentId:"sc-zla2g2-2"})(["min-width:0;"]),Lk=Ul.div.withConfig({displayName:"IconText",componentId:"sc-zla2g2-3"})(["display:flex;justify-content:center;width:",";"],Sm.spacing6),Fk=Ul.div.withConfig({displayName:"Space",componentId:"sc-zla2g2-4"})(["width:",";"],Sm.spacing4);function Mk(t){var n=t.onChange,r=t.value,o=void 0===r?0:r,i=t.label,a=t.min,c=t.max;return e.createElement(Sk,{label:i},e.createElement(Iy,{value:o,onChange:n,min:a,max:c,inputPosition:"right"}))}function jk(t){return e.createElement(Av,bC({},t),e.createElement("path",{d:"M3 3H5V19H21V21H3V3Z",fill:"#334E5C"}),e.createElement("path",{d:"M7 5C13.6274 5 19 10.3726 19 17H17C17 11.4772 12.5228 7 7 7V5Z",fill:"#334E5C"}))}function Hk(t){var n=t.io,r=t.onDispatch;return e.createElement(Sk,{label:"Angle"},e.createElement(ev,{type:"number",placeholder:"0",onChange:function(e){return r({type:"angle",payload:{value:parseInt(e,10),id:n.id}})},value:n.angle?n.angle.toString():"",icon:e.createElement(jk,null),iconRight:e.createElement("span",null,"°")}))}function Uk(t){return e.createElement(Av,bC({},t),e.createElement("path",{d:"M8 19L8 21H16V19H13L13 5L16 5V3L8 3L8 5H11L11 19H8Z"}))}function Vk(t){return e.createElement(Av,bC({},t),e.createElement("path",{d:"M5 8H3V16H5V13H19V16H21V8H19V11H5V8Z"}))}var $k=[{value:"top",label:"Top"},{value:"center",label:"Center"},{value:"bottom",label:"Bottom"}],Wk=[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}];function Yk(t){var r=t.label,o=t.gravity,i=t.onChange,a=EC(n(Wk[1]),2),c=a[0],l=a[1],s=EC(n($k[1]),2),u=s[0],d=s[1],p=function(e){switch(i(e),e){case"topleft":d($k.find((function(e){return"top"===e.value}))),l(Wk.find((function(e){return"left"===e.value})));break;case"top":d($k.find((function(e){return"top"===e.value}))),l(Wk.find((function(e){return"center"===e.value})));break;case"topright":d($k.find((function(e){return"top"===e.value}))),l(Wk.find((function(e){return"right"===e.value})));break;case"left":d($k.find((function(e){return"center"===e.value}))),l(Wk.find((function(e){return"left"===e.value})));break;case"center":d($k.find((function(e){return"center"===e.value}))),l(Wk.find((function(e){return"center"===e.value})));break;case"right":d($k.find((function(e){return"center"===e.value}))),l(Wk.find((function(e){return"right"===e.value})));break;case"bottomleft":d($k.find((function(e){return"bottom"===e.value}))),l(Wk.find((function(e){return"left"===e.value})));break;case"bottom":d($k.find((function(e){return"bottom"===e.value}))),l(Wk.find((function(e){return"center"===e.value})));break;case"bottomright":d($k.find((function(e){return"bottom"===e.value}))),l(Wk.find((function(e){return"right"===e.value})))}};return e.createElement(Sk,{label:r},e.createElement(oh,null,e.createElement(Gk,{alignItems:"center",justifyContent:"space-between",wrap:"wrap"},e.createElement(qk,{isSelected:"topleft"===o,onClick:function(){return p("topleft")}}),e.createElement(qk,{isSelected:"top"===o,onClick:function(){return p("top")}}),e.createElement(qk,{isSelected:"topright"===o,onClick:function(){return p("topright")}}),e.createElement(qk,{isSelected:"left"===o,onClick:function(){return p("left")}}),e.createElement(qk,{isSelected:"center"===o,onClick:function(){return p("center")}}),e.createElement(qk,{isSelected:"right"===o,onClick:function(){return p("right")}}),e.createElement(qk,{isSelected:"bottomleft"===o,onClick:function(){return p("bottomleft")}}),e.createElement(qk,{isSelected:"bottom"===o,onClick:function(){return p("bottom")}}),e.createElement(qk,{isSelected:"bottomright"===o,onClick:function(){return p("bottomright")}})),e.createElement(oh,{direction:"column",justifyContent:"space-around"},e.createElement(fy,{onChange:function(e){switch(l(Wk.find((function(t){return t.value===e}))),e){case"left":"top"===u.value&&i("topleft"),"center"===u.value&&i("left"),"bottom"===u.value&&i("bottomleft");break;case"center":"top"===u.value&&i("top"),"center"===u.value&&i("center"),"bottom"===u.value&&i("bottom");break;case"right":"top"===u.value&&i("topright"),"center"===u.value&&i("right"),"bottom"===u.value&&i("bottomright")}},value:c.value,label:c.label,icon:e.createElement(Vk,null)},Wk.map((function(t){return e.createElement(fy.Item,{value:t.value,key:t.value},t.label)}))),e.createElement(fy,{onChange:function(e){switch(d($k.find((function(t){return t.value===e}))),e){case"top":"left"===c.value&&i("topleft"),"center"===c.value&&i("top"),"right"===c.value&&i("topright");break;case"center":"left"===c.value&&i("left"),"center"===c.value&&i("center"),"right"===c.value&&i("right");break;case"bottom":"left"===c.value&&i("bottomleft"),"center"===c.value&&i("bottom"),"right"===c.value&&i("bottomright")}},value:u.value,label:u.label,icon:e.createElement(Uk,null)},$k.map((function(t){return e.createElement(fy.Item,{value:t.value,key:t.value},t.label)}))))))}var Gk=Ul(oh).withConfig({displayName:"Container",componentId:"sc-ci11hg-0"})(["width:150px;height:92px;padding:5px;margin-right:",";background:",";border:1px solid ",";box-sizing:border-box;border-radius:",";"],Sm.spacing5,Sm.gray25,Sm.gray100a,Sm.radiusMedium),qk=Ul.div.withConfig({displayName:"Spot",componentId:"sc-ci11hg-1"})(["width:24px;height:24px;background:",";border:1px solid ",";box-sizing:border-box;border-radius:",";&:hover{background-color:",";cursor:pointer;}",""],Sm.gray10,Sm.gray100a,Sm.radiusSmall,Sm.gray25a,(function(e){return e.isSelected&&Tl(["border:2px solid ",";background:",";"],Sm.blue500,Sm.blue100)}));function Kk(t){var r=t.color,o=t.label,i=t.onChangeValidation,a=t.onChange,c=EC(n(!0),2),l=c[0],s=c[1],u=function(e){s(e),i(e)};return e.createElement(Sk,{label:o},e.createElement(oh,null,e.createElement(Xk,null,e.createElement(ev,{value:r,icon:e.createElement("span",null,"#"),onChange:function(e){var t=function(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return t+t+n+n+r+r})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!n)return"";var r=parseInt(n[1],16).toString(),o=parseInt(n[2],16).toString(),i=parseInt(n[3],16).toString();return"(".concat(r,", ").concat(o,", ").concat(i,")")}(e);t?(a(e),u(!0)):(a(null),u(!1))}}),!l&&e.createElement(ug.HelperText,{isInvalid:!l},"Please type a valid hex value")),e.createElement(Zk,null,e.createElement(ev,{type:"number",placeholder:"100",onChange:null,value:null,iconRight:e.createElement("span",null,"%"),isDisabled:!0}))))}var Xk=Ul.div.withConfig({displayName:"FlexInputColor",componentId:"sc-1b7ygj6-0"})(["min-width:0;margin-right:",";"],Sm.spacing4),Zk=Ul.div.withConfig({displayName:"FlexInput",componentId:"sc-1b7ygj6-1"})(["min-width:0;"]),Jk=["Arial"],Qk=["Regular"];function eS(t){var n,r,o=t.io,i=t.onDispatch;return e.createElement(e.Fragment,null,e.createElement(Sk,{label:"Text"},e.createElement(Ny,{value:o.content,onChange:function(e){return i({type:"content",payload:{value:e,id:o.id}})}})),e.createElement(Sk,{label:"Font"},e.createElement(fy,{value:o.font,label:o.font,onChange:function(e){return i({type:"font",payload:{value:e,id:o.id}})}},Jk.map((function(t){return e.createElement(fy.Item,{value:t,key:t},t)})))),e.createElement(Sk,{label:""},e.createElement(oh,null,e.createElement(tS,null,e.createElement(fy,{value:o.fontType,label:o.fontType,onChange:function(e){return i({type:"fontType",payload:{value:e,id:o.id}})},isDisabled:!0},Qk.map((function(t){return e.createElement(fy.Item,{value:t,key:t},t)})))),e.createElement(nS,null,e.createElement(ev,{type:"number",value:null===(n=o.size)||void 0===n?void 0:n.toString(),iconRight:e.createElement("span",null,"px"),onChange:function(e){return i({type:"size",payload:{value:parseInt(e,10),id:o.id}})}})))),e.createElement(Kk,{label:"Text color",onChange:function(e){return i({type:"color",payload:{value:e,id:o.id}})},onChangeValidation:function(e){return i({type:"isValid",payload:e})},color:o.color}),e.createElement(Yk,{label:"Position",gravity:o.gravity,onChange:function(e){return i({type:"gravity",payload:{value:e,id:o.id}})}}),e.createElement(Sk,{label:"Padding"},e.createElement(ev,{type:"number",value:null===(r=o.padding)||void 0===r?void 0:r.toString(),iconRight:e.createElement("span",null,"px"),onChange:function(e){return i({type:"padding",payload:{value:parseInt(e,10),id:o.id}})}})),e.createElement(Hk,{io:o,onDispatch:i}))}var tS=Ul.div.withConfig({displayName:"FontTypeContainer",componentId:"sc-1w95sy3-0"})(["width:210px;margin-right:",";"],Sm.spacing4),nS=Ul.div.withConfig({displayName:"FontSizeContainer",componentId:"sc-1w95sy3-1"})(["width:76px;"]);function rS(t){var n=t.io,r=t.onDispatch;return e.createElement(e.Fragment,null,e.createElement(Dk,{width:n.width,height:n.height,onDispatch:r,id:n.id}),e.createElement(Kk,{label:"Background",onChange:function(e){return r({type:"background",payload:{value:e,id:n.id}})},onChangeValidation:function(e){return r({type:"isValid",payload:e})},color:n.background}))}var oS=[{label:"Rectangle",path:"square",icon:e.createElement(_p,null)},{label:"Ellipse",path:"circle",icon:e.createElement(zp,null)}],iS=[{label:"Clipping Path",path:"clippingpath",icon:e.createElement(kk,null)}];function aS(t){var n,r=t.onChange,o=t.shape,i=null!==(n=oS.find((function(e){return e.path===o})))&&void 0!==n?n:iS.find((function(e){return e.path===o}));return e.createElement(Sk,{label:"Path"},e.createElement(fy,bC({onChange:r,value:o},i),oS.map((function(t){return e.createElement(fy.Item,{value:t.path,key:t.path,icon:t.icon},t.label)})),e.createElement(fy.Divider,null),iS.map((function(t){return e.createElement(fy.Item,{value:t.path,key:t.path,icon:t.icon},t.label)}))))}var cS=[{label:"Focus point",focus:"point",icon:e.createElement(Cp,null)},{label:"Gravity",focus:"gravity",icon:e.createElement(Gx,null)}];function lS(t){var r=t.gravity,o=t.onChangeGravity,a=EC(n(!1),2),c=a[0],l=a[1],s=EC(n(null),2),u=s[0],d=s[1];i((function(){u||(r?f():p())}),[r,u]);var p=function(){var e=cS.find((function(e){return"point"===e.focus}));d(e)},f=function(){var e=cS.find((function(e){return"gravity"===e.focus}));d(e)};return e.createElement(e.Fragment,null,e.createElement(Sk,{label:"Focus",helpText:"gravity"===(null==u?void 0:u.focus)?"Select the direction from where the transformation is being applied.":"Uses the predefined focus point of the asset."},e.createElement(fy,bC(bC({onChange:function(e){var t="gravity"===e,n=cS.find((function(t){return t.focus===e}));d(n),l(t),o(t?"center":null)}},u),{},{value:null==u?void 0:u.focus}),cS.map((function(t){return e.createElement(e.Fragment,{key:t.focus},"gravity"===t.focus?e.createElement(fy.Divider,null):null,e.createElement(fy.Item,{value:t.focus,icon:t.icon},t.label))})))),c&&e.createElement(Yk,{label:"Gravity",gravity:r,onChange:o}))}function sS(t){var n=t.io,r=t.onDispatch;return e.createElement(e.Fragment,null,e.createElement(aS,{shape:n.path,onChange:function(e){return r({type:"path",payload:{value:e,id:n.id}})}}),"clippingpath"!==n.path&&e.createElement(e.Fragment,null,e.createElement(Dk,{width:n.width,height:n.height,onDispatch:r,id:n.id}),e.createElement(lS,{onChangeGravity:function(e){r({type:"gravity",payload:{value:e,id:n.id}})},gravity:n.gravity})),"circle"===n.path&&e.createElement(Mk,{label:"Blur",value:n.blur,min:0,max:100,onChange:function(e){return r({type:"blur",payload:{value:e,id:n.id}})}}))}function uS(t){return e.createElement(Av,bC({},t),e.createElement("path",{d:"M4 5H20V7H4V5Z",fill:"#334E5C"}),e.createElement("path",{d:"M4 9H20V12H4V9Z",fill:"#334E5C"}),e.createElement("path",{d:"M20 14H4V19H20V14Z",fill:"#334E5C"}))}function dS(t){var n=t.io,r=t.onDispatch,o=Nk(n.width);return e.createElement(e.Fragment,null,e.createElement(Kk,{label:"Color",onChange:function(e){return r({type:"color",payload:{value:e,id:n.id}})},onChangeValidation:function(e){return r({type:"isValid",payload:e})},color:n.color}),e.createElement(Sk,{label:"Border"},e.createElement(oh,null,e.createElement(pS,null,e.createElement(ev,{placeholder:"1",onChange:function(e){var t=parseInt(e,10),o=Pk(t,500);r({type:"width",payload:{value:o,id:n.id}})},value:o,icon:e.createElement(uS,null),iconRight:e.createElement("span",null,"px")})),e.createElement(fS,null,e.createElement(ev,{placeholder:"Outside",onChange:null,value:null,iconRight:e.createElement(Rp,null),isDisabled:!0})))))}var pS=Ul.div.withConfig({displayName:"FlexInputColor",componentId:"sc-qgnlb2-0"})(["min-width:0;margin-right:",";"],Sm.spacing4),fS=Ul.div.withConfig({displayName:"FlexInput",componentId:"sc-qgnlb2-1"})(["min-width:0;"]);function mS(t){var n=t.io,r=t.onDispatch;return e.createElement(e.Fragment,null,e.createElement(Dk,{width:n.width,height:n.height,onDispatch:r,id:n.id}),e.createElement(lS,{onChangeGravity:function(e){r({type:"gravity",payload:{value:e,id:n.id}})},gravity:n.gravity}))}function hS(t){var n=t.onDispatch,r=t.io;return e.createElement(Mk,{label:wk(r.filter),min:-100,max:100,value:r.amount,onChange:function(e){return n({type:"amount",payload:{value:e,id:r.id}})}})}function gS(t){var n=t.onDispatch,r=t.io;return e.createElement(Mk,{label:"Blur",min:0,max:100,value:r.radius,onChange:function(e){return n({type:"radius",payload:{value:e,id:r.id}})}})}function vS(t){var n=t.io,r=t.onDispatch;return e.createElement(Kk,{label:"Color",onChange:function(e){r({type:"color",payload:{value:e,id:n.id}})},onChangeValidation:function(e){r({type:"isValid",payload:e})},color:n.color})}function yS(t){var n=t.io,r=t.onDispatch,o=Nk(n.padding);return e.createElement(Sk,{label:"Padding"},e.createElement(oh,null,e.createElement(bS,null,e.createElement(ev,{placeholder:"1",onChange:function(e){var t=parseInt(e,10),o=Pk(t,3e3);r({type:"padding",payload:{value:o,id:n.id}})},value:o,icon:e.createElement(uS,null),iconRight:e.createElement("span",null,"px")}))))}var bS=Ul.div.withConfig({displayName:"FlexInputColor",componentId:"sc-13pc6c3-0"})(["min-width:0;margin-right:",";"],Sm.spacing4);function wS(t){var n=t.io,r=t.onDispatch,o=["contrast","brightness","sharpness","saturation"].includes(n.filter),i=n.transform||n.overlay||n.filter;return e.createElement(e.Fragment,null,e.createElement(Bk,{transformation:i,onChange:function(e){return r({type:"transformation",payload:{group:e.group,value:e.transformation,id:n.id}})}}),("fit"===n.transform||"scale"===n.transform)&&e.createElement(Dk,{width:n.width,height:n.height,onDispatch:r,id:n.id}),"fill"===n.transform&&e.createElement(mS,{io:n,onDispatch:r}),"background"===n.transform&&e.createElement(vS,{io:n,onDispatch:r}),"rotate"===n.transform&&e.createElement(Hk,{io:n,onDispatch:r}),"border"===n.transform&&e.createElement(dS,{io:n,onDispatch:r}),"extend"===n.transform&&e.createElement(rS,{io:n,onDispatch:r}),"crop"===n.transform&&e.createElement(sS,{io:n,onDispatch:r}),"trim"===n.transform&&e.createElement(yS,{io:n,onDispatch:r}),"text"===n.overlay&&e.createElement(eS,{io:n,onDispatch:r}),"blur"===n.filter&&e.createElement(gS,{io:n,onDispatch:r}),"opacity"===n.filter&&e.createElement(hS,{io:n,onDispatch:r}),o&&e.createElement(Mk,{label:wk(n.filter),min:-100,max:100,value:n.amount,onChange:function(e){return r({type:"amount",payload:{value:e,id:n.id}})}}))}var xS=[{label:"Auto (recomended)",value:""},{label:"WebP",value:"webp"},{label:"JPG",value:"jpg"},{label:"PNG",value:"png"},{label:"AVIF",value:"avif"}],ES=[{label:"Very High",value:"95"},{label:"High",value:"85"},{label:"Medium (Auto)",value:"75"},{label:"Low",value:"65"}];function CS(t){var n,r,o=t.options,i=t.onDispatch,a=(null===(n=xS.find((function(e){return e.value===o.format})))||void 0===n?void 0:n.label)||"Select Format",c=(null===(r=ES.find((function(e){return e.value===String(o.quality)})))||void 0===r?void 0:r.label)||"Select Quality";return e.createElement(e.Fragment,null,e.createElement(Sk,{label:"Format",helpText:"Set the output format"},e.createElement(fy,{onChange:function(e){return i({type:"format",payload:e})},label:a,value:o.format},xS.map((function(t){return e.createElement(fy.Item,{value:t.value,key:t.value},t.label)})))),e.createElement(Sk,{label:"Quality"},e.createElement(fy,{onChange:function(e){return i({type:"quality",payload:Number(e)})},label:c,value:String(o.quality)},ES.map((function(t){return e.createElement(fy.Item,{value:t.value,key:t.label},t.label)})))))}var kS=function(t){var r=t.preset,o=t.onDispatch,i=EC(n([]),2),a=i[0],c=i[1],l=EC(n(!1),2),s=l[0],u=l[1];return e.createElement(Bv,null,r.content.io.map((function(t){var n=a.includes(t.id),r=t.transform||t.overlay||t.filter,i=wk(r)||"New transformation",l=SS(t);return e.createElement(e.Fragment,{key:t.id},e.createElement(Bv.Item,{subtext:l,thumbnail:e.createElement(hv,{variant:"clean",icon:e.createElement(xk,{type:r}),shape:"square"}),rightElements:e.createElement(_S,{isExpanded:n,onDeleteClick:function(e){return function(e,t){e.stopPropagation(),o({type:"deleteTransformation",payload:{id:t}})}(e,t.id)}}),onClick:function(){return function(e){a.includes(e)?c((function(t){return t.filter((function(t){return t!==e}))})):c((function(t){return[].concat(CC(t),[e])}))}(t.id)}},i),n&&e.createElement(wS,{io:t,onDispatch:o,key:"".concat(t.id,"-transformation")}),e.createElement(Bv.Divider,{key:"".concat(t.id,"-divider")}))})),e.createElement(Bv.Item,{key:"add-button",onClick:function(){var e=Yx();o({type:"addTransformation",payload:{id:e}}),c((function(t){return[].concat(CC(t),[e])}))},thumbnail:e.createElement(hv,{icon:e.createElement(cp,null),shape:"square"})},"Add transformation"),e.createElement(Bv.Divider,{key:"add-button-divider"}),e.createElement(Bv.Item,{key:"advanced-button",subtext:"Format: ".concat(r.content.format.toUpperCase()||"Auto"," • Quality: ").concat(r.content.quality),thumbnail:e.createElement(hv,{variant:"clean",icon:e.createElement(xk,{type:"advanced"}),shape:"square"}),rightElements:s?e.createElement(Up,null):e.createElement(Vp,null),onClick:function(){u(!s)}},"Output options"),s&&e.createElement(CS,{options:r.content,onDispatch:o,key:"advanced-options"}))},SS=function(e){var t="Focus Point";e.gravity&&(t=wk(e.gravity));var n=e.width&&e.height?"".concat(e.width," × ").concat(e.height," px "):"",r=t?"Focus: ".concat(t):"",o=e.color?"Color: #".concat(e.color):"",i=e.background?"Background: #".concat(e.background):"",a=e.path?"Shape: ".concat(e.path):"",c=e.blur?"Blur: ".concat(e.blur):"",l=e.amount?"Amount: ".concat(e.amount):"";switch(e.transform||e.filter){case"fill":return"".concat(n," ").concat(r&&n&&"• "+r);case"background":return o;case"border":return"".concat(o," • Width: ").concat(e.width,"px");case"crop":return"".concat(n," • ").concat(a," ").concat(i&&"• "+i," ").concat(c&&"• "+c);case"extend":return"".concat(n," ").concat(i&&"• "+i);case"fit":case"scale":return n;case"flip":return"Flip vertically";case"mirror":return"Flip horizontally";case"rotate":return"Angle: ".concat(e.angle||0,"°");case"opacity":case"contrast":case"brightness":case"blur":case"sharpness":case"saturation":return l;default:return""}},_S=function(t){var n=t.isExpanded,r=t.onDeleteClick;return e.createElement(oh,{alignItems:"center"},e.createElement(vh,{content:"Remove transformation"},e.createElement(Gm,{variant:"clean",icon:e.createElement($d,{fill:Sm.gray400a,onClick:r}),"aria-label":"Delete"})),n?e.createElement(Up,null):e.createElement(Vp,null))};function IS(t){var n,r,o,i=t.preset,a=t.onDispatch,c=null!==(n=null===(r=i.content)||void 0===r||null===(o=r.io)||void 0===o?void 0:o.length)&&void 0!==n?n:0;return e.createElement(e.Fragment,null,e.createElement(BS,null,e.createElement(PS,null,"Transformations"),e.createElement(NS,null,1===c?"".concat(c," transformation applied"):c>1?"".concat(c," transformations applied"):"No transformations")),e.createElement(zS,null,e.createElement(kS,{preset:i,onDispatch:a})))}var TS,BS=Ul.div.withConfig({displayName:"TitleContainer",componentId:"sc-tlsynt-0"})(["padding-top:",";background-color:",";padding-bottom:",";position:absolute;width:100%;z-index:1;"],Sm.spacing6,Sm.white,Sm.spacing4),zS=Ul.div.withConfig({displayName:"ListContainer",componentId:"sc-tlsynt-1"})(["margin-top:",";"],"76px"),PS=Ul.div.withConfig({displayName:"Title",componentId:"sc-tlsynt-2"})(["font-size:16px;line-height:20px;color:",";"],Sm.gray800),NS=Ul.div.withConfig({displayName:"SubTitle",componentId:"sc-tlsynt-3"})(["font-size:14px;line-height:20px;color:",";"],Sm.gray600);!function(e){e[e.transformations=0]="transformations",e[e.presets=1]="presets"}(TS||(TS={}));var DS=function(){return e.createElement(AS,null,e.createElement(LS,null),e.createElement(FS,null,e.createElement(MS,{large:!0}),e.createElement(MS,null)))},OS=function(){return e.createElement(jS,null)},AS=Ul.div.withConfig({displayName:"LoaderContainer",componentId:"sc-1vpf7m8-0"})(["display:flex;align-items:center;padding:12px;"]),RS=Wl(["0%{background-color:","}100%{background-color:","}"],Sm.gray50a,Sm.gray100a),LS=Ul.div.withConfig({displayName:"ThumbnailLoader",componentId:"sc-1vpf7m8-1"})(["width:50px;height:50px;border-radius:4px;animation:"," 1s linear infinite alternate;"],RS),FS=Ul.div.withConfig({displayName:"ContentLoader",componentId:"sc-1vpf7m8-2"})(["display:flex;flex-direction:column;height:100%;margin-left:",";"],Sm.spacing4),MS=Ul.div.withConfig({displayName:"Content",componentId:"sc-1vpf7m8-3"})(["height:10px;margin-bottom:",";width:",";border-radius:",";animation:"," 1s linear infinite alternate;"],Sm.spacing3,(function(e){return e.large?"110px":"60px"}),Sm.radiusSmall,RS),jS=Ul.div.withConfig({displayName:"LoadImageSkeleton",componentId:"sc-1vpf7m8-4"})(["width:240px;height:320px;animation:"," 1s linear infinite alternate;"],RS),HS=function(t){var n=t.onPresetSelected,r=t.activeTab,o=t.presets,a=t.preset,c=t.dispatch,l=t.selectedPreset,s=t.isLoading,u=t.baseURL,d=t.canViewPresets,p=t.canViewTransformations;return i((function(){var e,t;r!==TS.transformations||null!=a&&null!==(e=a.content)&&void 0!==e&&null!==(t=e.io)&&void 0!==t&&t.length||c({type:"init"})}),[r,c,a]),e.createElement(US,{direction:"column"},r===TS.presets?d?s?e.createElement(e.Fragment,null,Array.from(Array(5).keys()).map((function(t){return e.createElement(DS,{key:"preset-skeleton-".concat(t)})}))):e.createElement(bk,{baseURL:u,presets:o,onPresetSelected:n,selectedPreset:l}):null:p?e.createElement(VS,null,e.createElement(IS,{preset:a,onDispatch:c})):null)},US=Ul(oh).withConfig({displayName:"SidebarContainer",componentId:"sc-n1gktg-0"})(["width:336px;overflow-y:auto;overflow-x:hidden;background:",";flex:none;box-shadow:-1px 0px 0px rgba(0,34,51,0.1);height:100%;"],Sm.white),VS=Ul.div.withConfig({displayName:"TransformationsContainer",componentId:"sc-n1gktg-1"})(["padding:0 ",";"],Sm.spacing6);function $S(t){var n=t.url,r=a(null);return c((function(){r.current.scrollLeft=r.current.scrollWidth}),[n]),e.createElement(WS,null,e.createElement(YS,null,e.createElement(GS,null,e.createElement(Wp,null)),e.createElement(qS,{ref:r,onClick:function(){window.open(n,"_blank").focus()}},e.createElement(XS,null,n))),e.createElement(KS,null,e.createElement(vh,{content:"Copy URL"},e.createElement(Wx.CopyToClipboard,{text:n,onCopy:function(){sy({title:"Link copied to the clipboard",variant:"success"})}},e.createElement(Gm,{variant:"clean",icon:e.createElement(dp,null),"aria-label":"Copy to clipboard"}))),e.createElement(ik,{alwaysVisible:!0,presetURL:n})))}var WS=Ul.div.withConfig({displayName:"Container",componentId:"sc-ucc5ld-0"})(["height:50px;background-color:",";border-radius:",";display:flex;align-items:center;justify-content:space-between;box-shadow:",";min-width:0;min-height:0;"],Sm.white,Sm.radiusLarge,Sm.elevationStatic),YS=Ul.div.withConfig({displayName:"SideContainer",componentId:"sc-ucc5ld-1"})(["display:flex;align-items:center;min-width:0;min-height:0;"]),GS=Ul.div.withConfig({displayName:"PublicIconContainer",componentId:"sc-ucc5ld-2"})(["margin-left:",";margin-right:",";fill:",";"],Sm.spacing5,Sm.spacing4,Sm.gray600),qS=Ul.div.withConfig({displayName:"LinkContainer",componentId:"sc-ucc5ld-3"})(["color:",";font-size:",";cursor:pointer;overflow:scroll;white-space:nowrap;width:100%;height:100%;display:flex;&::-webkit-scrollbar{display:none;}-ms-overflow-style:none;scrollbar-width:none;"],Sm.gray800,Sm.fontSize100),KS=Ul.div.withConfig({displayName:"ButtonsContainer",componentId:"sc-ucc5ld-4"})(["display:flex;width:100px;padding-right:",";"],Sm.spacing2),XS=Ul.span.withConfig({displayName:"Link",componentId:"sc-ucc5ld-5"})(["display:flex;align-items:center;justify-content:center;height:100%;"]);function ZS(t){var o=t.url,a=t.canViewTransformations,c=t.hideBottomBar,l=t.activeTab,s=t.onBack,u=t.onDone,d=t.onApply,p=t.onShowTransformations,f=t.hasActiveChanges,m=EC(n(!0),2),h=m[0],g=m[1],v=r((function(){return function(e){if(!e)return"";var t=new URL(e);return t.searchParams.set("".concat(Date.now()),""),t.toString()}(o)}),[o]);return i((function(){g(!0)}),[o]),e.createElement(r_,null,e.createElement(o_,{justifyContent:"space-between",alignItems:"center"},e.createElement(i_,null,e.createElement(Gm,{variant:"clean",icon:e.createElement(wp,null),"aria-label":"Go back",onClick:s})),l===TS.presets&&a&&e.createElement(s_,{variant:"clean",onClick:p,icon:e.createElement(Ek,null)},"Transform"),l===TS.transformations&&("function"==typeof d&&f?e.createElement(a_,null,e.createElement(s_,{variant:"primary",onClick:d},"Apply transformations")):e.createElement(s_,{variant:"primary",onClick:u},"Done"))),e.createElement(l_,{hideBottomBar:c},o&&e.createElement(n_,{src:v,alt:"",isImageLoading:h,onLoad:function(){g(!1)}}),h&&e.createElement(OS,null)),!c&&e.createElement(c_,null,e.createElement($S,{url:o})))}var JS,QS,e_,t_,n_=Ul.img.withConfig({displayName:"Image",componentId:"sc-dpw9jp-0"})(["display:",";max-width:100%;max-height:100%;background:",";"],(function(e){return e.isImageLoading?"none":"block"}),"repeating-conic-gradient(".concat(Sm.gray100a," 0% 25%, transparent 0% 50%) 50% / 14px 14px")),r_=Ul.div.withConfig({displayName:"Container",componentId:"sc-dpw9jp-1"})(["display:flex;flex-direction:column;width:100%;height:100%;min-height:0;min-width:0;"]),o_=Ul(oh).withConfig({displayName:"TopbarContainer",componentId:"sc-dpw9jp-2"})(["height:90px;width:100%;"]),i_=Ul.div.withConfig({displayName:"ButtonBackContainer",componentId:"sc-dpw9jp-3"})(["margin-left:",";"],Sm.layoutSpacing1),a_=Ul.div.withConfig({displayName:"TransformationButtonContainer",componentId:"sc-dpw9jp-4"})(["display:flex;gap:",";"],Sm.spacing4),c_=Ul.div.withConfig({displayName:"BottomContainer",componentId:"sc-dpw9jp-5"})(["padding:",";"],Sm.spacing5),l_=Ul.div.withConfig({displayName:"ImageWrapper",componentId:"sc-dpw9jp-6"})(["display:flex;justify-content:center;align-items:center;flex:1;min-height:0;position:relative;",";"],(function(e){return e.hideBottomBar&&Tl(["margin-bottom:",";"],Sm.spacing8)})),s_=Ul(Gm).withConfig({displayName:"TransformButton",componentId:"sc-dpw9jp-7"})(["float:right;margin-right:",";"],Sm.layoutSpacing1),u_=function(e){return e.data},d_=function(e){if(e.response){var t=e.response.data;if(null!=t&&t.error)throw t.error;throw t}if(e.request)throw new Error("Server is not responding, please try again");throw e.message},p_=null===(JS=document.querySelector('meta[name="x-csrf-token"]'))||void 0===JS?void 0:JS.getAttribute("content"),f_={"cache-control":"no-cache",pragma:"no-cache","x-csrf-token":(null===(QS=window)||void 0===QS?void 0:QS.csrf)||(null===(e_=window)||void 0===e_||null===(t_=e_.Bynder)||void 0===t_?void 0:t_.csrf_token)||p_},m_=vC.create({headers:f_}),h_=function(){return"/v7/dat/presets/",m_.get("/v7/dat/presets/",undefined).then(u_).catch(d_)},g_={id:"",transform:null,overlay:null,filter:null},v_={name:"",description:"",content:{format:"",quality:75,io:[]},isValid:!0};function y_(e,t){var n,r=function(){return e.content.io.map((function(e){return bC({},e)}))};switch(t.type){case"init":return v_;case"edit":return bC(bC({isValid:!0},t.payload),{},{content:bC(bC({},t.payload.content),{},{io:t.payload.content.io.map((function(e){return bC(bC({},e),{},{id:Yx()})}))})});case"addTransformation":return bC(bC({},e),{},{content:bC(bC({},e.content),{},{io:[].concat(CC(r()),[bC(bC({},g_),{},{id:t.payload.id,transform:"fill"})])})});case"deleteTransformation":return bC(bC({},e),{},{content:bC(bC({},e.content),{},{io:e.content.io.filter((function(e){return e.id!==t.payload.id}))})});case"isValid":case"name":case"description":return bC(bC({},e),{},(wC(n={},t.type,t.payload),wC(n,"content",bC(bC({},e.content),{},{io:r()})),n));case"format":case"quality":return bC(bC({},e),{},{content:bC(bC({},e.content),{},wC({io:r()},t.type,t.payload))});case"transformation":return bC(bC({},e),{},{content:bC(bC({},e.content),{},{io:e.content.io.map((function(e){return e.id!==t.payload.id?bC({},e):bC(bC({},b_(t.payload.value)),{},wC({id:e.id},t.payload.group,t.payload.value))}))})});case"gravity":case"width":case"height":case"x":case"y":case"path":case"content":case"font":case"fontType":case"size":case"color":case"padding":case"angle":case"radius":case"amount":case"softness":case"background":case"blur":return bC(bC({},e),{},{content:bC(bC({},e.content),{},{io:e.content.io.map((function(e){return e.id!==t.payload.id?bC({},e):bC(bC({},e),{},wC({},t.type,t.payload.value))}))})});default:return e}}var b_=function(e){switch(e){case"fill":case"fit":case"extend":case"scale":return bC(bC({},g_),{},{height:1e3,width:1e3});case"crop":return bC(bC({},g_),{},{height:1e3,width:1e3,path:"square"});case"background":return bC(bC({},g_),{},{color:"FFF"});case"border":return bC(bC({},g_),{},{color:"FFF",width:1});case"rotate":return bC(bC({},g_),{},{angle:0});case"opacity":return bC(bC({},g_),{},{amount:100});case"blur":return bC(bC({},g_),{},{radius:0});case"text":return bC(bC({},g_),{},{content:"Add Text Here",font:"Arial",size:64,color:"FFF",gravity:"center",padding:20,angle:0});case"brightness":case"contrast":case"sharpness":case"saturation":return bC(bC({},g_),{},{amount:0})}},w_=Ul.div.withConfig({displayName:"FlexContainer",componentId:"sc-inplsu-0"})(["display:flex;min-height:0;height:100%;"]);Ul.div.withConfig({displayName:"NameIconContainer",componentId:"sc-i27a7s-0"})(["display:flex;min-width:0;"]),Ul.div.withConfig({displayName:"DateContainer",componentId:"sc-i27a7s-1"})(["width:385px;font-size:",";color:",";"],Sm.fontSize75,Sm.gray600),Ul.div.withConfig({displayName:"Name",componentId:"sc-i27a7s-2"})(["font-size:",";color:",";flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"],Sm.fontSize100,Sm.gray800),Ul.div.withConfig({displayName:"DescriptionContainer",componentId:"sc-i27a7s-3"})(["display:flex;flex-direction:column;flex:1;min-width:0;padding:0 ",";"],Sm.spacing4),Ul.div.withConfig({displayName:"Description",componentId:"sc-i27a7s-4"})(["font-size:",";color:",";"],Sm.fontSize75,Sm.gray600),Ul.div.withConfig({displayName:"Actions",componentId:"sc-i27a7s-5"})(["display:flex;margin-left:",";justify-content:end;"],Sm.spacing4),Ul.tr.withConfig({displayName:"Container",componentId:"sc-i27a7s-6"})(["height:72px;&:not(:last-child){border-bottom:solid 1px ",";}"],Sm.gray50),Ul.th.withConfig({displayName:"Th",componentId:"sc-945e4m-0"})(["color:",";font-size:",";"],Sm.gray800,Sm.fontSize100),Ul.table.withConfig({displayName:"Table",componentId:"sc-945e4m-1"})(["width:100%;"]),Ul.header.withConfig({displayName:"Header",componentId:"sc-405vyk-0"})(["position:sticky;z-index:1;top:var(--pageHeaderTopPosition);display:flex;gap:",";justify-content:space-between;align-items:center;margin-bottom:",";padding:"," ",";background:",";"],Sm.spacing4,Sm.spacing7,Sm.spacing5,Sm.spacing6,Sm.white),Ul.h3.withConfig({displayName:"Title",componentId:"sc-405vyk-1"})([""," margin:0;"],rh.uiTextL);function x_(t){var r,o=t.transformBaseUrl,a=t.transformation,c=t.setTransformation,l=t.closeDat,s=La(),u=n(),d=u[0],p=u[1],f=n(),m=f[0],g=f[1];i((function(){var e=s.querySelector(".cv-root");e&&p(e)}),[s]);var v=function(e,t){e&&a&&c({url:e,preset:t,asset:a.asset}),l()},y=function(e,t){w(t)&&a?g({url:e,preset:t,asset:a.asset}):v(e,t)},b=function(){return g(void 0)},w=function(e){return e.content.io.length>0};return d?h(e.createElement(k_,null,e.createElement(S_,{baseURL:o,canViewPresets:!1,canViewTransformations:!0,hideBottomBar:!0,onApply:v,onDone:y,onBack:y,initialTransformations:null===(r=null==a?void 0:a.preset)||void 0===r?void 0:r.content.io}),e.createElement(Qv,{isOpen:!!m,title:"Transformations not yet applied",container:d,onClose:b,actionPrimary:e.createElement(Gm,{variant:"primary",onClick:function(){v(null==m?void 0:m.url,null==m?void 0:m.preset),b()}},"Apply transformations"),actionSecondary:e.createElement(Gm,{variant:"secondary",onClick:b},"Cancel"),actionTertiary:e.createElement(Gm,{variant:"secondary",onClick:function(){c(void 0),b(),l()}},"Discard changes")},"Transformations not yet applied. Do you want to apply transformations now, or discard changes?")),d):null}var E_,C_,k_=Ul.div(E_||(E_=Sa(["\n\tbackground-color: ",";\n\tz-index: 999999;\n\toverflow: hidden;\n\tborder-radius: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: stretch;\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\tposition: absolute;\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n"],["\n\tbackground-color: ",";\n\tz-index: 999999;\n\toverflow: hidden;\n\tborder-radius: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: stretch;\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\tposition: absolute;\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n"])),Sm.white,Sm.radiusBase),S_=Ul((function(t){var o=t.baseURL,c=t.canViewPresets,l=t.canViewTransformations,s=t.hideBottomBar,u=void 0!==s&&s,d=t.initialTransformations,f=t.onDone,m=t.onApply,h=t.onBack,g=c?TS.presets:TS.transformations,v=EC(n(o),2),y=v[0],b=v[1],w=EC(n(g),2),x=w[0],E=w[1],C=EC(n(""),2),k=C[0],S=C[1],_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=bC(bC({},v_),{},{content:bC(bC({},v_.content),{},{io:t})}),o=EC(n([]),2),c=o[0],l=o[1],s=EC(n(!1),2),u=s[0],d=s[1],f=EC(p(y_,r),2),m=f[0],h=f[1],g=a(!0);i((function(){return e&&(d(!0),v()),function(){g.current=!1}}),[e]);var v=function(){h_().then((function(e){g.current&&(l(e.presets),d(!1))})).catch((function(e){g.current&&(d(!1),sy({title:e.toString(),variant:"error",isPersistent:!0}))}))};return{presets:c,setPresets:l,preset:m,dispatch:h,isLoading:u,defaultValues:r}}(c,d),I=_.presets,T=_.preset,B=_.dispatch,z=_.isLoading,P=_.defaultValues,N=T.content.io.length>0,D=function(e,t,n){var o=this,c=a(null),l=a(0),s=a(null),u=a([]),d=a(),p=a(),f=a(e),m=a(!0);i((function(){f.current=e}),[e]);var h=!t&&0!==t&&"undefined"!=typeof window;t=+t||0;var g=!!(n=n||{}).leading,v=!("trailing"in n)||!!n.trailing,y="maxWait"in n,b=y?Math.max(+n.maxWait||0,t):null;i((function(){return m.current=!0,function(){m.current=!1}}),[]);var w=r((function(){var e=function(e){var t=u.current,n=d.current;return u.current=d.current=null,l.current=e,p.current=f.current.apply(n,t)},n=function(e,t){h&&cancelAnimationFrame(s.current),s.current=h?requestAnimationFrame(e):setTimeout(e,t)},r=function(e){if(!m.current)return!1;var n=e-c.current;return!c.current||n>=t||n<0||y&&e-l.current>=b},i=function(t){return s.current=null,v&&u.current?e(t):(u.current=d.current=null,p.current)},a=function e(){var o=Date.now();if(r(o))return i(o);if(m.current){var a=t-(o-c.current),s=y?Math.min(a,b-(o-l.current)):a;n(e,s)}},w=function(){var i=Date.now(),f=r(i);if(u.current=[].slice.call(arguments),d.current=o,c.current=i,f){if(!s.current&&m.current)return l.current=c.current,n(a,t),g?e(c.current):p.current;if(y)return n(a,t),e(c.current)}return s.current||n(a,t),p.current};return w.cancel=function(){s.current&&(h?cancelAnimationFrame(s.current):clearTimeout(s.current)),l.current=0,u.current=c.current=d.current=s.current=null},w.isPending=function(){return!!s.current},w.flush=function(){return s.current?i(Date.now()):p.current},w}),[g,y,t,b,v,h]);return w}((function(){if(T.content.io.length>0){var e=function(e,t){var n=[],r=e.content,o=r.io,i=r.format,a=r.quality;return o.forEach((function(e){n.push(function(e){return{key:"io",value:Object.keys(e).filter((function(t){return"id"!==t&&null!==e[t]})).map((function(t){return"".concat(t,":").concat(e[t])})).join(",")}}(e))})),i&&n.push({key:"format",value:i}),a&&a!==t.content.quality&&n.push({key:"quality",value:a.toString()}),n.map((function(e){var t=e.key,n=e.value;return"".concat(t,"=").concat(n)})).join("&")}(T,P);b("".concat(o,"?").concat(e))}else b(o)}),500);return i((function(){return D(),function(){return D.cancel()}}),[D,T,o]),i((function(){c||l&&E(TS.transformations)}),[c,l]),e.createElement(w_,null,e.createElement(ZS,{url:y,canViewTransformations:l,activeTab:x,onApply:m?function(){return m(y,T)}:void 0,onBack:function(){return h(y,T)},hasActiveChanges:N,onDone:function(){c||N?c&&E(TS.presets):f(y,T)},onShowTransformations:function(){l&&E(TS.transformations)},hideBottomBar:u}),e.createElement(HS,{onPresetSelected:function(e){b(""!==e?o.split("/transform")[0]+"/transform/".concat(e,"/").concat(lk(o),"/"):o),S(e)},activeTab:x,presets:I,preset:T,dispatch:B,selectedPreset:k,isLoading:z,baseURL:o,canViewPresets:c,canViewTransformations:l}))}))(C_||(C_=Sa(["\n\theight: 100%;\n\twidth: 100%;\n"],["\n\theight: 100%;\n\twidth: 100%;\n"]))),__=t(null);function I_(t){var o=n(),i=o[0],a=o[1],c=n(""),l=c[0],s=c[1],u=function(e,t){s(e),a((function(n){return{preset:(null==n?void 0:n.asset.id)===t.id?n.preset:void 0,url:e,asset:t}}))},d=r((function(){return{transformation:i,setTransformation:a,openDat:u,closeDat:function(){return s("")}}}),[i]);return e.createElement(__.Provider,{value:d},t.children,l&&e.createElement(x_,{transformBaseUrl:l,transformation:i,setTransformation:a,closeDat:function(){return s("")}}))}function T_(){var e=o(__);if(null===e)throw new Error("useTransformations must be used with a DatProvider");return e}function B_(t){var r,o,a,c,l=t.transformBaseUrl,s=t.asset,u=t.toggleDropdown,d=T_(),p=d.transformation,f=d.openDat,m=n(),h=m[0],g=m[1],v=null!==(c=null===(a=null===(o=null===(r=null==p?void 0:p.preset)||void 0===r?void 0:r.content)||void 0===o?void 0:o.io)||void 0===a?void 0:a.length)&&void 0!==c?c:0;return i((function(){if(p){var e=p.url,t="io=transform:fill,width:40,height:40";e.includes("io=transform:fill")&&g(e.replace(/io=transform:fill,width:[0-9]+,height:[0-9]+/,t)),g("".concat(e,"&").concat(t))}}),[p]),l?e.createElement(e.Fragment,null,e.createElement(Bv.Divider,null),e.createElement(P_,{thumbnail:p&&0!==v?e.createElement(hv,{imageUrl:h,"data-testid":"thumbnail-image"}):e.createElement(hv,{icon:e.createElement(Ip,null),"data-testid":"crop-icon"}),rightElements:e.createElement(Yp,null),onClick:function(){u(),f(l,s)},subtext:p&&v>0?"".concat(v," transformation").concat(1===v?"":"s"):""},"New transformation")):null}var z_,P_=Ul(Bv.Item)(z_||(z_=Sa(["\n\tmax-width: 100%;\n\twidth: 340px;\n\tmargin-left: 0;\n"],["\n\tmax-width: 100%;\n\twidth: 340px;\n\tmargin-left: 0;\n"]))),N_=t(null);function D_(t){var o=n([]),a=o[0],c=o[1],l=n(),s=l[0],u=l[1],d=function(e){var t=this,r=n([]),o=r[0],a=r[1],c=bb(),l=c.selectionMode,s=c.language,u=xw(),d=!1;return i((function(){if(e){var n=null!=e?e:[];"MultiSelect"!==l&&(n=n[0]?[n[0]]:[]),r=n,Ea(t,void 0,void 0,(function(){var e,t,n;return Ca(this,(function(o){switch(o.label){case 0:return r.length?[4,Tw(r,u,s)]:[3,2];case 1:e=o.sent(),d||kb(e)||(null===(t=e.value)||void 0===t||t.sort((function(e,t){return r.indexOf(e.id)-r.indexOf(t.id)})),a(null!==(n=e.value)&&void 0!==n?n:[])),o.label=2;case 2:return[2]}}))}))}var r;return function(){d=!0}}),[e]),o}(s),p=wb(),f=T_().transformation;function m(){c([])}function h(e){c((function(t){var n=e.filter((function(e){return!O_(t,e)}));return ka(ka([],t,!0),n.map((function(e){return{type:"asset",value:e}})),!0)}))}function g(e){var t;"MultiSelect"!==p?(t=e[0],a.some((function(e){return e.value.id===t.id}))?c([]):c([{type:"asset",value:t}])):c((function(t){var n=e.filter((function(e){return!O_(t,e)})),r=e.filter((function(e){return O_(t,e)}));return ka(ka([],t.filter((function(e){return!r.some((function(t){return t.id===e.value.id}))})),!0),n.map((function(e){return{type:"asset",value:e}})),!0)}))}function v(e){c((function(t){return O_(t,e)?t.filter((function(t){return t.value.id!==e.id})):ka(ka([],t,!0),[{type:"collection",value:e}],!1)}))}i((function(){var e;u((null!==(e=t.preselectedAssetIds)&&void 0!==e?e:[]).filter((function(e){return!!e})).map((function(e){return window.btoa("(Asset_id "+e+")")})))}),[t.preselectedAssetIds]),i((function(){h(d)}),[d]),i((function(){f&&(m(),h([null==f?void 0:f.asset]))}),[f]);var y=r((function(){return{selection:a,preselectedAssetIds:s,clear:m,selectAssets:h,toggleAssets:g,toggleCollection:v}}),[a]);return e.createElement(N_.Provider,{value:y},t.children)}function O_(e,t){return e.some((function(e){return e.value.id===t.id}))}function A_(){var e=o(N_);if(null===e)throw new Error("useSelection must be used with a SelectionProvider");return e}function R_(t){var n=t.className,r=t.collection,o=t.fadeIn,i=void 0===o||o,a=t.isSelected,c=t.style,l=wb(),s=Ta()[1],u=A_(),d=bb().hideExternalAccess;return e.createElement("div",{id:r.id,style:c,className:ob("m-2 w-56 self-start group relative",n,i&&"fade-in-down")},e.createElement(Hh,{contextAction:!d&&e.createElement(Hh.ContextActionButton,{tooltip:Ry("Open in new tab"),"aria-label":Ry("Open in new tab"),onClick:function(){window.open(r.url,"_blank")}},e.createElement(Jd,null)),selectButtonAriaLabel:Ry(a?"Deselect":"Select"),onSelect:"MultiSelect"===l?function(e){e.stopPropagation(),u.toggleCollection(r)}:void 0,isSelected:a,onClick:function(){return s({page:"collection",collection:r})},"aria-selected":a,"data-testid":"asset-card"},e.createElement(Hh.Frame,null,e.createElement(Hh.Images,null,r.thumbnailUrls.slice(0,3).map((function(t){return e.createElement(Hh.Img,{key:t,src:t,alt:r.name})})))),e.createElement(Hh.Header,{title:r.name,"data-testid":"asset-name"}),e.createElement("div",{className:"pl-4 pb-3 -mt-1 text-sm text-body-400"},fb(r.assetCount,Ry("{} asset"),Ry("{} assets")))))}function L_(e){var t=n(void 0),r=t[0],o=t[1],c=a(void 0);function l(t){void 0!==c.current&&cancelAnimationFrame(c.current),c.current=requestAnimationFrame((function(){var n=null!=t?t:e;if(null!==n){var r=n.getBoundingClientRect();o({width:r.width,height:r.height,scrollWidth:n.scrollWidth})}}))}return i((function(){l();var e=function(){return l()};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e),c.current&&cancelAnimationFrame(c.current)}}),[e]),{dimensions:r,remeasure:l}}function F_(e,t){if(!e)throw new Error("Invariant failed")}function M_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j_(){return j_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j_.apply(this,arguments)}function H_(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var U_=new Map,V_=new Map,$_=new Map,W_=0;function Y_(e,t,n){void 0===n&&(n={}),n.threshold||(n.threshold=0);var r=n,o=r.root,i=r.rootMargin,a=r.threshold;if(U_.has(e)&&F_(!1),e){var c=function(e){return e?$_.has(e)?$_.get(e):(W_+=1,$_.set(e,W_.toString()),$_.get(e)+"_"):""}(o)+(i?a.toString()+"_"+i:a.toString()),l=V_.get(c);l||(l=new IntersectionObserver(q_,n),c&&V_.set(c,l));var s={callback:t,element:e,inView:!1,observerId:c,observer:l,thresholds:l.thresholds||(Array.isArray(a)?a:[a])};return U_.set(e,s),l.observe(e),s}}function G_(e){if(e){var t=U_.get(e);if(t){var n=t.observerId,r=t.observer,o=r.root;r.unobserve(e);var i=!1,a=!1;n&&U_.forEach((function(t,r){r!==e&&(t.observerId===n&&(i=!0,a=!0),t.observer.root===o&&(a=!0))})),!a&&o&&$_.delete(o),r&&!i&&r.disconnect(),U_.delete(e)}}}function q_(e){e.forEach((function(e){var t=e.isIntersecting,n=e.intersectionRatio,r=e.target,o=U_.get(r);if(o&&n>=0){var i=o.thresholds.some((function(e){return o.inView?n>e:n>=e}));void 0!==t&&(i=i&&t),o.inView=i,o.callback(i,e)}}))}var K_=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return M_(H_(t=e.call.apply(e,[this].concat(r))||this),"state",{inView:!1,entry:void 0}),M_(H_(t),"node",null),M_(H_(t),"handleNode",(function(e){t.node&&(G_(t.node),e||t.props.triggerOnce||t.setState({inView:!1,entry:void 0})),t.node=e||null,t.observeNode()})),M_(H_(t),"handleChange",(function(e,n){(e!==t.state.inView||e)&&t.setState({inView:e,entry:n}),t.props.onChange&&t.props.onChange(e,n)})),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.componentDidMount=function(){this.node||F_(!1)},o.componentDidUpdate=function(e,t){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold||(G_(this.node),this.observeNode()),t.inView!==this.state.inView&&this.state.inView&&this.props.triggerOnce&&(G_(this.node),this.node=null)},o.componentWillUnmount=function(){this.node&&(G_(this.node),this.node=null)},o.observeNode=function(){if(this.node){var e=this.props,t=e.threshold,n=e.root,r=e.rootMargin;Y_(this.node,this.handleChange,{threshold:t,root:n,rootMargin:r})}},o.render=function(){var e=this.state,t=e.inView,n=e.entry;if(!function(e){return"function"!=typeof e.children}(this.props))return this.props.children({inView:t,entry:n,ref:this.handleNode});var r=this.props,o=r.children,i=r.as,a=r.tag,c=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,["children","as","tag","triggerOnce","threshold","root","rootMargin","onChange"]);return l(i||a||"div",j_({ref:this.handleNode},c),o)},r}(f);M_(K_,"displayName","InView"),M_(K_,"defaultProps",{threshold:0,triggerOnce:!1});var X_={inView:!1,entry:void 0};function Z_(t){var r=function(e){void 0===e&&(e={});var t=a(),r=n(X_),o=r[0],i=r[1];return[s((function(n){t.current&&(G_(t.current),e.triggerOnce||i(X_)),n&&Y_(n,(function(t,r){i({inView:t,entry:r}),t&&e.triggerOnce&&G_(n)}),e),t.current=n}),[e.threshold,e.root,e.rootMargin,e.triggerOnce]),o.inView,o.entry]}(),o=r[0],c=r[1];return i((function(){c&&!t.isLoading&&t.hasNextPage&&t.loadMore()}),[c]),e.createElement(e.Fragment,null,t.children,t.hasNextPage&&e.createElement("div",{className:"relative h-32 w-full",ref:o,"data-testid":"loading-element"},e.createElement(lw,{className:ob(!c&&"hidden")})))}function J_(){return e.createElement("svg",{viewBox:"0 5 60 82",className:"h-20"},e.createElement("defs",null,e.createElement("filter",{x:"-1.7%",y:"-1.2%",width:"103.3%",height:"105%",filterUnits:"objectBoundingBox",id:"prefix__a"},e.createElement("feOffset",{dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),e.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0.133333333 0 0 0 0 0.2 0 0 0 0.05 0",in:"shadowOffsetOuter1"})),e.createElement("filter",{x:"-5%",y:"-5%",width:"110%",height:"120%",filterUnits:"objectBoundingBox",id:"prefix__c"},e.createElement("feOffset",{dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),e.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0.133333333 0 0 0 0 0.2 0 0 0 0.05 0",in:"shadowOffsetOuter1"})),e.createElement("path",{d:"M5 5h35l20 20v55a5 5 0 01-5 5H5a5 5 0 01-5-5V10a5 5 0 015-5z",id:"prefix__b"}),e.createElement("path",{d:"M40 5l20 20H45a5 5 0 01-5-5V5z",id:"prefix__d"})),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("use",{fill:"#000",filter:"url(#prefix__a)",xlinkHref:"#prefix__b"}),e.createElement("use",{fill:"#FFF",xlinkHref:"#prefix__b"}),e.createElement("g",{fillRule:"nonzero"},e.createElement("use",{fill:"#000",filter:"url(#prefix__c)",xlinkHref:"#prefix__d"}),e.createElement("use",{fill:"#FFF",xlinkHref:"#prefix__d"}))))}function Q_(t){return e.createElement(aI,null,e.createElement(cI,null,e.createElement(J_,null),e.createElement(lI,null)),e.createElement(sI,null,Ry("No results found")),e.createElement(uI,null,Ry("Try adjusting the filter to find assets.")),e.createElement(dI,{variant:"primary",title:Ry("Reset filters"),onClick:t.onReset},Ry("Reset filters")))}var eI,tI,nI,rI,oI,iI,aI=Ul.div(eI||(eI=Sa(["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n"],["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n"]))),cI=Ul.div(tI||(tI=Sa(["\n\tbackground-color: ",";\n\tborder-radius: 50%;\n\twidth: 160px;\n\theight: 160px;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n"],["\n\tbackground-color: ",";\n\tborder-radius: 50%;\n\twidth: 160px;\n\theight: 160px;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n"])),Sm.gray25),lI=Ul(ep)(nI||(nI=Sa(["\n\tposition: absolute;\n\tmargin: "," 0 0 1px;\n\tcolor: ",";\n\twidth: 36px;\n\theight: 36px;\n"],["\n\tposition: absolute;\n\tmargin: "," 0 0 1px;\n\tcolor: ",";\n\twidth: 36px;\n\theight: 36px;\n"])),Sm.spacing2,Sm.gray300),sI=Ul.h1(rI||(rI=Sa(["\n\tmargin-top: ",";\n\tfont-size: ",";\n"],["\n\tmargin-top: ",";\n\tfont-size: ",";\n"])),Sm.spacing6,Sm.fontSize400),uI=Ul.span(oI||(oI=Sa(["\n\tmargin-top: ",";\n\tcolor: ",";\n"],["\n\tmargin-top: ",";\n\tcolor: ",";\n"])),Sm.spacing5,Sm.colorTextDisabled),dI=Ul(Gm)(iI||(iI=Sa(["\n\tmargin-top: ",";\n"],["\n\tmargin-top: ",";\n"])),Sm.spacing7);function pI(t){var r,o,i=n(null),a=i[0],c=i[1],l=L_(a).dimensions,s=A_().selection.filter((function(e){return"collection"===e.type})).map((function(e){return e.value.id})),u=Na().setSearch,d=t.connection,p=d.data,f=d.isLoading,m=d.loadMore,h=d.hasNextPage,g=void 0!==l?Math.ceil(l.height/184):0,v=void 0!==l?Math.round((l.width-32)/204):0;return e.createElement("div",{role:"listbox",className:"card-list",ref:function(e){c(e)}},("Failure"===p.tag||"Loading"===p.tag&&!p.value)&&e.createElement(hb,{rows:g,columns:v,title:e.createElement("div",{className:"mt-2 text-sm"}," ")}),"Loaded"===p.tag&&0===(null===(r=p.value)||void 0===r?void 0:r.collections.nodes.length)&&e.createElement(Q_,{onReset:function(){return u("collections","")}}),("Loading"===p.tag&&!!p.value||"Loaded"===p.tag&&p.value.collections.nodes.length>0)&&e.createElement(Z_,{hasNextPage:h,isLoading:f,loadMore:m},null===(o=p.value)||void 0===o?void 0:o.collections.nodes.map((function(t,n){return e.createElement(R_,{key:t.id,isSelected:s.includes(t.id),collection:t,fadeIn:n>=g*v})}))))}function fI(){var t=Da("collections"),r=t.value,o=t.setIsLoading,a=function(e){var t,r=this,o=xw(),a=n({tag:"Loading",value:null}),c=a[0],l=a[1],s=!1,u=function(t){return Ea(r,void 0,void 0,(function(){var n,r;return Ca(this,(function(i){switch(i.label){case 0:return l((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),[4,Ib("\nquery getCollections($searchTerm: String, $orderBy: CollectionOrder!, $after: Cursor) {\n collections(after: $after, first: 50, filter: {name_contains: $searchTerm, assetCount_gte: 1}, orderBy: $orderBy) {\n nodes {\n id\n name\n assetCount\n thumbnailUrls\n url\n }\n totalCount\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}",wa(wa({},e),{searchTerm:null!==(r=e.searchTerm)&&void 0!==r?r:null,after:null!=t?t:null}),o)];case 1:return n=i.sent(),s||(kb(n)?l({tag:"Failure",value:n.error}):d(n,t)),[2]}}))}))},d=function(e,t){p()&&t?l((function(t){var n,r,o=null!==(r=null===(n=p(t))||void 0===n?void 0:n.nodes)&&void 0!==r?r:[];return{tag:"Loaded",value:{collections:wa(wa({},e.value.collections),{nodes:ka(ka([],o,!0),e.value.collections.nodes,!0)})}}})):l({tag:"Loaded",value:e.value})},p=function(e){var t,n=null!=e?e:c;if("Failure"!==n.tag)return null===(t=n.value)||void 0===t?void 0:t.collections};return i((function(){return u(),function(){s=!0}}),[e.searchTerm,e.orderBy]),{data:c,executeQuery:function(){return u()},isLoading:!c||"Loading"===c.tag,loadMore:function(){var e;return u(null===(e=p())||void 0===e?void 0:e.pageInfo.endCursor)},hasNextPage:!!(null===(t=p())||void 0===t?void 0:t.pageInfo.hasNextPage)}}({searchTerm:r,orderBy:ya("collections")[0]});return i((function(){a.isLoading||o(!1)}),[a.isLoading]),"Failure"===a.data.tag?e.createElement(eb,{error:new Error(a.data.value),onRetry:a.executeQuery}):e.createElement("div",{className:"flex flex-col flex-grow overflow-y-auto"},e.createElement("div",{className:"flex items-center px-4 pt-4 pb-2 z-10"},a.data.value&&e.createElement("span",{className:"flex-shrink-0 flex-grow text-body-400 fade-in-down"},fb(a.data.value.collections.totalCount,Ry("{} collection"),Ry("{} collections"))),!a.data.value&&e.createElement("span",{className:"flex-grow"}),e.createElement(ub,{options:["CREATED_AT","NAME"]}),e.createElement(tb,null)),e.createElement(pI,{connection:a}))}var mI=t(null);function hI(t){var o=t.children,a=t.hideLimitedUse,c=void 0!==a&&a,l=n([]),s=l[0],u=l[1],d=n([]),p=d[0],f=d[1],m=n([]),h=m[0],g=m[1],v=n(),y=v[0],b=v[1],w=n({}),x=w[0],E=w[1];function C(e){u((function(t){return gI(t,e)}))}function k(e){u((function(t){return vI(t,e)}))}function S(e){f((function(t){return gI(t,e.id)})),E((function(t){var n;return wa(wa({},t),((n={})[e.id]=e,n))}))}function _(e){f((function(t){return vI(t,e.id)})),E((function(t){var n=t,r=e.id;return xa(n,["symbol"==typeof r?r:r+""])}))}function I(e){g((function(t){return gI(t,e)}))}function T(e){g((function(t){return vI(t,e)}))}function B(){u([]),f([]),E({}),g([])}i((function(){b(!c&&void 0)}),[c]);var z=p.map((function(e){return x[e]})),P=r((function(){return{assetTypes:s,metaproperties:z,tags:h,isLimited:y,addAssetType:C,removeAssetType:k,addMetaproperty:S,removeMetaproperty:_,addTag:I,removeTag:T,clear:B}}),[s,z,h,y]);return e.createElement(mI.Provider,{value:P},o)}function gI(e,t){return e.includes(t)?e:ka(ka([],e,!0),[t],!1)}function vI(e,t){return e.filter((function(e){return e!==t}))}function yI(){var e=o(mI);if(null===e)throw new Error("useAssetFilter must be used with a AssetFilterProvider");return e}function bI(e){return Ry({AUDIO:"Audio",DOCUMENT:"Document",IMAGE:"Image",VIDEO:"Video",ARCHIVE:"Archive"}[e])}function wI(e){switch(e){case"AUDIO":return ap;case"DOCUMENT":return hp;case"IMAGE":return Pp;case"VIDEO":return ip;case"ARCHIVE":return lp}}function xI(t){return e.createElement(CI,{icon:e.createElement(jp,null),"aria-label":"Next",title:"Next",variant:"clean",isSmall:!0,onClick:t.onClick,"data-testid":"arrow-right",isVisible:t.isVisible})}var EI,CI=Ul(Gm)(EI||(EI=Sa(["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\n\t&:hover {\n\t\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\t}\n\n\t","\n"],["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\n\t&:hover {\n\t\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\t}\n\n\t","\n"])),(function(e){return!e.isVisible&&"\n\t\tdisplay: none;\n\t"}));function kI(t){return e.createElement(_I,{icon:e.createElement(Mp,null),"aria-label":"Previous",title:"Previous",variant:"clean",isSmall:!0,onClick:t.onClick,"data-testid":"arrow-left",isVisible:t.isVisible})}var SI,_I=Ul(Gm)(SI||(SI=Sa(["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: 4px 0 13px 13px #fff;\n\n\t&:hover {\n\t\tbox-shadow: 4px 0 13px 13px #fff;\n\t}\n\n\t","\n"],["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: 4px 0 13px 13px #fff;\n\n\t&:hover {\n\t\tbox-shadow: 4px 0 13px 13px #fff;\n\t}\n\n\t","\n"])),(function(e){return!e.isVisible&&"\n\t\tdisplay: none;\n\t"}));function II(t){var r=n(0),o=r[0],c=r[1],l=a(null),s=L_(l.current),u=s.dimensions,d=s.remeasure,p=null!==l.current?l.current.scrollWidth-l.current.clientWidth:0,f=void 0!==u&&u.width<u.scrollWidth;i((function(){d(l.current)}),[t.children,l.current]),i((function(){f||c(0)}),[f]);var m=o>0,h=p>5&&o!==p;return e.createElement("div",{className:ob("inline-flex flex-grow overflow-hidden",t.className)},f&&e.createElement(kI,{isVisible:m,onClick:function(){c((function(e){var t=Math.max(e-250,0);return t>=100?t:0}))}}),e.createElement("div",{className:"overflow-hidden",ref:l},e.createElement("div",{className:"transition-transform inline-flex",style:{transform:"translateX(".concat(-o,"px)")},"data-testid":"horizontal-scrollable-el"},t.children)),f&&e.createElement(xI,{isVisible:h,onClick:function(){c((function(e){var t=Math.min(e+250,p);return t<=p-100?t:p}))}}),t.static)}function TI(t){var n=ob("bg-ui-0 border border-ui-600 flex-shrink-0 h-8 inline-flex\n\t\t items-center justify-center px-3 rounded-full select-none shadow-border\n\t\t text-sm text-white transition-color",t.className);return e.createElement("div",{className:n,onClick:t.onClick,onKeyDown:function(e){return function(e,t){t&&"Enter"===e.key&&(e.preventDefault(),t(e))}(e,t.onClick)},role:"button",tabIndex:0,"data-testid":t["data-testid"]},t.children)}function BI(t){return e.createElement(TI,{className:"mr-2 fade-in-down","data-testid":"selected-filter:".concat(t.title)},t.icon,e.createElement("span",{className:"max-w-32 truncate",title:t.title},t.title),e.createElement(Hp,{onClick:t.onClick,title:Ry("Remove filter"),className:"w-5 h-5 ml-1 -mr-1 text-body-300 hover:text-body-400 cursor-pointer"}))}function zI(){var t=yI(),n=0===t.metaproperties.length&&0===t.assetTypes.length&&0===t.tags.length?void 0:e.createElement(NI,{variant:"clean",isSmall:!0,onClick:t.clear},Ry("Clear filters"));return e.createElement("div",{"data-testid":"selected-filter-list"},e.createElement(II,{className:"ml-2",static:n},t.assetTypes.map((function(n){var r=wI(n);return e.createElement(BI,{key:n,onClick:function(){return t.removeAssetType(n)},title:bI(n),icon:e.createElement(r,{className:"w-5 h-5 mr-1"})})})),t.metaproperties.map((function(n){return e.createElement(BI,{key:n.id,onClick:function(){return t.removeMetaproperty(n)},title:n.label})})),t.tags.map((function(n){return e.createElement(BI,{key:n,onClick:function(){return t.removeTag(n)},title:n})}))))}var PI,NI=Ul(Gm)(PI||(PI=Sa(["\n\tflex-shrink: 0;\n\tanimation: var(--fade-in-down);\n"],["\n\tflex-shrink: 0;\n\tanimation: var(--fade-in-down);\n"]))),DI=["xls","xlsx","ppt","pdf","pptx","indd","mp4","wav","docx","doc","numbers","pages","otf","txt","ttf","mov","avi","mpeg","webm","fla","aiff","mp3","m4r","zip","rar"];function OI(e){if(e.derivatives.thumbnail)return e.derivatives.thumbnail;var t=e.extensions[0];return DI.includes(t)?"".concat("https://d8ejoa1fys2rk.cloudfront.net","/includes/img/placeholder/medium/").concat(t,".jpg"):"".concat("https://d8ejoa1fys2rk.cloudfront.net","aif"===t?"/includes/img/placeholder/medium/aiff.jpg":"m4a"===t?"/includes/img/placeholder/medium/m4r.jpg":"/includes/img/common/no-image.png")}function AI(e){var t=e.extensions[0];return"JPG"===(null==t?void 0:t.toUpperCase())?"JPEG":null==t?void 0:t.toUpperCase()}function RI(t){var n=t.transformBaseUrl,r=t.portalUrl,o=t.onOpenDAT,i=bb(),a=i.hideExternalAccess,c="SingleSelectFile"===i.selectionMode&&n;return!c&&a?null:c||a?c&&a?e.createElement(Hh.ContextActionButton,{tooltip:"New transformation","aria-label":"New transformation",onClick:o},e.createElement(Ip,null)):e.createElement(Ov,{trigger:function(t){var n=t.isOpen,r=xa(t,["isOpen"]);return e.createElement(Hh.ContextActionButton,wa({"aria-label":"Menu",isPressed:n},r),e.createElement($p,null))},isClosedOnScroll:!0},e.createElement(Ov.Item,{icon:e.createElement(Jd,null),onClick:function(){window.open(r,"_blank")}},"Open asset"),e.createElement(Ov.Divider,null),e.createElement(Ov.Item,{icon:e.createElement(Ip,null),onClick:o},"New transformation")):e.createElement(Hh.ContextActionButton,{tooltip:Ry("Open in new tab"),"aria-label":Ry("Open in new tab"),onClick:function(){window.open(r,"_blank")}},e.createElement(Jd,null))}function LI(t){var r,o,a=t.className,c=t.fadeIn,l=void 0===c||c,s=t.asset,u=t.isSelected,d=t.isOutlined,p=t.onClick,f=t.children,m=void 0===f?null:f,h=n(),g=h[0],v=h[1],y=T_(),b=y.openDat,w=y.setTransformation,x=bb().theme,E=function(e){return[e.isArchived&&Ry("archived"),e.isWatermarked&&Ry("watermarked"),e.isLimitedUse&&Ry("limited")].filter((function(e){return e})).join(", ")}(s),C=AI(s);i((function(){var e,t=null===(e=s.metaproperties)||void 0===e?void 0:e.nodes.filter((function(e){return e.showInGridView||e.showInListView}));v(t)}),[s.metaproperties]);var k=function(e){void 0!==p&&(e.stopPropagation(),w(),p(s,e))};return e.createElement(jI,{id:s.id,theme:x,isOutlined:(u||d)&&void 0!==(null==x?void 0:x.colorPrimary),fadeIn:l,className:ob("group",a),"data-drag-select-id":s.id},e.createElement(Hh,{contextAction:e.createElement(RI,{transformBaseUrl:null===(o=null===(r=s.files)||void 0===r?void 0:r.transformBaseUrl)||void 0===o?void 0:o.url,portalUrl:s.url,onOpenDAT:function(){var e,t;return b(null===(t=null===(e=s.files)||void 0===e?void 0:e.transformBaseUrl)||void 0===t?void 0:t.url,s)}}),selectButtonAriaLabel:Ry(u?"Deselect":"Select"),onSelect:k,onClick:k,isSelected:u,"aria-selected":u,"data-testid":"asset-card"},e.createElement(Hh.Frame,{icon:E?e.createElement(HI,{color:"black-alpha",limitWidth:!!C,"data-testid":"asset-tag"},e.createElement(kh,null,E)):void 0,"data-testid":"asset-type",badge:C},e.createElement(Hh.Images,null,OI(s)&&e.createElement(Hh.Img,{src:OI(s),alt:s.name,contentResize:"fit"}))),m,e.createElement(Hh.Header,{"data-testid":"asset-name",title:s.name}),!!(null==g?void 0:g.length)&&e.createElement(Hh.AdditionalInfo,null,e.createElement("dl",{className:"text-body-400 text-sm flex flex-col gap-y-px"},g&&g.map((function(t){var n=t.label,r=t.options.map((function(e){return e.label})).join(", ");return e.createElement("div",{className:"flex flex-wrap",key:n},e.createElement("dt",{className:"text-body-300 pr-1"},n,":"),e.createElement("dd",{className:""},r))}))))))}var FI,MI,jI=Ul.div(FI||(FI=Sa(["\n\tmargin: ",";\n\twidth: 224px;\n\talign-self: flex-start;\n\tposition: relative;\n\t","\n\n\t--userComponentCardSelectedColor: ",";\n\t--userComponentCardSelectedColorHover: ",";\n\t--userComponentCardSelectedColorActive: ",";\n"],["\n\tmargin: ",";\n\twidth: 224px;\n\talign-self: flex-start;\n\tposition: relative;\n\t","\n\n\t--userComponentCardSelectedColor: ",";\n\t--userComponentCardSelectedColorHover: ",";\n\t--userComponentCardSelectedColorActive: ",";\n"])),Sm.spacing3,(function(e){return e.fadeIn?"animation: var(--fade-in-down);":""}),(function(e){var t=e.theme;return null==t?void 0:t.colorButtonPrimary}),(function(e){var t=e.theme;return null==t?void 0:t.colorButtonPrimaryHover}),(function(e){var t=e.theme;return null==t?void 0:t.colorButtonPrimaryActive})),HI=Ul(_m)(MI||(MI=Sa(["\n\t","\n"],["\n\t","\n"])),(function(e){return e.limitWidth&&"max-width: 142px;"}));function UI(e,t,n){var o=this,c=a(null),l=a(0),s=a(null),u=a([]),d=a(),p=a(),f=a(e),m=a(!0);f.current=e;var h=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var g=!!(n=n||{}).leading,v=!("trailing"in n)||!!n.trailing,y="maxWait"in n,b=y?Math.max(+n.maxWait||0,t):null;i((function(){return m.current=!0,function(){m.current=!1}}),[]);var w=r((function(){var e=function(e){var t=u.current,n=d.current;return u.current=d.current=null,l.current=e,p.current=f.current.apply(n,t)},n=function(e,t){h&&cancelAnimationFrame(s.current),s.current=h?requestAnimationFrame(e):setTimeout(e,t)},r=function(e){if(!m.current)return!1;var n=e-c.current,r=e-l.current;return!c.current||n>=t||n<0||y&&r>=b},i=function(t){return s.current=null,v&&u.current?e(t):(u.current=d.current=null,p.current)},a=function(){var e=Date.now();if(r(e))return i(e);if(m.current){var o=e-c.current,s=e-l.current,u=t-o,d=y?Math.min(u,b-s):u;n(a,d)}},w=function(){for(var i=[],f=0;f<arguments.length;f++)i[f]=arguments[f];var h=Date.now(),v=r(h);if(u.current=i,d.current=o,c.current=h,v){if(!s.current&&m.current)return l.current=c.current,n(a,t),g?e(c.current):p.current;if(y)return n(a,t),e(c.current)}return s.current||n(a,t),p.current};return w.cancel=function(){s.current&&(h?cancelAnimationFrame(s.current):clearTimeout(s.current)),l.current=0,u.current=c.current=d.current=s.current=null},w.isPending=function(){return!!s.current},w.flush=function(){return s.current?i(Date.now()):p.current},w}),[g,y,t,b,v,h]);return w}function VI(e,t){return e===t}function $I(e){return"function"==typeof e?function(){return e}:e}function WI(e,t,r){var o=r&&r.equalityFn||VI,c=function(e){var t=n($I(e)),r=t[0],o=t[1];return[r,s((function(e){return o($I(e))}),[])]}(e),l=c[0],u=c[1],d=UI(s((function(e){return u(e)}),[u]),t,r),p=a(e);return i((function(){o(p.current,e)||(d(e),p.current=e)}),[e,d,o]),[l,{cancel:d.cancel,isPending:d.isPending,flush:d.flush}]}var YI={x:null,y:null},GI=function(t){var r=t.dragContainer,o=t.selectionBoxCustomAttr,c=t.onSelect,l=t.onDeselect,u=t.onDragStart,d=t.onDragEnd,p=n(YI),f=p[0],h=p[1],g=n(YI),v=g[0],y=g[1],b=WI(v,10,{leading:!0,maxWait:10})[0],w=n(),x=w[0],E=w[1],C=La(),k=e.useMemo((function(){return KI(f,b,C.querySelector(".cv-root"))}),[f,b,C]),S=WI(k,50,{leading:!1,maxWait:50})[0],_=n([]),I=_[0],T=_[1],B=eT(I),z=a(f),P=a(v),N=a(null!==z.current.x&&null!==z.current.y&&null!==P.current.x&&null!==P.current.y),D=a({shiftKey:!1,metaKey:!1});i((function(){return document.addEventListener("keydown",O,!1),document.addEventListener("keyup",O,!1),function(){document.removeEventListener("keydown",O,!1),document.removeEventListener("keyup",O,!1)}}),[]);var O=function(e){var t=e.shiftKey,n=e.metaKey,r=t||n?"inverse":"select";D.current={shiftKey:t,metaKey:n},N.current&&r!==x&&E(r)};i((function(){var e;return"function"==typeof u&&N.current?(O(D.current),u(null!=x?x:"select")):"function"!=typeof d||N.current||(e=setTimeout((function(){return d(null!=x?x:"select")}),10)),function(){return clearTimeout(e)}}),[N.current,x]);var A=function(e){z.current=e,h(e),L()},R=function(e){P.current=e,y(e),L()},L=function(){N.current=null!==z.current.x&&null!==z.current.y&&null!==P.current.x&&null!==P.current.y},F=s((function(e){var t,n,r=e.clientY,o=e.clientX,i=null!==z.current.x,a=Math.abs(null!==(t=z.current.x)&&void 0!==t?t:0-o)>=1||Math.abs(null!==(n=z.current.y)&&void 0!==n?n:0-r)>=1;i&&a&&R({x:o,y:r})}),[]),M=s((function(){C.removeEventListener("mousemove",F),C.removeEventListener("mouseup",M),A(YI),R(YI)}),[F,C]),j=s((function(e){var t=e.clientY,n=e.clientX;0===e.button&&(C.addEventListener("mousemove",F),C.addEventListener("mouseup",M),A({x:n,y:t}))}),[F,M,C]);i((function(){var e=C.querySelector(r);return e&&(JI(C),e.addEventListener("mousedown",j)),function(){e&&(e.removeEventListener("mousedown",j),QI(C))}}),[r,j,F,M,C]),i((function(){var e=C.querySelectorAll("[".concat("data-drag-select-id","]")),t=Array.from(e).reduce((function(e,t){var n=ZI(t);return t instanceof HTMLElement&&XI(n,S)&&t.dataset.dragSelectId&&e.push(t.dataset.dragSelectId),e}),[]);T(t)}),[S,C]),i((function(){if(B&&B!==I&&N.current){var e=I.filter((function(e){return!B.includes(e)})),t=B.filter((function(e){return!I.includes(e)}));e.length&&c(e),t.length&&l(t)}}),[I,B,c,l,N]);var H=C.querySelector("#".concat("drag-select-container"));return N.current&&H?m.createPortal(e.createElement("div",wa({},o,{style:o.style?wa(wa(wa({},qI),o.style),k):wa(wa({},qI),k),"data-testid":"drag-selection"})),H):null},qI={position:"absolute",zIndex:100},KI=function(e,t,n){if(!(e.x&&e.y&&t.x&&t.y&&n))return{left:0,top:0,height:0,width:0};var r=n.getBoundingClientRect(),o=Math.max(t.x,0),i=Math.min(e.x,o);i=Math.max(i,r.left+4);var a=Math.min(e.y,t.y),c=Math.abs(t.y-e.y),l=Math.abs(o-e.x),s=r.width+r.left-i-4;return{left:i,top:a,height:c,width:l=Math.min(l,s)}},XI=function(e,t){return e.left<=t.left+t.width&&e.left+e.width>=t.left&&e.top<=t.top+t.height&&e.top+e.height>=t.top},ZI=function(e){var t=e.getBoundingClientRect();return{left:t.left,top:t.top+window.scrollY,height:t.height,width:t.width}},JI=function(e){var t=document.createElement("div");t.id="drag-select-container",e.appendChild(t)},QI=function(e){var t=e.querySelector("#".concat("drag-select-container"));t&&t.remove()},eT=function(e){var t=a();return i((function(){t.current=e})),t.current};function tT(t){var r,o=t.assets,i=t.count,c=t.hasNextPage,l=void 0!==c&&c,s=t.isLoading,u=void 0!==s&&s,d=t.loadMore,p=void 0===d?function(){}:d,f=t.onSelect,m=void 0===f?function(){}:f,h=t.onToggle,g=void 0===h?function(){}:h,v=t.emptyStateElement,y=void 0===v?null:v,b=t.selectedAssetIds,w=void 0===b?[]:b,x=t.selectionMode,E=void 0===x?"MultiSelect":x,C=t.theme,k=t.children,S=void 0===k?null:k,_=a(null),I=L_(_.current).dimensions,T=n([]),B=T[0],z=T[1],P=n("inactive"),N=P[0],D=P[1],O=function(e,t){if(void 0!==e)return[1,e];if(!t)return[0,0];return[Math.ceil(t.height/188),Math.round((t.width-16)/208)]}(i,I),A=O[0],R=O[1];function L(e){return("inverse"!==N||!w.includes(e.id)||!B.includes(e.id))&&(w.includes(e.id)||B.includes(e.id))}return e.createElement("div",{className:"flex flex-col flex-grow overflow-y-auto",ref:_,"data-drag-select-container":!0},S,e.createElement("div",{className:"card-list",role:"listbox"},"Loading"===o.tag&&!o.value&&e.createElement(hb,{rows:A,columns:R}),"Loaded"===o.tag&&0===o.value.length&&y,("Loading"===o.tag&&o.value||"Loaded"===o.tag)&&e.createElement(e.Fragment,null,"MultiSelect"===E&&e.createElement(GI,{dragContainer:"[data-drag-select-container]",selectionBoxCustomAttr:{className:"rounded border-2 border-brand-500",style:{zIndex:1e6,borderColor:null==C?void 0:C.colorPrimary}},onSelect:function(e){z((function(t){return ka(ka([],t,!0),e,!0)}))},onDeselect:function(e){z((function(t){return t.filter((function(t){return!e.includes(t)}))}))},onDragStart:function(e){D(e)},onDragEnd:function(e){if(D("inactive"),B.length){var t=[];B.forEach((function(e){var n=function(e){var t;if("Loading"!==o.tag||o.value)return null===(t=o.value)||void 0===t?void 0:t.find((function(t){return e===t.id}))}(e);n&&t.push(n)})),"inverse"===e?g(t):m(t),z([])}}}),e.createElement(Z_,{hasNextPage:l,isLoading:u,loadMore:p},null===(r=o.value)||void 0===r?void 0:r.map((function(t,n){return e.createElement(LI,{key:t.id,isSelected:L(t),isOutlined:L(t),asset:t,fadeIn:n>=A*R,onClick:function(e,t){return function(e,t){var n,r,i;if(t.shiftKey&&"MultiSelect"===E&&(null===(n=o.value)||void 0===n?void 0:n.length)){var a=o.value.findIndex((function(t){return t.id===e.id})),c=null===(r=o.value)||void 0===r?void 0:r.findIndex((function(e){return e.id===w[w.length-1]}));-1===c&&(c=0),m(c<a?null===(i=o.value)||void 0===i?void 0:i.slice(c,a+1):o.value.slice(a,c+1))}else g([e])}(e,t)}})}))))))}function nT(t){var n,r,o,a,c=t.connection,l=c.data,s=c.isLoading,u=c.loadMore,d=c.hasNextPage,p=c.executeQuery,f=Na().setIsLoading,m=bb(),h=A_().selection.filter((function(e){return"asset"===e.type})).map((function(e){return e.value.id})),g=A_(),v=g.selectAssets,y=g.toggleAssets,b=Na().setSearch,w=yI();if(i((function(){s||f(!1)}),[s]),"Failure"===l.tag)return e.createElement(eb,{error:new Error(l.value),onRetry:p});var x=null!==(a=null===(o=null===(r=null===(n=l.value)||void 0===n?void 0:n.searchAssets)||void 0===r?void 0:r.assets)||void 0===o?void 0:o.totalCount)&&void 0!==a?a:t.totalCount;return e.createElement(tT,{assets:rT(l),count:x,isLoading:s,loadMore:u,hasNextPage:d,theme:m.theme,selectionMode:m.selectionMode,selectedAssetIds:h,onSelect:v,onToggle:y,emptyStateElement:e.createElement(Q_,{onReset:function(){w.clear(),b("assets",""),b("collection","")}})},e.createElement("div",{className:"flex justify-between items-center px-4 pt-4 pb-2 z-10"},void 0!==x&&e.createElement("span",{className:"flex-shrink-0 text-body-400 fade-in-down",key:x},fb(x,Ry("{} asset"),Ry("{} assets"))),t.showActiveFilters&&e.createElement(zI,null),e.createElement(ub,null),e.createElement(tb,null)))}function rT(e){var t;return"Loading"!==e.tag||e.value?"Loading"===e.tag?{tag:e.tag,value:null===(t=e.value)||void 0===t?void 0:t.searchAssets.assets.nodes}:{tag:e.tag,value:e.value.searchAssets.assets.nodes}:{tag:"Loading",value:void 0}}function oT(t){var n=Da("collection").value,r=Ta()[1],o=ya("collection")[0],i=bb(),a=i.assetTypes,c=i.language,l=kw({collection:t.collection,allAssetTypes:a,searchTerm:n,orderBy:o,language:c});return e.createElement(e.Fragment,null,e.createElement("nav",{className:"px-4 py-4","data-testid":"collection-toolbar"},e.createElement("button",{className:"text-body-400 select-none cursor-pointer",onClick:function(){return r({page:"collections"})},type:"button"},Ry("Collections")," / "),e.createElement("span",null," ",t.collection.name," ")),e.createElement(nT,{connection:l,totalCount:t.collection.assetCount}))}var iT,aT,cT,lT,sT=Ul(Gh)(iT||(iT=Sa(["\n\twidth: 100%;\n\tfont-size: ",";\n\talign-items: center;\n\tcursor: ",";\n\n\tdiv:last-of-type {\n\t\tflex-grow: 1;\n\t}\n"],["\n\twidth: 100%;\n\tfont-size: ",";\n\talign-items: center;\n\tcursor: ",";\n\n\tdiv:last-of-type {\n\t\tflex-grow: 1;\n\t}\n"])),Sm.fontSize75,(function(e){return e.isLoading&&!e.isChecked?"wait":"pointer"})),uT=Ul.li(aT||(aT=Sa(["\n\tpadding: "," ",";\n\n\t&:hover {\n\t\tbackground-color: ",";\n\t}\n"],["\n\tpadding: "," ",";\n\n\t&:hover {\n\t\tbackground-color: ",";\n\t}\n"])),Sm.spacing2,Sm.spacing5,Sm.gray25),dT=Ul.div(cT||(cT=Sa(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tcolor: ",";\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tcolor: ",";\n"])),(function(e){return e.isChecked?"inherit":Sm.gray500})),pT=Ul.span(lT||(lT=Sa(["\n\tmargin: 1px "," 1px 0;\n\tflex-grow: 1;\n\tmax-width: 124px;\n"],["\n\tmargin: 1px "," 1px 0;\n\tflex-grow: 1;\n\tmax-width: 124px;\n"])),Sm.spacing4);function fT(t){var n=void 0!==t.selectedOptionIds&&t.selectedOptionIds.includes(t.metapropertyOption.id);return e.createElement(uT,null,e.createElement(sT,{isChecked:n,onChange:function(){n?t.onRemoveOption():t.isLoading||t.onAddOption()},"data-testid":"metaproperty-option",isLoading:t.isLoading},e.createElement(dT,{isChecked:n},e.createElement(pT,{title:t.metapropertyOption.label},e.createElement(kh,null,t.metapropertyOption.label)),e.createElement("span",{className:"fade-in-down"},t.metapropertyOption.assetCount))))}function mT(t){return e.createElement(vT,{"data-testid":"metaproperty-filter-content"},e.createElement("h1",{className:"mb-2 px-4 truncate",title:t.metaproperty.label},t.metaproperty.label),e.createElement(yT,null,t.metaproperty.options.map((function(n){return e.createElement(fT,{key:n.id,metapropertyOption:n,selectedOptionIds:t.selectedOptionIds,isLoading:t.isLoading,onAddOption:function(){return t.onAddOption(n)},onRemoveOption:function(){return t.onRemoveOption(n)}})}))))}var hT,gT,vT=Ul.div(hT||(hT=Sa(["\n\tpadding-top: ",";\n\twidth: 224px;\n"],["\n\tpadding-top: ",";\n\twidth: 224px;\n"])),Sm.spacing5),yT=Ul.ul(gT||(gT=Sa(["\n\tmax-height: 400px;\n\toverflow-y: auto;\n\tpadding-bottom: 4px;\n\twidth: 100%;\n"],["\n\tmax-height: 400px;\n\toverflow-y: auto;\n\tpadding-bottom: 4px;\n\twidth: 100%;\n"])));function bT(t){return e.createElement(xT,null,t.smartfilter.metaproperties.map((function(n){return e.createElement(mT,{key:n.id,metaproperty:n,selectedOptionIds:t.selectedOptionIds,isLoading:t.isLoading,onAddOption:t.onAddOption,onRemoveOption:t.onRemoveOption})})))}var wT,xT=Ul.div(wT||(wT=Sa(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tgap: ",";\n\toverflow: auto;\n"],["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tgap: ",";\n\toverflow: auto;\n"])),Sm.spacing4);function ET(t){var n,r,o=yI(),i=o.metaproperties.map((function(e){return e.id})),a=(n=t.metapropertyFilters.filter((function(e){return"Metaproperty"===e.__typename||0!==e.metaproperties.length})),r=function(e){return"Metaproperty"===e.__typename?1e4:e.zIndex},ka([],n,!0).sort((function(e,t){return r(e)-r(t)})));return e.createElement(e.Fragment,null,a.map((function(n){return e.createElement(ab,{key:n.id,title:e.createElement(CT,{filter:n}),alt:n.label,isSmall:!0,fadeIn:!0},(function(){return e.createElement(e.Fragment,null,t.isLoading&&e.createElement(lw,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),"Metaproperty"===n.__typename?e.createElement(mT,{metaproperty:n,selectedOptionIds:i,isLoading:t.isLoading,onAddOption:o.addMetaproperty,onRemoveOption:o.removeMetaproperty}):e.createElement(bT,{smartfilter:n,selectedOptionIds:i,isLoading:t.isLoading,onAddOption:o.addMetaproperty,onRemoveOption:o.removeMetaproperty}))}))})))}function CT(t){var n=t.filter;return e.createElement(e.Fragment,null,"Smartfilter"===n.__typename&&n.icon&&e.createElement("i",{className:ob("fa fa-lg mr-2",n.icon)}),e.createElement("span",{className:"max-w-24 truncate","data-testid":"metaproperty-filter"},n.label))}function kT(t){var n=yI(),r=n.tags.includes(t.tag.name),o=ob("mb-2 mr-2",r&&"bg-ui-500",t.isLoading&&!r?"cursor-default":"cursor-pointer");return e.createElement(TI,{key:t.tag.id,className:o,onClick:function(){r?n.removeTag(t.tag.name):t.isLoading||n.addTag(t.tag.name)},"data-testid":"tag-item"},e.createElement("span",{className:"max-w-32 truncate"},t.tag.name),e.createElement("span",{className:"text-body-400 ml-2"},t.tag.assetCount))}function ST(t){var n=ka([],t.tags,!0).sort((function(e,t){return t.assetCount-e.assetCount}));return e.createElement(ab,{title:e.createElement(_T,null),className:"pt-4 pb-1 overflow-hidden max-w-600",isSmall:!0,fadeIn:!0},(function(){return e.createElement(e.Fragment,null,t.isLoading&&e.createElement(lw,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),e.createElement("h1",{className:"px-4 mb-4"}," ",Ry("Tags")," "),e.createElement("div",{className:"flex flex-wrap px-4 -mr-2"},n.map((function(n){return e.createElement(kT,{key:n.id,tag:n,isLoading:t.isLoading})}))))}))}function _T(){return e.createElement(e.Fragment,null,e.createElement(Gd,{className:"mr-2 inline w-6 h-6"}),e.createElement("span",{"data-testid":"tags-filter"},Ry("Tags")))}function IT(t){var n=yI(),r=n.assetTypes.includes(t.type),o=wI(t.type);return e.createElement(uT,{"data-testid":"advanced-options"},e.createElement(sT,{isChecked:r,onChange:function(){r?n.removeAssetType(t.type):n.addAssetType(t.type)},isLoading:t.isLoading,"data-testid":"".concat(bI(t.type),"-filter")},e.createElement(dT,{isChecked:r},e.createElement(o,null),e.createElement(BT,null,bI(t.type)),e.createElement("span",{className:"fade-in-down"},t.count))))}var TT,BT=Ul.div(TT||(TT=Sa(["\n\tmargin: 1px ",";\n\tflex-grow: 1;\n"],["\n\tmargin: 1px ",";\n\tflex-grow: 1;\n"])),Sm.spacing3);function zT(t){var n=bb().assetTypes,r=n.filter((function(e){return NT(t.count,e)>0}));return 0===n.length||0===r.length?null:e.createElement(ab,{title:e.createElement(PT,null),className:"pt-4 pb-1",isSmall:!0,fadeIn:!0},(function(){return e.createElement(e.Fragment,null,t.isLoading&&e.createElement(lw,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),e.createElement("h1",{className:"px-4 mb-4"},Ry("Type")),e.createElement("ul",null,r.map((function(n){return e.createElement(IT,{key:n,type:n,count:NT(t.count,n),isLoading:t.isLoading})}))))}))}function PT(){return e.createElement(e.Fragment,null,e.createElement(Ap,{className:"mr-2 inline w-6 h-6"}),Ry("Advanced"))}function NT(e,t){switch(t){case"AUDIO":return e.audio;case"DOCUMENT":return e.document;case"IMAGE":return e.image;case"VIDEO":return e.video;case"ARCHIVE":return e.archive}}function DT(){var t=yI(),r=Da("assets").value,o=bb(),a=o.assetTypes,c=o.language;Fy(c);var l=function(e){var t=this,r=xw(),o=n({tag:"Loading",value:null}),a=o[0],c=o[1],l=!1;return i((function(){return Ea(t,void 0,void 0,(function(){var t,n,o,i,a,s;return Ca(this,(function(u){switch(u.label){case 0:return c((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),t=e.filter,n=e.searchTerm,o=e.allAssetTypes,i=e.language,[4,Ib("\nquery searchAssets($filter: AssetFilter!, $language: String!) {\n searchAssets(filter: $filter) {\n tags {\n nodes {\n id\n name\n assetCount\n }\n }\n metapropertyFilters {\n nodes {\n __typename\n ... on Smartfilter {\n id\n label(language: $language)\n metaproperties {\n id\n label(language: $language)\n options {\n id\n label(language: $language)\n assetCount\n }\n }\n icon\n zIndex\n }\n ... on Metaproperty {\n id\n label(language: $language)\n options {\n id\n label(language: $language)\n assetCount\n }\n }\n }\n }\n count {\n assetType {\n image\n video\n audio\n document\n archive\n }\n }\n }\n }",{filter:{assetType_in:null!==(s=t.assetTypes)&&void 0!==s?s:o,collectionId:null,metapropertyOptionId_in:t.metaproperties.map((function(e){return e.id})),searchTerm:n,tagNames_in:t.tags,isLimitedUse:t.isLimited},language:i},r)];case 1:return a=u.sent(),l||(kb(a)?c({tag:"Failure",value:a.error}):c({tag:"Loaded",value:a.value})),[2]}}))})),function(){l=!0}}),[e.filter.assetTypes,e.filter.metaproperties,e.filter.tags,e.searchTerm]),{data:a,isLoading:"Loading"===a.tag}}({filter:t,searchTerm:r||null,allAssetTypes:a,language:c}),s=l.data,u=l.isLoading;if("Failure"===s.tag||!s.value)return e.createElement("nav",{className:"flex justify-between bg-ui-0 px-4 py-2 z-20"},e.createElement(OT,null));var d=s.value.searchAssets,p=d.metapropertyFilters,f=d.tags,m=d.count;return e.createElement("nav",{className:"flex justify-between bg-ui-0 px-4 py-2 z-20","data-testid":"filter-nav"},e.createElement(II,{className:"h-8"},p&&p.nodes.length>0&&e.createElement(ET,{metapropertyFilters:p.nodes,isLoading:u}),f&&f.nodes.length>0&&e.createElement(ST,{tags:f.nodes,isLoading:u}),e.createElement(zT,{isLoading:u,count:m.assetType})))}function OT(){return e.createElement("div",{className:"inline-flex items-center"},e.createElement(mb,{className:"h-4 ml-2 mr-2 my-2",width:100}),e.createElement(mb,{className:"h-4 ml-2 mr-2 my-2",width:80}),e.createElement(mb,{className:"h-4 ml-2 mr-2 my-2",width:110}))}var AT,RT,LT=$l(RT||(RT=Sa(["",""],["",""])),Tl(AT||(AT=Sa(["\n\t.cv-root {\n\t\t","\n\t}:\n"],["\n\t.cv-root {\n\t\t","\n\t}:\n"])),(function(e){return function(e){var t=function(e){var t,n;return{"--componentButtonPrimaryBorderHover":null==e?void 0:e.colorButtonPrimaryHover,"--componentButtonPrimaryBorderActive":null!==(t=null==e?void 0:e.colorButtonPrimaryActive)&&void 0!==t?t:null==e?void 0:e.colorButtonPrimaryHover,"--componentButtonPrimaryBorderFocus":null==e?void 0:e.colorButtonPrimary,"--componentButtonPrimaryColor":null==e?void 0:e.colorButtonPrimaryLabel,"--componentButtonPrimaryColorHover":null==e?void 0:e.colorButtonPrimaryHoverLabel,"--componentButtonPrimaryColorActive":null==e?void 0:e.colorButtonPrimaryLabel,"--componentButtonPrimaryColorFocus":null==e?void 0:e.colorButtonPrimaryLabel,"--componentButtonPrimaryColorDisabled":null==e?void 0:e.colorButtonPrimaryLabel,"--componentButtonPrimaryFill":null==e?void 0:e.colorButtonPrimary,"--componentButtonPrimaryFillHover":null==e?void 0:e.colorButtonPrimaryHover,"--componentButtonPrimaryFillActive":null!==(n=null==e?void 0:e.colorButtonPrimaryActive)&&void 0!==n?n:null==e?void 0:e.colorButtonPrimaryHover,"--componentButtonPrimaryFillFocus":null==e?void 0:e.colorButtonPrimary}}(e);return Object.entries(t).map((function(e){return e.join(":")})).join(";")+";"}(e.theme)})));function FT(){var t=Ta()[0],r=Da(t.page),o=r.value,a=r.isLoading,c=UI(r.setSearch,500),l=n(o),s=l[0],u=l[1];i((function(){u(o)}),[t,o]),i((function(){return function(){c.flush()}}),[t,c]);var d="collections"===t.page?Ry("Search for collections"):Ry("Search for assets");return e.createElement(jT,{value:s,placeholder:d,"aria-label":d,onChange:function(e){return u(t=e),void c(t);var t},"data-testid":"search-input",icon:e.createElement(ep,null),iconRight:a?e.createElement("div",{role:"alert","aria-live":"polite"},e.createElement(lw,{className:"relative right-0"})):void 0,hasClearButton:!a&&!!o})}var MT,jT=Ul(ev)(MT||(MT=Sa(["\n\twidth: 100%;\n\tmax-width: 440px;\n"],["\n\twidth: 100%;\n\tmax-width: 440px;\n"])));function HT(){var t=Ta(),n=t[0],r=t[1];return e.createElement(VT,null,e.createElement(Gm,{isPressed:"assets"===n.page,variant:"clean",onClick:function(){return r({page:"assets"})}},Ry("Assets")),e.createElement(Gm,{isPressed:"collections"===n.page,variant:"clean",onClick:function(){return r({page:"collections"})}},Ry("Collections")))}var UT,VT=Ul.div(UT||(UT=Sa(["\n\tdisplay: inline-flex;\n\tmargin-right: auto;\n\tgap: ",";\n"],["\n\tdisplay: inline-flex;\n\tmargin-right: auto;\n\tgap: ",";\n"])),Sm.spacing2);function $T(){var t,n="authenticated"===(null===(t=o(yw))||void 0===t?void 0:t.status)||!1,r=Xb(),i=xw(),a=void 0!==bb().assetFilter;return n||r||!a?e.createElement(GT,null,!a&&e.createElement(e.Fragment,null,e.createElement(HT,null),e.createElement(FT,null)),e.createElement(qT,null,n&&!(null==i?void 0:i.hideLogout)&&e.createElement(Gm,{variant:"clean",onClick:function(){return null==i?void 0:i.logout()},rightIcon:e.createElement(Wd,null)},Ry("Log out")),r&&e.createElement(Gm,{variant:"clean",onClick:function(){return r.onClose()},title:Ry("Close"),icon:e.createElement(Hp,null)}))):null}var WT,YT,GT=Ul.nav(WT||(WT=Sa(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tbackground: ",";\n\tpadding: "," ",";\n\tz-index: 30;\n"],["\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tbackground: ",";\n\tpadding: "," ",";\n\tz-index: 30;\n"])),Sm.gray10,Sm.spacing5,Sm.spacing4),qT=Ul.div(YT||(YT=Sa(["\n\tdisplay: inline-flex;\n\tmargin-left: auto;\n"],["\n\tdisplay: inline-flex;\n\tmargin-left: auto;\n"])));function KT(){var t=yI(),n=t.assetTypes,r=t.metaproperties,o=t.tags,i=t.isLimited,a=Da("assets").value,c=ya("assets")[0],l=bb(),s=l.assetFilter,u=l.assetTypes,d=l.language,p=kw(void 0===s?{filter:{assetTypes:n,metaproperties:r,tags:o,isLimited:i},searchTerm:a,orderBy:c,allAssetTypes:u,language:d}:{predefinedFilter:s,orderBy:c,language:d});return e.createElement(nT,{connection:p,showActiveFilters:void 0===s})}function XT(e,t,n){return void 0===n&&(n="\n id\n name\n description\n databaseId\n createdAt\n originalUrl\n publishedAt\n tags\n type\n updatedAt\n url\n metaproperties {\n nodes {\n name\n type\n options {\n name\n displayLabel\n }\n }\n }\n textMetaproperties {\n name\n value\n }\n derivatives {\n thumbnail\n webImage\n }\n ... on Video {\n previewUrls\n }\n"),Ea(this,void 0,void 0,(function(){var r;return Ca(this,(function(o){switch(o.label){case 0:return[4,Ib("\n fragment AddMediaAsset on Asset {\n ".concat(n,"\n }\n\n query getAssetById($id: ID!) {\n node(id: $id) {\n __typename\n id\n ...on Asset {\n ...AddMediaAsset\n files\n }\n }\n }"),{id:e},t)];case 1:return kb(r=o.sent())?[2,r]:[2,xb(r.value.node)]}}))}))}function ZT(e){return e.replace(/([a-z0-9])([A-Z])/g,(function(e,t,n){return"".concat(t," ").concat(n)}))}function JT(t){var r=t.asset,o=t.onChange,a=n({status:"Loading"}),c=a[0],l=a[1],s=xw(),u=bb().assetFieldSelection,d=T_().transformation;function p(e){l((function(t){return"Data"!==t.status?t:("Custom transformation"===e&&d?setTimeout((function(){return o({url:null==d?void 0:d.url})})):setTimeout((function(){return o(t.files[e])})),wa(wa({},t),{key:e}))}))}return i((function(){var e,t;(null==d?void 0:d.url)&&"Data"===c.status&&p(d.url!==(null===(t=null===(e=c.files)||void 0===e?void 0:e.transformBaseUrl)||void 0===t?void 0:t.url)?"Custom transformation":"transformBaseUrl")}),[d]),i((function(){l({status:"Loading"}),o(void 0),function(e,t,n){return Ea(this,void 0,void 0,(function(){var r;return Ca(this,(function(o){switch(o.label){case 0:return[4,XT(e.id,t,n)];case 1:return[2,Cb(r=o.sent())&&r.value.files?xb(r.value.files):Eb("Error retrieving asset files")]}}))}))}(r,s,u).then((function(e){if(kb(e))return Oa.error(e.error),void l({status:"Failure"});var t=e.value,n=function(e){return"transformBaseUrl"in e?"transformBaseUrl":"original"in e?"original":"webImage"}(t);l({status:"Data",files:t,key:n}),o(t[n])}))}),[r.id,s,u]),e.createElement(nB,null,e.createElement(ab,{title:e.createElement(QT,{state:c}),buttonKind:"secondary",className:"py-2",direction:"Up",disabled:"Loading"===c.status},(function(t){var n,o;return"Data"===c.status&&e.createElement("ul",{className:"overflow-y-auto pb-1 max-h-400"},Object.entries(c.files).map((function(n){var r,o=n[0],i=n[1];return e.createElement(sb,{key:o,className:"px-3 py-2",selected:c.key===o,onClick:function(){p(o),t()}},e.createElement("div",{className:"w-10 h-10 mr-3 bg-ui-500 rounded flex items-center\n\t\t\t\t\t\t\t\t\t\t\t\t\tjustify-center font-semibold text-body-400 text-xs\n\t\t\t\t\t\t\t\t\t\t\t\t\tuppercase","data-testid":"file-extension"},"transformBaseUrl"===o?e.createElement(Vd,{className:"w-6 h-6"}):null!==(r=function(e){if(e){var t=function(e){var t=e.match(/filename=(.*?)&/);if(t){var n=/(?:\.([^.]+))?$/.exec(t[1]);if(n&&n[1])return n[1]}}(e);return t||function(e){var t=e.split("/"),n=t[t.length-1].split(".");if(!(n.length<=1)){var r=n[n.length-1],o=r.indexOf("?");return-1!==o?r.substring(0,o):r}}(e)}}(i.url))&&void 0!==r?r:e.createElement(gp,{className:"w-6 h-6"})),e.createElement("div",{className:"flex-grow w-40"},e.createElement("div",{className:"capitalize text-body-500 truncate"},ZT(o)),e.createElement("div",{className:"text-sm"},i.width&&i.height&&"".concat(i.width," x ").concat(i.height," px"),i.width&&i.height&&i.fileSize&&e.createElement("span",{className:"mx-2"},"•"),i.fileSize&&function(e){if(e<1)return"0 Bytes";var t=Math.floor(Math.log(e)/Math.log(1024)),n=(e/Math.pow(1024,t)).toFixed(1),r={0:"Bytes",1:"kB",2:"MB",3:"GB",4:"TB",5:"PB",6:"EB",7:"ZB",8:"YB"}[t];return"".concat(n," ").concat(r)}(i.fileSize))))})),e.createElement(B_,{transformBaseUrl:null===(o=null===(n=c.files)||void 0===n?void 0:n.transformBaseUrl)||void 0===o?void 0:o.url,toggleDropdown:t,asset:r}))})))}function QT(t){var n=t.state;return"Loading"===n.status?e.createElement(mb,{width:50,className:"h-4"}):"Data"===n.status?e.createElement(rB,null,"Custom transformation"===n.key&&e.createElement(Ip,null),ZT(n.key)):e.createElement(e.Fragment,null,"Error")}var eB,tB,nB=Ul.div(eB||(eB=Sa(["\n\tmargin-right: ",";\n\ttext-transform: capitalize;\n"],["\n\tmargin-right: ",";\n\ttext-transform: capitalize;\n"])),Sm.spacing5),rB=Ul.div(tB||(tB=Sa(["\n\tdisplay: flex;\n\tgap: ",";\n\talign-items: center;\n"],["\n\tdisplay: flex;\n\tgap: ",";\n\talign-items: center;\n"])),Sm.spacing4);function oB(t){var n=t.status,r=t.numberOfSelectedItems;return"Done"===n?e.createElement(Fp,{"data-testid":"check"}):"Error"===n?e.createElement(e.Fragment,null,Ry("Retry")):e.createElement(e.Fragment,null,fb(r,Ry("Add asset"),Ry("Add assets")))}function iB(t){var r,o=bb(),c=o.assetFieldSelection,l=o.onSuccess,s=o.selectionMode,u=A_().preselectedAssetIds,d=xw(),p=a(!0),f=n("SingleSelectFile"===s?{status:"WaitingForFileSelection"}:{status:"Ready"}),m=f[0],h=f[1];function g(e,t){if(kb(e))h({status:"Error"});else{try{var n=Array.isArray(e.value)?e.value:[e.value];n.sort((function(e,t){return function(e,t,n){return n?!n.includes(e.id)&&n.includes(t.id)?1:n.includes(e.id)&&!n.includes(t.id)?-1:n.indexOf(e.id)-n.indexOf(t.id):0}(e,t,u)})),l(n,{selectedFile:t})}catch(e){Oa.error(e)}p.current&&(h({status:"Done"}),setTimeout((function(){p.current&&h({status:"Ready"})}),2e3))}}return i((function(){return function(){p.current=!1}}),[]),e.createElement(e.Fragment,null,"SingleSelectFile"===s&&"asset"===(null===(r=t.selection[0])||void 0===r?void 0:r.type)&&e.createElement(JT,{asset:t.selection[0].value,onChange:function(e){h(void 0===e?{status:"WaitingForFileSelection"}:{status:"ReadyWithFile",file:e})}}),e.createElement(Gm,{variant:"primary",isDisabled:"Loading"===m.status||"WaitingForFileSelection"===m.status,onClick:function(){var e,n="ReadyWithFile"===m.status?m.file:void 0;h({status:"Loading"}),"MultiSelect"!==s&&"asset"===(null===(e=t.selection[0])||void 0===e?void 0:e.type)?XT(t.selection[0].value.id,d,c).then((function(e){g(e,n)})):function(e,t,n){return void 0===n&&(n="\n id\n name\n description\n databaseId\n createdAt\n originalUrl\n publishedAt\n tags\n type\n updatedAt\n url\n metaproperties {\n nodes {\n name\n type\n options {\n name\n displayLabel\n }\n }\n }\n textMetaproperties {\n name\n value\n }\n derivatives {\n thumbnail\n webImage\n }\n ... on Video {\n previewUrls\n }\n"),Ea(this,void 0,void 0,(function(){var r,o,i,a,c,l,s,u,d,p,f,m,h,g;return Ca(this,(function(v){switch(v.label){case 0:return r="\n fragment AddMediaAsset on Asset {\n ".concat(n,"\n }\n\n query getAssetsById($ids: [ID!]!, $collectionCount: Int) {\n nodes(ids: $ids) {\n __typename\n id\n ...on Asset {\n ...AddMediaAsset\n files\n }\n ...on Collection {\n assets(first: $collectionCount) {\n nodes {\n __typename\n id\n ...AddMediaAsset\n files\n }\n }\n }\n }\n }"),o=e.filter((function(e){return"collection"===e.type})).map((function(e){return e.value.assetCount})),i=o.reduce((function(e,t){return e+t}),0),a={ids:e.map((function(e){return e.value.id})),collectionCount:i},[4,Ib(r,a,t)];case 1:if(kb(c=v.sent()))return[2,c];for(l=[],s=0,u=c.value.nodes;s<u.length;s++)"Collection"===(d=u[s]).__typename?l.push.apply(l,d.assets.nodes):l.push(d);for(p=new Set,f=[],m=0,h=l;m<h.length;m++)g=h[m],p.has(g.id)||(f.push(g),p.add(g.id));return[2,xb(f)]}}))}))}(t.selection,d,c).then((function(e){g(e,n)}))},"data-testid":"add-button",isLoading:"Loading"===m.status},e.createElement(oB,{status:m.status,numberOfSelectedItems:t.selection.length})))}function aB(t){var n=t.title,r=t.onRemove,o=t.children;return e.createElement("li",{className:"flex flex-1 h-12 border-b last:border-b-0 pl-3 pr-5 py-1 items-center group relative",title:n},e.createElement(sT,{"aria-label":Ry("Deselect"),isChecked:!0,onChange:r,"data-testid":"metaproperty-option"},e.createElement(lB,null,o)))}var cB,lB=Ul.span(cB||(cB=Sa(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tfont-size: ",";\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tfont-size: ",";\n"])),Sm.fontSize100);function sB(t){var n=t.asset,r=A_();return e.createElement(aB,{title:n.name,onRemove:function(){return r.toggleAssets([n])}},e.createElement(dB,{variant:"content",imageUrl:OI(n),size:"m"}),e.createElement("span",{className:"w-40 mr-2 truncate"},n.name),AI(n)&&e.createElement("span",{className:"flex-grow text-body-400 text-sm text-right"},AI(n)))}var uB,dB=Ul(hv)(uB||(uB=Sa(["\n\tmargin-right: ",";\n\tmax-width: 40px;\n"],["\n\tmargin-right: ",";\n\tmax-width: 40px;\n"])),Sm.spacing4);function pB(t){var n=t.collection,r=A_();return e.createElement(aB,{title:n.name,onRemove:function(){return r.toggleCollection(n)}},e.createElement(mB,{variant:"clean",icon:e.createElement(Np,null)}),e.createElement("span",{className:"w-40 mr-2 truncate"},n.name),e.createElement("span",{className:"flex-grow text-body-400 text-sm text-right"},fb(n.assetCount,Ry("{} asset"),Ry("{} assets"))))}var fB,mB=Ul(hv)(fB||(fB=Sa(["\n\tmargin-right: ",";\n"],["\n\tmargin-right: ",";\n"])),Sm.spacing4);function hB(t){var n=t.selection;return e.createElement("ul",{className:"flex flex-col py-2 overflow-y-auto max-h-400","data-testid":"selected-items-list"},n.map((function(t){return"asset"===t.type?e.createElement(sB,{key:t.value.id,asset:t.value}):e.createElement(pB,{key:t.value.id,collection:t.value})})))}function gB(){var t=A_(),n=t.selection,r=t.clear,o=n.length;return 0===o?null:e.createElement(bB,{"data-testid":"selection-footer"},e.createElement(wB,null,e.createElement(ab,{buttonKind:"secondary",direction:"Up",title:Ry("View {} selected").replace("{}",o.toString())},(function(){return e.createElement(hB,{selection:n})})),e.createElement(Gm,{variant:"clean",onClick:r},Ry("Clear selection"))),e.createElement(iB,{selection:n}))}var vB,yB,bB=Ul.div(vB||(vB=Sa(["\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tz-index: 10;\n\theight: ",";\n\tpadding: ",";\n\talign-items: center;\n\tbox-shadow: 0 -1px 0 0 rgba(0, 34, 51, 0.1), 0 -1px 6px 0 rgba(0, 34, 51, 0.1);\n\tanimation: var(--fade-in-down);\n"],["\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tz-index: 10;\n\theight: ",";\n\tpadding: ",";\n\talign-items: center;\n\tbox-shadow: 0 -1px 0 0 rgba(0, 34, 51, 0.1), 0 -1px 6px 0 rgba(0, 34, 51, 0.1);\n\tanimation: var(--fade-in-down);\n"])),Sm.layoutSpacing5,Sm.spacing6),wB=Ul.span(yB||(yB=Sa(["\n\tdisplay: flex;\n\tflex-grow: 1;\n\talign-items: center;\n\tgap: ",";\n"],["\n\tdisplay: flex;\n\tflex-grow: 1;\n\talign-items: center;\n\tgap: ",";\n"])),Sm.spacing2);function xB(t){var n=t.assetFieldSelection,r=t.assetFilter,o=t.assetTypes,i=void 0===o?["IMAGE","AUDIO","VIDEO","DOCUMENT","ARCHIVE"]:o,a=t.defaultSearchTerm,c=t.language,l=void 0===c?"en_US":c,s=t.mode,u=void 0===s?"MultiSelect":s,d=t.onSuccess,p=void 0===d?function(e,t){var n=t.selectedFile;return console.log(e,n)}:d,f=t.theme,m=t.hideExternalAccess,h=t.selectedAssets,g=t.hideLimitedUse;Fy(l);var v={assetFieldSelection:n,assetFilter:r,assetTypes:i,language:l,onSuccess:p,selectionMode:u,theme:f,hideExternalAccess:m};return e.createElement(gw,null,e.createElement(Ia,null,e.createElement(qb,null,e.createElement(I_,null,e.createElement(va,null,e.createElement(hI,{hideLimitedUse:g},e.createElement(Pa,{defaultValue:a},e.createElement(yb,{value:v},e.createElement(D_,{preselectedAssetIds:null!=h?h:[]},e.createElement(LT,{theme:v.theme}),e.createElement("div",{className:"cv-root cv-container"},e.createElement($T,null),e.createElement(EB,null),e.createElement(gB,null)))))))))))}function EB(){var t=Ta()[0],n=bb().assetFilter;return e.createElement(e.Fragment,null,"assets"===t.page&&void 0===n&&e.createElement(DT,null),"assets"===t.page&&e.createElement(KT,null),"collections"===t.page&&e.createElement(fI,null),"collection"===t.page&&e.createElement(oT,{collection:t.collection}))}!function(e={}){if(void 0===e.defaultIntegrations&&(e.defaultIntegrations=fa),void 0===e.release){var t=fr();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);var n,r={...e,stackParser:(n=e.stackParser||ji,Array.isArray(n)?Xr(...n):n),integrations:ai(e),transport:e.transport||(Jr()?Ni:Di)};!function(e,t){!0===t.debug&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?Rr.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var n=Xo(),r=n.getScope();r&&r.update(t.initialScope);var o=new e(t);n.bindClient(o)}(Pi,r),e.autoSessionTracking&&function(){if(void 0!==fr().document){var e=Xo();e.captureSession&&(ma(e),ro("history",(({from:e,to:t})=>{void 0!==e&&e!==t&&ma(Xo())})))}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Rr.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}()}({dsn:"https://dd74b64cc05845468f0c3654b458da29@sentry10.bynder.cloud/464",autoSessionTracking:!0,tracesSampleRate:1,defaultIntegrations:!1});export{xB as CompactView,ww as Login,Zb as Modal};
|
|
26
|
+
*/!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)){if(o.length){var a=n.apply(null,o);a&&e.push(a)}}else if("object"===i)if(o.toString===Object.prototype.toString)for(var c in o)t.call(o,c)&&o[c]&&e.push(c);else e.push(o.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(Td);var Nd=Td.exports,zd=!1;if("undefined"!=typeof window){var Dd={get passive(){zd=!0}};window.addEventListener("testPassive",null,Dd),window.removeEventListener("testPassive",null,Dd)}var Pd="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),Od=[],Ad=!1,Rd=-1,Fd=void 0,Ld=void 0,Md=function(e){return Od.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},jd=function(e){var t=e||window.event;return!!Md(t.target)||t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1)};function Hd(){return Hd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hd.apply(this,arguments)}var Ud=function(e){var n=e.classes,r=e.classNames,o=e.styles,i=e.id,a=e.closeIcon,c=e.onClick;return t.createElement("button",{id:i,className:Nd(n.closeButton,null==r?void 0:r.closeButton),style:null==o?void 0:o.closeButton,onClick:c,"data-testid":"close-button"},a||t.createElement("svg",{className:null==r?void 0:r.closeIcon,style:null==o?void 0:o.closeIcon,width:28,height:28,viewBox:"0 0 36 36","data-testid":"close-icon"},t.createElement("path",{d:"M28.5 9.62L26.38 7.5 18 15.88 9.62 7.5 7.5 9.62 15.88 18 7.5 26.38l2.12 2.12L18 20.12l8.38 8.38 2.12-2.12L20.12 18z"})))},Vd="undefined"!=typeof window,$d=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'];function Wd(e){return null===e.offsetParent||"hidden"===getComputedStyle(e).visibility}function Gd(e){if("INPUT"!==e.tagName||"radio"!==e.type||!e.name)return!0;var t=(e.form||e.ownerDocument).querySelectorAll('input[type="radio"][name="'+e.name+'"]'),n=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return n===e||void 0===n&&t[0]===e}function qd(e){for(var t=document.activeElement,n=e.querySelectorAll($d.join(",")),r=[],o=0;o<n.length;o++){var i=n[o];(t===i||!i.disabled&&Yd(i)>-1&&!Wd(i)&&Gd(i))&&r.push(i)}return r}function Yd(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return e.getAttribute("contentEditable")}(e)?0:e.tabIndex:t}var Kd=function(e){var t=e.container,n=e.initialFocusRef,r=c();return a((function(){var e=function(e){(null==t?void 0:t.current)&&function(e,t){if(e&&"Tab"===e.key){if(!t||!t.contains)return process,!1;if(!t.contains(e.target))return!1;var n=qd(t),r=n[0],o=n[n.length-1];e.shiftKey&&e.target===r?(o.focus(),e.preventDefault()):!e.shiftKey&&e.target===o&&(r.focus(),e.preventDefault())}}(e,t.current)};if(Vd&&document.addEventListener("keydown",e),Vd&&(null==t?void 0:t.current)){var o=function(){-1!==$d.findIndex((function(e){var t;return null==(t=document.activeElement)?void 0:t.matches(e)}))&&(r.current=document.activeElement)};if(n)o(),requestAnimationFrame((function(){var e;null==(e=n.current)||e.focus()}));else{var i=qd(t.current);i[0]&&(o(),i[0].focus())}}return function(){var t;Vd&&(document.removeEventListener("keydown",e),null==(t=r.current)||t.focus())}}),[t,n]),null},Xd=[],Zd={root:"react-responsive-modal-root",overlay:"react-responsive-modal-overlay",overlayAnimationIn:"react-responsive-modal-overlay-in",overlayAnimationOut:"react-responsive-modal-overlay-out",modalContainer:"react-responsive-modal-container",modalContainerCenter:"react-responsive-modal-containerCenter",modal:"react-responsive-modal-modal",modalAnimationIn:"react-responsive-modal-modal-in",modalAnimationOut:"react-responsive-modal-modal-out",closeButton:"react-responsive-modal-closeButton"},Jd=t.forwardRef((function(e,n){var o,i,l,s,u=e.open,d=e.center,p=e.blockScroll,f=void 0===p||p,m=e.closeOnEsc,g=void 0===m||m,v=e.closeOnOverlayClick,y=void 0===v||v,b=e.container,w=e.showCloseIcon,x=void 0===w||w,E=e.closeIconId,C=e.closeIcon,k=e.focusTrapped,S=void 0===k||k,_=e.initialFocusRef,I=void 0===_?void 0:_,B=e.animationDuration,T=void 0===B?300:B,N=e.classNames,z=e.styles,D=e.role,P=void 0===D?"dialog":D,O=e.ariaDescribedby,A=e.ariaLabelledby,R=e.modalId,F=e.onClose,L=e.onEscKeyDown,M=e.onOverlayClick,j=e.onAnimationEnd,H=e.children,U=e.reserveScrollBarGap,V=function(e,n={isStateful:!0}){const r=function(e=null){let[n,r]=t.useState(e);const{current:o}=t.useRef({current:n});return Object.defineProperty(o,"current",{get:()=>n,set:e=>{Object.is(n,e)||(n=e,r(e))}}),o}(null),o=c(null),i=n.isStateful?r:o;return t.useEffect((()=>{!e||("function"==typeof e?e(i.current):e.current=i.current)})),i}(n),$=c(null),W=c(null),G=c(null);null===G.current&&Vd&&(G.current=document.createElement("div"));var q=r(!1),Y=q[0],K=q[1];!function(e,t){a((function(){return t&&(n=e,Xd.push(n)),function(){var t;t=e,Xd=Xd.filter((function(e){return e!==t}))};var n}),[t,e])}($,u),function(e,t,n,r,o){var i=c(null);a((function(){return t&&e.current&&r&&(i.current=e.current,function(e,t){if(e){if(!Od.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};Od=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(Od),[n]),Pd?(e.ontouchstart=function(e){1===e.targetTouches.length&&(Rd=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-Rd;!Md(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?jd(e):e.stopPropagation())}(t,e)},Ad||(document.addEventListener("touchmove",jd,zd?{passive:!1}:void 0),Ad=!0)):function(e){if(void 0===Ld){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(Ld=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===Fd&&(Fd=document.body.style.overflow,document.body.style.overflow="hidden")}(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")}(e.current,{reserveScrollBarGap:o})),function(){var e;i.current&&((e=i.current)?(Od=Od.filter((function(t){return t.targetElement!==e})),Pd?(e.ontouchstart=null,e.ontouchmove=null,Ad&&0===Od.length&&(document.removeEventListener("touchmove",jd,zd?{passive:!1}:void 0),Ad=!1)):Od.length||(void 0!==Ld&&(document.body.style.paddingRight=Ld,Ld=void 0),void 0!==Fd&&(document.body.style.overflow=Fd,Fd=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices."),i.current=null)}}),[t,n,e,r,o])}($,u,Y,f,U);var X=function(e){var t;27===e.keyCode&&(t=$,Xd.length&&Xd[Xd.length-1]===t)&&(null==L||L(e),g&&F())};a((function(){return function(){Y&&(G.current&&!b&&document.body.contains(G.current)&&document.body.removeChild(G.current),document.removeEventListener("keydown",X))}}),[Y]),a((function(){u&&!Y&&(K(!0),!G.current||b||document.body.contains(G.current)||document.body.appendChild(G.current),document.addEventListener("keydown",X))}),[u]);var Z=function(){W.current=!1},J=b||G.current,Q=u?null!=(o=null==N?void 0:N.overlayAnimationIn)?o:Zd.overlayAnimationIn:null!=(i=null==N?void 0:N.overlayAnimationOut)?i:Zd.overlayAnimationOut,ee=u?null!=(l=null==N?void 0:N.modalAnimationIn)?l:Zd.modalAnimationIn:null!=(s=null==N?void 0:N.modalAnimationOut)?s:Zd.modalAnimationOut;return Y&&J?h.createPortal(t.createElement("div",{className:Nd(Zd.root,null==N?void 0:N.root),style:null==z?void 0:z.root,"data-testid":"root"},t.createElement("div",{className:Nd(Zd.overlay,null==N?void 0:N.overlay),"data-testid":"overlay","aria-hidden":!0,style:Hd({animation:Q+" "+T+"ms"},null==z?void 0:z.overlay)}),t.createElement("div",{ref:$,className:Nd(Zd.modalContainer,d&&Zd.modalContainerCenter,null==N?void 0:N.modalContainer),style:null==z?void 0:z.modalContainer,"data-testid":"modal-container",onClick:function(e){null===W.current&&(W.current=!0),W.current?(null==M||M(e),y&&F(),W.current=null):W.current=null}},t.createElement("div",{ref:V,className:Nd(Zd.modal,null==N?void 0:N.modal),style:Hd({animation:ee+" "+T+"ms"},null==z?void 0:z.modal),onMouseDown:Z,onMouseUp:Z,onClick:Z,onAnimationEnd:function(){u||K(!1),null==j||j()},id:R,role:P,"aria-modal":"true","aria-labelledby":A,"aria-describedby":O,"data-testid":"modal",tabIndex:-1},S&&t.createElement(Kd,{container:V,initialFocusRef:I}),H,x&&t.createElement(Ud,{classes:Zd,classNames:N,styles:z,closeIcon:C,onClick:F,id:E})))),J):null}));let Qd,ep,tp,np={data:""},rp=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||np,op=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,ip=/\/\*[^]*?\*\/| +/g,ap=/\n+/g,cp=(e,t)=>{let n="",r="",o="";for(let i in e){let a=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+a+";":r+="f"==i[1]?cp(a,i):i+"{"+cp(a,"k"==i[1]?"":t)+"}":"object"==typeof a?r+=cp(a,t?t.replace(/([^,])+/g,(e=>i.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=cp.p?cp.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},lp={},sp=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+sp(e[n]);return t}return e},up=(e,t,n,r,o)=>{let i=sp(e),a=lp[i]||(lp[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!lp[a]){let t=i!==e?e:(e=>{let t,n,r=[{}];for(;t=op.exec(e.replace(ip,""));)t[4]?r.shift():t[3]?(n=t[3].replace(ap," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(ap," ").trim();return r[0]})(e);lp[a]=cp(o?{["@keyframes "+a]:t}:t,n?"":"."+a)}let c=n&&lp.g?lp.g:null;return n&&(lp.g=lp[a]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(lp[a],t,r,c),a},dp=(e,t,n)=>e.reduce(((e,r,o)=>{let i=t[o];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":cp(e,""):!1===e?"":e}return e+r+(null==i?"":i)}),"");function pp(e){let t=this||{},n=e.call?e(t.p):e;return up(n.unshift?n.raw?dp(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,rp(t.target),t.g,t.o,t.k)}pp.bind({g:1});let fp=pp.bind({k:1});function mp(e,t){let n=this||{};return function(){let r=arguments;function o(i,a){let c=Object.assign({},i),l=c.className||o.className;n.p=Object.assign({theme:ep&&ep()},c),n.o=/ *go\d+/.test(l),c.className=pp.apply(n,r)+(l?" "+l:""),t&&(c.ref=a);let s=e;return e[0]&&(s=c.as||e,delete c.as),tp&&s[0]&&tp(c),Qd(s,c)}return t?t(o):o}}var hp=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,gp=(()=>{let e=0;return()=>(++e).toString()})(),vp=new Map,yp=e=>{if(vp.has(e))return;let t=setTimeout((()=>{vp.delete(e),Ep({type:4,toastId:e})}),1e3);vp.set(e,t)},bp=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return t.toast.id&&(e=>{let t=vp.get(e);t&&clearTimeout(t)})(t.toast.id),{...e,toasts:e.toasts.map((e=>e.id===t.toast.id?{...e,...t.toast}:e))};case 2:let{toast:n}=t;return e.toasts.find((e=>e.id===n.id))?bp(e,{type:1,toast:n}):bp(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?yp(r):e.toasts.forEach((e=>{yp(e.id)})),{...e,toasts:e.toasts.map((e=>e.id===r||void 0===r?{...e,visible:!1}:e))};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter((e=>e.id!==t.toastId))};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map((e=>({...e,pauseDuration:e.pauseDuration+o})))}}},wp=[],xp={toasts:[],pausedAt:void 0},Ep=e=>{xp=bp(xp,e),wp.forEach((e=>{e(xp)}))},Cp=e=>(t,n)=>{let r=((e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(null==n?void 0:n.id)||gp()}))(t,e,n);return Ep({type:2,toast:r}),r.id},kp=(e,t)=>Cp("blank")(e,t);kp.error=Cp("error"),kp.success=Cp("success"),kp.loading=Cp("loading"),kp.custom=Cp("custom"),kp.dismiss=e=>{Ep({type:3,toastId:e})},kp.remove=e=>Ep({type:4,toastId:e}),kp.promise=(e,t,n)=>{let r=kp.loading(t.loading,{...n,...null==n?void 0:n.loading});return e.then((e=>(kp.success(hp(t.success,e),{id:r,...n,...null==n?void 0:n.success}),e))).catch((e=>{kp.error(hp(t.error,e),{id:r,...n,...null==n?void 0:n.error})})),e};var Sp=fp`
|
|
27
|
+
from {
|
|
28
|
+
transform: scale(0) rotate(45deg);
|
|
29
|
+
opacity: 0;
|
|
30
|
+
}
|
|
31
|
+
to {
|
|
32
|
+
transform: scale(1) rotate(45deg);
|
|
33
|
+
opacity: 1;
|
|
34
|
+
}`,_p=fp`
|
|
35
|
+
from {
|
|
36
|
+
transform: scale(0);
|
|
37
|
+
opacity: 0;
|
|
38
|
+
}
|
|
39
|
+
to {
|
|
40
|
+
transform: scale(1);
|
|
41
|
+
opacity: 1;
|
|
42
|
+
}`,Ip=fp`
|
|
43
|
+
from {
|
|
44
|
+
transform: scale(0) rotate(90deg);
|
|
45
|
+
opacity: 0;
|
|
46
|
+
}
|
|
47
|
+
to {
|
|
48
|
+
transform: scale(1) rotate(90deg);
|
|
49
|
+
opacity: 1;
|
|
50
|
+
}`;mp("div")`
|
|
51
|
+
width: 20px;
|
|
52
|
+
opacity: 0;
|
|
53
|
+
height: 20px;
|
|
54
|
+
border-radius: 10px;
|
|
55
|
+
background: ${e=>e.primary||"#ff4b4b"};
|
|
56
|
+
position: relative;
|
|
57
|
+
transform: rotate(45deg);
|
|
58
|
+
|
|
59
|
+
animation: ${Sp} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
60
|
+
forwards;
|
|
61
|
+
animation-delay: 100ms;
|
|
62
|
+
|
|
63
|
+
&:after,
|
|
64
|
+
&:before {
|
|
65
|
+
content: '';
|
|
66
|
+
animation: ${_p} 0.15s ease-out forwards;
|
|
67
|
+
animation-delay: 150ms;
|
|
68
|
+
position: absolute;
|
|
69
|
+
border-radius: 3px;
|
|
70
|
+
opacity: 0;
|
|
71
|
+
background: ${e=>e.secondary||"#fff"};
|
|
72
|
+
bottom: 9px;
|
|
73
|
+
left: 4px;
|
|
74
|
+
height: 2px;
|
|
75
|
+
width: 12px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&:before {
|
|
79
|
+
animation: ${Ip} 0.15s ease-out forwards;
|
|
80
|
+
animation-delay: 180ms;
|
|
81
|
+
transform: rotate(90deg);
|
|
82
|
+
}
|
|
83
|
+
`;var Bp=fp`
|
|
84
|
+
from {
|
|
85
|
+
transform: rotate(0deg);
|
|
86
|
+
}
|
|
87
|
+
to {
|
|
88
|
+
transform: rotate(360deg);
|
|
89
|
+
}
|
|
90
|
+
`;mp("div")`
|
|
91
|
+
width: 12px;
|
|
92
|
+
height: 12px;
|
|
93
|
+
box-sizing: border-box;
|
|
94
|
+
border: 2px solid;
|
|
95
|
+
border-radius: 100%;
|
|
96
|
+
border-color: ${e=>e.secondary||"#e0e0e0"};
|
|
97
|
+
border-right-color: ${e=>e.primary||"#616161"};
|
|
98
|
+
animation: ${Bp} 1s linear infinite;
|
|
99
|
+
`;var Tp=fp`
|
|
100
|
+
from {
|
|
101
|
+
transform: scale(0) rotate(45deg);
|
|
102
|
+
opacity: 0;
|
|
103
|
+
}
|
|
104
|
+
to {
|
|
105
|
+
transform: scale(1) rotate(45deg);
|
|
106
|
+
opacity: 1;
|
|
107
|
+
}`,Np=fp`
|
|
108
|
+
0% {
|
|
109
|
+
height: 0;
|
|
110
|
+
width: 0;
|
|
111
|
+
opacity: 0;
|
|
112
|
+
}
|
|
113
|
+
40% {
|
|
114
|
+
height: 0;
|
|
115
|
+
width: 6px;
|
|
116
|
+
opacity: 1;
|
|
117
|
+
}
|
|
118
|
+
100% {
|
|
119
|
+
opacity: 1;
|
|
120
|
+
height: 10px;
|
|
121
|
+
}`;mp("div")`
|
|
122
|
+
width: 20px;
|
|
123
|
+
opacity: 0;
|
|
124
|
+
height: 20px;
|
|
125
|
+
border-radius: 10px;
|
|
126
|
+
background: ${e=>e.primary||"#61d345"};
|
|
127
|
+
position: relative;
|
|
128
|
+
transform: rotate(45deg);
|
|
129
|
+
|
|
130
|
+
animation: ${Tp} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
131
|
+
forwards;
|
|
132
|
+
animation-delay: 100ms;
|
|
133
|
+
&:after {
|
|
134
|
+
content: '';
|
|
135
|
+
box-sizing: border-box;
|
|
136
|
+
animation: ${Np} 0.2s ease-out forwards;
|
|
137
|
+
opacity: 0;
|
|
138
|
+
animation-delay: 200ms;
|
|
139
|
+
position: absolute;
|
|
140
|
+
border-right: 2px solid;
|
|
141
|
+
border-bottom: 2px solid;
|
|
142
|
+
border-color: ${e=>e.secondary||"#fff"};
|
|
143
|
+
bottom: 6px;
|
|
144
|
+
left: 6px;
|
|
145
|
+
height: 10px;
|
|
146
|
+
width: 6px;
|
|
147
|
+
}
|
|
148
|
+
`,mp("div")`
|
|
149
|
+
position: absolute;
|
|
150
|
+
`,mp("div")`
|
|
151
|
+
position: relative;
|
|
152
|
+
display: flex;
|
|
153
|
+
justify-content: center;
|
|
154
|
+
align-items: center;
|
|
155
|
+
min-width: 20px;
|
|
156
|
+
min-height: 20px;
|
|
157
|
+
`;var zp=fp`
|
|
158
|
+
from {
|
|
159
|
+
transform: scale(0.6);
|
|
160
|
+
opacity: 0.4;
|
|
161
|
+
}
|
|
162
|
+
to {
|
|
163
|
+
transform: scale(1);
|
|
164
|
+
opacity: 1;
|
|
165
|
+
}`;mp("div")`
|
|
166
|
+
position: relative;
|
|
167
|
+
transform: scale(0.6);
|
|
168
|
+
opacity: 0.4;
|
|
169
|
+
min-width: 20px;
|
|
170
|
+
animation: ${zp} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
171
|
+
forwards;
|
|
172
|
+
`,mp("div",e.forwardRef)`
|
|
173
|
+
display: flex;
|
|
174
|
+
align-items: center;
|
|
175
|
+
background: #fff;
|
|
176
|
+
color: #363636;
|
|
177
|
+
line-height: 1.3;
|
|
178
|
+
will-change: transform;
|
|
179
|
+
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
|
|
180
|
+
max-width: 350px;
|
|
181
|
+
pointer-events: auto;
|
|
182
|
+
padding: 8px 10px;
|
|
183
|
+
border-radius: 8px;
|
|
184
|
+
`,mp("div")`
|
|
185
|
+
display: flex;
|
|
186
|
+
justify-content: center;
|
|
187
|
+
margin: 4px 10px;
|
|
188
|
+
color: inherit;
|
|
189
|
+
flex: 1 1 auto;
|
|
190
|
+
white-space: pre-line;
|
|
191
|
+
`,function(e,t,n,r){cp.p=void 0,Qd=e,ep=void 0,tp=void 0}(e.createElement),pp`
|
|
192
|
+
z-index: 9999;
|
|
193
|
+
> * {
|
|
194
|
+
pointer-events: auto;
|
|
195
|
+
}
|
|
196
|
+
`;const Dp={white:"var(--white)","white-rgb":"var(--white-rgb)",gray1000:"var(--gray1000)","gray1000-rgb":"var(--gray1000-rgb)",gray900:"var(--gray900)",gray800:"var(--gray800)",gray700:"var(--gray700)",gray600:"var(--gray600)",gray500:"var(--gray500)",gray400:"var(--gray400)",gray300:"var(--gray300)",gray200:"var(--gray200)",gray100:"var(--gray100)",gray75:"var(--gray75)",gray50:"var(--gray50)",gray25:"var(--gray25)",gray10:"var(--gray10)",blue1000:"var(--blue1000)",blue900:"var(--blue900)",blue800:"var(--blue800)",blue700:"var(--blue700)",blue600:"var(--blue600)",blue500:"var(--blue500)",blue500a10:"var(--blue500a10)",blue400:"var(--blue400)",blue300:"var(--blue300)",blue200:"var(--blue200)",blue100:"var(--blue100)",red400:"var(--red400)",red500:"var(--red500)",red500a10:"var(--red500a10)",red600:"var(--red600)",red700:"var(--red700)",yellow500:"var(--yellow500)",yellow500a10:"var(--yellow500a10)",yellow600:"var(--yellow600)",yellow700:"var(--yellow700)",green500:"var(--green500)",purple1000:"var(--purple1000)",purple900:"var(--purple900)",purple800:"var(--purple800)",purple700:"var(--purple700)",purple600:"var(--purple600)",purple500:"var(--purple500)",purple400:"var(--purple400)",purple300:"var(--purple300)",purple200:"var(--purple200)",purple100:"var(--purple100)",magenta1000:"var(--magenta1000)",magenta900:"var(--magenta900)",magenta800:"var(--magenta800)",magenta700:"var(--magenta700)",magenta600:"var(--magenta600)",magenta500:"var(--magenta500)",magenta400:"var(--magenta400)",magenta300:"var(--magenta300)",magenta200:"var(--magenta200)",magenta100:"var(--magenta100)",teal1000:"var(--teal1000)",teal900:"var(--teal900)",teal800:"var(--teal800)",teal700:"var(--teal700)",teal600:"var(--teal600)",teal500:"var(--teal500)",teal400:"var(--teal400)",teal300:"var(--teal300)",teal200:"var(--teal200)",teal100:"var(--teal100)",brandPrimary700:"var(--brandPrimary700)",brandPrimary600:"var(--brandPrimary600)",brandPrimary500:"var(--brandPrimary500)","brandPrimary500-rgb":"var(--brandPrimary500-rgb)",brandPrimary300:"var(--brandPrimary300)",brandPrimary100:"var(--brandPrimary100)",spacing1:"var(--spacing1)",spacing2:"var(--spacing2)",spacing3:"var(--spacing3)",spacing4:"var(--spacing4)",spacing5:"var(--spacing5)",spacing6:"var(--spacing6)",spacing7:"var(--spacing7)",spacing8:"var(--spacing8)",spacing9:"var(--spacing9)",layoutSpacing1:"var(--layoutSpacing1)",layoutSpacing2:"var(--layoutSpacing2)",layoutSpacing3:"var(--layoutSpacing3)",layoutSpacing4:"var(--layoutSpacing4)",layoutSpacing5:"var(--layoutSpacing5)",layoutSpacing6:"var(--layoutSpacing6)",layoutSpacing7:"var(--layoutSpacing7)",radiusSmall:"var(--radiusSmall)",radiusMedium:"var(--radiusMedium)",radiusLarge:"var(--radiusLarge)",radiusCircle:"var(--radiusCircle)",radiusPill:"var(--radiusPill)",radiusBase:"var(--radiusBase)",brandRadiusBase:"var(--brandRadiusBase)",fontStackBase:"var(--fontStackBase)",brandFontStackBase:"var(--brandFontStackBase)",fontSize25:"var(--fontSize25)",fontSize50:"var(--fontSize50)",fontSize75:"var(--fontSize75)",fontSize100:"var(--fontSize100)",fontSize200:"var(--fontSize200)",fontSize300:"var(--fontSize300)",fontSize400:"var(--fontSize400)",fontSize500:"var(--fontSize500)",fontSize600:"var(--fontSize600)",fontSize700:"var(--fontSize700)",fontSize800:"var(--fontSize800)",fontSize900:"var(--fontSize900)",fontSize1000:"var(--fontSize1000)",fontSizeBase:"var(--fontSizeBase)",lineHeightBase:"var(--lineHeightBase)",lineHeightHeading:"var(--lineHeightHeading)",lineHeightText:"var(--lineHeightText)",gray900a:"var(--gray900a)",gray800a:"var(--gray800a)",gray700a:"var(--gray700a)",gray600a:"var(--gray600a)",gray500a:"var(--gray500a)",gray400a:"var(--gray400a)",gray300a:"var(--gray300a)",gray200a:"var(--gray200a)",gray100a:"var(--gray100a)",gray75a:"var(--gray75a)",gray50a:"var(--gray50a)",gray25a:"var(--gray25a)",colorText:"var(--colorText)",colorTextMuted:"var(--colorTextMuted)",colorTextDisabled:"var(--colorTextDisabled)",focusRingWidth:"var(--focusRingWidth)",focusRingColorPrimary:"var(--focusRingColorPrimary)",focusRingColorSecondary:"var(--focusRingColorSecondary)",colorShadow:"var(--colorShadow)",elevationStatic:"var(--elevationStatic)",elevation1:"var(--elevation1)",elevation2:"var(--elevation2)",elevation4:"var(--elevation4)",elevation8:"var(--elevation8)",elevation12:"var(--elevation12)",elevation16:"var(--elevation16)",elevation24:"var(--elevation24)",componentButtonPrimaryBorderHover:"var(--componentButtonPrimaryBorderHover)",componentButtonPrimaryBorderActive:"var(--componentButtonPrimaryBorderActive)",componentButtonPrimaryBorderFocus:"var(--componentButtonPrimaryBorderFocus)",componentButtonPrimaryBorderDisabled:"var(--componentButtonPrimaryBorderDisabled)",componentButtonPrimaryColor:"var(--componentButtonPrimaryColor)",componentButtonPrimaryColorHover:"var(--componentButtonPrimaryColorHover)",componentButtonPrimaryColorActive:"var(--componentButtonPrimaryColorActive)",componentButtonPrimaryColorFocus:"var(--componentButtonPrimaryColorFocus)",componentButtonPrimaryColorDisabled:"var(--componentButtonPrimaryColorDisabled)",componentButtonPrimaryFill:"var(--componentButtonPrimaryFill)",componentButtonPrimaryFillHover:"var(--componentButtonPrimaryFillHover)",componentButtonPrimaryFillActive:"var(--componentButtonPrimaryFillActive)",componentButtonPrimaryFillFocus:"var(--componentButtonPrimaryFillFocus)",componentButtonPrimaryFillDisabled:"var(--componentButtonPrimaryFillDisabled)",componentButtonPrimaryFocusRing:"var(--componentButtonPrimaryFocusRing)",componentButtonSecondaryBorder:"var(--componentButtonSecondaryBorder)",componentButtonSecondaryBorderHover:"var(--componentButtonSecondaryBorderHover)",componentButtonSecondaryBorderActive:"var(--componentButtonSecondaryBorderActive)",componentButtonSecondaryBorderFocus:"var(--componentButtonSecondaryBorderFocus)",componentButtonSecondaryBorderDisabled:"var(--componentButtonSecondaryBorderDisabled)",componentButtonSecondaryColor:"var(--componentButtonSecondaryColor)",componentButtonSecondaryColorHover:"var(--componentButtonSecondaryColorHover)",componentButtonSecondaryColorActive:"var(--componentButtonSecondaryColorActive)",componentButtonSecondaryColorFocus:"var(--componentButtonSecondaryColorFocus)",componentButtonSecondaryColorDisabled:"var(--componentButtonSecondaryColorDisabled)",componentButtonSecondaryFill:"var(--componentButtonSecondaryFill)",componentButtonSecondaryFillHover:"var(--componentButtonSecondaryFillHover)",componentButtonSecondaryFillActive:"var(--componentButtonSecondaryFillActive)",componentButtonSecondaryFillFocus:"var(--componentButtonSecondaryFillFocus)",componentButtonSecondaryFillDisabled:"var(--componentButtonSecondaryFillDisabled)",componentButtonSecondaryFocusRing:"var(--componentButtonSecondaryFocusRing)",componentButtonCleanBorderFocus:"var(--componentButtonCleanBorderFocus)",componentButtonCleanBorderActive:"var(--componentButtonCleanBorderActive)",componentButtonCleanColor:"var(--componentButtonCleanColor)",componentButtonCleanColorHover:"var(--componentButtonCleanColorHover)",componentButtonCleanColorActive:"var(--componentButtonCleanColorActive)",componentButtonCleanColorFocus:"var(--componentButtonCleanColorFocus)",componentButtonCleanColorDisabled:"var(--componentButtonCleanColorDisabled)",componentButtonCleanFill:"var(--componentButtonCleanFill)",componentButtonCleanFillHover:"var(--componentButtonCleanFillHover)",componentButtonCleanFillActive:"var(--componentButtonCleanFillActive)",componentButtonCleanFillFocus:"var(--componentButtonCleanFillFocus)",componentButtonCleanFillDisabled:"var(--componentButtonCleanFillDisabled)",componentButtonCleanFocusRing:"var(--componentButtonCleanFocusRing)",componentButtonDangerBorderHover:"var(--componentButtonDangerBorderHover)",componentButtonDangerBorderActive:"var(--componentButtonDangerBorderActive)",componentButtonDangerBorderFocus:"var(--componentButtonDangerBorderFocus)",componentButtonDangerBorderDisabled:"var(--componentButtonDangerBorderDisabled)",componentButtonDangerColor:"var(--componentButtonDangerColor)",componentButtonDangerColorHover:"var(--componentButtonDangerColorHover)",componentButtonDangerColorActive:"var(--componentButtonDangerColorActive)",componentButtonDangerColorFocus:"var(--componentButtonDangerColorFocus)",componentButtonDangerColorDisabled:"var(--componentButtonDangerColorDisabled)",componentButtonDangerFill:"var(--componentButtonDangerFill)",componentButtonDangerFillHover:"var(--componentButtonDangerFillHover)",componentButtonDangerFillActive:"var(--componentButtonDangerFillActive)",componentButtonDangerFillFocus:"var(--componentButtonDangerFillFocus)",componentButtonDangerFillDisabled:"var(--componentButtonDangerFillDisabled)",componentButtonDangerFocusRing:"var(--componentButtonDangerFocusRing)",componentDividerColor:"var(--componentDividerColor)",componentCheckboxBorderUnchecked:"var(--componentCheckboxBorderUnchecked)",componentCheckboxBorderUncheckedHover:"var(--componentCheckboxBorderUncheckedHover)",componentCheckboxBorderUncheckedFocus:"var(--componentCheckboxBorderUncheckedFocus)",componentCheckboxFillDisabled:"var(--componentCheckboxFillDisabled)",componentCheckboxCheckmarkColorDisabled:"var(--componentCheckboxCheckmarkColorDisabled)",componentRadioBorderUnchecked:"var(--componentRadioBorderUnchecked)",componentRadioFillDisabled:"var(--componentRadioFillDisabled)",componentRadioCheckmarkColorDisabled:"var(--componentRadioCheckmarkColorDisabled)",componentRadioBorderUncheckedHover:"var(--componentRadioBorderUncheckedHover)"};function Pp({...e}){const{children:n,color:r="brand",hasBorder:o=!1,isPillShaped:i=!1,icon:a,isSmall:c=!1,isSecondary:l=!1}=e;return t.createElement(Op,{color:r,hasBorder:o,isPillShaped:i,isSecondary:l,isSmall:c,...e},a&&t.createElement(Ap,{isSmall:c},a),n)}const Op=ql.div.withConfig({shouldForwardProp:(e,t)=>!["color"].includes(e)&&t(e)}).withConfig({displayName:"BadgeStyled",componentId:"sc-11co88f-0"})(["display:inline-flex;vertical-align:middle;flex-wrap:nowrap;justify-content:center;align-items:center;box-sizing:border-box;height:",";padding:0 ",";border:2px solid transparent;border-radius:",";color:",";font-weight:normal;font-size:",";line-height:normal;",""],(e=>e.isSmall?"20px":"24px"),(e=>e.isSmall?Dp.spacing2:"6px"),(e=>e.isPillShaped?Dp.radiusPill:Dp.radiusMedium),Dp.white,Dp.fontSize50,(e=>{if(!e.isSecondary&&e.color){const t={brand:Dp.brandPrimary500,gray:Dp.gray400,black:Dp.gray900,"black-alpha":Dp.gray600a,blue:Dp.blue500,red:Dp.red400};return e.hasBorder?Tl(["border-color:",";color:",";"],t[e.color],t[e.color]):Tl(["background-color:",";"],t[e.color])}if(e.isSecondary)return Tl(["border-color:",";background-color:",";color:",";"],e.hasBorder?Dp.gray100:"transparent",e.hasBorder?Dp.white:Dp.gray100,Dp.gray800)})),Ap=ql.div.withConfig({displayName:"IconHolder2",componentId:"sc-11co88f-1"})(["display:flex;align-items:center;height:100%;margin-right:",";margin-left:calc("," * -1);svg{width:18px;height:18px;}"],(e=>e.isSmall?Dp.spacing1:Dp.spacing2),Dp.spacing1),Rp=Tl(["color:",";font-size:",";font-family:",";line-height:",";"],Dp.colorText,Dp.fontSizeBase,Dp.brandFontStackBase,Dp.lineHeightBase);ql.div.withConfig({displayName:"BaseStyles",componentId:"sc-11co88f-2"})(["",""],Rp),ql.div.withConfig({shouldForwardProp:(e,t)=>!["color"].includes(e)&&t(e)}).withConfig({displayName:"Track1",componentId:"sc-11co88f-3"})(["overflow:hidden;height:4px;border-radius:",";background:",";"],(e=>e.noCornerRadius?"0":Dp.radiusPill),(e=>"brand"===e.color?Dp.brandPrimary500:`\n\t\t\t\tlinear-gradient(\n\t\t\t\t\t0deg,\n\t\t\t\t\trgb(${Dp["white-rgb"]} / 30%),\n\t\t\t\t\trgb(${Dp["white-rgb"]} / 30%)\n\t\t\t\t),\n\t\t\t\t${Dp.gray100a}\n\t\t\t`));const Fp=Gl(["to{transform:translateX(-40px);}"]),Lp=`rgb(${Dp["white-rgb"]} / 0.15)`,Mp=`rgb(${Dp["gray1000-rgb"]} / 0.15)`;ql.div.withConfig({displayName:"Fill2",componentId:"sc-11co88f-4"})(["width:calc(100% + 60px);height:100%;background-image:linear-gradient( -45deg,"," 25%,"," 25%,"," 50%,"," 50%,"," 75%,"," 75%,"," );background-size:40px 40px;background-repeat:repeat-x;animation:"," 0.8s linear infinite;"],Lp,Mp,Mp,Lp,Lp,Mp,Mp,Fp);const jp=ql.button.withConfig({displayName:"ButtonStyled1",componentId:"sc-11co88f-5"})(["vertical-align:middle;justify-content:center;align-items:center !important;box-sizing:border-box !important;border:1px solid transparent !important;border-radius:",";outline:none !important;font-weight:400 !important;font-style:normal;font-size:"," !important;font-family:"," !important;line-height:"," !important;text-transform:none !important;text-shadow:none !important;cursor:pointer !important;transition-duration:0.1s;transition-property:background-color,border-color,box-shadow,color;button&,a&{position:relative;display:flex;flex:0 0 auto;flex-wrap:nowrap;min-width:40px;background-position:center;text-align:center;text-decoration:none;white-space:nowrap;fill:currentColor;&:focus{display:flex;}}&:disabled{cursor:default !important;pointer-events:none;}"," ",";",""],Dp.brandRadiusBase,Dp.fontSizeBase,Dp.brandFontStackBase,Dp.lineHeightBase,(e=>e.isFullWidth&&"width: 100%;"),(e=>e.isSmall?Tl(["height:32px !important;padding:0 "," !important;font-size:"," !important;line-height:20px !important;"],Dp.spacing4,Dp.fontSize75):Tl(["height:40px !important;padding:0 "," !important;"],Dp.spacing5)),(e=>{if("primary"===e.variant){const t=Tl(["border-color:",";background-color:",";color:",";box-shadow:none !important;"],Dp.componentButtonPrimaryBorderActive,Dp.componentButtonPrimaryFillActive,Dp.componentButtonPrimaryColorActive);return Tl(["border-color:transparent;background-color:",";color:",";"," &:hover{border-color:",";background-color:",";color:",";box-shadow:"," !important;}&:focus{border-color:",";background-color:",";color:",";box-shadow:"," !important;}&:active{","}&:disabled{border-color:",";background-color:",";color:",";box-shadow:none !important;}"],Dp.componentButtonPrimaryFill,Dp.componentButtonPrimaryColor,e.isPressed&&t,Dp.componentButtonPrimaryBorderHover,Dp.componentButtonPrimaryFillHover,Dp.componentButtonPrimaryColorHover,Dp.elevation1,Dp.componentButtonPrimaryBorderFocus,Dp.componentButtonPrimaryFillFocus,Dp.componentButtonPrimaryColorFocus,Dp.componentButtonPrimaryFocusRing,t,Dp.componentButtonPrimaryBorderDisabled,Dp.componentButtonPrimaryFillDisabled,Dp.componentButtonPrimaryColorDisabled)}if("secondary"===e.variant){const t=Tl(["border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;"],Dp.componentButtonSecondaryBorderActive,Dp.componentButtonSecondaryFillActive,Dp.componentButtonSecondaryColorActive);return Tl(["border-color:"," !important;background-color:"," !important;color:"," !important;"," &:hover{border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:"," !important;}&:focus{border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:"," !important;}&:active{","}&:disabled{border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;}"],Dp.componentButtonSecondaryBorder,Dp.componentButtonSecondaryFill,Dp.componentButtonSecondaryColor,e.isPressed&&t,Dp.componentButtonSecondaryBorderHover,Dp.componentButtonSecondaryFillHover,Dp.componentButtonSecondaryColorHover,Dp.elevation1,Dp.componentButtonSecondaryBorderFocus,Dp.componentButtonSecondaryFillFocus,Dp.componentButtonSecondaryColorFocus,Dp.componentButtonSecondaryFocusRing,t,Dp.componentButtonSecondaryBorderDisabled,Dp.componentButtonSecondaryFillDisabled,Dp.componentButtonSecondaryColorDisabled)}if("clean"===e.variant){const t=Tl(["border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;"],Dp.componentButtonCleanBorderActive,Dp.componentButtonCleanFillActive,Dp.componentButtonCleanColorActive);return Tl(["background-color:"," !important;color:",";"," &:hover{background-color:"," !important;color:"," !important;box-shadow:none !important;}&:focus{border-color:"," !important;color:"," !important;box-shadow:"," !important;}&:active{","}&:disabled{background-color:"," !important;color:"," !important;}"],Dp.componentButtonCleanFill,Dp.componentButtonCleanColor,e.isPressed&&t,Dp.componentButtonCleanFillHover,Dp.componentButtonCleanColorHover,Dp.componentButtonCleanBorderFocus,Dp.componentButtonCleanColorFocus,Dp.componentButtonCleanFocusRing,t,Dp.componentButtonCleanFillDisabled,Dp.componentButtonCleanColorDisabled)}if("danger"===e.variant){const t=Tl(["border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;"],Dp.componentButtonDangerBorderActive,Dp.componentButtonDangerFillActive,Dp.componentButtonDangerColorActive);return Tl(["border-color:transparent;background-color:"," !important;color:"," !important;box-shadow:"," !important;"," &:hover{border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:"," !important;}&:focus{border-color:"," !important;color:"," !important;box-shadow:"," !important;}&:active{","}&:disabled{border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;}"],Dp.componentButtonDangerFill,Dp.componentButtonDangerColor,Dp.elevation1,e.isPressed&&t,Dp.componentButtonDangerBorderHover,Dp.componentButtonDangerFillHover,Dp.componentButtonDangerColorHover,Dp.elevation2,Dp.componentButtonDangerBorderFocus,Dp.componentButtonDangerColorFocus,Dp.componentButtonDangerFocusRing,t,Dp.componentButtonDangerBorderDisabled,Dp.componentButtonDangerFillDisabled,Dp.componentButtonDangerColorDisabled)}return""})),Hp=ql.button.withConfig({displayName:"ButtonStyled",componentId:"sc-11co88f-6"})(["display:inline-flex;vertical-align:middle;flex-wrap:nowrap;justify-content:center;align-items:center;box-sizing:border-box;min-width:40px;border:1px solid transparent;border-radius:",";background-color:transparent;outline:none;font-weight:400;font-style:normal;font-size:",";font-family:",";line-height:",";letter-spacing:normal;text-align:center;text-decoration:none;white-space:nowrap;cursor:pointer;fill:currentColor;transition-duration:0.1s;transition-property:background-color,border-color,box-shadow,color;&:disabled{cursor:default;}"," ",";",""],Dp.brandRadiusBase,Dp.fontSizeBase,Dp.brandFontStackBase,Dp.lineHeightBase,(e=>e.isFullWidth&&"width: 100%;"),(e=>e.isSmall?Tl(["height:32px;padding:0 ",";font-size:",";line-height:20px;"],Dp.spacing4,Dp.fontSize75):Tl(["height:40px;padding:0 ",";"],Dp.spacing5)),(e=>{if("primary"===e.variant){const t=Tl(["border-color:",";background-color:",";color:",";box-shadow:none;"],Dp.componentButtonPrimaryBorderActive,Dp.componentButtonPrimaryFillActive,Dp.componentButtonPrimaryColorActive);return Tl(["border-color:transparent;background-color:",";color:",";"," &:hover{border-color:",";background-color:",";color:",";box-shadow:",";}&:active{","}"," &:disabled{border-color:",";background-color:",";color:",";box-shadow:none;}"],Dp.componentButtonPrimaryFill,Dp.componentButtonPrimaryColor,e.isPressed&&t,Dp.componentButtonPrimaryBorderHover,Dp.componentButtonPrimaryFillHover,Dp.componentButtonPrimaryColorHover,Dp.elevation1,t,e.isFocusVisible&&Tl(["background-color:",";color:",";&,&:hover{border-color:",";box-shadow:",";}"],Dp.componentButtonPrimaryFillFocus,Dp.componentButtonPrimaryColorFocus,Dp.componentButtonPrimaryBorderFocus,Dp.componentButtonPrimaryFocusRing),Dp.componentButtonPrimaryBorderDisabled,Dp.componentButtonPrimaryFillDisabled,Dp.componentButtonPrimaryColorDisabled)}if("secondary"===e.variant){const t=Tl(["border-color:",";background-color:",";color:",";box-shadow:none;"],Dp.componentButtonSecondaryBorderActive,Dp.componentButtonSecondaryFillActive,Dp.componentButtonSecondaryColorActive);return Tl(["border-color:",";background-color:",";color:",";"," &:hover{border-color:",";background-color:",";color:",";box-shadow:",";}&:active{","}"," &:disabled{border-color:",";background-color:",";color:",";box-shadow:none;}"],Dp.componentButtonSecondaryBorder,Dp.componentButtonSecondaryFill,Dp.componentButtonSecondaryColor,e.isPressed&&t,Dp.componentButtonSecondaryBorderHover,Dp.componentButtonSecondaryFillHover,Dp.componentButtonSecondaryColorHover,Dp.elevation1,t,e.isFocusVisible&&Tl(["background-color:",";color:",";&,&:hover{border-color:",";box-shadow:",";}"],Dp.componentButtonSecondaryFillFocus,Dp.componentButtonSecondaryColorFocus,Dp.componentButtonSecondaryBorderFocus,Dp.componentButtonSecondaryFocusRing),Dp.componentButtonSecondaryBorderDisabled,Dp.componentButtonSecondaryFillDisabled,Dp.componentButtonSecondaryColorDisabled)}if("clean"===e.variant){const t=Tl(["border-color:",";background-color:",";color:",";box-shadow:none;"],Dp.componentButtonCleanBorderActive,Dp.componentButtonCleanFillActive,Dp.componentButtonCleanColorActive);return Tl(["background-color:",";color:",";"," &:hover{background-color:",";color:",";box-shadow:none;}&:active{","}"," &:disabled{background-color:",";color:",";}"],Dp.componentButtonCleanFill,Dp.componentButtonCleanColor,e.isPressed&&t,Dp.componentButtonCleanFillHover,Dp.componentButtonCleanColorHover,t,e.isFocusVisible&&Tl(["color:",";&,&:hover{border-color:",";box-shadow:",";}"],Dp.componentButtonCleanColorFocus,Dp.componentButtonCleanBorderFocus,Dp.componentButtonCleanFocusRing),Dp.componentButtonCleanFillDisabled,Dp.componentButtonCleanColorDisabled)}if("danger"===e.variant){const t=Tl(["border-color:",";background-color:",";color:",";box-shadow:none;"],Dp.componentButtonDangerBorderActive,Dp.componentButtonDangerFillActive,Dp.componentButtonDangerColorActive);return Tl(["border-color:transparent;background-color:",";color:",";box-shadow:",";"," &:hover{border-color:",";background-color:",";color:",";box-shadow:",";}&:active{","}"," &:disabled{border-color:",";background-color:",";color:",";box-shadow:none;}"],Dp.componentButtonDangerFill,Dp.componentButtonDangerColor,Dp.elevation1,e.isPressed&&t,Dp.componentButtonDangerBorderHover,Dp.componentButtonDangerFillHover,Dp.componentButtonDangerColorHover,Dp.elevation2,t,e.isFocusVisible&&Tl(["background-color:",";color:",";box-shadow:none;&,&:hover{border-color:",";box-shadow:",";}"],Dp.componentButtonDangerFillFocus,Dp.componentButtonDangerColorFocus,Dp.componentButtonDangerBorderFocus,Dp.componentButtonDangerFocusRing),Dp.componentButtonDangerBorderDisabled,Dp.componentButtonDangerFillDisabled,Dp.componentButtonDangerColorDisabled)}return""})),Up=ql.div.withConfig({displayName:"Icon4",componentId:"sc-11co88f-7"})(["display:flex;align-items:center;height:100%;"]),Vp=ql(Up).withConfig({displayName:"LeftIcon1",componentId:"sc-11co88f-8"})(["margin-right:",";margin-left:calc("," * -1);"],(e=>e.lastChild?`calc(${Dp.spacing2} * -1) `:Dp.spacing3),Dp.spacing2),$p=ql(Up).withConfig({displayName:"RightIcon2",componentId:"sc-11co88f-9"})(["margin-right:calc("," * -1);margin-left:",";"],Dp.spacing2,Dp.spacing3);function Wp(){return t.createElement(Yp,{viewBox:"0 0 24 24","aria-hidden":"true"},t.createElement(Kp,{cx:"12",cy:"12",r:"8",fill:"none",strokeWidth:"3"}))}const Gp=Gl(["100%{transform:rotate(360deg);}"]),qp=Gl(["0%{stroke-dasharray:1,100;stroke-dashoffset:0;}50%{stroke-dasharray:80,100;stroke-dashoffset:-20;}100%{stroke-dasharray:80,100;stroke-dashoffset:-48;}"]),Yp=ql.svg.withConfig({displayName:"Svg",componentId:"sc-11co88f-10"})(["width:24px;height:24px;animation:"," 1s linear infinite;"],Gp),Kp=ql.circle.withConfig({displayName:"Circle",componentId:"sc-11co88f-11"})(["stroke:currentColor;animation:"," 1.5s ease-in-out infinite;stroke-linecap:round;"],qp),Xp=d((({children:e,className:n="",rightIcon:r,type:o="button","aria-label":i,isFullWidth:a=!1,icon:c,variant:l="secondary",isSmall:s=!1,isDisabled:u=!1,isPressed:d=!1,isLoading:p=!1,...f},m)=>{const h=function({variant:e,isSmall:t,icon:n,isDisabled:r,className:o=""}){return[o,"action-btn","secondary"===e||"clean"===e?"cancel gray":"cta-main blue",t?"button-small":"",n?"button-icon":"",r?"disabled":""].join(" ")}({className:n,variant:l,isSmall:s,icon:c,isDisabled:u});return t.createElement(jp,{"aria-label":i||f.title,className:h,disabled:u||p,type:o,variant:l,isPressed:d,isSmall:s,isFullWidth:a,as:f.href?"a":"button",ref:m,...f},p?t.createElement(t.Fragment,null,t.createElement(Vp,{lastChild:!e},t.createElement(Wp,null)),e):t.createElement(t.Fragment,null,c&&t.createElement(Vp,{lastChild:!e},c),e,r&&t.createElement($p,null,r)))})),Zp=n("modern"),Jp=d((({children:e,variant:n="secondary",isSmall:r=!1,icon:o,rightIcon:i,isDisabled:a=!1,isLoading:c=!1,type:l="button",...s},u)=>{const{isFocusVisible:d,focusProps:p}=Es();return t.createElement(Hp,{variant:n,isSmall:r,disabled:c||a,type:l,as:s.href?"a":"button",isFocusVisible:d,ref:u,...p,...s},c?t.createElement(t.Fragment,null,t.createElement(Vp,{"data-testid":"ds-button-loading-icon",lastChild:!e},t.createElement(Wp,null)),e):t.createElement(t.Fragment,null,o&&t.createElement(Vp,{lastChild:!e},o),e,i&&t.createElement($p,null,i)))})),Qp=d(((e,n)=>"legacy"===(i(Zp)||"modern")?t.createElement(Xp,{ref:n,...e}):t.createElement(Jp,{ref:n,...e}))),ef=Object.assign(Qp,{VersionProvider:Zp.Provider}),tf=n(null);function nf(){const e=i(tf);if(!e)throw new Error("Card compound components cannot be rendered outside the Card component");return e}const rf=ql.div.withConfig({shouldForwardProp:(e,t)=>!["height"].includes(e)&&t(e)}).withConfig({displayName:"FrameStyled",componentId:"sc-11co88f-12"})(["position:relative;min-height:92px;border-radius:var(--card-frame-border-radius);background:",";",""],(e=>e.isCheckeredBackground?"url(\"data:image/svg+xml,%3Csvg width='12' height='12' xmlns='http://www.w3.org/2000/svg'%3E%3Crect height='12' width='12' y='0' x='0' fill='%23ffffff'/%3E%3Crect height='6' width='6' y='0' x='0' fill='%23e9ecee'/%3E%3Crect height='6' width='6' y='6' x='6' fill='%23e9ecee'/%3E%3C/svg%3E%0A\") ":Dp.gray25),(e=>"fixed"===e.height&&Tl(["&::before{content:'';display:inline-block;vertical-align:top;width:0;height:0;padding-bottom:calc(100% / (16 / 10));}"]))),of=ql.div.withConfig({displayName:"FocusRing",componentId:"sc-11co88f-13"})(["position:absolute;top:-4px;right:-4px;bottom:-4px;left:-4px;border:var(--card-selected-border-width) solid var(--card-selected-border-color);border-radius:calc(var(--card-border-radius) + 4px);"]),af=ql.div.withConfig({shouldForwardProp:(e,t)=>!["height"].includes(e)&&t(e)}).withConfig({displayName:"Children",componentId:"sc-11co88f-14"})([""," display:grid;overflow:hidden;border-radius:var(--card-frame-border-radius);"],(e=>"fixed"===e.height&&Tl(["position:absolute;inset:0;"]))),cf=ql.div.withConfig({displayName:"Overlay1",componentId:"sc-11co88f-15"})(["position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border:var(--card-inner-border-width) solid var(--card-inner-border-color);border-bottom-width:var(--card-frame-border-bottom-width);border-radius:var(--card-frame-border-radius);background:var(--card-frame-overlay-color);"]),lf=ql.div.withConfig({displayName:"BadgeContainer",componentId:"sc-11co88f-16"})(["position:absolute;right:",";bottom:",";"],Dp.spacing4,Dp.spacing4),sf=ql.div.withConfig({displayName:"IconContainer4",componentId:"sc-11co88f-17"})(["position:absolute;bottom:",";left:",";color:",";path{stroke:",";stroke-width:2px;paint-order:stroke;&[d='M0 0h24v24H0z']{stroke:none;}}"],Dp.spacing4,Dp.spacing4,Dp.white,Dp.gray100a),uf=ql.div.withConfig({displayName:"ProgressContainer",componentId:"sc-11co88f-18"})(["position:absolute;bottom:0;left:0;width:100%;"]),df={paragraphS:Tl(["font-weight:normal;font-size:",";line-height:",";"],Dp.fontSize75,Dp.lineHeightText),paragraphM:Tl(["font-weight:normal;font-size:",";line-height:",";"],Dp.fontSize100,Dp.lineHeightText),paragraphL:Tl(["font-weight:normal;font-size:",";line-height:",";"],Dp.fontSize200,Dp.lineHeightText),uiTextXS:Tl(["font-weight:normal;font-size:",";line-height:20px;"],Dp.fontSize50),uiTextS:Tl(["font-weight:normal;font-size:",";line-height:20px;"],Dp.fontSize75),uiTextM:Tl(["font-weight:normal;font-size:",";line-height:20px;"],Dp.fontSize100),uiTextL:Tl(["font-weight:normal;font-size:",";line-height:24px;"],Dp.fontSize200),headingXS:Tl(["font-weight:600;font-size:",";line-height:",";"],Dp.fontSize100,Dp.lineHeightHeading),headingS:Tl(["font-weight:600;font-size:",";line-height:",";"],Dp.fontSize200,Dp.lineHeightHeading),headingM:Tl(["font-weight:normal;font-size:",";line-height:",";"],Dp.fontSize400,Dp.lineHeightHeading),headingL:Tl(["font-weight:normal;font-size:",";line-height:",";"],Dp.fontSize600,Dp.lineHeightHeading),headingXL:Tl(["font-weight:normal;font-size:",";line-height:",";"],Dp.fontSize800,Dp.lineHeightHeading),headingXXL:Tl(["font-weight:normal;font-size:",";line-height:",";"],Dp.fontSize1000,Dp.lineHeightHeading)};function pf({children:e,direction:n="row",wrap:r="nowrap",justifyContent:o="flex-start",alignItems:i="stretch",gap:a,...c}){return t.createElement(ff,{direction:n,wrap:r,justifyContent:o,alignItems:i,gap:a,...c},e)}const ff=ql.div.withConfig({shouldForwardProp:(e,t)=>!["direction","wrap"].includes(e)&&t(e)}).withConfig({displayName:"FlexStyled",componentId:"sc-11co88f-19"})(["display:flex;flex-direction:",";flex-wrap:",";gap:",";justify-content:",";align-items:",";box-sizing:border-box;width:100%;height:100%;"],(e=>e.direction),(e=>e.wrap),(e=>Dp[`spacing${e.gap}`]),(e=>e.justifyContent),(e=>e.alignItems));function mf(e){if(!/^#([\da-f]{3}){1,2}$/i.test(e))throw new Error(`Invalid HEX to RGB conversion: ${e}`);let t,n,r;return 4===e.length?(t="0x"+e[1]+e[1],n="0x"+e[2]+e[2],r="0x"+e[3]+e[3]):7===e.length?(t="0x"+e[1]+e[2],n="0x"+e[3]+e[4],r="0x"+e[5]+e[6]):(t="",n="",r=""),`${Number(t)} ${Number(n)} ${Number(r)}`}const hf={"--white":"#ffffff","--white-rgb":mf("#ffffff"),"--gray1000":"#002233","--gray1000-rgb":mf("#002233"),"--gray900":"#1a3847","--gray800":"#334e5c","--gray700":"#4d6470","--gray600":"#667a85","--gray500":"#809199","--gray400":"#99a7ad","--gray300":"#b3bdc2","--gray200":"#ccd3d6","--gray100":"#e6e9eb","--gray75":"#ebedef","--gray50":"#f2f4f5","--gray25":"#f7f8f9","--gray10":"#ffffff","--blue1000":"#001f33","--blue900":"#003d66","--blue800":"#005c99","--blue700":"#007acc","--blue600":"#008ae6","--blue500":"#0099ff","--blue500-rgb":mf("#0099ff"),"--blue500a10":"rgb(var(--blue500-rgb) / 10%)","--blue400":"#1aa3ff","--blue300":"#33adff","--blue200":"#80ccff","--blue100":"#ccebff","--red400":"#f45225","--red500":"#f23e0d","--red500-rgb":mf("#f23e0d"),"--red500a10":"rgb(var(--red500-rgb) / 10%)","--red500a50":"rgb(var(--red500-rgb) / 50%)","--red600":"#da380b","--red700":"#c2320a","--yellow500":"#fea900","--yellow500-rgb":mf("#fea900"),"--yellow500a10":"rgb(var(--yellow500-rgb) / 10%)","--yellow600":"#e59800","--yellow700":"#cb8700","--green500":"#72d400","--purple1000":"#15122e","--purple900":"#1f1b44","--purple800":"#2a245c","--purple700":"#40378a","--purple600":"#5549b8","--purple500":"#6b5ce6","--purple400":"#978ced","--purple300":"#c3bdf5","--purple200":"#e1defa","--purple100":"#f7f6fd","--magenta1000":"#2e0d18","--magenta900":"#451424","--magenta800":"#5c1b30","--magenta700":"#8a2949","--magenta600":"#b83761","--magenta500":"#e6457a","--magenta400":"#eb6a94","--magenta300":"#f5b4c9","--magenta200":"#fad9e4","--magenta100":"#fdf5f8","--teal1000":"#062822","--teal900":"#0a3c32","--teal800":"#0d5144","--teal700":"#147a66","--teal600":"#1ba388","--teal500":"#22ccaa","--teal400":"#64dbc3","--teal300":"#a6eadd","--teal200":"#d2f4ee","--teal100":"#f3fcfa","--brandPrimary700":bf("brandPrimary700","#0087e0"),"--brandPrimary600":bf("brandPrimary600","#0095eb"),"--brandPrimary500":bf("brandPrimary500","#00aaff"),"--brandPrimary500-rgb":bf("brandPrimary500-rgb",mf("#00aaff")),"--brandPrimary300":bf("brandPrimary300","#b3e6ff"),"--brandPrimary100":bf("brandPrimary100","#e5f7ff"),"--spacing1":"2px","--spacing2":"4px","--spacing3":"8px","--spacing4":"12px","--spacing5":"16px","--spacing6":"24px","--spacing7":"32px","--spacing8":"40px","--spacing9":"48px","--layoutSpacing1":"16px","--layoutSpacing2":"24px","--layoutSpacing3":"32px","--layoutSpacing4":"48px","--layoutSpacing5":"64px","--layoutSpacing6":"96px","--layoutSpacing7":"160px","--radiusSmall":"2px","--radiusMedium":"5px","--radiusLarge":"8px","--radiusCircle":"50%","--radiusPill":"9999px","--radiusBase":"var(--radiusMedium)","--brandRadiusBase":"var(--radiusBase)","--fontStackBase":"Source Sans Pro, SourceSansPro, system-ui, sans-serif","--brandFontStackBase":"inherit","--fontSize25":"10px","--fontSize50":"12px","--fontSize75":"14px","--fontSize100":"16px","--fontSize200":"18px","--fontSize300":"20px","--fontSize400":"22px","--fontSize500":"25px","--fontSize600":"28px","--fontSize700":"32px","--fontSize800":"36px","--fontSize900":"40px","--fontSize1000":"45px","--fontSizeBase":"var(--fontSize100)","--lineHeightBase":"1.25","--lineHeightHeading":"1.25","--lineHeightText":"1.5","--gray900a":"rgb(var(--gray1000-rgb) / 90%)","--gray800a":"rgb(var(--gray1000-rgb) / 80%)","--gray700a":"rgb(var(--gray1000-rgb) / 70%)","--gray600a":"rgb(var(--gray1000-rgb) / 60%)","--gray500a":"rgb(var(--gray1000-rgb) / 50%)","--gray400a":"rgb(var(--gray1000-rgb) / 40%)","--gray300a":"rgb(var(--gray1000-rgb) / 30%)","--gray200a":"rgb(var(--gray1000-rgb) / 20%)","--gray100a":"rgb(var(--gray1000-rgb) / 10%)","--gray75a":"rgb(var(--gray1000-rgb) / 7%)","--gray50a":"rgb(var(--gray1000-rgb) / 5%)","--gray25a":"rgb(var(--gray1000-rgb) / 3%)","--colorText":"var(--gray800)","--colorTextMuted":"var(--gray600)","--colorTextDisabled":"var(--gray400)","--focusRingWidth":"2px","--focusRingColorPrimary":"var(--blue500)","--focusRingColorSecondary":"var(--gray200)","--colorShadow":"var(--gray100a)","--elevationStatic":"0 0 0 1px var(--colorShadow)","--elevation1":"0 1px 4px -1px var(--colorShadow)","--elevation2":"0 2px 4px -1px var(--colorShadow)","--elevation4":"0 4px 6px -2px var(--colorShadow)","--elevation8":"0 8px 12px -2px var(--colorShadow)","--elevation12":"0 12px 12px -2px var(--colorShadow)","--elevation16":"0 16px 12px -2px var(--colorShadow)","--elevation24":"0 24px 12px -2px var(--colorShadow)","--componentButtonPrimaryBorderHover":"var(--brandPrimary600)","--componentButtonPrimaryBorderActive":"var(--brandPrimary700)","--componentButtonPrimaryBorderFocus":"var(--brandPrimary500)","--componentButtonPrimaryBorderDisabled":"transparent","--componentButtonPrimaryColor":"var(--white)","--componentButtonPrimaryColorHover":"var(--white)","--componentButtonPrimaryColorActive":"var(--white)","--componentButtonPrimaryColorFocus":"var(--white)","--componentButtonPrimaryColorDisabled":"var(--white)","--componentButtonPrimaryFill":"var(--brandPrimary500)","--componentButtonPrimaryFillHover":"var(--brandPrimary600)","--componentButtonPrimaryFillActive":"var(--brandPrimary700)","--componentButtonPrimaryFillFocus":"var(--brandPrimary500)","--componentButtonPrimaryFillDisabled":"var(--brandPrimary300)","--componentButtonPrimaryFocusRing":"0 0 0 3px rgb(var(--brandPrimary500-rgb) / 30%)","--componentButtonSecondaryBorder":"var(--gray100)","--componentButtonSecondaryBorderHover":"var(--gray200)","--componentButtonSecondaryBorderActive":"var(--gray300)","--componentButtonSecondaryBorderFocus":"var(--gray300)","--componentButtonSecondaryBorderDisabled":"var(--gray50)","--componentButtonSecondaryColor":"var(--gray800)","--componentButtonSecondaryColorHover":"var(--gray800)","--componentButtonSecondaryColorActive":"var(--gray800)","--componentButtonSecondaryColorFocus":"var(--gray800)","--componentButtonSecondaryColorDisabled":"var(--gray300)","--componentButtonSecondaryFill":"var(--gray25)","--componentButtonSecondaryFillHover":"var(--gray50)","--componentButtonSecondaryFillActive":"var(--gray75)","--componentButtonSecondaryFillFocus":"var(--gray25)","--componentButtonSecondaryFillDisabled":"var(--gray25)","--componentButtonSecondaryFocusRing":"0 0 0 3px var(--gray50a)","--componentButtonCleanBorderFocus":"var(--gray200)","--componentButtonCleanBorderActive":"transparent","--componentButtonCleanColor":"var(--gray600)","--componentButtonCleanColorHover":"var(--gray900)","--componentButtonCleanColorActive":"var(--gray900)","--componentButtonCleanColorFocus":"var(--gray900)","--componentButtonCleanColorDisabled":"var(--gray300)","--componentButtonCleanFill":"transparent","--componentButtonCleanFillHover":"var(--gray25a)","--componentButtonCleanFillActive":"var(--gray50a)","--componentButtonCleanFillFocus":"var(--gray25a)","--componentButtonCleanFillDisabled":"transparent","--componentButtonCleanFocusRing":"0 0 0 3px var(--gray50a)","--componentButtonDangerBorderHover":"var(--red600)","--componentButtonDangerBorderActive":"var(--red700)","--componentButtonDangerBorderFocus":"var(--red500)","--componentButtonDangerBorderDisabled":"transparent","--componentButtonDangerColor":"var(--white)","--componentButtonDangerColorHover":"var(--white)","--componentButtonDangerColorActive":"var(--white)","--componentButtonDangerColorFocus":"var(--white)","--componentButtonDangerColorDisabled":"var(--white)","--componentButtonDangerFill":"var(--red500)","--componentButtonDangerFillHover":"var(--red600)","--componentButtonDangerFillActive":"var(--red700)","--componentButtonDangerFillFocus":"var(--red500)","--componentButtonDangerFillDisabled":"var(--red500a50)","--componentButtonDangerFocusRing":"0 0 0 3px rgb(var(--red500-rgb) / 30%)","--componentDividerColor":"var(--gray100a)","--componentCheckboxBorderUnchecked":"var(--gray300)","--componentCheckboxBorderUncheckedHover":"var(--gray500)","--componentCheckboxBorderUncheckedFocus":"var(--gray500)","--componentCheckboxFillDisabled":"var(--gray100)","--componentCheckboxCheckmarkColorDisabled":"var(--gray500)","--componentRadioBorderUnchecked":"var(--gray300)","--componentRadioFillDisabled":"var(--gray100)","--componentRadioCheckmarkColorDisabled":"var(--gray500)","--componentRadioBorderUncheckedHover":"var(--gray500)"},gf={"--gray1000":"#ffffff","--gray1000-rgb":mf("#ffffff"),"--gray900":"#e6e9eb","--gray800":"#ccd3d6","--gray700":"#b3bdc2","--gray600":"#99a7ad","--gray500":"#809199","--gray400":"#667a85","--gray300":"#4d6470","--gray200":"#334e5c","--gray100":"#1a3847","--gray75":"#123141","--gray50":"#0d2d3d","--gray25":"#082939","--gray10":"#002233","--componentDividerColor":"var(--gray100a)","--focusRingColorSecondary":"var(--gray200a)","--componentCheckboxBorderUnchecked":"var(--gray300a)","--componentCheckboxBorderUncheckedHover":"var(--gray500a)","--componentCheckboxBorderUncheckedFocus":"var(--gray500a)","--componentCheckboxFillDisabled":"var(--gray100a)","--componentCheckboxCheckmarkColorDisabled":"var(--gray500a)","--componentRadioBorderUnchecked":"var(--gray300a)","--componentRadioFillDisabled":"var(--gray100a)","--componentRadioCheckmarkColorDisabled":"var(--gray500a)","--componentRadioBorderUncheckedHover":"var(--gray500a)"},vf=Wl(["",""],Tl([":root,:host,.",",.","{","}.","{","}"],"ds-light-theme","ds-dark-theme",yf(hf),"ds-dark-theme",yf(gf)));function yf(e){const t=Object.entries(e).map((e=>e.join(":")));return t.join(";")+";"}function bf(e,t){return`var(--user-${e}, var(--theme-${e}, ${t}))`}const wf={size:"24px",attr:{"aria-hidden":"true"},style:{verticalAlign:"middle"}},xf=t.createContext({zIndexBase:1031});function Ef({children:e,noTheme:n,zIndexBase:r=1031,buttonVersion:i="modern",dateFnsLocale:a}){const c=o((()=>({zIndexBase:r,dateFnsLocale:a})),[a,r]);return t.createElement(xf.Provider,{value:c},t.createElement(ks.Provider,{value:wf},t.createElement(ef.VersionProvider,{value:i},!n&&t.createElement(vf,null),e)))}const Cf=["modal","datepicker","dropdown","tooltip"];function kf(e){return i(xf).zIndexBase+Cf.indexOf(e)}function Sf({position:e="top-center",timing:n="instant",className:o,...i}){const[l,s]=function(e){var t=void 0===e?{}:e,n=t.delayEnter,o=void 0===n?0:n,i=t.delayLeave,l=void 0===i?0:i,s=t.hideOnScroll,d=void 0===s||s,p=r(!1),f=p[0],m=p[1],h=c(null),g=c(ad.IDLE),v=c(!1),y=u((function(){clearTimeout(h.current),h.current=null,g.current=ad.IDLE}),[]);function b(e,t){if(g.current===ad.ENTERING&&h.current&&y(),f){if(t)return m(!1),h.current=null,void(g.current=ad.IDLE);g.current=ad.LEAVING,h.current=window.setTimeout((function(){m(!1),h.current=null,g.current=ad.IDLE}),l)}}return a((function(){function e(){f&&d&&(y(),m(!1))}function t(){f&&(y(),m(!1))}return window.addEventListener("scroll",e,!0),window.addEventListener("touchend",t,!0),function(){window.removeEventListener("scroll",e,!0),window.removeEventListener("touchend",t,!0),h.current&&clearTimeout(h.current)}}),[f,d,y]),[f,{onMouseEnter:function(){g.current===ad.LEAVING&&h.current&&y(),f||(g.current=ad.ENTERING,h.current=window.setTimeout((function(){m(!0),h.current=null,g.current=ad.IDLE}),o))},onMouseLeave:b,onTouchStart:function(){v.current=!1},onTouchMove:function(){v.current=!0},onTouchEnd:function(){v.current||f||m(!0),v.current=!1}},function(){return b(0,!0)}]}({delayEnter:"delay"===n?800:0}),{isFocusVisible:d,focusProps:p}=Es(),f=kf("tooltip"),m=void 0===i.isOpen?l||d:i.isOpen,{triggerProps:h,layerProps:g,renderLayer:v}=gd({isOpen:m,auto:!0,snap:!0,placement:_f(e),possiblePlacements:If(e),triggerOffset:8,containerOffset:8}),y="icon"in i?t.createElement(pf,{alignItems:"center"},t.createElement(Tf,null,i.icon)," ",i.content):"label"in i&&i.isLabelVertical?t.createElement("div",null,t.createElement(zf,null,i.label),t.createElement("div",null,i.content)):"label"in i&&!i.isLabelVertical?t.createElement(t.Fragment,null,t.createElement(Nf,null,i.label)," ",i.content):i.content;return t.createElement(t.Fragment,null,"function"==typeof i.children?i.children({...h,...s,...p}):t.createElement("div",{...h,...s,...p},i.children),m&&v(t.createElement(Bf,{...g,zIndex:f,className:o},y)))}function _f(e){return{"top-left":"top-start","top-center":"top-center","top-right":"top-end",left:"left-center",right:"right-center","bottom-left":"bottom-start","bottom-center":"bottom-center","bottom-right":"bottom-end"}[e]}function If(e){const t=["top-center","bottom-center"],n=["left-center","right-center"],r=["top-end","top-start","bottom-end","bottom-start"];return{"top-left":r,"top-center":t,"top-right":r,left:n,right:n,"bottom-left":r,"bottom-center":t,"bottom-right":r}[e]}const Bf=ql.div.withConfig({displayName:"TooltipContainer",componentId:"sc-11co88f-20"})([""," z-index:",";display:flex;max-width:240px;padding:calc("," / 2) ",";border-radius:",";background:",";color:",";word-break:break-word;"],df.uiTextS,(e=>e.zIndex),Dp.spacing4,Dp.spacing4,Dp.radiusBase,Dp.gray900a,Dp.gray10),Tf=ql.span.withConfig({displayName:"IconContainer3",componentId:"sc-11co88f-21"})(["display:flex;align-items:center;width:24px;height:24px;margin:-"," "," -"," -",";color:",";"],Dp.spacing1,Dp.spacing2,Dp.spacing1,Dp.spacing2,Dp.gray400),Nf=ql.span.withConfig({displayName:"LabelContainer",componentId:"sc-11co88f-22"})(["margin-right:",";color:",";"],Dp.spacing2,Dp.gray400),zf=ql.div.withConfig({displayName:"VerticalLabelContainer",componentId:"sc-11co88f-23"})(["color:",";"],Dp.gray400);function Df({children:e,tooltipPosition:n="top-left"}){const[i,s]=r(!1),d=c(null);function p(){if(d.current){const e=d.current.offsetWidth<d.current.scrollWidth;s(e)}}return function(e){void 0===e&&(e={});var t=e.onResize,n=c(void 0);n.current=t;var i=e.round||Math.round,l=c(),s=r({width:void 0,height:void 0}),d=s[0],p=s[1],f=c(!1);a((function(){return f.current=!1,function(){f.current=!0}}),[]);var m=c({width:void 0,height:void 0}),h=function(e,t){var n=c(null),r=c(null);r.current=t;var o=c(null);a((function(){i()}));var i=u((function(){var t=o.current,i=r.current,a=t||(i?i instanceof Element?i:i.current:null);n.current&&n.current.element===a&&n.current.subscriber===e||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:a,subscriber:e,cleanup:a?e(a):void 0})}),[e]);return a((function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}}),[]),u((function(e){o.current=e,i()}),[i])}(u((function(t){return l.current&&l.current.box===e.box&&l.current.round===i||(l.current={box:e.box,round:i,instance:new ResizeObserver((function(t){var r=t[0],o="border-box"===e.box?"borderBoxSize":"device-pixel-content-box"===e.box?"devicePixelContentBoxSize":"contentBoxSize",a=Pu(r,o,"inlineSize"),c=Pu(r,o,"blockSize"),l=a?i(a):void 0,s=c?i(c):void 0;if(m.current.width!==l||m.current.height!==s){var u={width:l,height:s};m.current.width=l,m.current.height=s,n.current?n.current(u):f.current||p(u)}}))}),l.current.instance.observe(t,{box:e.box}),function(){l.current&&l.current.instance.unobserve(t)}}),[e.box,i]),e.ref);o((function(){return{ref:h,width:d.width,height:d.height}}),[h,d.width,d.height])}({ref:d,onResize:()=>{p()}}),l((()=>{p()}),[]),t.createElement(Pf,{ref:d},i?t.createElement(Sf,{content:e,position:n,timing:"delay"},(n=>t.createElement("span",{...n},e))):e)}const Pf=ql.span.withConfig({displayName:"StyledText",componentId:"sc-11co88f-24"})(["display:block;overflow:hidden;min-width:0;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;"]),Of=ql.div.withConfig({displayName:"HeaderStyled1",componentId:"sc-11co88f-25"})(["display:grid;grid-template-areas:'thumbnail title icon' 'thumbnail detail icon';grid-template-columns:auto 1fr auto;padding:var(--card-content-padding);"]),Af=ql.div.withConfig({displayName:"ThumbnailContainer3",componentId:"sc-11co88f-26"})(["grid-area:thumbnail;margin-top:2px;margin-right:",";"],Dp.spacing4),Rf=ql.div.withConfig({displayName:"Title4",componentId:"sc-11co88f-27"})([""," grid-area:title;min-width:0;color:",";overflow-wrap:break-word;"],df.uiTextM,Dp.gray800),Ff=ql.div.withConfig({displayName:"Detail",componentId:"sc-11co88f-28"})([""," grid-area:detail;min-width:0;margin-top:",";color:",";overflow-wrap:break-word;"],df.uiTextS,Dp.spacing2,Dp.gray600),Lf=ql.div.withConfig({displayName:"IconContainer2",componentId:"sc-11co88f-29"})(["z-index:2;display:grid;grid-area:icon;align-items:center;margin-left:",";color:",";"],Dp.spacing2,Dp.gray600),Mf=ql.div.withConfig({displayName:"AdditionalInfoStyled",componentId:"sc-11co88f-30"})([""," padding:",";border-top:1px solid ",";color:",";"],df.uiTextS,(e=>"all"===e.padding?"var(--card-content-padding)":"0"),Dp.gray100a,Dp.colorText),jf=d((({children:e,isDisabled:n=!1,isPressed:r=!1,tooltip:o,"aria-label":i,...a},c)=>{const{isFocusVisible:l,focusProps:s}=Es(),u=t.createElement(Hf,{disabled:n,type:"button",isFocusVisible:l,ref:c,isPressed:r,"aria-label":i,...s,...a},e);return o?t.createElement(Sf,{timing:"delay",content:o},u):u})),Hf=ql.button.withConfig({displayName:"ContextActionButtonStyled",componentId:"sc-11co88f-31"})(["display:inline-flex;vertical-align:middle;flex-wrap:nowrap;justify-content:center;align-items:center;box-sizing:border-box;min-width:40px;height:32px;padding:0 ",";border:none;border-radius:",";background-color:transparent;box-shadow:0 0 0 1px ",";font-weight:400;font-style:normal;font-size:",";font-family:",";line-height:",";letter-spacing:normal;text-align:center;text-decoration:none;white-space:nowrap;cursor:pointer;fill:currentColor;transition-duration:0.1s;transition-property:background-color,border-color,box-shadow,color;",""],Dp.spacing3,Dp.brandRadiusBase,Dp.gray100a,Dp.fontSize75,Dp.brandFontStackBase,Dp.lineHeightBase,(e=>{const t=Tl(["background-color:",";color:",";box-shadow:0 0 0 1px ",";"],Dp.gray10,Dp.gray800,Dp.gray100a);return Tl(["background-color:rgb("," / 90%);color:",";"," &:hover{background-color:",";color:",";box-shadow:",",",";}&:active{","}&:disabled{background-color:rgb("," / 70%);color:",";box-shadow:0 0 0 1px ",";cursor:default;}"],Dp["white-rgb"],Dp.gray600a,e.isPressed&&t,Dp.gray10,Dp.gray800,Dp.elevation1,Dp.elevationStatic,t,Dp["white-rgb"],Dp.gray200a,Dp.gray100a)})),Uf=ql.div.withConfig({displayName:"ImagesStyled",componentId:"sc-11co88f-32"})(["display:grid;grid-template-rows:1fr 1fr;grid-template-columns:3fr 2fr;gap:",";min-height:10px;"],Dp.spacing1),Vf=ql.img.withConfig({displayName:"ImgStyled",componentId:"sc-11co88f-33"})(["object-fit:",";width:100%;height:100%;min-height:0;max-height:410px;&:nth-child(1){grid-row:1 / -1;grid-column:1;}&:nth-child(1):last-child{grid-column:span 2;}&:nth-child(2){grid-row:1;grid-column:2;}&:nth-child(2):last-child{grid-row:span 2;}&:nth-child(3){grid-row:2;grid-column:2;}"],(e=>"fill"===e.contentResize?"cover":"scale-down"));function $f({children:e,...n}){return t.createElement(Wf,{...n},t.createElement(Gf,null,e))}const Wf=ql.div.withConfig({displayName:"Placeholder1",componentId:"sc-11co88f-34"})(["display:grid;place-items:center;min-height:100px;"]),Gf=ql.div.withConfig({displayName:"IconContainer1",componentId:"sc-11co88f-35"})(["display:grid;place-items:center;width:60px;height:70px;border-radius:",";background:",";color:",";"],Dp.brandRadiusBase,Dp.gray10,Dp.gray600);function qf(e){return o((()=>e+"-"+vd()),[e])}const Yf=ql.div.withConfig({displayName:"Placeholder",componentId:"sc-11co88f-36"})(["display:flex;justify-content:center;align-items:center;min-height:100px;background:",";"],(e=>e.backgroundColor));function Kf({children:e,variant:n="outlined",isSelected:r=!1,contextAction:i,onClick:a,onSelect:c,as:l="button",href:s,to:u,selectButtonAriaLabel:d,"aria-label":p,...f}){const m=qf("card-title"),h=o((()=>({variant:n,isSelected:r,cardTitleId:m})),[r,n,m]);return t.createElement(tf.Provider,{value:h},t.createElement(Xf,{variant:n,isSelected:r,...f},t.createElement(Zf,{as:l,to:u,href:"a"===l?s:void 0,type:"button"===l?"button":void 0,onClick:function(e){if(c&&(e.metaKey||e.ctrlKey||e.shiftKey))return c(e),void e.preventDefault();null==a||a(e)},"aria-labelledby":p?void 0:m,"aria-label":p},e),i?t.createElement(Qf,null,i):null,c?t.createElement(Jf,{type:"button",isSelected:r,onClick:c,"aria-label":d},t.createElement(ku,null)):null))}Kf.Frame=function({children:e,progressBar:n,badge:r,icon:o,isCheckeredBackground:i=!1,height:a="fixed",...c}){const{variant:l,isSelected:s}=nf();return t.createElement(rf,{isCheckeredBackground:i,height:a,...c},"clean"===l&&s&&t.createElement(of,null),t.createElement(af,{height:a},e),t.createElement(cf,null),n?t.createElement(uf,null,n):null,r?t.createElement(lf,null,t.createElement(Pp,{color:"black-alpha"},r)):null,o?t.createElement(sf,null,o):null)},Kf.Header=function({thumbnail:e,title:n,detail:r,icon:o,isNotTruncated:i=!1,...a}){const{cardTitleId:c}=nf();return t.createElement(Of,{...a},e?t.createElement(Af,null,e):null,t.createElement(Rf,{id:c},i?n:t.createElement(Df,null,n)),r?t.createElement(Ff,null,i?r:t.createElement(Df,null,r)):null,o?t.createElement(Lf,null,o):null)},Kf.AdditionalInfo=function({children:e,padding:n="all",...r}){return t.createElement(Mf,{padding:n,...r},e)},Kf.ContextActionButton=jf,Kf.Images=function({children:e,...n}){return t.createElement(Uf,{...n},e)},Kf.Img=function({src:e,contentResize:n="fill",alt:r="",...o}){return t.createElement(Vf,{src:e,alt:r,contentResize:n,...o})},Kf.FilePlaceholder=$f,Kf.PlaceholderIcon=$f,Kf.IconPlaceholder=function({children:e,backgroundColor:n=Dp.gray25,iconColor:r=Dp.gray400a,...o}){const i=t.useMemo((()=>({color:r,size:"48px",attr:{"aria-hidden":"true"},style:{verticalAlign:"middle"}})),[r]);return t.createElement(Yf,{...o,backgroundColor:n},t.createElement(ks.Provider,{value:i},e))};const Xf=ql.div.withConfig({displayName:"Container7",componentId:"sc-11co88f-37"})(["--card-border-radius:",";--card-inner-border-color:",";--card-inner-border-width:1px;--card-selected-border-color:var(--userComponentCardSelectedColor,",");--card-selected-border-width:2px;--card-elevation:",";--card-frame-overlay-color:transparent;--card-actions-opacity:0;&:hover{--card-frame-overlay-color:",";--card-actions-opacity:1;}&:focus-within{--card-actions-opacity:1;}"," position:relative;box-sizing:border-box;min-width:224px;border-radius:var(--card-border-radius);background:",";box-shadow:var(--card-box-shadow);"],Dp.radiusBase,Dp.gray100a,Dp.brandPrimary500,Dp.elevation1,Dp.gray100a,(e=>"outlined"===e.variant?Tl(["--card-frame-border-radius:var(--card-border-radius) var(--card-border-radius) 0 0;--card-box-shadow:var(--card-elevation),inset 0 0 0 var(--card-inner-border-width) var(--card-inner-border-color);--card-frame-border-bottom-width:0;--card-content-padding:"," ",";&:hover{--card-inner-border-color:",";--card-elevation:",";}",""],Dp.spacing4,Dp.spacing5,Dp.gray200a,Dp.elevation2,e.isSelected?Tl(["--card-inner-border-width:var(--card-selected-border-width);--card-inner-border-color:var(--card-selected-border-color);&:hover{--card-inner-border-color:var(--card-selected-border-color);}"]):""):Tl(["--card-frame-border-radius:var(--card-border-radius);--card-box-shadow:none;--card-frame-border-bottom-width:1px;--card-content-padding:"," 0;"],Dp.spacing3)),Dp.gray10),Zf=ql.button.withConfig({displayName:"MainAction",componentId:"sc-11co88f-38"})(["display:block;box-sizing:border-box;width:100%;padding:0;border:none;background:none;font:inherit;text-align:left;text-decoration:none;cursor:pointer;"]),Jf=ql.button.withConfig({displayName:"SelectButton",componentId:"sc-11co88f-39"})(["position:absolute;top:",";right:",";z-index:2;display:grid;place-items:center;box-sizing:border-box;width:32px;height:32px;padding:0;border:2px solid rgb(var(--white-rgb) / 80%);border-radius:",";background:none;color:transparent;opacity:",";cursor:pointer;&:hover{border-color:",";}&:active{border-width:3px;border-color:",";}",""],Dp.spacing4,Dp.spacing4,Dp.radiusCircle,(e=>e.isSelected?"1":"var(--card-actions-opacity)"),Dp.white,Dp.white,(e=>e.isSelected&&Tl(["border:none;background:var(--userComponentCardSelectedColor,",");color:",";&:hover{background:var(--userComponentCardSelectedColorHover,",");box-shadow:",";}&:active{background:var(--userComponentCardSelectedColorActive,",");box-shadow:none;}"],Dp.brandPrimary500,Dp.white,Dp.brandPrimary600,Dp.elevation1,Dp.brandPrimary700))),Qf=ql.div.withConfig({displayName:"ActionContainer",componentId:"sc-11co88f-40"})(["position:absolute;top:",";left:",";z-index:2;opacity:var(--card-actions-opacity);"],Dp.spacing4,Dp.spacing4);function em(){return t.createElement("svg",{width:"12",height:"12",viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M1.793 5.621a1 1 0 000 1.415l2.121 2.12a.995.995 0 00.773.292.996.996 0 00.641-.291l4.95-4.95a1 1 0 00-1.414-1.414L4.621 7.036 3.207 5.62a1 1 0 00-1.414 0z"}))}function tm({isChecked:e=!1,isDisabled:n=!1,isIndeterminate:r=!1,inputProps:o,children:i,onChange:a=(()=>{}),id:c,...l}){const{isFocusVisible:s,focusProps:u}=Es();return t.createElement(nm,{isIndeterminate:r,isDisabled:n,isChecked:e,className:"ds-checkbox__pointer-events-wrapper",...l},t.createElement(im,{type:"checkbox",ref:e=>{e&&(e.indeterminate=r)},"aria-checked":r?"mixed":e,disabled:n,checked:e,onChange:a,id:c,...u,...o}),t.createElement(rm,null,t.createElement(om,{isFocusVisible:s,isIndeterminate:r,isDisabled:n,isChecked:e},e&&t.createElement(em,null),r&&t.createElement(am,null))),i&&t.createElement(cm,{isDisabled:n},i))}tm.pointerEventsClassname="ds-checkbox__pointer-events-wrapper";const nm=ql.label.withConfig({displayName:"Container6",componentId:"sc-11co88f-41"})([""," display:flex;align-items:flex-start;margin:0;padding:"," 0;cursor:",";user-select:none;"],df.uiTextM,Dp.spacing1,(e=>!e.isDisabled&&"pointer")),rm=ql.div.withConfig({displayName:"IndicatorPosition1",componentId:"sc-11co88f-42"})(["display:flex;flex:none;align-items:center;&::before{content:'';}"]),om=ql.div.withConfig({displayName:"Indicator3",componentId:"sc-11co88f-43"})(["position:relative;display:flex;justify-content:center;align-items:center;box-sizing:border-box;width:16px;height:16px;border:2px solid ",";border-radius:",";background-color:transparent;&::before{content:'';position:absolute;top:-5px;right:-5px;bottom:-5px;left:-5px;border:"," solid transparent;border-radius:calc( "," + 3px );}"," "," "," "," ",":hover &,",":focus-visible &{"," background-color:",";}"],Dp.componentCheckboxBorderUnchecked,Dp.radiusMedium,Dp.focusRingWidth,Dp.radiusMedium,(e=>e.isFocusVisible&&Tl(["border-color:",";&::before{border-color:",";}"],Dp.componentCheckboxBorderUncheckedFocus,e.isChecked||e.isIndeterminate?Dp.focusRingColorPrimary:Dp.focusRingColorSecondary)),(e=>e.isChecked&&Tl(["border-color:transparent;background-color:",";fill:#fff;"],Dp.blue500)),(e=>e.isIndeterminate&&Tl(["border-color:transparent;background-color:",";"],Dp.blue500)),(e=>e.isDisabled&&Tl(["border-color:transparent;background-color:",";fill:",";"],Dp.componentCheckboxFillDisabled,Dp.componentCheckboxCheckmarkColorDisabled)),".ds-checkbox__pointer-events-wrapper",".ds-checkbox__pointer-events-wrapper",(e=>!e.isChecked&&!e.isIndeterminate&&!e.isDisabled&&`border-color: ${Dp.componentCheckboxBorderUncheckedHover};`),(e=>!e.isChecked&&!e.isIndeterminate||e.isDisabled?void 0:Dp.blue600)),im=ql.input.withConfig({displayName:"Input2",componentId:"sc-11co88f-44"})(["position:absolute;overflow:hidden;clip:rect(0,0,0,0);width:1px;height:1px;margin:0 -1px -1px 0;padding:0;border:0;white-space:nowrap;clip-path:inset(50%);"]),am=ql.div.withConfig({displayName:"IndeterminateMark",componentId:"sc-11co88f-45"})(["width:8px;height:2px;border-radius:",";background-color:",";"],Dp.radiusPill,Dp.white),cm=ql.div.withConfig({displayName:"Label4",componentId:"sc-11co88f-46"})(["display:block;margin-left:8px;color:",";"],(e=>e.isDisabled?Dp.gray400:Dp.colorText)),lm=n(void 0);function sm(e){if(!i(lm))throw new Error(`<Form.${e}> cannot be rendered outside the <Form.Group> component`)}const um=ql.div.withConfig({displayName:"GroupStyled",componentId:"sc-11co88f-47"})(["margin:0;padding:"," 0;border:0;"],Dp.spacing3),dm=ql.div.withConfig({displayName:"HelperTextStyled",componentId:"sc-11co88f-48"})([""," display:flex;align-items:center;margin-top:",";padding-top:",";color:",";"],df.uiTextS,Dp.spacing2,(e=>e.hasIcon?"2px":"0"),(e=>e.isInvalid?Dp.red500:Dp.gray600)),pm=ql.div.withConfig({displayName:"Icon3",componentId:"sc-11co88f-49"})(["flex:none;align-self:flex-start;margin-top:-2px;margin-right:",";"],Dp.spacing2),fm=ql.label.withConfig({displayName:"LabelStyled",componentId:"sc-11co88f-50"})([""," display:block;margin:0 0 ",";padding:0;border:none;color:",";"],df.uiTextM,Dp.spacing3,Dp.colorText),mm=ql.span.withConfig({displayName:"SecondaryText",componentId:"sc-11co88f-51"})(["color:",";"],Dp.gray600),hm=ql.span.withConfig({displayName:"Space",componentId:"sc-11co88f-52"})(["display:inline-block;width:",";"],Dp.spacing3),gm=ql.div.withConfig({displayName:"RowStyled",componentId:"sc-11co88f-53"})(["display:grid;grid-template-columns:repeat(auto-fit,minmax(10px,1fr));gap:",";"],Dp.spacing4),vm=ql.div.withConfig({displayName:"InputRowStyled",componentId:"sc-11co88f-54"})(["display:flex;& > *{min-width:min-content;&:not(:first-child){margin-left:",";}}"],Dp.spacing4);function ym({children:e,onSubmit:n,...r}){return t.createElement("form",{onSubmit:n,...r},e)}ym.Group=function({children:e,...n}){return t.createElement(lm.Provider,{value:"group"},t.createElement(um,{...n},e))},ym.HelperText=function({icon:e,isInvalid:n,children:r,...o}){return sm("HelperText"),t.createElement(dm,{isInvalid:n,hasIcon:Boolean(e),...o},e&&t.createElement(pm,null,e),r)},ym.Label=function({children:e,secondaryText:n,htmlFor:r,id:o,...i}){return sm("Label"),t.createElement(fm,{htmlFor:r,id:o,...i},e,n?t.createElement(mm,null,t.createElement(hm,null," "),n):null)},ym.Row=function({children:e,...n}){return t.createElement(gm,{...n},e)},ym.InputRow=function({children:e,...n}){return sm("InputRow"),t.createElement(vm,{...n},e)},ym.IconError=function(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}}]})(e)},ql.ul.withConfig({displayName:"List1",componentId:"sc-11co88f-55"})(["margin:0;padding:0;list-style:none;"]),ql.li.withConfig({displayName:"Item5",componentId:"sc-11co88f-56"})(["&:not(:last-child){margin-bottom:",";}"],Dp.spacing2);const bm=ql.span.withConfig({displayName:"DeleteButton",componentId:"sc-11co88f-57"})(["display:flex;justify-content:center;align-items:center;width:24px;height:24px;margin:0 calc("," * -1) 0 ",";padding:0;border:0;border-radius:",";background:none;color:",";outline:0;cursor:pointer;&:hover{background:",";color:",";}&:active{background:",";}"],Dp.spacing3,Dp.spacing3,Dp.radiusCircle,(e=>e.isDisabled?Dp.gray400:Dp.gray600),Dp.gray50a,Dp.gray800,Dp.gray100a);ql.button.withConfig({displayName:"ChipStyled",componentId:"sc-11co88f-58"})(["display:inline-flex;align-items:center;border:0;border-radius:",";background-color:",";color:",";outline:none;font-family:",";white-space:nowrap;",";",";",";",";",";"],Dp.radiusPill,Dp.gray50,Dp.gray800,Dp.brandFontStackBase,(e=>e.onClick&&Tl(["cursor:pointer;&:hover{background-color:",";","{color:",";}}&:active{background-color:",";}"],Dp.gray75,bm,Dp.gray800,Dp.gray100)),(e=>e.isFocusVisible&&Tl(["background:",";box-shadow:inset ",";outline:0;"],Dp.gray25,Dp.elevationStatic)),(e=>"m"===e.size&&Em),(e=>"s"===e.size&&xm),(e=>e.isDisabled&&Cm));const wm=ql.div.withConfig({displayName:"ThumbnailContainer2",componentId:"sc-11co88f-59"})(["display:block;"]),xm=Tl([""," height:32px;padding:0 12px;","{margin:0 "," 0 calc("," * -1);}"],df.uiTextS,wm,Dp.spacing3,Dp.spacing3),Em=Tl([""," height:40px;padding:0 16px;","{margin:0 "," 0 calc("," * -1);}"],df.uiTextM,wm,Dp.spacing3,Dp.spacing4),Cm=Tl(["background-color:",";color:",";pointer-events:none;"],Dp.gray25,Dp.gray400);function km(e,t){a((()=>{function n(n){n.key===e&&t(n)}return window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}}),[t,e])}ql.div.withConfig({displayName:"IconContainer",componentId:"sc-11co88f-60"})(["width:24px;height:24px;margin-left:calc("," * -1);padding:0 "," 0 0;"],Dp.spacing2,Dp.spacing3),ql.div.withConfig({displayName:"StyledHeaderCaption",componentId:"sc-11co88f-61"})(["display:flex;justify-content:space-between;align-items:center;margin-bottom:",";margin-left:",";",""],Dp.spacing4,Dp.spacing4,df.uiTextM),ql.div.withConfig({displayName:"StyledContainer",componentId:"sc-11co88f-62"})(["z-index:",";padding:",";border-radius:",";background-color:",";box-shadow:",",",";"],(e=>e.zIndex),Dp.spacing4,Dp.radiusMedium,Dp.white,Dp.elevationStatic,Dp.elevation2),ql.div.withConfig({componentId:"sc-11co88f-63"})(["padding-top:",";"],Dp.spacing4),Wl(["",""],Tl([".rdp{background-color:",";color:",";","}.rdp-caption{display:flex;justify-content:space-between;align-items:center;}.rdp-table{padding:",";border-spacing:",";}.rdp-head_cell{height:30px;padding:0;text-align:center;","}.rdp-cell{padding:0;}.rdp-day{width:32px;height:32px;border:none;border-radius:",";background-color:",";color:",";outline:none;font-family:inherit;cursor:pointer;"," &_disabled{color:",";pointer-events:none;}&:focus-visible{background-color:",";color:",";box-shadow:0 0 0 2px ",",inset 0 0 0 1px ",";}&:hover{background-color:",";color:",";}}.rdp-day_today{background-color:",";color:",";font-weight:600;}.rdp-day_selected{background-color:",";color:",";&.rdp-day_outside,&.rdp-day_disabled{color:",";}&:focus-visible{background-color:",";color:",";box-shadow:0 0 0 2px ",",inset 0 0 0 1px ",";}&:hover{background-color:",";color:",";}}.rdp-day_outside{color:",";}.rdp-vhidden{display:none;}"],Dp.white,Dp.gray800,df.uiTextS,Dp.spacing1,Dp.spacing1,df.uiTextS,Dp.radiusMedium,Dp.white,Dp.gray600,df.uiTextS,Dp.gray200,Dp.gray50,Dp.gray800,Dp.gray200a,Dp.white,Dp.gray50,Dp.gray800,Dp.gray25,Dp.gray800,Dp.blue500,Dp.white,Dp.blue200,Dp.blue500,Dp.white,Dp.blue500,Dp.white,Dp.blue600,Dp.white,Dp.gray200));const Sm=ql.div.withConfig({displayName:"InputWrapper",componentId:"sc-11co88f-64"})([""," display:flex;align-items:center;box-sizing:border-box;width:100%;height:var(--ds-input-height);padding:0 var(--ds-input-side-padding);border:1px solid ",";border-radius:",";background:",";&:hover{border-color:",";box-shadow:",";}&:focus-within{border-color:",";box-shadow:0 0 0 3px ",";}",";",";"],(e=>e.isSmall?Tl(["--ds-input-height:32px;--ds-input-side-padding:",";--ds-input-icons-gap:",";"],Dp.spacing4,Dp.spacing2):Tl(["--ds-input-height:40px;--ds-input-side-padding:",";--ds-input-icons-gap:",";"],Dp.spacing5,Dp.spacing3)),(e=>e.isInvalid?Dp.red500:Dp.gray100),Dp.radiusMedium,Dp.gray10,(e=>e.isInvalid?Dp.red600:Dp.gray200),Dp.elevation1,(e=>e.isInvalid?Dp.red500:Dp.gray300),Dp.gray100,(e=>e.isDisabled&&Tl(["border-color:",";background:",";color:",";cursor:not-allowed;&:hover{border-color:",";box-shadow:none;}"],Dp.gray100,Dp.gray25,Dp.gray600,Dp.gray100)),(e=>"clean"===e.variant&&Tl(["border-color:transparent;box-shadow:none;&:hover{border-color:transparent;background:",";box-shadow:none;}&:focus-within{border-color:transparent;background:",";box-shadow:none;}"],Dp.gray25a,Dp.gray50a))),_m=ql.input.withConfig({displayName:"InputStyled",componentId:"sc-11co88f-65"})(["&&&{flex:1;min-width:0;height:100%;margin:0;padding:0;border:0;background:transparent;color:",";box-shadow:none;outline:none;font-family:",";"," &::-webkit-inner-spin-button,&::-webkit-outer-spin-button{display:none;margin:0;appearance:none;}&[type='number']{appearance:textfield;}&::placeholder{color:",";}&:disabled{color:",";cursor:not-allowed;&::placeholder{color:",";}}}"],Dp.colorText,Dp.brandFontStackBase,df.uiTextM,Dp.gray400,Dp.gray600,Dp.gray400),Im=ql.div.withConfig({displayName:"LeftItems",componentId:"sc-11co88f-66"})(["display:flex;gap:var(--ds-input-icons-gap);align-items:center;margin-right:var(--ds-input-icons-gap);"]),Bm=ql.div.withConfig({displayName:"IconLeftContainer",componentId:"sc-11co88f-67"})(["flex:none;margin-left:calc("," * -1);color:",";"],Dp.spacing2,Dp.gray600),Tm=ql.div.withConfig({displayName:"PrefixContainer",componentId:"sc-11co88f-68"})(["color:",";"],(e=>e.isDisabled?Dp.gray400:Dp.gray600)),Nm=ql.div.withConfig({displayName:"RightItems",componentId:"sc-11co88f-69"})(["display:flex;flex:none;gap:var(--ds-input-icons-gap);align-items:center;margin-right:calc("," * -1);margin-left:var(--ds-input-icons-gap);"],Dp.spacing2),zm=ql.div.withConfig({displayName:"SuffixContainer",componentId:"sc-11co88f-70"})(["color:",";&:last-child{margin-right:",";}"],(e=>e.isDisabled?Dp.gray400:Dp.gray600),Dp.spacing2),Dm=ql.div.withConfig({displayName:"IconRightContainer",componentId:"sc-11co88f-71"})(["display:grid;flex:none;align-items:center;color:",";"],Dp.gray600),Pm=ql.button.withConfig({displayName:"ClearButton",componentId:"sc-11co88f-72"})(["flex:none;padding:0;border:none;background:transparent;color:",";cursor:pointer;&:hover,&:focus{color:",";outline:none;}&:active{color:",";}"],Dp.gray200a,Dp.gray300a,Dp.gray400a);function Om({icon:e,onClick:n,isTooltipShown:r=!1,label:o,isDisabled:i=!1,...a}){const{isFocusVisible:c,focusProps:l}=Es();return r?t.createElement(Sf,{content:o,isOpen:!!c||void 0},(r=>t.createElement(Am,{...a,...r,...l,onClick:n,disabled:i,type:"button","aria-label":o,isFocusVisible:c},e))):t.createElement(Am,{...a,...l,onClick:n,disabled:i,type:"button","aria-label":o,isFocusVisible:c},e)}const Am=ql.button.withConfig({displayName:"InteractiveIconWrapper",componentId:"sc-11co88f-73"})(["width:24px;height:24px;padding:0;border:none;background:transparent;color:",";cursor:pointer;&:hover,&:active{color:",";}&:disabled{color:",";cursor:not-allowed;}",""],Dp.gray600,Dp.gray800,Dp.gray200,(e=>e.isFocusVisible&&Tl(["border-radius:2px;color:",";box-shadow:0 0 0 2px ",";outline:none;"],Dp.gray800,Dp.gray200))),Rm=d((({hasClearButton:e=!1,icon:n,iconRight:o,id:i,name:a,isDisabled:l=!1,isReadOnly:s=!1,isInvalid:u=!1,isSmall:d=!1,onBlur:p,onChange:f,onFocus:m,onKeyDown:h,placeholder:g,type:v="text",value:y,variant:b="outlined","aria-label":w,"aria-labelledby":x,"aria-describedby":E,inputRef:C,maxLength:k,prefix:S,suffix:_,...I},B)=>{const[T,N]=r(!1),z=c(null),D=C||z,P=e&&y.length>0&&"number"!==v&&"password"!==v,O="password"===v?T?"text":"password":v;function A(){var e;null==D||null===(e=D.current)||void 0===e||e.focus()}const R=Boolean(n||S),F="password"===v,L=Boolean(!F&&(P||o)),M=Boolean(L||F||_);return t.createElement(Sm,{...I,isDisabled:l,isInvalid:u,isSmall:d,onClick:A,ref:B,variant:b},R&&t.createElement(Im,null,n&&t.createElement(Bm,null,n),S&&t.createElement(Tm,{isDisabled:l},S)),t.createElement(_m,{autoComplete:"off",autoCorrect:"off",disabled:l,isDisabled:l,readOnly:s,onBlur:p,onChange:function(e){const t=e.currentTarget.value;null==f||f(t)},onFocus:m,onKeyDown:h,placeholder:g,ref:D,spellCheck:!1,type:O,value:y,"aria-label":w,"aria-labelledby":x,"aria-describedby":E,id:i,name:a,maxLength:k}),M&&t.createElement(Nm,null,_&&t.createElement(zm,{isDisabled:l},_),F&&t.createElement(Om,{"data-testid":"ds-input-password-visibility-button",onClick:()=>(N((e=>!e)),void A()),label:T?"Hide password":"Show password",icon:T?t.createElement($s,null):t.createElement(Vs,null),isTooltipShown:!0}),P&&t.createElement(Pm,{"data-testid":"ds-input-clear-button",onClick:function(){null==f||f(""),A()},type:"button"},t.createElement(Cu,null)),o&&t.createElement(Dm,null,o)))}));function Fm({direction:e="horizontal",...n}){return"horizontal"===e?t.createElement(Lm,{...n}):t.createElement(Mm,{role:"separator",...n})}const Lm=ql.hr.withConfig({displayName:"HorizontalDivider",componentId:"sc-11co88f-74"})(["box-sizing:content-box;height:1px;margin:0;padding:"," 0;border:none;background:",";background-clip:content-box;"],Dp.spacing3,Dp.componentDividerColor),Mm=ql.div.withConfig({displayName:"VerticalDivider",componentId:"sc-11co88f-75"})(["box-sizing:content-box;width:1px;margin:0;padding:0 ",";background:",";background-clip:content-box;"],Dp.spacing2,Dp.componentDividerColor),jm=ql.div.withConfig({displayName:"ArrowStyled",componentId:"sc-11co88f-76"})(["margin-right:calc("," * -1);margin-left:calc("," * -1);"],Dp.spacing2,Dp.spacing2),Hm=n(null);function Um(){const e=i(Hm);if(!e)throw new Error("Dropdown compound components cannot be rendered outside the Dropdown component");return e}function Vm(...e){return t=>{for(const n of e)n&&("function"==typeof n?n(t):n.current=t)}}const $m=n(void 0),Wm=d((({children:e,minWidth:n,...r},o)=>{const l=kf("dropdown"),s=c(null),{dispatch:u}=Um(),d=i($m);return a((()=>()=>{u({type:"purge-menu-items",payload:d})}),[e,u,d]),t.createElement(Gm,{minWidth:n,role:"menu",ref:Vm(o,s),zIndex:l,...r},e)})),Gm=ql.div.withConfig({displayName:"ContainerStyled",componentId:"sc-11co88f-77"})(["z-index:",";overflow-y:auto;box-sizing:border-box;min-width:",";max-width:336px;max-height:calc(36px * 9.5 + ",");padding:"," 0;border-radius:",";background:",";color:",";box-shadow:",",",";&:empty{display:none;}"],(e=>e.zIndex),(e=>e.minWidth?e.minWidth:"224px"),Dp.spacing3,Dp.spacing3,Dp.radiusBase,Dp.gray10,Dp.colorText,Dp.elevationStatic,Dp.elevation2);function qm({children:e,isChecked:n,isDisabled:r,inputProps:o,onChange:i=(()=>{}),...a}){const{isFocusVisible:c,focusProps:l}=Es();return t.createElement(Ym,{isDisabled:r,className:"ds-switch__pointer-events-wrapper",...a},e&&t.createElement(Km,null,e),t.createElement(Xm,null,t.createElement(Zm,null,t.createElement("input",{role:"switch",type:"checkbox",disabled:r,onChange:i,checked:n,"aria-checked":n,...l,...o}),t.createElement(Jm,{"aria-hidden":"true",isDisabled:r,isFocusVisible:c}))))}qm.pointerEventsClassname="ds-switch__pointer-events-wrapper";const Ym=ql.label.withConfig({displayName:"SwitchStyled",componentId:"sc-11co88f-78"})([""," display:flex;align-items:baseline;margin:0;padding:"," 0;color:",";cursor:",";user-select:none;"],df.uiTextM,Dp.spacing1,Dp.gray800,(e=>!e.isDisabled&&"pointer")),Km=ql.span.withConfig({displayName:"Label2",componentId:"sc-11co88f-79"})(["align-self:center;margin-right:",";"],Dp.spacing4),Xm=ql.span.withConfig({displayName:"ToggleAlignment",componentId:"sc-11co88f-80"})(["margin-left:auto;&::before{content:'\\200B';display:inline-block;vertical-align:middle;}"]),Zm=ql.span.withConfig({displayName:"Toggle",componentId:"sc-11co88f-81"})(["position:relative;display:inline-block;vertical-align:middle;width:36px;height:22px;input{position:absolute;opacity:0;}"]),Jm=ql.span.withConfig({displayName:"Indicator2",componentId:"sc-11co88f-82"})(["position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box;width:100%;height:100%;border-radius:",";background:",";cursor:",";transition:0.2s;&::before{content:'';position:absolute;right:calc(100% - 20px);bottom:2px;left:2px;height:18px;border-radius:50%;background-color:",";box-shadow:",";transition:0.2s;}"," input:checked + &{background-color:",";opacity:",";&::before{right:2px;left:calc(100% - 20px);background-color:",";}}"," ",":hover &,",":focus-visible &{background-color:",";}",":hover input:checked + &,",":focus-visible input:checked + &{background-color:",";}",""],Dp.radiusPill,(e=>e.isDisabled?Dp.gray100:Dp.gray75),(e=>!e.isDisabled&&"pointer"),(e=>e.isDisabled?Dp.gray50:Dp.gray10),Dp.elevation2,Zm,(e=>e.isDisabled?Dp.gray400:Dp.blue500),(e=>e.isDisabled?"0.5":"1"),(e=>e.isDisabled?Dp.gray100:Dp.gray10),(e=>!e.isDisabled&&Tl(["",":active input + &::before{right:calc(100% - 24px);left:2px;border-radius:9px;}",":active input:checked + &::before{right:2px;left:calc(100% - 24px);}"],".ds-switch__pointer-events-wrapper",".ds-switch__pointer-events-wrapper")),".ds-switch__pointer-events-wrapper",".ds-switch__pointer-events-wrapper",Dp.gray100,".ds-switch__pointer-events-wrapper",".ds-switch__pointer-events-wrapper",(e=>e.isDisabled?Dp.gray400:Dp.blue600),(e=>e.isFocusVisible&&Tl([""," input + &{background-color:",";&::after{content:'';position:absolute;top:-3px;right:-3px;bottom:-3px;left:-3px;border:2px solid ",";border-radius:100px;}}"," input:checked + &::after{border-color:",";}"],Zm,Dp.gray100,Dp.gray200,Zm,Dp.blue500))),Qm=ql.div.withConfig({displayName:"ItemWrapper1",componentId:"sc-11co88f-83"})(["position:relative;"]),eh=ql.button.withConfig({displayName:"ItemStyled1",componentId:"sc-11co88f-84"})([""," display:flex;align-items:center;box-sizing:border-box;width:100%;height:36px;margin:0;padding:0 ",";border:none;background:none;color:",";outline:none;font-family:",";cursor:pointer;"," "," &:hover{background:",";color:",";}&:active{background:",";color:",";}&:disabled{background:none;color:",";cursor:default;}"],df.uiTextS,Dp.spacing5,(e=>e.isChecked?Dp.gray800:Dp.gray600),Dp.brandFontStackBase,(e=>e.isSubmenuOpen&&Tl(["background:",";color:",";"],Dp.gray25,Dp.gray800)),(e=>e.isHighlighted&&Tl(["background:",";color:",";"],Dp.gray50,Dp.gray800)),Dp.gray25,Dp.gray800,Dp.gray50,Dp.gray800,Dp.gray400),th=ql.span.withConfig({displayName:"CheckboxContainer1",componentId:"sc-11co88f-85"})(["display:flex;flex:none;justify-content:center;align-items:center;width:24px;height:24px;margin-right:",";"],Dp.spacing3),nh=ql.span.withConfig({displayName:"Icon2",componentId:"sc-11co88f-86"})(["display:flex;flex:none;justify-content:center;align-items:center;width:24px;height:24px;margin-right:",";"],Dp.spacing3),rh=ql.span.withConfig({displayName:"Label1",componentId:"sc-11co88f-87"})(["flex:1;overflow:hidden;min-width:0;text-align:left;text-overflow:ellipsis;white-space:nowrap;"]),oh=ql.span.withConfig({displayName:"RightContainer",componentId:"sc-11co88f-88"})(["flex:none;margin:0 ",";&:last-child{margin-right:calc("," * -1);}"],Dp.spacing3,Dp.spacing2),ih=ql.span.withConfig({displayName:"SubmenuIconContainer",componentId:"sc-11co88f-89"})(["flex:none;margin-right:calc("," * -1);margin-left:",";color:",";",":hover,",":active{color:",";}"],Dp.spacing3,Dp.spacing3,(e=>e.isActive?Dp.gray400:Dp.gray200),eh,eh,Dp.gray400),ah=ql(Wm).withConfig({displayName:"SubMenuContainer",componentId:"sc-11co88f-90"})(["margin-top:calc("," * -1);"],Dp.spacing3),ch=ql.div.withConfig({displayName:"SectionTitleStyled",componentId:"sc-11co88f-91"})([""," overflow:hidden;padding:"," "," ",";color:",";text-overflow:ellipsis;white-space:nowrap;"],df.uiTextS,Dp.spacing4,Dp.spacing5,Dp.spacing3,Dp.gray800);function lh(e){return{"bottom-center":{placement:"bottom-center",possiblePlacements:["bottom-center","top-center"]},"bottom-left":{placement:"bottom-start",preferX:"left",preferY:"bottom",possiblePlacements:["bottom-start","top-start"]},"bottom-right":{placement:"bottom-end",preferX:"right",preferY:"bottom",possiblePlacements:["bottom-end","top-end"]},bottom:{placement:"bottom-start",preferX:"left",preferY:"bottom",possiblePlacements:["bottom-start","top-start"]},"top-left":{placement:"top-start",preferX:"left",preferY:"top",possiblePlacements:["top-start","bottom-start"]},"top-right":{placement:"top-end",preferX:"right",preferY:"top",possiblePlacements:["top-end","bottom-end"]},"right-center":{placement:"right-center",possiblePlacements:["right-center"]},"left-center":{placement:"left-center",possiblePlacements:["left-center"]}}[e]}const sh={isOpen:!1,isOpenedWithKeyboard:!1,items:[],highlightedItemId:"",hasSearch:!1,keepHighlight:!1};function uh(e,t){if("open"===t.type)return{...e,isOpen:!0};if("close"===t.type)return{...sh};if("toggle"===t.type)return{...sh,isOpen:!e.isOpen};if("toggle-from-keyboard"===t.type)return{...sh,isOpen:!e.isOpen,isOpenedWithKeyboard:!e.isOpen};if("highlight-current-item"===t.type){const t=e.items.find((e=>e.isSelected));return e.hasSearch&&t?{...e,highlightedItemId:t.id}:e.isOpenedWithKeyboard&&e.items.length?{...e,highlightedItemId:e.items[0].id}:e}if("highlight-item"===t.type)return{...e,highlightedItemId:t.payload,keepHighlight:!0};if("highlight-previous"===t.type){var n;if(0===e.items.length)return e;const t=null===(n=e.items.find((t=>t.id===e.highlightedItemId)))||void 0===n?void 0:n.parentId,r=e.items.filter((e=>e.parentId===t&&!e.isDisabled)),o=r.findIndex((t=>t.id===e.highlightedItemId)),i=0===o,a=r.length-1,c=-1===o||i?r[a].id:r[o-1].id;return{...e,highlightedItemId:c}}if("highlight-next"===t.type){var r;if(0===e.items.length)return e;const t=null===(r=e.items.find((t=>t.id===e.highlightedItemId)))||void 0===r?void 0:r.parentId,n=e.items.filter((e=>e.parentId===t&&!e.isDisabled)),o=n.findIndex((t=>t.id===e.highlightedItemId)),i=o===n.length-1,a=-1===o||i?n[0].id:n[o+1].id;return{...e,highlightedItemId:a}}if("highlight-submenu"===t.type){const t=e.highlightedItemId,n=e.items.find((e=>e.parentId===t));return{...e,highlightedItemId:n.id}}if("add-item"===t.type){const n=t.payload;return e.items.find((e=>e.id===n.id))?e:{...e,items:[...e.items,n]}}if("purge-menu-items"===t.type){const n=t.payload,r=e.items.filter((e=>e.parentId!==n));return{...e,items:r,highlightedItemId:e.keepHighlight?e.highlightedItemId:"",keepHighlight:!1}}return"keep-highlight"===t.type?{...e,keepHighlight:!0}:"set-search-presence"===t.type?{...e,hasSearch:!0}:void function(e,t){throw new Error("Unexpected action: "+t)}(0,t)}const dh=ql.span.withConfig({displayName:"Text2",componentId:"sc-11co88f-92"})(["width:100%;min-width:0;text-align:left;"]),ph=ql.div.withConfig({displayName:"Container4",componentId:"sc-11co88f-93"})(["--container-top-padding-compensation:calc("," * -1);position:sticky;top:var(--container-top-padding-compensation);z-index:1;box-sizing:content-box;height:40px;margin-top:var(--container-top-padding-compensation);padding:",";background:linear-gradient(180deg,#fff 22.4%,rgb(255 255 255 / 0) 100%);"],Dp.spacing3,Dp.spacing4),fh=ql.div.withConfig({displayName:"Inner",componentId:"sc-11co88f-94"})(["position:absolute;top:",";right:",";left:",";"],Dp.spacing4,Dp.spacing4,Dp.spacing4),mh=ql.div.withConfig({displayName:"TextStyled",componentId:"sc-11co88f-95"})([""," padding:"," ",";color:",";"],(e=>"item"===e.fontSize?df.uiTextS:df.uiTextM),Dp.spacing3,Dp.spacing5,Dp.gray400);const hh=ql.div.withConfig({displayName:"ConcealedActionStyled",componentId:"sc-11co88f-96"})(["width:",";opacity:",";&:focus-within{width:auto;opacity:1;}"],(e=>e.isVisible?"auto":"var(--list-item-concealead-action-width, 0)"),(e=>e.isVisible?"1":"var(--list-item-concealead-action-opacity, 0)")),gh=ql.div.withConfig({displayName:"Header1",componentId:"sc-11co88f-97"})(["display:flex;justify-content:space-between;align-items:center;padding:"," 0 ",";"],Dp.spacing3,Dp.spacing2),vh="ds-thumbnail__pointer-events-wrapper",yh=ql.div.withConfig({displayName:"OverlayStyled",componentId:"sc-11co88f-98"})(["position:absolute;top:0;left:0;display:grid;place-items:center;width:100%;height:100%;border-radius:var(--ds-thumbnail-border-radius);background:",";color:",";-webkit-mask-image:var(--ds-thumbnail-indicator-cutoff);",""],Dp.gray200a,Dp.gray10,(e=>e.isConcealed&&Tl(["opacity:0;",":hover &,",":focus-visible &{opacity:1;}"],"."+vh,"."+vh))),bh=t.createContext({indicator:"none",setIndicator:()=>null}),wh={square:{state:{l:{radius:8,offset:[4,4]},m:{radius:8,offset:[4,4]},s:{radius:8,offset:[4,4]},xs:{radius:8,offset:[7,7]}},status:{l:{radius:5,offset:[1,1]},m:{radius:5,offset:[1,1]},s:{radius:5,offset:[1,1]},xs:{radius:3,offset:[1,1]}}},circle:{state:{l:{radius:8,offset:[0,0]},m:{radius:8,offset:[2,2]},s:{radius:8,offset:[4,4]},xs:{radius:8,offset:[9,5]}},status:{l:{radius:5,offset:[-5,-5]},m:{radius:5,offset:[-1,-1]},s:{radius:5,offset:[1,1]},xs:{radius:3,offset:[-1,-1]}}}},xh=ql.svg.withConfig({displayName:"SvgIcon",componentId:"sc-11co88f-99"})(["position:absolute;right:calc(var(--ds-thumbnail-indicator-offset-x) * -1);bottom:calc(var(--ds-thumbnail-indicator-offset-y) * -1);overflow:visible;width:calc(var(--ds-thumbnail-indicator-radius) * 2);height:calc(var(--ds-thumbnail-indicator-radius) * 2);"]),Eh={draft:function(){return t.createElement(xh,{viewBox:"0 0 24 24","aria-hidden":"true",fill:Dp.gray400},t.createElement("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}),t.createElement("path",{d:"M 7.5 10.5 C 6.671875 10.5 6 11.171875 6 12 C 6 12.828125 6.671875 13.5 7.5 13.5 C 8.328125 13.5 9 12.828125 9 12 C 9 11.171875 8.328125 10.5 7.5 10.5 Z M 10.5 12 C 10.5 11.171875 11.171875 10.5 12 10.5 C 12.828125 10.5 13.5 11.171875 13.5 12 C 13.5 12.828125 12.828125 13.5 12 13.5 C 11.171875 13.5 10.5 12.828125 10.5 12 Z M 15 12 C 15 11.171875 15.671875 10.5 16.5 10.5 C 17.328125 10.5 18 11.171875 18 12 C 18 12.828125 17.328125 13.5 16.5 13.5 C 15.671875 13.5 15 12.828125 15 12 Z M 15 12 ",fill:"white"}))},error:function(){return t.createElement(xh,{viewBox:"0 0 24 24","aria-hidden":"true",fill:Dp.red400},t.createElement("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}),t.createElement("path",{d:"M 13.5 4.5 L 10.5 4.5 L 10.5 13.5 L 13.5 13.5 Z M 13.5 4.5 ",fill:"white"}),t.createElement("path",{d:"M 13.5 16.5 L 10.5 16.5 L 10.5 19.5 L 13.5 19.5 Z M 13.5 16.5 ",fill:"white"}))},loading:function(){return t.createElement(xh,{viewBox:"0 0 14 14","aria-hidden":"true",fill:Dp.gray400},t.createElement(kh,{cx:"7",cy:"7",r:"5",fill:"transparent",strokeWidth:"2"}))},negative:function(){return t.createElement(xh,{viewBox:"0 0 24 24","aria-hidden":"true",fill:Dp.red400},t.createElement("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}),t.createElement("path",{d:"M 17.304688 6.695312 C 16.71875 6.109375 15.769531 6.109375 15.183594 6.695312 L 12 9.878906 L 8.816406 6.695312 C 8.230469 6.109375 7.28125 6.109375 6.695312 6.695312 C 6.109375 7.28125 6.109375 8.230469 6.695312 8.816406 L 9.878906 12 L 6.695312 15.183594 C 6.109375 15.769531 6.109375 16.71875 6.695312 17.304688 C 7.28125 17.890625 8.230469 17.890625 8.816406 17.304688 L 12 14.121094 L 15.183594 17.304688 C 15.769531 17.890625 16.71875 17.890625 17.304688 17.304688 C 17.890625 16.71875 17.890625 15.769531 17.304688 15.183594 L 14.121094 12 L 17.304688 8.816406 C 17.890625 8.230469 17.890625 7.28125 17.304688 6.695312 Z M 17.304688 6.695312",fill:"white"}))},positive:function(){return t.createElement(xh,{viewBox:"0 0 24 24","aria-hidden":"true",fill:Dp.teal500},t.createElement("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}),t.createElement("path",{d:"m5.69215,11.43763c-0.58607,0.58607 -0.58607,1.53629 0,2.12236l3.18355,3.18363c0.21978,0.21971 0.49077,0.35703 0.77456,0.41195c0.12714,0.02461 0.25685,0.03272 0.38568,0.02431c0.35044,-0.02311 0.69432,-0.16853 0.96216,-0.43627l7.42831,-7.42836c0.58604,-0.58608 0.58604,-1.53629 0,-2.12238c-0.58604,-0.58607 -1.53631,-0.58607 -2.12235,0l-6.36715,6.36712l-2.12238,-2.12238c-0.58608,-0.58608 -1.53629,-0.58608 -2.12238,0z",fill:"white"}))}},Ch=Gl(["0%{transform:rotate(0deg);stroke-dashoffset:6.6;}50%{transform:rotate(720deg);stroke-dashoffset:31.4;}100%{transform:rotate(1080deg);stroke-dashoffset:6.6;}"]),kh=ql.circle.withConfig({displayName:"SvgSpinner",componentId:"sc-11co88f-100"})(["--spinner-radius:10;--spinner-circumference:calc(2 * var(--spinner-radius) * 3.1415927);stroke:",";transform-origin:center;animation:"," 2s linear infinite;stroke-dasharray:31.4;stroke-linecap:round;"],(e=>e.color||Dp.gray400),Ch),Sh={online:function(){return t.createElement(xh,{viewBox:"0 0 24 24","aria-hidden":"true",fill:Dp.teal500},t.createElement("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}))},offline:function(){return t.createElement(xh,{viewBox:"0 0 24 24","aria-hidden":"true",fill:Dp.gray400},t.createElement("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}))},inactive:function(){return t.createElement(xh,{viewBox:"0 0 24 24","aria-hidden":"true",fill:"transparent"},t.createElement("circle",{cx:"12",cy:"12",r:"9",stroke:Dp.gray400,strokeWidth:"4"}))}};function _h({size:e="m",shape:n="square",variant:i="clean",icon:a,imageUrl:c,backgroundColor:l,iconColor:s,children:u,...d}){const p="content"===i,f="clean"===i;let m;m=l?Dp[l]||l:f?Dp.gray50a:l||c?"transparent":Dp.white;const h=f?Dp[s]||s||Dp.gray600:void 0,[g,v]=r("none"),y=o((()=>({indicator:g,setIndicator:v})),[g]);return t.createElement(bh.Provider,{value:y},t.createElement(Ih,{size:e,shape:n,hasCheckers:p,indicator:g,variant:i,className:vh,...d},t.createElement(Th,{iconColor:h,backgroundColor:m,imageUrl:c,size:e,"data-testid":"thumbnail-fill",variant:i},a,p&&!l&&!c&&t.createElement(zh,{"data-testid":"thumbnail-no-image-line"})),p&&t.createElement(Nh,{"data-testid":"thumbnail-inner-shadow"}),u))}_h.Overlay=function({children:e,isConcealed:n=!1,isLoading:r=!1,...o}){return t.createElement(yh,{isConcealed:n,...o},r?t.createElement(Wp,null):e)},_h.pointerEventsClassname=vh,_h.Indicator=function({type:e}){const{setIndicator:n}=i(bh),r=Eh[e];return a((()=>(n("state"),()=>n("none"))),[n]),t.createElement(r,null)},_h.Status=function({type:e}){const{setIndicator:n}=i(bh),r=Sh[e];return a((()=>(n("status"),()=>n("none"))),[n]),t.createElement(r,null)};const Ih=ql.div.withConfig({shouldForwardProp:(e,t)=>!["shape"].includes(e)&&t(e)}).withConfig({displayName:"ThumbnailContainer1",componentId:"sc-11co88f-101"})([""," position:relative;flex:none;border-radius:var(--ds-thumbnail-border-radius);"," "," ",""],(e=>Tl(["--ds-thumbnail-border-radius:",";"],(function(){return"circle"===e.shape?Dp.radiusCircle:"preview"===e.variant?"0px":Dp.radiusBase}))),(e=>e.hasCheckers&&Tl(["background:url(\"data:image/svg+xml,%3Csvg width='8' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Crect height='8' width='8' y='0' x='0' fill='%23ffffff'/%3E%3Crect height='4' width='4' y='0' x='0' fill='%23e9ecee'/%3E%3Crect height='4' width='4' y='4' x='4' fill='%23e9ecee'/%3E%3C/svg%3E%0A\");"])),(e=>{const t={xs:"24px",s:"32px",m:"40px",l:"64px"}[e.size];return Tl(["width:",";height:",";"],t,t)}),(e=>{if("none"===e.indicator)return;const{radius:t,offset:n}=wh[e.shape][e.indicator][e.size];return Tl(["--ds-thumbnail-indicator-offset-x:","px;--ds-thumbnail-indicator-offset-y:","px;--ds-thumbnail-indicator-radius:","px;--ds-thumbnail-indicator-cutoff:-webkit-radial-gradient( calc( 100% - ( var(--ds-thumbnail-indicator-radius) - var(--ds-thumbnail-indicator-offset-x) ) ) calc( 100% - ( var(--ds-thumbnail-indicator-radius) - var(--ds-thumbnail-indicator-offset-y) ) ),circle,transparent calc(var(--ds-thumbnail-indicator-radius) + ","px),black 0 );"],n[0],n[1],t,2)})),Bh={xs:Dp.fontSize100,s:Dp.fontSize200,m:Dp.fontSize500,l:Dp.fontSize500},Th=ql.div.withConfig({displayName:"Fill1",componentId:"sc-11co88f-102"})(["display:flex;justify-content:center;align-items:center;width:100%;height:100%;border-radius:var(--ds-thumbnail-border-radius);background:50% 50% no-repeat;background-color:",";background-image:",";background-size:",";color:",";font-weight:600;font-size:",";line-height:1;text-indent:1px;-webkit-mask-image:var(--ds-thumbnail-indicator-cutoff);"],(e=>e.backgroundColor),(e=>e.imageUrl?`url(${e.imageUrl}) `:void 0),(e=>"preview"===e.variant?"contain":"cover"),(e=>e.iconColor),(e=>Bh[e.size])),Nh=ql.div.withConfig({displayName:"InnerShadow",componentId:"sc-11co88f-103"})(["position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border:1px solid ",";border-radius:var(--ds-thumbnail-border-radius);-webkit-mask-image:var(--ds-thumbnail-indicator-cutoff);"],Dp.gray100a),zh=ql.div.withConfig({displayName:"NoImage",componentId:"sc-11co88f-104"})(["width:80%;height:2px;border-radius:2px;background:",";transform:rotate(-45deg);"],Dp.red500),Dh=n({isDragging:!1,dragIndicator:null}),Ph=d((({children:e,subtext:n,thumbnail:r,rightElements:o,onClick:a,isDisabled:c=!1,isSelected:l=!1,checkedVariant:s,isChecked:u=!1,...d},p)=>{const f=qf("list-item-label"),{isFocusVisible:m,focusProps:h}=Es(),g=i(Dh),v=t.useRef(null),y=[tm.pointerEventsClassname,qm.pointerEventsClassname,_h.pointerEventsClassname].join(" "),b="function"==typeof a,w=b&&!c;return t.createElement(Oh,{isDragging:(null==g?void 0:g.isDragging)??!1,isSelected:l,isActive:b,tabIndex:w?0:void 0,onClick:w?a:void 0,onKeyDown:e=>{"function"!=typeof a||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),a())},isDisabled:c,className:y,isFocusVisible:m,ref:p,...d,...h},"checkbox"===s&&t.createElement(Ah,{onClick:e=>{e.stopPropagation()},onKeyDown:e=>{e.stopPropagation()}},t.createElement(tm,{isChecked:u,isDisabled:c,"aria-labelledby":f,onChange:a})),r&&t.createElement(Rh,{isDisabled:c},r),t.createElement(Fh,{id:f},t.createElement(Df,null,e),n?t.createElement(Lh,{isDisabled:c},t.createElement(Df,null,n)):null),(o||(null==g?void 0:g.dragIndicator))&&t.createElement(Mh,{ref:v,onClick:e=>{var t;(null==v||null===(t=v.current)||void 0===t?void 0:t.querySelectorAll("a, button").length)&&e.stopPropagation()},onKeyDown:e=>{e.stopPropagation()}},t.createElement(pf,{alignItems:"center",gap:"3"},o,null==g?void 0:g.dragIndicator)),"switch"===s&&t.createElement(Mh,{onClick:e=>{e.stopPropagation()},onKeyDown:e=>{e.stopPropagation()}},t.createElement(qm,{isChecked:u,isDisabled:c,"aria-labelledby":f,onChange:a})))})),Oh=ql.div.withConfig({displayName:"ItemStyled",componentId:"sc-11co88f-105"})(["--list-item-right-elements-color:",";display:flex;align-items:center;margin-right:calc("," * -1);margin-left:calc("," * -1);padding:"," ",";border-radius:var(--ds-list-item-border-radius-override,",");&:hover{--list-item-concealead-action-opacity:1;--list-item-concealead-action-width:auto;}"," "," ",""],Dp.gray200,Dp.spacing4,Dp.spacing4,Dp.spacing3,Dp.spacing4,Dp.radiusLarge,(e=>e.isActive&&Tl(["--list-item-right-elements-color:",";outline:none;cursor:pointer;&:hover{--list-item-right-elements-color:",";background:",";}"," &:active{background:",";box-shadow:none;}",""],Dp.gray200,Dp.gray600,Dp.gray25,e.isFocusVisible&&Tl(["--list-item-right-elements-color:",";background:",";&,&:hover{box-shadow:var( --ds-list-item-focus-ring-override,inset 0 0 0 2px ",",inset 0 0 0 4px "," );}"],Dp.gray600,Dp.gray25,Dp.gray50,Dp.gray10),Dp.gray50,e.isDisabled&&Tl(["--list-item-right-elements-color:",";color:",";pointer-events:none;"],Dp.gray200,Dp.gray200))),(e=>e.isSelected&&Tl(["--list-item-right-elements-color:",";&,&:hover{background:",";}"],Dp.gray600,Dp.gray50)),(e=>e.isDragging&&Tl(["--list-item-right-elements-color:",";background:",";box-shadow:",";cursor:grabbing;"],Dp.gray600,Dp.gray25,Dp.elevation4))),Ah=ql.div.withConfig({displayName:"CheckboxContainer",componentId:"sc-11co88f-106"})(["flex:none;margin-right:",";"],Dp.spacing4),Rh=ql.div.withConfig({displayName:"ThumbnailContainer",componentId:"sc-11co88f-107"})(["flex:none;margin-right:",";",""],Dp.spacing4,(e=>e.isDisabled&&"opacity: 50%;")),Fh=ql.div.withConfig({displayName:"Content2",componentId:"sc-11co88f-108"})([""," flex:1;min-width:0;"],df.uiTextM),Lh=ql.div.withConfig({displayName:"Subtext1",componentId:"sc-11co88f-109"})([""," color:",";"],df.uiTextS,(e=>e.isDisabled?Dp.gray200:Dp.gray600)),Mh=ql.div.withConfig({displayName:"RightElements",componentId:"sc-11co88f-110"})(["flex:none;margin-left:",";color:var(--list-item-right-elements-color);"],Dp.spacing4);function jh({children:e,isContained:n=!1,...r}){return t.createElement(Hh,{isContained:n,...r},e)}jh.Group=function({title:e,action:n,children:r,...o}){const i=qf("list-group-header");return t.createElement("div",{...o},t.createElement(gh,null,t.createElement("span",{id:i},e),n),t.createElement("div",{"aria-describedby":i},r))},jh.Item=Ph,jh.Divider=Fm,jh.ConcealedAction=function(e){return t.createElement(hh,{...e})};const Hh=ql.div.withConfig({displayName:"ListStyled",componentId:"sc-11co88f-111"})(["padding:",";"],(e=>e.isContained?`0 ${Dp.spacing5}`:`${Dp.spacing3} 0`)),Uh=ql.div.withConfig({displayName:"ItemWrapper",componentId:"sc-11co88f-112"})(["--ds-list-item-border-radius-override:0;--ds-list-item-focus-ring-override:none;padding:0 ",";"],Dp.spacing4);function Vh(e){return!!e&&e.getRootNode()instanceof ShadowRoot}function $h(e){if(!e||!Vh(e))return;const t=null==e?void 0:e.getRootNode();return Array.from(t.children).find((e=>"STYLE"!==e.tagName))}function Wh({children:e,trigger:n,position:r="bottom-left",isClosedOnScroll:i=!1,isKeepingFocusOnTrigger:l=!1,containerRef:s,onOpen:d,onClose:p,minWidth:m,...h}){const[g,v]=f(uh,sh),y=c(!0),b=c(),w=qf("dropdown-menu");var x,E;a((()=>{y.current?y.current=!1:g.isOpen?(v({type:"highlight-current-item"}),null==d||d()):null==p||p()}),[g.isOpen]),x=g.highlightedItemId,E=g.hasSearch,a((()=>{if(!x)return;const e=document.querySelector("#"+x);if(e){const t=e.closest('[role="menu"');t&&(function(e,t,n){const{top:r,bottom:o,height:i}=e.getBoundingClientRect(),a=t.getBoundingClientRect(),c=n?64:0;return!(r>=a.bottom-i||o<=a.top+c+i)}(e,t,E)||e.scrollIntoView(!1))}}),[x,E]);const C=u((()=>{var e;g.isOpen&&(v({type:"close"}),null==b||null===(e=b.current)||void 0===e||e.focus())}),[g.isOpen]);a((()=>{function e(){C()}if(i&&g.isOpen)return document.addEventListener("scroll",e),()=>{document.removeEventListener("scroll",e)}}),[i,C,g.isOpen]),km("Tab",(()=>{g.isOpen&&C()})),km("Escape",(()=>{g.isOpen&&C()})),km("Enter",(e=>{var t;g.isOpen&&g.highlightedItemId&&(null===(t=document.querySelector("#"+g.highlightedItemId))||void 0===t||t.click(),e.preventDefault())})),km("ArrowDown",(e=>{g.isOpen&&(v({type:"highlight-next"}),e.preventDefault())})),km("ArrowUp",(e=>{g.isOpen&&(v({type:"highlight-previous"}),e.preventDefault())}));const k=o((()=>({dispatch:v,close:C,highlightedItemId:g.highlightedItemId,hasSearch:g.hasSearch,isKeepingFocusOnTrigger:l,menuId:w})),[C,l,g.hasSearch,g.highlightedItemId,w]),{renderLayer:S,triggerProps:{ref:_},layerProps:I,triggerBounds:B}=gd({isOpen:g.isOpen,onOutsideClick:Vh(b.current)?void 0:()=>v({type:"close"}),onDisappear:e=>{"full"===e&&v({type:"close"})},triggerOffset:4,containerOffset:16,auto:!0,container:$h(b.current),...lh(r)}),T="bottom"===r?{width:null==B?void 0:B.width,minWidth:"initial",maxWidth:"initial"}:{};return t.createElement(Hm.Provider,{value:k},t.createElement("div",{...h},n({isOpen:g.isOpen,onClick:()=>{v({type:"toggle"})},"aria-haspopup":!0,"aria-expanded":g.isOpen,"aria-controls":w,onKeyDown:function(e){" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),v({type:"toggle-from-keyboard"}))},ref:Wu(_,b)},{open:()=>{v({type:"open"})},close:()=>{v({type:"close"})}}),g.isOpen&&S(t.createElement(Wm,{id:w,...I,ref:Wu(I.ref,s),style:{...I.style,...T},minWidth:m},e))))}function Gh({attr:e,title:n,size:r,children:o,color:a,style:c,...l}){const s=i(ks),u=r||s.size,d={...s.attr,...e};return t.createElement("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...d,...l,style:{color:a,...s.style,...c},height:u,width:u,xmlns:"http://www.w3.org/2000/svg"},n&&t.createElement("title",null,n),o)}function qh({label:e,labelSecondaryText:n,helperText:r,helperTextIcon:o,id:i,name:a,isInvalid:c,hasClearButton:l,icon:s,iconRight:u,inputRef:d,isDisabled:p,isReadOnly:f,isSmall:m,maxLength:h,onBlur:g,onChange:v,onFocus:y,onKeyDown:b,placeholder:w,type:x,value:E,variant:C,prefix:k,suffix:S,..._}){const I=qf("input"),B=i||I,T=qf("helper-text");return t.createElement(ym.Group,{..._},t.createElement(ym.Label,{secondaryText:n,htmlFor:B},e),t.createElement(Rm,{hasClearButton:l,icon:s,iconRight:u,inputRef:d,isDisabled:p,isReadOnly:f,isInvalid:c,isSmall:m,maxLength:h,onBlur:g,onChange:v,onFocus:y,onKeyDown:b,placeholder:w,type:x,value:E,variant:C,id:B,name:a,"aria-describedby":r?T:void 0,prefix:k,suffix:S}),r?t.createElement(ym.HelperText,{icon:o,isInvalid:c,id:T},r):null)}Wh.Divider=Fm,Wh.Item=function({children:e,isDisabled:n,icon:l,checkedVariant:s="checkmark",isChecked:u=!1,badge:d,onClick:p,submenu:f,role:m,...h}){const[g,v]=r(!1),[y,b]=r(!1),w=qf("dropdown-item"),x=qf("dropdown-item-label"),E=qf("dropdown-submenu"),C=Boolean(f),{dispatch:k,...S}=Um(),_=S.highlightedItemId===w,I=i($m),{isFocusVisible:B,focusProps:T}=Es(),{hoverProps:N}=function(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:i,isDisabled:l}=e,[s,u]=r(!1),d=c({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;a(ys,[]);let{hoverProps:p,triggerHoverEnd:f}=o((()=>{let e=(e,r)=>{if(d.pointerType=r,l||"touch"===r||d.isHovered||!e.currentTarget.contains(e.target))return;d.isHovered=!0;let o=e.currentTarget;d.target=o,t&&t({type:"hoverstart",target:o,pointerType:r}),n&&n(!0),u(!0)},r=(e,t)=>{if(d.pointerType="",d.target=null,"touch"===t||!d.isHovered)return;d.isHovered=!1;let r=e.currentTarget;i&&i({type:"hoverend",target:r,pointerType:t}),n&&n(!1),u(!1)},o={};return"undefined"!=typeof PointerEvent?(o.onPointerEnter=t=>{ms&&"mouse"===t.pointerType||e(t,t.pointerType)},o.onPointerLeave=e=>{!l&&e.currentTarget.contains(e.target)&&r(e,e.pointerType)}):(o.onTouchStart=()=>{d.ignoreEmulatedMouseEvents=!0},o.onMouseEnter=t=>{d.ignoreEmulatedMouseEvents||ms||e(t,"mouse"),d.ignoreEmulatedMouseEvents=!1},o.onMouseLeave=e=>{!l&&e.currentTarget.contains(e.target)&&r(e,"mouse")}),{hoverProps:o,triggerHoverEnd:r}}),[t,n,i,l,d]);return a((()=>{l&&f({currentTarget:d.target},d.pointerType)}),[l]),{hoverProps:p,isHovered:s}}({onHoverStart:()=>{C&&v(!0)},onHoverEnd:()=>{C&&v(!1)}}),z=g&&C,{triggerProps:D,layerProps:P,renderLayer:O}=gd({isOpen:z,auto:!0,placement:"right-start",possiblePlacements:["right-end","right-start","left-start","left-end"],triggerOffset:-4,onParentClose:()=>{}});a((()=>{k({type:"add-item",payload:{id:w,parentId:I,isDisabled:n,isSelected:"checkmark"===s?u:void 0}})})),a((()=>{y&&k({type:"highlight-submenu"})}),[k,y]),a((()=>{var e;S.hasSearch||S.isKeepingFocusOnTrigger||_&&(null===(e=document.querySelector("#"+w))||void 0===e||e.focus())}),[S.hasSearch,S.isKeepingFocusOnTrigger,w,_]),km("ArrowLeft",(e=>{C&&y&&(k({type:"highlight-item",payload:w}),v(!1),b(!1),e.preventDefault())})),km("ArrowRight",(e=>{_&&C&&(v(!0),b(!0),e.preventDefault())}));const A=function(e){return"checkbox"===e?tm.pointerEventsClassname:"switch"===e?qm.pointerEventsClassname:""}(s),R=function(e,t,n){return e||("checkbox"===t||"switch"===t?"menuitemcheckbox":"checkmark"===t&&n?"menuitemradio":"menuitem")}(m,s,u),F="menuitemcheckbox"===R||"menuitemradio"===R?u:void 0,L=C?{"aria-haspopup":!0,"aria-expanded":g,"aria-controls":E}:{};function M(e){null==p||p(e),C||("menuitemcheckbox"!==R?S.close():k({type:"keep-highlight"}))}return t.createElement($m.Provider,{value:w},t.createElement(Qm,{...N,...D,onClick:e=>e.stopPropagation()},t.createElement(eh,{disabled:n,"aria-disabled":n,isChecked:u,"aria-checked":F,"aria-selected":S.hasSearch||S.isKeepingFocusOnTrigger?_:void 0,role:R,onClick:M,tabIndex:-1,id:w,onKeyDown:function(e){C&&(" "!==e.key&&"Enter"!==e.key||(null==p||p(e),v((e=>{const t=!e;return b(t),t})),e.preventDefault()))},isHighlighted:_||B,isSubmenuOpen:g,className:A,...L,...T,...h},"checkbox"===s&&t.createElement(th,{onClick:e=>e.stopPropagation()},t.createElement(tm,{isChecked:u,isDisabled:n,"aria-labelledby":x,onChange:M})),l&&t.createElement(nh,null,l),t.createElement(rh,{id:x},e),"checkmark"===s&&u&&t.createElement(oh,null,t.createElement(ku,null)),d&&t.createElement(oh,null,d),"switch"===s&&t.createElement(oh,{onClick:e=>e.stopPropagation()},t.createElement(qm,{isChecked:u,isDisabled:n,"aria-labelledby":x,onChange:M})),C&&t.createElement(ih,{isActive:g||B||_},t.createElement(_u,null))),z&&O(t.createElement(ah,{id:E,...P},f))))},Wh.ListItem=function({children:e,isDisabled:n,isChecked:r=!1,onClick:o,role:i="menuitem",rightElements:c,...l}){const s=qf("dropdown-item"),{dispatch:u,...d}=Um(),p=d.highlightedItemId===s;a((()=>{u({type:"add-item",payload:{id:s,parentId:void 0,isDisabled:n,isSelected:r}})})),a((()=>{var e;d.hasSearch||d.isKeepingFocusOnTrigger||p&&(null===(e=document.querySelector("#"+s))||void 0===e||e.focus())}),[d.hasSearch,d.isKeepingFocusOnTrigger,s,p]);const f=r?t.createElement(ku,{color:Dp.gray800}):null;return t.createElement(Uh,{onClick:e=>e.stopPropagation()},t.createElement(jh.Item,{isSelected:p,isDisabled:n,onClick:function(){null==o||o(),d.close()},"aria-disabled":n,"aria-checked":"menuitemradio"===i?r:void 0,"aria-selected":d.hasSearch||d.isKeepingFocusOnTrigger?p:void 0,role:i,rightElements:c?t.createElement(t.Fragment,null,c,f):f,id:s,...l},e))},Wh.SectionTitle=function({children:e,...n}){return t.createElement(ch,{...n},e)},Wh.Arrow=function(e){return t.createElement(jm,{...e},t.createElement(Eu,null))},Wh.SelectButtonText=function({children:e,...n}){return t.createElement(dh,{...n},t.createElement(Df,null,e))},Wh.SearchInput=function({onChange:e,...n}){const r=c(null),{dispatch:o}=Um(),{menuId:i}=Um();return a((()=>{var e;null===(e=r.current)||void 0===e||e.focus()}),[]),a((()=>{o({type:"set-search-presence"})}),[o]),t.createElement(ph,null,t.createElement(fh,null,t.createElement(Rm,{inputRef:r,hasClearButton:!0,icon:t.createElement(js,null),onChange:function(t){var n,r;null===(n=document.querySelector(`#${i}`))||void 0===n||null===(r=n.scrollTo)||void 0===r||r.call(n,{top:0}),e(t)},...n})))},Wh.Text=function({fontSize:e="item",children:n,...r}){return t.createElement(mh,{fontSize:e,...r},n)},ql.div.withConfig({displayName:"EmptyStateStyled",componentId:"sc-11co88f-113"})(["display:grid;grid-template-columns:minmax(10px,472px);justify-content:center;justify-items:center;text-align:center;"]),ql.p.withConfig({displayName:"Image1",componentId:"sc-11co88f-114"})(["display:grid;place-items:center;width:128px;height:128px;margin:0 0 ",";border-radius:",";background:",";color:",";"],Dp.spacing5,Dp.radiusCircle,Dp.gray25,Dp.gray400),ql.h2.withConfig({displayName:"Title3",componentId:"sc-11co88f-115"})([""," margin:0 0 ",";color:",";"],df.headingM,Dp.spacing4,Dp.gray800),ql.p.withConfig({displayName:"Description1",componentId:"sc-11co88f-116"})([""," margin:0;color:",";"],df.paragraphM,Dp.gray600),ql.p.withConfig({displayName:"Actions",componentId:"sc-11co88f-117"})(["display:flex;gap:",";justify-content:center;margin:"," 0 0;"],Dp.spacing4,Dp.spacing6),ql.div.withConfig({displayName:"InlineBannerStyled",componentId:"sc-11co88f-118"})([""," display:flex;align-items:flex-start;padding:"," ",";border-radius:",";background:var(--background-color);"],(e=>"info"===e.variant?Tl(["--background-color:",";--icon-color:",";--link-color:",";--link-color-hover:",";"],Dp.blue500a10,Dp.blue500,Dp.blue600,Dp.blue700):"warning"===e.variant?Tl(["--background-color:",";--icon-color:",";--link-color:",";--link-color-hover:",";"],Dp.yellow500a10,Dp.yellow500,Dp.yellow600,Dp.yellow700):"error"===e.variant?Tl(["--background-color:",";--icon-color:",";--link-color:",";--link-color-hover:",";"],Dp.red500a10,Dp.red500,Dp.red600,Dp.red700):Tl(["--background-color:",";--icon-color:",";--link-color:",";--link-color-hover:",";"],Dp.gray50,Dp.gray500,Dp.blue600,Dp.blue700)),Dp.spacing4,Dp.spacing4,Dp.radiusMedium),ql.div.withConfig({displayName:"IconHolder1",componentId:"sc-11co88f-119"})(["display:flex;width:24px;height:24px;margin-right:",";color:var(--icon-color);"],Dp.spacing3),ql.div.withConfig({displayName:"TitleHolder",componentId:"sc-11co88f-120"})([""," margin-bottom:",";color:",";"],df.uiTextM,Dp.spacing2,Dp.gray1000),ql.div.withConfig({displayName:"DescriptionHolder",componentId:"sc-11co88f-121"})([""," color:",";line-height:",";"],df.uiTextS,Dp.gray800,Dp.layoutSpacing2),ql.div.withConfig({displayName:"LinkHolder",componentId:"sc-11co88f-122"})([""," margin-top:",";a{color:var(--link-color);text-decoration:none;}a:hover{color:var(--link-color-hover);}a:focus-visible{border-radius:2px;box-shadow:0 0 0 2px ",";outline:none;}"],df.uiTextS,Dp.spacing2,Dp.blue500),ql.kbd.withConfig({displayName:"KeyboardBadgeStyled",componentId:"sc-11co88f-123"})([""," display:inline-flex;vertical-align:top;box-sizing:border-box;height:24px;padding:"," ",";border-radius:",";background:",";color:",";box-shadow:inset 0 -1px 0 ",";font-family:",";"],df.uiTextS,Dp.spacing1,Dp.spacing3,Dp.radiusMedium,Dp.gray75,Dp.gray800,Dp.gray200a,Dp.fontStackBase),ql.span.withConfig({displayName:"KeyboardLabelStyled",componentId:"sc-11co88f-124"})(["position:absolute;overflow:hidden;clip:rect(0 0 0 0);width:1px;height:1px;white-space:nowrap;clip-path:inset(50%);"]),ql.div.withConfig({displayName:"IconHolder",componentId:"sc-11co88f-125"})(["display:flex;align-items:center;width:20px;height:20px;margin-right:",";margin-left:calc("," * -1);&:not(:last-child){margin-right:calc("," * -1);}svg{fill:currentColor;}"],Dp.spacing1,Dp.spacing2,Dp.spacing2),ql.div.withConfig({displayName:"StyledItemWrapper",componentId:"sc-11co88f-126"})(["position:relative;user-select:none;"," ",""],(e=>"after"===e.insertPosition&&Tl(["&::after{content:'';position:absolute;bottom:",";z-index:1;width:100%;height:",";background-color:",";}"],e.isDividerShown?"-10px":"0","2px",Dp.blue300)),(e=>"before"===e.insertPosition&&Tl(["&::before{content:'';position:absolute;top:",";z-index:1;width:100%;height:",";background-color:",";}"],e.isDividerShown?"-10px":"0","2px",Dp.blue300))),ql.div.withConfig({displayName:"ShadowItem",componentId:"sc-11co88f-127"})(["position:absolute;top:0;box-sizing:content-box;width:100%;height:100%;margin-right:calc("," * -1);margin-left:calc("," * -1);padding-right:",";padding-left:",";border-radius:",";background-color:",";"],Dp.spacing4,Dp.spacing4,Dp.spacing4,Dp.spacing4,Dp.radiusLarge,Dp.gray50),ql.div.withConfig({displayName:"StyledDragIndicator",componentId:"sc-11co88f-128"})(["cursor:",";"],(e=>e.isDragging?"grabbing":"grab"));const Yh=Wl((e=>Tl(["@keyframes ","{0%{opacity:0;}100%{opacity:1;}}@keyframes ","{0%{opacity:1;}100%{opacity:0;}}@keyframes ","{0%{opacity:0.5;transform:scale(0.95);}100%{opacity:1;transform:scale(1);}}@keyframes ","{0%{opacity:1;transform:scale(1);}100%{opacity:0.5;transform:scale(0.95);}}.",",.","{position:fixed;top:0;right:0;bottom:0;left:0;z-index:",";}.","{background:",";}.","{display:flex;align-items:flex-start;overflow-x:hidden;overflow-y:auto;padding:",";}.","{"," position:relative;display:flex;flex-direction:column;align-items:stretch;box-sizing:border-box;width:520px;margin:auto;border-radius:",";background:",";box-shadow:",";}.","{width:866px;}.","{width:100%;height:100%;min-height:0;}"],"b-modal-overlay-in","b-modal-overlay-out","b-modal-container-in","b-modal-container-out","b-modal__overlay","b-modal__container",e.zIndex,"b-modal__overlay",Dp.gray200a,"b-modal__container",Dp.spacing6,"b-modal__modal",Rp,Dp.radiusLarge,Dp.gray10,Dp.elevation8,"b-modal__modal--medium","b-modal__modal--full-screen"))),Kh=ql.div.withConfig({displayName:"HeaderStyled",componentId:"sc-11co88f-129"})(["display:flex;flex:none;align-items:center;box-sizing:border-box;height:72px;padding:"," ",";",""],Dp.spacing4,Dp.spacing6,(e=>!e.hideCloseIcon&&Tl(["padding-right:calc( "," + 50px + "," );"],Dp.spacing4,Dp.spacing6))),Xh=ql.div.withConfig({displayName:"BackButton",componentId:"sc-11co88f-130"})(["margin-right:",";margin-left:calc("," * -1);"],Dp.spacing4,Dp.spacing4),Zh=ql.div.withConfig({displayName:"ModalThumbnail",componentId:"sc-11co88f-131"})(["margin-right:",";"],Dp.spacing4),Jh=ql.div.withConfig({displayName:"Headings",componentId:"sc-11co88f-132"})(["flex:1;min-width:0;"]),Qh=ql.h2.withConfig({displayName:"Title2",componentId:"sc-11co88f-133"})([""," overflow:hidden;margin:0;color:",";text-overflow:ellipsis;white-space:nowrap;"],df.uiTextL,Dp.colorText),eg=ql.h3.withConfig({displayName:"SecondaryInformation",componentId:"sc-11co88f-134"})([""," overflow:hidden;margin:0;color:",";text-overflow:ellipsis;white-space:nowrap;"],df.uiTextS,Dp.gray500),tg=ql.div.withConfig({displayName:"ContentStyled",componentId:"sc-11co88f-135"})(["flex:1 1 auto;min-height:0;",""],(e=>e.scrollable&&Tl(["position:relative;&::before,&::after{content:'';position:absolute;left:0;display:block;width:100%;height:6px;}&::before{top:0;z-index:1;background:linear-gradient(to bottom,",",transparent);}&::after{bottom:0;background:linear-gradient(to top,",",transparent);}"],Dp.colorShadow,Dp.colorShadow))),ng=ql.div.withConfig({displayName:"ContentInner",componentId:"sc-11co88f-136"})([""," box-sizing:border-box;padding:"," ",";color:",";font-family:",";",""],df.paragraphM,Dp.spacing5,Dp.spacing6,Dp.colorText,Dp.brandFontStackBase,(e=>e.scrollable&&Tl(["position:relative;overflow-x:hidden;overflow-y:auto;height:100%;scroll-behavior:smooth;&::before,&::after{content:'';position:relative;left:0;z-index:1;display:block;height:",";}&::before{margin:calc("," * -1) calc("," * -1) 0;background:linear-gradient( to bottom,",","," 50%,rgb(255 255 255 / 0) );}&::after{margin:0 calc("," * -1) calc("," * -1);background:linear-gradient( to top,",","," 50%,rgb(255 255 255 / 0) );}"],Dp.spacing5,Dp.spacing5,Dp.spacing6,Dp.gray10,Dp.gray10,Dp.spacing6,Dp.spacing5,Dp.gray10,Dp.gray10))),rg=ql.div.withConfig({displayName:"ContentExpander",componentId:"sc-11co88f-137"})(["min-height:100%;"]),og=ql.div.withConfig({displayName:"FooterStyled",componentId:"sc-11co88f-138"})(["display:flex;flex:none;padding:",";"],Dp.spacing6),ig=ql.div.withConfig({displayName:"ActionsRight",componentId:"sc-11co88f-139"})(["margin-left:auto;"]),ag=ql.div.withConfig({displayName:"CloseButton",componentId:"sc-11co88f-140"})(["position:absolute;top:",";right:",";"],Dp.spacing5,Dp.spacing4),cg=t.createContext({size:"small",hideCloseIcon:!1}),lg={small:"",medium:"b-modal__modal--medium",fullscreen:"b-modal__modal--full-screen"};function sg({isOpen:e,onClose:n,size:i="small",isCloseButtonHidden:c=!1,closeButtonTitle:l="Close",isClosedOnOverlayClick:s=!1,onCloseAnimationEnd:u,children:d,container:p}){const f={root:"b-modal",overlay:"b-modal__overlay",modalContainer:"b-modal__container",modal:`b-modal__modal ${lg[i]}`,modalAnimationIn:"b-modal-container-in",modalAnimationOut:"b-modal-container-out",overlayAnimationIn:"b-modal-overlay-in",overlayAnimationOut:"b-modal-overlay-out"},m=!c,h=kf("modal"),g=o((()=>({size:i,hideCloseIcon:c})),[i,c]),[v,y]=r(!1);return a((()=>{e&&y(!0)}),[e]),t.createElement(cg.Provider,{value:g},t.createElement(Jd,{open:e,onClose:n,classNames:f,animationDuration:200,showCloseIcon:!1,closeOnEsc:m,closeOnOverlayClick:s,container:p,onAnimationEnd:()=>{e||(y(!1),null==u||u())}},e||v?d:null,m&&t.createElement(ag,null,t.createElement(ef,{variant:"clean",icon:t.createElement(Iu,null),"aria-label":l,title:l,onClick:n}))),t.createElement(Yh,{zIndex:h}))}function ug({isOpen:e,onClose:n,size:r,isCloseButtonHidden:o,isClosedOnOverlayClick:i,closeButtonTitle:a,title:c,secondaryInfo:l,thumbnail:s,children:u,actionPrimary:d,actionSecondary:p,actionTertiary:f,container:m,onCloseAnimationEnd:h}){return t.createElement(sg,{isOpen:e,onClose:n,isClosedOnOverlayClick:i,isCloseButtonHidden:o,size:r,closeButtonTitle:a,onCloseAnimationEnd:h,container:m},t.createElement(sg.Header,{title:c,secondaryInfo:l,thumbnail:s}),t.createElement(sg.Content,null,u),d&&t.createElement(sg.Footer,{actionPrimary:d,actionSecondary:p,actionTertiary:f}))}function dg(e){return t.createElement(ug,{...e})}function pg(e){return t.createElement(fg,{role:"status","aria-live":"polite"},e.thumbnail&&t.createElement(mg,null,e.thumbnail),t.createElement(hg,null,t.createElement(gg,{title:"string"==typeof e.title?e.title:""},e.title),e.description&&t.createElement(vg,{title:"string"==typeof e.description?e.description:""},e.description)),t.createElement(yg,null,e.button),"number"==typeof e.progressPercentage&&t.createElement(bg,{style:{width:e.progressPercentage+"%"}}))}sg.Header=function({title:e,secondaryInfo:n,thumbnail:r,backButton:o}){const{hideCloseIcon:a}=i(cg);return t.createElement(Kh,{hideCloseIcon:a},o&&t.createElement(Xh,null,t.createElement(ef,{variant:"clean",icon:t.createElement(Su,null),"aria-label":o.title,...o})),r&&t.createElement(Zh,null,r),t.createElement(Jh,null,t.createElement(Qh,null,e),n&&t.createElement(eg,null,n)))},sg.Content=function({children:e}){const{size:n}=i(cg),r="fullscreen"===n;return t.createElement(tg,{scrollable:r},t.createElement(ng,{scrollable:r},r?t.createElement(rg,null,e):e))},sg.Footer=function({actionPrimary:e,actionSecondary:n,actionTertiary:r}){return t.createElement(og,null,r,t.createElement(ig,null,t.createElement(pf,{gap:"4"},n,e)))},ql.div.withConfig({displayName:"NotificationPositionStyled",componentId:"sc-11co88f-141"})(["position:absolute;bottom:0;left:0;z-index:",";opacity:",";transition:all 0.2s ease-out;transform:translateY(","px) translate3d(0,",",0) translateX(",");will-change:transform,opacity;"],(e=>e.isVisible?9999:void 0),(e=>e.isExists?"1":"0"),(e=>-1*e.offset),(e=>e.isItJustAdded?"calc(100% + 16px)":"0"),(e=>e.isDismissed?"-100%":"0")),ql.div.withConfig({displayName:"NotificationsStyled",componentId:"sc-11co88f-142"})(["position:fixed;bottom:",";left:",";z-index:",";"],Dp.spacing6,Dp.spacing6,9999);const fg=ql.div.withConfig({displayName:"BaloonStyled",componentId:"sc-11co88f-143"})(["",";position:relative;display:flex;align-items:flex-start;overflow:hidden;box-sizing:border-box;width:480px;padding:",";border-radius:",";background:",";box-shadow:",",",";"],Rp,Dp.spacing5,Dp.radiusLarge,Dp.white,Dp.elevationStatic,Dp.elevation2),mg=ql.div.withConfig({displayName:"ThumbnailWrapper1",componentId:"sc-11co88f-144"})(["flex:none;margin-right:",";"],Dp.spacing5),hg=ql.div.withConfig({displayName:"Text",componentId:"sc-11co88f-145"})(["flex:1;align-self:center;"]),gg=ql.h2.withConfig({displayName:"Title1",componentId:"sc-11co88f-146"})(["display:-webkit-box;overflow:hidden;margin:0;font:inherit;-webkit-line-clamp:3;-webkit-box-orient:vertical;"]),vg=ql.p.withConfig({displayName:"Description",componentId:"sc-11co88f-147"})(["display:-webkit-box;overflow:hidden;margin:"," 0 0;color:",";font-size:",";line-height:20px;-webkit-line-clamp:4;-webkit-box-orient:vertical;"],Dp.spacing2,Dp.gray500,Dp.fontSize75),yg=ql.div.withConfig({displayName:"Action",componentId:"sc-11co88f-148"})(["flex:none;"]),bg=ql.div.withConfig({displayName:"Progress1",componentId:"sc-11co88f-149"})(["position:absolute;bottom:0;left:0;height:4px;background-color:",";transition:width 0.2s;"],Dp.brandPrimary500);function wg({isPersistent:e,button:n,id:r=vd(),variant:o,thumbnail:i,...a}){return kp((e=>t.createElement(pg,{thumbnail:xg(i,o),...a,button:n?p(n,{variant:"clean",onClick(){var t,r;null===(t=(r=n.props).onClick)||void 0===t||t.call(r),kp.dismiss(e.id)}}):t.createElement(ef,{variant:"clean",onClick:()=>{kp.dismiss(e.id)},icon:t.createElement(Iu,null),title:"Close"})})),{id:r,duration:e?288e5:8e3})}function xg(e,n){return e||(n?{loading:t.createElement(_h,{shape:"circle",backgroundColor:"transparent",icon:t.createElement(Wp,null)}),success:t.createElement(_h,{shape:"circle",backgroundColor:"green500",icon:t.createElement(ku,null),iconColor:"white"}),error:t.createElement(_h,{shape:"circle",backgroundColor:"red500",icon:t.createElement(Iu,null),iconColor:"white"})}[n]:void 0)}wg.dismiss=function(e){kp.dismiss(e)},ql.div.withConfig({displayName:"Track",componentId:"sc-11co88f-150"})(["height:4px;border-radius:",";background:",";"],(e=>e.noCornerRadius?"0":Dp.radiusPill),(e=>e.noBackground?"none":Dp.gray100a)),ql.div.withConfig({shouldForwardProp:(e,t)=>!["color"].includes(e)&&t(e)}).withConfig({displayName:"Fill",componentId:"sc-11co88f-151"})(["max-width:100%;height:100%;border-radius:",";background:",";transition:width 0.2s ease-out;"],(e=>e.noCornerRadius?"0":Dp.radiusPill),(e=>"brand"===e.color?Dp.brandPrimary500:Dp.gray600)),ql.div.withConfig({displayName:"IndicatorPosition",componentId:"sc-11co88f-152"})(["display:flex;flex:none;align-items:center;&::before{content:'';}"]);const Eg=ql.div.withConfig({displayName:"Indicator",componentId:"sc-11co88f-153"})(["position:relative;display:flex;justify-content:center;align-items:center;box-sizing:border-box;width:16px;height:16px;border:2px solid ",";border-radius:",";background-color:transparent;&::before{content:'';position:absolute;top:-5px;right:-5px;bottom:-5px;left:-5px;border:"," solid transparent;border-color:",";border-radius:",";}"," ",""],Dp.componentRadioBorderUnchecked,Dp.radiusCircle,Dp.focusRingWidth,(e=>e.isFocusVisible&&Dp.focusRingColorPrimary),Dp.radiusCircle,(e=>e.isChecked&&Tl(["border-color:transparent;background-color:",";color:#fff;"],Dp.blue500)),(e=>e.isDisabled&&Tl(["border-color:transparent;background-color:",";color:",";"],Dp.componentRadioFillDisabled,Dp.componentRadioCheckmarkColorDisabled)));ql.div.withConfig({displayName:"IndicatorMark",componentId:"sc-11co88f-154"})(["width:6px;height:6px;border-radius:",";background:currentColor;"],Dp.radiusCircle),ql.input.withConfig({displayName:"Input",componentId:"sc-11co88f-155"})(["position:absolute;overflow:hidden;clip:rect(0,0,0,0);width:1px;height:1px;margin:0 -1px -1px 0;padding:0;border:0;white-space:nowrap;clip-path:inset(50%);"]),ql.label.withConfig({displayName:"Container3",componentId:"sc-11co88f-156"})([""," display:flex;align-items:flex-start;margin:0;padding:"," 0;cursor:",";user-select:none;&:hover ","{","}"],df.uiTextM,Dp.spacing1,(e=>!e.isDisabled&&"pointer"),Eg,(e=>{if(!e.isDisabled)return e.isChecked?Tl(["background-color:",";"],Dp.blue600):Tl(["border-color:",";"],Dp.componentRadioBorderUncheckedHover)})),ql.div.withConfig({displayName:"Label",componentId:"sc-11co88f-157"})(["display:block;margin-left:8px;color:",";"],(e=>e.isDisabled?Dp.gray400:Dp.colorText));const Cg=n({value:"",onChange:()=>{}});function kg({children:e,isDisabled:n,onChange:r,value:i,label:a,icon:c}){const l=o((()=>({value:i,onChange:r})),[r,i]);return t.createElement(Cg.Provider,{value:l},t.createElement(Wh,{trigger:({isOpen:e,...r})=>t.createElement(ef,{icon:c,isPressed:e,rightIcon:t.createElement(Wh.Arrow,null),isFullWidth:!0,isDisabled:n,...r},t.createElement(Wh.SelectButtonText,null,a)),position:"bottom"},e))}function Sg(e,t,n){return 100*(n-e)/(t-e)+"%"}kg.Item=function({icon:e,children:n,isDisabled:r,value:o}){const a=i(Cg);return t.createElement(Wh.Item,{isChecked:o===a.value,role:"menuitemradio",icon:e,isDisabled:r,onClick:()=>{a.onChange(o)}},n)},kg.SectionTitle=Wh.SectionTitle,kg.Divider=Wh.Divider,kg.SearchInput=Wh.SearchInput,kg.Text=Wh.Text,ql.aside.withConfig({displayName:"Container2",componentId:"sc-11co88f-158"})(["overflow-y:auto;box-sizing:border-box;width:272px;height:100%;padding:"," 0;border-right:1px solid ",";background:",";"],Dp.spacing5,Dp.gray100,Dp.white),ql.div.withConfig({shouldForwardProp:(e,t)=>!["width","height"].includes(e)&&t(e)}).withConfig({displayName:"Image",componentId:"sc-11co88f-159"})(["width:",";min-width:10px;height:",";min-height:10px;border-radius:",";background:",";"],(e=>e.width),(e=>e.height),Dp.radiusBase,Dp.gray100),ql.div.withConfig({displayName:"TextContainer",componentId:"sc-11co88f-160"})(["display:flex;align-items:center;width:100%;height:20px;&::before{content:'';height:6px;border-radius:",";","}"],Dp.radiusPill,(e=>"primary"===e.variant?Tl(["width:75%;max-width:240px;background:",";"],Dp.gray200):"secondary"===e.variant?Tl(["width:50%;max-width:160px;background:",";"],Dp.gray100):void 0)),ql.div.withConfig({displayName:"Opacity",componentId:"sc-11co88f-161"})(["opacity:",";"],(({value:e=1})=>e));const _g=ql.div.withConfig({displayName:"Container1",componentId:"sc-11co88f-162"})(["position:relative;display:flex;gap:",";align-items:center;"],Dp.spacing3),Ig=ql.div.withConfig({displayName:"SliderContainer",componentId:"sc-11co88f-163"})(["position:relative;display:flex;flex:1;align-items:center;height:24px;"]),Bg=Tl(["position:relative;box-sizing:border-box;height:24px;padding:0;border:10px solid transparent;border-radius:2px / 50%;background-image:var(--track-background);background-clip:padding-box;cursor:pointer;border-inline:none;appearance:none;"]),Tg=Tl(["position:relative;top:50%;bottom:0;width:20px;height:20px;padding:0;opacity:0;pointer-events:auto;transform:translateY(-50%);-webkit-appearance:none;appearance:none;&:hover{cursor:pointer;}"]);function Ng(e){const t=Sg(e.min,e.max,e.value);let n,r;return Array.isArray(e.values)?(n=Sg(e.min,e.max,e.values[0]),r=Sg(e.min,e.max,e.values[1])):e.isFromCenter?(n=`min(${t}, 50%)`,r=`max(50%, ${t})`):(n="0",r=t),`linear-gradient(\n\t\t90deg,\n\t\t${Dp.gray100a} ${n},\n\t\t${Dp.brandPrimary500} ${n},\n\t\t${Dp.brandPrimary500} ${r},\n\t\t${Dp.gray100a} ${r}\n\t)`}const zg=ql.input.attrs((e=>({style:{"--track-background":Ng(e)}}))).withConfig({displayName:"SliderInput",componentId:"sc-11co88f-164"})(["position:absolute;left:0;width:100%;margin:0;padding:0;border:none;background:transparent;",";-webkit-appearance:none;appearance:none;&:focus{outline:none;}&::-webkit-slider-thumb{","}&::-moz-range-thumb{"," transform:none;}&::-webkit-slider-runnable-track{","}&::-moz-range-track{","}"],(e=>e.isRange?"pointer-events: none":"pointer-events: auto"),Tg,Tg,Bg,Bg),Dg=ql.div.withConfig({displayName:"ThumbContainer",componentId:"sc-11co88f-165"})(["position:absolute;top:50%;z-index:1;box-sizing:border-box;width:16px;height:16px;opacity:var(--thumb-opacity,",");pointer-events:none;transition:opacity 120ms ease-in-out;",":hover &{--thumb-opacity:1;}",":hover + &{--thumb-opacity:1;--thumb-inner-circle-visibility:visible;--thumb-border:0 0 0 1px ",";--thumb-shadow:",",",";}",":focus-visible + &{--thumb-opacity:1;--thumb-inner-circle-visibility:visible;--thumb-border:0 0 0 1px ",";--thumb-shadow:0 0 0 3px ",";}",":active + &{--thumb-opacity:1;--thumb-inner-circle-visibility:visible;--thumb-border:0 0 0 1px ",";--thumb-shadow:",",",";--thumb-size:20px;}"],(e=>e.isInactive?0:1),Ig,zg,Dp.gray100a,Dp.elevationStatic,Dp.elevation1,zg,Dp.gray100a,Dp.gray100a,zg,Dp.gray100a,Dp.elevationStatic,Dp.elevation2),Pg=ql.div.withConfig({displayName:"ThumbCircle",componentId:"sc-11co88f-166"})(["position:absolute;top:50%;left:50%;width:var(--thumb-size,16px);height:var(--thumb-size,16px);border-radius:",";background:",";box-shadow:var(--thumb-shadow,",",","),var(--thumb-border,0 0 0 1px ",");transform:translate(-50%,-50%);&::before{content:'';position:absolute;top:50%;left:50%;display:block;width:8px;height:8px;border-radius:",";background-color:",";visibility:var(--thumb-inner-circle-visibility,hidden);transform:translate(-50%,-50%);}"],Dp.radiusCircle,Dp.gray10,Dp.elevationStatic,Dp.elevation1,Dp.gray75a,Dp.radiusCircle,Dp.gray25),Og=ql.div.withConfig({displayName:"InputContainer",componentId:"sc-11co88f-167"})(["width:",";input{text-align:center;}"],(function(e){return 40+8*Math.max(e.min.toString().length,e.max.toString().length)+"px"}));function Ag({min:e,max:n,value:r,isTooltipOpen:o,inputPosition:i,isInactive:a}){const c=Sg(e,n,r);return t.createElement(Dg,{isInactive:a,style:Rg(c),"data-testid":"thumb"},t.createElement(Pg,null),"none"===i&&t.createElement(Sf,{isOpen:o,content:r,position:"top-center"},(e=>t.createElement("div",{...e}))))}function Rg(e){return{left:e,transform:`translateY(-50%) translateX(calc(${e} * -1))`}}function Fg({min:e,max:n,value:o,onChange:i,inputPosition:a,isFromCenter:c=!1,isInactive:l,isTooltipHidden:s}){const[u,d]=r(!1),p=Array.isArray(o);return t.createElement(t.Fragment,null,t.createElement(zg,{min:e,max:n,value:p?o[0]:o,values:o,type:"range",onChange:i,name:"min-input",onMouseDown:()=>{d(!0)},onMouseUp:()=>{d(!1)},isFromCenter:c,isRange:p,role:"slider"}),t.createElement(Ag,{isTooltipOpen:u&&!s,min:e,max:n,value:p?o[0]:o,inputPosition:a,isInactive:l}),p&&t.createElement(t.Fragment,null,t.createElement(zg,{min:e,max:n,value:o[1],type:"range",onChange:i,name:"max-input",values:o,onMouseDown:()=>{d(!0)},onMouseUp:()=>{d(!1)},isRange:p}),t.createElement(Ag,{isTooltipOpen:u&&!s,min:e,max:n,value:o[1],inputPosition:a,isInactive:l})))}function Lg({min:e,max:n,inputPosition:o="none",value:i,onChange:a,iconLeft:c,iconRight:l,isFromCenter:s=!1,isInactive:u=!1,isTooltipHidden:d=!1,...p}){const[f,m]=r(""),[h,g]=r("none");function v(t){g("none");const r=Number(t.target.value);r<e||n<r||(Array.isArray(i)?("min-input"===t.target.name&&r<i[1]&&a([r,i[1]]),"max-input"===t.target.name&&i[0]<r&&a([i[0],r])):a(r))}function y(e){"Enter"===e.key&&e.target.blur()}const b=String(Array.isArray(i)?i[0]:i),w=String(Array.isArray(i)?i[1]:i);return t.createElement(_g,{...p},("left"===o||"both"===o)&&t.createElement(Og,{min:e,max:n,"data-testid":"input-left"},t.createElement(Rm,{onChange:m,value:"left"===h?f:b,type:"number",onFocus:()=>{m(b),g("left")},onBlur:()=>{v({target:{name:"min-input",value:f}})},onKeyDown:y})),c,t.createElement(Ig,null,t.createElement(Fg,{min:e,max:n,value:i,inputPosition:o,onChange:v,isFromCenter:s,isInactive:u,isTooltipHidden:d})),l,("right"===o||"both"===o)&&t.createElement(Og,{min:e,max:n,"data-testid":"input-right"},t.createElement(Rm,{onChange:m,value:"right"===h?f:w,type:"number",onFocus:()=>{m(w),g("right")},onBlur:()=>{v({target:{name:"max-input",value:f}})},onKeyDown:y})))}ql.td.withConfig({displayName:"StyledCell",componentId:"sc-11co88f-168"})([""," "," padding:"," ",";word-break:break-word;&[data-checkbox-cell]{width:16px;}&[data-icon-cell]{width:24px;padding-left:0;}tr &:first-child{border-top-left-radius:",";border-bottom-left-radius:",";}tr &:last-child{border-top-right-radius:",";border-bottom-right-radius:",";}"],(e=>"primary"===e.variant?Tl([""," color:var(--table-row-color-override,inherit);"],df.uiTextM):"secondary"===e.variant?Tl([""," color:var(--table-row-color-override,",");"],df.uiTextS,Dp.gray600):void 0),(e=>e.isTruncated&&"max-width: 1px;"),Dp.spacing3,Dp.spacing4,Dp.radiusLarge,Dp.radiusLarge,Dp.radiusLarge,Dp.radiusLarge),ql.div.withConfig({displayName:"ThumbnailWrapper",componentId:"sc-11co88f-169"})(["flex:none;align-self:flex-start;opacity:var(--table-thumbnail-opacity,1);"]),ql.div.withConfig({displayName:"Content",componentId:"sc-11co88f-170"})(["flex:1;min-width:0;white-space:",";"],(e=>e.isNoWrap?"nowrap":"normal")),ql.div.withConfig({displayName:"Subtext",componentId:"sc-11co88f-171"})([""," color:var(--table-row-color-override,",");"],df.uiTextS,Dp.gray600),ql.div.withConfig({displayName:"IconRight",componentId:"sc-11co88f-172"})(["flex:none;margin-left:",";color:",";"],Dp.spacing4,Dp.gray600),ql.tr.withConfig({displayName:"DividerRow",componentId:"sc-11co88f-173"})(["&:nth-child(2){display:none;}"]),ql.td.withConfig({displayName:"DividerCell",componentId:"sc-11co88f-174"})(["padding:"," 0;&::before{content:'';display:block;height:1px;height:1px;background:",";}"],Dp.spacing3,Dp.gray100a),ql.tr.withConfig({displayName:"StyledRow",componentId:"sc-11co88f-175"})([""," "," ",""],(e=>e.isActive&&Tl(["--table-row-right-icon-color:",";border-radius:",";outline:none;cursor:pointer;&:hover{--table-row-right-icon-color:",";background:",";}"," &:active{background:",";box-shadow:none;}"],Dp.gray200,Dp.radiusLarge,Dp.gray600,Dp.gray25,e.isFocusVisible&&Tl(["--table-row-right-icon-color:",";background:",";box-shadow:inset 0 0 0 2px ",",inset 0 0 0 4px ",";&:hover{box-shadow:inset 0 0 0 2px ",",inset 0 0 0 4px ",";}"],Dp.gray600,Dp.gray25,Dp.gray100,Dp.gray10,Dp.gray50,Dp.gray10),Dp.gray50)),(e=>e.isPressed&&Tl(["--table-row-right-icon-color:",";&,&:hover{background:",";}"],Dp.gray600,Dp.gray50)),(e=>e.isDisabled&&Tl(["--table-row-right-icon-color:",";--table-thumbnail-opacity:50%;--table-row-color-override:",";pointer-events:none;"],Dp.gray200,Dp.gray200))),ql.div.withConfig({displayName:"Icon1",componentId:"sc-11co88f-176"})(["color:var(--table-row-right-icon-color);"]),ql.thead.withConfig({displayName:"StyledHeader",componentId:"sc-11co88f-177"})(["",""],(e=>"string"==typeof e.stickyOffset&&Tl(["--table-head-sticky-offset:",";position:sticky;top:var(--table-head-sticky-offset);z-index:1;background-color:",";",""],"0"===e.stickyOffset?"0px":e.stickyOffset,Dp.white,e.isStuck&&Tl(["box-shadow:0 3px 0 ",",0 1px 0 ",";"],Dp.gray50a,Dp.gray100a)))),ql.div.withConfig({displayName:"Trigger",componentId:"sc-11co88f-178"})(["position:absolute;top:calc((var(--table-head-sticky-offset) + 1px) * -1);width:1px;height:1px;"]),ql.th.withConfig({displayName:"StyledHeadCell",componentId:"sc-11co88f-179"})([""," padding:"," ",";text-align:left;"],df.uiTextM,Dp.spacing2,Dp.spacing4),ql.div.withConfig({displayName:"Static",componentId:"sc-11co88f-180"})(["padding:"," 0;"],Dp.spacing3),ql.span.withConfig({displayName:"Active",componentId:"sc-11co88f-181"})(["font-weight:600;"]),ql.td.withConfig({displayName:"Cell2",componentId:"sc-11co88f-182"})(["height:",";"],Dp.spacing3),ql.td.withConfig({displayName:"Cell1",componentId:"sc-11co88f-183"})(["padding:"," ",";"],Dp.spacing3,Dp.spacing4),ql.td.withConfig({displayName:"Cell",componentId:"sc-11co88f-184"})(["padding:",";"],Dp.spacing4),ql.table.withConfig({displayName:"StyledTable",componentId:"sc-11co88f-185"})(["width:100%;border-collapse:collapse;table-layout:"," !important;word-wrap:initial !important;"],(e=>e.isFixedLayout?"fixed":"auto")),ql.button.withConfig({shouldForwardProp:(e,t)=>!["shape"].includes(e)&&t(e)}).withConfig({displayName:"TabStyled",componentId:"sc-11co88f-186"})(["display:flex;flex-grow:1;flex-basis:0;justify-content:center;align-items:center;min-width:0;height:",";padding:"," ",";border:0;border-radius:",";background-color:transparent;color:",";font-family:inherit;text-align:center;cursor:pointer;"," &:disabled{color:",";cursor:default;}&:focus-visible{color:",";box-shadow:inset 0 0 0 2px ",";outline:none;}&:hover:enabled{color:",";",";}",";",";"],(e=>"contained"===e.variant?"36px":"40px"),Dp.spacing3,Dp.spacing5,(e=>"pill"===e.shape?Dp.radiusPill:Dp.radiusBase),(e=>e.isActive?Dp.gray800:Dp.gray600),df.uiTextM,Dp.gray400,Dp.gray800,Dp.gray200,Dp.gray800,(e=>"clean"===e.variant&&Tl(["background-color:",";"],Dp.gray25a)),(e=>e.isActive&&"contained"===e.variant&&Tl(["background-color:",";box-shadow:0 0 1px ",",",";"],Dp.white,Dp.colorShadow,Dp.elevation1)),(e=>e.isActive&&"clean"===e.variant&&Tl(["background-color:",";"],Dp.gray50a))),ql.span.withConfig({displayName:"Icon",componentId:"sc-11co88f-187"})(["margin-right:",";"],Dp.spacing3),ql.div.withConfig({shouldForwardProp:(e,t)=>!["shape"].includes(e)&&t(e)}).withConfig({displayName:"TabsStyled",componentId:"sc-11co88f-188"})(["display:flex;gap:",";align-items:center;border-radius:",";",";"],Dp.spacing1,(e=>"pill"===e.shape?Dp.radiusPill:`calc(${Dp.radiusBase} + 2px) `),(e=>"contained"===e.variant&&Tl(["padding:",";background-color:",";"],Dp.spacing1,Dp.gray50a)));const Mg={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"};function jg(e){Object.keys(Mg).forEach((t=>{e.style.setProperty(t,Mg[t],"important")}))}let Hg=null;const Ug=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"];function Vg({id:e,isDisabled:n=!1,isReadOnly:r=!1,isInvalid:o=!1,onBlur:i,onChange:a,onFocus:s,placeholder:u,value:d,"aria-label":p,"aria-labelledby":f,"aria-describedby":m,minRows:h=2,maxRows:g=8,maxLength:v,...y}){const b=c(null);return function(e,t,n){const r=c(0),[o,i]=function(e,t){let n=e||2,r=t||8;return n>r&&(n=r),n<2&&(n=2),r>8&&(r=8),[n,r]}(t,n);l((()=>{const t=e.current;if(!t)return;const n=function(e){const t=window.getComputedStyle(e);if(null===t)return null;const n=(r=t,Ug.reduce(((e,t)=>(e[t]=r[t],e)),{}));var r;return""===n.boxSizing?null:{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom||"0")+parseFloat(n.paddingTop||"0"),borderSize:parseFloat(n.borderBottomWidth||"0")+parseFloat(n.borderTopWidth||"0")}}(t);if(!n)return;const a=function({sizingData:e,value:t,minRows:n,maxRows:r}){Hg||(Hg=document.createElement("textarea"),Hg.setAttribute("tabindex","-1"),Hg.setAttribute("aria-hidden","true"),jg(Hg)),null===Hg.parentNode&&document.body.appendChild(Hg);const{paddingSize:o,borderSize:i,sizingStyle:a}=e;Object.keys(a).forEach((e=>{if(!Hg)return;const t=e;Hg.style[t]=a[t]})),jg(Hg),Hg.value=t;let c=function(e,t){const n=Hg.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize}(0,e);Hg.value="x";const l=Hg.scrollHeight-o;let s=l*n;"border-box"===a.boxSizing&&(s=s+o+i),c=Math.max(s,c);let u=l*r;return"border-box"===a.boxSizing&&(u=u+o+i),c=Math.min(u,c),c}({sizingData:n,value:t.value||t.placeholder||"x",minRows:o,maxRows:i});r.current!==a&&(r.current=a,t.style.setProperty("height",`${a}px`,"important"))}))}(b,h,g),t.createElement($g,{value:d,onChange:function(e){if(a){const t=e.currentTarget.value;a(t)}},id:e,disabled:n,readOnly:r,isInvalid:o,"aria-label":p,"aria-labelledby":f,"aria-describedby":m,onBlur:i,onFocus:s,placeholder:u,autoComplete:"off",autoCorrect:"off",ref:b,maxLength:v,...y})}const $g=ql.textarea.withConfig({displayName:"TextareaStyled",componentId:"sc-11co88f-189"})(["&&{display:block;box-sizing:border-box;width:100%;margin:0;padding:"," ",";border:1px solid ",";border-radius:",";background:",";color:",";outline:none;font-family:",";resize:none;transition:none;"," &::placeholder{color:",";}&:hover{border-color:",";box-shadow:",";}&:focus{border-color:",";box-shadow:0 0 0 3px ",";}&:disabled{border-color:",";background:",";color:",";box-shadow:none;}",";}"],Dp.spacing3,Dp.spacing5,Dp.gray100,Dp.radiusBase,Dp.white,Dp.colorText,Dp.brandFontStackBase,df.paragraphM,Dp.gray400,Dp.gray200,Dp.elevation1,Dp.gray300,Dp.gray100a,Dp.gray100,Dp.gray25,Dp.gray600,(e=>e.isInvalid&&Tl(["border-color:",";&:hover{border-color:",";}&:focus{border-color:",";}"],Dp.red500,Dp.red600,Dp.red500))),Wg=ql.div.withConfig({displayName:"RightElementText",componentId:"sc-11co88f-190"})(["display:flex;justify-content:flex-end;align-items:center;color:",";text-align:right;"],Dp.gray400);ql.div.withConfig({displayName:"LeftIconContainer",componentId:"sc-11co88f-191"})(["margin-right:",";*{max-width:24px;max-height:24px;}"],Dp.spacing4),ql.div.withConfig({displayName:"RightElementsContainer",componentId:"sc-11co88f-192"})(["margin-left:auto;padding-left:",";"],Dp.spacing4);const Gg=Tl(["background-color:"," !important;color:"," !important;","{color:",";}"],Dp.gray50,Dp.gray800,Wg,Dp.gray600);function qg(e){var t;return null!==(t=Yg[e])&&void 0!==t?t:e}ql.a.withConfig({displayName:"StyledNavItem",componentId:"sc-11co88f-193"})(["&&{"," display:flex;align-items:center;box-sizing:border-box;width:100%;height:40px;margin:0;padding:"," ",";border:0;border-radius:",";background:none;color:",";outline:none;font-family:",";text-decoration:none;cursor:",";&:hover{background-color:",";color:",";","{color:",";}}&:active{","}"," "," ",";}"],df.uiTextM,Dp.spacing3,Dp.spacing4,Dp.brandRadiusBase,Dp.gray600,Dp.brandFontStackBase,(e=>e.disabled?"default":"pointer"),Dp.gray25,Dp.gray800,Wg,Dp.gray600,Gg,(e=>e.$isSelected&&Gg),(e=>e.$isFocusVisible&&Tl(["background-color:",";color:",";","{color:",";}"],Dp.gray25,Dp.gray800,Wg,Dp.gray600)),(e=>e.disabled&&Tl(["background-color:transparent;color:",";pointer-events:none;","{color:",";}"],Dp.gray400,Wg,Dp.gray400))),ql(Fm).withConfig({displayName:"Divider",componentId:"sc-11co88f-194"})(["margin:"," ",";"],Dp.spacing2,Dp.spacing4),ql.div.withConfig({displayName:"StyledTitleContainer",componentId:"sc-11co88f-195"})(["",";display:flex;align-items:center;box-sizing:border-box;height:32px;padding:0 ",";color:",";"],df.uiTextS,Dp.spacing4,Dp.gray800),ql.div.withConfig({displayName:"RightElementIcon",componentId:"sc-11co88f-196"})(["&:last-child{margin-right:calc("," * -1);}"],Dp.spacing2),ql.div.withConfig({displayName:"Container",componentId:"sc-11co88f-197"})(["margin:0 ",";"],Dp.spacing5);var Yg={};function Kg(e){a((function(){var t=e.slice(0,2).toLowerCase(),n="".concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/modules/compactview/i18n/").concat(t,".json");fetch(n).then((function(e){return e.json()})).then((function(e){Yg=e}))}),[e])}function Xg(){return t.createElement("svg",{width:"190",height:"130"},t.createElement("defs",null,t.createElement("linearGradient",{id:"prefix__b",x1:"100%",x2:"25.598%",y1:"11.782%",y2:"100%"},t.createElement("stop",{offset:"0%",stopColor:"#F8FAFC"}),t.createElement("stop",{offset:"100%",stopColor:"#EFF2F4"})),t.createElement("rect",{id:"prefix__a",width:"190",height:"130",rx:"3"})),t.createElement("g",{fill:"none",fillRule:"evenodd"},t.createElement("mask",{id:"prefix__c",fill:"#fff"},t.createElement("use",{xlinkHref:"#prefix__a"})),t.createElement("use",{fill:"url(#prefix__b)",xlinkHref:"#prefix__a"}),t.createElement("g",{mask:"url(#prefix__c)"},t.createElement("path",{fill:"#F5A623",d:"M100.296 45.951l23.01 43.23A6 6 0 01118.009 98H71.991a6 6 0 01-5.297-8.82l23.01-43.229a6 6 0 0110.592 0z"}),t.createElement("path",{fill:"#FFF",fillRule:"nonzero",d:"M93.21 60h3.58a2 2 0 011.99 2.199l-1.6 16A2 2 0 0195.19 80h-.38a2 2 0 01-1.99-1.801l-1.6-16A2 2 0 0193.21 60zM95 84a3 3 0 110 6 3 3 0 010-6z"})),t.createElement("path",{fill:"#EEF1F3",d:"M3 0h184a3 3 0 013 3v13H0V3a3 3 0 013-3z",mask:"url(#prefix__c)"}),t.createElement("circle",{cx:"11",cy:"8",r:"3",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)"}),t.createElement("circle",{cx:"20",cy:"8",r:"3",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)"}),t.createElement("circle",{cx:"29",cy:"8",r:"3",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)"})))}function Zg(e){return t.createElement(t.Fragment,null,t.createElement(Xg,null),t.createElement(tv,null,qg("Oops! Something went wrong")),t.createElement(nv,null,qg("Please try again or get in contact with our customer support.")),t.createElement(rv,null,t.createElement(ef,{variant:"secondary",title:qg("Send report"),onClick:e.onClickSend,isDisabled:e.isReportSent},e.isReportSent?qg("Report sent"):qg("Send report...")),t.createElement(ef,{variant:"primary",title:qg("Try again"),onClick:e.onClickRetry},qg("Try again"))))}var Jg,Qg,ev,tv=ql.h1(Jg||(Jg=_a(["\n\tmargin-top: ",";\n\tfont-size: ",";\n"],["\n\tmargin-top: ",";\n\tfont-size: ",";\n"])),Dp.spacing8,Dp.fontSize400),nv=ql.span(Qg||(Qg=_a(["\n\tmargin-top: ",";\n\tcolor: ",";\n"],["\n\tmargin-top: ",";\n\tcolor: ",";\n"])),Dp.spacing5,Dp.colorTextDisabled),rv=ql.div(ev||(ev=_a(["\n\tmargin-top: ",";\n\tdisplay: flex;\n\tgap: ",";\n"],["\n\tmargin-top: ",";\n\tdisplay: flex;\n\tgap: ",";\n"])),Dp.spacing7,Dp.spacing3);function ov(e){var n;return t.createElement(dg,{title:qg("Send error report"),isOpen:e.isOpen,onClose:e.onCancel,actionPrimary:t.createElement(ef,{variant:"primary",title:qg("Send report"),onClick:e.onDone},qg("Send report")),actionSecondary:t.createElement(ef,{variant:"secondary",title:qg("Cancel"),onClick:e.onCancel},qg("Cancel")),container:e.container},t.createElement(lv,null,qg("We have created a report that you can send us to help us prevent this from happening in the future.")),t.createElement(sv,{"data-testid":"error-stack"},null===(n=e.error.stack)||void 0===n?void 0:n.split("\n").map((function(e){return t.createElement(t.Fragment,{key:e},e,t.createElement("br",null))}))),t.createElement(uv,null,qg("We will treat this report as confidential and anonymous.")))}var iv,av,cv,lv=ql.div(iv||(iv=_a(["\n\tline-height: ",";\n"],["\n\tline-height: ",";\n"])),Dp.lineHeightText),sv=ql.div(av||(av=_a(["\n\tmargin: "," 0;\n\tflex-grow: 1;\n\talign-self: stretch;\n\tbackground-color: ",";\n\tborder-radius: ",";\n\tborder: 1px solid ",";\n\tline-height: ",";\n\toverflow: scroll;\n\tpadding: "," ",";\n\tmax-height: 200px;\n"],["\n\tmargin: "," 0;\n\tflex-grow: 1;\n\talign-self: stretch;\n\tbackground-color: ",";\n\tborder-radius: ",";\n\tborder: 1px solid ",";\n\tline-height: ",";\n\toverflow: scroll;\n\tpadding: "," ",";\n\tmax-height: 200px;\n"])),Dp.spacing5,Dp.gray25,Dp.radiusMedium,Dp.gray200,Dp.lineHeightText,Dp.spacing5,Dp.spacing4),uv=ql.span(cv||(cv=_a(["\n\tcolor: ",";\n\tline-height: ",";\n\tfont-size: ",";\n"],["\n\tcolor: ",";\n\tline-height: ",";\n\tfont-size: ",";\n"])),Dp.colorTextDisabled,Dp.lineHeightBase,Dp.fontSize75);function dv(e){var n=e.error,o=e.onRetry,i=La(),c=r(!1),l=c[0],s=c[1],u=r(!1),d=u[0],p=u[1];return a((function(){Aa.error(n)}),[n]),t.createElement("div",{className:"w-full h-full flex flex-col items-center justify-center bg-ui-0 font-sans\n text-base text-body-500"},t.createElement(Zg,{isReportSent:d,onClickSend:function(){s(!0)},onClickRetry:o}),t.createElement(ov,{isOpen:l,error:n,container:i,onDone:function(){ti(n),s(!1),p(!0)},onCancel:function(){s(!1)}}))}function pv(){var e=ba(Ta()[0].page),n=e[0],r=e[1],o={ASC:qg("Ascending"),DESC:qg("Descending")},i={ASC:"DESC",DESC:"ASC"};return t.createElement(ef,{variant:"clean",isSmall:!0,title:o[n.direction],onClick:function(){r({field:n.field,direction:i[n.direction]})},icon:t.createElement(mv,{$isAscending:"ASC"===n.direction})})}var fv,mv=ql((function(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"}}]})(e)}))(fv||(fv=_a(["\n\twidth: ",";\n\theight: ",";\n\t","\n"],["\n\twidth: ",";\n\theight: ",";\n\t","\n"])),Dp.spacing6,Dp.spacing6,(function(e){return e.$isAscending&&"transform: scaleY(-1)"}));function hv(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(Boolean).join(" ")}function gv(e){var n,o=c(null),i=r(0)[1];!function(e,t){var n=La();a((function(){function r(n){var r=n.target;e.map((function(e){return null==e?void 0:e.current})).some((function(e){return e&&e.contains(r)}))||t()}return null==n||n.addEventListener("mousedown",r),function(){return null==n?void 0:n.removeEventListener("mousedown",r)}}),[e,t,n])}([e.target,o],e.onClickOutside),l((function(){i(null!==e.target.current?e.target.current.getBoundingClientRect().x:0)}),[e.target]);var s=La(),u=null!==(n=s.querySelector(".cv-root"))&&void 0!==n?n:s;if(null===s||null===e.target.current)return null;var d=e.target.current.getBoundingClientRect(),p=d.x,f=window.innerWidth,m=p+300>f?void 0:p,h=p+300>f?f-d.width-p:void 0,v="Down"===e.direction?d.top+d.height:void 0,y="Up"===e.direction?window.innerHeight-d.top:void 0,b=u.getBoundingClientRect(),w={left:m,right:h,top:v,bottom:y,maxWidth:b.width-(null!=m?m:0)-(null!=h?h:0),maxHeight:b.height-(null!=y?y:0)-(null!=v?v:0)},x=hv("cv-root cv-dropdown select-none",e.className);return g(t.createElement("div",{role:"menu",id:e.id,className:x,ref:o,style:w},e.children),s)}function vv(e){var n=e.buttonKind,i=void 0===n?"clean":n,a=e.direction,l=void 0===a?"Down":a,s=e.isSmall,u=e.fadeIn,d=Ea(e,["buttonKind","direction","isSmall","fadeIn"]),p=o((function(){return"dropdownmenu-".concat(Date.now(),"-").concat(Math.random().toString(36).substring(2))}),[]),f=r(!1),m=f[0],h=f[1],g=c(null),v=function(){return h((function(e){return!e}))};return t.createElement(t.Fragment,null,t.createElement(bv,{variant:i,isSmall:s,onClick:v,ref:g,isDisabled:d.disabled,isPressed:m,"aria-haspopup":!0,"aria-expanded":m,"aria-controls":p,fadeIn:u,"data-testid":"button"},t.createElement("span",{className:"inline-flex items-center",title:d.alt},d.title),t.createElement(Eu,{className:"w-6 h-6 ml-1 -mr-2"})),m&&t.createElement(gv,{className:d.className,onClickOutside:v,direction:l,target:g,id:p},d.children(v)))}var yv,bv=ql(ef)(yv||(yv=_a(["\n\tdisplay: flex;\n\talign-items: center;\n\ttext-transform: inherit;\n\t","\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\ttext-transform: inherit;\n\t","\n"])),(function(e){return e.fadeIn?"animation: var(--fade-in-down);":""}));function wv(e){var n=e.selected,r=void 0!==n&&n,o=Ea(e,["selected"]),i=hv("text-left w-full cursor-pointer flex hover:bg-ui-400 hover:text-body-500 items-center transition-color",r?"text-body-500":"text-body-400",o.className);return t.createElement("li",null,t.createElement("button",{type:"button",className:i,onClick:o.onClick,role:"menuitemradio","aria-checked":r,tabIndex:-1},o.children,r&&t.createElement(ku,{className:"w-6 h-6 ml-3 fade-in"})))}function xv(e){var n=e.options,r=void 0===n?["CREATED_AT","PUBLISHED_AT","UPDATED_AT","NAME"]:n,o=ba(Ta()[0].page),i=o[0],a=o[1],c={CREATED_AT:qg("Date added"),NAME:qg("Name"),PUBLISHED_AT:qg("Date published"),UPDATED_AT:qg("Date modified")};return t.createElement(Cv,null,t.createElement(vv,{className:"py-2",title:c[i.field],alt:qg("Order by")},(function(e){return t.createElement("ul",null,r.map((function(n){return t.createElement(wv,{className:"px-4 py-px text-sm",selected:i.field===n,key:c[n],onClick:function(){a({field:n,direction:i.direction}),e()}},t.createElement("span",{className:"flex-grow min-w-24 py-2"},c[n]))})))})))}var Ev,Cv=ql.div(Ev||(Ev=_a(["\n\tmargin-left: auto;\n"],["\n\tmargin-left: auto;\n"])));function kv(e,t,n){return(1===e?t:n).replace("{}",e.toString())}function Sv(e){var n=e.width,r=void 0===n?100:n,o=e.className;return t.createElement("span",{className:hv("cv-skeleton",o),style:{width:r},"data-testid":"skeleton"},"")}function _v(e){return t.createElement(t.Fragment,null,Array(e.rows*e.columns).fill(void 0).map((function(n,r){return t.createElement("div",{key:r,className:"m-2 w-56 self-start group relative","data-testid":"asset-card"},t.createElement(Kf,null,t.createElement(Kf.Frame,null),t.createElement(Kf.AdditionalInfo,null,t.createElement(Sv,{width:70+Iv(100,r),className:"h-4"})),e.title))})))}function Iv(e,t){return 16807*((t+20)%2147483647+2147483646)%2147483647%e}var Bv=n({assetTypes:[],language:"en_US",onSuccess:function(e,t){var n=t.selectedFile;return console.log(e,n)},selectionMode:"MultiSelect",hideExternalAccess:!1}),Tv=Bv.Provider,Nv=function(){return i(Bv)},zv=function(){return Nv().selectionMode};function Dv(e){return{tag:"ok",value:e}}function Pv(e){return{tag:"error",error:e}}function Ov(e){return"ok"===e.tag}function Av(e){return"error"===e.tag}function Rv(e){var t=e.replace(/^https?:\/\//i,"").replace(/\/+$/i,"");return"https://".concat(t,"/")}function Fv(e){var t;if(e.transformBaseURL){var n=e,r="transformBaseURL",o=n[r],i=Ea(n,[r+""]);return xa(xa({},i),((t={}).transformBaseUrl=xa({},o),t))}return e}var Lv=new Map;function Mv(e,t,n){return Ca(this,void 0,void 0,(function(){var r,o,i,a,c,l,s,u;return ka(this,(function(d){switch(d.label){case 0:if(!n)return[2,Pv("No authentication provided")];if(r=n.getAccessToken&&n.getAccessToken(),"/"===(o=void 0!==n.accountDomain?Rv(n.accountDomain.trim()):"https://".concat(window.location.host)).charAt(o.length-1)&&(o=o.slice(0,-1)),i="".concat(o,":").concat(e,":").concat(JSON.stringify(t),":").concat(r),Lv.has(i))return[2,Dv(Lv.get(i))];a={Accept:"application/json","Content-Type":"application/json","X-Bynder-Integration":"UCV/v".concat("3.2.3")},c=void 0===r?a:xa(xa({},a),{Authorization:"Bearer ".concat(r)}),l={method:"post",headers:c,body:JSON.stringify({query:e,variables:t})},d.label=1;case 1:return d.trys.push([1,4,,5]),[4,fetch("".concat(o,"/graphql"),l)];case 2:return[4,d.sent().json()];case 3:return s=d.sent(),u=function(e){var t,n,r,o;return(null===(n=null===(t=null==e?void 0:e.searchAssets)||void 0===t?void 0:t.assets)||void 0===n?void 0:n.nodes.length)?xa(xa({},e),{searchAssets:xa(xa({},e.searchAssets),{assets:xa(xa({},e.searchAssets.assets),{nodes:null===(o=null===(r=e.searchAssets)||void 0===r?void 0:r.assets)||void 0===o?void 0:o.nodes.map((function(e){if(e.files){var t=Fv(e.files);return xa(xa({},e),{files:xa({},t)})}return e}))})})}):e}(s.data),[3,5];case 4:return[2,Pv(d.sent())];case 5:return void 0!==s.errors?[2,Pv(s.errors.map((function(e){return e.message})).join(","))]:(Lv.set(i,u),Lv.size>50&&Lv.delete(Lv.keys().next().value),[2,Dv(u)])}}))}))}function jv(e){var t;if(!(null===(t=window.crypto)||void 0===t?void 0:t.subtle))return Promise.reject("Access to the WebCrypto API is restricted to secure origins. Compact View requires HTTPS when used outside localhost (for development).");var n=(new TextEncoder).encode(e);return window.crypto.subtle.digest("SHA-256",n)}function Hv(){var e=new Uint32Array(28),t=window.crypto.getRandomValues(e),n=Array.from(t).map((function(e){return"0".concat(e.toString(16)).substr(-2)}));return n.join("")}var Uv="42b1eefa-d754-4802-b9c4-bf80d6ab6052",Vv="".concat("https://d8ejoa1fys2rk.cloudfront.net"),$v=Vv+"/5.0.5/modules/compactview/loginCompleted.html",Wv="".concat("https://apiv2.webdamdb.com","/"),Gv=["offline","asset:read","collection:read","meta.assetbank:read"];function qv(e,t,n){return Ca(this,void 0,void 0,(function(){var r,o,i,a;return ka(this,(function(c){switch(c.label){case 0:r=Yv(n)+"token",o=new URLSearchParams({client_id:Uv,code_verifier:t,code:e,redirect_uri:$v,grant_type:"authorization_code"}),c.label=1;case 1:return c.trys.push([1,4,,5]),[4,fetch(r,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:o})];case 2:return(i=c.sent()).ok?[4,i.json()]:[2,Pv("Failed to fetch access token: ".concat(i.status))];case 3:return[2,Dv({refreshToken:(a=c.sent()).refresh_token,accessToken:a.access_token,expiresIn:a.expires_in})];case 4:return[2,Pv(c.sent().toString())];case 5:return[2]}}))}))}function Yv(e){return"webdam"===Kv()?Wv+"oauth2/":Rv(e)+"v6/authentication/oauth2/"}function Kv(){var e;return null!==(e=localStorage.getItem("cvp"))&&void 0!==e?e:void 0}function Xv(e){return Ca(this,void 0,void 0,(function(){var t,n,r,o,i,a;return ka(this,(function(c){switch(c.label){case 0:return t=window.screen,n=t.width/2-285+window.screenX,r=t.height/2-350+window.screenY,null===(o=window.open("","Bynder Brand Portal","height=".concat(700,",width=").concat(570,",left=").concat(n,",top=").concat(r)))?[2,Pv("Error opening login window")]:(o.document.head.innerHTML=Zv,o.document.body.innerHTML=Jv,o.location.href=e,[4,Promise.race([new Promise((function(e){window.addEventListener("message",(function(t){t.origin===Vv&&e(Dv(t))}))})),new Promise((function(e){setTimeout((function(){return e(Pv("Timeout"))}),6e5)})),(l=o,new Promise((function(e){var t=setInterval((function(){l.closed&&(clearInterval(t),e(Pv("Login window closed")))}),1e3)})))])]);case 1:return Av(i=c.sent())?[2,i]:[2,Dv({state:(a=new URLSearchParams(i.value.data)).get("state"),code:a.get("code")})]}var l}))}))}var Zv='\n<title>Redirecting...</title>\n<style>\n @keyframes cv-spinner-animation {\n to {\n transform:rotate(1turn)\n }\n }\n\n .cv-spinner {\n position: relative;\n display: inline-block;\n padding: 175px 0 100px;\n width: 100%;\n height: auto;\n background: #fff;\n box-sizing: border-box;\n }\n \n .cv-spinner:before {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 40px;\n height: 40px;\n margin-top: -20px;\n margin-left: -20px;\n box-sizing: border-box;\n border-top: 3px solid #7e8890;\n border-right: 3px solid transparent;\n border-radius: 50%;\n content: "";\n animation: cv-spinner-animation .8s linear infinite;\n z-index: 3;\n }\n</style>',Jv='<div class="cv-spinner"></div>';function Qv(e){var n=La();return t.createElement(bl,{target:n,disableVendorPrefixes:!0},t.createElement(Ef,{zIndexBase:1e6},e.children))}function ey(e){var n=e.children,o=e.isLoginInContainer,i=void 0!==o&&o,c=t.useRef(null),l=r(null),s=l[0],u=l[1];return a((function(){if(null!==c.current){var e,t,n=function(e){try{return e.attachShadow({mode:"open"})}catch(e){return null}}(c.current);e=n,t="@import url(".concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/includes/css/vendor/font-awesome.min.css);")+'/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}a{background-color:transparent}b{font-weight:bolder}code{font-family:monospace,monospace;font-size:1em}img{border-style:none}button,input,select{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}progress{vertical-align:baseline}[type=checkbox]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}[hidden]{display:none}dd,dl,h1,p{margin:0}button{background-color:transparent;background-image:none}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}ul{list-style:none;margin:0;padding:0}html{font-family:SourceSansPro,Source Sans Pro,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}*,:after,:before{-webkit-box-sizing:border-box;box-sizing:border-box;border:0 solid rgba(0,34,51,.1)}img{border-style:solid}input::-webkit-input-placeholder{color:#a0aec0}input::-moz-placeholder{color:#a0aec0}input:-ms-input-placeholder{color:#a0aec0}input::-ms-input-placeholder{color:#a0aec0}input::placeholder{color:#a0aec0}[role=button],button{cursor:pointer}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,select{padding:0;line-height:inherit;color:inherit}code{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}audio,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}.bg-ui-0{--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity))}.bg-ui-500{background-color:rgba(0,34,51,.05)}.hover\\:bg-ui-400:hover{background-color:rgba(0,34,51,.03)}.border-brand-500{--border-opacity:1;border-color:#0af;border-color:rgba(0,170,255,var(--border-opacity))}.border-ui-600{border-color:rgba(0,34,51,.1)}.rounded{border-radius:5px}.rounded-full{border-radius:9999px}.border-2{border-width:2px}.border{border-width:1px}.border-b{border-bottom-width:1px}.last\\:border-b-0:last-child{border-bottom-width:0}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.inline-block{display:inline-block}.inline{display:inline}.flex{display:-webkit-box;display:-ms-flexbox;display:flex}.inline-flex{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.grid{display:grid}.contents{display:contents}.hidden{display:none}.flex-col{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.flex-wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.items-center{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.self-start{-ms-flex-item-align:start;align-self:flex-start}.justify-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.justify-between{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.flex-1{-webkit-box-flex:1;-ms-flex:1 1 0%;flex:1 1 0%}.flex-grow{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.flex-shrink-0{-ms-flex-negative:0;flex-shrink:0}.flex-shrink{-ms-flex-negative:1;flex-shrink:1}.font-sans{font-family:SourceSansPro,Source Sans Pro,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.font-semibold{font-weight:600}.h-4{height:16px}.h-5{height:20px}.h-6{height:24px}.h-8{height:32px}.h-10{height:40px}.h-12{height:48px}.h-20{height:80px}.h-32{height:128px}.h-full{height:100%}.text-xs{font-size:12px}.text-sm{font-size:14px}.text-base{font-size:16px}.text-xl{font-size:20px}.m-2{margin:8px}.my-2{margin-top:8px;margin-bottom:8px}.mx-2{margin-left:8px;margin-right:8px}.mr-1{margin-right:4px}.ml-1{margin-left:4px}.mt-2{margin-top:8px}.mr-2{margin-right:8px}.mb-2{margin-bottom:8px}.ml-2{margin-left:8px}.mt-3{margin-top:12px}.mr-3{margin-right:12px}.ml-3{margin-left:12px}.mb-4{margin-bottom:16px}.mb-8{margin-bottom:32px}.-mt-1{margin-top:-4px}.-mr-1{margin-right:-4px}.-mr-2{margin-right:-8px}.max-w-24{max-width:96px}.max-w-32{max-width:128px}.min-w-24{min-width:96px}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.py-1{padding-top:4px;padding-bottom:4px}.py-2{padding-top:8px;padding-bottom:8px}.px-2{padding-left:8px;padding-right:8px}.px-3{padding-left:12px;padding-right:12px}.py-4{padding-top:16px;padding-bottom:16px}.px-4{padding-left:16px;padding-right:16px}.py-px{padding-top:1px;padding-bottom:1px}.pr-1{padding-right:4px}.pb-1{padding-bottom:4px}.pb-2{padding-bottom:8px}.pb-3{padding-bottom:12px}.pl-3{padding-left:12px}.pt-4{padding-top:16px}.pl-4{padding-left:16px}.pr-5{padding-right:20px}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.top-0{top:0}.right-0{right:0}.resize{resize:both}.shadow{-webkit-box-shadow:0 1px 6px 0 rgba(0,34,51,.1),0 0 0 1px rgba(0,34,51,.1);box-shadow:0 1px 6px 0 rgba(0,34,51,.1),0 0 0 1px rgba(0,34,51,.1)}.shadow-border{-webkit-box-shadow:0 1px 6px -2px rgba(0,34,51,.1);box-shadow:0 1px 6px -2px rgba(0,34,51,.1)}.text-left{text-align:left}.text-right{text-align:right}.text-body-300{color:rgba(0,34,51,.3)}.text-body-400{color:rgba(0,34,51,.5)}.text-body-500{color:rgba(0,34,51,.8)}.hover\\:text-body-400:hover{color:rgba(0,34,51,.5)}.hover\\:text-body-500:hover{color:rgba(0,34,51,.8)}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.select-none{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.visible{visibility:visible}.break-all{word-break:break-all}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.w-5{width:20px}.w-6{width:24px}.w-10{width:40px}.w-40{width:160px}.w-48{width:192px}.w-56{width:224px}.w-full{width:100%}.z-10{z-index:10}.z-20{z-index:20}.gap-y-px{grid-row-gap:1px;row-gap:1px}.transform{--transform-translate-x:0;--transform-translate-y:0;--transform-rotate:0;--transform-skew-x:0;--transform-skew-y:0;--transform-scale-x:1;--transform-scale-y:1;-webkit-transform:translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y));transform:translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y))}.transition{-webkit-transition-property:background-color,border-color,color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform;transition-property:background-color,border-color,color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,-webkit-box-shadow,-webkit-transform}.transition-transform{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform}@-webkit-keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes ping{75%,to{-webkit-transform:scale(2);transform:scale(2);opacity:0}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{-webkit-transform:translateY(-25%);transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{-webkit-transform:none;transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes fade-in-down{0%{opacity:0;-webkit-transform:translateY(-2px);transform:translateY(-2px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes border-rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes border-dash{0%{stroke-dasharray:1,100;stroke-dashoffset:0}50%{stroke-dasharray:80,100;stroke-dashoffset:-20}to{stroke-dasharray:80,100;stroke-dashoffset:-48}}.transition-color{-webkit-transition:color .05s linear,background-color .05s linear,border-color .05s linear,opacity .05s linear;transition:color .05s linear,background-color .05s linear,border-color .05s linear,opacity .05s linear}.transition-transform{-webkit-transition:-webkit-transform .6s cubic-bezier(.175,.885,.32,1.15);transition:-webkit-transform .6s cubic-bezier(.175,.885,.32,1.15);transition:transform .6s cubic-bezier(.175,.885,.32,1.15);transition:transform .6s cubic-bezier(.175,.885,.32,1.15),-webkit-transform .6s cubic-bezier(.175,.885,.32,1.15)}.cv-root{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity));font-family:SourceSansPro,Source Sans Pro,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:16px;color:rgba(0,34,51,.8);-webkit-box-sizing:border-box;box-sizing:border-box;position:relative}.cv-root *,.cv-root :after,.cv-root :before{-webkit-box-sizing:inherit;box-sizing:inherit}.cv-container{overflow:hidden;width:100%;height:100%}.cv-container nav:last-of-type{-webkit-box-shadow:0 1px 0 0 rgba(0,34,51,.1),0 1px 6px 0 rgba(0,34,51,.1);box-shadow:0 1px 0 0 rgba(0,34,51,.1),0 1px 6px 0 rgba(0,34,51,.1)}.cv-dropdown{position:fixed;border-width:1px;border-color:rgba(0,34,51,.1);-webkit-animation:fade-in-down .15s ease-out;animation:fade-in-down .15s ease-out;margin-top:4px;margin-bottom:4px;overflow-y:auto;border-radius:5px;-webkit-box-shadow:0 4px 10px 0 rgba(0,34,51,.1);box-shadow:0 4px 10px 0 rgba(0,34,51,.1);z-index:9999999;overflow-y:hidden;-webkit-transition:left .1s ease-out;transition:left .1s ease-out}.card-list{padding-left:8px;padding-right:8px;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-line-pack:start;align-content:flex-start;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.max-h-400{max-height:400px}.max-w-600{max-width:600px}.spinner{-webkit-animation:border-rotate 1s linear infinite;animation:border-rotate 1s linear infinite;z-index:2;position:absolute;top:50%;left:50%;margin:-10px 0 0 -10px;width:20px;height:20px}.spinner circle{stroke:currentColor;stroke-linecap:round;-webkit-animation:border-dash 1.5s ease-in-out infinite;animation:border-dash 1.5s ease-in-out infinite}.fade-in{-webkit-animation:fade-in .15s ease-out;animation:fade-in .15s ease-out}.fade-in-down{-webkit-animation:fade-in-down .15s ease-out;animation:fade-in-down .15s ease-out}.cv-skeleton{overflow:hidden;display:inline-block;position:relative;border-radius:4px;background-color:rgba(0,34,51,.05)}.cv-skeleton:before{position:absolute;height:100%;top:0;-webkit-animation:cv-skeleton-progress 1.5s ease-in-out infinite;animation:cv-skeleton-progress 1.5s ease-in-out infinite;content:"";width:500px;left:-500px;background-image:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,0)),color-stop(hsla(0,0%,100%,.6)),to(hsla(0,0%,100%,0)));background-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.6),hsla(0,0%,100%,0))}@keyframes cv-skeleton-progress{0%{left:-500px}to{left:100%}}.fa-lg{line-height:1.05em}.z-a-lot{z-index:999999}button:focus{outline:revert}',ty(null!=e?e:document.head,t),n&&ty(document.head,ry),u(null!=n?n:c.current)}}),[]),t.createElement("div",{ref:c,style:{display:"flex",height:"100%"},"data-testid":"root"},s&&t.createElement(Fa,{value:s},t.createElement(Qv,null,g(t.createElement(oy,{isLoginInContainer:i,"data-testid":"ShadowRootInternalContainer"},n),s))))}function ty(e,t){var n=document.createElement("style"),r=document.createTextNode(t);n.appendChild(r),e.appendChild(n)}var ny,ry="\n@font-face {\n font-family: 'Source Sans Pro';\n font-style: normal;\n font-weight: 400;\n src: local('Source Sans Pro Regular'),\n local('SourceSansPro-Regular'),\n url('".concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/includes/fonts/SourceSans/sourcesanspro-regular.woff2') format('woff2'),\n url('").concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/includes/fonts/SourceSans/sourcesanspro-regular.woff') format('woff');\n }\n \n @font-face {\n font-family: \"FontAwesome\";\n src: url(\"").concat("https://d8ejoa1fys2rk.cloudfront.net",'/5.0.5/includes/fonts/fontawesome-webfont.woff2?v=4.7.0") format("woff2"),\n url("').concat("https://d8ejoa1fys2rk.cloudfront.net",'/5.0.5/includes/fonts/fontawesome-webfont.woff?v=4.7.0") format("woff");\n font-weight: 400;\n font-style: normal;\n }\n'),oy=ql.div(ny||(ny=_a(["\n\twidth: ",";\n\tfont-family: 'Source Sans Pro';\n"],["\n\twidth: ",";\n\tfont-family: 'Source Sans Pro';\n"])),(function(e){return e.isLoginInContainer?"100%":"auto"})),iy=n("parent");function ay(e){var n=e.children,r=e.isLoginInContainer,o=void 0!==r&&r;return"parent"===i(iy)?t.createElement(iy.Provider,{value:"child"},t.createElement(ey,{isLoginInContainer:o},n)):t.createElement(t.Fragment,null,n)}var cy=n(null),ly=function(){return i(cy)};function sy(e){var n=e.children,i=e.isOpen,c=void 0===i||i,l=e.style,s=e.onClose,u=void 0===s?function(){}:s,d=r(null),p=d[0],f=d[1],m=o((function(){return{onClose:u}}),[u]);return a((function(){var e=document.createElement("div");return document.body.appendChild(e),f(e),function(){e.remove()}}),[]),c?t.createElement(cy.Provider,{value:m},p&&t.createElement(t.Fragment,null,g(t.createElement(ay,null,t.createElement(py,{className:"z-a-lot"},t.createElement(fy,{style:l,"data-testid":"modal"},n))),p))):null}var uy,dy,py=ql.div(uy||(uy=_a(["\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tpadding: ",";\n\tposition: fixed;\n\tanimation: var(--fade-in-down);\n\tbackground: ",";\n"],["\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tpadding: ",";\n\tposition: fixed;\n\tanimation: var(--fade-in-down);\n\tbackground: ",";\n"])),Dp.spacing5,Dp.gray100a),fy=ql.div(dy||(dy=_a(["\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\theight: 100%;\n\twidth: 100%;\n\toverflow: hidden;\n\tborder-radius: ",";\n"],["\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\theight: 100%;\n\twidth: 100%;\n\toverflow: hidden;\n\tborder-radius: ",";\n"])),Dp.radiusBase);function my(e){var n=ly();return t.createElement(yy,{className:"cv-root",style:{minHeight:320}},null!==n&&t.createElement(by,{variant:"clean",onClick:n.onClose,title:qg("Close"),icon:t.createElement(Iu,null)}),t.createElement(wy,null,e.children))}var hy,gy,vy,yy=ql.div(hy||(hy=_a(["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tjustify-content: center;\n\tposition: relative;\n\tbackground-color: ",";\n"],["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tjustify-content: center;\n\tposition: relative;\n\tbackground-color: ",";\n"])),Dp.gray10),by=ql(ef)(gy||(gy=_a(["\n\tposition: absolute;\n\ttop: ",";\n\tright: ",";\n"],["\n\tposition: absolute;\n\ttop: ",";\n\tright: ",";\n"])),Dp.spacing4,Dp.spacing5),wy=ql.div(vy||(vy=_a(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tfont-size: ",";\n"],["\n\tdisplay: flex;\n\tflex-direction: column;\n\tfont-size: ",";\n"])),Dp.fontSize300);function xy(){return t.createElement(t.Fragment,null,t.createElement("svg",{viewBox:"0 0 479.438 361.46",className:"w-10 mb-8",style:{width:40,marginBottom:32}},t.createElement("path",{d:"\n\t\t\t\t\t\tM365.18 0a114 114 0 00-85.9 38.93l-153.18 153-43.82-43.84a45.18 45.18\n\t\t\t\t\t\t0 01-11.54-30.75 46.06 46.06 0 0146.34-46.08 44.81 44.81 0 0130.42\n\t\t\t\t\t\t11.49c2.73 2.42 10.48 10.43 10.48 10.43l48.5-48.51-14-14C172.19 11.43\n\t\t\t\t\t\t144.48.03 114.3.03 51.24.03 0 51.03 0 114.1a115.08 115.08 0 0028.09\n\t\t\t\t\t\t75.46l98.35 98.77 205.53-205.5a44.78 44.78 0 0130.58-11.57 46.07 46.07 0\n\t\t\t\t\t\t0146.06 46.43 45.07 45.07 0 01-11.52 30.5l-136.6 136.57a28.73 28.73 0\n\t\t\t\t\t\t01-20.83 8.58 28.29 28.29 0 01-20.51-8.92l-10.27-10.16-48.28 48.28 9.88\n\t\t\t\t\t\t9.72a97.06 97.06 0 0069.38 29.2h.07a96 96 0\n\t\t\t\t\t\t0069-29.13l142.35-142.67A114.47 114.47 0 00365.18 0z",fill:"#0af"})),t.createElement("h1",{className:"text-xl mb-2",style:{fontSize:20,margin:0,marginBottom:8,fontWeight:400}},qg("Connect your brand portal")))}function Ey(e){var n=hv("w-6 h-6 text-body-300",e.className);return t.createElement("div",{"data-testid":"spinner",className:n},t.createElement("svg",{className:"spinner",viewBox:"0 0 20 20"},t.createElement("circle",{cx:"10",cy:"10",r:"8",fill:"none",strokeWidth:"3"})))}function Cy(e){var n=e.status,r=e.isReadOnly,o=e.value,i=e.onChange,a=e.onSubmit;return t.createElement(_y,null,t.createElement(qh,{type:"url",value:o,placeholder:"yourdomain.bynder.com",label:qg("Enter the portal domain"),onChange:i,onKeyDown:function(e){"valid"===n&&13===e.keyCode&&a()},isInvalid:"invalid"===n,helperText:"invalid"===n&&qg("This portal domain does not exist"),hasClearButton:"validating"!==n&&!r,iconRight:"validating"===n?t.createElement(Iy,{role:"alert","aria-live":"polite"},t.createElement(Ey,{className:"relative right-0"})):void 0,isDisabled:r,"data-testid":"login-input"}))}var ky,Sy,_y=ql.div(ky||(ky=_a(["\n\tmargin: "," 0;\n\twidth: 320px;\n"],["\n\tmargin: "," 0;\n\twidth: 320px;\n"])),Dp.spacing4),Iy=ql.div(Sy||(Sy=_a(["\n\theight: 100%;\n\tdisplay: flex;\n\talign-items: center;\n"],["\n\theight: 100%;\n\tdisplay: flex;\n\talign-items: center;\n"])));function By(e){return t.createElement(ef,{variant:"primary",isDisabled:!e.isValidDomain||e.isSubmitting,onClick:e.onClick,isLoading:e.isSubmitting,"data-testid":"login-button"},qg("Connect"))}function Ty(e){return t.createElement(my,null,t.createElement(xy,null),t.createElement(Cy,{value:e.domainValue,isReadOnly:!1===e.isEditable||e.isSubmitting,onChange:e.onChangeDomain,onSubmit:e.onSubmit,status:e.domainStatus}),t.createElement(By,{isValidDomain:"valid"===e.domainStatus,isSubmitting:e.isSubmitting,onClick:e.onSubmit}))}var Ny=function(e){function n(t){var n=e.call(this,t)||this;return n.state={error:null},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}wa(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(n,e),n.getDerivedStateFromError=function(e){return{error:e}},n.prototype.render=function(){var e=this;return this.state.error?t.createElement(dv,{error:this.state.error,onRetry:function(){return e.setState({error:null})}}):this.props.children},n}(t.Component);function zy(){return t.createElement("div",{role:"alert","aria-live":"polite",className:"bg-ui-0 w-full h-full"}," ",t.createElement(Ey,null)," ")}var Dy=n(null);function Py(e){var n,o,i,l,s,u,d,p,f;Kg(null!==(n=e.language)&&void 0!==n?n:"en_US");var m=function(){var e,t,n=r(void 0),o=n[0],i=n[1],l=r(null!==(e=localStorage.getItem("cvrt"))&&void 0!==e?e:void 0),s=l[0],u=l[1],d=r(null!==(t=localStorage.getItem("cvad"))&&void 0!==t?t:void 0),p=d[0],f=d[1],m=r(w()),h=m[0],g=m[1],v=c();function y(e){i((function(){return e.getAccessToken})),u(e.refreshToken),f(e.accountDomain),g(w(e.getAccessToken,e.refreshToken)),e.accountDomain&&localStorage.setItem("cvad",e.accountDomain),e.refreshToken&&localStorage.setItem("cvrt",e.refreshToken),v.current&&clearTimeout(v.current),e.expiresIn&&(v.current=setTimeout((function(){i(void 0)}),1e3*e.expiresIn))}function b(){var e;i(void 0),u(void 0),f(null!==(e=localStorage.getItem("cvad"))&&void 0!==e?e:void 0),g("not-authenticated"),localStorage.removeItem("cvrt"),v.current&&clearTimeout(v.current)}function w(e,t){return void 0===e&&(e=o),void 0===t&&(t=s),void 0!==e?"authenticated":void 0!==t?"refreshing":"not-authenticated"}return a((function(){return function(){v.current&&clearTimeout(v.current)}}),[]),a((function(){o&&o()||!s||!p||(g("refreshing"),function(e,t){return Ca(this,void 0,void 0,(function(){var n,r,o,i;return ka(this,(function(a){switch(a.label){case 0:n=Yv(t)+"token",r=new URLSearchParams({client_id:Uv,refresh_token:e,grant_type:"refresh_token"}),a.label=1;case 1:return a.trys.push([1,4,,5]),[4,fetch(n,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:r})];case 2:return(o=a.sent()).ok?[4,o.json()]:[2,Pv("Failed to fetch refresh token: ".concat(o.status))];case 3:return[2,Dv({accessToken:(i=a.sent()).access_token,expiresIn:i.expires_in})];case 4:return[2,Pv(a.sent().toString())];case 5:return[2]}}))}))}(s,p).then((function(e){Ov(e)?y({getAccessToken:function(){return e.value.accessToken},expiresIn:e.value.expiresIn,refreshToken:s,accountDomain:p}):(Aa.error(e.error),b())})))}),[o,s,p]),[{getAccessToken:o,accountDomain:p,status:h},y,b]}(),h=m[0],g=m[1],v=m[2],y=function(e){var t=r(null!=e?e:""),n=t[0],o=t[1],i=r(e?"validating":"empty"),l=i[0],s=i[1],u=c();return a((function(){if(n){var e=!1;return u.current=setTimeout((function(){(function(e){return Ca(this,void 0,void 0,(function(){var t,n,r;return ka(this,(function(o){switch(o.label){case 0:t=Rv(e.trim())+"feeds/media/is-bynder-portal/",o.label=1;case 1:return o.trys.push([1,4,,5]),[4,fetch(t)];case 2:return[4,(n=o.sent()).json()];case 3:return r=o.sent(),200===n.status&&"application/json;charset=UTF-8"===n.headers.get("Content-Type")?[2,r.webdam?"webdam":"bynder"]:[2,"invalid"];case 4:return o.sent(),[2,"invalid"];case 5:return[2]}}))}))})(n).then((function(t){e||(s("invalid"!==t?"valid":"invalid"),localStorage.setItem("cvp",t))}))}),1e3),function(){e=!0}}}),[n]),[n,function(e){u.current&&clearTimeout(u.current),o(e),s(""===e?"empty":"validating")},l]}(null!==(i=null===(o=e.portal)||void 0===o?void 0:o.url)&&void 0!==i?i:h.accountDomain),b=y[0],w=y[1],x=y[2],E=r(!1),C=E[0],k=E[1];a((function(){var t,n;(null===(t=e.authentication)||void 0===t?void 0:t.hideLogout)&&!(null===(n=e.authentication)||void 0===n?void 0:n.getAccessToken)&&Aa.error("The hideLogout property can only be used in combination with getAccessToken property")}),[null===(l=e.authentication)||void 0===l?void 0:l.hideLogout,null===(s=e.authentication)||void 0===s?void 0:s.getAccessToken]),a((function(){var t,n;(null===(t=e.authentication)||void 0===t?void 0:t.getAccessToken)&&g({getAccessToken:e.authentication.getAccessToken,accountDomain:null===(n=e.portal)||void 0===n?void 0:n.url})}),[null===(u=e.authentication)||void 0===u?void 0:u.getAccessToken]),a((function(){var e=!0;return!0===C&&function(e){return Ca(this,void 0,void 0,(function(){var t,n,r,o,i,a,c,l,s,u,d;return ka(this,(function(p){switch(p.label){case 0:t=Hv(),p.label=1;case 1:return p.trys.push([1,3,,4]),[4,jv(t)];case 2:return n=p.sent(),[3,4];case 3:return[2,Pv(p.sent().toString())];case 4:return f=n,r=btoa(String.fromCharCode.apply(null,Array.from(new Uint8Array(f)))).replace(/\+/g,"-").replace(/\//g,"_").replace(/[=]+$/,""),o=Hv(),i=function(e,t,n){var r={client_id:Uv,code_challenge:e,code_challenge_method:"S256",redirect_uri:$v,response_type:"code",scope:Gv.join(" "),domain:"",state:t},o="auth?";"webdam"===Kv()&&(o="authorize?",delete r.scope,r.domain=n);var i=new URLSearchParams(r);return Yv(n)+o+i}(r,o,e),[4,Xv(i)];case 5:return Av(a=p.sent())?[2,a]:a.value.state!==o||null===a.value.code?[2,Pv("Error logging in")]:[4,qv(a.value.code,t,e)];case 6:return Av(c=p.sent())?[2,c]:(l=c.value,s=l.refreshToken,u=l.accessToken,d=l.expiresIn,[2,Dv({accessToken:u,expiresIn:parseFloat(d),refreshToken:s})])}var f}))}))}(b).then((function(t){e&&(function(e){if(Ov(e)){var t=e.value,n=t.accessToken,r=t.refreshToken,o=t.expiresIn;g({getAccessToken:function(){return n},refreshToken:r,expiresIn:o,accountDomain:b})}else Aa.error(e.error)}(t),k(!1))})),function(){e=!1}}),[C,b]);var S=xa(xa({},h),{logout:function(){v()},hideLogout:!!(null===(d=e.authentication)||void 0===d?void 0:d.getAccessToken)&&e.authentication.hideLogout});switch(h.status){case"authenticated":return t.createElement(Dy.Provider,{value:S},e.children);case"not-authenticated":return t.createElement(ay,{isLoginInContainer:!0},t.createElement(Ty,{domainValue:b,domainStatus:x,onChangeDomain:w,isSubmitting:C,isEditable:null===(f=null===(p=e.portal)||void 0===p?void 0:p.editable)||void 0===f||f,onSubmit:function(){k(!0)}}));case"refreshing":return t.createElement(zy,null)}}var Oy=function(e){return t.createElement(Ny,null,t.createElement(Py,xa({},e)))},Ay=function(){return i(Dy)},Ry="\nfragment DisplayAsset on Asset {\n __typename\n id\n derivatives {\n thumbnail\n }\n extensions\n name\n url\n isArchived\n isWatermarked\n\tisLimitedUse\n\tfiles\n\tmetaproperties {\n\t\tnodes {\n\t\t id\n\t\t label(language: $language)\n\t\t showInGridView\n\t\t showInListView\n\t\t options {\n\t\t\tid\n\t\t\tlabel(language: $language)\n\t\t\tassetCount\n\t\t }\n\t\t}\n\t}\n}",Fy="\n query searchAssets($filter: AssetFilter!, $after: Cursor, $orderBy: AssetOrder!, $language: String) {\n searchAssets(filter: $filter) {\n assets(after: $after, first: 50, orderBy: $orderBy) {\n nodes {\n __typename\n ...DisplayAsset\n }\n\t\t\t\ttotalCount\n\t\t\t\tpageInfo {\n\t\t\t\t\tendCursor\n\t\t\t\t\thasNextPage\n }\n }\n }\n }\n ".concat(Ry,"\n");function Ly(e){var t,n,o,i,c,l=this,s=Ay(),u=r({tag:"Loading",value:null}),d=u[0],p=u[1],f=!1,m=function(t){return Ca(l,void 0,void 0,(function(){var n,r;return ka(this,(function(o){switch(o.label){case 0:return p((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),n=My(e,null!=t?t:null),[4,Mv(Fy,n,s)];case 1:return r=o.sent(),f||(Av(r)?p({tag:"Failure",value:r.error}):h(r,t)),[2]}}))}))},h=function(e,t){jy(d)&&t?p((function(t){var n,r,o=null!==(r=null===(n=jy(t))||void 0===n?void 0:n.nodes)&&void 0!==r?r:[];return{tag:"Loaded",value:{searchAssets:{assets:xa(xa({},e.value.searchAssets.assets),{nodes:Sa(Sa([],o,!0),e.value.searchAssets.assets.nodes,!0)})}}}})):p({tag:"Loaded",value:e.value})};return a((function(){return m(),function(){f=!0}}),[null===(t=e.filter)||void 0===t?void 0:t.assetTypes,null===(n=e.filter)||void 0===n?void 0:n.metaproperties,null===(o=e.filter)||void 0===o?void 0:o.tags,null===(i=e.filter)||void 0===i?void 0:i.isLimited,e.collection,e.orderBy,e.searchTerm,e.language]),{data:d,executeQuery:function(){return m()},isLoading:!d||"Loading"===d.tag,loadMore:function(){var e;return m(null===(e=jy(d))||void 0===e?void 0:e.pageInfo.endCursor)},hasNextPage:!!(null===(c=jy(d))||void 0===c?void 0:c.pageInfo.hasNextPage)}}var My=function(e,t){var n,r,o,i,a,c=e.filter,l=e.predefinedFilter,s=e.collection,u=e.orderBy,d=e.allAssetTypes,p=e.searchTerm,f=e.language,m=(null===(n=null==c?void 0:c.assetTypes)||void 0===n?void 0:n.length)?c.assetTypes:null==l?void 0:l.assetType_in;return{orderBy:u,filter:{collectionId:null!==(r=null==s?void 0:s.id)&&void 0!==r?r:null==l?void 0:l.collectionId,assetType_in:null!=m?m:d,metapropertyOptionId_in:null!==(o=Hy(null==c?void 0:c.metaproperties))&&void 0!==o?o:null==l?void 0:l.metapropertyOptionId_in,searchTerm:null!==(i=null!=p?p:null==l?void 0:l.searchTerm)&&void 0!==i?i:null,tagNames_in:null!==(a=null==c?void 0:c.tags)&&void 0!==a?a:null==l?void 0:l.tagNames_in,isLimitedUse:null==c?void 0:c.isLimited},after:t,language:f}},jy=function(e,t){var n,r=null!=t?t:e;if("Failure"!==r.tag)return null===(n=r.value)||void 0===n?void 0:n.searchAssets.assets},Hy=function(e){return e?e.map((function(e){return e.id})):null};function Uy(e,t,n){return Ca(this,void 0,void 0,(function(){var r;return ka(this,(function(o){switch(o.label){case 0:return[4,Mv("\n query getAssetsById($ids: [ID!]!, $language: String) {\n nodes(ids: $ids) {\n __typename\n id\n ...on Asset {\n ...DisplayAsset\n files\n }\n }\n }\n ".concat(Ry),{ids:e,language:n},t)];case 1:return Av(r=o.sent())?[2,r]:[2,Dv(r.value.nodes)]}}))}))}var Vy="object"==typeof v&&v&&v.Object===Object&&v,$y=Vy,Wy="object"==typeof self&&self&&self.Object===Object&&self,Gy=$y||Wy||Function("return this")(),qy=Gy.Symbol,Yy=qy,Ky=Object.prototype,Xy=Ky.hasOwnProperty,Zy=Ky.toString,Jy=Yy?Yy.toStringTag:void 0,Qy=Object.prototype.toString,eb=function(e){var t=Xy.call(e,Jy),n=e[Jy];try{e[Jy]=void 0;var r=!0}catch(e){}var o=Zy.call(e);return r&&(t?e[Jy]=n:delete e[Jy]),o},tb=qy?qy.toStringTag:void 0,nb=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":tb&&tb in Object(e)?eb(e):function(e){return Qy.call(e)}(e)},rb=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},ob=nb,ib=rb,ab=Gy["__core-js_shared__"],cb=function(){var e=/[^.]+$/.exec(ab&&ab.keys&&ab.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),lb=Function.prototype.toString,sb=function(e){if(null!=e){try{return lb.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ub=function(e){if(!ib(e))return!1;var t=ob(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},db=function(e){return!!cb&&cb in e},pb=rb,fb=sb,mb=/^\[object .+?Constructor\]$/,hb=Function.prototype,gb=Object.prototype,vb=hb.toString,yb=gb.hasOwnProperty,bb=RegExp("^"+vb.call(yb).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wb=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!pb(e)||db(e))&&(ub(e)?bb:mb).test(fb(e))}(n)?n:void 0},xb=wb(Gy,"DataView"),Eb=wb(Gy,"Map"),Cb=wb(Gy,"Promise"),kb=wb(Gy,"Set"),Sb=wb(Gy,"WeakMap"),_b=nb,Ib=sb,Bb=Ib(xb),Tb=Ib(Eb),Nb=Ib(Cb),zb=Ib(kb),Db=Ib(Sb),Pb=_b;(xb&&"[object DataView]"!=Pb(new xb(new ArrayBuffer(1)))||Eb&&"[object Map]"!=Pb(new Eb)||Cb&&"[object Promise]"!=Pb(Cb.resolve())||kb&&"[object Set]"!=Pb(new kb)||Sb&&"[object WeakMap]"!=Pb(new Sb))&&(Pb=function(e){var t=_b(e),n="[object Object]"==t?e.constructor:void 0,r=n?Ib(n):"";if(r)switch(r){case Bb:return"[object DataView]";case Tb:return"[object Map]";case Nb:return"[object Promise]";case zb:return"[object Set]";case Db:return"[object WeakMap]"}return t});var Ob,Ab=nb,Rb=function(e){return null!=e&&"object"==typeof e},Fb=Object.prototype;Fb.hasOwnProperty,Fb.propertyIsEnumerable,Ob=function(){return arguments}(),Rb(Ob)&&Ab(Ob);var Lb={exports:{}},Mb=function(){return!1};!function(e,t){var n=Gy,r=Mb,o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,c=(a?a.isBuffer:void 0)||r;e.exports=c}(Lb,Lb.exports);var jb={exports:{}};!function(e,t){var n=Vy,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,a=function(){try{return o&&o.require&&o.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}(jb,jb.exports);var Hb={},Ub={"text/plain":"Text","text/html":"Url",default:"Text"};function Vb(e){return Vb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vb(e)}Object.defineProperty(Hb,"__esModule",{value:!0}),Hb.CopyToClipboard=void 0;var $b=qb(t),Wb=qb((function(e,t){var n,r,o,i,a,c,l=!1;t||(t={}),n=t.debug||!1;try{if(o=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}(),i=document.createRange(),a=document.getSelection(),(c=document.createElement("span")).textContent=e,c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=Ub[t.format]||Ub.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),i.selectNodeContents(c),a.addRange(i),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(o){n&&console.error("unable to copy using execCommand: ",o),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(o){n&&console.error("unable to copy using clipboardData: ",o),n&&console.error("falling back to prompt"),r=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(r,e)}}finally{a&&("function"==typeof a.removeRange?a.removeRange(i):a.removeAllRanges()),c&&document.body.removeChild(c),o()}return l})),Gb=["text","onCopy","options","children"];function qb(e){return e&&e.__esModule?e:{default:e}}function Yb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yb(Object(n),!0).forEach((function(t){nw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Jb(e,t){return Jb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Jb(e,t)}function Qb(e,t){if(t&&("object"===Vb(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ew(e)}function ew(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tw(e){return tw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},tw(e)}function nw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rw=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jb(e,t)}(a,$b.default.PureComponent);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=tw(r);if(o){var n=tw(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Qb(this,e)});function a(){var e;Xb(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return nw(ew(e=i.call.apply(i,[this].concat(n))),"onClick",(function(t){var n=e.props,r=n.text,o=n.onCopy,i=n.children,a=n.options,c=$b.default.Children.only(i),l=(0,Wb.default)(r,a);o&&o(r,l),c&&c.props&&"function"==typeof c.props.onClick&&c.props.onClick(t)})),e}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.children,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Gb),r=$b.default.Children.only(t);return $b.default.cloneElement(r,Kb(Kb({},n),{},{onClick:this.onClick}))}}])&&Zb(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}();Hb.CopyToClipboard=rw,nw(rw,"defaultProps",{onCopy:void 0,options:void 0});var ow=Hb.CopyToClipboard;ow.CopyToClipboard=ow;var iw=ow;let aw=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};function cw(e){return Is({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 22l-4-4h8l-4 4zm0-20l4 4H8l4-4zm0 12a2 2 0 1 1 0-4 2 2 0 0 1 0 4zM2 12l4-4v8l-4-4zm20 0l-4 4V8l4 4z"}}]}]})(e)}var lw={exports:{}},sw=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}},uw=sw,dw=Object.prototype.toString;function pw(e){return"[object Array]"===dw.call(e)}function fw(e){return void 0===e}function mw(e){return null!==e&&"object"==typeof e}function hw(e){if("[object Object]"!==dw.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function gw(e){return"[object Function]"===dw.call(e)}function vw(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),pw(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var yw={isArray:pw,isArrayBuffer:function(e){return"[object ArrayBuffer]"===dw.call(e)},isBuffer:function(e){return null!==e&&!fw(e)&&null!==e.constructor&&!fw(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:mw,isPlainObject:hw,isUndefined:fw,isDate:function(e){return"[object Date]"===dw.call(e)},isFile:function(e){return"[object File]"===dw.call(e)},isBlob:function(e){return"[object Blob]"===dw.call(e)},isFunction:gw,isStream:function(e){return mw(e)&&gw(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:vw,merge:function e(){var t={};function n(n,r){hw(t[r])&&hw(n)?t[r]=e(t[r],n):hw(n)?t[r]=e({},n):pw(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)vw(arguments[r],n);return t},extend:function(e,t,n){return vw(t,(function(t,r){e[r]=n&&"function"==typeof t?uw(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}},bw=yw;function ww(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var xw=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(bw.isURLSearchParams(t))r=t.toString();else{var o=[];bw.forEach(t,(function(e,t){null!=e&&(bw.isArray(e)?t+="[]":e=[e],bw.forEach(e,(function(e){bw.isDate(e)?e=e.toISOString():bw.isObject(e)&&(e=JSON.stringify(e)),o.push(ww(t)+"="+ww(e))})))})),r=o.join("&")}if(r){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e},Ew=yw;function Cw(){this.handlers=[]}Cw.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},Cw.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},Cw.prototype.forEach=function(e){Ew.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var kw=Cw,Sw=yw,_w=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e},Iw=_w,Bw=function(e,t,n,r,o){var i=new Error(e);return Iw(i,t,n,r,o)},Tw=Bw,Nw=yw,zw=Nw.isStandardBrowserEnv()?{write:function(e,t,n,r,o,i){var a=[];a.push(e+"="+encodeURIComponent(t)),Nw.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Nw.isString(r)&&a.push("path="+r),Nw.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},Dw=yw,Pw=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],Ow=yw,Aw=Ow.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=Ow.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0},Rw=yw,Fw=zw,Lw=xw,Mw=Aw,jw=Bw,Hw=yw,Uw=function(e,t){Sw.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))},Vw=_w,$w={"Content-Type":"application/x-www-form-urlencoded"};function Ww(e,t){!Hw.isUndefined(e)&&Hw.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var Gw,qw={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(Gw=function(e){return new Promise((function(t,n){var r=e.data,o=e.headers,i=e.responseType;Rw.isFormData(r)&&delete o["Content-Type"];var a=new XMLHttpRequest;if(e.auth){var c=e.auth.username||"",l=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.Authorization="Basic "+btoa(c+":"+l)}var s,u,d=(s=e.baseURL,u=e.url,s&&!/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(u)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(s,u):u);function p(){if(a){var r="getAllResponseHeaders"in a?function(e){var t,n,r,o={};return e?(Dw.forEach(e.split("\n"),(function(e){if(r=e.indexOf(":"),t=Dw.trim(e.substr(0,r)).toLowerCase(),n=Dw.trim(e.substr(r+1)),t){if(o[t]&&Pw.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}(a.getAllResponseHeaders()):null,o={data:i&&"text"!==i&&"json"!==i?a.response:a.responseText,status:a.status,statusText:a.statusText,headers:r,config:e,request:a};(function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(Tw("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)})(t,n,o),a=null}}if(a.open(e.method.toUpperCase(),Lw(d,e.params,e.paramsSerializer),!0),a.timeout=e.timeout,"onloadend"in a?a.onloadend=p:a.onreadystatechange=function(){a&&4===a.readyState&&(0!==a.status||a.responseURL&&0===a.responseURL.indexOf("file:"))&&setTimeout(p)},a.onabort=function(){a&&(n(jw("Request aborted",e,"ECONNABORTED",a)),a=null)},a.onerror=function(){n(jw("Network Error",e,null,a)),a=null},a.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(jw(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",a)),a=null},Rw.isStandardBrowserEnv()){var f=(e.withCredentials||Mw(d))&&e.xsrfCookieName?Fw.read(e.xsrfCookieName):void 0;f&&(o[e.xsrfHeaderName]=f)}"setRequestHeader"in a&&Rw.forEach(o,(function(e,t){void 0===r&&"content-type"===t.toLowerCase()?delete o[t]:a.setRequestHeader(t,e)})),Rw.isUndefined(e.withCredentials)||(a.withCredentials=!!e.withCredentials),i&&"json"!==i&&(a.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&a.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&a.upload&&a.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){a&&(a.abort(),n(e),a=null)})),r||(r=null),a.send(r)}))}),Gw),transformRequest:[function(e,t){return Uw(t,"Accept"),Uw(t,"Content-Type"),Hw.isFormData(e)||Hw.isArrayBuffer(e)||Hw.isBuffer(e)||Hw.isStream(e)||Hw.isFile(e)||Hw.isBlob(e)?e:Hw.isArrayBufferView(e)?e.buffer:Hw.isURLSearchParams(e)?(Ww(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):Hw.isObject(e)||t&&"application/json"===t["Content-Type"]?(Ww(t,"application/json"),function(e,t,n){if(Hw.isString(e))try{return(0,JSON.parse)(e),Hw.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||r&&Hw.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw Vw(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Hw.forEach(["delete","get","head"],(function(e){qw.headers[e]={}})),Hw.forEach(["post","put","patch"],(function(e){qw.headers[e]=Hw.merge($w)}));var Yw=qw,Kw=yw,Xw=Yw,Zw=function(e){return!(!e||!e.__CANCEL__)},Jw=yw,Qw=function(e,t,n){var r=this||Xw;return Kw.forEach(n,(function(n){e=n.call(r,e,t)})),e},ex=Zw,tx=Yw;function nx(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var rx=yw,ox=function(e,t){t=t||{};var n={},r=["url","method","data"],o=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function c(e,t){return rx.isPlainObject(e)&&rx.isPlainObject(t)?rx.merge(e,t):rx.isPlainObject(t)?rx.merge({},t):rx.isArray(t)?t.slice():t}function l(r){rx.isUndefined(t[r])?rx.isUndefined(e[r])||(n[r]=c(void 0,e[r])):n[r]=c(e[r],t[r])}rx.forEach(r,(function(e){rx.isUndefined(t[e])||(n[e]=c(void 0,t[e]))})),rx.forEach(o,l),rx.forEach(i,(function(r){rx.isUndefined(t[r])?rx.isUndefined(e[r])||(n[r]=c(void 0,e[r])):n[r]=c(void 0,t[r])})),rx.forEach(a,(function(r){r in t?n[r]=c(e[r],t[r]):r in e&&(n[r]=c(void 0,e[r]))}));var s=r.concat(o).concat(i).concat(a),u=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===s.indexOf(e)}));return rx.forEach(u,l),n},ix={name:"axios",version:"0.21.4",description:"Promise based HTTP client for the browser and node.js",main:"index.js",scripts:{test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository:{type:"git",url:"https://github.com/axios/axios.git"},keywords:["xhr","http","ajax","promise","node"],author:"Matt Zabriskie",license:"MIT",bugs:{url:"https://github.com/axios/axios/issues"},homepage:"https://axios-http.com",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr:"dist/axios.min.js",unpkg:"dist/axios.min.js",typings:"./index.d.ts",dependencies:{"follow-redirects":"^1.14.0"},bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}]},ax={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){ax[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var cx={},lx=ix.version.split(".");function sx(e,t){for(var n=t?t.split("."):lx,r=e.split("."),o=0;o<3;o++){if(n[o]>r[o])return!0;if(n[o]<r[o])return!1}return!1}ax.transitional=function(e,t,n){var r=t&&sx(t);function o(e,t){return"[Axios v"+ix.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,a){if(!1===e)throw new Error(o(i," has been removed in "+t));return r&&!cx[i]&&(cx[i]=!0,console.warn(o(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,a)}};var ux={isOlderVersion:sx,assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var c=e[i],l=void 0===c||a(c,i,e);if(!0!==l)throw new TypeError("option "+i+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:ax},dx=yw,px=xw,fx=kw,mx=function(e){return nx(e),e.headers=e.headers||{},e.data=Qw.call(e,e.data,e.headers,e.transformRequest),e.headers=Jw.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Jw.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||tx.adapter)(e).then((function(t){return nx(e),t.data=Qw.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return ex(t)||(nx(e),t&&t.response&&(t.response.data=Qw.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},hx=ox,gx=ux,vx=gx.validators;function yx(e){this.defaults=e,this.interceptors={request:new fx,response:new fx}}yx.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=hx(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&gx.assertOptions(t,{silentJSONParsing:vx.transitional(vx.boolean,"1.0.0"),forcedJSONParsing:vx.transitional(vx.boolean,"1.0.0"),clarifyTimeoutError:vx.transitional(vx.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!r){var a=[mx,void 0];for(Array.prototype.unshift.apply(a,n),a=a.concat(i),o=Promise.resolve(e);a.length;)o=o.then(a.shift(),a.shift());return o}for(var c=e;n.length;){var l=n.shift(),s=n.shift();try{c=l(c)}catch(e){s(e);break}}try{o=mx(c)}catch(e){return Promise.reject(e)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},yx.prototype.getUri=function(e){return e=hx(this.defaults,e),px(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},dx.forEach(["delete","get","head","options"],(function(e){yx.prototype[e]=function(t,n){return this.request(hx(n||{},{method:e,url:t,data:(n||{}).data}))}})),dx.forEach(["post","put","patch"],(function(e){yx.prototype[e]=function(t,n,r){return this.request(hx(r||{},{method:e,url:t,data:n}))}}));var bx=yx;function wx(e){this.message=e}wx.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},wx.prototype.__CANCEL__=!0;var xx=wx,Ex=xx;function Cx(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new Ex(e),t(n.reason))}))}Cx.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Cx.source=function(){var e;return{token:new Cx((function(t){e=t})),cancel:e}};var kx=Cx,Sx=yw,_x=sw,Ix=bx,Bx=ox;function Tx(e){var t=new Ix(e),n=_x(Ix.prototype.request,t);return Sx.extend(n,Ix.prototype,t),Sx.extend(n,t),n}var Nx=Tx(Yw);Nx.Axios=Ix,Nx.create=function(e){return Tx(Bx(Nx.defaults,e))},Nx.Cancel=xx,Nx.CancelToken=kx,Nx.isCancel=Zw,Nx.all=function(e){return Promise.all(e)},Nx.spread=function(e){return function(t){return e.apply(null,t)}},Nx.isAxiosError=function(e){return"object"==typeof e&&!0===e.isAxiosError},lw.exports=Nx,lw.exports.default=Nx;var zx=lw.exports;function Dx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Px(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dx(Object(n),!0).forEach((function(t){Ox(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ox(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ax(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Rx(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||Lx(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fx(e){return function(e){if(Array.isArray(e))return Mx(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Lx(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lx(e,t){if(e){if("string"==typeof e)return Mx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mx(e,t):void 0}}function Mx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var jx=["theme"];ql.button.withConfig({displayName:"ButtonStyled",componentId:"sc-1kgkg60-0"})(["button&,a&{display:flex;flex-wrap:nowrap;flex:0 0 auto;white-space:nowrap;position:relative;min-width:40px;text-align:center;background-position:center;fill:currentColor;text-decoration:none;&:focus{display:flex;}}align-items:center !important;box-sizing:border-box !important;text-shadow:none !important;text-transform:none !important;font-family:"," !important;font-size:"," !important;font-weight:400 !important;line-height:"," !important;border-radius:",";outline:none !important;border:1px solid transparent !important;cursor:pointer !important;vertical-align:middle;justify-content:center;font-style:normal;transition-duration:0.1s;transition-property:background-color,border-color,box-shadow,color;&:disabled{cursor:default !important;pointer-events:none;}"," ",";",""],Dp.fontStackBase,Dp.fontSizeBase,Dp.lineHeightBase,Dp.brandRadiusBase,(function(e){return e.isFullWidth&&"width: 100%;"}),(function(e){return e.isSmall?Tl(["height:32px !important;padding:0 "," !important;font-size:"," !important;line-height:20px !important;"],Dp.spacing4,Dp.fontSize75):Tl(["height:40px !important;padding:0 "," !important;"],Dp.spacing5)}),(function(e){var t=e.theme,n=Ax(e,jx);if("primary-dark"===n.variant){var r=Tl(["border-color:",";background-color:",";color:",";box-shadow:none !important;"],Dp.componentButtonPrimaryBorderActive,Dp.componentButtonPrimaryFillActive,Dp.componentButtonPrimaryColorActive);return Tl(["border-color:transparent;background-color:",";color:",";"," &:hover{border-color:",";background-color:",";color:",";box-shadow:"," !important;}&:focus{background-color:",";color:",";border-color:",";box-shadow:"," !important;}&:active{","}&:disabled{border-color:",";background-color:",";color:",";box-shadow:none !important;}"],Dp.componentButtonPrimaryFill,Dp.componentButtonPrimaryColor,n.isPressed&&r,Dp.componentButtonPrimaryBorderHover,Dp.componentButtonPrimaryFillHover,Dp.componentButtonPrimaryColorHover,Dp.elevation1,Dp.componentButtonPrimaryFillFocus,Dp.componentButtonPrimaryColorFocus,Dp.componentButtonPrimaryBorderFocus,Dp.componentButtonPrimaryFocusRing,r,Dp.componentButtonPrimaryBorderDisabled,Dp.componentButtonPrimaryFillDisabled,Dp.componentButtonPrimaryColorDisabled)}if("secondary-dark"===n.variant){var o=Tl(["border-color:transparent !important;background-color:rgba(255,255,255,0.1) !important;color:"," !important;"],t.legacy.colorTextDark);return Tl(["color:rgba(255,255,255,0.8) !important;background-color:rgba(255,255,255,0.1) !important;"," &:hover{color:"," !important;background-color:rgba(255,255,255,0.15) !important;}&:focus{border-color:rgba(255,255,255,0.15) !important;}&:active{","}&:disabled{color:rgba(255,255,255,0.3) !important;background-color:rgba(255,255,255,0.05) !important;border-color:transparent !important;box-shadow:none !important;}"],n.isPressed&&o,t.legacy.colorWhite,o)}if("clean-dark"===n.variant){var i=Tl(["border-color:transparent !important;background-color:rgba(255,255,255,0.05) !important;color:"," !important;cursor:pointer !important;"],t.legacy.colorTextDark);return Tl(["color:",";background-color:transparent !important;border-color:transparent !important;box-shadow:none !important;border-radius:"," !important;"," &:hover{color:#fff !important;background-color:rgba(255,255,255,0.05) !important;}&:focus{border-color:rgba(255,255,255,0.15) !important;}&:active{","}&:disabled{color:rgba(255,255,255,0.15) !important;background-color:transparent !important;}"],t.legacy.colorTextDarker,t.legacy.buttonBorderRadius,n.isPressed&&i,i)}return""}));var Hx=ql.div.withConfig({displayName:"Icon",componentId:"sc-1kgkg60-1"})(["height:100%;display:flex;align-items:center;"]);ql(Hx).withConfig({displayName:"LeftIcon",componentId:"sc-1kgkg60-2"})(["margin-right:",";margin-left:calc("," * -1);"],(function(e){return e.lastChild?"calc(".concat(Dp.spacing2," * -1)"):Dp.spacing3}),Dp.spacing2),ql(Hx).withConfig({displayName:"RightIcon",componentId:"sc-1kgkg60-3"})(["margin-right:calc("," * -1);margin-left:",";"],Dp.spacing2,Dp.spacing3);var Ux,Vx=Gl(["100%{transform:rotate(360deg);}"]),$x=Gl(["0%{stroke-dasharray:1,100;stroke-dashoffset:0;}50%{stroke-dasharray:80,100;stroke-dashoffset:-20;}100%{stroke-dasharray:80,100;stroke-dashoffset:-48;}"]);ql.svg.withConfig({displayName:"Svg",componentId:"sc-2khuyx-0"})(["width:24px;height:24px;animation:"," 1s linear infinite;"],Vx),ql.circle.withConfig({displayName:"Circle",componentId:"sc-2khuyx-1"})(["stroke:currentColor;animation:"," 1.5s ease-in-out infinite;stroke-linecap:round;"],$x),function(e){e[e.Date=0]="Date",e[e.MultiSelect=1]="MultiSelect",e[e.Select=2]="Select",e[e.Search=3]="Search"}(Ux||(Ux={}));var Wx,Gx,qx,Yx=ql.div.withConfig({displayName:"IconContainer",componentId:"sc-16awveu-0"})(["height:0;position:absolute;bottom:32px;"]),Kx=ql(Yx).withConfig({displayName:"IconRightContainer",componentId:"sc-16awveu-1"})(["right:12px;cursor:pointer;fill:",";&:focus,&:hover{fill:",";}"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive}));ql.input.withConfig({displayName:"StyledInput",componentId:"sc-16awveu-2"})(["box-sizing:border-box;width:100%;height:40px;font-family:",";font-size:",";line-height:",";color:",";background:",";border-radius:5px;outline:none !important;border:1px solid ",";"," &::placeholder{color:",";}&:focus,&:hover{& ","{fill:"," !important;}border:1px solid ",";}",";padding-left:","px;padding-right:","px;",";"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.theme.legacy.colorText}),(function(e){return e.theme.legacy.colorBackground}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorder}),(function(e){return e.inputType===Ux.Select&&"\n background: rgba(0, 34, 51, 0.03) !important;\n color: transparent !important;\n text-shadow: 0 0 0 ".concat(e.theme.legacy.colorText,";\n cursor: pointer;\n\n &:hover {\n background: rgba(0, 34, 51, 0.03) !important;\n }\n ")}),(function(e){return e.theme.legacy.colorTextDisabled}),Kx,(function(e){return e.theme.legacy.colorIconActive}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorderFocus}),(function(e){return e.borderless?"\n border: none !important; /* overrides bynder-custom17 */\n &:focus, &:hover {\n border: none;\n }\n ":""}),(function(e){return e.hasLeftIcon?40:16}),(function(e){return e.hasRightIcon?40:0}),(function(e){return e.forceActive?"border: 1px solid ".concat(e.theme.legacy.colorBorderFocus):""})),ql.label.withConfig({displayName:"Label",componentId:"sc-16awveu-3"})(["font-weight:normal;font-family:",";font-size:",";width:100%;margin-bottom:0px;"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6})),ql.p.withConfig({displayName:"ErrorMessage",componentId:"sc-16awveu-4"})(["font-size:",";color:",";margin-bottom:0;"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.colorError})),ql.div.withConfig({displayName:"WrapperRelative",componentId:"sc-16awveu-5"})(["position:relative;margin-top:","px;"],(function(e){return e.isLabeled?8:0})),ql(Yx).withConfig({displayName:"IconErrorContainer",componentId:"sc-16awveu-6"})(["fill:",";"],(function(e){return e.theme.legacy.colorError})),ql(Yx).withConfig({displayName:"InputTypeContainer",componentId:"sc-16awveu-7"})(["left:10px;fill:",";"],(function(e){return e.theme.legacy.colorIcon})),ql.svg.withConfig({displayName:"Svg",componentId:"sc-16awveu-8"})(["display:inline-block,stroke-width:0,stroke:current-color,fill:current-color,font-size:32px,"]),ql.div.withConfig({displayName:"ListContainer",componentId:"sc-16awveu-9"})(["width:",";position:fixed;padding-top:4px;z-index:10;top:",";"],(function(e){return e.width}),(function(e){return e.top})),Wl(["textarea,input[type='text'],input[type='password'],input[type='datetime'],input[type='datetime-local'],input[type='date'],input[type='month'],input[type='time'],input[type='week'],input[type='number'],input[type='email'],input[type='url'],input[type='search'],input[type='tel'],input[type='color']{height:40px;line-height:",";margin-bottom:0;padding-top:0;padding-bottom:0;padding-left:","px;padding-right:","px;font-size:",";"," &::placeholder{color:",";}&:focus,&:hover{&::placeholder{color:",";}}}"],(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.hasLeftIcon?40:16}),(function(e){return e.hasRightIcon?40:0}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.error?"border: 1px solid ".concat(e.theme.legacy.colorError,";"):""}),(function(e){return e.theme.legacy.colorTextDisabled}),(function(e){return e.theme.legacy.colorTextDisabled})),function(e){e.ArrowDown="ArrowDown",e.ArrowUp="ArrowUp",e.Enter="Enter",e.Backspace="Backspace",e.Escape="Escape",e.Tab="Tab"}(Wx||(Wx={})),function(e){e[e.COLOR=0]="COLOR",e[e.GREYSCALE=1]="GREYSCALE",e[e.WHITE=2]="WHITE"}(Gx||(Gx={})),function(e){e.USER="USER",e.PROFILE="PROFILE",e.GROUP="GROUP"}(qx||(qx={})),ql.div.withConfig({displayName:"MainContainer",componentId:"sc-167ea0r-0"})(["background-color:",";border:",";box-shadow:",";border-radius:5px;padding:8px 0;"],(function(e){return e.dark?e.theme.legacy.colorBackgroundDark:e.theme.legacy.colorBackground}),(function(e){return e.borderless?"none":"1px solid ".concat(e.theme.legacy.colorBorder)}),(function(e){return e.borderless?"none":e.theme.legacy.boxShadow}));var Xx=ql.li.withConfig({displayName:"Li",componentId:"sc-167ea0r-1"})(["display:flex;font-size:",";align-items:center;height:36px;padding:0 16px !important;"],(function(e){return e.theme.legacy.fontSizeSmall})),Zx=ql(Xx).withConfig({displayName:"Item",componentId:"sc-167ea0r-2"})(["cursor:pointer;&&&{&:active,&:focus,&:hover{color:",";background-color:",";outline:none;}}"],(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorTextLightActive}),(function(e){return e.dark?e.theme.legacy.colorBackgroundDarkHover:e.theme.legacy.colorBackgroundLight}));ql(Xx).withConfig({displayName:"GroupName",componentId:"sc-167ea0r-3"})(["cursor:default;color:",";"],(function(e){return e.dark?e.theme.legacy.colorTextDarker:e.theme.legacy.colorText})),ql(Xx).withConfig({displayName:"EmptyState",componentId:"sc-167ea0r-4"})(["color:",";cursor:default;"],(function(e){return e.theme.legacy.colorText})),ql.ul.withConfig({displayName:"Ul",componentId:"sc-167ea0r-5"})(["margin:0;padding:0;list-style-type:none;max-height:",";overflow-y:auto;","{color:",";}"],(function(e){return e.maxHeight||"350px"}),Zx,(function(e){return e.dark?e.theme.legacy.colorTextDark:e.hasGroups?e.theme.legacy.colorTextLight:e.theme.legacy.colorText})),ql.div.withConfig({displayName:"IconContainer",componentId:"sc-167ea0r-6"})(["display:flex;margin-right:8px;fill:",";"],(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorIcon})),ql.div.withConfig({displayName:"Divider",componentId:"sc-167ea0r-7"})(["margin:8px 0;border-bottom:1px solid ",";width:100%;"],(function(e){return e.dark?e.theme.legacy.colorRichBlack30:e.theme.legacy.colorBorder})),ql.svg.withConfig({displayName:"Svg",componentId:"sc-hfnr8h-0"})(["display:inline-block;stroke-width:0;stroke:current-color;fill:current-color;font-size:32px;"]);var Jx=ql.div.withConfig({displayName:"IconContainer",componentId:"sc-6ftogw-0"})(["height:0;position:absolute;bottom:32px;"]),Qx=ql(Jx).withConfig({displayName:"IconRightContainer",componentId:"sc-6ftogw-1"})(["right:12px;cursor:",";fill:",";&:focus,&:hover{fill:",";}"],(function(e){return e.disabled?"not-allowed":"pointer"}),(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorMutedIcon}),(function(e){return e.dark?e.theme.legacy.colorTextDark:e.disabled?e.theme.legacy.colorMutedIcon:e.theme.legacy.colorMutedIconActive}));ql.input.withConfig({displayName:"StyledInput",componentId:"sc-6ftogw-2"})(["box-sizing:border-box;width:100%;height:40px !important;font-family:",";font-size:"," !important;line-height:"," !important;color:",";cursor:",";background:",";border-radius:5px;outline:none !important;border:1px solid ",";&:focus,&:hover{& ","{fill:"," !important;}&::placeholder{color:"," !important;}","}&::placeholder{color:"," !important;}",";padding-left:","px !important;padding-right:","px !important;padding-top:0 !important;padding-bottom:0 !important;margin-bottom:0 !important;",";"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.disabled?e.theme.legacy.colorTextDisabled:e.theme.legacy.colorText}),(function(e){return e.disabled?"not-allowed":"pointer"}),(function(e){return e.disabled?Dp.gray25:e.theme.legacy.colorBackground}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorder}),Qx,(function(e){return e.theme.legacy.colorMutedIconActive}),(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorTextDisabled}),(function(e){return e.error?"border: 1px solid ".concat(e.theme.legacy.colorError," !important;"):e.dark?"":e.disabled?"border: 1px solid ".concat(e.theme.legacy.colorBorder," !important;"):"border: 1px solid ".concat(e.theme.legacy.colorBorderFocus," !important;")}),(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorTextDisabled}),(function(e){return e.borderless?Tl(["border:none !important;&:focus,&:hover{border:none;}"]):""}),(function(e){return e.hasLeftIcon?40:16}),(function(e){return e.hasRightIcon?40:0}),(function(e){return e.forceActive?"border: 1px solid ".concat(e.theme.legacy.colorBorderFocus):""})),ql.label.withConfig({displayName:"Label",componentId:"sc-6ftogw-3"})(["font-weight:normal;font-family:",";font-size:",";width:100%;margin-bottom:0px;"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6})),ql.p.withConfig({displayName:"ErrorMessage",componentId:"sc-6ftogw-4"})(["font-size:",";color:",";margin-bottom:0;"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.colorError})),ql.div.withConfig({displayName:"LabelContainer",componentId:"sc-6ftogw-5"})(["width:100%;"]),ql.div.withConfig({displayName:"WrapperRelative",componentId:"sc-6ftogw-6"})(["position:relative;margin-top:","px;"],(function(e){return e.isLabeled?8:0})),ql(Jx).withConfig({displayName:"IconErrorContainer",componentId:"sc-6ftogw-7"})(["fill:",";"],(function(e){return e.theme.legacy.colorError})),ql(Jx).withConfig({displayName:"IconLeftContainer",componentId:"sc-6ftogw-8"})(["left:10px;fill:",";"],(function(e){return e.theme.legacy.colorIcon})),ql.div.withConfig({displayName:"ListContainer",componentId:"sc-6ftogw-9"})(["position:absolute;padding-top:4px;width:100%;z-index:10;"]),ql.div.withConfig({displayName:"SpinnerBorder",componentId:"sc-1lat4jy-0"})(["display:flex;width:24px;height:24px;justify-content:center;align-items:center;svg{animation:borderRotate 1s linear infinite;width:20px;height:20px;circle{stroke:",";stroke-linecap:round;animation:borderDash 1.5s ease-in-out infinite;}}@keyframes borderRotate{100%{transform:rotate(360deg);}}@keyframes borderDash{0%{stroke-dasharray:1,100;stroke-dashoffset:0;}50%{stroke-dasharray:80,100;stroke-dashoffset:-20;}100%{stroke-dasharray:80,100;stroke-dashoffset:-48;}}"],(function(e){switch(e.colorMode){case Gx.COLOR:return e.theme.legacy.colorPrimary;case Gx.WHITE:return e.theme.legacy.colorWhite30;default:return e.theme.legacy.colorRichBlack30}}));var eE=ql.div.withConfig({displayName:"IconContainer",componentId:"sc-hv8gko-0"})(["position:absolute;height:100%;display:flex;align-items:center;"]);ql(eE).withConfig({displayName:"IconRightContainer",componentId:"sc-hv8gko-1"})(["top:0;right:12px;",";fill:",";&:focus,&:hover{fill:",";}"],(function(e){return e.onClick&&"cursor: pointer;"}),(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive})),ql.input.withConfig({displayName:"StyledInput",componentId:"sc-hv8gko-2"})(["box-sizing:border-box;width:100%;height:","px !important;font-family:",";font-size:"," !important;line-height:"," !important;color:",";background:",";border-radius:5px;outline:none !important;border:1px solid "," !important;&::placeholder{color:"," !important;}&:focus,&:hover:not([disabled]){&::placeholder{color:"," !important;}border:1px solid "," !important;}",";padding-left:","px !important;padding-right:","px !important;padding-top:0 !important;padding-bottom:0 !important;margin-bottom:0 !important;",";&&:disabled{background:",";border-color:"," !important;}"],(function(e){return e.small?32:40}),(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.theme.legacy.colorText}),(function(e){return e.theme.legacy.colorBackground}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorder}),(function(e){return e.theme.legacy.colorTextDisabled}),(function(e){return e.theme.legacy.colorTextDisabled}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorderFocus}),(function(e){return e.borderless?Tl(["border:none !important;&:focus,&:hover{border:none;}"]):""}),(function(e){return e.hasLeftIcon?40:16}),(function(e){return e.hasRightIcon?40:0}),(function(e){return e.forceActive&&!e.error?"border: 1px solid ".concat(e.theme.legacy.colorBorderFocus):""}),(function(e){return e.theme.legacy.colorBackgroundLight}),(function(e){return e.theme.legacy.colorBackgroundLight})),ql.label.withConfig({displayName:"Label",componentId:"sc-hv8gko-3"})(["font-weight:normal;font-family:",";font-size:",";color:",";width:100%;margin-bottom:0px;"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.colorText})),ql.p.withConfig({displayName:"ErrorMessage",componentId:"sc-hv8gko-4"})(["margin:4px 0 0;font-size:",";line-height:",";color:",";"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.lineHeightSmall}),(function(e){return e.theme.legacy.colorError})),ql.div.withConfig({displayName:"LabelContainer",componentId:"sc-hv8gko-5"})(["width:100%;"]),ql.div.withConfig({displayName:"WrapperRelative",componentId:"sc-hv8gko-6"})(["position:relative;margin-top:","px;"],(function(e){return e.isLabeled?8:0})),ql(eE).withConfig({displayName:"IconLeftContainer",componentId:"sc-hv8gko-7"})(["top:0;left:10px;fill:",";color:",";"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIcon})),ql.p.withConfig({displayName:"Counter",componentId:"sc-hv8gko-8"})(["position:absolute;right:0;font-size:",";color:",";margin:4px 0 0 0;text-align:right;"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.colorTextDisabled})),ql.div.withConfig({displayName:"FixedContainer",componentId:"sc-kc8vou-0"})(["position:fixed;z-index:2;"]),ql.div.withConfig({displayName:"StyledItemStatus",componentId:"sc-uhd8g-0"})(["padding:0 ",";color:",";"],Dp.spacing5,(function(e){return e.theme.legacy.colorRichBlack30})),ql.div.withConfig({displayName:"StyledUserSearchContainer",componentId:"sc-uhd8g-1"})(["position:relative;"]),ql.ul.withConfig({displayName:"StyledUserSearchDropdown",componentId:"sc-uhd8g-2"})(["display:block;box-sizing:border-box;overflow-y:auto;padding:"," 0;margin:0;border:none;border-radius:",";background-color:",";box-shadow:0 0 0 1px ",";z-index:1;&:empty{display:none;}> li{list-style:none;}"],Dp.spacing3,(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.theme.legacy.colorWhite}),(function(e){return e.theme.legacy.colorRichBlack15}));var tE=ql.div.withConfig({displayName:"IconContainer",componentId:"sc-uhd8g-3"})(["position:absolute;height:0;right:0;bottom:32px;"]);ql(tE).withConfig({displayName:"IconRightContainer",componentId:"sc-uhd8g-4"})(["cursor:pointer;fill:",";&:focus,&:hover{fill:",";}"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive})),ql.div.withConfig({displayName:"Container",componentId:"sc-1ozn84q-0"})(["padding:8px 0;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;"]),ql.div.withConfig({displayName:"InfoContainer",componentId:"sc-1ozn84q-1"})(["flex:1;margin-right:12px;color:",";min-width:0;"],(function(e){return e.isDisabled?e.theme.legacy.colorTextLight:e.theme.legacy.colorText})),ql.div.withConfig({displayName:"NameContainer",componentId:"sc-1ozn84q-2"})(["display:flex;"]),ql.div.withConfig({displayName:"Name",componentId:"sc-1ozn84q-3"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]),ql.div.withConfig({displayName:"NameSmoked",componentId:"sc-1ozn84q-4"})(["color:",";margin-left:8px;"],(function(e){return e.theme.legacy.colorTextDisabled})),ql.div.withConfig({displayName:"ExtraInfo",componentId:"sc-1ozn84q-5"})(["font-size:14px;color:",";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"],(function(e){return e.theme.legacy.colorTextLight}));var nE=ql.div.withConfig({displayName:"LoadingPlaceholder",componentId:"sc-1ozn84q-6"})(["&:after{content:'';display:flex;width:120px;height:6px;border-radius:4px;margin:3px 0;background-color:",";}"],(function(e){return e.theme.legacy.colorRichBlack20}));ql(nE).withConfig({displayName:"LoadingName",componentId:"sc-1ozn84q-7"})(["&:after{width:120px;background-color:",";}"],(function(e){return e.theme.legacy.colorRichBlack20})),ql(nE).withConfig({displayName:"LoadingExtraInfo",componentId:"sc-1ozn84q-8"})(["&:after{width:80px;background-color:",";}"],(function(e){return e.theme.legacy.colorRichBlack10})),ql.div.withConfig({displayName:"IconContainer",componentId:"sc-1ozn84q-9"})(["min-width:40px;height:40px;margin-right:8px;display:flex;align-items:center;justify-content:center;border-radius:",";background-color:",";fill:",";"],(function(e){return e.square?"5px":"50%"}),(function(e){return e.theme.legacy.colorBackgroundLight}),(function(e){return e.theme.legacy.colorBackgroundActive})),ql.div.withConfig({displayName:"EntityListContainer",componentId:"sc-1ozn84q-10"})(["flex:1;overflow-y:auto;overflow-x:hidden;margin-top:16px;max-height:256px;"]),ql.div.withConfig({displayName:"StyledItemCheck",componentId:"sc-ri03d3-0"})(["display:flex;width:28px;height:28px;align-items:center;justify-content:center;border-radius:50%;box-shadow:inset 0 0 0 2px ",";"," svg{","}"],(function(e){return e.theme.legacy.colorRichBlack10}),(function(e){return e.checked&&"\n background-color: ".concat(e.theme.legacy.colorPrimary,";\n box-shadow: none;\n color: ").concat(e.theme.legacy.colorWhite,";\n ")}),(function(e){return e.checked?"\n opacity: 1;\n transform: scale(1);\n ":"\n opacity: 0;\n "})),ql.div.withConfig({displayName:"StyledEntityListContainer",componentId:"sc-ri03d3-1"})(["",""],(function(e){return e.isDisabled&&"opacity: 0.6;"}));var rE=ql.div.withConfig({displayName:"Section",componentId:"sc-ri03d3-2"})(["margin:0 0 12px 0;list-style:none;min-width:224px;"]);ql.div.withConfig({displayName:"SubTitle",componentId:"sc-ri03d3-3"})(["margin:8px 0 8px 0;"]),ql.div.withConfig({displayName:"ListContent",componentId:"sc-ri03d3-4"})(["padding:8px 0;margin:0;display:flex;flex-direction:row;align-items:center;position:relative;justify-content:flex-start;"]),ql.div.withConfig({displayName:"ListInfo",componentId:"sc-ri03d3-5"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:12px;color:",";"],(function(e){return e.theme.legacy.colorRichBlack80}));var oE=ql.div.withConfig({displayName:"ListTitle",componentId:"sc-ri03d3-6"})(["width:100%;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]);ql(oE).withConfig({displayName:"ListSecondary",componentId:"sc-ri03d3-7"})(["font-size:14px;color:",";"],(function(e){return e.theme.legacy.colorRichBlack50})),ql.div.withConfig({displayName:"ListActions",componentId:"sc-ri03d3-8"})(["margin-left:auto;display:flex;div + button{margin-left:8px;}"]),ql.div.withConfig({displayName:"ListItem",componentId:"sc-ri03d3-9"})(["padding:0 16px;"," ",""],(function(e){return e.pointer&&"\n cursor: pointer;\n "}),(function(e){return e.isFocused&&"\n background-color: ".concat(e.theme.legacy.colorRichBlack03,";\n ")})),ql.div.withConfig({displayName:"ListIcon",componentId:"sc-ri03d3-10"})(["width:48px;height:48px;margin:0 8px 0 0;border-radius:5px;position:relative;box-shadow:inset 0 0 0 1px ",";display:flex;align-items:center;justify-content:center;border-radius:50%;background-color:",";fill:",";color:",";box-shadow:none;> svg{width:24px;height:24px;}"],(function(e){return e.theme.legacy.colorRichBlack10}),(function(e){return e.theme.legacy.colorRichBlack05}),(function(e){return e.theme.legacy.colorRichBlack50}),(function(e){return e.theme.legacy.colorRichBlack50})),ql.span.withConfig({displayName:"SpanSmoke",componentId:"sc-ri03d3-11"})(["color:",";"],(function(e){return e.theme.legacy.colorRichBlack30}));var iE,aE,cE=ql.div.withConfig({displayName:"Icon",componentId:"sc-ri03d3-12"})(["background-color:",";width:24px;height:24px;margin:0 12px 0 0px;border-radius:5px;flex-shrink:0;img{width:24px;height:24px;margin:0 12px 0 0px;border-radius:5px;background-color:",";}"],(function(e){return!e.withImage&&(e.color||e.theme.legacy.colorRichBlack10)}),(function(e){return e.color||e.theme.legacy.colorRichBlack10})),lE=ql.span.withConfig({displayName:"ComponentIcon",componentId:"sc-ri03d3-13"})(["display:flex;width:32px;height:32px;align-items:center;fill:",";margin-right:8px;justify-content:center;flex-shrink:0;border-radius:5px;","{margin:0;}> img{width:24px;height:24px;border-radius:5px;}"],(function(e){return e.theme.legacy.colorRichBlack30}),cE);ql.div.withConfig({displayName:"TextEllipsis",componentId:"sc-ri03d3-14"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:initial;"]),ql.div.withConfig({displayName:"MainContainer",componentId:"sc-ri03d3-15"})(["display:flex;flex-direction:column;max-height:100%;"]),ql(rE).withConfig({displayName:"EntityListSection",componentId:"sc-ri03d3-16"})(["margin-right:calc("," * -1);padding-right:",";flex:1;overflow-y:auto;overflow-x:hidden;margin-top:4px;min-height:186px;max-height:256px;margin-bottom:12px;"],Dp.spacing6,Dp.spacing6),ql.div.withConfig({displayName:"DropdownArrowIconContainer",componentId:"sc-ri03d3-17"})(["height:24px;margin:0 calc("," * -1);"],Dp.spacing2),function(e){e.PRIVATE="PRIVATE",e.RESTRICTED="RESTRICTED",e.ALL_USERS="ALL_USERS",e.PUBLIC="PUBLIC"}(iE||(iE={})),function(e){e.LEFT="left",e.RIGHT="right",e.CENTER="center",e.TOP="top"}(aE||(aE={})),ql.div.withConfig({displayName:"Dropdown",componentId:"sc-td9xdv-0"})(["position:relative;margin-left:0px;"]);var sE=ql.div.withConfig({displayName:"DropdownContainer",componentId:"sc-td9xdv-1"})(["top:100%;left:0;border-radius:",";background-color:",";box-shadow:0 1px 6px 0 ",";border:1px solid ",";min-width:170px;overflow:auto;background-clip:padding-box;"],(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.theme.legacy.colorWhite}),(function(e){return e.theme.legacy.colorRichBlack10}),(function(e){return e.theme.legacy.colorRichBlack05}));ql.div.withConfig({displayName:"DropdownContent",componentId:"sc-td9xdv-2"})(["position:absolute;min-width:",";"," overflow:auto;background-color:",";box-shadow:0 1px 8px 0 ",";border-radius:",";background-clip:padding-box;z-index:100;",""],(function(e){return e.small?"148px":"200px"}),(function(e){return e.fullWidth&&"width: 100%;"}),(function(e){return e.theme.legacy.colorWhite}),(function(e){return e.theme.legacy.colorRichBlack10}),(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return function(){switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:aE.LEFT){case aE.RIGHT:return Tl(["top:110%;right:0;"]);case aE.CENTER:return Tl(["top:110%;left:50%;transform:translateX(-50%);"]);case aE.TOP:return Tl(["top:auto;bottom:110%;"]);case aE.LEFT:default:return Tl(["top:110%;left:0;"])}}(e.position)})),ql.div.withConfig({displayName:"Entry",componentId:"sc-td9xdv-3"})(["margin:0;display:flex;flex-direction:row;align-items:center;position:relative;text-decoration:none;white-space:nowrap;","{width:24px;}"],lE);var uE=ql.span.withConfig({displayName:"IconContainer",componentId:"sc-td9xdv-4"})(["display:flex;margin:0 -8px 0 auto;fill:",";svg{margin-left:auto;}"],(function(e){return e.theme.legacy.colorRichBlack80}));ql.li.withConfig({displayName:"DropdownListItem",componentId:"sc-td9xdv-5"})([""," margin:0;height:36px;display:flex;flex-direction:row;align-items:center;position:relative;color:",";font-size:14px;"," &:hover{background-color:",";cursor:pointer;color:",";}list-style:none;","{fill:",";color:",";}","{margin:0 -8px 0 auto;svg{color:rgba(0,34,51,0.8);}}"],(function(e){return e.woPaddingLeft?"padding: 0 16px 0 0;":"padding: 0 16px;"}),(function(e){return e.theme.legacy.colorRichBlack50}),(function(e){return e.enabled&&"color: ".concat(e.theme.legacy.colorRichBlack80,";")}),(function(e){return e.theme.legacy.colorRichBlack03}),(function(e){return e.theme.legacy.colorRichBlack80}),lE,(function(e){return e.theme.legacy.colorRichBlack50}),(function(e){return e.theme.legacy.colorRichBlack50}),uE);var dE=Tl(["width:32px;height:32px;display:flex;align-items:center;justify-content:center;"]),pE=Tl(["margin:0 4px 0 -8px;flex-shrink:0;border-radius:",";"],(function(e){return e.theme.legacy.buttonBorderRadius}));ql.ul.withConfig({displayName:"DropdownList",componentId:"sc-td9xdv-6"})(["list-style:none;padding:8px 0;margin:0;hr{margin:8px 0;}",""],(function(e){return e.scrollable&&"\n max-height: 300px;\n overflow: scroll;\n "})),ql(sE).withConfig({displayName:"CardDropdownContainer",componentId:"sc-td9xdv-7"})(["top:110%;min-width:200px;background-clip:padding-box;align-self:flex-start;min-height:8px;z-index:1;"]),ql.span.withConfig({displayName:"CardDropdownListIcon",componentId:"sc-td9xdv-8"})([""," "," color:",";"],dE,pE,(function(e){return e.theme.legacy.colorRichBlack50}));var fE=ql.input.withConfig({displayName:"StyledInput",componentId:"sc-1jv4ai7-0"})(["flex-grow:2;box-sizing:border-box;height:40px;font-size:",";line-height:",";color:",";background:",";padding-left:16px;padding-right:40px;input&{\bwidth:156px;outline:none;border:none;border-radius:",";&:focus,&:hover{border:none;box-shadow:none;}}&::placeholder{color:",";}"],(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.theme.legacy.colorText}),(function(e){return e.theme.legacy.colorBackground}),(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.theme.legacy.colorTextDisabled}));ql.div.withConfig({displayName:"WrapperRelative",componentId:"sc-1jv4ai7-1"})(["position:relative;margin-top:","px;border-radius:",";border:1px solid ",";&:focus,&:hover{border:1px solid ",";}"],(function(e){return e.isLabeled?8:0}),(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.isFocused?e.theme.legacy.colorBorderFocus:e.theme.legacy.colorBorder}),(function(e){return e.theme.legacy.colorBorderFocus})),ql.div.withConfig({displayName:"WrapperFlex",componentId:"sc-1jv4ai7-2"})(["display:flex;align-items:center;flex-wrap:wrap;"]);var mE=ql.div.withConfig({displayName:"IconContainer",componentId:"sc-1jv4ai7-3"})(["height:0;position:absolute;bottom:32px;"]);ql(mE).withConfig({displayName:"IconErrorContainer",componentId:"sc-1jv4ai7-4"})(["fill:",";"],(function(e){return e.theme.legacy.colorError})),ql(mE).withConfig({displayName:"IconRightContainer",componentId:"sc-1jv4ai7-5"})(["right:12px;cursor:pointer;fill:",";&:focus,&:hover{fill:",";}",":focus &{fill:",";}"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive}),fE,(function(e){return e.theme.legacy.colorIconActive})),ql.label.withConfig({displayName:"Label",componentId:"sc-1jv4ai7-6"})(["font-weight:normal;font-size:",";width:100%;margin-bottom:0px;"],(function(e){return e.theme.legacy.fontSizeH6})),ql.p.withConfig({displayName:"ErrorMessage",componentId:"sc-1jv4ai7-7"})(["font-size:",";color:",";margin-bottom:0;"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.colorError})),ql.svg.withConfig({displayName:"Svg",componentId:"sc-1jv4ai7-8"})(["display:inline-block,stroke-width:0,stroke:current-color,fill:current-color,font-size:32px,"]),ql.div.withConfig({displayName:"ListContainer",componentId:"sc-1jv4ai7-9"})(["width:",";position:fixed;padding-top:4px;z-index:10;top:",";"],(function(e){return e.width}),(function(e){return e.top})),ql.div.withConfig({displayName:"ListItem",componentId:"sc-4vrawh-0"})(["padding:0 16px;cursor:pointer;",""],(function(e){return e.isFocused&&Tl(["background-color:",";"],e.theme.legacy.colorRichBlack03)})),ql.input.withConfig({displayName:"Input",componentId:"sc-1rwvhxx-0"})(["flex-grow:2;box-sizing:border-box;height:32px;font-size:",";line-height:",";color:",";background:",";padding-left:8px;padding-right:8px;input&{width:20%;outline:none;border:none;border-radius:",";&:focus,&:hover{border:none;box-shadow:none;}}&&::placeholder{color:",";}"],(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.theme.legacy.colorText}),(function(e){return e.theme.legacy.colorBackground}),(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.theme.legacy.colorTextDisabled})),ql.div.withConfig({displayName:"WrapperRelative",componentId:"sc-1rwvhxx-1"})(["position:relative;padding:2px;border-radius:",";border:1px solid ",";&:focus,&:hover{border:1px solid ",";}"],(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.isFocused?e.theme.legacy.colorBorderFocus:e.theme.legacy.colorBorder}),(function(e){return e.theme.legacy.colorBorderFocus})),ql.div.withConfig({displayName:"WrapperFlex",componentId:"sc-1rwvhxx-2"})(["display:flex;flex-wrap:wrap;align-items:center;"]),ql.div.withConfig({displayName:"SelectedChip",componentId:"sc-1rwvhxx-3"})(["margin:2px;"]),ql.div.withConfig({displayName:"AvailableChip",componentId:"sc-1rwvhxx-4"})(["margin:8px 2px 0;"]),ql.div.withConfig({displayName:"AvailableChipContainer",componentId:"sc-1rwvhxx-5"})(["display:flex;align-items:flex-start;width:100%;height:",";scroll-behavior:smooth;overflow-x:scroll;&::-webkit-scrollbar{display:none;}-ms-overflow-style:none;scrollbar-width:none;"],"44px"),ql.div.withConfig({displayName:"Footer",componentId:"sc-1rwvhxx-6"})(["position:relative;z-index:0;"]);var hE=ql.div.withConfig({displayName:"Arrow",componentId:"sc-1rwvhxx-7"})(["z-index:2;position:absolute;top:8px;display:flex;align-items:center;justify-content:center;width:24px;height:32px;background-color:#fff;border-radius:5px;cursor:pointer;> svg{height:24px;width:24px;fill:",";}&:hover{background-color:#f2f4f5;> svg{fill:",";}}&:active{background-color:#e6e9eb;}"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive}));ql(hE).withConfig({displayName:"RightArrow",componentId:"sc-1rwvhxx-8"})(["right:0;"]),ql(hE).withConfig({displayName:"LeftArrow",componentId:"sc-1rwvhxx-9"})(["left:0;"]);var gE=ql.div.withConfig({displayName:"Shadow",componentId:"sc-1rwvhxx-10"})(["z-index:1;position:absolute;top:0;width:32px;height:",";"],"44px");ql(gE).withConfig({displayName:"RightShadow",componentId:"sc-1rwvhxx-11"})(["background:linear-gradient(270deg,#ffffff 0%,rgba(255,255,255,0) 100%);right:24px;"]),ql(gE).withConfig({displayName:"LeftShadow",componentId:"sc-1rwvhxx-12"})(["background:linear-gradient(90deg,#ffffff 0%,rgba(255,255,255,0) 100%);left:24px;"]);var vE=ql.div.withConfig({displayName:"ArrowBackground",componentId:"sc-1rwvhxx-13"})(["z-index:1;position:absolute;top:0;background-color:#fff;border-radius:5px 0 0 5px;height:",";width:26px;"],"44px");ql(vE).withConfig({displayName:"ArrowBackgroundRight",componentId:"sc-1rwvhxx-14"})(["right:0;"]),ql(vE).withConfig({displayName:"ArrowBackgroundLeft",componentId:"sc-1rwvhxx-15"})(["left:-1px;"]);var yE=["isOpen"];function bE(e){var n=e.presetURL,r=e.alwaysVisible,o=new RegExp("[-?]io"),i="".concat(n).concat(o.test(n)?"&download=true":"?download=true");return t.createElement(Wh,{position:"bottom-right",trigger:function(e){var n=e.isOpen,o=Ax(e,yE);return t.createElement(xE,{isVisible:r||n},t.createElement(ef,Px(Px({},o),{},{variant:"clean",isPressed:n,icon:t.createElement(Nu,null),"aria-label":"More options"})))}},t.createElement(iw.CopyToClipboard,{text:n,onCopy:function(){wg({title:"Link copied to clipboard",variant:"success"})}},t.createElement(Wh.Item,{icon:t.createElement(Ks,null),onClick:function(){return!1}},"Copy Link")),t.createElement(Wh.Divider,null),t.createElement(Wh.Item,{icon:t.createElement(Os,null),onClick:function(){window.open(n,"_blank")}},"Open in new tab"),t.createElement(Wh.Divider,null),t.createElement(Wh.Item,{icon:t.createElement(iu,null),onClick:function(){return!1}},t.createElement(wE,{href:i,download:"presetimage"},"Download")))}var wE=ql.a.withConfig({displayName:"DownloadLink",componentId:"sc-1xq1wim-0"})(["display:block;"]),xE=ql.div.withConfig({displayName:"ButtonWrapper",componentId:"sc-1xq1wim-1"})(["opacity:",";",":hover &,&:focus-within{opacity:1;}"],(function(e){return e.isVisible?"1":"0"}),".dat-menu-pointer-events-wrapper"),EE=function(e){var t="",n=e.match(/(https:\/\/(.*))\/transform\/(.*)\/(.*)/);return n&&n[3]&&(t=n[3]),t},CE=function(e){var n=e.name,r=e.onSelect,o=e.subtitle,i=e.isMenuHidden,a=void 0!==i&&i,c=e.isSelected,l=e.baseURL,s="Base"===n?"":"".concat(n,"/"),u=EE(l),d="/transform/".concat(s).concat(u,"/"),p=BE(d,l);return t.createElement(kE,{className:"dat-menu-pointer-events-wrapper",onClick:r,isSelected:c},t.createElement(_h,{variant:"content",imageUrl:p}),t.createElement(SE,null,t.createElement(_E,null,n),t.createElement(IE,null,o)),!a&&t.createElement(bE,{alwaysVisible:!1,presetURL:d}))},kE=ql.div.withConfig({displayName:"ItemContainer",componentId:"sc-1q57zbs-0"})(["padding:"," ",";display:flex;border-radius:",";align-items:center;background:",";&:hover{background:",";cursor:pointer;}"],Dp.spacing3,Dp.spacing4,Dp.spacing3,(function(e){return e.isSelected&&Dp.gray25}),Dp.gray25),SE=ql.div.withConfig({displayName:"ItemDetails",componentId:"sc-1q57zbs-1"})(["display:flex;flex-direction:column;flex:1;min-width:0;"]),_E=ql.p.withConfig({displayName:"Title",componentId:"sc-1q57zbs-2"})(["font-size:",";line-height:",";color:",";padding:0px ",";margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;"],Dp.fontSize100,Dp.lineHeightText,Dp.gray800,Dp.spacing4),IE=ql.p.withConfig({displayName:"Subtitle",componentId:"sc-1q57zbs-3"})(["color:",";font-size:",";line-height:",";padding:0px ",";margin:0;"],Dp.gray600,Dp.fontSize100,Dp.lineHeightText,Dp.spacing4),BE=function(e,t){var n=t.split("/transform"),r=n.length>1?n[0]:"";return"".concat(r).concat(e,"?io=transform:fit,width:80")},TE=t.memo(CE),NE=function(e){var n=e.onPresetSelected,r=e.presets,o=e.selectedPreset,i=e.baseURL;return t.createElement(DE,null,t.createElement(zE,null,"Base transformation"),t.createElement(TE,{baseURL:i,onSelect:function(){return n("")},name:"Base",isMenuHidden:!0,subtitle:"",isSelected:""===o}),r.length>0&&t.createElement(zE,null,r.length," Presets"),r.map((function(e){var r=e.name===o;return t.createElement(TE,{baseURL:i,key:e.id,onSelect:function(){return n(e.name)},name:e.name,subtitle:"",isSelected:r})})))},zE=ql.p.withConfig({displayName:"ListGroupTitle",componentId:"sc-yqslcx-0"})(["color:",";font-size:",";margin-bottom:",";padding:0 ",";"],Dp.gray800,Dp.spacing5,Dp.spacing5,Dp.spacing4),DE=ql.div.withConfig({displayName:"Container",componentId:"sc-yqslcx-1"})(["padding:0px ",";"],Dp.spacing4),PE=t.memo(NE);function OE(e){return e?e[0].toUpperCase()+e.split("").splice(1).join("").toLocaleLowerCase():""}var AE=function(e){switch(e.type){case"fill":case"crop":return t.createElement(fu,null);case"fit":return t.createElement(Ts,null);case"extend":return t.createElement(Ms,null);case"scale":return t.createElement(ru,null);case"rotate":return t.createElement(bu,null);case"flip":return t.createElement(hu,null);case"mirror":return t.createElement(du,null);case"border":return t.createElement(Qs,null);case"background":return t.createElement(eu,null);case"trim":return t.createElement(Xs,null);case"opacity":return t.createElement(Fs,null);case"sepia":return t.createElement(uu,null);case"contrast":return t.createElement(Ds,null);case"brightness":return t.createElement(Js,null);case"grayscale":return t.createElement(wu,null);case"blur":return t.createElement(cu,null);case"sharpness":return t.createElement(mu,null);case"saturation":return t.createElement(lu,null);case"text":return t.createElement(ou,null);case"advanced":return t.createElement(Hs,null);case"multiple":return t.createElement(Us,null);case"removebg":return t.createElement(FE,null);default:return null}};function RE(e){return t.createElement(Gh,Px({},e),t.createElement("path",{d:"M3 17V19H9V17H3ZM3 5V7H13V5H3ZM13 21V19H21V17H13V15H11V21H13ZM7 9V11H3V13H7V15H9V9H7ZM21 13V11H11V13H21ZM15 9H17V7H21V5H17V3H15V9Z"}))}function FE(e){return t.createElement(Gh,Px({},e),t.createElement("path",{d:"M3 5h2V3c-1.1 0-2 .9-2 2Zm0 8h2v-2H3v2Zm4 8h2v-2H7v2ZM3 9h2V7H3v2Zm10-6h-2v2h2V3Zm6 0v2h2c0-1.1-.9-2-2-2ZM5 21v-2H3c0 1.1.9 2 2 2Zm-2-4h2v-2H3v2ZM9 3H7v2h2V3Zm2 18h2v-2h-2v2Zm8-8h2v-2h-2v2Zm0 8c1.1 0 2-.9 2-2h-2v2Zm0-12h2V7h-2v2Zm0 8h2v-2h-2v2Zm-4 4h2v-2h-2v2Zm0-16h2V3h-2v2ZM7 17h10V7H7v10Zm2-8h6v6H9V9Z"}))}function LE(e){return t.createElement(Gh,Px({},e),t.createElement("path",{d:"M19 15.18V7c0-2.21-1.79-4-4-4s-4 1.79-4 4v10c0 1.1-.9 2-2 2s-2-.9-2-2V8.82C8.16 8.4 9 7.3 9 6c0-1.66-1.34-3-3-3S3 4.34 3 6c0 1.3.84 2.4 2 2.82V17c0 2.21 1.79 4 4 4s4-1.79 4-4V7c0-1.1.9-2 2-2s2 .9 2 2v8.18A2.996 2.996 0 0 0 18 21c1.66 0 3-1.34 3-3 0-1.3-.84-2.4-2-2.82ZM6 7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1Zm12 12c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1Z"}))}function ME(e){var n=e.children,r=e.label,o=e.helpText;return t.createElement(jE,null,t.createElement(ym.Label,null,r),n,t.createElement(ym.HelperText,null,o))}var jE=ql(ym.Group).withConfig({displayName:"FormGroup",componentId:"sc-uzgeip-0"})(["height:fit-content;"]),HE={transformation:null,group:null,label:"Select a transform"},UE=[{label:"Background",transformation:"background",group:"transform"},{label:"Border",transformation:"border",group:"transform"},{label:"Crop",transformation:"crop",group:"transform",description:"Extracts a region of the specified dimensions from the original image without first resizing it."},{label:"Remove Background",transformation:"removebg",group:"transform",description:"We will use the available clipping path information to mask the image, and remove the background."},{label:"Extend",transformation:"extend",group:"transform",description:"Resizes the image to fit inside the bounding box specified by the dimensions, maintaining the aspect ratio, and extends the canvas if the resized image does not fill the whole area."},{label:"Fill",transformation:"fill",group:"transform",description:"Resizes the image to fill the specified dimensions without distortion. The image may be cropped as a result."},{label:"Fit",transformation:"fit",group:"transform",description:"Resizes the image to fit inside the bounding box specified by the dimensions, maintaining the aspect ratio."},{label:"Flip",transformation:"flip",group:"transform"},{label:"Mirror",transformation:"mirror",group:"transform"},{label:"Rotate",transformation:"rotate",group:"transform"},{label:"Scale",transformation:"scale",group:"transform",description:"Resizes the image to the specified dimensions without necessarily retaining the original aspect ratio."},{label:"Trim",transformation:"trim",group:"transform",description:"Removes any transparent or white colored areas at the edges of an image."},{label:"Text overlay",transformation:"text",group:"overlay"},{label:"Opacity",transformation:"opacity",group:"filter"},{label:"Sepia",transformation:"sepia",group:"filter"},{label:"Contrast",transformation:"contrast",group:"filter"},{label:"Brightness",transformation:"brightness",group:"filter"},{label:"Grayscale",transformation:"grayscale",group:"filter"},{label:"Blur",transformation:"blur",group:"filter"},{label:"Sharpness",transformation:"sharpness",group:"filter"},{label:"Saturation",transformation:"saturation",group:"filter"}];function VE(e){var n,r=UE.find((function(t){return t.transformation===e.transformation}))||HE;return t.createElement(ME,{label:"Transformation",helpText:null!==(n=r.description)&&void 0!==n?n:""},t.createElement(kg,{onChange:function(t){var n=UE.find((function(e){return e.transformation===t})).group;e.onChange({group:n,transformation:t})},label:r.label,value:r.transformation,icon:t.createElement(AE,{type:r.transformation})},t.createElement(kg.SectionTitle,null,"Transforms"),UE.filter((function(e){return"transform"===e.group})).map((function(e){return t.createElement(kg.Item,{value:e.transformation,key:e.transformation,icon:t.createElement(AE,{type:e.transformation})},e.label)})),t.createElement(kg.Divider,null),t.createElement(kg.SectionTitle,null,"Filters"),UE.filter((function(e){return"filter"===e.group})).map((function(e){return t.createElement(kg.Item,{value:e.transformation,key:e.transformation,icon:t.createElement(AE,{type:e.transformation})},e.label)})),t.createElement(kg.Divider,null),t.createElement(kg.SectionTitle,null,"Overlay"),UE.filter((function(e){return"overlay"===e.group})).map((function(e){return t.createElement(kg.Item,{value:e.transformation,key:e.transformation,icon:t.createElement(AE,{type:e.transformation})},e.label)}))))}var $E=function(e){return"number"==typeof e&&!isNaN(e)},WE=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(!$E(e))return 0;var n=Math.abs(e),r=Math.trunc(n);return r<=t?r:t},GE=function(e){return e&&e>0?e.toString():""};function qE(e){var n=e.id,o=e.height,i=void 0===o?0:o,a=e.width,c=void 0===a?0:a,l=e.showLock,s=void 0!==l&&l,u=e.onDispatch,d=Rx(r(!1),2),p=d[0],f=d[1],m=Rx(r(1),2),h=m[0],g=m[1],v=t.createElement(KE,null,p?t.createElement(Rs,null):t.createElement(As,null)),y=GE(c),b=GE(i);return t.createElement(ME,{label:"Dimensions"},t.createElement(YE,null,t.createElement(XE,null,t.createElement(Rm,{"aria-label":"Dimensions width",placeholder:"1000",icon:t.createElement(ZE,null,"W"),value:y,onChange:function(e){var t=parseInt(e,10),r=WE(t,9e3);u({type:"width",payload:{value:r,id:n}}),p?u({type:"height",payload:{value:r/h,id:n}}):g(i&&r?r/i:1)},iconRight:t.createElement("span",null,"px")})),s?t.createElement(ef,{variant:"clean",onClick:function(){f((function(e){return!e}))},icon:v,title:"Lock ratio"}):t.createElement(JE,null),t.createElement(XE,null,t.createElement(Rm,{"aria-label":"Dimensions height",placeholder:"1000",icon:t.createElement(ZE,null,"H"),value:b,onChange:function(e){var t=parseInt(e,10),r=WE(t,9e3);u({type:"height",payload:{value:r,id:n}}),p?u({type:"width",payload:{value:r*h,id:n}}):g(c&&r?c/r:1)},iconRight:t.createElement("span",null,"px")}))))}var YE=ql.div.withConfig({displayName:"SpaceBetween",componentId:"sc-zla2g2-0"})(["display:flex;align-items:center;justify-content:space-between;"]),KE=ql.div.withConfig({displayName:"IconContainer",componentId:"sc-zla2g2-1"})(["color:",";"],Dp.gray400a),XE=ql.div.withConfig({displayName:"FlexInput",componentId:"sc-zla2g2-2"})(["min-width:0;"]),ZE=ql.div.withConfig({displayName:"IconText",componentId:"sc-zla2g2-3"})(["display:flex;justify-content:center;width:",";"],Dp.spacing6),JE=ql.div.withConfig({displayName:"Space",componentId:"sc-zla2g2-4"})(["width:",";"],Dp.spacing4);function QE(e){var n=e.onChange,r=e.value,o=void 0===r?0:r,i=e.label,a=e.min,c=e.max;return t.createElement(ME,{label:i},t.createElement(Lg,{value:o,onChange:n,min:a,max:c,inputPosition:"right"}))}function eC(e){return t.createElement(Gh,Px({},e),t.createElement("path",{d:"M3 3H5V19H21V21H3V3Z",fill:"#334E5C"}),t.createElement("path",{d:"M7 5C13.6274 5 19 10.3726 19 17H17C17 11.4772 12.5228 7 7 7V5Z",fill:"#334E5C"}))}function tC(e){var n=e.io,r=e.onDispatch;return t.createElement(ME,{label:"Angle"},t.createElement(Rm,{type:"number",placeholder:"0",onChange:function(e){return r({type:"angle",payload:{value:parseInt(e,10),id:n.id}})},value:n.angle?n.angle.toString():"",icon:t.createElement(eC,null),iconRight:t.createElement("span",null,"°")}))}function nC(e){return t.createElement(Gh,Px({},e),t.createElement("path",{d:"M8 19L8 21H16V19H13L13 5L16 5V3L8 3L8 5H11L11 19H8Z"}))}function rC(e){return t.createElement(Gh,Px({},e),t.createElement("path",{d:"M5 8H3V16H5V13H19V16H21V8H19V11H5V8Z"}))}var oC=[{value:"top",label:"Top"},{value:"center",label:"Center"},{value:"bottom",label:"Bottom"}],iC=[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}];function aC(e){var n=e.label,o=e.gravity,i=e.onChange,a=Rx(r(iC[1]),2),c=a[0],l=a[1],s=Rx(r(oC[1]),2),u=s[0],d=s[1],p=function(e){switch(i(e),e){case"topleft":d(oC.find((function(e){return"top"===e.value}))),l(iC.find((function(e){return"left"===e.value})));break;case"top":d(oC.find((function(e){return"top"===e.value}))),l(iC.find((function(e){return"center"===e.value})));break;case"topright":d(oC.find((function(e){return"top"===e.value}))),l(iC.find((function(e){return"right"===e.value})));break;case"left":d(oC.find((function(e){return"center"===e.value}))),l(iC.find((function(e){return"left"===e.value})));break;case"center":d(oC.find((function(e){return"center"===e.value}))),l(iC.find((function(e){return"center"===e.value})));break;case"right":d(oC.find((function(e){return"center"===e.value}))),l(iC.find((function(e){return"right"===e.value})));break;case"bottomleft":d(oC.find((function(e){return"bottom"===e.value}))),l(iC.find((function(e){return"left"===e.value})));break;case"bottom":d(oC.find((function(e){return"bottom"===e.value}))),l(iC.find((function(e){return"center"===e.value})));break;case"bottomright":d(oC.find((function(e){return"bottom"===e.value}))),l(iC.find((function(e){return"right"===e.value})))}};return t.createElement(ME,{label:n},t.createElement(pf,null,t.createElement(cC,{alignItems:"center",justifyContent:"space-between",wrap:"wrap"},t.createElement(lC,{isSelected:"topleft"===o,onClick:function(){return p("topleft")}}),t.createElement(lC,{isSelected:"top"===o,onClick:function(){return p("top")}}),t.createElement(lC,{isSelected:"topright"===o,onClick:function(){return p("topright")}}),t.createElement(lC,{isSelected:"left"===o,onClick:function(){return p("left")}}),t.createElement(lC,{isSelected:"center"===o,onClick:function(){return p("center")}}),t.createElement(lC,{isSelected:"right"===o,onClick:function(){return p("right")}}),t.createElement(lC,{isSelected:"bottomleft"===o,onClick:function(){return p("bottomleft")}}),t.createElement(lC,{isSelected:"bottom"===o,onClick:function(){return p("bottom")}}),t.createElement(lC,{isSelected:"bottomright"===o,onClick:function(){return p("bottomright")}})),t.createElement(pf,{direction:"column",justifyContent:"space-around"},t.createElement(kg,{onChange:function(e){switch(l(iC.find((function(t){return t.value===e}))),e){case"left":"top"===u.value&&i("topleft"),"center"===u.value&&i("left"),"bottom"===u.value&&i("bottomleft");break;case"center":"top"===u.value&&i("top"),"center"===u.value&&i("center"),"bottom"===u.value&&i("bottom");break;case"right":"top"===u.value&&i("topright"),"center"===u.value&&i("right"),"bottom"===u.value&&i("bottomright")}},value:c.value,label:c.label,icon:t.createElement(rC,null)},iC.map((function(e){return t.createElement(kg.Item,{value:e.value,key:e.value},e.label)}))),t.createElement(kg,{onChange:function(e){switch(d(oC.find((function(t){return t.value===e}))),e){case"top":"left"===c.value&&i("topleft"),"center"===c.value&&i("top"),"right"===c.value&&i("topright");break;case"center":"left"===c.value&&i("left"),"center"===c.value&&i("center"),"right"===c.value&&i("right");break;case"bottom":"left"===c.value&&i("bottomleft"),"center"===c.value&&i("bottom"),"right"===c.value&&i("bottomright")}},value:u.value,label:u.label,icon:t.createElement(nC,null)},oC.map((function(e){return t.createElement(kg.Item,{value:e.value,key:e.value},e.label)}))))))}var cC=ql(pf).withConfig({displayName:"Container",componentId:"sc-ci11hg-0"})(["width:150px;height:92px;padding:5px;margin-right:",";background:",";border:1px solid ",";box-sizing:border-box;border-radius:",";"],Dp.spacing5,Dp.gray25,Dp.gray100a,Dp.radiusMedium),lC=ql.div.withConfig({displayName:"Spot",componentId:"sc-ci11hg-1"})(["width:24px;height:24px;background:",";border:1px solid ",";box-sizing:border-box;border-radius:",";&:hover{background-color:",";cursor:pointer;}",""],Dp.gray10,Dp.gray100a,Dp.radiusSmall,Dp.gray25a,(function(e){return e.isSelected&&Tl(["border:2px solid ",";background:",";"],Dp.blue500,Dp.blue100)}));function sC(e){var n=e.color,o=e.label,i=e.onChangeValidation,a=e.onChange,c=Rx(r(!0),2),l=c[0],s=c[1],u=function(e){s(e),i(e)};return t.createElement(ME,{label:o},t.createElement(pf,null,t.createElement(uC,null,t.createElement(Rm,{value:n,icon:t.createElement("span",null,"#"),onChange:function(e){var t=function(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return t+t+n+n+r+r})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!n)return"";var r=parseInt(n[1],16).toString(),o=parseInt(n[2],16).toString(),i=parseInt(n[3],16).toString();return"(".concat(r,", ").concat(o,", ").concat(i,")")}(e);t?(a(e),u(!0)):(a(null),u(!1))}}),!l&&t.createElement(ym.HelperText,{isInvalid:!l},"Please type a valid hex value")),t.createElement(dC,null,t.createElement(Rm,{type:"number",placeholder:"100",onChange:null,value:null,iconRight:t.createElement("span",null,"%"),isDisabled:!0}))))}var uC=ql.div.withConfig({displayName:"FlexInputColor",componentId:"sc-1b7ygj6-0"})(["min-width:0;margin-right:",";"],Dp.spacing4),dC=ql.div.withConfig({displayName:"FlexInput",componentId:"sc-1b7ygj6-1"})(["min-width:0;"]),pC=["Arial"],fC=["Regular"];function mC(e){var n,r,o=e.io,i=e.onDispatch;return t.createElement(t.Fragment,null,t.createElement(ME,{label:"Text"},t.createElement(Vg,{value:o.content,onChange:function(e){return i({type:"content",payload:{value:e,id:o.id}})}})),t.createElement(ME,{label:"Font"},t.createElement(kg,{value:o.font,label:o.font,onChange:function(e){return i({type:"font",payload:{value:e,id:o.id}})}},pC.map((function(e){return t.createElement(kg.Item,{value:e,key:e},e)})))),t.createElement(ME,{label:""},t.createElement(pf,null,t.createElement(hC,null,t.createElement(kg,{value:o.fontType,label:o.fontType,onChange:function(e){return i({type:"fontType",payload:{value:e,id:o.id}})},isDisabled:!0},fC.map((function(e){return t.createElement(kg.Item,{value:e,key:e},e)})))),t.createElement(gC,null,t.createElement(Rm,{type:"number",value:null===(n=o.size)||void 0===n?void 0:n.toString(),iconRight:t.createElement("span",null,"px"),onChange:function(e){return i({type:"size",payload:{value:parseInt(e,10),id:o.id}})}})))),t.createElement(sC,{label:"Text color",onChange:function(e){return i({type:"color",payload:{value:e,id:o.id}})},onChangeValidation:function(e){return i({type:"isValid",payload:e})},color:o.color}),t.createElement(aC,{label:"Position",gravity:o.gravity,onChange:function(e){return i({type:"gravity",payload:{value:e,id:o.id}})}}),t.createElement(ME,{label:"Padding"},t.createElement(Rm,{type:"number",value:null===(r=o.padding)||void 0===r?void 0:r.toString(),iconRight:t.createElement("span",null,"px"),onChange:function(e){return i({type:"padding",payload:{value:parseInt(e,10),id:o.id}})}})),t.createElement(tC,{io:o,onDispatch:i}))}var hC=ql.div.withConfig({displayName:"FontTypeContainer",componentId:"sc-1w95sy3-0"})(["width:210px;margin-right:",";"],Dp.spacing4),gC=ql.div.withConfig({displayName:"FontSizeContainer",componentId:"sc-1w95sy3-1"})(["width:76px;"]);function vC(e){var n=e.io,r=e.onDispatch;return t.createElement(t.Fragment,null,t.createElement(qE,{width:n.width,height:n.height,onDispatch:r,id:n.id}),t.createElement(sC,{label:"Background",onChange:function(e){return r({type:"background",payload:{value:e,id:n.id}})},onChangeValidation:function(e){return r({type:"isValid",payload:e})},color:n.background}))}var yC=[{label:"Rectangle",path:"square",icon:t.createElement(pu,null)},{label:"Ellipse",path:"circle",icon:t.createElement(gu,null)}],bC=[{label:"Clipping Path",path:"clippingpath",icon:t.createElement(LE,null)}];function wC(e){var n,r=e.onChange,o=e.shape,i=null!==(n=yC.find((function(e){return e.path===o})))&&void 0!==n?n:bC.find((function(e){return e.path===o}));return t.createElement(ME,{label:"Path"},t.createElement(kg,Px({onChange:r,value:o},i),yC.map((function(e){return t.createElement(kg.Item,{value:e.path,key:e.path,icon:e.icon},e.label)})),t.createElement(kg.Divider,null),bC.map((function(e){return t.createElement(kg.Item,{value:e.path,key:e.path,icon:e.icon},e.label)}))))}var xC=[{label:"Focus point",focus:"point",icon:t.createElement(su,null)},{label:"Gravity",focus:"gravity",icon:t.createElement(cw,null)}];function EC(e){var n=e.gravity,o=e.onChangeGravity,i=Rx(r(!1),2),c=i[0],l=i[1],s=Rx(r(null),2),u=s[0],d=s[1];a((function(){u||(n?f():p())}),[n,u]);var p=function(){var e=xC.find((function(e){return"point"===e.focus}));d(e)},f=function(){var e=xC.find((function(e){return"gravity"===e.focus}));d(e)};return t.createElement(t.Fragment,null,t.createElement(ME,{label:"Focus",helpText:"gravity"===(null==u?void 0:u.focus)?"Select the direction from where the transformation is being applied.":"Uses the predefined focus point of the asset."},t.createElement(kg,Px(Px({onChange:function(e){var t="gravity"===e,n=xC.find((function(t){return t.focus===e}));d(n),l(t),o(t?"center":null)}},u),{},{value:null==u?void 0:u.focus}),xC.map((function(e){return t.createElement(t.Fragment,{key:e.focus},"gravity"===e.focus?t.createElement(kg.Divider,null):null,t.createElement(kg.Item,{value:e.focus,icon:e.icon},e.label))})))),c&&t.createElement(aC,{label:"Gravity",gravity:n,onChange:o}))}function CC(e){var n=e.io,r=e.onDispatch;return t.createElement(t.Fragment,null,t.createElement(wC,{shape:n.path,onChange:function(e){return r({type:"path",payload:{value:e,id:n.id}})}}),"clippingpath"!==n.path&&t.createElement(t.Fragment,null,t.createElement(qE,{width:n.width,height:n.height,onDispatch:r,id:n.id}),t.createElement(EC,{onChangeGravity:function(e){r({type:"gravity",payload:{value:e,id:n.id}})},gravity:n.gravity})),"circle"===n.path&&t.createElement(QE,{label:"Blur",value:n.blur,min:0,max:100,onChange:function(e){return r({type:"blur",payload:{value:e,id:n.id}})}}))}function kC(e){return t.createElement(Gh,Px({},e),t.createElement("path",{d:"M4 5H20V7H4V5Z",fill:"#334E5C"}),t.createElement("path",{d:"M4 9H20V12H4V9Z",fill:"#334E5C"}),t.createElement("path",{d:"M20 14H4V19H20V14Z",fill:"#334E5C"}))}function SC(e){var n=e.io,r=e.onDispatch,o=GE(n.width);return t.createElement(t.Fragment,null,t.createElement(sC,{label:"Color",onChange:function(e){return r({type:"color",payload:{value:e,id:n.id}})},onChangeValidation:function(e){return r({type:"isValid",payload:e})},color:n.color}),t.createElement(ME,{label:"Border"},t.createElement(pf,null,t.createElement(_C,null,t.createElement(Rm,{placeholder:"1",onChange:function(e){var t=parseInt(e,10),o=WE(t,500);r({type:"width",payload:{value:o,id:n.id}})},value:o,icon:t.createElement(kC,null),iconRight:t.createElement("span",null,"px")})),t.createElement(IC,null,t.createElement(Rm,{placeholder:"Outside",onChange:null,value:null,iconRight:t.createElement(Eu,null),isDisabled:!0})))))}var _C=ql.div.withConfig({displayName:"FlexInputColor",componentId:"sc-qgnlb2-0"})(["min-width:0;margin-right:",";"],Dp.spacing4),IC=ql.div.withConfig({displayName:"FlexInput",componentId:"sc-qgnlb2-1"})(["min-width:0;"]);function BC(e){var n=e.io,r=e.onDispatch;return t.createElement(t.Fragment,null,t.createElement(qE,{width:n.width,height:n.height,onDispatch:r,id:n.id}),t.createElement(EC,{onChangeGravity:function(e){r({type:"gravity",payload:{value:e,id:n.id}})},gravity:n.gravity}))}function TC(e){var n=e.onDispatch,r=e.io;return t.createElement(QE,{label:OE(r.filter),min:-100,max:100,value:r.amount,onChange:function(e){return n({type:"amount",payload:{value:e,id:r.id}})}})}function NC(e){var n=e.onDispatch,r=e.io;return t.createElement(QE,{label:"Blur",min:0,max:100,value:r.radius,onChange:function(e){return n({type:"radius",payload:{value:e,id:r.id}})}})}function zC(e){var n=e.io,r=e.onDispatch;return t.createElement(sC,{label:"Color",onChange:function(e){r({type:"color",payload:{value:e,id:n.id}})},onChangeValidation:function(e){r({type:"isValid",payload:e})},color:n.color})}function DC(e){var n=e.io,r=e.onDispatch,o=GE(n.padding);return t.createElement(ME,{label:"Padding"},t.createElement(pf,null,t.createElement(PC,null,t.createElement(Rm,{placeholder:"1",onChange:function(e){var t=parseInt(e,10),o=WE(t,3e3);r({type:"padding",payload:{value:o,id:n.id}})},value:o,icon:t.createElement(kC,null),iconRight:t.createElement("span",null,"px")}))))}var PC=ql.div.withConfig({displayName:"FlexInputColor",componentId:"sc-13pc6c3-0"})(["min-width:0;margin-right:",";"],Dp.spacing4);function OC(e){var n=e.io,r=e.onDispatch,o=["contrast","brightness","sharpness","saturation"].includes(n.filter),i=n.transform||n.overlay||n.filter;return t.createElement(t.Fragment,null,t.createElement(VE,{transformation:i,onChange:function(e){return r({type:"transformation",payload:{group:e.group,value:e.transformation,id:n.id}})}}),("fit"===n.transform||"scale"===n.transform)&&t.createElement(qE,{width:n.width,height:n.height,onDispatch:r,id:n.id}),"fill"===n.transform&&t.createElement(BC,{io:n,onDispatch:r}),"background"===n.transform&&t.createElement(zC,{io:n,onDispatch:r}),"rotate"===n.transform&&t.createElement(tC,{io:n,onDispatch:r}),"border"===n.transform&&t.createElement(SC,{io:n,onDispatch:r}),"extend"===n.transform&&t.createElement(vC,{io:n,onDispatch:r}),"crop"===n.transform&&t.createElement(CC,{io:n,onDispatch:r}),"trim"===n.transform&&t.createElement(DC,{io:n,onDispatch:r}),"text"===n.overlay&&t.createElement(mC,{io:n,onDispatch:r}),"blur"===n.filter&&t.createElement(NC,{io:n,onDispatch:r}),"opacity"===n.filter&&t.createElement(TC,{io:n,onDispatch:r}),o&&t.createElement(QE,{label:OE(n.filter),min:-100,max:100,value:n.amount,onChange:function(e){return r({type:"amount",payload:{value:e,id:n.id}})}}))}var AC=[{label:"Auto (recomended)",value:""},{label:"WebP",value:"webp"},{label:"JPG",value:"jpg"},{label:"PNG",value:"png"},{label:"AVIF",value:"avif"}],RC=[{label:"Very High",value:"95"},{label:"High",value:"85"},{label:"Medium (Auto)",value:"75"},{label:"Low",value:"65"}];function FC(e){var n,r,o=e.options,i=e.onDispatch,a=(null===(n=AC.find((function(e){return e.value===o.format})))||void 0===n?void 0:n.label)||"Select Format",c=(null===(r=RC.find((function(e){return e.value===String(o.quality)})))||void 0===r?void 0:r.label)||"Select Quality";return t.createElement(t.Fragment,null,t.createElement(ME,{label:"Format",helpText:"Set the output format"},t.createElement(kg,{onChange:function(e){return i({type:"format",payload:e})},label:a,value:o.format},AC.map((function(e){return t.createElement(kg.Item,{value:e.value,key:e.value},e.label)})))),t.createElement(ME,{label:"Quality"},t.createElement(kg,{onChange:function(e){return i({type:"quality",payload:Number(e)})},label:c,value:String(o.quality)},RC.map((function(e){return t.createElement(kg.Item,{value:e.value,key:e.label},e.label)})))))}var LC=function(e){var n=e.preset,o=e.onDispatch,i=Rx(r([]),2),a=i[0],c=i[1],l=Rx(r(!1),2),s=l[0],u=l[1];return t.createElement(jh,null,n.content.io.map((function(e){var n=a.includes(e.id),r=e.transform||e.overlay||e.filter,i=OE(r)||"New transformation",l=MC(e);return t.createElement(t.Fragment,{key:e.id},t.createElement(jh.Item,{subtext:l,thumbnail:t.createElement(_h,{variant:"clean",icon:t.createElement(AE,{type:r}),shape:"square"}),rightElements:t.createElement(jC,{isExpanded:n,onDeleteClick:function(t){return function(e,t){e.stopPropagation(),o({type:"deleteTransformation",payload:{id:t}})}(t,e.id)}}),onClick:function(){return function(e){a.includes(e)?c((function(t){return t.filter((function(t){return t!==e}))})):c((function(t){return[].concat(Fx(t),[e])}))}(e.id)}},i),n&&t.createElement(OC,{io:e,onDispatch:o,key:"".concat(e.id,"-transformation")}),t.createElement(jh.Divider,{key:"".concat(e.id,"-divider")}))})),t.createElement(jh.Item,{key:"add-button",onClick:function(){var e=aw();o({type:"addTransformation",payload:{id:e}}),c((function(t){return[].concat(Fx(t),[e])}))},thumbnail:t.createElement(_h,{icon:t.createElement(qs,null),shape:"square"})},"Add transformation"),t.createElement(jh.Divider,{key:"add-button-divider"}),t.createElement(jh.Item,{key:"advanced-button",subtext:"Format: ".concat(n.content.format.toUpperCase()||"Auto"," • Quality: ").concat(n.content.quality),thumbnail:t.createElement(_h,{variant:"clean",icon:t.createElement(AE,{type:"advanced"}),shape:"square"}),rightElements:s?t.createElement(Bu,null):t.createElement(Tu,null),onClick:function(){u(!s)}},"Output options"),s&&t.createElement(FC,{options:n.content,onDispatch:o,key:"advanced-options"}))},MC=function(e){var t="Focus Point";e.gravity&&(t=OE(e.gravity));var n=e.width&&e.height?"".concat(e.width," × ").concat(e.height," px "):"",r=t?"Focus: ".concat(t):"",o=e.color?"Color: #".concat(e.color):"",i=e.background?"Background: #".concat(e.background):"",a=e.path?"Shape: ".concat(e.path):"",c=e.blur?"Blur: ".concat(e.blur):"",l=e.amount?"Amount: ".concat(e.amount):"";switch(e.transform||e.filter){case"fill":return"".concat(n," ").concat(r&&n&&"• "+r);case"background":return o;case"border":return"".concat(o," • Width: ").concat(e.width,"px");case"crop":return"".concat(n," • ").concat(a," ").concat(i&&"• "+i," ").concat(c&&"• "+c);case"extend":return"".concat(n," ").concat(i&&"• "+i);case"fit":case"scale":return n;case"flip":return"Flip vertically";case"mirror":return"Flip horizontally";case"rotate":return"Angle: ".concat(e.angle||0,"°");case"opacity":case"contrast":case"brightness":case"blur":case"sharpness":case"saturation":return l;default:return""}},jC=function(e){var n=e.isExpanded,r=e.onDeleteClick;return t.createElement(pf,{alignItems:"center"},t.createElement(Sf,{content:"Remove transformation"},t.createElement(ef,{variant:"clean",icon:t.createElement(Ns,{fill:Dp.gray400a,onClick:r}),"aria-label":"Delete"})),n?t.createElement(Bu,null):t.createElement(Tu,null))};function HC(e){var n,r,o,i=e.preset,a=e.onDispatch,c=null!==(n=null===(r=i.content)||void 0===r||null===(o=r.io)||void 0===o?void 0:o.length)&&void 0!==n?n:0;return t.createElement(t.Fragment,null,t.createElement(VC,null,t.createElement(WC,null,"Transformations"),t.createElement(GC,null,1===c?"".concat(c," transformation applied"):c>1?"".concat(c," transformations applied"):"No transformations")),t.createElement($C,null,t.createElement(LC,{preset:i,onDispatch:a})))}var UC,VC=ql.div.withConfig({displayName:"TitleContainer",componentId:"sc-tlsynt-0"})(["padding-top:",";background-color:",";padding-bottom:",";position:absolute;width:100%;z-index:1;"],Dp.spacing6,Dp.white,Dp.spacing4),$C=ql.div.withConfig({displayName:"ListContainer",componentId:"sc-tlsynt-1"})(["margin-top:",";"],"76px"),WC=ql.div.withConfig({displayName:"Title",componentId:"sc-tlsynt-2"})(["font-size:16px;line-height:20px;color:",";"],Dp.gray800),GC=ql.div.withConfig({displayName:"SubTitle",componentId:"sc-tlsynt-3"})(["font-size:14px;line-height:20px;color:",";"],Dp.gray600);!function(e){e[e.transformations=0]="transformations",e[e.presets=1]="presets"}(UC||(UC={}));var qC=function(){return t.createElement(KC,null,t.createElement(ZC,null),t.createElement(JC,null,t.createElement(QC,{large:!0}),t.createElement(QC,null)))},YC=function(){return t.createElement(ek,null)},KC=ql.div.withConfig({displayName:"LoaderContainer",componentId:"sc-1vpf7m8-0"})(["display:flex;align-items:center;padding:12px;"]),XC=Gl(["0%{background-color:","}100%{background-color:","}"],Dp.gray50a,Dp.gray100a),ZC=ql.div.withConfig({displayName:"ThumbnailLoader",componentId:"sc-1vpf7m8-1"})(["width:50px;height:50px;border-radius:4px;animation:"," 1s linear infinite alternate;"],XC),JC=ql.div.withConfig({displayName:"ContentLoader",componentId:"sc-1vpf7m8-2"})(["display:flex;flex-direction:column;height:100%;margin-left:",";"],Dp.spacing4),QC=ql.div.withConfig({displayName:"Content",componentId:"sc-1vpf7m8-3"})(["height:10px;margin-bottom:",";width:",";border-radius:",";animation:"," 1s linear infinite alternate;"],Dp.spacing3,(function(e){return e.large?"110px":"60px"}),Dp.radiusSmall,XC),ek=ql.div.withConfig({displayName:"LoadImageSkeleton",componentId:"sc-1vpf7m8-4"})(["width:240px;height:320px;animation:"," 1s linear infinite alternate;"],XC),tk=function(e){var n=e.onPresetSelected,r=e.activeTab,o=e.presets,i=e.preset,c=e.dispatch,l=e.selectedPreset,s=e.isLoading,u=e.baseURL,d=e.canViewPresets,p=e.canViewTransformations;return a((function(){var e,t;r!==UC.transformations||null!=i&&null!==(e=i.content)&&void 0!==e&&null!==(t=e.io)&&void 0!==t&&t.length||c({type:"init"})}),[r,c,i]),t.createElement(nk,{direction:"column"},r===UC.presets?d?s?t.createElement(t.Fragment,null,Array.from(Array(5).keys()).map((function(e){return t.createElement(qC,{key:"preset-skeleton-".concat(e)})}))):t.createElement(PE,{baseURL:u,presets:o,onPresetSelected:n,selectedPreset:l}):null:p?t.createElement(rk,null,t.createElement(HC,{preset:i,onDispatch:c})):null)},nk=ql(pf).withConfig({displayName:"SidebarContainer",componentId:"sc-n1gktg-0"})(["width:336px;overflow-y:auto;overflow-x:hidden;background:",";flex:none;box-shadow:-1px 0px 0px rgba(0,34,51,0.1);height:100%;"],Dp.white),rk=ql.div.withConfig({displayName:"TransformationsContainer",componentId:"sc-n1gktg-1"})(["padding:0 ",";"],Dp.spacing6);function ok(e){var n=e.url,r=c(null);return l((function(){r.current.scrollLeft=r.current.scrollWidth}),[n]),t.createElement(ik,null,t.createElement(ak,null,t.createElement(ck,null,t.createElement(zu,null)),t.createElement(lk,{ref:r,onClick:function(){window.open(n,"_blank").focus()}},t.createElement(uk,null,n))),t.createElement(sk,null,t.createElement(Sf,{content:"Copy URL"},t.createElement(iw.CopyToClipboard,{text:n,onCopy:function(){wg({title:"Link copied to the clipboard",variant:"success"})}},t.createElement(ef,{variant:"clean",icon:t.createElement(Zs,null),"aria-label":"Copy to clipboard"}))),t.createElement(bE,{alwaysVisible:!0,presetURL:n})))}var ik=ql.div.withConfig({displayName:"Container",componentId:"sc-ucc5ld-0"})(["height:50px;background-color:",";border-radius:",";display:flex;align-items:center;justify-content:space-between;box-shadow:",";min-width:0;min-height:0;"],Dp.white,Dp.radiusLarge,Dp.elevationStatic),ak=ql.div.withConfig({displayName:"SideContainer",componentId:"sc-ucc5ld-1"})(["display:flex;align-items:center;min-width:0;min-height:0;"]),ck=ql.div.withConfig({displayName:"PublicIconContainer",componentId:"sc-ucc5ld-2"})(["margin-left:",";margin-right:",";fill:",";"],Dp.spacing5,Dp.spacing4,Dp.gray600),lk=ql.div.withConfig({displayName:"LinkContainer",componentId:"sc-ucc5ld-3"})(["color:",";font-size:",";cursor:pointer;overflow:scroll;white-space:nowrap;width:100%;height:100%;display:flex;&::-webkit-scrollbar{display:none;}-ms-overflow-style:none;scrollbar-width:none;"],Dp.gray800,Dp.fontSize100),sk=ql.div.withConfig({displayName:"ButtonsContainer",componentId:"sc-ucc5ld-4"})(["display:flex;width:100px;padding-right:",";"],Dp.spacing2),uk=ql.span.withConfig({displayName:"Link",componentId:"sc-ucc5ld-5"})(["display:flex;align-items:center;justify-content:center;height:100%;"]);function dk(e){var n=e.url,i=e.canViewTransformations,c=e.hideBottomBar,l=e.activeTab,s=e.onBack,u=e.onDone,d=e.onApply,p=e.onShowTransformations,f=e.hasActiveChanges,m=Rx(r(!0),2),h=m[0],g=m[1],v=o((function(){return function(e){if(!e)return"";var t=new URL(e);return t.searchParams.set("".concat(Date.now()),""),t.toString()}(n)}),[n]);return a((function(){g(!0)}),[n]),t.createElement(vk,null,t.createElement(yk,{justifyContent:"space-between",alignItems:"center"},t.createElement(bk,null,t.createElement(ef,{variant:"clean",icon:t.createElement(au,null),"aria-label":"Go back",onClick:s})),l===UC.presets&&i&&t.createElement(Ck,{variant:"clean",onClick:p,icon:t.createElement(RE,null)},"Transform"),l===UC.transformations&&("function"==typeof d&&f?t.createElement(wk,null,t.createElement(Ck,{variant:"primary",onClick:d},"Apply transformations")):t.createElement(Ck,{variant:"primary",onClick:u},"Done"))),t.createElement(Ek,{hideBottomBar:c},n&&t.createElement(gk,{src:v,alt:"",isImageLoading:h,onLoad:function(){g(!1)}}),h&&t.createElement(YC,null)),!c&&t.createElement(xk,null,t.createElement(ok,{url:n})))}var pk,fk,mk,hk,gk=ql.img.withConfig({displayName:"Image",componentId:"sc-dpw9jp-0"})(["display:",";max-width:100%;max-height:100%;background:",";"],(function(e){return e.isImageLoading?"none":"block"}),"repeating-conic-gradient(".concat(Dp.gray100a," 0% 25%, transparent 0% 50%) 50% / 14px 14px")),vk=ql.div.withConfig({displayName:"Container",componentId:"sc-dpw9jp-1"})(["display:flex;flex-direction:column;width:100%;height:100%;min-height:0;min-width:0;"]),yk=ql(pf).withConfig({displayName:"TopbarContainer",componentId:"sc-dpw9jp-2"})(["height:90px;width:100%;"]),bk=ql.div.withConfig({displayName:"ButtonBackContainer",componentId:"sc-dpw9jp-3"})(["margin-left:",";"],Dp.layoutSpacing1),wk=ql.div.withConfig({displayName:"TransformationButtonContainer",componentId:"sc-dpw9jp-4"})(["display:flex;gap:",";"],Dp.spacing4),xk=ql.div.withConfig({displayName:"BottomContainer",componentId:"sc-dpw9jp-5"})(["padding:",";"],Dp.spacing5),Ek=ql.div.withConfig({displayName:"ImageWrapper",componentId:"sc-dpw9jp-6"})(["display:flex;justify-content:center;align-items:center;flex:1;min-height:0;position:relative;",";"],(function(e){return e.hideBottomBar&&Tl(["margin-bottom:",";"],Dp.spacing8)})),Ck=ql(ef).withConfig({displayName:"TransformButton",componentId:"sc-dpw9jp-7"})(["float:right;margin-right:",";"],Dp.layoutSpacing1),kk=function(e){return e.data},Sk=function(e){if(e.response){var t=e.response.data;if(null!=t&&t.error)throw t.error;throw t}if(e.request)throw new Error("Server is not responding, please try again");throw e.message},_k=null===(pk=document.querySelector('meta[name="x-csrf-token"]'))||void 0===pk?void 0:pk.getAttribute("content"),Ik={"cache-control":"no-cache",pragma:"no-cache","x-csrf-token":(null===(fk=window)||void 0===fk?void 0:fk.csrf)||(null===(mk=window)||void 0===mk||null===(hk=mk.Bynder)||void 0===hk?void 0:hk.csrf_token)||_k},Bk=zx.create({headers:Ik}),Tk=function(){return"/v7/dat/presets/",Bk.get("/v7/dat/presets/",undefined).then(kk).catch(Sk)},Nk={id:"",transform:null,overlay:null,filter:null},zk={name:"",description:"",content:{format:"",quality:75,io:[]},isValid:!0};function Dk(e,t){var n,r=function(){return e.content.io.map((function(e){return Px({},e)}))};switch(t.type){case"init":return zk;case"edit":return Px(Px({isValid:!0},t.payload),{},{content:Px(Px({},t.payload.content),{},{io:t.payload.content.io.map((function(e){return Px(Px({},e),{},{id:aw()})}))})});case"addTransformation":return Px(Px({},e),{},{content:Px(Px({},e.content),{},{io:[].concat(Fx(r()),[Px(Px({},Nk),{},{id:t.payload.id,transform:"fill"})])})});case"deleteTransformation":return Px(Px({},e),{},{content:Px(Px({},e.content),{},{io:e.content.io.filter((function(e){return e.id!==t.payload.id}))})});case"isValid":case"name":case"description":return Px(Px({},e),{},(Ox(n={},t.type,t.payload),Ox(n,"content",Px(Px({},e.content),{},{io:r()})),n));case"format":case"quality":return Px(Px({},e),{},{content:Px(Px({},e.content),{},Ox({io:r()},t.type,t.payload))});case"transformation":return Px(Px({},e),{},{content:Px(Px({},e.content),{},{io:e.content.io.map((function(e){return e.id!==t.payload.id?Px({},e):Px(Px({},Pk(t.payload.value)),{},Ox({id:e.id},t.payload.group,t.payload.value))}))})});case"gravity":case"width":case"height":case"x":case"y":case"path":case"content":case"font":case"fontType":case"size":case"color":case"padding":case"angle":case"radius":case"amount":case"softness":case"background":case"blur":return Px(Px({},e),{},{content:Px(Px({},e.content),{},{io:e.content.io.map((function(e){return e.id!==t.payload.id?Px({},e):Px(Px({},e),{},Ox({},t.type,t.payload.value))}))})});default:return e}}var Pk=function(e){switch(e){case"fill":case"fit":case"extend":case"scale":return Px(Px({},Nk),{},{height:1e3,width:1e3});case"crop":return Px(Px({},Nk),{},{height:1e3,width:1e3,path:"square"});case"background":return Px(Px({},Nk),{},{color:"FFF"});case"border":return Px(Px({},Nk),{},{color:"FFF",width:1});case"rotate":return Px(Px({},Nk),{},{angle:0});case"opacity":return Px(Px({},Nk),{},{amount:100});case"blur":return Px(Px({},Nk),{},{radius:0});case"text":return Px(Px({},Nk),{},{content:"Add Text Here",font:"Arial",size:64,color:"FFF",gravity:"center",padding:20,angle:0});case"brightness":case"contrast":case"sharpness":case"saturation":return Px(Px({},Nk),{},{amount:0})}},Ok=ql.div.withConfig({displayName:"FlexContainer",componentId:"sc-inplsu-0"})(["display:flex;min-height:0;height:100%;"]);ql.div.withConfig({displayName:"NameIconContainer",componentId:"sc-i27a7s-0"})(["display:flex;min-width:0;"]),ql.div.withConfig({displayName:"DateContainer",componentId:"sc-i27a7s-1"})(["width:385px;font-size:",";color:",";"],Dp.fontSize75,Dp.gray600),ql.div.withConfig({displayName:"Name",componentId:"sc-i27a7s-2"})(["font-size:",";color:",";flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"],Dp.fontSize100,Dp.gray800),ql.div.withConfig({displayName:"DescriptionContainer",componentId:"sc-i27a7s-3"})(["display:flex;flex-direction:column;flex:1;min-width:0;padding:0 ",";"],Dp.spacing4),ql.div.withConfig({displayName:"Description",componentId:"sc-i27a7s-4"})(["font-size:",";color:",";"],Dp.fontSize75,Dp.gray600),ql.div.withConfig({displayName:"Actions",componentId:"sc-i27a7s-5"})(["display:flex;margin-left:",";justify-content:end;"],Dp.spacing4),ql.tr.withConfig({displayName:"Container",componentId:"sc-i27a7s-6"})(["height:72px;&:not(:last-child){border-bottom:solid 1px ",";}"],Dp.gray50),ql.th.withConfig({displayName:"Th",componentId:"sc-945e4m-0"})(["color:",";font-size:",";"],Dp.gray800,Dp.fontSize100),ql.table.withConfig({displayName:"Table",componentId:"sc-945e4m-1"})(["width:100%;"]),ql.header.withConfig({displayName:"Header",componentId:"sc-405vyk-0"})(["position:sticky;z-index:1;top:var(--pageHeaderTopPosition);display:flex;gap:",";justify-content:space-between;align-items:center;margin-bottom:",";padding:"," ",";background:",";"],Dp.spacing4,Dp.spacing7,Dp.spacing5,Dp.spacing6,Dp.white),ql.h3.withConfig({displayName:"Title",componentId:"sc-405vyk-1"})([""," margin:0;"],df.uiTextL);function Ak(e){var n,o=e.transformBaseUrl,i=e.transformation,c=e.setTransformation,l=e.closeDat,s=La(),u=r(),d=u[0],p=u[1],f=r(),m=f[0],h=f[1];a((function(){var e=s.querySelector(".cv-root");e&&p(e)}),[s]);var v=function(e,t){e&&i&&c({url:e,preset:t,asset:i.asset}),l()},y=function(e,t){w(t)&&i?h({url:e,preset:t,asset:i.asset}):v(e,t)},b=function(){return h(void 0)},w=function(e){return e.content.io.length>0};return d?g(t.createElement(Lk,null,t.createElement(Mk,{baseURL:o,canViewPresets:!1,canViewTransformations:!0,hideBottomBar:!0,onApply:v,onDone:y,onBack:y,initialTransformations:null===(n=null==i?void 0:i.preset)||void 0===n?void 0:n.content.io}),t.createElement(ug,{isOpen:!!m,title:"Transformations not yet applied",container:d,onClose:b,actionPrimary:t.createElement(ef,{variant:"primary",onClick:function(){v(null==m?void 0:m.url,null==m?void 0:m.preset),b()}},"Apply transformations"),actionSecondary:t.createElement(ef,{variant:"secondary",onClick:b},"Cancel"),actionTertiary:t.createElement(ef,{variant:"secondary",onClick:function(){c(void 0),b(),l()}},"Discard changes")},"Transformations not yet applied. Do you want to apply transformations now, or discard changes?")),d):null}var Rk,Fk,Lk=ql.div(Rk||(Rk=_a(["\n\tbackground-color: ",";\n\tz-index: 999999;\n\toverflow: hidden;\n\tborder-radius: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: stretch;\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\tposition: absolute;\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n"],["\n\tbackground-color: ",";\n\tz-index: 999999;\n\toverflow: hidden;\n\tborder-radius: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: stretch;\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\tposition: absolute;\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n"])),Dp.white,Dp.radiusBase),Mk=ql((function(e){var n=e.baseURL,i=e.canViewPresets,l=e.canViewTransformations,s=e.hideBottomBar,u=void 0!==s&&s,d=e.initialTransformations,p=e.onDone,m=e.onApply,h=e.onBack,g=i?UC.presets:UC.transformations,v=Rx(r(n),2),y=v[0],b=v[1],w=Rx(r(g),2),x=w[0],E=w[1],C=Rx(r(""),2),k=C[0],S=C[1],_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Px(Px({},zk),{},{content:Px(Px({},zk.content),{},{io:t})}),o=Rx(r([]),2),i=o[0],l=o[1],s=Rx(r(!1),2),u=s[0],d=s[1],p=Rx(f(Dk,n),2),m=p[0],h=p[1],g=c(!0);a((function(){return e&&(d(!0),v()),function(){g.current=!1}}),[e]);var v=function(){Tk().then((function(e){g.current&&(l(e.presets),d(!1))})).catch((function(e){g.current&&(d(!1),wg({title:e.toString(),variant:"error",isPersistent:!0}))}))};return{presets:i,setPresets:l,preset:m,dispatch:h,isLoading:u,defaultValues:n}}(i,d),I=_.presets,B=_.preset,T=_.dispatch,N=_.isLoading,z=_.defaultValues,D=B.content.io.length>0,P=function(e,t,n){var r=this,i=c(null),l=c(0),s=c(null),u=c([]),d=c(),p=c(),f=c(e),m=c(!0);a((function(){f.current=e}),[e]);var h=!t&&0!==t&&"undefined"!=typeof window;t=+t||0;var g=!!(n=n||{}).leading,v=!("trailing"in n)||!!n.trailing,y="maxWait"in n,b=y?Math.max(+n.maxWait||0,t):null;a((function(){return m.current=!0,function(){m.current=!1}}),[]);var w=o((function(){var e=function(e){var t=u.current,n=d.current;return u.current=d.current=null,l.current=e,p.current=f.current.apply(n,t)},n=function(e,t){h&&cancelAnimationFrame(s.current),s.current=h?requestAnimationFrame(e):setTimeout(e,t)},o=function(e){if(!m.current)return!1;var n=e-i.current;return!i.current||n>=t||n<0||y&&e-l.current>=b},a=function(t){return s.current=null,v&&u.current?e(t):(u.current=d.current=null,p.current)},c=function e(){var r=Date.now();if(o(r))return a(r);if(m.current){var c=t-(r-i.current),s=y?Math.min(c,b-(r-l.current)):c;n(e,s)}},w=function(){var a=Date.now(),f=o(a);if(u.current=[].slice.call(arguments),d.current=r,i.current=a,f){if(!s.current&&m.current)return l.current=i.current,n(c,t),g?e(i.current):p.current;if(y)return n(c,t),e(i.current)}return s.current||n(c,t),p.current};return w.cancel=function(){s.current&&(h?cancelAnimationFrame(s.current):clearTimeout(s.current)),l.current=0,u.current=i.current=d.current=s.current=null},w.isPending=function(){return!!s.current},w.flush=function(){return s.current?a(Date.now()):p.current},w}),[g,y,t,b,v,h]);return w}((function(){if(B.content.io.length>0){var e=function(e,t){var n=[],r=e.content,o=r.io,i=r.format,a=r.quality;return o.forEach((function(e){n.push(function(e){return{key:"io",value:Object.keys(e).filter((function(t){return"id"!==t&&null!==e[t]})).map((function(t){return"".concat(t,":").concat(e[t])})).join(",")}}(e))})),i&&n.push({key:"format",value:i}),a&&a!==t.content.quality&&n.push({key:"quality",value:a.toString()}),n.map((function(e){var t=e.key,n=e.value;return"".concat(t,"=").concat(n)})).join("&")}(B,z);b("".concat(n,"?").concat(e))}else b(n)}),500);return a((function(){return P(),function(){return P.cancel()}}),[P,B,n]),a((function(){i||l&&E(UC.transformations)}),[i,l]),t.createElement(Ok,null,t.createElement(dk,{url:y,canViewTransformations:l,activeTab:x,onApply:m?function(){return m(y,B)}:void 0,onBack:function(){return h(y,B)},hasActiveChanges:D,onDone:function(){i||D?i&&E(UC.presets):p(y,B)},onShowTransformations:function(){l&&E(UC.transformations)},hideBottomBar:u}),t.createElement(tk,{onPresetSelected:function(e){b(""!==e?n.split("/transform")[0]+"/transform/".concat(e,"/").concat(EE(n),"/"):n),S(e)},activeTab:x,presets:I,preset:B,dispatch:T,selectedPreset:k,isLoading:N,baseURL:n,canViewPresets:i,canViewTransformations:l}))}))(Fk||(Fk=_a(["\n\theight: 100%;\n\twidth: 100%;\n"],["\n\theight: 100%;\n\twidth: 100%;\n"]))),jk=n(null);function Hk(e){var n=r(),i=n[0],a=n[1],c=r(""),l=c[0],s=c[1],u=function(e,t){s(e),a((function(n){return{preset:(null==n?void 0:n.asset.id)===t.id?n.preset:void 0,url:e,asset:t}}))},d=o((function(){return{transformation:i,setTransformation:a,openDat:u,closeDat:function(){return s("")}}}),[i]);return t.createElement(jk.Provider,{value:d},e.children,l&&t.createElement(Ak,{transformBaseUrl:l,transformation:i,setTransformation:a,closeDat:function(){return s("")}}))}function Uk(){var e=i(jk);if(null===e)throw new Error("useTransformations must be used with a DatProvider");return e}function Vk(e){var n,o,i,c,l=e.transformBaseUrl,s=e.asset,u=e.toggleDropdown,d=Uk(),p=d.transformation,f=d.openDat,m=r(),h=m[0],g=m[1],v=null!==(c=null===(i=null===(o=null===(n=null==p?void 0:p.preset)||void 0===n?void 0:n.content)||void 0===o?void 0:o.io)||void 0===i?void 0:i.length)&&void 0!==c?c:0;return a((function(){if(p){var e=p.url,t="io=transform:fill,width:40,height:40";e.includes("io=transform:fill")&&g(e.replace(/io=transform:fill,width:[0-9]+,height:[0-9]+/,t)),g("".concat(e,"&").concat(t))}}),[p]),l?t.createElement(t.Fragment,null,t.createElement(jh.Divider,null),t.createElement(Wk,{thumbnail:p&&0!==v?t.createElement(_h,{imageUrl:h,"data-testid":"thumbnail-image"}):t.createElement(_h,{icon:t.createElement(fu,null),"data-testid":"crop-icon"}),rightElements:t.createElement(Du,null),onClick:function(){u(),f(l,s)},subtext:p&&v>0?"".concat(v," transformation").concat(1===v?"":"s"):""},"New transformation")):null}var $k,Wk=ql(jh.Item)($k||($k=_a(["\n\tmax-width: 100%;\n\twidth: 340px;\n\tmargin-left: 0;\n"],["\n\tmax-width: 100%;\n\twidth: 340px;\n\tmargin-left: 0;\n"]))),Gk=n(null);function qk(e){var n=r([]),i=n[0],c=n[1],l=r(),s=l[0],u=l[1],d=function(e){var t=this,n=r([]),o=n[0],i=n[1],c=Nv(),l=c.selectionMode,s=c.language,u=Ay(),d=!1;return a((function(){if(e){var n=null!=e?e:[];"MultiSelect"!==l&&(n=n[0]?[n[0]]:[]),r=n,Ca(t,void 0,void 0,(function(){var e,t,n;return ka(this,(function(o){switch(o.label){case 0:return r.length?[4,Uy(r,u,s)]:[3,2];case 1:e=o.sent(),d||Av(e)||(null===(t=e.value)||void 0===t||t.sort((function(e,t){return r.indexOf(e.id)-r.indexOf(t.id)})),i(null!==(n=e.value)&&void 0!==n?n:[])),o.label=2;case 2:return[2]}}))}))}var r;return function(){d=!0}}),[e]),o}(s),p=zv(),f=Uk().transformation;function m(){c([])}function h(e){c((function(t){var n=e.filter((function(e){return!Yk(t,e)}));return Sa(Sa([],t,!0),n.map((function(e){return{type:"asset",value:e}})),!0)}))}function g(e){var t;"MultiSelect"!==p?(t=e[0],i.some((function(e){return e.value.id===t.id}))?c([]):c([{type:"asset",value:t}])):c((function(t){var n=e.filter((function(e){return!Yk(t,e)})),r=e.filter((function(e){return Yk(t,e)}));return Sa(Sa([],t.filter((function(e){return!r.some((function(t){return t.id===e.value.id}))})),!0),n.map((function(e){return{type:"asset",value:e}})),!0)}))}function v(e){c((function(t){return Yk(t,e)?t.filter((function(t){return t.value.id!==e.id})):Sa(Sa([],t,!0),[{type:"collection",value:e}],!1)}))}a((function(){var t;u((null!==(t=e.preselectedAssetIds)&&void 0!==t?t:[]).filter((function(e){return!!e})).map((function(e){return window.btoa("(Asset_id "+e+")")})))}),[e.preselectedAssetIds]),a((function(){h(d)}),[d]),a((function(){f&&(m(),h([null==f?void 0:f.asset]))}),[f]);var y=o((function(){return{selection:i,preselectedAssetIds:s,clear:m,selectAssets:h,toggleAssets:g,toggleCollection:v}}),[i]);return t.createElement(Gk.Provider,{value:y},e.children)}function Yk(e,t){return e.some((function(e){return e.value.id===t.id}))}function Kk(){var e=i(Gk);if(null===e)throw new Error("useSelection must be used with a SelectionProvider");return e}function Xk(e){var n=e.className,r=e.collection,o=e.fadeIn,i=void 0===o||o,a=e.isSelected,c=e.style,l=zv(),s=Ta()[1],u=Kk(),d=Nv().hideExternalAccess;return t.createElement("div",{id:r.id,style:c,className:hv("m-2 w-56 self-start group relative",n,i&&"fade-in-down")},t.createElement(Kf,{contextAction:!d&&t.createElement(Kf.ContextActionButton,{"aria-label":qg("Open in new tab"),onClick:function(){window.open(r.url,"_blank")}},t.createElement(Ls,null)),selectButtonAriaLabel:qg(a?"Deselect":"Select"),onSelect:"MultiSelect"===l?function(e){e.stopPropagation(),u.toggleCollection(r)}:void 0,isSelected:a,onClick:function(){return s({page:"collection",collection:r})},"aria-selected":a,"data-testid":"asset-card"},t.createElement(Kf.Frame,null,t.createElement(Kf.Images,null,r.thumbnailUrls.slice(0,3).map((function(e){return t.createElement(Kf.Img,{key:e,src:e,alt:r.name})})))),t.createElement(Kf.Header,{title:r.name,"data-testid":"asset-name"}),t.createElement("div",{className:"pl-4 pb-3 -mt-1 text-sm text-body-400"},kv(r.assetCount,qg("{} asset"),qg("{} assets")))))}function Zk(e){var t=r(void 0),n=t[0],o=t[1],i=c(void 0);function l(t){void 0!==i.current&&cancelAnimationFrame(i.current),i.current=requestAnimationFrame((function(){var n=null!=t?t:e;if(null!==n){var r=n.getBoundingClientRect();o({width:r.width,height:r.height,scrollWidth:n.scrollWidth})}}))}return a((function(){l();var e=function(){return l()};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e),i.current&&cancelAnimationFrame(i.current)}}),[e]),{dimensions:n,remeasure:l}}function Jk(e,t){if(!e)throw new Error("Invariant failed")}function Qk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eS(){return eS=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eS.apply(this,arguments)}function tS(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var nS=new Map,rS=new Map,oS=new Map,iS=0;function aS(e,t,n){void 0===n&&(n={}),n.threshold||(n.threshold=0);var r=n,o=r.root,i=r.rootMargin,a=r.threshold;if(nS.has(e)&&Jk(!1),e){var c=function(e){return e?oS.has(e)?oS.get(e):(iS+=1,oS.set(e,iS.toString()),oS.get(e)+"_"):""}(o)+(i?a.toString()+"_"+i:a.toString()),l=rS.get(c);l||(l=new IntersectionObserver(lS,n),c&&rS.set(c,l));var s={callback:t,element:e,inView:!1,observerId:c,observer:l,thresholds:l.thresholds||(Array.isArray(a)?a:[a])};return nS.set(e,s),l.observe(e),s}}function cS(e){if(e){var t=nS.get(e);if(t){var n=t.observerId,r=t.observer,o=r.root;r.unobserve(e);var i=!1,a=!1;n&&nS.forEach((function(t,r){r!==e&&(t.observerId===n&&(i=!0,a=!0),t.observer.root===o&&(a=!0))})),!a&&o&&oS.delete(o),r&&!i&&r.disconnect(),nS.delete(e)}}}function lS(e){e.forEach((function(e){var t=e.isIntersecting,n=e.intersectionRatio,r=e.target,o=nS.get(r);if(o&&n>=0){var i=o.thresholds.some((function(e){return o.inView?n>e:n>=e}));void 0!==t&&(i=i&&t),o.inView=i,o.callback(i,e)}}))}var sS=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Qk(tS(t=e.call.apply(e,[this].concat(r))||this),"state",{inView:!1,entry:void 0}),Qk(tS(t),"node",null),Qk(tS(t),"handleNode",(function(e){t.node&&(cS(t.node),e||t.props.triggerOnce||t.setState({inView:!1,entry:void 0})),t.node=e||null,t.observeNode()})),Qk(tS(t),"handleChange",(function(e,n){(e!==t.state.inView||e)&&t.setState({inView:e,entry:n}),t.props.onChange&&t.props.onChange(e,n)})),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.componentDidMount=function(){this.node||Jk(!1)},o.componentDidUpdate=function(e,t){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold||(cS(this.node),this.observeNode()),t.inView!==this.state.inView&&this.state.inView&&this.props.triggerOnce&&(cS(this.node),this.node=null)},o.componentWillUnmount=function(){this.node&&(cS(this.node),this.node=null)},o.observeNode=function(){if(this.node){var e=this.props,t=e.threshold,n=e.root,r=e.rootMargin;aS(this.node,this.handleChange,{threshold:t,root:n,rootMargin:r})}},o.render=function(){var e=this.state,t=e.inView,n=e.entry;if(!function(e){return"function"!=typeof e.children}(this.props))return this.props.children({inView:t,entry:n,ref:this.handleNode});var r=this.props,o=r.children,i=r.as,a=r.tag,c=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,["children","as","tag","triggerOnce","threshold","root","rootMargin","onChange"]);return s(i||a||"div",eS({ref:this.handleNode},c),o)},r}(m);Qk(sS,"displayName","InView"),Qk(sS,"defaultProps",{threshold:0,triggerOnce:!1});var uS={inView:!1,entry:void 0};function dS(e){var n=function(e){void 0===e&&(e={});var t=c(),n=r(uS),o=n[0],i=n[1];return[u((function(n){t.current&&(cS(t.current),e.triggerOnce||i(uS)),n&&aS(n,(function(t,r){i({inView:t,entry:r}),t&&e.triggerOnce&&cS(n)}),e),t.current=n}),[e.threshold,e.root,e.rootMargin,e.triggerOnce]),o.inView,o.entry]}(),o=n[0],i=n[1];return a((function(){i&&!e.isLoading&&e.hasNextPage&&e.loadMore()}),[i]),t.createElement(t.Fragment,null,e.children,e.hasNextPage&&t.createElement("div",{className:"relative h-32 w-full",ref:o,"data-testid":"loading-element"},t.createElement(Ey,{className:hv(!i&&"hidden")})))}function pS(){return t.createElement("svg",{viewBox:"0 5 60 82",className:"h-20"},t.createElement("defs",null,t.createElement("filter",{x:"-1.7%",y:"-1.2%",width:"103.3%",height:"105%",filterUnits:"objectBoundingBox",id:"prefix__a"},t.createElement("feOffset",{dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),t.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0.133333333 0 0 0 0 0.2 0 0 0 0.05 0",in:"shadowOffsetOuter1"})),t.createElement("filter",{x:"-5%",y:"-5%",width:"110%",height:"120%",filterUnits:"objectBoundingBox",id:"prefix__c"},t.createElement("feOffset",{dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),t.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0.133333333 0 0 0 0 0.2 0 0 0 0.05 0",in:"shadowOffsetOuter1"})),t.createElement("path",{d:"M5 5h35l20 20v55a5 5 0 01-5 5H5a5 5 0 01-5-5V10a5 5 0 015-5z",id:"prefix__b"}),t.createElement("path",{d:"M40 5l20 20H45a5 5 0 01-5-5V5z",id:"prefix__d"})),t.createElement("g",{fill:"none",fillRule:"evenodd"},t.createElement("use",{fill:"#000",filter:"url(#prefix__a)",xlinkHref:"#prefix__b"}),t.createElement("use",{fill:"#FFF",xlinkHref:"#prefix__b"}),t.createElement("g",{fillRule:"nonzero"},t.createElement("use",{fill:"#000",filter:"url(#prefix__c)",xlinkHref:"#prefix__d"}),t.createElement("use",{fill:"#FFF",xlinkHref:"#prefix__d"}))))}function fS(e){return t.createElement(wS,null,t.createElement(xS,null,t.createElement(pS,null),t.createElement(ES,null)),t.createElement(CS,null,qg("No results found")),t.createElement(kS,null,qg("Try adjusting the filter to find assets.")),t.createElement(SS,{variant:"primary",title:qg("Reset filters"),onClick:e.onReset},qg("Reset filters")))}var mS,hS,gS,vS,yS,bS,wS=ql.div(mS||(mS=_a(["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n"],["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n"]))),xS=ql.div(hS||(hS=_a(["\n\tbackground-color: ",";\n\tborder-radius: 50%;\n\twidth: 160px;\n\theight: 160px;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n"],["\n\tbackground-color: ",";\n\tborder-radius: 50%;\n\twidth: 160px;\n\theight: 160px;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n"])),Dp.gray25),ES=ql(js)(gS||(gS=_a(["\n\tposition: absolute;\n\tmargin: "," 0 0 1px;\n\tcolor: ",";\n\twidth: 36px;\n\theight: 36px;\n"],["\n\tposition: absolute;\n\tmargin: "," 0 0 1px;\n\tcolor: ",";\n\twidth: 36px;\n\theight: 36px;\n"])),Dp.spacing2,Dp.gray300),CS=ql.h1(vS||(vS=_a(["\n\tmargin-top: ",";\n\tfont-size: ",";\n"],["\n\tmargin-top: ",";\n\tfont-size: ",";\n"])),Dp.spacing6,Dp.fontSize400),kS=ql.span(yS||(yS=_a(["\n\tmargin-top: ",";\n\tcolor: ",";\n"],["\n\tmargin-top: ",";\n\tcolor: ",";\n"])),Dp.spacing5,Dp.colorTextDisabled),SS=ql(ef)(bS||(bS=_a(["\n\tmargin-top: ",";\n"],["\n\tmargin-top: ",";\n"])),Dp.spacing7);function _S(e){var n,o,i=r(null),a=i[0],c=i[1],l=Zk(a).dimensions,s=Kk().selection.filter((function(e){return"collection"===e.type})).map((function(e){return e.value.id})),u=Pa().setSearch,d=e.connection,p=d.data,f=d.isLoading,m=d.loadMore,h=d.hasNextPage,g=void 0!==l?Math.ceil(l.height/184):0,v=void 0!==l?Math.round((l.width-32)/204):0;return t.createElement("div",{role:"listbox",className:"card-list",ref:function(e){c(e)}},("Failure"===p.tag||"Loading"===p.tag&&!p.value)&&t.createElement(_v,{rows:g,columns:v,title:t.createElement("div",{className:"mt-2 text-sm"}," ")}),"Loaded"===p.tag&&0===(null===(n=p.value)||void 0===n?void 0:n.collections.nodes.length)&&t.createElement(fS,{onReset:function(){return u("collections","")}}),("Loading"===p.tag&&!!p.value||"Loaded"===p.tag&&p.value.collections.nodes.length>0)&&t.createElement(dS,{hasNextPage:h,isLoading:f,loadMore:m},null===(o=p.value)||void 0===o?void 0:o.collections.nodes.map((function(e,n){return t.createElement(Xk,{key:e.id,isSelected:s.includes(e.id),collection:e,fadeIn:n>=g*v})}))))}function IS(){var e=Oa("collections"),n=e.value,o=e.setIsLoading,i=function(e){var t,n=this,o=Ay(),i=r({tag:"Loading",value:null}),c=i[0],l=i[1],s=!1,u=function(t){return Ca(n,void 0,void 0,(function(){var n,r;return ka(this,(function(i){switch(i.label){case 0:return l((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),[4,Mv("\nquery getCollections($searchTerm: String, $orderBy: CollectionOrder!, $after: Cursor) {\n collections(after: $after, first: 50, filter: {name_contains: $searchTerm, assetCount_gte: 1}, orderBy: $orderBy) {\n nodes {\n id\n name\n assetCount\n thumbnailUrls\n url\n }\n totalCount\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}",xa(xa({},e),{searchTerm:null!==(r=e.searchTerm)&&void 0!==r?r:null,after:null!=t?t:null}),o)];case 1:return n=i.sent(),s||(Av(n)?l({tag:"Failure",value:n.error}):d(n,t)),[2]}}))}))},d=function(e,t){p()&&t?l((function(t){var n,r,o=null!==(r=null===(n=p(t))||void 0===n?void 0:n.nodes)&&void 0!==r?r:[];return{tag:"Loaded",value:{collections:xa(xa({},e.value.collections),{nodes:Sa(Sa([],o,!0),e.value.collections.nodes,!0)})}}})):l({tag:"Loaded",value:e.value})},p=function(e){var t,n=null!=e?e:c;if("Failure"!==n.tag)return null===(t=n.value)||void 0===t?void 0:t.collections};return a((function(){return u(),function(){s=!0}}),[e.searchTerm,e.orderBy]),{data:c,executeQuery:function(){return u()},isLoading:!c||"Loading"===c.tag,loadMore:function(){var e;return u(null===(e=p())||void 0===e?void 0:e.pageInfo.endCursor)},hasNextPage:!!(null===(t=p())||void 0===t?void 0:t.pageInfo.hasNextPage)}}({searchTerm:n,orderBy:ba("collections")[0]});return a((function(){i.isLoading||o(!1)}),[i.isLoading]),"Failure"===i.data.tag?t.createElement(dv,{error:new Error(i.data.value),onRetry:i.executeQuery}):t.createElement("div",{className:"flex flex-col flex-grow overflow-y-auto"},t.createElement("div",{className:"flex items-center px-4 pt-4 pb-2 z-10"},i.data.value&&t.createElement("span",{className:"flex-shrink-0 flex-grow text-body-400 fade-in-down"},kv(i.data.value.collections.totalCount,qg("{} collection"),qg("{} collections"))),!i.data.value&&t.createElement("span",{className:"flex-grow"}),t.createElement(xv,{options:["CREATED_AT","NAME"]}),t.createElement(pv,null)),t.createElement(_S,{connection:i}))}var BS=n(null);function TS(e){var n=e.children,i=e.hideLimitedUse,c=void 0!==i&&i,l=r([]),s=l[0],u=l[1],d=r([]),p=d[0],f=d[1],m=r([]),h=m[0],g=m[1],v=r(),y=v[0],b=v[1],w=r({}),x=w[0],E=w[1];function C(e){u((function(t){return NS(t,e)}))}function k(e){u((function(t){return zS(t,e)}))}function S(e){f((function(t){return NS(t,e.id)})),E((function(t){var n;return xa(xa({},t),((n={})[e.id]=e,n))}))}function _(e){f((function(t){return zS(t,e.id)})),E((function(t){var n=t,r=e.id;return Ea(n,["symbol"==typeof r?r:r+""])}))}function I(e){g((function(t){return NS(t,e)}))}function B(e){g((function(t){return zS(t,e)}))}function T(){u([]),f([]),E({}),g([])}a((function(){b(!c&&void 0)}),[c]);var N=p.map((function(e){return x[e]})),z=o((function(){return{assetTypes:s,metaproperties:N,tags:h,isLimited:y,addAssetType:C,removeAssetType:k,addMetaproperty:S,removeMetaproperty:_,addTag:I,removeTag:B,clear:T}}),[s,N,h,y]);return t.createElement(BS.Provider,{value:z},n)}function NS(e,t){return e.includes(t)?e:Sa(Sa([],e,!0),[t],!1)}function zS(e,t){return e.filter((function(e){return e!==t}))}function DS(){var e=i(BS);if(null===e)throw new Error("useAssetFilter must be used with a AssetFilterProvider");return e}function PS(e){return qg({AUDIO:"Audio",DOCUMENT:"Document",IMAGE:"Image",VIDEO:"Video",ARCHIVE:"Archive"}[e])}function OS(e){switch(e){case"AUDIO":return Gs;case"DOCUMENT":return tu;case"IMAGE":return vu;case"VIDEO":return Ws;case"ARCHIVE":return Ys}}function AS(e){return t.createElement(FS,{icon:t.createElement(_u,null),"aria-label":"Next",title:"Next",variant:"clean",isSmall:!0,onClick:e.onClick,"data-testid":"arrow-right",isVisible:e.isVisible})}var RS,FS=ql(ef)(RS||(RS=_a(["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\n\t&:hover {\n\t\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\t}\n\n\t","\n"],["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\n\t&:hover {\n\t\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\t}\n\n\t","\n"])),(function(e){return!e.isVisible&&"\n\t\tdisplay: none;\n\t"}));function LS(e){return t.createElement(jS,{icon:t.createElement(Su,null),"aria-label":"Previous",title:"Previous",variant:"clean",isSmall:!0,onClick:e.onClick,"data-testid":"arrow-left",isVisible:e.isVisible})}var MS,jS=ql(ef)(MS||(MS=_a(["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: 4px 0 13px 13px #fff;\n\n\t&:hover {\n\t\tbox-shadow: 4px 0 13px 13px #fff;\n\t}\n\n\t","\n"],["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: 4px 0 13px 13px #fff;\n\n\t&:hover {\n\t\tbox-shadow: 4px 0 13px 13px #fff;\n\t}\n\n\t","\n"])),(function(e){return!e.isVisible&&"\n\t\tdisplay: none;\n\t"}));function HS(e){var n=r(0),o=n[0],i=n[1],l=c(null),s=Zk(l.current),u=s.dimensions,d=s.remeasure,p=null!==l.current?l.current.scrollWidth-l.current.clientWidth:0,f=void 0!==u&&u.width<u.scrollWidth;a((function(){d(l.current)}),[e.children,l.current]),a((function(){f||i(0)}),[f]);var m=o>0,h=p>5&&o!==p;return t.createElement("div",{className:hv("inline-flex flex-grow overflow-hidden",e.className)},f&&t.createElement(LS,{isVisible:m,onClick:function(){i((function(e){var t=Math.max(e-250,0);return t>=100?t:0}))}}),t.createElement("div",{className:"overflow-hidden",ref:l},t.createElement("div",{className:"transition-transform inline-flex",style:{transform:"translateX(".concat(-o,"px)")},"data-testid":"horizontal-scrollable-el"},e.children)),f&&t.createElement(AS,{isVisible:h,onClick:function(){i((function(e){var t=Math.min(e+250,p);return t<=p-100?t:p}))}}),e.static)}function US(e){var n=hv("bg-ui-0 border border-ui-600 flex-shrink-0 h-8 inline-flex\n\t\t items-center justify-center px-3 rounded-full select-none shadow-border\n\t\t text-sm text-white transition-color",e.className);return t.createElement("div",{className:n,onClick:e.onClick,onKeyDown:function(t){return function(e,t){t&&"Enter"===e.key&&(e.preventDefault(),t(e))}(t,e.onClick)},role:"button",tabIndex:0,"data-testid":e["data-testid"]},e.children)}function VS(e){return t.createElement(US,{className:"mr-2 fade-in-down","data-testid":"selected-filter:".concat(e.title)},e.icon,t.createElement("span",{className:"max-w-32 truncate",title:e.title},e.title),t.createElement(Iu,{onClick:e.onClick,title:qg("Remove filter"),className:"w-5 h-5 ml-1 -mr-1 text-body-300 hover:text-body-400 cursor-pointer"}))}function $S(){var e=DS(),n=0===e.metaproperties.length&&0===e.assetTypes.length&&0===e.tags.length?void 0:t.createElement(GS,{variant:"clean",isSmall:!0,onClick:e.clear},qg("Clear filters"));return t.createElement("div",{"data-testid":"selected-filter-list"},t.createElement(HS,{className:"ml-2",static:n},e.assetTypes.map((function(n){var r=OS(n);return t.createElement(VS,{key:n,onClick:function(){return e.removeAssetType(n)},title:PS(n),icon:t.createElement(r,{className:"w-5 h-5 mr-1"})})})),e.metaproperties.map((function(n){return t.createElement(VS,{key:n.id,onClick:function(){return e.removeMetaproperty(n)},title:n.label})})),e.tags.map((function(n){return t.createElement(VS,{key:n,onClick:function(){return e.removeTag(n)},title:n})}))))}var WS,GS=ql(ef)(WS||(WS=_a(["\n\tflex-shrink: 0;\n\tanimation: var(--fade-in-down);\n"],["\n\tflex-shrink: 0;\n\tanimation: var(--fade-in-down);\n"]))),qS=["xls","xlsx","ppt","pdf","pptx","indd","mp4","wav","docx","doc","numbers","pages","otf","txt","ttf","mov","avi","mpeg","webm","fla","aiff","mp3","m4r","zip","rar"];function YS(e){if(e.derivatives.thumbnail)return e.derivatives.thumbnail;var t=e.extensions[0];return qS.includes(t)?"".concat("https://d8ejoa1fys2rk.cloudfront.net","/includes/img/placeholder/medium/").concat(t,".jpg"):"".concat("https://d8ejoa1fys2rk.cloudfront.net","aif"===t?"/includes/img/placeholder/medium/aiff.jpg":"m4a"===t?"/includes/img/placeholder/medium/m4r.jpg":"/includes/img/common/no-image.png")}function KS(e){var t=e.extensions[0];return"JPG"===(null==t?void 0:t.toUpperCase())?"JPEG":null==t?void 0:t.toUpperCase()}function XS(e){var n=e.transformBaseUrl,r=e.portalUrl,o=e.onOpenDAT,i=Nv(),a=i.hideExternalAccess,c="SingleSelectFile"===i.selectionMode&&n;return!c&&a?null:c||a?c&&a?t.createElement(Kf.ContextActionButton,{"aria-label":"New transformation",onClick:o},t.createElement(fu,null)):t.createElement(Wh,{trigger:function(e){var n=e.isOpen,r=Ea(e,["isOpen"]);return t.createElement(Kf.ContextActionButton,xa({"aria-label":"Menu",isPressed:n},r),t.createElement(Nu,null))},isClosedOnScroll:!0},t.createElement(Wh.Item,{icon:t.createElement(Ls,null),onClick:function(){window.open(r,"_blank")}},"Open asset"),t.createElement(Wh.Divider,null),t.createElement(Wh.Item,{icon:t.createElement(fu,null),onClick:o},"New transformation")):t.createElement(Kf.ContextActionButton,{"aria-label":qg("Open in new tab"),onClick:function(){window.open(r,"_blank")}},t.createElement(Ls,null))}function ZS(e){var n,o,i=e.className,c=e.fadeIn,l=void 0===c||c,s=e.asset,u=e.isSelected,d=e.isOutlined,p=e.onClick,f=e.children,m=void 0===f?null:f,h=r(),g=h[0],v=h[1],y=Uk(),b=y.openDat,w=y.setTransformation,x=Nv().theme,E=function(e){return[e.isArchived&&qg("archived"),e.isWatermarked&&qg("watermarked"),e.isLimitedUse&&qg("limited")].filter((function(e){return e})).join(", ")}(s),C=KS(s);a((function(){var e,t=null===(e=s.metaproperties)||void 0===e?void 0:e.nodes.filter((function(e){return e.showInGridView||e.showInListView}));v(t)}),[s.metaproperties]);var k=function(e){void 0!==p&&(e.stopPropagation(),w(),p(s,e))};return t.createElement(t_,{id:s.id,theme:x,isOutlined:(u||d)&&void 0!==(null==x?void 0:x.colorPrimary),fadeIn:l,className:hv("group",i),"data-drag-select-id":s.id},t.createElement(Kf,{contextAction:t.createElement(XS,{transformBaseUrl:null===(o=null===(n=s.files)||void 0===n?void 0:n.transformBaseUrl)||void 0===o?void 0:o.url,portalUrl:s.url,onOpenDAT:function(){var e,t;return b(null===(t=null===(e=s.files)||void 0===e?void 0:e.transformBaseUrl)||void 0===t?void 0:t.url,s)}}),selectButtonAriaLabel:qg(u?"Deselect":"Select"),onSelect:k,onClick:k,isSelected:u,"aria-selected":u,"data-testid":"asset-card"},t.createElement(Kf.Frame,{icon:E?t.createElement(n_,{color:"black-alpha",limitWidth:!!C,"data-testid":"asset-tag"},t.createElement(Df,null,E)):void 0,"data-testid":"asset-type",badge:C},t.createElement(Kf.Images,null,YS(s)&&t.createElement(Kf.Img,{src:YS(s),alt:s.name,contentResize:"fit"}))),m,t.createElement(r_,{"data-testid":"asset-name"},s.name),!!(null==g?void 0:g.length)&&t.createElement(Kf.AdditionalInfo,null,t.createElement("dl",{className:"text-body-400 text-sm flex flex-col gap-y-px"},g&&g.map((function(e){var n=e.label,r=e.options.map((function(e){return e.label})).join(", ");return t.createElement("div",{className:"flex flex-wrap",key:n},t.createElement("dt",{className:"text-body-300 pr-1"},n,":"),t.createElement("dd",{className:""},r))}))))))}var JS,QS,e_,t_=ql.div(JS||(JS=_a(["\n\tmargin: ",";\n\twidth: 224px;\n\talign-self: flex-start;\n\tposition: relative;\n\t","\n\n\t--userComponentCardSelectedColor: ",";\n\t--userComponentCardSelectedColorHover: ",";\n\t--userComponentCardSelectedColorActive: ",";\n"],["\n\tmargin: ",";\n\twidth: 224px;\n\talign-self: flex-start;\n\tposition: relative;\n\t","\n\n\t--userComponentCardSelectedColor: ",";\n\t--userComponentCardSelectedColorHover: ",";\n\t--userComponentCardSelectedColorActive: ",";\n"])),Dp.spacing3,(function(e){return e.fadeIn?"animation: var(--fade-in-down);":""}),(function(e){var t=e.theme;return null==t?void 0:t.colorButtonPrimary}),(function(e){var t=e.theme;return null==t?void 0:t.colorButtonPrimaryHover}),(function(e){var t=e.theme;return null==t?void 0:t.colorButtonPrimaryActive})),n_=ql(Pp)(QS||(QS=_a(["\n\t","\n"],["\n\t","\n"])),(function(e){return e.limitWidth&&"max-width: 142px;"})),r_=ql.p(e_||(e_=_a(["\n\twidth: auto;\n\tmax-width: 100%;\n\theight: auto;\n\tline-height: 20px;\n\tmin-height: 20px;\n\tmax-height: 20px;\n\tpadding: var(--card-content-padding);\n\ttransition: all 200ms ease;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n\tbox-sizing: content-box;\n\n\t&:hover {\n\t\tmax-height: 80px;\n\t\tword-break: break-all;\n\t\twhite-space: normal;\n\t}\n"],["\n\twidth: auto;\n\tmax-width: 100%;\n\theight: auto;\n\tline-height: 20px;\n\tmin-height: 20px;\n\tmax-height: 20px;\n\tpadding: var(--card-content-padding);\n\ttransition: all 200ms ease;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n\tbox-sizing: content-box;\n\n\t&:hover {\n\t\tmax-height: 80px;\n\t\tword-break: break-all;\n\t\twhite-space: normal;\n\t}\n"])));function o_(e,t,n){var r=this,i=c(null),l=c(0),s=c(null),u=c([]),d=c(),p=c(),f=c(e),m=c(!0);f.current=e;var h=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var g=!!(n=n||{}).leading,v=!("trailing"in n)||!!n.trailing,y="maxWait"in n,b=y?Math.max(+n.maxWait||0,t):null;a((function(){return m.current=!0,function(){m.current=!1}}),[]);var w=o((function(){var e=function(e){var t=u.current,n=d.current;return u.current=d.current=null,l.current=e,p.current=f.current.apply(n,t)},n=function(e,t){h&&cancelAnimationFrame(s.current),s.current=h?requestAnimationFrame(e):setTimeout(e,t)},o=function(e){if(!m.current)return!1;var n=e-i.current,r=e-l.current;return!i.current||n>=t||n<0||y&&r>=b},a=function(t){return s.current=null,v&&u.current?e(t):(u.current=d.current=null,p.current)},c=function(){var e=Date.now();if(o(e))return a(e);if(m.current){var r=e-i.current,s=e-l.current,u=t-r,d=y?Math.min(u,b-s):u;n(c,d)}},w=function(){for(var a=[],f=0;f<arguments.length;f++)a[f]=arguments[f];var h=Date.now(),v=o(h);if(u.current=a,d.current=r,i.current=h,v){if(!s.current&&m.current)return l.current=i.current,n(c,t),g?e(i.current):p.current;if(y)return n(c,t),e(i.current)}return s.current||n(c,t),p.current};return w.cancel=function(){s.current&&(h?cancelAnimationFrame(s.current):clearTimeout(s.current)),l.current=0,u.current=i.current=d.current=s.current=null},w.isPending=function(){return!!s.current},w.flush=function(){return s.current?a(Date.now()):p.current},w}),[g,y,t,b,v,h]);return w}function i_(e,t){return e===t}function a_(e){return"function"==typeof e?function(){return e}:e}function c_(e,t,n){var o=n&&n.equalityFn||i_,i=function(e){var t=r(a_(e)),n=t[0],o=t[1];return[n,u((function(e){return o(a_(e))}),[])]}(e),l=i[0],s=i[1],d=o_(u((function(e){return s(e)}),[s]),t,n),p=c(e);return a((function(){o(p.current,e)||(d(e),p.current=e)}),[e,d,o]),[l,{cancel:d.cancel,isPending:d.isPending,flush:d.flush}]}var l_={x:null,y:null},s_=function(e){var n=e.dragContainer,o=e.selectionBoxCustomAttr,i=e.onSelect,l=e.onDeselect,s=e.onDragStart,d=e.onDragEnd,p=r(l_),f=p[0],m=p[1],g=r(l_),v=g[0],y=g[1],b=c_(v,10,{leading:!0,maxWait:10})[0],w=r(),x=w[0],E=w[1],C=La(),k=t.useMemo((function(){return d_(f,b,C.querySelector(".cv-root"))}),[f,b,C]),S=c_(k,50,{leading:!1,maxWait:50})[0],_=r([]),I=_[0],B=_[1],T=g_(I),N=c(f),z=c(v),D=c(null!==N.current.x&&null!==N.current.y&&null!==z.current.x&&null!==z.current.y),P=c({shiftKey:!1,metaKey:!1});a((function(){return document.addEventListener("keydown",O,!1),document.addEventListener("keyup",O,!1),function(){document.removeEventListener("keydown",O,!1),document.removeEventListener("keyup",O,!1)}}),[]);var O=function(e){var t=e.shiftKey,n=e.metaKey,r=t||n?"inverse":"select";P.current={shiftKey:t,metaKey:n},D.current&&r!==x&&E(r)};a((function(){var e;return"function"==typeof s&&D.current?(O(P.current),s(null!=x?x:"select")):"function"!=typeof d||D.current||(e=setTimeout((function(){return d(null!=x?x:"select")}),10)),function(){return clearTimeout(e)}}),[D.current,x]);var A=function(e){N.current=e,m(e),F()},R=function(e){z.current=e,y(e),F()},F=function(){D.current=null!==N.current.x&&null!==N.current.y&&null!==z.current.x&&null!==z.current.y},L=u((function(e){var t,n,r=e.clientY,o=e.clientX,i=null!==N.current.x,a=Math.abs(null!==(t=N.current.x)&&void 0!==t?t:0-o)>=1||Math.abs(null!==(n=N.current.y)&&void 0!==n?n:0-r)>=1;i&&a&&R({x:o,y:r})}),[]),M=u((function(){C.removeEventListener("mousemove",L),C.removeEventListener("mouseup",M),A(l_),R(l_)}),[L,C]),j=u((function(e){var t=e.clientY,n=e.clientX;0===e.button&&(C.addEventListener("mousemove",L),C.addEventListener("mouseup",M),A({x:n,y:t}))}),[L,M,C]);a((function(){var e=C.querySelector(n);return e&&(m_(C),e.addEventListener("mousedown",j)),function(){e&&(e.removeEventListener("mousedown",j),h_(C))}}),[n,j,L,M,C]),a((function(){var e=C.querySelectorAll("[".concat("data-drag-select-id","]")),t=Array.from(e).reduce((function(e,t){var n=f_(t);return t instanceof HTMLElement&&p_(n,S)&&t.dataset.dragSelectId&&e.push(t.dataset.dragSelectId),e}),[]);B(t)}),[S,C]),a((function(){if(T&&T!==I&&D.current){var e=I.filter((function(e){return!T.includes(e)})),t=T.filter((function(e){return!I.includes(e)}));e.length&&i(e),t.length&&l(t)}}),[I,T,i,l,D]);var H=C.querySelector("#".concat("drag-select-container"));return D.current&&H?h.createPortal(t.createElement("div",xa({},o,{style:o.style?xa(xa(xa({},u_),o.style),k):xa(xa({},u_),k),"data-testid":"drag-selection"})),H):null},u_={position:"absolute",zIndex:100},d_=function(e,t,n){if(!(e.x&&e.y&&t.x&&t.y&&n))return{left:0,top:0,height:0,width:0};var r=n.getBoundingClientRect(),o=Math.max(t.x,0),i=Math.min(e.x,o);i=Math.max(i,r.left+4);var a=Math.min(e.y,t.y),c=Math.abs(t.y-e.y),l=Math.abs(o-e.x),s=r.width+r.left-i-4;return{left:i,top:a,height:c,width:l=Math.min(l,s)}},p_=function(e,t){return e.left<=t.left+t.width&&e.left+e.width>=t.left&&e.top<=t.top+t.height&&e.top+e.height>=t.top},f_=function(e){var t=e.getBoundingClientRect();return{left:t.left,top:t.top+window.scrollY,height:t.height,width:t.width}},m_=function(e){var t=document.createElement("div");t.id="drag-select-container",e.appendChild(t)},h_=function(e){var t=e.querySelector("#".concat("drag-select-container"));t&&t.remove()},g_=function(e){var t=c();return a((function(){t.current=e})),t.current};function v_(e){var n,o=e.assets,i=e.count,a=e.hasNextPage,l=void 0!==a&&a,s=e.isLoading,u=void 0!==s&&s,d=e.loadMore,p=void 0===d?function(){}:d,f=e.onSelect,m=void 0===f?function(){}:f,h=e.onToggle,g=void 0===h?function(){}:h,v=e.emptyStateElement,y=void 0===v?null:v,b=e.selectedAssetIds,w=void 0===b?[]:b,x=e.selectionMode,E=void 0===x?"MultiSelect":x,C=e.theme,k=e.children,S=void 0===k?null:k,_=c(null),I=Zk(_.current).dimensions,B=r([]),T=B[0],N=B[1],z=r("inactive"),D=z[0],P=z[1],O=function(e,t){if(void 0!==e)return[1,e];if(!t)return[0,0];return[Math.ceil(t.height/188),Math.round((t.width-16)/208)]}(i,I),A=O[0],R=O[1];function F(e){return("inverse"!==D||!w.includes(e.id)||!T.includes(e.id))&&(w.includes(e.id)||T.includes(e.id))}return t.createElement("div",{className:"flex flex-col flex-grow overflow-y-auto",ref:_,"data-drag-select-container":!0},S,t.createElement("div",{className:"card-list",role:"listbox"},"Loading"===o.tag&&!o.value&&t.createElement(_v,{rows:A,columns:R}),"Loaded"===o.tag&&0===o.value.length&&y,("Loading"===o.tag&&o.value||"Loaded"===o.tag)&&t.createElement(t.Fragment,null,"MultiSelect"===E&&t.createElement(s_,{dragContainer:"[data-drag-select-container]",selectionBoxCustomAttr:{className:"rounded border-2 border-brand-500",style:{zIndex:1e6,borderColor:null==C?void 0:C.colorPrimary}},onSelect:function(e){N((function(t){return Sa(Sa([],t,!0),e,!0)}))},onDeselect:function(e){N((function(t){return t.filter((function(t){return!e.includes(t)}))}))},onDragStart:function(e){P(e)},onDragEnd:function(e){if(P("inactive"),T.length){var t=[];T.forEach((function(e){var n=function(e){var t;if("Loading"!==o.tag||o.value)return null===(t=o.value)||void 0===t?void 0:t.find((function(t){return e===t.id}))}(e);n&&t.push(n)})),"inverse"===e?g(t):m(t),N([])}}}),t.createElement(dS,{hasNextPage:l,isLoading:u,loadMore:p},null===(n=o.value)||void 0===n?void 0:n.map((function(e,n){return t.createElement(ZS,{key:e.id,isSelected:F(e),isOutlined:F(e),asset:e,fadeIn:n>=A*R,onClick:function(e,t){return function(e,t){var n,r,i;if(t.shiftKey&&"MultiSelect"===E&&(null===(n=o.value)||void 0===n?void 0:n.length)){var a=o.value.findIndex((function(t){return t.id===e.id})),c=null===(r=o.value)||void 0===r?void 0:r.findIndex((function(e){return e.id===w[w.length-1]}));-1===c&&(c=0),m(c<a?null===(i=o.value)||void 0===i?void 0:i.slice(c,a+1):o.value.slice(a,c+1))}else g([e])}(e,t)}})}))))))}function y_(e){var n,r,o,i,c=e.connection,l=c.data,s=c.isLoading,u=c.loadMore,d=c.hasNextPage,p=c.executeQuery,f=Pa().setIsLoading,m=Nv(),h=Kk().selection.filter((function(e){return"asset"===e.type})).map((function(e){return e.value.id})),g=Kk(),v=g.selectAssets,y=g.toggleAssets,b=Pa().setSearch,w=DS();if(a((function(){s||f(!1)}),[s]),"Failure"===l.tag)return t.createElement(dv,{error:new Error(l.value),onRetry:p});var x=null!==(i=null===(o=null===(r=null===(n=l.value)||void 0===n?void 0:n.searchAssets)||void 0===r?void 0:r.assets)||void 0===o?void 0:o.totalCount)&&void 0!==i?i:e.totalCount;return t.createElement(v_,{assets:b_(l),count:x,isLoading:s,loadMore:u,hasNextPage:d,theme:m.theme,selectionMode:m.selectionMode,selectedAssetIds:h,onSelect:v,onToggle:y,emptyStateElement:t.createElement(fS,{onReset:function(){w.clear(),b("assets",""),b("collection","")}})},t.createElement("div",{className:"flex justify-between items-center px-4 pt-4 pb-2 z-10"},void 0!==x&&t.createElement("span",{className:"flex-shrink-0 text-body-400 fade-in-down",key:x},kv(x,qg("{} asset"),qg("{} assets"))),e.showActiveFilters&&t.createElement($S,null),t.createElement(xv,null),t.createElement(pv,null)))}function b_(e){var t;return"Loading"!==e.tag||e.value?"Loading"===e.tag?{tag:e.tag,value:null===(t=e.value)||void 0===t?void 0:t.searchAssets.assets.nodes}:{tag:e.tag,value:e.value.searchAssets.assets.nodes}:{tag:"Loading",value:void 0}}function w_(e){var n=Oa("collection").value,r=Ta()[1],o=ba("collection")[0],i=Nv(),a=i.assetTypes,c=i.language,l=Ly({collection:e.collection,allAssetTypes:a,searchTerm:n,orderBy:o,language:c});return t.createElement(t.Fragment,null,t.createElement("nav",{className:"px-4 py-4","data-testid":"collection-toolbar"},t.createElement("button",{className:"text-body-400 select-none cursor-pointer",onClick:function(){return r({page:"collections"})},type:"button"},qg("Collections")," / "),t.createElement("span",null," ",e.collection.name," ")),t.createElement(y_,{connection:l,totalCount:e.collection.assetCount}))}var x_,E_,C_,k_,S_=ql(tm)(x_||(x_=_a(["\n\twidth: 100%;\n\tfont-size: ",";\n\talign-items: center;\n\tcursor: ",";\n\n\tdiv:last-of-type {\n\t\tflex-grow: 1;\n\t}\n"],["\n\twidth: 100%;\n\tfont-size: ",";\n\talign-items: center;\n\tcursor: ",";\n\n\tdiv:last-of-type {\n\t\tflex-grow: 1;\n\t}\n"])),Dp.fontSize75,(function(e){return e.isLoading&&!e.isChecked?"wait":"pointer"})),__=ql.li(E_||(E_=_a(["\n\tpadding: "," ",";\n\n\t&:hover {\n\t\tbackground-color: ",";\n\t}\n"],["\n\tpadding: "," ",";\n\n\t&:hover {\n\t\tbackground-color: ",";\n\t}\n"])),Dp.spacing2,Dp.spacing5,Dp.gray25),I_=ql.div(C_||(C_=_a(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tcolor: ",";\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tcolor: ",";\n"])),(function(e){return e.isChecked?"inherit":Dp.gray500})),B_=ql.span(k_||(k_=_a(["\n\tmargin: 1px "," 1px 0;\n\tflex-grow: 1;\n\tmax-width: 124px;\n"],["\n\tmargin: 1px "," 1px 0;\n\tflex-grow: 1;\n\tmax-width: 124px;\n"])),Dp.spacing4);function T_(e){var n=void 0!==e.selectedOptionIds&&e.selectedOptionIds.includes(e.metapropertyOption.id);return t.createElement(__,null,t.createElement(S_,{isChecked:n,onChange:function(){n?e.onRemoveOption():e.isLoading||e.onAddOption()},"data-testid":"metaproperty-option",isLoading:e.isLoading},t.createElement(I_,{isChecked:n},t.createElement(B_,{title:e.metapropertyOption.label},t.createElement(Df,null,e.metapropertyOption.label)),t.createElement("span",{className:"fade-in-down"},e.metapropertyOption.assetCount))))}function N_(e){return t.createElement(P_,{"data-testid":"metaproperty-filter-content"},t.createElement("h1",{className:"mb-2 px-4 truncate",title:e.metaproperty.label},e.metaproperty.label),t.createElement(O_,null,e.metaproperty.options.map((function(n){return t.createElement(T_,{key:n.id,metapropertyOption:n,selectedOptionIds:e.selectedOptionIds,isLoading:e.isLoading,onAddOption:function(){return e.onAddOption(n)},onRemoveOption:function(){return e.onRemoveOption(n)}})}))))}var z_,D_,P_=ql.div(z_||(z_=_a(["\n\tpadding-top: ",";\n\twidth: 224px;\n"],["\n\tpadding-top: ",";\n\twidth: 224px;\n"])),Dp.spacing5),O_=ql.ul(D_||(D_=_a(["\n\tmax-height: 400px;\n\toverflow-y: auto;\n\tpadding-bottom: 4px;\n\twidth: 100%;\n"],["\n\tmax-height: 400px;\n\toverflow-y: auto;\n\tpadding-bottom: 4px;\n\twidth: 100%;\n"])));function A_(e){return t.createElement(F_,null,e.smartfilter.metaproperties.map((function(n){return t.createElement(N_,{key:n.id,metaproperty:n,selectedOptionIds:e.selectedOptionIds,isLoading:e.isLoading,onAddOption:e.onAddOption,onRemoveOption:e.onRemoveOption})})))}var R_,F_=ql.div(R_||(R_=_a(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tgap: ",";\n\toverflow: auto;\n"],["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tgap: ",";\n\toverflow: auto;\n"])),Dp.spacing4);function L_(e){var n,r,o=DS(),i=o.metaproperties.map((function(e){return e.id})),a=(n=e.metapropertyFilters.filter((function(e){return"Metaproperty"===e.__typename||0!==e.metaproperties.length})),r=function(e){return"Metaproperty"===e.__typename?1e4:e.zIndex},Sa([],n,!0).sort((function(e,t){return r(e)-r(t)})));return t.createElement(t.Fragment,null,a.map((function(n){return t.createElement(vv,{key:n.id,title:t.createElement(M_,{filter:n}),alt:n.label,isSmall:!0,fadeIn:!0},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(Ey,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),"Metaproperty"===n.__typename?t.createElement(N_,{metaproperty:n,selectedOptionIds:i,isLoading:e.isLoading,onAddOption:o.addMetaproperty,onRemoveOption:o.removeMetaproperty}):t.createElement(A_,{smartfilter:n,selectedOptionIds:i,isLoading:e.isLoading,onAddOption:o.addMetaproperty,onRemoveOption:o.removeMetaproperty}))}))})))}function M_(e){var n=e.filter;return t.createElement(t.Fragment,null,"Smartfilter"===n.__typename&&n.icon&&t.createElement("i",{className:hv("fa fa-lg mr-2",n.icon)}),t.createElement("span",{className:"max-w-24 truncate","data-testid":"metaproperty-filter"},n.label))}function j_(e){var n=DS(),r=n.tags.includes(e.tag.name),o=hv("mb-2 mr-2",r&&"bg-ui-500",e.isLoading&&!r?"cursor-default":"cursor-pointer");return t.createElement(US,{key:e.tag.id,className:o,onClick:function(){r?n.removeTag(e.tag.name):e.isLoading||n.addTag(e.tag.name)},"data-testid":"tag-item"},t.createElement("span",{className:"max-w-32 truncate"},e.tag.name),t.createElement("span",{className:"text-body-400 ml-2"},e.tag.assetCount))}function H_(e){var n=Sa([],e.tags,!0).sort((function(e,t){return t.assetCount-e.assetCount}));return t.createElement(vv,{title:t.createElement(U_,null),className:"pt-4 pb-1 overflow-hidden max-w-600",isSmall:!0,fadeIn:!0},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(Ey,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),t.createElement("h1",{className:"px-4 mb-4"}," ",qg("Tags")," "),t.createElement("div",{className:"flex flex-wrap px-4 -mr-2"},n.map((function(n){return t.createElement(j_,{key:n.id,tag:n,isLoading:e.isLoading})}))))}))}function U_(){return t.createElement(t.Fragment,null,t.createElement(Ps,{className:"mr-2 inline w-6 h-6"}),t.createElement("span",{"data-testid":"tags-filter"},qg("Tags")))}function V_(e){var n=DS(),r=n.assetTypes.includes(e.type),o=OS(e.type);return t.createElement(__,{"data-testid":"advanced-options"},t.createElement(S_,{isChecked:r,onChange:function(){r?n.removeAssetType(e.type):n.addAssetType(e.type)},isLoading:e.isLoading,"data-testid":"".concat(PS(e.type),"-filter")},t.createElement(I_,{isChecked:r},t.createElement(o,null),t.createElement(W_,null,PS(e.type)),t.createElement("span",{className:"fade-in-down"},e.count))))}var $_,W_=ql.div($_||($_=_a(["\n\tmargin: 1px ",";\n\tflex-grow: 1;\n"],["\n\tmargin: 1px ",";\n\tflex-grow: 1;\n"])),Dp.spacing3);function G_(e){var n=Nv().assetTypes,r=n.filter((function(t){return Y_(e.count,t)>0}));return 0===n.length||0===r.length?null:t.createElement(vv,{title:t.createElement(q_,null),className:"pt-4 pb-1",isSmall:!0,fadeIn:!0},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(Ey,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),t.createElement("h1",{className:"px-4 mb-4"},qg("Type")),t.createElement("ul",null,r.map((function(n){return t.createElement(V_,{key:n,type:n,count:Y_(e.count,n),isLoading:e.isLoading})}))))}))}function q_(){return t.createElement(t.Fragment,null,t.createElement(xu,{className:"mr-2 inline w-6 h-6"}),qg("Advanced"))}function Y_(e,t){switch(t){case"AUDIO":return e.audio;case"DOCUMENT":return e.document;case"IMAGE":return e.image;case"VIDEO":return e.video;case"ARCHIVE":return e.archive}}function K_(){var e=DS(),n=Oa("assets").value,o=Nv(),i=o.assetTypes,c=o.language;Kg(c);var l=function(e){var t=this,n=Ay(),o=r({tag:"Loading",value:null}),i=o[0],c=o[1],l=!1;return a((function(){return Ca(t,void 0,void 0,(function(){var t,r,o,i,a,s;return ka(this,(function(u){switch(u.label){case 0:return c((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),t=e.filter,r=e.searchTerm,o=e.allAssetTypes,i=e.language,[4,Mv("\nquery searchAssets($filter: AssetFilter!, $language: String!) {\n searchAssets(filter: $filter) {\n tags {\n nodes {\n id\n name\n assetCount\n }\n }\n metapropertyFilters {\n nodes {\n __typename\n ... on Smartfilter {\n id\n label(language: $language)\n metaproperties {\n id\n label(language: $language)\n options {\n id\n label(language: $language)\n assetCount\n }\n }\n icon\n zIndex\n }\n ... on Metaproperty {\n id\n label(language: $language)\n options {\n id\n label(language: $language)\n assetCount\n }\n }\n }\n }\n count {\n assetType {\n image\n video\n audio\n document\n archive\n }\n }\n }\n }",{filter:{assetType_in:null!==(s=t.assetTypes)&&void 0!==s?s:o,collectionId:null,metapropertyOptionId_in:t.metaproperties.map((function(e){return e.id})),searchTerm:r,tagNames_in:t.tags,isLimitedUse:t.isLimited},language:i},n)];case 1:return a=u.sent(),l||(Av(a)?c({tag:"Failure",value:a.error}):c({tag:"Loaded",value:a.value})),[2]}}))})),function(){l=!0}}),[e.filter.assetTypes,e.filter.metaproperties,e.filter.tags,e.searchTerm]),{data:i,isLoading:"Loading"===i.tag}}({filter:e,searchTerm:n||null,allAssetTypes:i,language:c}),s=l.data,u=l.isLoading;if("Failure"===s.tag||!s.value)return t.createElement("nav",{className:"flex justify-between bg-ui-0 px-4 py-2 z-20"},t.createElement(X_,null));var d=s.value.searchAssets,p=d.metapropertyFilters,f=d.tags,m=d.count;return t.createElement("nav",{className:"flex justify-between bg-ui-0 px-4 py-2 z-20","data-testid":"filter-nav"},t.createElement(HS,{className:"h-8"},p&&p.nodes.length>0&&t.createElement(L_,{metapropertyFilters:p.nodes,isLoading:u}),f&&f.nodes.length>0&&t.createElement(H_,{tags:f.nodes,isLoading:u}),t.createElement(G_,{isLoading:u,count:m.assetType})))}function X_(){return t.createElement("div",{className:"inline-flex items-center"},t.createElement(Sv,{className:"h-4 ml-2 mr-2 my-2",width:100}),t.createElement(Sv,{className:"h-4 ml-2 mr-2 my-2",width:80}),t.createElement(Sv,{className:"h-4 ml-2 mr-2 my-2",width:110}))}var Z_,J_,Q_=Wl(J_||(J_=_a(["",""],["",""])),Tl(Z_||(Z_=_a(["\n\t.cv-root {\n\t\t","\n\t}:\n"],["\n\t.cv-root {\n\t\t","\n\t}:\n"])),(function(e){return function(e){var t=function(e){var t,n;return{"--componentButtonPrimaryBorderHover":null==e?void 0:e.colorButtonPrimaryHover,"--componentButtonPrimaryBorderActive":null!==(t=null==e?void 0:e.colorButtonPrimaryActive)&&void 0!==t?t:null==e?void 0:e.colorButtonPrimaryHover,"--componentButtonPrimaryBorderFocus":null==e?void 0:e.colorButtonPrimary,"--componentButtonPrimaryColor":null==e?void 0:e.colorButtonPrimaryLabel,"--componentButtonPrimaryColorHover":null==e?void 0:e.colorButtonPrimaryHoverLabel,"--componentButtonPrimaryColorActive":null==e?void 0:e.colorButtonPrimaryLabel,"--componentButtonPrimaryColorFocus":null==e?void 0:e.colorButtonPrimaryLabel,"--componentButtonPrimaryColorDisabled":null==e?void 0:e.colorButtonPrimaryLabel,"--componentButtonPrimaryFill":null==e?void 0:e.colorButtonPrimary,"--componentButtonPrimaryFillHover":null==e?void 0:e.colorButtonPrimaryHover,"--componentButtonPrimaryFillActive":null!==(n=null==e?void 0:e.colorButtonPrimaryActive)&&void 0!==n?n:null==e?void 0:e.colorButtonPrimaryHover,"--componentButtonPrimaryFillFocus":null==e?void 0:e.colorButtonPrimary}}(e),n=Object.entries(t).map((function(e){return e.join(":")}));return n.join(";")+";"}(e.theme)})));function eI(){var e=Ta()[0],n=Oa(e.page),o=n.value,i=n.isLoading,c=o_(n.setSearch,500),l=r(o),s=l[0],u=l[1];a((function(){u(o)}),[e,o]),a((function(){return function(){c.flush()}}),[e,c]);var d="collections"===e.page?qg("Search for collections"):qg("Search for assets");return t.createElement(nI,{value:s,placeholder:d,"aria-label":d,onChange:function(e){return u(t=e),void c(t);var t},"data-testid":"search-input",icon:t.createElement(js,null),iconRight:i?t.createElement("div",{role:"alert","aria-live":"polite"},t.createElement(Ey,{className:"relative right-0"})):void 0,hasClearButton:!i&&!!o})}var tI,nI=ql(Rm)(tI||(tI=_a(["\n\twidth: 100%;\n\tmax-width: 440px;\n"],["\n\twidth: 100%;\n\tmax-width: 440px;\n"])));function rI(){var e=Ta(),n=e[0],r=e[1];return t.createElement(iI,null,t.createElement(ef,{isPressed:"assets"===n.page,variant:"clean",onClick:function(){return r({page:"assets"})}},qg("Assets")),t.createElement(ef,{isPressed:"collections"===n.page,variant:"clean",onClick:function(){return r({page:"collections"})}},qg("Collections")))}var oI,iI=ql.div(oI||(oI=_a(["\n\tdisplay: inline-flex;\n\tmargin-right: auto;\n\tgap: ",";\n"],["\n\tdisplay: inline-flex;\n\tmargin-right: auto;\n\tgap: ",";\n"])),Dp.spacing2);function aI(){var e,n="authenticated"===(null===(e=i(Dy))||void 0===e?void 0:e.status)||!1,r=ly(),o=Ay(),a=void 0!==Nv().assetFilter;return n||r||!a?t.createElement(sI,null,!a&&t.createElement(t.Fragment,null,t.createElement(rI,null),t.createElement(eI,null)),t.createElement(uI,null,n&&!(null==o?void 0:o.hideLogout)&&t.createElement(ef,{variant:"clean",onClick:function(){return null==o?void 0:o.logout()},rightIcon:t.createElement(zs,null)},qg("Log out")),r&&t.createElement(ef,{variant:"clean",onClick:function(){return r.onClose()},title:qg("Close"),icon:t.createElement(Iu,null)}))):null}var cI,lI,sI=ql.nav(cI||(cI=_a(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tbackground: ",";\n\tpadding: "," ",";\n\tz-index: 30;\n"],["\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tbackground: ",";\n\tpadding: "," ",";\n\tz-index: 30;\n"])),Dp.gray10,Dp.spacing5,Dp.spacing4),uI=ql.div(lI||(lI=_a(["\n\tdisplay: inline-flex;\n\tmargin-left: auto;\n"],["\n\tdisplay: inline-flex;\n\tmargin-left: auto;\n"])));function dI(){var e=DS(),n=e.assetTypes,r=e.metaproperties,o=e.tags,i=e.isLimited,a=Oa("assets").value,c=ba("assets")[0],l=Nv(),s=l.assetFilter,u=l.assetTypes,d=l.language,p=Ly(void 0===s?{filter:{assetTypes:n,metaproperties:r,tags:o,isLimited:i},searchTerm:a,orderBy:c,allAssetTypes:u,language:d}:{predefinedFilter:s,orderBy:c,language:d});return t.createElement(y_,{connection:p,showActiveFilters:void 0===s})}function pI(e,t,n){return void 0===n&&(n="\n id\n name\n description\n databaseId\n createdAt\n originalUrl\n publishedAt\n tags\n type\n updatedAt\n url\n extensions\n metaproperties {\n nodes {\n name\n type\n options {\n name\n displayLabel\n }\n }\n }\n textMetaproperties {\n name\n value\n }\n derivatives {\n thumbnail\n webImage\n }\n ... on Video {\n previewUrls\n }\n"),Ca(this,void 0,void 0,(function(){var r;return ka(this,(function(o){switch(o.label){case 0:return[4,Mv("\n fragment AddMediaAsset on Asset {\n ".concat(n,"\n }\n\n query getAssetById($id: ID!) {\n node(id: $id) {\n __typename\n id\n ...on Asset {\n ...AddMediaAsset\n files\n }\n }\n }"),{id:e},t)];case 1:return Av(r=o.sent())?[2,r]:[2,Dv(r.value.node)]}}))}))}function fI(e){return e.replace(/([a-z0-9])([A-Z])/g,(function(e,t,n){return"".concat(t," ").concat(n)}))}function mI(e){var n=e.asset,o=e.onChange,i=r({status:"Loading"}),c=i[0],l=i[1],s=Ay(),u=Nv().assetFieldSelection,d=Uk().transformation;function p(e){l((function(t){return"Data"!==t.status?t:("Custom transformation"===e&&d?setTimeout((function(){return o({url:null==d?void 0:d.url})})):setTimeout((function(){return o(t.files[e])})),xa(xa({},t),{key:e}))}))}return a((function(){var e,t;(null==d?void 0:d.url)&&"Data"===c.status&&p(d.url!==(null===(t=null===(e=c.files)||void 0===e?void 0:e.transformBaseUrl)||void 0===t?void 0:t.url)?"Custom transformation":"transformBaseUrl")}),[d]),a((function(){l({status:"Loading"}),o(void 0),function(e,t,n){return Ca(this,void 0,void 0,(function(){var r;return ka(this,(function(o){switch(o.label){case 0:return[4,pI(e.id,t,n)];case 1:return Ov(r=o.sent())&&r.value.files?[2,Dv(Fv(r.value.files))]:[2,Pv("Error retrieving asset files")]}}))}))}(n,s,u).then((function(e){if(Av(e))return Aa.error(e.error),void l({status:"Failure"});var t=e.value,n=function(e){return"transformBaseUrl"in e?"transformBaseUrl":"original"in e?"original":"webImage"}(t);l({status:"Data",files:t,key:n}),o(t[n])}))}),[n.id,s,u]),t.createElement(yI,null,t.createElement(vv,{title:t.createElement(hI,{state:c}),buttonKind:"secondary",className:"py-2",direction:"Up",disabled:"Loading"===c.status},(function(e){var r,o;return"Data"===c.status&&t.createElement("ul",{className:"overflow-y-auto pb-1 max-h-400"},Object.entries(c.files).map((function(n){var r,o=n[0],i=n[1];return t.createElement(wv,{key:o,className:"px-3 py-2",selected:c.key===o,onClick:function(){p(o),e()}},t.createElement("div",{className:"w-10 h-10 mr-3 bg-ui-500 rounded flex items-center\n\t\t\t\t\t\t\t\t\t\t\t\t\tjustify-center font-semibold text-body-400 text-xs\n\t\t\t\t\t\t\t\t\t\t\t\t\tuppercase","data-testid":"file-extension"},"transformBaseUrl"===o?t.createElement(Ts,{className:"w-6 h-6"}):null!==(r=function(e){if(e){var t=function(e){var t=e.match(/filename=(.*?)&/);if(t){var n=/(?:\.([^.]+))?$/.exec(t[1]);if(n&&n[1])return n[1]}}(e);return t||function(e){var t=e.split("/"),n=t[t.length-1].split(".");if(!(n.length<=1)){var r=n[n.length-1],o=r.indexOf("?");return-1!==o?r.substring(0,o):r}}(e)}}(i.url))&&void 0!==r?r:t.createElement(nu,{className:"w-6 h-6"})),t.createElement("div",{className:"flex-grow w-40"},t.createElement("div",{className:"capitalize text-body-500 truncate"},fI(o)),t.createElement("div",{className:"text-sm"},i.width&&i.height&&"".concat(i.width," x ").concat(i.height," px"),i.width&&i.height&&i.fileSize&&t.createElement("span",{className:"mx-2"},"•"),i.fileSize&&function(e){if(e<1)return"0 Bytes";var t=Math.floor(Math.log(e)/Math.log(1024)),n=(e/Math.pow(1024,t)).toFixed(1),r={0:"Bytes",1:"kB",2:"MB",3:"GB",4:"TB",5:"PB",6:"EB",7:"ZB",8:"YB"}[t];return"".concat(n," ").concat(r)}(i.fileSize))))})),t.createElement(Vk,{transformBaseUrl:null===(o=null===(r=c.files)||void 0===r?void 0:r.transformBaseUrl)||void 0===o?void 0:o.url,toggleDropdown:e,asset:n}))})))}function hI(e){var n=e.state;return"Loading"===n.status?t.createElement(Sv,{width:50,className:"h-4"}):"Data"===n.status?t.createElement(bI,null,"Custom transformation"===n.key&&t.createElement(fu,null),fI(n.key)):t.createElement(t.Fragment,null,"Error")}var gI,vI,yI=ql.div(gI||(gI=_a(["\n\tmargin-right: ",";\n\ttext-transform: capitalize;\n"],["\n\tmargin-right: ",";\n\ttext-transform: capitalize;\n"])),Dp.spacing5),bI=ql.div(vI||(vI=_a(["\n\tdisplay: flex;\n\tgap: ",";\n\talign-items: center;\n"],["\n\tdisplay: flex;\n\tgap: ",";\n\talign-items: center;\n"])),Dp.spacing4);function wI(e){var n=e.status,r=e.numberOfSelectedItems;return"Done"===n?t.createElement(ku,{"data-testid":"check"}):"Error"===n?t.createElement(t.Fragment,null,qg("Retry")):t.createElement(t.Fragment,null,kv(r,qg("Add asset"),qg("Add assets")))}function xI(e){var n,o=Nv(),i=o.assetFieldSelection,l=o.onSuccess,s=o.selectionMode,u=Kk().preselectedAssetIds,d=Ay(),p=c(!0),f=r("SingleSelectFile"===s?{status:"WaitingForFileSelection"}:{status:"Ready"}),m=f[0],h=f[1];function g(e,t){if(Av(e))h({status:"Error"});else{try{var n=Array.isArray(e.value)?e.value:[e.value];n.sort((function(e,t){return function(e,t,n){return n?!n.includes(e.id)&&n.includes(t.id)?1:n.includes(e.id)&&!n.includes(t.id)?-1:n.indexOf(e.id)-n.indexOf(t.id):0}(e,t,u)})),l(n,{selectedFile:t})}catch(e){Aa.error(e)}p.current&&(h({status:"Done"}),setTimeout((function(){p.current&&h({status:"Ready"})}),2e3))}}return a((function(){return function(){p.current=!1}}),[]),t.createElement(t.Fragment,null,"SingleSelectFile"===s&&"asset"===(null===(n=e.selection[0])||void 0===n?void 0:n.type)&&t.createElement(mI,{asset:e.selection[0].value,onChange:function(e){h(void 0===e?{status:"WaitingForFileSelection"}:{status:"ReadyWithFile",file:e})}}),t.createElement(ef,{variant:"primary",isDisabled:"Loading"===m.status||"WaitingForFileSelection"===m.status,onClick:function(){var t,n="ReadyWithFile"===m.status?m.file:void 0;h({status:"Loading"}),"MultiSelect"!==s&&"asset"===(null===(t=e.selection[0])||void 0===t?void 0:t.type)?pI(e.selection[0].value.id,d,i).then((function(e){g(e,n)})):function(e,t,n){return void 0===n&&(n="\n id\n name\n description\n databaseId\n createdAt\n originalUrl\n publishedAt\n tags\n type\n updatedAt\n url\n metaproperties {\n nodes {\n name\n type\n options {\n name\n displayLabel\n }\n }\n }\n textMetaproperties {\n name\n value\n }\n derivatives {\n thumbnail\n webImage\n }\n ... on Video {\n previewUrls\n }\n"),Ca(this,void 0,void 0,(function(){var r,o,i,a,c,l,s,u,d,p,f,m,h,g;return ka(this,(function(v){switch(v.label){case 0:return r="\n fragment AddMediaAsset on Asset {\n ".concat(n,"\n }\n\n query getAssetsById($ids: [ID!]!, $collectionCount: Int) {\n nodes(ids: $ids) {\n __typename\n id\n ...on Asset {\n ...AddMediaAsset\n files\n }\n ...on Collection {\n assets(first: $collectionCount) {\n nodes {\n __typename\n id\n ...AddMediaAsset\n files\n }\n }\n }\n }\n }"),o=e.filter((function(e){return"collection"===e.type})).map((function(e){return e.value.assetCount})),i=o.reduce((function(e,t){return e+t}),0),a={ids:e.map((function(e){return e.value.id})),collectionCount:i},[4,Mv(r,a,t)];case 1:if(Av(c=v.sent()))return[2,c];for(l=[],s=0,u=c.value.nodes;s<u.length;s++)"Collection"===(d=u[s]).__typename?l.push.apply(l,d.assets.nodes):l.push(d);for(p=new Set,f=[],m=0,h=l;m<h.length;m++)g=h[m],p.has(g.id)||(f.push(g),p.add(g.id));return[2,Dv(f)]}}))}))}(e.selection,d,i).then((function(e){g(e,n)}))},"data-testid":"add-button",isLoading:"Loading"===m.status},t.createElement(wI,{status:m.status,numberOfSelectedItems:e.selection.length})))}function EI(e){var n=e.title,r=e.onRemove,o=e.children;return t.createElement("li",{className:"flex flex-1 h-12 border-b last:border-b-0 pl-3 pr-5 py-1 items-center group relative",title:n},t.createElement(S_,{"aria-label":qg("Deselect"),isChecked:!0,onChange:r,"data-testid":"metaproperty-option"},t.createElement(kI,null,o)))}var CI,kI=ql.span(CI||(CI=_a(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tfont-size: ",";\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tfont-size: ",";\n"])),Dp.fontSize100);function SI(e){var n=e.asset,r=Kk();return t.createElement(EI,{title:n.name,onRemove:function(){return r.toggleAssets([n])}},t.createElement(II,{variant:"content",imageUrl:YS(n),size:"m"}),t.createElement("span",{className:"w-40 mr-2 truncate"},n.name),KS(n)&&t.createElement("span",{className:"flex-grow text-body-400 text-sm text-right"},KS(n)))}var _I,II=ql(_h)(_I||(_I=_a(["\n\tmargin-right: ",";\n\tmax-width: 40px;\n"],["\n\tmargin-right: ",";\n\tmax-width: 40px;\n"])),Dp.spacing4);function BI(e){var n=e.collection,r=Kk();return t.createElement(EI,{title:n.name,onRemove:function(){return r.toggleCollection(n)}},t.createElement(NI,{variant:"clean",icon:t.createElement(yu,null)}),t.createElement("span",{className:"w-40 mr-2 truncate"},n.name),t.createElement("span",{className:"flex-grow text-body-400 text-sm text-right"},kv(n.assetCount,qg("{} asset"),qg("{} assets"))))}var TI,NI=ql(_h)(TI||(TI=_a(["\n\tmargin-right: ",";\n"],["\n\tmargin-right: ",";\n"])),Dp.spacing4);function zI(e){var n=e.selection;return t.createElement("ul",{className:"flex flex-col py-2 overflow-y-auto max-h-400","data-testid":"selected-items-list"},n.map((function(e){return"asset"===e.type?t.createElement(SI,{key:e.value.id,asset:e.value}):t.createElement(BI,{key:e.value.id,collection:e.value})})))}function DI(){var e=Kk(),n=e.selection,r=e.clear,o=n.length;return 0===o?null:t.createElement(AI,{"data-testid":"selection-footer"},t.createElement(RI,null,t.createElement(vv,{buttonKind:"secondary",direction:"Up",title:qg("View {} selected").replace("{}",o.toString())},(function(){return t.createElement(zI,{selection:n})})),t.createElement(ef,{variant:"clean",onClick:r},qg("Clear selection"))),t.createElement(xI,{selection:n}))}var PI,OI,AI=ql.div(PI||(PI=_a(["\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tz-index: 10;\n\theight: ",";\n\tpadding: ",";\n\talign-items: center;\n\tbox-shadow: 0 -1px 0 0 rgba(0, 34, 51, 0.1), 0 -1px 6px 0 rgba(0, 34, 51, 0.1);\n\tanimation: var(--fade-in-down);\n"],["\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tz-index: 10;\n\theight: ",";\n\tpadding: ",";\n\talign-items: center;\n\tbox-shadow: 0 -1px 0 0 rgba(0, 34, 51, 0.1), 0 -1px 6px 0 rgba(0, 34, 51, 0.1);\n\tanimation: var(--fade-in-down);\n"])),Dp.layoutSpacing5,Dp.spacing6),RI=ql.span(OI||(OI=_a(["\n\tdisplay: flex;\n\tflex-grow: 1;\n\talign-items: center;\n\tgap: ",";\n"],["\n\tdisplay: flex;\n\tflex-grow: 1;\n\talign-items: center;\n\tgap: ",";\n"])),Dp.spacing2);function FI(e){var n=e.assetFieldSelection,r=e.assetFilter,o=e.assetTypes,i=void 0===o?["IMAGE","AUDIO","VIDEO","DOCUMENT","ARCHIVE"]:o,a=e.defaultSearchTerm,c=e.language,l=void 0===c?"en_US":c,s=e.mode,u=void 0===s?"MultiSelect":s,d=e.onSuccess,p=void 0===d?function(e,t){var n=t.selectedFile;return console.log(e,n)}:d,f=e.theme,m=e.hideExternalAccess,h=e.selectedAssets,g=e.hideLimitedUse;Kg(l);var v={assetFieldSelection:n,assetFilter:r,assetTypes:i,language:l,onSuccess:p,selectionMode:u,theme:f,hideExternalAccess:m};return t.createElement(Ny,null,t.createElement(Ba,null,t.createElement(ay,null,t.createElement(Hk,null,t.createElement(ya,null,t.createElement(TS,{hideLimitedUse:g},t.createElement(Da,{defaultValue:a},t.createElement(Tv,{value:v},t.createElement(qk,{preselectedAssetIds:null!=h?h:[]},t.createElement(Q_,{theme:v.theme}),t.createElement("div",{className:"cv-root cv-container"},t.createElement(aI,null),t.createElement(LI,null),t.createElement(DI,null)))))))))))}function LI(){var e=Ta()[0],n=Nv().assetFilter;return t.createElement(t.Fragment,null,"assets"===e.page&&void 0===n&&t.createElement(K_,null),"assets"===e.page&&t.createElement(dI,null),"collections"===e.page&&t.createElement(IS,null),"collection"===e.page&&t.createElement(w_,{collection:e.collection}))}!function(e={}){if(void 0===e.defaultIntegrations&&(e.defaultIntegrations=ma),void 0===e.release){var t=mr();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);var n,r={...e,stackParser:(n=e.stackParser||Hi,Array.isArray(n)?Zr(...n):n),integrations:ci(e),transport:e.transport||(Qr()?Pi:Oi)};!function(e,t){!0===t.debug&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?Fr.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var n=Zo(),r=n.getScope();r&&r.update(t.initialScope);var o=new e(t);n.bindClient(o)}(Di,r),e.autoSessionTracking&&function(){if(void 0!==mr().document){var e=Zo();e.captureSession&&(ha(e),oo("history",(({from:e,to:t})=>{void 0!==e&&e!==t&&ha(Zo())})))}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Fr.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}()}({dsn:"https://dd74b64cc05845468f0c3654b458da29@sentry10.bynder.cloud/464",autoSessionTracking:!0,tracesSampleRate:1,defaultIntegrations:!1});export{FI as CompactView,Oy as Login,sy as Modal};
|