@bynder/compact-view 2.6.0 → 2.6.1
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 +2 -1
- package/components.js +4 -4
- package/index.js +4 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* bynder-compactview v2.6.
|
|
3
|
+
* bynder-compactview v2.6.1
|
|
4
4
|
* (c) 2022 Bynder
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import*as e from"react";import t,{createContext as n,useState as r,useMemo as o,useContext as i,useEffect as a,forwardRef as s,createElement as c,useRef as l,useLayoutEffect as u,useCallback as d,Component as p}from"react";import f,{createPortal as h}from"react-dom";var m="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},g=function(e){return e&&e.Math==Math&&e},v=g("object"==typeof globalThis&&globalThis)||g("object"==typeof window&&window)||g("object"==typeof self&&self)||g("object"==typeof m&&m)||Function("return this")(),y={},b=function(e){try{return!!e()}catch(e){return!0}},x=!b((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),_={},w={}.propertyIsEnumerable,S=Object.getOwnPropertyDescriptor,E=S&&!w.call({1:2},1);_.f=E?function(e){var t=S(this,e);return!!t&&t.enumerable}:w;var k=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},C={}.toString,T=function(e){return C.call(e).slice(8,-1)},N=T,I="".split,O=b((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==N(e)?I.call(e,""):Object(e)}:Object,A=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},P=O,B=A,R=function(e){return P(B(e))},F=function(e){return"object"==typeof e?null!==e:"function"==typeof e},z=F,L=function(e,t){if(!z(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!z(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!z(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!z(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},j={}.hasOwnProperty,M=function(e,t){return j.call(e,t)},D=F,H=v.document,U=D(H)&&D(H.createElement),q=function(e){return U?H.createElement(e):{}},V=q,W=!x&&!b((function(){return 7!=Object.defineProperty(V("div"),"a",{get:function(){return 7}}).a})),$=x,Y=_,G=k,X=R,J=L,K=M,Z=W,Q=Object.getOwnPropertyDescriptor;y.f=$?Q:function(e,t){if(e=X(e),t=J(t,!0),Z)try{return Q(e,t)}catch(e){}if(K(e,t))return G(!Y.f.call(e,t),e[t])};var ee={},te=F,ne=function(e){if(!te(e))throw TypeError(String(e)+" is not an object");return e},re=x,oe=W,ie=ne,ae=L,se=Object.defineProperty;ee.f=re?se:function(e,t,n){if(ie(e),t=ae(t,!0),ie(n),oe)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 ce=ee,le=k,ue=x?function(e,t,n){return ce.f(e,t,le(1,n))}:function(e,t,n){return e[t]=n,e},de={exports:{}},pe=v,fe=ue,he=function(e,t){try{fe(pe,e,t)}catch(n){pe[e]=t}return t},me=he,ge=v["__core-js_shared__"]||me("__core-js_shared__",{}),ve=ge,ye=Function.toString;"function"!=typeof ve.inspectSource&&(ve.inspectSource=function(e){return ye.call(e)});var be=ve.inspectSource,xe=be,_e=v.WeakMap,we="function"==typeof _e&&/native code/.test(xe(_e)),Se={exports:{}},Ee=ge;(Se.exports=function(e,t){return Ee[e]||(Ee[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"});var ke,Ce,Te,Ne=0,Ie=Math.random(),Oe=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++Ne+Ie).toString(36)},Ae=Se.exports,Pe=Oe,Be=Ae("keys"),Re=function(e){return Be[e]||(Be[e]=Pe(e))},Fe={},ze=we,Le=F,je=ue,Me=M,De=Re,He=Fe,Ue=v.WeakMap;if(ze){var qe=new Ue,Ve=qe.get,We=qe.has,$e=qe.set;ke=function(e,t){return $e.call(qe,e,t),t},Ce=function(e){return Ve.call(qe,e)||{}},Te=function(e){return We.call(qe,e)}}else{var Ye=De("state");He[Ye]=!0,ke=function(e,t){return je(e,Ye,t),t},Ce=function(e){return Me(e,Ye)?e[Ye]:{}},Te=function(e){return Me(e,Ye)}}var Ge={set:ke,get:Ce,has:Te,enforce:function(e){return Te(e)?Ce(e):ke(e,{})},getterFor:function(e){return function(t){var n;if(!Le(t)||(n=Ce(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},Xe=v,Je=ue,Ke=M,Ze=he,Qe=be,et=Ge.get,tt=Ge.enforce,nt=String(String).split("String");(de.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||Ke(n,"name")||Je(n,"name",t),tt(n).source=nt.join("string"==typeof t?t:"")),e!==Xe?(o?!a&&e[t]&&(i=!0):delete e[t],i?e[t]=n:Je(e,t,n)):i?e[t]=n:Ze(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&et(this).source||Qe(this)}));var rt=v,ot=v,it=function(e){return"function"==typeof e?e:void 0},at=function(e,t){return arguments.length<2?it(rt[e])||it(ot[e]):rt[e]&&rt[e][t]||ot[e]&&ot[e][t]},st={},ct=Math.ceil,lt=Math.floor,ut=function(e){return isNaN(e=+e)?0:(e>0?lt:ct)(e)},dt=ut,pt=Math.min,ft=function(e){return e>0?pt(dt(e),9007199254740991):0},ht=ut,mt=Math.max,gt=Math.min,vt=R,yt=ft,bt=function(e){return function(t,n,r){var o,i=vt(t),a=yt(i.length),s=function(e,t){var n=ht(e);return n<0?mt(n+t,0):gt(n,t)}(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},xt={includes:bt(!0),indexOf:bt(!1)},_t=M,wt=R,St=xt.indexOf,Et=Fe,kt=function(e,t){var n,r=wt(e),o=0,i=[];for(n in r)!_t(Et,n)&&_t(r,n)&&i.push(n);for(;t.length>o;)_t(r,n=t[o++])&&(~St(i,n)||i.push(n));return i},Ct=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Tt=kt,Nt=Ct.concat("length","prototype");st.f=Object.getOwnPropertyNames||function(e){return Tt(e,Nt)};var It={};It.f=Object.getOwnPropertySymbols;var Ot,At=st,Pt=It,Bt=ne,Rt=at("Reflect","ownKeys")||function(e){var t=At.f(Bt(e)),n=Pt.f;return n?t.concat(n(e)):t},Ft=M,zt=Rt,Lt=y,jt=ee,Mt=b,Dt=/#|\.prototype\./,Ht=function(e,t){var n=qt[Ut(e)];return n==Wt||n!=Vt&&("function"==typeof t?Mt(t):!!t)},Ut=Ht.normalize=function(e){return String(e).replace(Dt,".").toLowerCase()},qt=Ht.data={},Vt=Ht.NATIVE="N",Wt=Ht.POLYFILL="P",$t=Ht,Yt=v,Gt=y.f,Xt=ue,Jt=de.exports,Kt=he,Zt=function(e,t){for(var n=zt(t),r=jt.f,o=Lt.f,i=0;i<n.length;i++){var a=n[i];Ft(e,a)||r(e,a,o(t,a))}},Qt=$t,en=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)}},tn=A,nn=T,rn=Array.isArray||function(e){return"Array"==nn(e)},on=b,an=!!Object.getOwnPropertySymbols&&!on((function(){return!String(Symbol())})),sn=an&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,cn=v,ln=Se.exports,un=M,dn=Oe,pn=an,fn=sn,hn=ln("wks"),mn=cn.Symbol,gn=fn?mn:mn&&mn.withoutSetter||dn,vn=function(e){return un(hn,e)||(pn&&un(mn,e)?hn[e]=mn[e]:hn[e]=gn("Symbol."+e)),hn[e]},yn=F,bn=rn,xn=vn("species"),_n=en,wn=O,Sn=ft,En=function(e,t){var n;return bn(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!bn(n.prototype)?yn(n)&&null===(n=n[xn])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},kn=[].push,Cn=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=5==e||i;return function(s,c,l,u){for(var d,p,f=Object(tn(s)),h=wn(f),m=_n(c,l,3),g=Sn(h.length),v=0,y=u||En,b=t?y(s,g):n?y(s,0):void 0;g>v;v++)if((a||v in h)&&(p=m(d=h[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:kn.call(b,d)}else if(o)return!1;return i?-1:r||o?o:b}},Tn={forEach:Cn(0),map:Cn(1),filter:Cn(2),some:Cn(3),every:Cn(4),find:Cn(5),findIndex:Cn(6)},Nn=kt,In=Ct,On=Object.keys||function(e){return Nn(e,In)},An=ee,Pn=ne,Bn=On,Rn=x?Object.defineProperties:function(e,t){Pn(e);for(var n,r=Bn(t),o=r.length,i=0;o>i;)An.f(e,n=r[i++],t[n]);return e},Fn=at("document","documentElement"),zn=ne,Ln=Rn,jn=Ct,Mn=Fe,Dn=Fn,Hn=q,Un=Re("IE_PROTO"),qn=function(){},Vn=function(e){return"<script>"+e+"<\/script>"},Wn=function(){try{Ot=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;Wn=Ot?function(e){e.write(Vn("")),e.close();var t=e.parentWindow.Object;return e=null,t}(Ot):((t=Hn("iframe")).style.display="none",Dn.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Vn("document.F=Object")),e.close(),e.F);for(var n=jn.length;n--;)delete Wn.prototype[jn[n]];return Wn()};Mn[Un]=!0;var $n=Object.create||function(e,t){var n;return null!==e?(qn.prototype=zn(e),n=new qn,qn.prototype=null,n[Un]=e):n=Wn(),void 0===t?n:Ln(n,t)},Yn=ee,Gn=vn("unscopables"),Xn=Array.prototype;null==Xn[Gn]&&Yn.f(Xn,Gn,{configurable:!0,value:$n(null)});var Jn,Kn=x,Zn=b,Qn=M,er=Object.defineProperty,tr={},nr=function(e){throw e},rr=Tn.find,or=!0,ir=function(e,t){if(Qn(tr,"find"))return tr.find;t||(t={});var n=[].find,r=!!Qn(t,"ACCESSORS")&&t.ACCESSORS,o=Qn(t,0)?t[0]:nr,i=Qn(t,1)?t[1]:void 0;return tr.find=!!n&&!Zn((function(){if(r&&!Kn)return!0;var e={length:-1};r?er(e,1,{enumerable:!0,get:nr}):e[1]=1,n.call(e,o,i)}))}();"find"in[]&&Array(1).find((function(){or=!1})),function(e,t){var n,r,o,i,a,s=e.target,c=e.global,l=e.stat;if(n=c?Yt:l?Yt[s]||Kt(s,{}):(Yt[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Gt(n,r))&&a.value:n[r],!Qt(c?r:s+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Zt(i,o)}(e.sham||o&&o.sham)&&Xt(i,"sham",!0),Jt(n,r,i,e)}}({target:"Array",proto:!0,forced:or||!ir},{find:function(e){return rr(this,e,arguments.length>1?arguments[1]:void 0)}}),Jn="find",Xn[Gn][Jn]=!0;var ar=v,sr=en,cr=Function.call;sr(cr,ar.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),s=this._rootContainsTarget(o),c=r.entry,l=e&&s&&this._computeTargetAndRootIntersection(o,n),u=r.entry=new t({time:window.performance&&performance.now&&performance.now(),target:o,boundingClientRect:a,rootBounds:n,intersectionRect:l});c?e&&s?this._hasCrossedThreshold(c,u)&&this._queuedEntries.push(u):c&&c.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,c,l,u,d,p,f=i(t),h=s(t),m=!1;!m;){var g=null,v=1==h.nodeType?window.getComputedStyle(h):{};if("none"==v.display)return;if(h==this.root||h==e?(m=!0,g=n):h!=e.body&&h!=e.documentElement&&"visible"!=v.overflow&&(g=i(h)),g&&(r=g,o=f,void 0,void 0,void 0,void 0,void 0,void 0,a=Math.max(r.top,o.top),c=Math.min(r.bottom,o.bottom),l=Math.max(r.left,o.left),p=c-a,!(f=(d=(u=Math.min(r.right,o.right))-l)>=0&&p>=0&&{top:a,bottom:c,left:l,right:u,width:d,height:p})))break;h=s(h)}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=s(n)}return!1}function s(e){var t=e.parentNode;return t&&11==t.nodeType&&t.host?t.host:t&&t.assignedSlot?t.assignedSlot.parentNode:t}}();var lr=n(null),ur={field:"CREATED_AT",direction:"DESC"};function dr(e){var n=r(ur),i=n[0],a=n[1],s=r(ur),c=s[0],l=s[1],u=r(ur),d=u[0],p=u[1];function f(e,t){"assets"===e?a(t):"collections"===e?l(t):p(t)}function h(){a(ur),l(ur),p(ur)}var m=o((function(){return{assets:i,collections:c,collection:d,setOrdering:f,reset:h}}),[i,d,c]);return t.createElement(lr.Provider,{value:m},e.children)}function pr(e){var t=function(){var e=i(lr);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,forwardRef as s,useRef as c,useLayoutEffect as l,createElement as u,useCallback as d,Component as p}from"react";import f,{createPortal as m}from"react-dom";var h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},g=function(e){return e&&e.Math==Math&&e},v=g("object"==typeof globalThis&&globalThis)||g("object"==typeof window&&window)||g("object"==typeof self&&self)||g("object"==typeof h&&h)||function(){return this}()||Function("return this")(),y={},b=function(e){try{return!!e()}catch(e){return!0}},w=!b((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),x=!b((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),_=x,E=Function.prototype.call,S=_?E.bind(E):function(){return E.apply(E,arguments)},k={},C={}.propertyIsEnumerable,T=Object.getOwnPropertyDescriptor,N=T&&!C.call({1:2},1);k.f=N?function(e){var t=T(this,e);return!!t&&t.enumerable}:C;var I,P,O=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},A=x,B=Function.prototype,F=B.bind,L=B.call,z=A&&F.bind(L,L),R=A?function(e){return e&&z(e)}:function(e){return e&&function(){return L.apply(e,arguments)}},M=R,D=M({}.toString),j=M("".slice),H=function(e){return j(D(e),8,-1)},U=R,V=b,K=H,$=v.Object,W=U("".split),q=V((function(){return!$("z").propertyIsEnumerable(0)}))?function(e){return"String"==K(e)?W(e,""):$(e)}:$,Y=v.TypeError,X=function(e){if(null==e)throw Y("Can't call method on "+e);return e},G=q,J=X,Z=function(e){return G(J(e))},Q=function(e){return"function"==typeof e},ee=Q,te=function(e){return"object"==typeof e?null!==e:ee(e)},ne=v,re=Q,oe=function(e){return re(e)?e:void 0},ie=function(e,t){return arguments.length<2?oe(ne[e]):ne[e]&&ne[e][t]},ae=R({}.isPrototypeOf),se=v,ce=ie("navigator","userAgent")||"",le=se.process,ue=se.Deno,de=le&&le.versions||ue&&ue.version,pe=de&&de.v8;pe&&(P=(I=pe.split("."))[0]>0&&I[0]<4?1:+(I[0]+I[1])),!P&&ce&&(!(I=ce.match(/Edge\/(\d+)/))||I[1]>=74)&&(I=ce.match(/Chrome\/(\d+)/))&&(P=+I[1]);var fe=P,me=b,he=!!Object.getOwnPropertySymbols&&!me((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&fe&&fe<41})),ge=he&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ve=ie,ye=Q,be=ae,we=ge,xe=v.Object,_e=we?function(e){return"symbol"==typeof e}:function(e){var t=ve("Symbol");return ye(t)&&be(t.prototype,xe(e))},Ee=v.String,Se=Q,ke=v.TypeError,Ce=function(e){if(Se(e))return e;throw ke(function(e){try{return Ee(e)}catch(e){return"Object"}}(e)+" is not a function")},Te=Ce,Ne=S,Ie=Q,Pe=te,Oe=v.TypeError,Ae={exports:{}},Be=v,Fe=Object.defineProperty,Le=function(e,t){try{Fe(Be,e,{value:t,configurable:!0,writable:!0})}catch(n){Be[e]=t}return t},ze=Le,Re=v["__core-js_shared__"]||ze("__core-js_shared__",{}),Me=Re;(Ae.exports=function(e,t){return Me[e]||(Me[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.21.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"});var De=X,je=v.Object,He=function(e){return je(De(e))},Ue=He,Ve=R({}.hasOwnProperty),Ke=Object.hasOwn||function(e,t){return Ve(Ue(e),t)},$e=R,We=0,qe=Math.random(),Ye=$e(1..toString),Xe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Ye(++We+qe,36)},Ge=v,Je=Ae.exports,Ze=Ke,Qe=Xe,et=he,tt=ge,nt=Je("wks"),rt=Ge.Symbol,ot=rt&&rt.for,it=tt?rt:rt&&rt.withoutSetter||Qe,at=function(e){if(!Ze(nt,e)||!et&&"string"!=typeof nt[e]){var t="Symbol."+e;et&&Ze(rt,e)?nt[e]=rt[e]:nt[e]=tt&&ot?ot(t):it(t)}return nt[e]},st=S,ct=te,lt=_e,ut=at,dt=v.TypeError,pt=ut("toPrimitive"),ft=function(e,t){if(!ct(e)||lt(e))return e;var n,r=function(e,t){var n=e[t];return null==n?void 0:Te(n)}(e,pt);if(r){if(void 0===t&&(t="default"),n=st(r,e,t),!ct(n)||lt(n))return n;throw dt("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Ie(n=e.toString)&&!Pe(r=Ne(n,e)))return r;if(Ie(n=e.valueOf)&&!Pe(r=Ne(n,e)))return r;if("string"!==t&&Ie(n=e.toString)&&!Pe(r=Ne(n,e)))return r;throw Oe("Can't convert object to primitive value")}(e,t)},mt=_e,ht=function(e){var t=ft(e,"string");return mt(t)?t:t+""},gt=te,vt=v.document,yt=gt(vt)&>(vt.createElement),bt=function(e){return yt?vt.createElement(e):{}},wt=bt,xt=!w&&!b((function(){return 7!=Object.defineProperty(wt("div"),"a",{get:function(){return 7}}).a})),_t=w,Et=S,St=k,kt=O,Ct=Z,Tt=ht,Nt=Ke,It=xt,Pt=Object.getOwnPropertyDescriptor;y.f=_t?Pt:function(e,t){if(e=Ct(e),t=Tt(t),It)try{return Pt(e,t)}catch(e){}if(Nt(e,t))return kt(!Et(St.f,e,t),e[t])};var Ot={},At=w&&b((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Bt=v,Ft=te,Lt=Bt.String,zt=Bt.TypeError,Rt=function(e){if(Ft(e))return e;throw zt(Lt(e)+" is not an object")},Mt=w,Dt=xt,jt=At,Ht=Rt,Ut=ht,Vt=v.TypeError,Kt=Object.defineProperty,$t=Object.getOwnPropertyDescriptor;Ot.f=Mt?jt?function(e,t,n){if(Ht(e),t=Ut(t),Ht(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=$t(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return Kt(e,t,n)}:Kt:function(e,t,n){if(Ht(e),t=Ut(t),Ht(n),Dt)try{return Kt(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Vt("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Wt=Ot,qt=O,Yt=w?function(e,t,n){return Wt.f(e,t,qt(1,n))}:function(e,t,n){return e[t]=n,e},Xt={exports:{}},Gt=Q,Jt=Re,Zt=R(Function.toString);Gt(Jt.inspectSource)||(Jt.inspectSource=function(e){return Zt(e)});var Qt,en,tn,nn=Jt.inspectSource,rn=Q,on=nn,an=v.WeakMap,sn=rn(an)&&/native code/.test(on(an)),cn=Ae.exports,ln=Xe,un=cn("keys"),dn=function(e){return un[e]||(un[e]=ln(e))},pn={},fn=sn,mn=v,hn=R,gn=te,vn=Yt,yn=Ke,bn=Re,wn=dn,xn=pn,_n=mn.TypeError,En=mn.WeakMap;if(fn||bn.state){var Sn=bn.state||(bn.state=new En),kn=hn(Sn.get),Cn=hn(Sn.has),Tn=hn(Sn.set);Qt=function(e,t){if(Cn(Sn,e))throw new _n("Object already initialized");return t.facade=e,Tn(Sn,e,t),t},en=function(e){return kn(Sn,e)||{}},tn=function(e){return Cn(Sn,e)}}else{var Nn=wn("state");xn[Nn]=!0,Qt=function(e,t){if(yn(e,Nn))throw new _n("Object already initialized");return t.facade=e,vn(e,Nn,t),t},en=function(e){return yn(e,Nn)?e[Nn]:{}},tn=function(e){return yn(e,Nn)}}var In={set:Qt,get:en,has:tn,enforce:function(e){return tn(e)?en(e):Qt(e,{})},getterFor:function(e){return function(t){var n;if(!gn(t)||(n=en(t)).type!==e)throw _n("Incompatible receiver, "+e+" required");return n}}},Pn=w,On=Ke,An=Function.prototype,Bn=Pn&&Object.getOwnPropertyDescriptor,Fn=On(An,"name"),Ln=Fn&&(!Pn||Pn&&Bn(An,"name").configurable),zn=v,Rn=Q,Mn=Ke,Dn=Yt,jn=Le,Hn=nn,Un=Ln,Vn=In.get,Kn=In.enforce,$n=String(String).split("String");(Xt.exports=function(e,t,n,r){var o,i=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,s=!!r&&!!r.noTargetGet,c=r&&void 0!==r.name?r.name:t;Rn(n)&&("Symbol("===String(c).slice(0,7)&&(c="["+String(c).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Mn(n,"name")||Un&&n.name!==c)&&Dn(n,"name",c),(o=Kn(n)).source||(o.source=$n.join("string"==typeof c?c:""))),e!==zn?(i?!s&&e[t]&&(a=!0):delete e[t],a?e[t]=n:Dn(e,t,n)):a?e[t]=n:jn(t,n)})(Function.prototype,"toString",(function(){return Rn(this)&&Vn(this).source||Hn(this)}));var Wn={},qn=Math.ceil,Yn=Math.floor,Xn=function(e){var t=+e;return t!=t||0===t?0:(t>0?Yn:qn)(t)},Gn=Xn,Jn=Math.max,Zn=Math.min,Qn=Xn,er=Math.min,tr=function(e){return(t=e.length)>0?er(Qn(t),9007199254740991):0;var t},nr=Z,rr=tr,or=function(e){return function(t,n,r){var o,i=nr(t),a=rr(i),s=function(e,t){var n=Gn(e);return n<0?Jn(n+t,0):Zn(n,t)}(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},ir={includes:or(!0),indexOf:or(!1)},ar=Ke,sr=Z,cr=ir.indexOf,lr=pn,ur=R([].push),dr=function(e,t){var n,r=sr(e),o=0,i=[];for(n in r)!ar(lr,n)&&ar(r,n)&&ur(i,n);for(;t.length>o;)ar(r,n=t[o++])&&(~cr(i,n)||ur(i,n));return i},pr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],fr=dr,mr=pr.concat("length","prototype");Wn.f=Object.getOwnPropertyNames||function(e){return fr(e,mr)};var hr={};hr.f=Object.getOwnPropertySymbols;var gr=ie,vr=Wn,yr=hr,br=Rt,wr=R([].concat),xr=gr("Reflect","ownKeys")||function(e){var t=vr.f(br(e)),n=yr.f;return n?wr(t,n(e)):t},_r=Ke,Er=xr,Sr=y,kr=Ot,Cr=b,Tr=Q,Nr=/#|\.prototype\./,Ir=function(e,t){var n=Or[Pr(e)];return n==Br||n!=Ar&&(Tr(t)?Cr(t):!!t)},Pr=Ir.normalize=function(e){return String(e).replace(Nr,".").toLowerCase()},Or=Ir.data={},Ar=Ir.NATIVE="N",Br=Ir.POLYFILL="P",Fr=Ir,Lr=v,zr=y.f,Rr=Yt,Mr=Xt.exports,Dr=Le,jr=function(e,t,n){for(var r=Er(t),o=kr.f,i=Sr.f,a=0;a<r.length;a++){var s=r[a];_r(e,s)||n&&_r(n,s)||o(e,s,i(t,s))}},Hr=Fr,Ur=Ce,Vr=x,Kr=R(R.bind),$r=H,Wr=Array.isArray||function(e){return"Array"==$r(e)},qr={};qr[at("toStringTag")]="z";var Yr=v,Xr="[object z]"===String(qr),Gr=Q,Jr=H,Zr=at("toStringTag"),Qr=Yr.Object,eo="Arguments"==Jr(function(){return arguments}()),to=R,no=b,ro=Q,oo=Xr?Jr:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Qr(e),Zr))?n:eo?Jr(t):"Object"==(r=Jr(t))&&Gr(t.callee)?"Arguments":r},io=nn,ao=function(){},so=[],co=ie("Reflect","construct"),lo=/^\s*(?:class|function)\b/,uo=to(lo.exec),po=!lo.exec(ao),fo=function(e){if(!ro(e))return!1;try{return co(ao,so,e),!0}catch(e){return!1}},mo=function(e){if(!ro(e))return!1;switch(oo(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return po||!!uo(lo,io(e))}catch(e){return!0}};mo.sham=!0;var ho=!co||no((function(){var e;return fo(fo.call)||!fo(Object)||!fo((function(){e=!0}))||e}))?mo:fo,go=v,vo=Wr,yo=ho,bo=te,wo=at("species"),xo=go.Array,_o=q,Eo=He,So=tr,ko=function(e,t){return new(function(e){var t;return vo(e)&&(t=e.constructor,(yo(t)&&(t===xo||vo(t.prototype))||bo(t)&&null===(t=t[wo]))&&(t=void 0)),void 0===t?xo:t}(e))(0===t?0:t)},Co=R([].push),To=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(c,l,u,d){for(var p,f,m=Eo(c),h=_o(m),g=function(e,t){return Ur(e),void 0===t?e:Vr?Kr(e,t):function(){return e.apply(t,arguments)}}(l,u),v=So(h),y=0,b=d||ko,w=t?b(c,v):n||a?b(c,0):void 0;v>y;y++)if((s||y in h)&&(f=g(p=h[y],y,m),e))if(t)w[y]=f;else if(f)switch(e){case 3:return!0;case 5:return p;case 6:return y;case 2:Co(w,p)}else switch(e){case 4:return!1;case 7:Co(w,p)}return i?-1:r||o?o:w}},No={forEach:To(0),map:To(1),filter:To(2),some:To(3),every:To(4),find:To(5),findIndex:To(6),filterReject:To(7)},Io={},Po=dr,Oo=pr,Ao=Object.keys||function(e){return Po(e,Oo)},Bo=w,Fo=At,Lo=Ot,zo=Rt,Ro=Z,Mo=Ao;Io.f=Bo&&!Fo?Object.defineProperties:function(e,t){zo(e);for(var n,r=Ro(t),o=Mo(t),i=o.length,a=0;i>a;)Lo.f(e,n=o[a++],r[n]);return e};var Do,jo=ie("document","documentElement"),Ho=Rt,Uo=Io,Vo=pr,Ko=pn,$o=jo,Wo=bt,qo=dn("IE_PROTO"),Yo=function(){},Xo=function(e){return"<script>"+e+"<\/script>"},Go=function(e){e.write(Xo("")),e.close();var t=e.parentWindow.Object;return e=null,t},Jo=function(){try{Do=new ActiveXObject("htmlfile")}catch(e){}var e,t;Jo="undefined"!=typeof document?document.domain&&Do?Go(Do):((t=Wo("iframe")).style.display="none",$o.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Xo("document.F=Object")),e.close(),e.F):Go(Do);for(var n=Vo.length;n--;)delete Jo.prototype[Vo[n]];return Jo()};Ko[qo]=!0;var Zo=Object.create||function(e,t){var n;return null!==e?(Yo.prototype=Ho(e),n=new Yo,Yo.prototype=null,n[qo]=e):n=Jo(),void 0===t?n:Uo.f(n,t)},Qo=Ot,ei=at("unscopables"),ti=Array.prototype;null==ti[ei]&&Qo.f(ti,ei,{configurable:!0,value:Zo(null)});var ni,ri=No.find,oi=!0;"find"in[]&&Array(1).find((function(){oi=!1})),function(e,t){var n,r,o,i,a,s=e.target,c=e.global,l=e.stat;if(n=c?Lr:l?Lr[s]||Dr(s,{}):(Lr[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=zr(n,r))&&a.value:n[r],!Hr(c?r:s+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;jr(i,o)}(e.sham||o&&o.sham)&&Rr(i,"sham",!0),Mr(n,r,i,e)}}({target:"Array",proto:!0,forced:oi},{find:function(e){return ri(this,e,arguments.length>1?arguments[1]:void 0)}}),ni="find",ti[ei][ni]=!0,R(v.Array.prototype.find),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),s=this._rootContainsTarget(o),c=r.entry,l=e&&s&&this._computeTargetAndRootIntersection(o,n),u=r.entry=new t({time:window.performance&&performance.now&&performance.now(),target:o,boundingClientRect:a,rootBounds:n,intersectionRect:l});c?e&&s?this._hasCrossedThreshold(c,u)&&this._queuedEntries.push(u):c&&c.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,c,l,u,d,p,f=i(t),m=s(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),c=Math.min(r.bottom,o.bottom),l=Math.max(r.left,o.left),p=c-a,!(f=(d=(u=Math.min(r.right,o.right))-l)>=0&&p>=0&&{top:a,bottom:c,left:l,right:u,width:d,height:p})))break;m=s(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=s(n)}return!1}function s(e){var t=e.parentNode;return t&&11==t.nodeType&&t.host?t.host:t&&t.assignedSlot?t.assignedSlot.parentNode:t}}();var ii=n(null),ai={field:"CREATED_AT",direction:"DESC"};function si(e){var n=r(ai),i=n[0],a=n[1],s=r(ai),c=s[0],l=s[1],u=r(ai),d=u[0],p=u[1];function f(e,t){"assets"===e?a(t):"collections"===e?l(t):p(t)}function m(){a(ai),l(ai),p(ai)}var h=o((function(){return{assets:i,collections:c,collection:d,setOrdering:f,reset:m}}),[i,d,c]);return t.createElement(ii.Provider,{value:h},e.children)}function ci(e){var t=function(){var e=i(ii);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,9 @@ 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 fr=function(e,t){return(fr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function hr(e,t){function n(){this.constructor=e}fr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var mr=function(){return(mr=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}).apply(this,arguments)};function gr(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 vr(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function yr(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:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){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,s])}}}function br(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function xr(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function _r(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(xr(arguments[t]));return e}function wr(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}var Sr=n(null);function Er(e){var n=r({page:"assets"});return t.createElement(Sr.Provider,{value:n},e.children)}function kr(){var e=i(Sr);if(null===e)throw new Error("useRouter must be used with a RouterProvider");return e}var Cr,Tr,Nr=n(null),Ir={assets:"",collection:"",collections:"",isLoading:!1};function Or(e){var n=r(Ir),i=n[0],s=n[1],c=kr()[0];function l(e,t){var n=""!==t;s((function(r){var o;return mr(mr({},r),((o={})[e]=t,o.isLoading=n,o))}))}function u(e){s((function(t){return mr(mr({},t),{isLoading:e})}))}function d(){s(Ir)}a((function(){var t;l("assets",null!==(t=e.defaultValue)&&void 0!==t?t:"")}),[e.defaultValue]),a((function(){s((function(e){return mr(mr({},e),{collection:""})}))}),[c]);var p=o((function(){return mr(mr({},i),{setSearch:l,setIsLoading:u,clear:d})}),[i]);return t.createElement(Nr.Provider,{value:p},e.children)}function Ar(){var e=i(Nr);if(null===e)throw new Error("useSearchState must be used within a SearchStateContext");return e}function Pr(e){var t=Ar();return{value:t[e],isLoading:t.isLoading,setSearch:function(n){return t.setSearch(e,n)},setIsLoading:t.setIsLoading}}function Br(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Ur(e,Error)}}function Rr(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)}function Fr(e){return"[object DOMError]"===Object.prototype.toString.call(e)}function zr(e){return"[object String]"===Object.prototype.toString.call(e)}function Lr(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function jr(e){return"[object Object]"===Object.prototype.toString.call(e)}function Mr(e){return"undefined"!=typeof Event&&Ur(e,Event)}function Dr(e){return"undefined"!=typeof Element&&Ur(e,Element)}function Hr(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function Ur(e,t){try{return e instanceof t}catch(e){return!1}}function qr(e){try{for(var t=e,n=[],r=0,o=0,i=" > ".length,a=void 0;t&&r++<5&&!("html"===(a=Vr(t))||r>1&&o+n.length*i+a.length>=80);)n.push(a),o+=a.length,t=t.parentNode;return n.reverse().join(" > ")}catch(e){return"<unknown>"}}function Vr(e){var t,n,r,o,i,a=e,s=[];if(!a||!a.tagName)return"";if(s.push(a.tagName.toLowerCase()),a.id&&s.push("#"+a.id),(t=a.className)&&zr(t))for(n=t.split(/\s+/),i=0;i<n.length;i++)s.push("."+n[i]);var c=["type","name","title","alt"];for(i=0;i<c.length;i++)r=c[i],(o=a.getAttribute(r))&&s.push("["+r+'="'+o+'"]');return s.join("")}!function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(Cr||(Cr={})),function(e){e.fromString=function(t){switch(t){case"debug":return e.Debug;case"info":return e.Info;case"warn":case"warning":return e.Warning;case"error":return e.Error;case"fatal":return e.Fatal;case"critical":return e.Critical;case"log":default:return e.Log}}}(Cr||(Cr={})),function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.Invalid="invalid",e.Failed="failed"}(Tr||(Tr={})),function(e){e.fromHttpCode=function(t){return t>=200&&t<300?e.Success:429===t?e.RateLimit:t>=400&&t<500?e.Invalid:t>=500?e.Failed:e.Unknown}}(Tr||(Tr={}));var Wr=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n]);return e}),$r=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return r.message=t,r.name=n.prototype.constructor.name,Wr(r,n.prototype),r}return hr(t,e),t}(Error),Yr=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,Gr=function(){function e(e){"string"==typeof e?this._fromString(e):this._fromComponents(e),this._validate()}return e.prototype.toString=function(e){void 0===e&&(e=!1);var t=this,n=t.host,r=t.path,o=t.pass,i=t.port,a=t.projectId;return t.protocol+"://"+t.publicKey+(e&&o?":"+o:"")+"@"+n+(i?":"+i:"")+"/"+(r?r+"/":r)+a},e.prototype._fromString=function(e){var t=Yr.exec(e);if(!t)throw new $r("Invalid Dsn");var n=xr(t.slice(1),6),r=n[0],o=n[1],i=n[2],a=void 0===i?"":i,s=n[3],c=n[4],l=void 0===c?"":c,u="",d=n[5],p=d.split("/");if(p.length>1&&(u=p.slice(0,-1).join("/"),d=p.pop()),d){var f=d.match(/^\d+/);f&&(d=f[0])}this._fromComponents({host:s,pass:a,path:u,projectId:d,port:l,protocol:r,publicKey:o})},e.prototype._fromComponents=function(e){"user"in e&&!("publicKey"in e)&&(e.publicKey=e.user),this.user=e.publicKey||"",this.protocol=e.protocol,this.publicKey=e.publicKey||"",this.pass=e.pass||"",this.host=e.host,this.port=e.port||"",this.path=e.path||"",this.projectId=e.projectId},e.prototype._validate=function(){var e=this;if(["protocol","publicKey","host","projectId"].forEach((function(t){if(!e[t])throw new $r("Invalid Dsn: "+t+" missing")})),!this.projectId.match(/^\d+$/))throw new $r("Invalid Dsn: Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new $r("Invalid Dsn: Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new $r("Invalid Dsn: Invalid port "+this.port)},e}();function Xr(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function Jr(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function Kr(e,t){if(!Array.isArray(e))return"";for(var n=[],r=0;r<e.length;r++){var o=e[r];try{n.push(String(o))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function Zr(e,t){return!!zr(e)&&(n=t,"[object RegExp]"===Object.prototype.toString.call(n)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t));var n}var Qr={};function eo(){return Xr()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:Qr}function to(){var e=eo(),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=function(e){for(var t=e.toString(16);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,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function no(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 ro(e){if(e.message)return e.message;if(e.exception&&e.exception.values&&e.exception.values[0]){var t=e.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||e.event_id||"<unknown>"}return e.event_id||"<unknown>"}function oo(e){var t=eo();if(!("console"in t))return e();var n=t.console,r={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&n[e].__sentry_original__&&(r[e]=n[e],n[e]=n[e].__sentry_original__)}));var o=e();return Object.keys(r).forEach((function(e){n[e]=r[e]})),o}function io(e,t,n){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||t||"",e.exception.values[0].type=e.exception.values[0].type||n||"Error"}function ao(e,t){void 0===t&&(t={});try{e.exception.values[0].mechanism=e.exception.values[0].mechanism||{},Object.keys(t).forEach((function(n){e.exception.values[0].mechanism[n]=t[n]}))}catch(e){}}var so=eo(),co="Sentry Logger ",lo=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&oo((function(){so.console.log(co+"[Log]: "+e.join(" "))}))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&oo((function(){so.console.warn(co+"[Warn]: "+e.join(" "))}))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&oo((function(){so.console.error(co+"[Error]: "+e.join(" "))}))},e}();so.__SENTRY__=so.__SENTRY__||{};var uo=so.__SENTRY__.logger||(so.__SENTRY__.logger=new lo),po=function(){function e(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return e.prototype.memoize=function(e){if(this._hasWeakSet)return!!this._inner.has(e)||(this._inner.add(e),!1);for(var t=0;t<this._inner.length;t++)if(this._inner[t]===e)return!0;return this._inner.push(e),!1},e.prototype.unmemoize=function(e){if(this._hasWeakSet)this._inner.delete(e);else for(var t=0;t<this._inner.length;t++)if(this._inner[t]===e){this._inner.splice(t,1);break}},e}();function fo(e){try{return e&&"function"==typeof e&&e.name||"<anonymous>"}catch(e){return"<anonymous>"}}function ho(e,t,n){if(t in e){var r=e[t],o=n(r);if("function"==typeof o)try{o.prototype=o.prototype||{},Object.defineProperties(o,{__sentry_original__:{enumerable:!1,value:r}})}catch(e){}e[t]=o}}function mo(e){if(Br(e)){var t=e,n={message:t.message,name:t.name,stack:t.stack};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}if(Mr(e)){var o=e,i={};i.type=o.type;try{i.target=Dr(o.target)?qr(o.target):Object.prototype.toString.call(o.target)}catch(e){i.target="<unknown>"}try{i.currentTarget=Dr(o.currentTarget)?qr(o.currentTarget):Object.prototype.toString.call(o.currentTarget)}catch(e){i.currentTarget="<unknown>"}for(var r in"undefined"!=typeof CustomEvent&&Ur(e,CustomEvent)&&(i.detail=o.detail),o)Object.prototype.hasOwnProperty.call(o,r)&&(i[r]=o);return i}return e}function go(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var r,o=yo(e,t);return r=o,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(r))>n?go(e,t-1,n):o}function vo(e,t){return"domain"===t&&e&&"object"==typeof e&&e._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!=typeof global&&e===global?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":jr(n=e)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+fo(e)+"]":"symbol"==typeof e?"["+String(e)+"]":"bigint"==typeof e?"[BigInt: "+String(e)+"]":e;var n}function yo(e,t){try{return JSON.parse(JSON.stringify(e,(function(e,n){return function e(t,n,r,o){if(void 0===r&&(r=1/0),void 0===o&&(o=new po),0===r)return function(e){var t=Object.prototype.toString.call(e);if("string"==typeof e)return e;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var n=vo(e);return Lr(n)?n:t}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var i=vo(n,t);if(Lr(i))return i;var a=mo(n),s=Array.isArray(n)?[]:{};if(o.memoize(n))return"[Circular ~]";for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(s[c]=e(c,a[c],r-1,o));return o.unmemoize(n),s}(e,n,t)})))}catch(e){return"**non-serializable**"}}function bo(e,t){void 0===t&&(t=40);var n=Object.keys(mo(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Jr(n[0],t);for(var r=n.length;r>0;r--){var o=n.slice(0,r).join(", ");if(!(o.length>t))return r===n.length?o:Jr(o,t)}return""}function xo(e){var t,n;if(jr(e)){var r=e,o={};try{for(var i=br(Object.keys(r)),a=i.next();!a.done;a=i.next()){var s=a.value;void 0!==r[s]&&(o[s]=xo(r[s]))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o}return Array.isArray(e)?e.map(xo):e}function _o(){if(!("fetch"in eo()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function wo(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function So(){if(!_o())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}var Eo,ko,Co,To=eo(),No={},Io={};function Oo(e){e&&"string"==typeof e.type&&"function"==typeof e.callback&&(No[e.type]=No[e.type]||[],No[e.type].push(e.callback),function(e){if(!Io[e])switch(Io[e]=!0,e){case"console":"console"in To&&["debug","info","warn","error","log","assert"].forEach((function(e){e in To.console&&ho(To.console,e,(function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];Ao("console",{args:n,level:e}),t&&Function.prototype.apply.call(t,To.console,n)}}))}));break;case"dom":!function(){if("document"in To){var e=Ao.bind(null,"dom"),t=Ro(e,!0);To.document.addEventListener("click",t,!1),To.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((function(t){var n=To[t]&&To[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(ho(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 s=Ro(e);a.handler=s,t.call(this,n,s,o)}a.refCount+=1}catch(e){}return t.call(this,n,r,o)}})),ho(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=[],t=[],n=XMLHttpRequest.prototype;ho(n,"open",(function(n){return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=this,a=r[1];i.__sentry_xhr__={method:zr(r[0])?r[0].toUpperCase():r[0],url:r[1]},zr(a)&&"POST"===i.__sentry_xhr__.method&&a.match(/sentry_key/)&&(i.__sentry_own_request__=!0);var s=function(){if(4===i.readyState){try{i.__sentry_xhr__&&(i.__sentry_xhr__.status_code=i.status)}catch(e){}try{var n=e.indexOf(i);if(-1!==n){e.splice(n);var o=t.splice(n)[0];i.__sentry_xhr__&&void 0!==o[0]&&(i.__sentry_xhr__.body=o[0])}}catch(e){}Ao("xhr",{args:r,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:i})}};return"onreadystatechange"in i&&"function"==typeof i.onreadystatechange?ho(i,"onreadystatechange",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return s(),e.apply(i,t)}})):i.addEventListener("readystatechange",s),n.apply(i,r)}})),ho(n,"send",(function(n){return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return e.push(this),t.push(r),Ao("xhr",{args:r,startTimestamp:Date.now(),xhr:this}),n.apply(this,r)}}))}}();break;case"fetch":(function(){if(!_o())return!1;var e=eo();if(wo(e.fetch))return!0;var t=!1,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=wo(r.contentWindow.fetch)),n.head.removeChild(r)}catch(e){uo.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t})()&&ho(To,"fetch",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r={args:t,fetchData:{method:Po(t),url:Bo(t)},startTimestamp:Date.now()};return Ao("fetch",mr({},r)),e.apply(To,t).then((function(e){return Ao("fetch",mr(mr({},r),{endTimestamp:Date.now(),response:e})),e}),(function(e){throw Ao("fetch",mr(mr({},r),{endTimestamp:Date.now(),error:e})),e}))}}));break;case"history":!function(){if(function(){var e=eo(),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(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=To.location.href,o=Eo;if(Eo=r,Ao("history",{from:o,to:r}),e)try{return e.apply(this,t)}catch(e){}},ho(To.history,"pushState",t),ho(To.history,"replaceState",t)}function t(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.length>2?t[2]:void 0;if(r){var o=Eo,i=String(r);Eo=i,Ao("history",{from:o,to:i})}return e.apply(this,t)}}}();break;case"error":zo=To.onerror,To.onerror=function(e,t,n,r,o){return Ao("error",{column:r,error:o,line:n,msg:e,url:t}),!!zo&&zo.apply(this,arguments)};break;case"unhandledrejection":Lo=To.onunhandledrejection,To.onunhandledrejection=function(e){return Ao("unhandledrejection",e),!Lo||Lo.apply(this,arguments)};break;default:uo.warn("unknown instrumentation type:",e)}}(e.type))}function Ao(e,t){var n,r;if(e&&No[e])try{for(var o=br(No[e]||[]),i=o.next();!i.done;i=o.next()){var a=i.value;try{a(t)}catch(t){uo.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+fo(a)+"\nError: "+t)}}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}function Po(e){return void 0===e&&(e=[]),"Request"in To&&Ur(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function Bo(e){return void 0===e&&(e=[]),"string"==typeof e[0]?e[0]:"Request"in To&&Ur(e[0],Request)?e[0].url:String(e[0])}function Ro(e,t){return void 0===t&&(t=!1),function(n){if(n&&Co!==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===ko||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}(Co,n))&&(e({event:n,name:r,global:t}),Co=n),clearTimeout(ko),ko=To.setTimeout((function(){ko=void 0}),1e3)}}}var Fo,zo=null,Lo=null;!function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}(Fo||(Fo={}));var jo=function(){function e(e){var t=this;this._state=Fo.PENDING,this._handlers=[],this._resolve=function(e){t._setResult(Fo.RESOLVED,e)},this._reject=function(e){t._setResult(Fo.REJECTED,e)},this._setResult=function(e,n){t._state===Fo.PENDING&&(Hr(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._attachHandler=function(e){t._handlers=t._handlers.concat(e),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==Fo.PENDING){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e.done||(t._state===Fo.RESOLVED&&e.onfulfilled&&e.onfulfilled(t._value),t._state===Fo.REJECTED&&e.onrejected&&e.onrejected(t._value),e.done=!0)}))}};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.resolve=function(t){return new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){return new e((function(n,r){if(Array.isArray(t))if(0!==t.length){var o=t.length,i=[];t.forEach((function(t,a){e.resolve(t).then((function(e){i[a]=e,0==(o-=1)&&n(i)})).then(null,r)}))}else n([]);else r(new TypeError("Promise.all requires an array as input."))}))},e.prototype.then=function(t,n){var r=this;return new e((function(e,o){r._attachHandler({done:!1,onfulfilled:function(n){if(t)try{return void e(t(n))}catch(e){return void o(e)}else e(n)},onrejected:function(t){if(n)try{return void e(n(t))}catch(e){return void o(e)}else o(t)}})}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,r){var o,i;return n.then((function(e){i=!1,o=e,t&&t()}),(function(e){i=!0,o=e,t&&t()})).then((function(){i?r(o):e(o)}))}))},e.prototype.toString=function(){return"[object SyncPromise]"},e}(),Mo=function(){function e(e){this._limit=e,this._buffer=[]}return e.prototype.isReady=function(){return void 0===this._limit||this.length()<this._limit},e.prototype.add=function(e){var t=this;return this.isReady()?(-1===this._buffer.indexOf(e)&&this._buffer.push(e),e.then((function(){return t.remove(e)})).then(null,(function(){return t.remove(e).then(null,(function(){}))})),e):jo.reject(new $r("Not adding Promise due to buffer limit reached."))},e.prototype.remove=function(e){return this._buffer.splice(this._buffer.indexOf(e),1)[0]},e.prototype.length=function(){return this._buffer.length},e.prototype.drain=function(e){var t=this;return new jo((function(n){var r=setTimeout((function(){e&&e>0&&n(!1)}),e);jo.all(t._buffer).then((function(){clearTimeout(r),n(!0)})).then(null,(function(){n(!0)}))}))},e}(),Do={nowSeconds:function(){return Date.now()/1e3}},Ho=Xr()?function(){try{return(e=module,"perf_hooks",e.require("perf_hooks")).performance}catch(e){return}var e}():function(){var e=eo().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),Uo=void 0===Ho?Do:{nowSeconds:function(){return(Ho.timeOrigin+Ho.now())/1e3}},qo=Do.nowSeconds.bind(Do);Uo.nowSeconds.bind(Uo),function(){var e=eo().performance;if(e){var t=e.now(),n=Date.now(),r=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,o=r<36e5,i=e.timing&&e.timing.navigationStart,a="number"==typeof i?Math.abs(i+t-n):36e5;(o||a<36e5)&&r<=a&&e.timeOrigin}}();var Vo,Wo,$o=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=_r(t._breadcrumbs),n._tags=mr({},t._tags),n._extra=mr({},t._extra),n._contexts=mr({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=_r(t._eventProcessors),n._requestSession=t._requestSession),n},e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},e.prototype.getUser=function(){return this._user},e.prototype.getRequestSession=function(){return this._requestSession},e.prototype.setRequestSession=function(e){return this._requestSession=e,this},e.prototype.setTags=function(e){return this._tags=mr(mr({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=mr(mr({},this._tags),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=mr(mr({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=mr(mr({},this._extra),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this.setTransactionName(e)},e.prototype.setContext=function(e,t){var n;return null===t?delete this._contexts[e]:this._contexts=mr(mr({},this._contexts),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.prototype.getTransaction=function(){var e,t,n,r,o=this.getSpan();return(null===(e=o)||void 0===e?void 0:e.transaction)?null===(t=o)||void 0===t?void 0:t.transaction:(null===(r=null===(n=o)||void 0===n?void 0:n.spanRecorder)||void 0===r?void 0:r.spans[0])?o.spanRecorder.spans[0]:void 0},e.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},e.prototype.getSession=function(){return this._session},e.prototype.update=function(t){if(!t)return this;if("function"==typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=mr(mr({},this._tags),t._tags),this._extra=mr(mr({},this._extra),t._extra),this._contexts=mr(mr({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):jr(t)&&(t=t,this._tags=mr(mr({},this._tags),t.tags),this._extra=mr(mr({},this._extra),t.extra),this._contexts=mr(mr({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this},e.prototype.clear=function(){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},e.prototype.addBreadcrumb=function(e,t){var n=mr({timestamp:qo()},e);return this._breadcrumbs=void 0!==t&&t>=0?_r(this._breadcrumbs,[n]).slice(-t):_r(this._breadcrumbs,[n]),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){var n;if(this._extra&&Object.keys(this._extra).length&&(e.extra=mr(mr({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=mr(mr({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=mr(mr({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=mr(mr({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=mr({trace:this._span.getTraceContext()},e.contexts);var r=null===(n=this._span.transaction)||void 0===n?void 0:n.name;r&&(e.tags=mr({transaction:r},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=_r(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors(_r(Yo(),this._eventProcessors),e,t)},e.prototype._notifyEventProcessors=function(e,t,n,r){var o=this;return void 0===r&&(r=0),new jo((function(i,a){var s=e[r];if(null===t||"function"!=typeof s)i(t);else{var c=s(mr({},t),n);Hr(c)?c.then((function(t){return o._notifyEventProcessors(e,t,n,r+1).then(i)})).then(null,a):o._notifyEventProcessors(e,c,n,r+1).then(i).then(null,a)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)},e.prototype._applyFingerprint=function(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},e}();function Yo(){var e=eo();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function Go(e){Yo().push(e)}!function(e){e.Ok="ok",e.Exited="exited",e.Crashed="crashed",e.Abnormal="abnormal"}(Vo||(Vo={})),function(e){e.Ok="ok",e.Errored="errored",e.Crashed="crashed"}(Wo||(Wo={}));var Xo=function(){function e(e,t,n){void 0===t&&(t=new $o),void 0===n&&(n=4),this._version=n,this._stack=[{}],this.getStackTop().scope=t,this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this._version<e},e.prototype.bindClient=function(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()},e.prototype.pushScope=function(){var e=$o.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e},e.prototype.popScope=function(){return!(this.getStack().length<=1||!this.getStack().pop())},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var n=this._lastEventId=to(),r=t;if(!t){var o=void 0;try{throw new Error("Sentry syntheticException")}catch(e){o=e}r={originalException:e,syntheticException:o}}return this._invokeClient("captureException",e,mr(mr({},r),{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var r=this._lastEventId=to(),o=n;if(!n){var i=void 0;try{throw new Error(e)}catch(e){i=e}o={originalException:e,syntheticException:i}}return this._invokeClient("captureMessage",e,t,mr(mr({},o),{event_id:r})),r},e.prototype.captureEvent=function(e,t){var n=this._lastEventId=to();return this._invokeClient("captureEvent",e,mr(mr({},t),{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop(),r=n.scope,o=n.client;if(r&&o){var i=o.getOptions&&o.getOptions()||{},a=i.beforeBreadcrumb,s=void 0===a?null:a,c=i.maxBreadcrumbs,l=void 0===c?100:c;if(!(l<=0)){var u=qo(),d=mr({timestamp:u},e),p=s?oo((function(){return s(d,t)})):d;null!==p&&r.addBreadcrumb(p,Math.min(l,100))}}},e.prototype.setUser=function(e){var t=this.getScope();t&&t.setUser(e)},e.prototype.setTags=function(e){var t=this.getScope();t&&t.setTags(e)},e.prototype.setExtras=function(e){var t=this.getScope();t&&t.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getScope();n&&n.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getScope();n&&n.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getScope();n&&n.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop(),n=t.scope,r=t.client;n&&r&&e(n)},e.prototype.run=function(e){var t=Ko(this);try{e(this)}finally{Ko(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return uo.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e){return this._callExtensionMethod("startSpan",e)},e.prototype.startTransaction=function(e,t){return this._callExtensionMethod("startTransaction",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype.captureSession=function(e){if(void 0===e&&(e=!1),e)return this.endSession();this._sendSessionUpdate()},e.prototype.endSession=function(){var e,t,n,r,o;null===(n=null===(t=null===(e=this.getStackTop())||void 0===e?void 0:e.scope)||void 0===t?void 0:t.getSession())||void 0===n||n.close(),this._sendSessionUpdate(),null===(o=null===(r=this.getStackTop())||void 0===r?void 0:r.scope)||void 0===o||o.setSession()},e.prototype.startSession=function(e){var t=this.getStackTop(),n=t.scope,r=t.client,o=r&&r.getOptions()||{},i=o.release,a=o.environment,s=new ni(mr(mr({release:i,environment:a},n&&{user:n.getUser()}),e));if(n){var c=n.getSession&&n.getSession();c&&c.status===Vo.Ok&&c.update({status:Vo.Exited}),this.endSession(),n.setSession(s)}return s},e.prototype._sendSessionUpdate=function(){var e=this.getStackTop(),t=e.scope,n=e.client;if(t){var r=t.getSession&&t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}},e.prototype._invokeClient=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.getStackTop(),i=o.scope,a=o.client;a&&a[e]&&(t=a)[e].apply(t,_r(n,[i]))},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Jo(),o=r.__SENTRY__;if(o&&o.extensions&&"function"==typeof o.extensions[e])return o.extensions[e].apply(this,t);uo.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function Jo(){var e=eo();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function Ko(e){var t=Jo(),n=ei(t);return ti(t,e),n}function Zo(){var e=Jo();return Qo(e)&&!ei(e).isOlderThan(4)||ti(e,new Xo),Xr()?function(e){var t,n,r;try{var o=null===(r=null===(n=null===(t=Jo().__SENTRY__)||void 0===t?void 0:t.extensions)||void 0===n?void 0:n.domain)||void 0===r?void 0:r.active;if(!o)return ei(e);if(!Qo(o)||ei(o).isOlderThan(4)){var i=ei(e).getStackTop();ti(o,new Xo(i.client,$o.clone(i.scope)))}return ei(o)}catch(t){return ei(e)}}(e):ei(e)}function Qo(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function ei(e){return e&&e.__SENTRY__&&e.__SENTRY__.hub||(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=new Xo),e.__SENTRY__.hub}function ti(e,t){return!!e&&(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=t,!0)}var ni=function(){function e(e){this.errors=0,this.sid=to(),this.timestamp=Date.now(),this.started=Date.now(),this.duration=0,this.status=Vo.Ok,this.init=!0,e&&this.update(e)}return e.prototype.update=function(e){void 0===e&&(e={}),e.user&&(e.user.ip_address&&(this.ipAddress=e.user.ip_address),e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||Date.now(),e.sid&&(this.sid=32===e.sid.length?e.sid:to()),void 0!==e.init&&(this.init=e.init),e.did&&(this.did=""+e.did),"number"==typeof e.started&&(this.started=e.started),"number"==typeof e.duration?this.duration=e.duration:this.duration=this.timestamp-this.started,e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),e.ipAddress&&(this.ipAddress=e.ipAddress),e.userAgent&&(this.userAgent=e.userAgent),"number"==typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):this.status===Vo.Ok?this.update({status:Vo.Exited}):this.update()},e.prototype.toJSON=function(){return xo({sid:""+this.sid,init:this.init,started:new Date(this.started).toISOString(),timestamp:new Date(this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:xo({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},e}();function ri(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Zo();if(r&&r[e])return r[e].apply(r,_r(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}function oi(e,t){var n;try{throw new Error("Sentry syntheticException")}catch(e){n=e}return ri("captureException",e,{captureContext:t,originalException:e,syntheticException:n})}function ii(e){ri("withScope",e)}var ai,si,ci,li=function(){function e(e,t){void 0===t&&(t={}),this.dsn=e,this._dsnObject=new Gr(e),this.metadata=t}return e.prototype.getDsn=function(){return this._dsnObject},e.prototype.getBaseApiEndpoint=function(){var e=this._dsnObject,t=e.protocol?e.protocol+":":"",n=e.port?":"+e.port:"";return t+"//"+e.host+n+(e.path?"/"+e.path:"")+"/api/"},e.prototype.getStoreEndpoint=function(){return this._getIngestEndpoint("store")},e.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this._encodedAuth()},e.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this._getEnvelopeEndpoint()+"?"+this._encodedAuth()},e.prototype.getStoreEndpointPath=function(){var e=this._dsnObject;return(e.path?"/"+e.path:"")+"/api/"+e.projectId+"/store/"},e.prototype.getRequestHeaders=function(e,t){var n=this._dsnObject,r=["Sentry sentry_version=7"];return r.push("sentry_client="+e+"/"+t),r.push("sentry_key="+n.publicKey),n.pass&&r.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}},e.prototype.getReportDialogEndpoint=function(e){void 0===e&&(e={});var t=this._dsnObject,n=this.getBaseApiEndpoint()+"embed/error-page/",r=[];for(var o in r.push("dsn="+t.toString()),e)if("dsn"!==o)if("user"===o){if(!e.user)continue;e.user.name&&r.push("name="+encodeURIComponent(e.user.name)),e.user.email&&r.push("email="+encodeURIComponent(e.user.email))}else r.push(encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return r.length?n+"?"+r.join("&"):n},e.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint("envelope")},e.prototype._getIngestEndpoint=function(e){return""+this.getBaseApiEndpoint()+this._dsnObject.projectId+"/"+e+"/"},e.prototype._encodedAuth=function(){var e,t={sentry_key:this._dsnObject.publicKey,sentry_version:"7"};return e=t,Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")},e}();!function(e){e.Ok="ok",e.Exited="exited",e.Crashed="crashed",e.Abnormal="abnormal"}(ai||(ai={})),function(e){e.Ok="ok",e.Errored="errored",e.Crashed="crashed"}(si||(si={})),function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.Invalid="invalid",e.Failed="failed"}(ci||(ci={})),function(e){e.fromHttpCode=function(t){return t>=200&&t<300?e.Success:429===t?e.RateLimit:t>=400&&t<500?e.Invalid:t>=500?e.Failed:e.Unknown}}(ci||(ci={}));var ui=[];function di(e){return e.reduce((function(e,t){return e.every((function(e){return t.name!==e.name}))&&e.push(t),e}),[])}var pi=function(){function e(e,t){this._integrations={},this._processing=0,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=new Gr(t.dsn))}return e.prototype.captureException=function(e,t,n){var r=this,o=t&&t.event_id;return this._process(this._getBackend().eventFromException(e,t).then((function(e){return r._captureEvent(e,t,n)})).then((function(e){o=e}))),o},e.prototype.captureMessage=function(e,t,n,r){var o=this,i=n&&n.event_id,a=Lr(e)?this._getBackend().eventFromMessage(String(e),t,n):this._getBackend().eventFromException(e,n);return this._process(a.then((function(e){return o._captureEvent(e,n,r)})).then((function(e){i=e}))),i},e.prototype.captureEvent=function(e,t,n){var r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((function(e){r=e}))),r},e.prototype.captureSession=function(e){"string"!=typeof e.release?uo.warn("Discarded session because of missing or non-string release"):(this._sendSession(e),e.update({init:!1}))},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.flush=function(e){var t=this;return this._isClientProcessing(e).then((function(n){return t._getBackend().getTransport().close(e).then((function(e){return n&&e}))}))},e.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))},e.prototype.setupIntegrations=function(){var e,t;this._isEnabled()&&(this._integrations=(e=this._options,t={},function(e){var t=e.defaultIntegrations&&_r(e.defaultIntegrations)||[],n=e.integrations,r=_r(di(t));Array.isArray(n)?r=_r(r.filter((function(e){return n.every((function(t){return t.name!==e.name}))})),di(n)):"function"==typeof n&&(r=n(r),r=Array.isArray(r)?r:[r]);var o=r.map((function(e){return e.name}));return-1!==o.indexOf("Debug")&&r.push.apply(r,_r(r.splice(o.indexOf("Debug"),1))),r}(e).forEach((function(e){t[e.name]=e,function(e){-1===ui.indexOf(e.name)&&(e.setupOnce(Go,Zo),ui.push(e.name),uo.log("Integration installed: "+e.name))}(e)})),t))},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return uo.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._updateSessionFromEvent=function(e,t){var n,r,o,i=!1,a=!1,s=t.exception&&t.exception.values;if(s){a=!0;try{for(var c=br(s),l=c.next();!l.done;l=c.next()){var u=l.value.mechanism;if(u&&!1===u.handled){i=!0;break}}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}var d=t.user;if(!e.userAgent){var p=t.request?t.request.headers:{};for(var f in p)if("user-agent"===f.toLowerCase()){o=p[f];break}}e.update(mr(mr({},i&&{status:ai.Crashed}),{user:d,userAgent:o,errors:e.errors+Number(a||i)})),this.captureSession(e)},e.prototype._sendSession=function(e){this._getBackend().sendSession(e)},e.prototype._isClientProcessing=function(e){var t=this;return new jo((function(n){var r=0,o=setInterval((function(){0==t._processing?(clearInterval(o),n(!0)):(r+=1,e&&r>=e&&(clearInterval(o),n(!1)))}),1)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,n){var r=this,o=this.getOptions().normalizeDepth,i=void 0===o?3:o,a=mr(mr({},e),{event_id:e.event_id||(n&&n.event_id?n.event_id:to()),timestamp:e.timestamp||qo()});this._applyClientOptions(a),this._applyIntegrationsMetadata(a);var s=t;n&&n.captureContext&&(s=$o.clone(s).update(n.captureContext));var c=jo.resolve(a);return s&&(c=s.applyToEvent(a,n)),c.then((function(e){return"number"==typeof i&&i>0?r._normalizeEvent(e,i):e}))},e.prototype._normalizeEvent=function(e,t){if(!e)return null;var n=mr(mr(mr(mr(mr({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return mr(mr({},e),e.data&&{data:yo(e.data,t)})}))}),e.user&&{user:yo(e.user,t)}),e.contexts&&{contexts:yo(e.contexts,t)}),e.extra&&{extra:yo(e.extra,t)});return e.contexts&&e.contexts.trace&&(n.contexts.trace=e.contexts.trace),n},e.prototype._applyClientOptions=function(e){var t=this.getOptions(),n=t.environment,r=t.release,o=t.dist,i=t.maxValueLength,a=void 0===i?250:i;"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=Jr(e.message,a));var s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=Jr(s.value,a));var c=e.request;c&&c.url&&(c.url=Jr(c.url,a))},e.prototype._applyIntegrationsMetadata=function(e){var t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=_r(e.sdk.integrations||[],t))},e.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},e.prototype._captureEvent=function(e,t,n){return this._processEvent(e,t,n).then((function(e){return e.event_id}),(function(e){uo.error(e)}))},e.prototype._processEvent=function(e,t,n){var r=this,o=this.getOptions(),i=o.beforeSend,a=o.sampleRate;if(!this._isEnabled())return jo.reject(new $r("SDK not enabled, will not send event."));var s="transaction"===e.type;return!s&&"number"==typeof a&&Math.random()>a?jo.reject(new $r("Discarding event because it's not included in the random sample (sampling rate = "+a+")")):this._prepareEvent(e,n,t).then((function(e){if(null===e)throw new $r("An event processor returned null, will not send event.");if(t&&t.data&&!0===t.data.__sentry__||s||!i)return e;var n=i(e,t);if(void 0===n)throw new $r("`beforeSend` method has to return `null` or a valid event.");return Hr(n)?n.then((function(e){return e}),(function(e){throw new $r("beforeSend rejected with "+e)})):n})).then((function(e){if(null===e)throw new $r("`beforeSend` returned `null`, will not send event.");var t=n&&n.getSession&&n.getSession();return!s&&t&&r._updateSessionFromEvent(t,e),r._sendEvent(e),e})).then(null,(function(e){if(e instanceof $r)throw e;throw r.captureException(e,{data:{__sentry__:!0},originalException:e}),new $r("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))},e.prototype._process=function(e){var t=this;this._processing+=1,e.then((function(e){return t._processing-=1,e}),(function(e){return t._processing-=1,e}))},e}(),fi=function(){function e(){}return e.prototype.sendEvent=function(e){return jo.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:ci.Skipped})},e.prototype.close=function(e){return jo.resolve(!0)},e}(),hi=function(){function e(e){this._options=e,this._options.dsn||uo.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype.eventFromException=function(e,t){throw new $r("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,n){throw new $r("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){this._transport.sendEvent(e).then(null,(function(e){uo.error("Error while sending event: "+e)}))},e.prototype.sendSession=function(e){this._transport.sendSession?this._transport.sendSession(e).then(null,(function(e){uo.error("Error while sending session: "+e)})):uo.warn("Dropping session because custom transport doesn't implement sendSession")},e.prototype.getTransport=function(){return this._transport},e.prototype._setupTransport=function(){return new fi},e}();function mi(e){if(e.metadata&&e.metadata.sdk){var t=e.metadata.sdk;return{name:t.name,version:t.version}}}function gi(e,t){return t?(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=_r(e.sdk.integrations||[],t.integrations||[]),e.sdk.packages=_r(e.sdk.packages||[],t.packages||[]),e):e}function vi(e,t){var n=mi(t),r="aggregates"in e?"sessions":"session";return{body:JSON.stringify(mr({sent_at:(new Date).toISOString()},n&&{sdk:n}))+"\n"+JSON.stringify({type:r})+"\n"+JSON.stringify(e),type:r,url:t.getEnvelopeEndpointWithUrlEncodedAuth()}}function yi(e,t){var n=mi(t),r=e.type||"event",o="transaction"===r,i=e.debug_meta||{},a=i.transactionSampling,s=gr(i,["transactionSampling"]),c=a||{},l=c.method,u=c.rate;0===Object.keys(s).length?delete e.debug_meta:e.debug_meta=s;var d={body:JSON.stringify(n?gi(e,t.metadata.sdk):e),type:r,url:o?t.getEnvelopeEndpointWithUrlEncodedAuth():t.getStoreEndpointWithUrlEncodedAuth()};if(o){var p=JSON.stringify(mr({event_id:e.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}))+"\n"+JSON.stringify({type:e.type,sample_rates:[{id:l,rate:u}]})+"\n"+d.body;d.body=p}return d}var bi,xi=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){bi=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.__sentry_original__||this;return bi.apply(n,e)}},e.id="FunctionToString",e}(),_i=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],wi=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(){Go((function(t){var n=Zo();if(!n)return t;var r=n.getIntegration(e);if(r){var o=n.getClient(),i=o?o.getOptions():{},a="function"==typeof r._mergeOptions?r._mergeOptions(i):{};return"function"!=typeof r._shouldDropEvent?t:r._shouldDropEvent(t,a)?null:t}return t}))},e.prototype._shouldDropEvent=function(e,t){return this._isSentryError(e,t)?(uo.warn("Event dropped due to being internal Sentry Error.\nEvent: "+ro(e)),!0):this._isIgnoredError(e,t)?(uo.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+ro(e)),!0):this._isDeniedUrl(e,t)?(uo.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+ro(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0):!this._isAllowedUrl(e,t)&&(uo.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+ro(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0)},e.prototype._isSentryError=function(e,t){if(!t.ignoreInternal)return!1;try{return e&&e.exception&&e.exception.values&&e.exception.values[0]&&"SentryError"===e.exception.values[0].type||!1}catch(e){return!1}},e.prototype._isIgnoredError=function(e,t){return!(!t.ignoreErrors||!t.ignoreErrors.length)&&this._getPossibleEventMessages(e).some((function(e){return t.ignoreErrors.some((function(t){return Zr(e,t)}))}))},e.prototype._isDeniedUrl=function(e,t){if(!t.denyUrls||!t.denyUrls.length)return!1;var n=this._getEventFilterUrl(e);return!!n&&t.denyUrls.some((function(e){return Zr(n,e)}))},e.prototype._isAllowedUrl=function(e,t){if(!t.allowUrls||!t.allowUrls.length)return!0;var n=this._getEventFilterUrl(e);return!n||t.allowUrls.some((function(e){return Zr(n,e)}))},e.prototype._mergeOptions=function(e){return void 0===e&&(e={}),{allowUrls:_r(this._options.whitelistUrls||[],this._options.allowUrls||[],e.whitelistUrls||[],e.allowUrls||[]),denyUrls:_r(this._options.blacklistUrls||[],this._options.denyUrls||[],e.blacklistUrls||[],e.denyUrls||[]),ignoreErrors:_r(this._options.ignoreErrors||[],e.ignoreErrors||[],_i),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal}},e.prototype._getPossibleEventMessages=function(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},n=t.type,r=void 0===n?"":n,o=t.value,i=void 0===o?"":o;return[""+i,r+": "+i]}catch(t){return uo.error("Cannot extract message for event "+ro(e)),[]}return[]},e.prototype._getEventFilterUrl=function(e){try{if(e.stacktrace){var t=e.stacktrace.frames;return t&&t[t.length-1].filename||null}if(e.exception){var n=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return n&&n[n.length-1].filename||null}return null}catch(t){return uo.error("Cannot extract url for event "+ro(e)),null}},e.id="InboundFilters",e}(),Si=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ei=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ki=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ci=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ti=/\((\S*)(?::(\d+))(?::(\d+))\)/,Ni=/Minified React error #\d+;/i;function Ii(e){var t=null,n=0;e&&("number"==typeof e.framesToPop?n=e.framesToPop:Ni.test(e.message)&&(n=1));try{if(t=function(e){if(!e||!e.stacktrace)return null;for(var t,n=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,r=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,o=e.stacktrace.split("\n"),i=[],a=0;a<o.length;a+=2){var s=null;(t=n.exec(o[a]))?s={url:t[2],func:t[3],args:[],line:+t[1],column:null}:(t=r.exec(o[a]))&&(s={url:t[6],func:t[3]||t[4],args:t[5]?t[5].split(","):[],line:+t[1],column:+t[2]}),s&&(!s.func&&s.line&&(s.func="?"),i.push(s))}return i.length?{message:Ai(e),name:e.name,stack:i}:null}(e))return Oi(t,n)}catch(e){}try{if(t=function(e){if(!e||!e.stack)return null;for(var t,n,r,o=[],i=e.stack.split("\n"),a=0;a<i.length;++a){if(n=Si.exec(i[a])){var s=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(t=Ti.exec(n[2]))&&(n[2]=t[1],n[3]=t[2],n[4]=t[3]);var c=n[2]&&0===n[2].indexOf("address at ")?n[2].substr("address at ".length):n[2],l=n[1]||"?",u=-1!==l.indexOf("safari-extension"),d=-1!==l.indexOf("safari-web-extension");(u||d)&&(l=-1!==l.indexOf("@")?l.split("@")[0]:"?",c=u?"safari-extension:"+c:"safari-web-extension:"+c),r={url:c,func:l,args:s?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=ki.exec(i[a]))r={url:n[2],func:n[1]||"?",args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=Ei.exec(i[a])))continue;n[3]&&n[3].indexOf(" > eval")>-1&&(t=Ci.exec(n[3]))?(n[1]=n[1]||"eval",n[3]=t[1],n[4]=t[2],n[5]=""):0!==a||n[5]||void 0===e.columnNumber||(o[0].column=e.columnNumber+1),r={url:n[3],func:n[1]||"?",args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!r.func&&r.line&&(r.func="?"),o.push(r)}return o.length?{message:Ai(e),name:e.name,stack:o}:null}(e))return Oi(t,n)}catch(e){}return{message:Ai(e),name:e&&e.name,stack:[],failed:!0}}function Oi(e,t){try{return mr(mr({},e),{stack:e.stack.slice(t)})}catch(t){return e}}function Ai(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function Pi(e){var t=Ri(e.stack),n={type:e.name,value:e.message};return t&&t.length&&(n.stacktrace={frames:t}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function Bi(e){return{exception:{values:[Pi(e)]}}}function Ri(e){if(!e||!e.length)return[];var t=e,n=t[0].func||"",r=t[t.length-1].func||"";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((function(e){return{colno:null===e.column?void 0:e.column,filename:e.url||t[0].url,function:e.func||"?",in_app:!0,lineno:null===e.line?void 0:e.line}})).reverse()}function Fi(e,t,n){var r,o;if(void 0===n&&(n={}),Rr(e)&&e.error)return Bi(Ii(e=e.error));if(Fr(e)||(o=e,"[object DOMException]"===Object.prototype.toString.call(o))){var i=e,a=i.name||(Fr(i)?"DOMError":"DOMException"),s=i.message?a+": "+i.message:a;return io(r=zi(s,t,n),s),"code"in i&&(r.tags=mr(mr({},r.tags),{"DOMException.code":""+i.code})),r}return Br(e)?r=Bi(Ii(e)):jr(e)||Mr(e)?(ao(r=function(e,t,n){var r={exception:{values:[{type:Mr(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+bo(e)}]},extra:{__serialized__:go(e)}};if(t){var o=Ri(Ii(t).stack);r.stacktrace={frames:o}}return r}(e,t,n.rejection),{synthetic:!0}),r):(io(r=zi(e,t,n),""+e,void 0),ao(r,{synthetic:!0}),r)}function zi(e,t,n){void 0===n&&(n={});var r={message:e};if(n.attachStacktrace&&t){var o=Ri(Ii(t).stack);r.stacktrace={frames:o}}return r}var Li={event:"error",transaction:"transaction",session:"session",attachment:"attachment"},ji=function(){function e(e){this.options=e,this._buffer=new Mo(30),this._rateLimits={},this._api=new li(e.dsn,e._metadata),this.url=this._api.getStoreEndpointWithUrlEncodedAuth()}return e.prototype.sendEvent=function(e){throw new $r("Transport Class has to implement `sendEvent` method")},e.prototype.close=function(e){return this._buffer.drain(e)},e.prototype._handleResponse=function(e){var t=e.requestType,n=e.response,r=e.headers,o=e.resolve,i=e.reject,a=Tr.fromHttpCode(n.status);this._handleRateLimit(r)&&uo.warn("Too many requests, backing off until: "+this._disabledUntil(t)),a!==Tr.Success?i(n):o({status:a})},e.prototype._disabledUntil=function(e){var t=Li[e];return this._rateLimits[t]||this._rateLimits.all},e.prototype._isRateLimited=function(e){return this._disabledUntil(e)>new Date(Date.now())},e.prototype._handleRateLimit=function(e){var t,n,r,o,i=Date.now(),a=e["x-sentry-rate-limits"],s=e["retry-after"];if(a){try{for(var c=br(a.trim().split(",")),l=c.next();!l.done;l=c.next()){var u=l.value.split(":",2),d=parseInt(u[0],10),p=1e3*(isNaN(d)?60:d);try{for(var f=(r=void 0,br(u[1].split(";"))),h=f.next();!h.done;h=f.next()){var m=h.value;this._rateLimits[m||"all"]=new Date(i+p)}}catch(e){r={error:e}}finally{try{h&&!h.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return!0}return!!s&&(this._rateLimits.all=new Date(i+function(e,t){if(!t)return 6e4;var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+t);return isNaN(r)?6e4:r-e}(i,s)),!0)},e}(),Mi=function(e){function t(t,n){void 0===n&&(n=function(){var e,t,n=eo();if(wo(n.fetch))return n.fetch.bind(n);var r=n.document,o=n.fetch;if("function"==typeof(null===(e=r)||void 0===e?void 0:e.createElement))try{var i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i),(null===(t=i.contentWindow)||void 0===t?void 0:t.fetch)&&(o=i.contentWindow.fetch),r.head.removeChild(i)}catch(e){uo.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return o.bind(n)}());var r=e.call(this,t)||this;return r._fetch=n,r}return hr(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(yi(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(vi(e,this._api),e)},t.prototype._sendRequest=function(e,t){var n=this;if(this._isRateLimited(e.type))return Promise.reject({event:t,type:e.type,reason:"Transport locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429});var r={body:e.body,method:"POST",referrerPolicy:So()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(r,this.options.fetchParameters),void 0!==this.options.headers&&(r.headers=this.options.headers),this._buffer.add(new jo((function(t,o){n._fetch(e.url,r).then((function(r){var i={"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")};n._handleResponse({requestType:e.type,response:r,headers:i,resolve:t,reject:o})})).catch(o)})))},t}(ji),Di=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return hr(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(yi(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(vi(e,this._api),e)},t.prototype._sendRequest=function(e,t){var n=this;return this._isRateLimited(e.type)?Promise.reject({event:t,type:e.type,reason:"Transport locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429}):this._buffer.add(new jo((function(t,r){var o=new XMLHttpRequest;for(var i in o.onreadystatechange=function(){if(4===o.readyState){var i={"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")};n._handleResponse({requestType:e.type,response:o,headers:i,resolve:t,reject:r})}},o.open("POST",e.url),n.options.headers)n.options.headers.hasOwnProperty(i)&&o.setRequestHeader(i,n.options.headers[i]);o.send(e.body)})))},t}(ji),Hi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return hr(t,e),t.prototype.eventFromException=function(e,t){return function(e,t,n){var r=Fi(t,n&&n.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return ao(r,{handled:!0,type:"generic"}),r.level=Cr.Error,n&&n.event_id&&(r.event_id=n.event_id),jo.resolve(r)}(this._options,e,t)},t.prototype.eventFromMessage=function(e,t,n){return void 0===t&&(t=Cr.Info),function(e,t,n,r){void 0===n&&(n=Cr.Info);var o=zi(t,r&&r.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),jo.resolve(o)}(this._options,e,t,n)},t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t=mr(mr({},this._options.transportOptions),{dsn:this._options.dsn,_metadata:this._options._metadata});return this._options.transport?new this._options.transport(t):_o()?new Mi(t):new Di(t)},t}(hi),Ui=0;function qi(){return Ui>0}function Vi(){Ui+=1,setTimeout((function(){Ui-=1}))}function Wi(e,t,n){if(void 0===t&&(t={}),"function"!=typeof e)return e;try{if(e.__sentry__)return e;if(e.__sentry_wrapped__)return e.__sentry_wrapped__}catch(t){return e}var r=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var o=r.map((function(e){return Wi(e,t)}));return e.handleEvent?e.handleEvent.apply(this,o):e.apply(this,o)}catch(e){throw Vi(),ii((function(n){n.addEventProcessor((function(e){var n=mr({},e);return t.mechanism&&(io(n,void 0,void 0),ao(n,t.mechanism)),n.extra=mr(mr({},n.extra),{arguments:r}),n})),oi(e)})),e}};try{for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}catch(e){}e.prototype=e.prototype||{},r.prototype=e.prototype,Object.defineProperty(e,"__sentry_wrapped__",{enumerable:!1,value:r}),Object.defineProperties(r,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:e}});try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:function(){return e.name}})}catch(e){}return r}var $i=function(){function e(t){this.name=e.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=mr({onerror:!0,onunhandledrejection:!0},t)}return e.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(uo.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(uo.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},e.prototype._installGlobalOnErrorHandler=function(){var t=this;this._onErrorHandlerInstalled||(Oo({callback:function(n){var r=n.error,o=Zo(),i=o.getIntegration(e),a=r&&!0===r.__sentry_own_request__;if(i&&!qi()&&!a){var s=o.getClient(),c=Lr(r)?t._eventFromIncompleteOnError(n.msg,n.url,n.line,n.column):t._enhanceEventWithInitialFrame(Fi(r,void 0,{attachStacktrace:s&&s.getOptions().attachStacktrace,rejection:!1}),n.url,n.line,n.column);ao(c,{handled:!1,type:"onerror"}),o.captureEvent(c,{originalException:r})}},type:"error"}),this._onErrorHandlerInstalled=!0)},e.prototype._installGlobalOnUnhandledRejectionHandler=function(){var t=this;this._onUnhandledRejectionHandlerInstalled||(Oo({callback:function(n){var r=n;try{"reason"in n?r=n.reason:"detail"in n&&"reason"in n.detail&&(r=n.detail.reason)}catch(e){}var o=Zo(),i=o.getIntegration(e),a=r&&!0===r.__sentry_own_request__;if(!i||qi()||a)return!0;var s=o.getClient(),c=Lr(r)?t._eventFromRejectionWithPrimitive(r):Fi(r,void 0,{attachStacktrace:s&&s.getOptions().attachStacktrace,rejection:!0});c.level=Cr.Error,ao(c,{handled:!1,type:"onunhandledrejection"}),o.captureEvent(c,{originalException:r})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},e.prototype._eventFromIncompleteOnError=function(e,t,n,r){var o,i=Rr(e)?e.message:e;if(zr(i)){var a=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);a&&(o=a[1],i=a[2])}var s={exception:{values:[{type:o||"Error",value:i}]}};return this._enhanceEventWithInitialFrame(s,t,n,r)},e.prototype._eventFromRejectionWithPrimitive=function(e){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(e)}]}}},e.prototype._enhanceEventWithInitialFrame=function(e,t,n,r){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].stacktrace=e.exception.values[0].stacktrace||{},e.exception.values[0].stacktrace.frames=e.exception.values[0].stacktrace.frames||[];var o=isNaN(parseInt(r,10))?void 0:r,i=isNaN(parseInt(n,10))?void 0:n,a=zr(t)&&t.length>0?t:function(){try{return document.location.href}catch(e){return""}}();return 0===e.exception.values[0].stacktrace.frames.length&&e.exception.values[0].stacktrace.frames.push({colno:o,filename:a,function:"?",in_app:!0,lineno:i}),e},e.id="GlobalHandlers",e}(),Yi=["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"],Gi=function(){function e(t){this.name=e.id,this._options=mr({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}return e.prototype.setupOnce=function(){var e=eo();this._options.setTimeout&&ho(e,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&ho(e,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&ho(e,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&ho(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget&&(Array.isArray(this._options.eventTarget)?this._options.eventTarget:Yi).forEach(this._wrapEventTarget.bind(this))},e.prototype._wrapTimeFunction=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t[0];return t[0]=Wi(r,{mechanism:{data:{function:fo(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}},e.prototype._wrapRAF=function(e){return function(t){return e.call(this,Wi(t,{mechanism:{data:{function:"requestAnimationFrame",handler:fo(e)},handled:!0,type:"instrument"}}))}},e.prototype._wrapEventTarget=function(e){var t=eo(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(ho(n,"addEventListener",(function(t){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=Wi(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:fo(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.call(this,n,Wi(r,{mechanism:{data:{function:"addEventListener",handler:fo(r),target:e},handled:!0,type:"instrument"}}),o)}})),ho(n,"removeEventListener",(function(e){return function(t,n,r){var o,i=n;try{var a=null===(o=i)||void 0===o?void 0:o.__sentry_wrapped__;a&&e.call(this,t,a,r)}catch(e){}return e.call(this,t,i,r)}})))},e.prototype._wrapXHR=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this,o=["onload","onerror","onprogress","onreadystatechange"];return o.forEach((function(e){e in r&&"function"==typeof r[e]&&ho(r,e,(function(t){var n={mechanism:{data:{function:e,handler:fo(t)},handled:!0,type:"instrument"}};return t.__sentry_original__&&(n.mechanism.data.handler=fo(t.__sentry_original__)),Wi(t,n)}))})),e.apply(this,t)}},e.id="TryCatch",e}(),Xi=function(){function e(t){this.name=e.id,this._options=mr({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype.addSentryBreadcrumb=function(e){this._options.sentry&&Zo().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:ro(e)},{event:e})},e.prototype.setupOnce=function(){var e=this;this._options.console&&Oo({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._consoleBreadcrumb.apply(e,_r(t))},type:"console"}),this._options.dom&&Oo({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._domBreadcrumb.apply(e,_r(t))},type:"dom"}),this._options.xhr&&Oo({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._xhrBreadcrumb.apply(e,_r(t))},type:"xhr"}),this._options.fetch&&Oo({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._fetchBreadcrumb.apply(e,_r(t))},type:"fetch"}),this._options.history&&Oo({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._historyBreadcrumb.apply(e,_r(t))},type:"history"})},e.prototype._consoleBreadcrumb=function(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:Cr.fromString(e.level),message:Kr(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message="Assertion failed: "+(Kr(e.args.slice(1)," ")||"console.assert"),t.data.arguments=e.args.slice(1)}Zo().addBreadcrumb(t,{input:e.args,level:e.level})},e.prototype._domBreadcrumb=function(e){var t;try{t=e.event.target?qr(e.event.target):qr(e.event)}catch(e){t="<unknown>"}0!==t.length&&Zo().addBreadcrumb({category:"ui."+e.name,message:t},{event:e.event,name:e.name,global:e.global})},e.prototype._xhrBreadcrumb=function(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;var t=e.xhr.__sentry_xhr__||{},n=t.method,r=t.url,o=t.status_code,i=t.body;Zo().addBreadcrumb({category:"xhr",data:{method:n,url:r,status_code:o},type:"http"},{xhr:e.xhr,input:i})}},e.prototype._fetchBreadcrumb=function(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?Zo().addBreadcrumb({category:"fetch",data:e.fetchData,level:Cr.Error,type:"http"},{data:e.error,input:e.args}):Zo().addBreadcrumb({category:"fetch",data:mr(mr({},e.fetchData),{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))},e.prototype._historyBreadcrumb=function(e){var t=eo(),n=e.from,r=e.to,o=no(t.location.href),i=no(n),a=no(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}})},e.id="Breadcrumbs",e}(),Ji=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||"cause",this._limit=t.limit||5}return e.prototype.setupOnce=function(){Go((function(t,n){var r=Zo().getIntegration(e);return r?r._handler(t,n):t}))},e.prototype._handler=function(e,t){if(!(e.exception&&e.exception.values&&t&&Ur(t.originalException,Error)))return e;var n=this._walkErrorTree(t.originalException,this._key);return e.exception.values=_r(n,e.exception.values),e},e.prototype._walkErrorTree=function(e,t,n){if(void 0===n&&(n=[]),!Ur(e[t],Error)||n.length+1>=this._limit)return n;var r=Pi(Ii(e[t]));return this._walkErrorTree(e[t],t,_r([r],n))},e.id="LinkedErrors",e}(),Ki=eo(),Zi=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){Go((function(t){var n,r,o;if(Zo().getIntegration(e)){if(!Ki.navigator&&!Ki.location&&!Ki.document)return t;var i=(null===(n=t.request)||void 0===n?void 0:n.url)||(null===(r=Ki.location)||void 0===r?void 0:r.href),a=(Ki.document||{}).referrer,s=(Ki.navigator||{}).userAgent,c=mr(mr(mr({},null===(o=t.request)||void 0===o?void 0:o.headers),a&&{Referer:a}),s&&{"User-Agent":s}),l=mr(mr({},i&&{url:i}),{headers:c});return mr(mr({},t),{request:l})}return t}))},e.id="UserAgent",e}(),Qi=function(e){function t(t){return void 0===t&&(t={}),t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:"6.5.0"}],version:"6.5.0"},e.call(this,Hi,t)||this}return hr(t,e),t.prototype.showReportDialog=function(e){void 0===e&&(e={}),eo().document&&(this._isEnabled()?function(e){if(void 0===e&&(e={}),e.eventId)if(e.dsn){var t=document.createElement("script");t.async=!0,t.src=new li(e.dsn).getReportDialogEndpoint(e),e.onLoad&&(t.onload=e.onLoad),(document.head||document.body).appendChild(t)}else uo.error("Missing dsn option in showReportDialog call");else uo.error("Missing eventId option in showReportDialog call")}(mr(mr({},e),{dsn:e.dsn||this.getDsn()})):uo.error("Trying to call showReportDialog with Sentry Client disabled"))},t.prototype._prepareEvent=function(t,n,r){return t.platform=t.platform||"javascript",e.prototype._prepareEvent.call(this,t,n,r)},t.prototype._sendEvent=function(t){var n=this.getIntegration(Xi);n&&n.addSentryBreadcrumb(t),e.prototype._sendEvent.call(this,t)},t}(pi),ea=[new wi,new xi,new Gi,new Xi,new $i,new Ji,new Zi],ta={error:console.error},na=n(null),ra=na.Provider,oa=function(){var e=i(na);if(!e)throw new Error("useRootElement must be used withn a RootElementProvider");return e},ia=n({assetTypes:[],language:"en_US",onSuccess:function(e,t){var n=t.selectedFile;return console.log(e,n)},selectionMode:"MultiSelect",hideExternalAccess:!1}),aa=ia.Provider,sa=function(){return i(ia)},ca=function(){return sa().theme},la=function(){return sa().selectionMode};function ua(e,t,n){return{background:da(e,t,n),color:pa(e,t,n)}}function da(e,t,n){if("Primary"===t||"PrimarySm"===t)return void 0!==(null==e?void 0:e.colorButtonPrimaryActive)&&"Active"===n?e.colorButtonPrimaryActive:void 0===(null==e?void 0:e.colorButtonPrimaryHover)||"Hover"!==n&&"Active"!==n?void 0!==(null==e?void 0:e.colorButtonPrimary)?e.colorButtonPrimary:void 0:e.colorButtonPrimaryHover}function pa(e,t,n){if("Primary"===t||"PrimarySm"===t)return void 0!==(null==e?void 0:e.colorButtonPrimaryHoverLabel)&&"Hover"===n?e.colorButtonPrimaryHoverLabel:void 0!==(null==e?void 0:e.colorButtonPrimaryLabel)?e.colorButtonPrimaryLabel:void 0}function fa(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(Boolean).join(" ")}var ha=s((function(e,n){var o,i,a=null!==(o=e.kind)&&void 0!==o?o:"Flat",s=r(!1),c=s[0],l=s[1],u=r(!1),d=u[0],p=u[1],f=ca(),h=fa("rounded inline-flex items-center flex-shrink-0 text-md border border-transparent\n\tselect-none active:shadow-inner focus:outline-none disabled:pointer-events-none\n\ttransition-color",function(e){switch(e){case"Flat":case"Primary":case"Secondary":return"h-10 px-4";case"FlatSm":case"PrimarySm":case"SecondarySm":return"h-8 px-3"}}(a),function(e){switch(e){case"Primary":case"PrimarySm":return"text-ui-0 bg-brand-500 hover:bg-brand-600 active:bg-brand-700\n\t\t\t\tdisabled:opacity-60";case"Secondary":case"SecondarySm":return"text-body-500 bg-ui-400 hover:bg-ui-500 hover:text-body-500 active:bg-ui-700\n\t\t\t\tfocus:text-body-500 disabled:text-body-300 disabled:bg-ui-500";case"Flat":case"FlatSm":return"text-body-400 active:bg-ui-700 active:text-body-500\n\t\t\t\tfocus:bg-ui-500 focus:text-body-500 hover:bg-ui-500 hover:text-body-500\n\t\t\t\tdisabled:text-body-300"}}(a),function(e){switch(e){case"Primary":case"PrimarySm":return"focus:border-ui-900";case"Secondary":case"SecondarySm":return"border-ui-600 focus:border-ui-900 disabled:border-ui-500";case"Flat":case"FlatSm":return"focus:border-ui-700"}}(a),e.className),m=ua(f,a,function(e,t){return t?"Active":e?"Hover":"None"}(c,d));return t.createElement("button",{className:h,style:m,onMouseOver:function(){return l(!0)},onFocus:function(){return l(!0)},onMouseOut:function(){return l(!1)},onBlur:function(){return l(!1)},onMouseDown:function(){return p(!0)},onMouseUp:function(){return p(!1)},title:e.title,disabled:e.isDisabled,onClick:e.onClick,ref:n,"data-testid":null!==(i=e.testId)&&void 0!==i?i:"button",type:"button"},e.children)}));function ma(e){var t;return null!==(t=ga[e])&&void 0!==t?t:e}var ga={};function va(e){a((function(){var t=e.slice(0,2).toLowerCase();fetch("https://d8ejoa1fys2rk.cloudfront.net/5.0.5/modules/compactview/i18n/"+t+".json").then((function(e){return e.json()})).then((function(e){ga=e}))}),[e])}function ya(){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 ba(e){return t.createElement(t.Fragment,null,t.createElement(ya,null),t.createElement("h1",{className:"mt-10 text-2xl"},ma("Oops! Something went wrong")),t.createElement("span",{className:"mt-4 text-body-400"},ma("Please try again or get in contact with our customer support.")),t.createElement("div",{className:"mt-8"},t.createElement(ha,{kind:"Secondary",title:ma("Send report"),onClick:e.onClickSend,isDisabled:e.isReportSent},e.isReportSent?ma("Report sent"):ma("Send report...")),t.createElement(ha,{kind:"Primary",title:ma("Try again"),className:"ml-2",onClick:e.onClickRetry},ma("Try again"))))}var xa={exports:{}},_a={},wa="function"==typeof Symbol&&Symbol.for,Sa=wa?Symbol.for("react.element"):60103,Ea=wa?Symbol.for("react.portal"):60106,ka=wa?Symbol.for("react.fragment"):60107,Ca=wa?Symbol.for("react.strict_mode"):60108,Ta=wa?Symbol.for("react.profiler"):60114,Na=wa?Symbol.for("react.provider"):60109,Ia=wa?Symbol.for("react.context"):60110,Oa=wa?Symbol.for("react.async_mode"):60111,Aa=wa?Symbol.for("react.concurrent_mode"):60111,Pa=wa?Symbol.for("react.forward_ref"):60112,Ba=wa?Symbol.for("react.suspense"):60113,Ra=wa?Symbol.for("react.suspense_list"):60120,Fa=wa?Symbol.for("react.memo"):60115,za=wa?Symbol.for("react.lazy"):60116,La=wa?Symbol.for("react.block"):60121,ja=wa?Symbol.for("react.fundamental"):60117,Ma=wa?Symbol.for("react.responder"):60118,Da=wa?Symbol.for("react.scope"):60119;function Ha(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Sa:switch(e=e.type){case Oa:case Aa:case ka:case Ta:case Ca:case Ba:return e;default:switch(e=e&&e.$$typeof){case Ia:case Pa:case za:case Fa:case Na:return e;default:return t}}case Ea:return t}}}function Ua(e){return Ha(e)===Aa}function qa(e){function t(e,t,r){var o=t.trim().split(h);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=n(e,t[s],r).trim();break;default:var c=s=0;for(t=[];s<i;++s)for(var l=0;l<a;++l)t[c++]=n(e[l]+" ",o[s],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,i){var a=e+";",s=2*t+3*n+4*i;if(944===s){e=a.indexOf(":",9)+1;var c=a.substring(e,a.length-1).trim();return c=a.substring(0,e).trim()+c+";",1===I||2===I&&o(c,1)?"-webkit-"+c+c:c}if(0===I||2===I&&!o(a,1))return a;switch(s){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(k,"$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"+(c=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+c+a;case 1005:return p.test(a)?a.replace(d,":-webkit-")+a.replace(d,":-moz-")+a:a;case 1e3:switch(t=(c=a.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=a.replace(b,"tb");break;case 232:c=a.replace(b,"tb-rl");break;case 220:c=a.replace(b,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+c+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(c=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(c,"-webkit-"+c)+";"+a.replace(c,"-ms-"+c+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return c=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+c+"-ms-flex-"+c+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(w,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(w,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===E.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,i).replace(":fill-available",":stretch"):a.replace(c,"-webkit-"+c)+a.replace(c,"-moz-"+c.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+i&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+a}return a}function o(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),B(2!==t?r:r.replace(S,"$1"),n,t)}function i(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(_," or ($1)").substring(4):"("+t+")"}function a(e,t,n,r,o,i,a,s,l,u){for(var d,p=0,f=t;p<P;++p)switch(d=A[p].call(c,e,f,n,r,o,i,a,s,l,u)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function s(e){return void 0!==(e=e.prefix)&&(B=null,e?"function"!=typeof e?I=1:(I=2,B=e):I=0),s}function c(e,n){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<P){var c=a(-1,n,s,s,T,C,0,0,0,0);void 0!==c&&"string"==typeof c&&(n=c)}var d=function e(n,s,c,d,p){for(var f,h,m,b,_,w=0,S=0,E=0,k=0,A=0,B=0,F=m=f=0,z=0,L=0,j=0,M=0,D=c.length,H=D-1,U="",q="",V="",W="";z<D;){if(h=c.charCodeAt(z),z===H&&0!==S+k+E+w&&(0!==S&&(h=47===S?10:47),k=E=w=0,D++,H++),0===S+k+E+w){if(z===H&&(0<L&&(U=U.replace(u,"")),0<U.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:U+=c.charAt(z)}h=59}switch(h){case 123:for(f=(U=U.trim()).charCodeAt(0),m=1,M=++z;z<D;){switch(h=c.charCodeAt(z)){case 123:m++;break;case 125:m--;break;case 47:switch(h=c.charCodeAt(z+1)){case 42:case 47:e:{for(F=z+1;F<H;++F)switch(c.charCodeAt(F)){case 47:if(42===h&&42===c.charCodeAt(F-1)&&z+2!==F){z=F+1;break e}break;case 10:if(47===h){z=F+1;break e}}z=F}}break;case 91:h++;case 40:h++;case 34:case 39:for(;z++<H&&c.charCodeAt(z)!==h;);}if(0===m)break;z++}switch(m=c.substring(M,z),0===f&&(f=(U=U.replace(l,"").trim()).charCodeAt(0)),f){case 64:switch(0<L&&(U=U.replace(u,"")),h=U.charCodeAt(1)){case 100:case 109:case 115:case 45:L=s;break;default:L=O}if(M=(m=e(s,L,m,h,p+1)).length,0<P&&(_=a(3,m,L=t(O,U,j),s,T,C,M,h,p,d),U=L.join(""),void 0!==_&&0===(M=(m=_.trim()).length)&&(h=0,m="")),0<M)switch(h){case 115:U=U.replace(x,i);case 100:case 109:case 45:m=U+"{"+m+"}";break;case 107:m=(U=U.replace(g,"$1 $2"))+"{"+m+"}",m=1===I||2===I&&o("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=U+m,112===d&&(q+=m,m="")}else m="";break;default:m=e(s,t(s,U,j),m,d,p+1)}V+=m,m=j=L=F=f=0,U="",h=c.charCodeAt(++z);break;case 125:case 59:if(1<(M=(U=(0<L?U.replace(u,""):U).trim()).length))switch(0===F&&(f=U.charCodeAt(0),45===f||96<f&&123>f)&&(M=(U=U.replace(" ",":")).length),0<P&&void 0!==(_=a(1,U,s,n,T,C,q.length,d,p,d))&&0===(M=(U=_.trim()).length)&&(U="\0\0"),f=U.charCodeAt(0),h=U.charCodeAt(1),f){case 0:break;case 64:if(105===h||99===h){W+=U+c.charAt(z);break}default:58!==U.charCodeAt(M-1)&&(q+=r(U,f,h,U.charCodeAt(2)))}j=L=F=f=0,U="",h=c.charCodeAt(++z)}}switch(h){case 13:case 10:47===S?S=0:0===1+f&&107!==d&&0<U.length&&(L=1,U+="\0"),0<P*R&&a(0,U,s,n,T,C,q.length,d,p,d),C=1,T++;break;case 59:case 125:if(0===S+k+E+w){C++;break}default:switch(C++,b=c.charAt(z),h){case 9:case 32:if(0===k+w+S)switch(A){case 44:case 58:case 9:case 32:b="";break;default:32!==h&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===k+S+w&&(L=j=1,b="\f"+b);break;case 108:if(0===k+S+w+N&&0<F)switch(z-F){case 2:112===A&&58===c.charCodeAt(z-3)&&(N=A);case 8:111===B&&(N=B)}break;case 58:0===k+S+w&&(F=z);break;case 44:0===S+E+k+w&&(L=1,b+="\r");break;case 34:case 39:0===S&&(k=k===h?0:0===k?h:k);break;case 91:0===k+S+E&&w++;break;case 93:0===k+S+E&&w--;break;case 41:0===k+S+w&&E--;break;case 40:if(0===k+S+w){if(0===f)switch(2*A+3*B){case 533:break;default:f=1}E++}break;case 64:0===S+E+k+w+F+m&&(m=1);break;case 42:case 47:if(!(0<k+w+E))switch(S){case 0:switch(2*h+3*c.charCodeAt(z+1)){case 235:S=47;break;case 220:M=z,S=42}break;case 42:47===h&&42===A&&M+2!==z&&(33===c.charCodeAt(M+2)&&(q+=c.substring(M,z+1)),b="",S=0)}}0===S&&(U+=b)}B=A,A=h,z++}if(0<(M=q.length)){if(L=s,0<P&&void 0!==(_=a(2,q,L,n,T,C,M,d,p,d))&&0===(q=_).length)return W+q+V;if(q=L.join(",")+"{"+q+"}",0!=I*N){switch(2!==I||o(q,2)||(N=0),N){case 111:q=q.replace(y,":-moz-$1")+q;break;case 112:q=q.replace(v,"::-webkit-input-$1")+q.replace(v,"::-moz-$1")+q.replace(v,":-ms-input-$1")+q}N=0}}return W+q+V}(O,s,n,0,0);return 0<P&&void 0!==(c=a(-2,d,s,s,T,C,d.length,0,0,0))&&(d=c),N=0,C=T=1,d}var l=/^\0+/g,u=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,h=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,y=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,_=/([\s\S]*?);/g,w=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,E=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,C=1,T=1,N=0,I=1,O=[],A=[],P=0,B=null,R=0;return c.use=function e(t){switch(t){case void 0:case null:P=A.length=0;break;default:if("function"==typeof t)A[P++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else R=0|!!t}return e},c.set=s,void 0!==e&&s(e),c}_a.AsyncMode=Oa,_a.ConcurrentMode=Aa,_a.ContextConsumer=Ia,_a.ContextProvider=Na,_a.Element=Sa,_a.ForwardRef=Pa,_a.Fragment=ka,_a.Lazy=za,_a.Memo=Fa,_a.Portal=Ea,_a.Profiler=Ta,_a.StrictMode=Ca,_a.Suspense=Ba,_a.isAsyncMode=function(e){return Ua(e)||Ha(e)===Oa},_a.isConcurrentMode=Ua,_a.isContextConsumer=function(e){return Ha(e)===Ia},_a.isContextProvider=function(e){return Ha(e)===Na},_a.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Sa},_a.isForwardRef=function(e){return Ha(e)===Pa},_a.isFragment=function(e){return Ha(e)===ka},_a.isLazy=function(e){return Ha(e)===za},_a.isMemo=function(e){return Ha(e)===Fa},_a.isPortal=function(e){return Ha(e)===Ea},_a.isProfiler=function(e){return Ha(e)===Ta},_a.isStrictMode=function(e){return Ha(e)===Ca},_a.isSuspense=function(e){return Ha(e)===Ba},_a.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===ka||e===Aa||e===Ta||e===Ca||e===Ba||e===Ra||"object"==typeof e&&null!==e&&(e.$$typeof===za||e.$$typeof===Fa||e.$$typeof===Na||e.$$typeof===Ia||e.$$typeof===Pa||e.$$typeof===ja||e.$$typeof===Ma||e.$$typeof===Da||e.$$typeof===La)},_a.typeOf=Ha,xa.exports=_a;var Va={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},Wa=/^((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)-.*))$/,$a=function(e){var t={};return function(e){return void 0===t[e]&&(t[e]=(n=e,Wa.test(n)||111===n.charCodeAt(0)&&110===n.charCodeAt(1)&&n.charCodeAt(2)<91)),t[e];var n}}(),Ya=xa.exports,Ga={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Xa={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ja={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ka={};function Za(e){return Ya.isMemo(e)?Ja:Ka[e.$$typeof]||Ga}Ka[Ya.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ka[Ya.Memo]=Ja;var Qa=Object.defineProperty,es=Object.getOwnPropertyNames,ts=Object.getOwnPropertySymbols,ns=Object.getOwnPropertyDescriptor,rs=Object.getPrototypeOf,os=Object.prototype;function is(){return(is=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 as=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},ss=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!xa.exports.typeOf(e)},cs=Object.freeze([]),ls=Object.freeze({});function us(e){return"function"==typeof e}function ds(e){return e.displayName||e.name||"Component"}function ps(e){return e&&"string"==typeof e.styledComponentId}var fs="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",hs="undefined"!=typeof window&&"HTMLElement"in window,ms=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),gs={};function vs(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 ys=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&&vs(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),s=0,c=t.length;s<c;s++)this.tag.insertRule(a,t[s])&&(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}(),bs=new Map,xs=new Map,_s=1,ws=function(e){if(bs.has(e))return bs.get(e);for(;xs.has(_s);)_s++;var t=_s++;return bs.set(e,t),xs.set(t,e),t},Ss=function(e){return xs.get(e)},Es=function(e,t){bs.set(e,t),xs.set(t,e)},ks="style["+fs+'][data-styled-version="5.3.0"]',Cs=new RegExp("^"+fs+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Ts=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)},Ns=function(e,t){for(var n=t.innerHTML.split("/*!sc*/\n"),r=[],o=0,i=n.length;o<i;o++){var a=n[o].trim();if(a){var s=a.match(Cs);if(s){var c=0|parseInt(s[1],10),l=s[2];0!==c&&(Es(l,c),Ts(e,l,s[3]),e.getTag().insertRules(c,r)),r.length=0}else r.push(a)}}},Is=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(fs))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(fs,"active"),r.setAttribute("data-styled-version","5.3.0");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},Os=function(){function e(e){var t=this.element=Is(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}vs(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}(),As=function(){function e(e){var t=this.element=Is(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}(),Ps=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}(),Bs=hs,Rs={isServer:!hs,useCSSOMInjection:!ms},Fs=function(){function e(e,t,n){void 0===e&&(e=ls),void 0===t&&(t={}),this.options=is({},Rs,{},e),this.gs=t,this.names=new Map(n),!this.options.isServer&&hs&&Bs&&(Bs=!1,function(e){for(var t=document.querySelectorAll(ks),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(fs)&&(Ns(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return ws(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(is({},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 Ps(o):r?new Os(o):new As(o),new ys(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(ws(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(ws(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(ws(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=Ss(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(void 0!==a&&0!==s.length){var c=fs+".g"+o+'[id="'+i+'"]',l="";void 0!==a&&a.forEach((function(e){e.length>0&&(l+=e+",")})),r+=""+s+c+'{content:"'+l+'"}/*!sc*/\n'}}}return r}(this)},e}(),zs=/(a)(d)/gi,Ls=function(e){return String.fromCharCode(e+(e>25?39:97))};function js(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Ls(t%52)+n;return(Ls(t%52)+n).replace(zs,"$1-$2")}var Ms=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Ds=function(e){return Ms(5381,e)};function Hs(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(us(n)&&!ps(n))return!1}return!0}var Us=Ds("5.3.0"),qs=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Hs(e),this.componentId=t,this.baseHash=Ms(Us,t),this.baseStyle=n,Fs.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=sc(this.rules,e,t,n).join(""),a=js(Ms(this.baseHash,i.length)>>>0);if(!t.hasNameForId(r,a)){var s=n(i,"."+a,void 0,r);t.insertRules(r,a,s)}o.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,l=Ms(this.baseHash,n.hash),u="",d=0;d<c;d++){var p=this.rules[d];if("string"==typeof p)u+=p;else if(p){var f=sc(p,e,t,n),h=Array.isArray(f)?f.join(""):f;l=Ms(l,h+d),u+=h}}if(u){var m=js(l>>>0);if(!t.hasNameForId(r,m)){var g=n(u,"."+m,void 0,r);t.insertRules(r,m,g)}o.push(m)}}return o.join(" ")},e}(),Vs=/^\s*\/\/.*$/gm,Ws=[":","[",".","#"];function $s(e){var t,n,r,o,i=void 0===e?ls:e,a=i.options,s=void 0===a?ls:a,c=i.plugins,l=void 0===c?cs:c,u=new qa(s),d=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,s,c,l,u,d){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){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!==Ws.indexOf(i[n.length])||i.match(o)?e:"."+t};function h(e,i,a,s){void 0===s&&(s="&");var c=e.replace(Vs,""),l=i&&a?a+" "+i+" { "+c+" }":c;return t=s,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),u(a||!i?"":i,l)}return u.use([].concat(l,[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}}])),h.hash=l.length?l.reduce((function(e,t){return t.name||vs(15),Ms(e,t.name)}),5381).toString():"",h}var Ys=t.createContext(),Gs=t.createContext(),Xs=new Fs,Js=$s();function Ks(){return i(Ys)||Xs}function Zs(){return i(Gs)||Js}function Qs(e){var n=r(e.stylisPlugins),i=n[0],s=n[1],c=Ks(),l=o((function(){var t=c;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 $s({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 s=Object.prototype.hasOwnProperty.bind(t),c=0;c<i.length;c++){var l=i[c];if(!s(l))return!1;var u=e[l],d=t[l];if(!1===(o=void 0)||void 0===o&&u!==d)return!1}return!0})(i,e.stylisPlugins)||s(e.stylisPlugins)}),[e.stylisPlugins]),t.createElement(Ys.Provider,{value:l},t.createElement(Gs.Provider,{value:u},e.children))}var ec=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Js);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 vs(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=Js),this.name+e.hash},e}(),tc=/([A-Z])/,nc=/([A-Z])/g,rc=/^ms-/,oc=function(e){return"-"+e.toLowerCase()};function ic(e){return tc.test(e)?e.replace(nc,oc).replace(rc,"-ms-"):e}var ac=function(e){return null==e||!1===e||""===e};function sc(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=sc(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return ac(e)?"":ps(e)?"."+e.styledComponentId:us(e)?"function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t?e:sc(e(t),t,n,r):e instanceof ec?n?(e.inject(n,r),e.getName(r)):e:ss(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!ac(t[a])&&(ss(t[a])?i.push.apply(i,e(t[a],a)):us(t[a])?i.push(ic(a)+":",t[a],";"):i.push(ic(a)+": "+(r=a,null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in Va?String(o).trim():o+"px")+";"));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var c}function cc(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 us(e)||ss(e)?sc(as(cs,[e].concat(n))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:sc(as(e,n))}var lc=function(e,t,n){return void 0===n&&(n=ls),e.theme!==n.theme&&e.theme||t||n.theme},uc=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,dc=/(^-|-$)/g;function pc(e){return e.replace(uc,"-").replace(dc,"")}var fc=function(e){return js(Ds(e)>>>0)};function hc(e){return"string"==typeof e&&!0}var mc=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},gc=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function vc(e,t,n){var r=e[n];mc(t)&&mc(r)?yc(r,t):e[n]=t}function yc(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(mc(a))for(var s in a)gc(s)&&vc(e,a[s],s)}return e}var bc=t.createContext(),xc={};function _c(e,n,r){var o=ps(e),a=!hc(e),s=n.attrs,l=void 0===s?cs:s,u=n.componentId,d=void 0===u?function(e,t){var n="string"!=typeof e?"sc":pc(e);xc[n]=(xc[n]||0)+1;var r=n+"-"+fc("5.3.0"+n+xc[n]);return t?t+"-"+r:r}(n.displayName,n.parentComponentId):u,p=n.displayName,f=void 0===p?function(e){return hc(e)?"styled."+e:"Styled("+ds(e)+")"}(e):p,h=n.displayName&&n.componentId?pc(n.displayName)+"-"+n.componentId:n.componentId||d,m=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 qs(r,h,o?e.componentStyle:void 0),b=y.isStatic&&0===l.length,x=function(e,t){return function(e,t,n,r){var o=e.attrs,a=e.componentStyle,s=e.defaultProps,l=e.foldedComponentIds,u=e.shouldForwardProp,d=e.styledComponentId,p=e.target,f=function(e,t,n){void 0===e&&(e=ls);var r=is({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in us(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]}(lc(t,i(bc),s)||ls,t,o),h=f[0],m=f[1],g=function(e,t,n,r){var o=Ks(),i=Zs();return t?e.generateAndInjectStyles(ls,o,i):e.generateAndInjectStyles(n,o,i)}(a,r,h),v=n,y=m.$as||t.$as||m.as||t.as||p,b=hc(y),x=m!==t?is({},t,{},m):t,_={};for(var w in x)"$"!==w[0]&&"as"!==w&&("forwardedAs"===w?_.as=x[w]:(u?u(w,$a,y):!b||$a(w))&&(_[w]=x[w]));return t.style&&m.style!==t.style&&(_.style=is({},t.style,{},m.style)),_.className=Array.prototype.concat(l,d,g!==d?g:null,t.className,m.className).filter(Boolean).join(" "),_.ref=v,c(y,_)}(v,e,t,b)};return x.displayName=f,(v=t.forwardRef(x)).attrs=m,v.componentStyle=y,v.displayName=f,v.shouldForwardProp=g,v.foldedComponentIds=o?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):cs,v.styledComponentId=h,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+"-"+(hc(e)?e:pc(ds(e)));return _c(e,is({},o,{attrs:m,componentId:i}),r)},Object.defineProperty(v,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?yc({},e.defaultProps,t):t}}),v.toString=function(){return"."+v.styledComponentId},a&&function e(t,n,r){if("string"!=typeof n){if(os){var o=rs(n);o&&o!==os&&e(t,o,r)}var i=es(n);ts&&(i=i.concat(ts(n)));for(var a=Za(t),s=Za(n),c=0;c<i.length;++c){var l=i[c];if(!(Xa[l]||r&&r[l]||s&&s[l]||a&&a[l])){var u=ns(n,l);try{Qa(t,l,u)}catch(e){}}}}return t}(v,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),v}var wc=function(e){return function e(t,n,r){if(void 0===r&&(r=ls),!xa.exports.isValidElementType(n))return vs(1,String(n));var o=function(){return t(n,r,cc.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,n,is({},r,{},o))},o.attrs=function(o){return e(t,n,is({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o}(_c,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){wc[e]=wc(e)}));var Sc=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Hs(e),Fs.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var o=r(sc(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&&Fs.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Ec(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=cc.apply(void 0,[e].concat(r)),s="sc-global-"+fc(JSON.stringify(a)),c=new Sc(a,s);function d(e){var t=Ks(),n=Zs(),r=i(bc),o=l(t.allocateGSInstance(s)).current;return u((function(){return p(o,e,t,r,n),function(){return c.removeStyles(o,t)}}),[o,e,t,r,n]),null}function p(e,t,n,r,o){if(c.isStatic)c.renderStyles(e,gs,n,o);else{var i=is({},t,{theme:lc(t,r,d.defaultProps)});c.renderStyles(e,i,n,o)}}return t.memo(d)}function kc(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=cc.apply(void 0,[e].concat(n)).join(""),i=fc(o);return new ec(i,o)}let Cc=new Map,Tc=new Set;function Nc(){if("undefined"==typeof window)return;let e=t=>{let n=Cc.get(t.target);if(n&&(n.delete(t.propertyName),0===n.size&&(t.target.removeEventListener("transitioncancel",e),Cc.delete(t.target)),0===Cc.size)){for(let e of Tc)e();Tc.clear()}};document.body.addEventListener("transitionrun",t=>{let n=Cc.get(t.target);n||(n=new Set,Cc.set(t.target,n),t.target.addEventListener("transitioncancel",e)),n.add(t.propertyName)}),document.body.addEventListener("transitionend",e)}"undefined"!=typeof document&&("loading"!==document.readyState?Nc():document.addEventListener("DOMContentLoaded",Nc)),t.createContext(null).displayName="PressResponderContext";let Ic=null,Oc=new Set,Ac=!1,Pc=!1;const Bc={Tab:!0,Escape:!0};function Rc(e,t){for(let n of Oc)n(e,t)}function Fc(e){Pc=!0,function(e){return!(e.metaKey||("undefined"==typeof window||null==window.navigator||!/^Mac/.test(window.navigator.platform))&&e.altKey||e.ctrlKey)}(e)&&(Ic="keyboard",Rc("keyboard",e))}function zc(e){Ic="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Pc=!0,Rc("pointer",e))}function Lc(e){var t;(0===(t=e).mozInputSource&&t.isTrusted||0===t.detail&&!t.pointerType)&&(Pc=!0,Ic="virtual")}function jc(e){e.target!==window&&e.target!==document&&(Pc||(Ic="virtual",Rc("virtual",e)),Pc=!1)}function Mc(){Pc=!1}function Dc(){if("undefined"==typeof window||Ac)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Pc=!0,e.apply(this,arguments)},document.addEventListener("keydown",Fc,!0),document.addEventListener("keyup",Fc,!0),document.addEventListener("click",Lc,!0),window.addEventListener("focus",jc,!0),window.addEventListener("blur",Mc,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",zc,!0),document.addEventListener("pointermove",zc,!0),document.addEventListener("pointerup",zc,!0)):(document.addEventListener("mousedown",zc,!0),document.addEventListener("mousemove",zc,!0),document.addEventListener("mouseup",zc,!0)),Ac=!0}function Hc(){return"pointer"!==Ic}function Uc(e){void 0===e&&(e={}),Dc();let{isTextInput:t,autoFocus:n}=e,[o,i]=r(n||Hc());return a(()=>{let e=(e,n)=>{t&&"keyboard"===e&&n instanceof KeyboardEvent&&!Bc[n.key]||i(Hc())};return Oc.add(e),()=>{Oc.delete(e)}},[t]),{isFocusVisible:o}}"undefined"!=typeof document&&("loading"!==document.readyState?Dc():document.addEventListener("DOMContentLoaded",Dc));var qc={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Vc=e.createContext&&e.createContext(qc),Wc=function(){return(Wc=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}).apply(this,arguments)};function $c(t){return function(n){return e.createElement(Yc,Wc({attr:Wc({},t.attr)},n),function t(n){return n&&n.map((function(n,r){return e.createElement(n.tag,Wc({key:r},n.attr),t(n.child))}))}(t.child))}}function Yc(t){var n=function(n){var r,o=t.size||n.size||"1em";n.className&&(r=n.className),t.className&&(r=(r?r+" ":"")+t.className);var i=t.attr,a=t.title,s=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&&(n[r[o]]=e[r[o]])}return n}(t,["attr","title"]);return e.createElement("svg",Wc({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,i,s,{className:r,style:Wc({color:t.color||n.color},n.style,t.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),a&&e.createElement("title",null,a),t.children)};return void 0!==Vc?e.createElement(Vc.Consumer,null,(function(e){return n(e)})):n(qc)}var Gc=function(e){return $c({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{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)};Gc.displayName="MdAspectRatio";var Xc=function(e){return $c({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}}]})(e)};Xc.displayName="MdExitToApp";var Jc=function(e){return $c({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{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)};Jc.displayName="MdLabel";var Kc=function(e){return $c({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}}]})(e)};Kc.displayName="MdOpenInNew";var Zc=function(e){return $c({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.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)};Zc.displayName="MdSearch";var Qc=function(e){return $c({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{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)};Qc.displayName="MdVideocam";var el=function(e){return $c({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.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)};el.displayName="MdVolumeUp";var tl=function(e){return $c({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"}}]})(e)};tl.displayName="MdSort";var nl=function(e){return $c({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{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)};nl.displayName="MdInsertDriveFile";var rl=function(e){return $c({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{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)};rl.displayName="MdInsertPhoto";var ol=function(e){return $c({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{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)};ol.displayName="MdPhotoCamera";var il=function(e){return $c({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{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)};il.displayName="MdPhotoLibrary";var al=function(e){return $c({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3 17v2h6v-2H3zM3 5v2h10V5H3zm10 16v-2h8v-2h-8v-2h-2v6h2zM7 9v2H3v2h4v2h2V9H7zm14 4v-2H11v2h10zm-6-4h2V7h4V5h-4V3h-2v6z"}}]})(e)};al.displayName="MdTune";var sl=function(e){return $c({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M7 10l5 5 5-5z"}}]})(e)};sl.displayName="MdArrowDropDown";var cl=function(e){return $c({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{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)};cl.displayName="MdCancel";var ll=function(e){return $c({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}}]})(e)};ll.displayName="MdCheck";var ul=function(e){return $c({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}}]})(e)};ul.displayName="MdChevronLeft";var dl=function(e){return $c({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}}]})(e)};dl.displayName="MdChevronRight";var pl,fl=function(e){return $c({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{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)};fl.displayName="MdClose",function(e){e[e.ENTERING=0]="ENTERING",e[e.LEAVING=1]="LEAVING",e[e.IDLE=2]="IDLE"}(pl||(pl={}));var hl={exports:{}};
|
|
21
|
+
***************************************************************************** */var li=function(e,t){return(li=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function ui(e,t){function n(){this.constructor=e}li(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var di=function(){return(di=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}).apply(this,arguments)};function pi(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 fi(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function mi(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:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){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,s])}}}function hi(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function gi(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function vi(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(gi(arguments[t]));return e}function yi(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}var bi=n(null);function wi(e){var n=r({page:"assets"});return t.createElement(bi.Provider,{value:n},e.children)}function xi(){var e=i(bi);if(null===e)throw new Error("useRouter must be used with a RouterProvider");return e}var _i,Ei=n(null),Si={assets:"",collection:"",collections:"",isLoading:!1};function ki(e){var n=r(Si),i=n[0],s=n[1],c=xi()[0];function l(e,t){var n=""!==t;s((function(r){var o;return di(di({},r),((o={})[e]=t,o.isLoading=n,o))}))}function u(e){s((function(t){return di(di({},t),{isLoading:e})}))}function d(){s(Si)}a((function(){var t;l("assets",null!==(t=e.defaultValue)&&void 0!==t?t:"")}),[e.defaultValue]),a((function(){s((function(e){return di(di({},e),{collection:""})}))}),[c]);var p=o((function(){return di(di({},i),{setSearch:l,setIsLoading:u,clear:d})}),[i]);return t.createElement(Ei.Provider,{value:p},e.children)}function Ci(){var e=i(Ei);if(null===e)throw new Error("useSearchState must be used within a SearchStateContext");return e}function Ti(e){var t=Ci();return{value:t[e],isLoading:t.isLoading,setSearch:function(n){return t.setSearch(e,n)},setIsLoading:t.setIsLoading}}function Ni(){return"undefined"!=typeof __SENTRY_NO_DEBUG__&&!__SENTRY_BROWSER_BUNDLE__}function Ii(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function Pi(e,t){return e.require(t)}!function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(_i||(_i={}));var Oi={};function Ai(){return Ii()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:Oi}var Bi=Object.prototype.toString;function Fi(e){switch(Bi.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Ki(e,Error)}}function Li(e,t){return Bi.call(e)==="[object "+t+"]"}function zi(e){return Li(e,"ErrorEvent")}function Ri(e){return Li(e,"DOMError")}function Mi(e){return Li(e,"String")}function Di(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function ji(e){return Li(e,"Object")}function Hi(e){return"undefined"!=typeof Event&&Ki(e,Event)}function Ui(e){return"undefined"!=typeof Element&&Ki(e,Element)}function Vi(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function Ki(e,t){try{return e instanceof t}catch(e){return!1}}function $i(e,t){try{for(var n=e,r=[],o=0,i=0,a=" > ".length,s=void 0;n&&o++<5&&!("html"===(s=Wi(n,t))||o>1&&i+r.length*a+s.length>=80);)r.push(s),i+=s.length,n=n.parentNode;return r.reverse().join(" > ")}catch(e){return"<unknown>"}}function Wi(e,t){var n,r,o,i,a,s=e,c=[];if(!s||!s.tagName)return"";c.push(s.tagName.toLowerCase());var l=t&&t.length?t.filter((function(e){return s.getAttribute(e)})).map((function(e){return[e,s.getAttribute(e)]})):null;if(l&&l.length)l.forEach((function(e){c.push("["+e[0]+'="'+e[1]+'"]')}));else if(s.id&&c.push("#"+s.id),(n=s.className)&&Mi(n))for(r=n.split(/\s+/),a=0;a<r.length;a++)c.push("."+r[a]);var u=["type","name","title","alt"];for(a=0;a<u.length;a++)o=u[a],(i=s.getAttribute(o))&&c.push("["+o+'="'+i+'"]');return c.join("")}var qi=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(e,n)||(e[n]=t[n]);return e}),Yi=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return r.message=t,r.name=n.prototype.constructor.name,qi(r,n.prototype),r}return ui(t,e),t}(Error),Xi=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Gi(e,t){void 0===t&&(t=!1);var n=e.host,r=e.path,o=e.pass,i=e.port,a=e.projectId;return e.protocol+"://"+e.publicKey+(t&&o?":"+o:"")+"@"+n+(i?":"+i:"")+"/"+(r?r+"/":r)+a}function Ji(e){return"user"in e&&!("publicKey"in e)&&(e.publicKey=e.user),{user:e.publicKey||"",protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Zi(e){var t="string"==typeof e?function(e){var t=Xi.exec(e);if(!t)throw new Yi("Invalid Sentry Dsn: "+e);var n=gi(t.slice(1),6),r=n[0],o=n[1],i=n[2],a=void 0===i?"":i,s=n[3],c=n[4],l=void 0===c?"":c,u="",d=n[5],p=d.split("/");if(p.length>1&&(u=p.slice(0,-1).join("/"),d=p.pop()),d){var f=d.match(/^\d+/);f&&(d=f[0])}return Ji({host:s,pass:a,path:u,projectId:d,port:l,protocol:r,publicKey:o})}(e):Ji(e);return function(e){if(Ni()){var t=e.port,n=e.projectId,r=e.protocol;if(["protocol","publicKey","host","projectId"].forEach((function(t){if(!e[t])throw new Yi("Invalid Sentry Dsn: "+t+" missing")})),!n.match(/^\d+$/))throw new Yi("Invalid Sentry Dsn: Invalid projectId "+n);if(!function(e){return"http"===e||"https"===e}(r))throw new Yi("Invalid Sentry Dsn: Invalid protocol "+r);if(t&&isNaN(parseInt(t,10)))throw new Yi("Invalid Sentry Dsn: Invalid port "+t)}}(t),t}var Qi=["fatal","error","warning","log","info","debug","critical"],ea=Ai(),ta="Sentry Logger ";function na(e){var t=Ai();if(!("console"in t))return e();var n=t.console,r={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&n[e].__sentry_original__&&(r[e]=n[e],n[e]=n[e].__sentry_original__)}));var o=e();return Object.keys(r).forEach((function(e){n[e]=r[e]})),o}var ra=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&na((function(){ea.console.log(ta+"[Log]: "+e.join(" "))}))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&na((function(){ea.console.warn(ta+"[Warn]: "+e.join(" "))}))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&na((function(){ea.console.error(ta+"[Error]: "+e.join(" "))}))},e}();ea.__SENTRY__=ea.__SENTRY__||{};var oa=ea.__SENTRY__.logger||(ea.__SENTRY__.logger=new ra);function ia(e){if(!e.length)return[];var t=e,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((function(e){return di(di({},e),{filename:e.filename||t[0].filename,function:e.function||"?"})})).reverse()}function aa(e){try{return e&&"function"==typeof e&&e.name||"<anonymous>"}catch(e){return"<anonymous>"}}function sa(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function ca(e,t){if(!Array.isArray(e))return"";for(var n=[],r=0;r<e.length;r++){var o=e[r];try{n.push(String(o))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function la(e,t){return!!Mi(e)&&(Li(t,"RegExp")?t.test(e):"string"==typeof t&&-1!==e.indexOf(t))}function ua(e,t,n){if(t in e){var r=e[t],o=n(r);if("function"==typeof o)try{pa(o,r)}catch(e){}e[t]=o}}function da(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function pa(e,t){var n=t.prototype||{};e.prototype=t.prototype=n,da(e,"__sentry_original__",t)}function fa(e){return e.__sentry_original__}function ma(e){if(Fi(e)){var t=e,n={message:t.message,name:t.name,stack:t.stack};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}if(Hi(e)){var o=e,i={};i.type=o.type;try{i.target=Ui(o.target)?$i(o.target):Object.prototype.toString.call(o.target)}catch(e){i.target="<unknown>"}try{i.currentTarget=Ui(o.currentTarget)?$i(o.currentTarget):Object.prototype.toString.call(o.currentTarget)}catch(e){i.currentTarget="<unknown>"}for(var a in"undefined"!=typeof CustomEvent&&Ki(e,CustomEvent)&&(i.detail=o.detail),o)Object.prototype.hasOwnProperty.call(o,a)&&(i[a]=o[a]);return i}return e}function ha(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var r,o=va(e,t);return r=o,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(r))>n?ha(e,t-1,n):o}function ga(e,t){return"domain"===t&&e&&"object"==typeof e&&e._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!=typeof global&&e===global?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":ji(n=e)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+aa(e)+"]":"symbol"==typeof e?"["+String(e)+"]":"bigint"==typeof e?"[BigInt: "+String(e)+"]":e;var n}function va(e,t){try{return JSON.parse(JSON.stringify(e,(function(e,n){return function e(t,n,r,o){var i,a;if(void 0===r&&(r=1/0),void 0===o&&(i="function"==typeof WeakSet,a=i?new WeakSet:[],o=[function(e){if(i)return!!a.has(e)||(a.add(e),!1);for(var t=0;t<a.length;t++)if(a[t]===e)return!0;return a.push(e),!1},function(e){if(i)a.delete(e);else for(var t=0;t<a.length;t++)if(a[t]===e){a.splice(t,1);break}}]),0===r)return function(e){if("string"==typeof e)return e;var t=Object.prototype.toString.call(e);if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var n=ga(e);return Di(n)?n:t}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var s=ga(n,t);if(Di(s))return s;var c=ma(n),l=Array.isArray(n)?[]:{};if(o[0](n))return"[Circular ~]";for(var u in c)Object.prototype.hasOwnProperty.call(c,u)&&(l[u]=e(u,c[u],r-1,o));return o[1](n),l}(e,n,t)})))}catch(e){return"**non-serializable**"}}function ya(e,t){void 0===t&&(t=40);var n=Object.keys(ma(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return sa(n[0],t);for(var r=n.length;r>0;r--){var o=n.slice(0,r).join(", ");if(!(o.length>t))return r===n.length?o:sa(o,t)}return""}function ba(e){var t,n;if(ji(e)){var r=e,o={};try{for(var i=hi(Object.keys(r)),a=i.next();!a.done;a=i.next()){var s=a.value;void 0!==r[s]&&(o[s]=ba(r[s]))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o}return Array.isArray(e)?e.map(ba):e}function wa(){if(!("fetch"in Ai()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function xa(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function _a(){if(!wa())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}var Ea,Sa,ka,Ca=Ai(),Ta={},Na={};function Ia(e,t){Ta[e]=Ta[e]||[],Ta[e].push(t),function(e){if(!Na[e])switch(Na[e]=!0,e){case"console":"console"in Ca&&["debug","info","warn","error","log","assert"].forEach((function(e){e in Ca.console&&ua(Ca.console,e,(function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];Pa("console",{args:n,level:e}),t&&t.apply(Ca.console,n)}}))}));break;case"dom":!function(){if("document"in Ca){var e=Pa.bind(null,"dom"),t=Ba(e,!0);Ca.document.addEventListener("click",t,!1),Ca.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((function(t){var n=Ca[t]&&Ca[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(ua(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 s=Ba(e);a.handler=s,t.call(this,n,s,o)}a.refCount+=1}catch(e){}return t.call(this,n,r,o)}})),ua(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 Ca){var e=XMLHttpRequest.prototype;ua(e,"open",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this,o=t[1],i=r.__sentry_xhr__={method:Mi(t[0])?t[0].toUpperCase():t[0],url:t[1]};Mi(o)&&"POST"===i.method&&o.match(/sentry_key/)&&(r.__sentry_own_request__=!0);var a=function(){if(4===r.readyState){try{i.status_code=r.status}catch(e){}Pa("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:r})}};return"onreadystatechange"in r&&"function"==typeof r.onreadystatechange?ua(r,"onreadystatechange",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return a(),e.apply(r,t)}})):r.addEventListener("readystatechange",a),e.apply(r,t)}})),ua(e,"send",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return this.__sentry_xhr__&&void 0!==t[0]&&(this.__sentry_xhr__.body=t[0]),Pa("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}}();break;case"fetch":(function(){if(!wa())return!1;var e=Ai();if(xa(e.fetch))return!0;var t=!1,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=xa(r.contentWindow.fetch)),n.head.removeChild(r)}catch(e){Ni()&&oa.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t})()&&ua(Ca,"fetch",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r={args:t,fetchData:{method:Oa(t),url:Aa(t)},startTimestamp:Date.now()};return Pa("fetch",di({},r)),e.apply(Ca,t).then((function(e){return Pa("fetch",di(di({},r),{endTimestamp:Date.now(),response:e})),e}),(function(e){throw Pa("fetch",di(di({},r),{endTimestamp:Date.now(),error:e})),e}))}}));break;case"history":!function(){if(function(){var e=Ai(),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=Ca.onpopstate;Ca.onpopstate=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=Ca.location.href,o=Ea;if(Ea=r,Pa("history",{from:o,to:r}),e)try{return e.apply(this,t)}catch(e){}},ua(Ca.history,"pushState",t),ua(Ca.history,"replaceState",t)}function t(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.length>2?t[2]:void 0;if(r){var o=Ea,i=String(r);Ea=i,Pa("history",{from:o,to:i})}return e.apply(this,t)}}}();break;case"error":Fa=Ca.onerror,Ca.onerror=function(e,t,n,r,o){return Pa("error",{column:r,error:o,line:n,msg:e,url:t}),!!Fa&&Fa.apply(this,arguments)};break;case"unhandledrejection":La=Ca.onunhandledrejection,Ca.onunhandledrejection=function(e){return Pa("unhandledrejection",e),!La||La.apply(this,arguments)};break;default:oa.warn("unknown instrumentation type:",e)}}(e)}function Pa(e,t){var n,r;if(e&&Ta[e])try{for(var o=hi(Ta[e]||[]),i=o.next();!i.done;i=o.next()){var a=i.value;try{a(t)}catch(t){Ni()&&oa.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+aa(a)+"\nError: "+t)}}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}function Oa(e){return void 0===e&&(e=[]),"Request"in Ca&&Ki(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function Aa(e){return void 0===e&&(e=[]),"string"==typeof e[0]?e[0]:"Request"in Ca&&Ki(e[0],Request)?e[0].url:String(e[0])}function Ba(e,t){return void 0===t&&(t=!1),function(n){if(n&&ka!==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===Sa||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}(ka,n))&&(e({event:n,name:r,global:t}),ka=n),clearTimeout(Sa),Sa=Ca.setTimeout((function(){Sa=void 0}),1e3)}}}var Fa=null,La=null;function za(){var e=Ai(),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=function(e){for(var t=e.toString(16);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,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function Ra(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 Ma(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Da(e){var t=e.message,n=e.event_id;if(t)return t;var r=Ma(e);return r?r.type&&r.value?r.type+": "+r.value:r.type||r.value||n||"<unknown>":n||"<unknown>"}function ja(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 Ha(e,t){var n=Ma(e);if(n){var r=n.mechanism;if(n.mechanism=di(di(di({},{type:"generic",handled:!0}),r),t),t&&"data"in t){var o=di(di({},r&&r.data),t.data);n.mechanism.data=o}}}function Ua(e){if(e&&e.__sentry_captured__)return!0;try{da(e,"__sentry_captured__",!0)}catch(e){}return!1}function Va(e){return new $a((function(t){t(e)}))}function Ka(e){return new $a((function(t,n){n(e)}))}var $a=function(){function e(e){var t=this;this._state=0,this._handlers=[],this._resolve=function(e){t._setResult(1,e)},this._reject=function(e){t._setResult(2,e)},this._setResult=function(e,n){0===t._state&&(Vi(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._executeHandlers=function(){if(0!==t._state){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e[0]||(1===t._state&&e[1](t._value),2===t._state&&e[2](t._value),e[0]=!0)}))}};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.prototype.then=function(t,n){var r=this;return new e((function(e,o){r._handlers.push([!1,function(n){if(t)try{e(t(n))}catch(e){o(e)}else e(n)},function(t){if(n)try{e(n(t))}catch(e){o(e)}else o(t)}]),r._executeHandlers()}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,r){var o,i;return n.then((function(e){i=!1,o=e,t&&t()}),(function(e){i=!0,o=e,t&&t()})).then((function(){i?r(o):e(o)}))}))},e}();var Wa={nowSeconds:function(){return Date.now()/1e3}},qa=Ii()?function(){try{return Pi(module,"perf_hooks").performance}catch(e){return}}():function(){var e=Ai().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),Ya=void 0===qa?Wa:{nowSeconds:function(){return(qa.timeOrigin+qa.now())/1e3}},Xa=Wa.nowSeconds.bind(Wa),Ga=Ya.nowSeconds.bind(Ya),Ja=Ga,Za=function(){var e=Ai().performance;if(e&&e.now){var t=e.now(),n=Date.now(),r=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,o=r<36e5,i=e.timing&&e.timing.navigationStart,a="number"==typeof i?Math.abs(i+t-n):36e5;return o||a<36e5?r<=a?e.timeOrigin:i:n}}(),Qa=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}return e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=vi(t._breadcrumbs),n._tags=di({},t._tags),n._extra=di({},t._extra),n._contexts=di({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=vi(t._eventProcessors),n._requestSession=t._requestSession),n},e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},e.prototype.getUser=function(){return this._user},e.prototype.getRequestSession=function(){return this._requestSession},e.prototype.setRequestSession=function(e){return this._requestSession=e,this},e.prototype.setTags=function(e){return this._tags=di(di({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=di(di({},this._tags),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=di(di({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=di(di({},this._extra),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this.setTransactionName(e)},e.prototype.setContext=function(e,t){var n;return null===t?delete this._contexts[e]:this._contexts=di(di({},this._contexts),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.prototype.getTransaction=function(){var e=this.getSpan();return e&&e.transaction},e.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},e.prototype.getSession=function(){return this._session},e.prototype.update=function(t){if(!t)return this;if("function"==typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=di(di({},this._tags),t._tags),this._extra=di(di({},this._extra),t._extra),this._contexts=di(di({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):ji(t)&&(t=t,this._tags=di(di({},this._tags),t.tags),this._extra=di(di({},this._extra),t.extra),this._contexts=di(di({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this},e.prototype.clear=function(){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},e.prototype.addBreadcrumb=function(e,t){var n="number"==typeof t?Math.min(t,100):100;if(n<=0)return this;var r=di({timestamp:Xa()},e);return this._breadcrumbs=vi(this._breadcrumbs,[r]).slice(-n),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){if(this._extra&&Object.keys(this._extra).length&&(e.extra=di(di({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=di(di({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=di(di({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=di(di({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=di({trace:this._span.getTraceContext()},e.contexts);var n=this._span.transaction&&this._span.transaction.name;n&&(e.tags=di({transaction:n},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=vi(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata=this._sdkProcessingMetadata,this._notifyEventProcessors(vi(es(),this._eventProcessors),e,t)},e.prototype.setSDKProcessingMetadata=function(e){return this._sdkProcessingMetadata=di(di({},this._sdkProcessingMetadata),e),this},e.prototype._notifyEventProcessors=function(e,t,n,r){var o=this;return void 0===r&&(r=0),new $a((function(i,a){var s=e[r];if(null===t||"function"!=typeof s)i(t);else{var c=s(di({},t),n);Vi(c)?c.then((function(t){return o._notifyEventProcessors(e,t,n,r+1).then(i)})).then(null,a):o._notifyEventProcessors(e,c,n,r+1).then(i).then(null,a)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)},e.prototype._applyFingerprint=function(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},e}();function es(){var e=Ai();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function ts(e){es().push(e)}var ns=function(){function e(e){this.errors=0,this.sid=za(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var t=Ga();this.timestamp=t,this.started=t,e&&this.update(e)}return e.prototype.update=function(e){if(void 0===e&&(e={}),e.user&&(!this.ipAddress&&e.user.ip_address&&(this.ipAddress=e.user.ip_address),this.did||e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||Ga(),e.ignoreDuration&&(this.ignoreDuration=e.ignoreDuration),e.sid&&(this.sid=32===e.sid.length?e.sid:za()),void 0!==e.init&&(this.init=e.init),!this.did&&e.did&&(this.did=""+e.did),"number"==typeof e.started&&(this.started=e.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof e.duration)this.duration=e.duration;else{var t=this.timestamp-this.started;this.duration=t>=0?t:0}e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),!this.ipAddress&&e.ipAddress&&(this.ipAddress=e.ipAddress),!this.userAgent&&e.userAgent&&(this.userAgent=e.userAgent),"number"==typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):"ok"===this.status?this.update({status:"exited"}):this.update()},e.prototype.toJSON=function(){return ba({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})},e}(),rs=function(){function e(e,t,n){void 0===t&&(t=new Qa),void 0===n&&(n=4),this._version=n,this._stack=[{}],this.getStackTop().scope=t,e&&this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this._version<e},e.prototype.bindClient=function(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()},e.prototype.pushScope=function(){var e=Qa.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e},e.prototype.popScope=function(){return!(this.getStack().length<=1||!this.getStack().pop())},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var n=this._lastEventId=za(),r=t;if(!t){var o=void 0;try{throw new Error("Sentry syntheticException")}catch(e){o=e}r={originalException:e,syntheticException:o}}return this._invokeClient("captureException",e,di(di({},r),{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var r=this._lastEventId=za(),o=n;if(!n){var i=void 0;try{throw new Error(e)}catch(e){i=e}o={originalException:e,syntheticException:i}}return this._invokeClient("captureMessage",e,t,di(di({},o),{event_id:r})),r},e.prototype.captureEvent=function(e,t){var n=za();return"transaction"!==e.type&&(this._lastEventId=n),this._invokeClient("captureEvent",e,di(di({},t),{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop(),r=n.scope,o=n.client;if(r&&o){var i=o.getOptions&&o.getOptions()||{},a=i.beforeBreadcrumb,s=void 0===a?null:a,c=i.maxBreadcrumbs,l=void 0===c?100:c;if(!(l<=0)){var u=Xa(),d=di({timestamp:u},e),p=s?na((function(){return s(d,t)})):d;null!==p&&r.addBreadcrumb(p,l)}}},e.prototype.setUser=function(e){var t=this.getScope();t&&t.setUser(e)},e.prototype.setTags=function(e){var t=this.getScope();t&&t.setTags(e)},e.prototype.setExtras=function(e){var t=this.getScope();t&&t.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getScope();n&&n.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getScope();n&&n.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getScope();n&&n.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop(),n=t.scope,r=t.client;n&&r&&e(n)},e.prototype.run=function(e){var t=is(this);try{e(this)}finally{is(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return oa.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e){return this._callExtensionMethod("startSpan",e)},e.prototype.startTransaction=function(e,t){return this._callExtensionMethod("startTransaction",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype.captureSession=function(e){if(void 0===e&&(e=!1),e)return this.endSession();this._sendSessionUpdate()},e.prototype.endSession=function(){var e=this.getStackTop(),t=e&&e.scope,n=t&&t.getSession();n&&n.close(),this._sendSessionUpdate(),t&&t.setSession()},e.prototype.startSession=function(e){var t=this.getStackTop(),n=t.scope,r=t.client,o=r&&r.getOptions()||{},i=o.release,a=o.environment,s=(Ai().navigator||{}).userAgent,c=new ns(di(di(di({release:i,environment:a},n&&{user:n.getUser()}),s&&{userAgent:s}),e));if(n){var l=n.getSession&&n.getSession();l&&"ok"===l.status&&l.update({status:"exited"}),this.endSession(),n.setSession(c)}return c},e.prototype._sendSessionUpdate=function(){var e=this.getStackTop(),t=e.scope,n=e.client;if(t){var r=t.getSession&&t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}},e.prototype._invokeClient=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.getStackTop(),i=o.scope,a=o.client;a&&a[e]&&(t=a)[e].apply(t,vi(n,[i]))},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=os(),o=r.__SENTRY__;if(o&&o.extensions&&"function"==typeof o.extensions[e])return o.extensions[e].apply(this,t);oa.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function os(){var e=Ai();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function is(e){var t=os(),n=cs(t);return ls(t,e),n}function as(){var e=os();return ss(e)&&!cs(e).isOlderThan(4)||ls(e,new rs),Ii()?function(e){try{var t=os().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return cs(e);if(!ss(n)||cs(n).isOlderThan(4)){var r=cs(e).getStackTop();ls(n,new rs(r.client,Qa.clone(r.scope)))}return cs(n)}catch(t){return cs(e)}}(e):cs(e)}function ss(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function cs(e){return e&&e.__SENTRY__&&e.__SENTRY__.hub||(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=new rs),e.__SENTRY__.hub}function ls(e,t){return!!e&&(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=t,!0)}function us(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=as();if(r&&r[e])return r[e].apply(r,vi(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}function ds(e,t){var n;try{throw new Error("Sentry syntheticException")}catch(e){n=e}return us("captureException",e,{captureContext:t,originalException:e,syntheticException:n})}function ps(e){us("withScope",e)}function fs(e){var t=e.protocol?e.protocol+":":"",n=e.port?":"+e.port:"";return t+"//"+e.host+n+(e.path?"/"+e.path:"")+"/api/"}function ms(e,t){return""+fs(e)+e.projectId+"/"+t+"/"}function hs(e){return t={sentry_key:e.publicKey,sentry_version:"7"},Object.keys(t).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])})).join("&");var t}function gs(e){return function(e){return ms(e,"store")}(e)+"?"+hs(e)}function vs(e,t){return t||function(e){return ms(e,"envelope")}(e)+"?"+hs(e)}var ys=[];function bs(e){return e.reduce((function(e,t){return e.every((function(e){return t.name!==e.name}))&&e.push(t),e}),[])}var ws="Not capturing exception because it's already been captured.",xs=function(){function e(e,t){this._integrations={},this._numProcessing=0,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=Zi(t.dsn))}return e.prototype.captureException=function(e,t,n){var r=this;if(!Ua(e)){var o=t&&t.event_id;return this._process(this._getBackend().eventFromException(e,t).then((function(e){return r._captureEvent(e,t,n)})).then((function(e){o=e}))),o}oa.log(ws)},e.prototype.captureMessage=function(e,t,n,r){var o=this,i=n&&n.event_id,a=Di(e)?this._getBackend().eventFromMessage(String(e),t,n):this._getBackend().eventFromException(e,n);return this._process(a.then((function(e){return o._captureEvent(e,n,r)})).then((function(e){i=e}))),i},e.prototype.captureEvent=function(e,t,n){if(!(t&&t.originalException&&Ua(t.originalException))){var r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((function(e){r=e}))),r}oa.log(ws)},e.prototype.captureSession=function(e){this._isEnabled()?"string"!=typeof e.release?Ni()&&oa.warn("Discarded session because of missing or non-string release"):(this._sendSession(e),e.update({init:!1})):Ni()&&oa.warn("SDK not enabled, will not capture session.")},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.getTransport=function(){return this._getBackend().getTransport()},e.prototype.flush=function(e){var t=this;return this._isClientDoneProcessing(e).then((function(n){return t.getTransport().close(e).then((function(e){return n&&e}))}))},e.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))},e.prototype.setupIntegrations=function(){var e,t;this._isEnabled()&&!this._integrations.initialized&&(this._integrations=(e=this._options,t={},function(e){var t=e.defaultIntegrations&&vi(e.defaultIntegrations)||[],n=e.integrations,r=vi(bs(t));Array.isArray(n)?r=vi(r.filter((function(e){return n.every((function(t){return t.name!==e.name}))})),bs(n)):"function"==typeof n&&(r=n(r),r=Array.isArray(r)?r:[r]);var o=r.map((function(e){return e.name}));return-1!==o.indexOf("Debug")&&r.push.apply(r,vi(r.splice(o.indexOf("Debug"),1))),r}(e).forEach((function(e){t[e.name]=e,function(e){-1===ys.indexOf(e.name)&&(e.setupOnce(ts,as),ys.push(e.name),oa.log("Integration installed: "+e.name))}(e)})),da(t,"initialized",!0),t))},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return oa.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._updateSessionFromEvent=function(e,t){var n,r,o=!1,i=!1,a=t.exception&&t.exception.values;if(a){i=!0;try{for(var s=hi(a),c=s.next();!c.done;c=s.next()){var l=c.value.mechanism;if(l&&!1===l.handled){o=!0;break}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}}var u="ok"===e.status;(u&&0===e.errors||u&&o)&&(e.update(di(di({},o&&{status:"crashed"}),{errors:e.errors||Number(i||o)})),this.captureSession(e))},e.prototype._sendSession=function(e){this._getBackend().sendSession(e)},e.prototype._isClientDoneProcessing=function(e){var t=this;return new $a((function(n){var r=0,o=setInterval((function(){0==t._numProcessing?(clearInterval(o),n(!0)):(r+=1,e&&r>=e&&(clearInterval(o),n(!1)))}),1)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,n){var r=this,o=this.getOptions().normalizeDepth,i=void 0===o?3:o,a=di(di({},e),{event_id:e.event_id||(n&&n.event_id?n.event_id:za()),timestamp:e.timestamp||Xa()});this._applyClientOptions(a),this._applyIntegrationsMetadata(a);var s=t;n&&n.captureContext&&(s=Qa.clone(s).update(n.captureContext));var c=Va(a);return s&&(c=s.applyToEvent(a,n)),c.then((function(e){return e&&(e.sdkProcessingMetadata=di(di({},e.sdkProcessingMetadata),{normalizeDepth:va(i)})),"number"==typeof i&&i>0?r._normalizeEvent(e,i):e}))},e.prototype._normalizeEvent=function(e,t){if(!e)return null;var n=di(di(di(di(di({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return di(di({},e),e.data&&{data:va(e.data,t)})}))}),e.user&&{user:va(e.user,t)}),e.contexts&&{contexts:va(e.contexts,t)}),e.extra&&{extra:va(e.extra,t)});return e.contexts&&e.contexts.trace&&(n.contexts.trace=e.contexts.trace),e.sdkProcessingMetadata=di(di({},e.sdkProcessingMetadata),{baseClientNormalized:!0}),n},e.prototype._applyClientOptions=function(e){var t=this.getOptions(),n=t.environment,r=t.release,o=t.dist,i=t.maxValueLength,a=void 0===i?250:i;"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=sa(e.message,a));var s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=sa(s.value,a));var c=e.request;c&&c.url&&(c.url=sa(c.url,a))},e.prototype._applyIntegrationsMetadata=function(e){var t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=vi(e.sdk.integrations||[],t))},e.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},e.prototype._captureEvent=function(e,t,n){return this._processEvent(e,t,n).then((function(e){return e.event_id}),(function(e){oa.error(e)}))},e.prototype._processEvent=function(e,t,n){var r=this,o=this.getOptions(),i=o.beforeSend,a=o.sampleRate,s=this.getTransport();function c(e,t){s.recordLostEvent&&s.recordLostEvent(e,t)}if(!this._isEnabled())return Ka(new Yi("SDK not enabled, will not capture event."));var l="transaction"===e.type;return!l&&"number"==typeof a&&Math.random()>a?(c("sample_rate","event"),Ka(new Yi("Discarding event because it's not included in the random sample (sampling rate = "+a+")"))):this._prepareEvent(e,n,t).then((function(n){if(null===n)throw c("event_processor",e.type||"event"),new Yi("An event processor returned null, will not send event.");return t&&t.data&&!0===t.data.__sentry__||l||!i?n:function(e){var t="`beforeSend` method has to return `null` or a valid event.";if(Vi(e))return e.then((function(e){if(!ji(e)&&null!==e)throw new Yi(t);return e}),(function(e){throw new Yi("beforeSend rejected with "+e)}));if(!ji(e)&&null!==e)throw new Yi(t);return e}(i(n,t))})).then((function(t){if(null===t)throw c("before_send",e.type||"event"),new Yi("`beforeSend` returned `null`, will not send event.");var o=n&&n.getSession&&n.getSession();return!l&&o&&r._updateSessionFromEvent(o,t),r._sendEvent(t),t})).then(null,(function(e){if(e instanceof Yi)throw e;throw r.captureException(e,{data:{__sentry__:!0},originalException:e}),new Yi("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))},e.prototype._process=function(e){var t=this;this._numProcessing+=1,e.then((function(e){return t._numProcessing-=1,e}),(function(e){return t._numProcessing-=1,e}))},e}(),_s=function(){function e(){}return e.prototype.sendEvent=function(e){return Va({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})},e.prototype.close=function(e){return Va(!0)},e}(),Es=function(){function e(e){this._options=e,this._options.dsn||oa.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype.eventFromException=function(e,t){throw new Yi("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,n){throw new Yi("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){this._transport.sendEvent(e).then(null,(function(e){Ni()&&oa.error("Error while sending event: "+e)}))},e.prototype.sendSession=function(e){this._transport.sendSession?this._transport.sendSession(e).then(null,(function(e){Ni()&&oa.error("Error while sending session: "+e)})):Ni()&&oa.warn("Dropping session because custom transport doesn't implement sendSession")},e.prototype.getTransport=function(){return this._transport},e.prototype._setupTransport=function(){return new _s},e}();function Ss(e){if(e.metadata&&e.metadata.sdk){var t=e.metadata.sdk;return{name:t.name,version:t.version}}}var ks,Cs=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){ks=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=fa(this)||this;return ks.apply(n,e)}},e.id="FunctionToString",e}(),Ts=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Ns=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(){ts((function(t){var n=as();if(!n)return t;var r=n.getIntegration(e);if(r){var o=n.getClient(),i=o?o.getOptions():{},a="function"==typeof r._mergeOptions?r._mergeOptions(i):{};return"function"!=typeof r._shouldDropEvent?t:r._shouldDropEvent(t,a)?null:t}return t}))},e.prototype._shouldDropEvent=function(e,t){return this._isSentryError(e,t)?(Ni()&&oa.warn("Event dropped due to being internal Sentry Error.\nEvent: "+Da(e)),!0):this._isIgnoredError(e,t)?(Ni()&&oa.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+Da(e)),!0):this._isDeniedUrl(e,t)?(Ni()&&oa.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+Da(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0):!this._isAllowedUrl(e,t)&&(Ni()&&oa.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+Da(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0)},e.prototype._isSentryError=function(e,t){if(!t.ignoreInternal)return!1;try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1},e.prototype._isIgnoredError=function(e,t){return!(!t.ignoreErrors||!t.ignoreErrors.length)&&this._getPossibleEventMessages(e).some((function(e){return t.ignoreErrors.some((function(t){return la(e,t)}))}))},e.prototype._isDeniedUrl=function(e,t){if(!t.denyUrls||!t.denyUrls.length)return!1;var n=this._getEventFilterUrl(e);return!!n&&t.denyUrls.some((function(e){return la(n,e)}))},e.prototype._isAllowedUrl=function(e,t){if(!t.allowUrls||!t.allowUrls.length)return!0;var n=this._getEventFilterUrl(e);return!n||t.allowUrls.some((function(e){return la(n,e)}))},e.prototype._mergeOptions=function(e){return void 0===e&&(e={}),{allowUrls:vi(this._options.whitelistUrls||[],this._options.allowUrls||[],e.whitelistUrls||[],e.allowUrls||[]),denyUrls:vi(this._options.blacklistUrls||[],this._options.denyUrls||[],e.blacklistUrls||[],e.denyUrls||[]),ignoreErrors:vi(this._options.ignoreErrors||[],e.ignoreErrors||[],Ts),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal}},e.prototype._getPossibleEventMessages=function(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},n=t.type,r=void 0===n?"":n,o=t.value,i=void 0===o?"":o;return[""+i,r+": "+i]}catch(t){return Ni()&&oa.error("Cannot extract message for event "+Da(e)),[]}return[]},e.prototype._getLastValidUrl=function(e){void 0===e&&(e=[]);for(var t=e.length-1;t>=0;t--){var n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null},e.prototype._getEventFilterUrl=function(e){try{if(e.stacktrace)return this._getLastValidUrl(e.stacktrace.frames);var t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?this._getLastValidUrl(t):null}catch(t){return Ni()&&oa.error("Cannot extract url for event "+Da(e)),null}},e.id="InboundFilters",e}();function Is(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 Ps=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Os=/\((\S*)(?::(\d+))(?::(\d+))\)/,As=function(e){var t=Ps.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){var n=Os.exec(t[2]);n&&(t[2]=n[1],t[3]=n[2],t[4]=n[3])}var r=gi(Us(t[1]||"?",t[2]),2),o=r[0];return Is(r[1],o,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},Bs=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Fs=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ls=function(e){var t,n=Bs.exec(e);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){var r=Fs.exec(n[3]);r&&(n[1]=n[1]||"eval",n[3]=r[1],n[4]=r[2],n[5]="")}var o=n[3],i=n[1]||"?";return i=(t=gi(Us(i,o),2))[0],Is(o=t[1],i,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}},zs=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Rs=function(e){var t=zs.exec(e);return t?Is(t[2],t[1]||"?",+t[3],t[4]?+t[4]:void 0):void 0},Ms=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,Ds=function(e){var t=Ms.exec(e);return t?Is(t[2],t[3]||"?",+t[1]):void 0},js=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,Hs=function(e){var t=js.exec(e);return t?Is(t[5],t[3]||t[4]||"?",+t[1],+t[2]):void 0},Us=function(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]};function Vs(e){var t=$s(e),n={type:e&&e.name,value:qs(e)};return t&&t.length&&(n.stacktrace={frames:t}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function Ks(e){return{exception:{values:[Vs(e)]}}}function $s(e){var t=e.stacktrace||e.stack||"",n=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(Ws.test(e.message))return 1}return 0}(e);try{return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t,n){var r,o,i,a;void 0===n&&(n=0);var s=[];try{for(var c=hi(t.split("\n").slice(n)),l=c.next();!l.done;l=c.next()){var u=l.value;try{for(var d=(i=void 0,hi(e)),p=d.next();!p.done;p=d.next()){var f=(0,p.value)(u);if(f){s.push(f);break}}}catch(e){i={error:e}}finally{try{p&&!p.done&&(a=d.return)&&a.call(d)}finally{if(i)throw i.error}}}}catch(e){r={error:e}}finally{try{l&&!l.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}return ia(s)}}(Ds,Hs,As,Rs,Ls)(t,n)}catch(e){}return[]}var Ws=/Minified React error #\d+;/i;function qs(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function Ys(e,t,n){var r;if(void 0===n&&(n={}),zi(e)&&e.error)return Ks(e.error);if(Ri(e)||Li(e,"DOMException")){var o=e;if("stack"in e)r=Ks(e);else{var i=o.name||(Ri(o)?"DOMError":"DOMException"),a=o.message?i+": "+o.message:i;ja(r=Xs(a,t,n),a)}return"code"in o&&(r.tags=di(di({},r.tags),{"DOMException.code":""+o.code})),r}return Fi(e)?Ks(e):ji(e)||Hi(e)?(Ha(r=function(e,t,n){var r={exception:{values:[{type:Hi(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+ya(e)}]},extra:{__serialized__:ha(e)}};return t&&(r.stacktrace={frames:$s(t)}),r}(e,t,n.isRejection),{synthetic:!0}),r):(ja(r=Xs(e,t,n),""+e,void 0),Ha(r,{synthetic:!0}),r)}function Xs(e,t,n){void 0===n&&(n={});var r={message:e};return n.attachStacktrace&&t&&(r.stacktrace={frames:$s(t)}),r}var Gs,Js=Ai();function Zs(){if(Gs)return Gs;if(xa(Js.fetch))return Gs=Js.fetch.bind(Js);var e=Js.document,t=Js.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){Ni()&&oa.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return Gs=t.bind(Js)}function Qs(e){return"event"===e?"error":e}var ec=Ai(),tc=function(){function e(e){var t,n,r,o=this;this.options=e,this._buffer=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 Ka(new Yi("Not adding Promise due to buffer limit reached."));var o=r();return-1===t.indexOf(o)&&t.push(o),o.then((function(){return n(o)})).then(null,(function(){return n(o).then(null,(function(){}))})),o},drain:function(e){return new $a((function(n,r){var o=t.length;if(!o)return n(!0);var i=setTimeout((function(){e&&e>0&&n(!1)}),e);t.forEach((function(e){Va(e).then((function(){--o||(clearTimeout(i),n(!0))}),r)}))}))}}}(30),this._rateLimits={},this._outcomes={},this._api=(t=e.dsn,n=e._metadata,r=e.tunnel,{initDsn:t,metadata:n||{},dsn:Zi(t),tunnel:r}),this.url=gs(this._api.dsn),this.options.sendClientReports&&ec.document&&ec.document.addEventListener("visibilitychange",(function(){"hidden"===ec.document.visibilityState&&o._flushOutcomes()}))}return e.prototype.sendEvent=function(e){return this._sendRequest(function(e,t){var n,r=Ss(t),o=e.type||"event",i="transaction"===o||!!t.tunnel,a=(e.sdkProcessingMetadata||{}).transactionSampling||{},s=a.method,c=a.rate;!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=vi(e.sdk.integrations||[],t.integrations||[]),e.sdk.packages=vi(e.sdk.packages||[],t.packages||[]))}(e,t.metadata.sdk),e.tags=e.tags||{},e.extra=e.extra||{},e.sdkProcessingMetadata&&e.sdkProcessingMetadata.baseClientNormalized||(e.tags.skippedNormalization=!0,e.extra.normalizeDepth=e.sdkProcessingMetadata?e.sdkProcessingMetadata.normalizeDepth:"unset"),delete e.sdkProcessingMetadata;try{n=JSON.stringify(e)}catch(t){e.tags.JSONStringifyError=!0,e.extra.JSONStringifyError=t;try{n=JSON.stringify(va(e))}catch(e){var l=e;n=JSON.stringify({message:"JSON.stringify error after renormalization",extra:{message:l.message,stack:l.stack}})}}var u={body:n,type:o,url:i?vs(t.dsn,t.tunnel):gs(t.dsn)};if(i){var d=JSON.stringify(di(di({event_id:e.event_id,sent_at:(new Date).toISOString()},r&&{sdk:r}),!!t.tunnel&&{dsn:Gi(t.dsn)}))+"\n"+JSON.stringify({type:o,sample_rates:[{id:s,rate:c}]})+"\n"+u.body;u.body=d}return u}(e,this._api),e)},e.prototype.sendSession=function(e){return this._sendRequest(function(e,t){var n=Ss(t),r="aggregates"in e?"sessions":"session";return{body:JSON.stringify(di(di({sent_at:(new Date).toISOString()},n&&{sdk:n}),!!t.tunnel&&{dsn:Gi(t.dsn)}))+"\n"+JSON.stringify({type:r})+"\n"+JSON.stringify(e),type:r,url:vs(t.dsn,t.tunnel)}}(e,this._api),e)},e.prototype.close=function(e){return this._buffer.drain(e)},e.prototype.recordLostEvent=function(e,t){var n;if(this.options.sendClientReports){var r=Qs(t)+":"+e;oa.log("Adding outcome: "+r),this._outcomes[r]=(null!=(n=this._outcomes[r])?n:0)+1}},e.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var e=this._outcomes;if(this._outcomes={},Object.keys(e).length){oa.log("Flushing outcomes:\n"+JSON.stringify(e,null,2));var t=vs(this._api.dsn,this._api.tunnel),n=JSON.stringify(di({},this._api.tunnel&&{dsn:Gi(this._api.dsn)}))+"\n"+JSON.stringify({type:"client_report"})+"\n"+JSON.stringify({timestamp:Xa(),discarded_events:Object.keys(e).map((function(t){var n=gi(t.split(":"),2),r=n[0];return{reason:n[1],category:r,quantity:e[t]}}))});try{!function(e,t){if("[object Navigator]"===Object.prototype.toString.call(Js&&Js.navigator)&&"function"==typeof Js.navigator.sendBeacon)return Js.navigator.sendBeacon.bind(Js.navigator)(e,t);wa()&&Zs()(e,{body:t,method:"POST",credentials:"omit",keepalive:!0}).then(null,(function(e){console.error(e)}))}(t,n)}catch(e){oa.error(e)}}else oa.log("No outcomes to flush")}},e.prototype._handleResponse=function(e){var t,n=e.requestType,r=e.response,o=e.headers,i=e.resolve,a=e.reject,s=(t=r.status)>=200&&t<300?"success":429===t?"rate_limit":t>=400&&t<500?"invalid":t>=500?"failed":"unknown";this._handleRateLimit(o)&&Ni()&&oa.warn("Too many "+n+" requests, backing off until: "+this._disabledUntil(n)),"success"!==s?a(r):i({status:s})},e.prototype._disabledUntil=function(e){var t=Qs(e);return this._rateLimits[t]||this._rateLimits.all},e.prototype._isRateLimited=function(e){return this._disabledUntil(e)>new Date(Date.now())},e.prototype._handleRateLimit=function(e){var t,n,r,o,i=Date.now(),a=e["x-sentry-rate-limits"],s=e["retry-after"];if(a){try{for(var c=hi(a.trim().split(",")),l=c.next();!l.done;l=c.next()){var u=l.value.split(":",2),d=parseInt(u[0],10),p=1e3*(isNaN(d)?60:d);try{for(var f=(r=void 0,hi(u[1].split(";"))),m=f.next();!m.done;m=f.next()){var h=m.value;this._rateLimits[h||"all"]=new Date(i+p)}}catch(e){r={error:e}}finally{try{m&&!m.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return!0}return!!s&&(this._rateLimits.all=new Date(i+function(e,t){if(!t)return 6e4;var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+t);return isNaN(r)?6e4:r-e}(i,s)),!0)},e}(),nc=function(e){function t(t,n){void 0===n&&(n=Zs());var r=e.call(this,t)||this;return r._fetch=n,r}return ui(t,e),t.prototype._sendRequest=function(e,t){var n=this;if(this._isRateLimited(e.type))return this.recordLostEvent("ratelimit_backoff",e.type),Promise.reject({event:t,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429});var r={body:e.body,method:"POST",referrerPolicy:_a()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(r,this.options.fetchParameters),void 0!==this.options.headers&&(r.headers=this.options.headers),this._buffer.add((function(){return new $a((function(t,o){n._fetch(e.url,r).then((function(r){var i={"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")};n._handleResponse({requestType:e.type,response:r,headers:i,resolve:t,reject:o})})).catch(o)}))})).then(void 0,(function(t){throw t instanceof Yi?n.recordLostEvent("queue_overflow",e.type):n.recordLostEvent("network_error",e.type),t}))},t}(tc),rc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ui(t,e),t.prototype._sendRequest=function(e,t){var n=this;return this._isRateLimited(e.type)?(this.recordLostEvent("ratelimit_backoff",e.type),Promise.reject({event:t,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429})):this._buffer.add((function(){return new $a((function(t,r){var o=new XMLHttpRequest;for(var i in o.onreadystatechange=function(){if(4===o.readyState){var i={"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")};n._handleResponse({requestType:e.type,response:o,headers:i,resolve:t,reject:r})}},o.open("POST",e.url),n.options.headers)Object.prototype.hasOwnProperty.call(n.options.headers,i)&&o.setRequestHeader(i,n.options.headers[i]);o.send(e.body)}))})).then(void 0,(function(t){throw t instanceof Yi?n.recordLostEvent("queue_overflow",e.type):n.recordLostEvent("network_error",e.type),t}))},t}(tc),oc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ui(t,e),t.prototype.eventFromException=function(e,t){return function(e,t,n){var r=Ys(t,n&&n.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return Ha(r),r.level=_i.Error,n&&n.event_id&&(r.event_id=n.event_id),Va(r)}(this._options,e,t)},t.prototype.eventFromMessage=function(e,t,n){return void 0===t&&(t=_i.Info),function(e,t,n,r){void 0===n&&(n=_i.Info);var o=Xs(t,r&&r.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),Va(o)}(this._options,e,t,n)},t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t=di(di({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata});return this._options.transport?new this._options.transport(t):wa()?new nc(t):new rc(t)},t}(Es),ic=Ai(),ac=0;function sc(){return ac>0}function cc(){ac+=1,setTimeout((function(){ac-=1}))}function lc(e,t,n){if(void 0===t&&(t={}),"function"!=typeof e)return e;try{var r=e.__sentry_wrapped__;if(r)return r;if(fa(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((function(e){return lc(e,t)}));return e.apply(this,o)}catch(e){throw cc(),ps((function(n){n.addEventProcessor((function(e){return t.mechanism&&(ja(e,void 0,void 0),Ha(e,t.mechanism)),e.extra=di(di({},e.extra),{arguments:r}),e})),ds(e)})),e}};try{for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(o[i]=e[i])}catch(e){}pa(o,e),da(e,"__sentry_wrapped__",o);try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get:function(){return e.name}})}catch(e){}return o}var uc=function(){function e(t){this.name=e.id,this._installFunc={onerror:dc,onunhandledrejection:pc},this._options=di({onerror:!0,onunhandledrejection:!0},t)}return e.prototype.setupOnce=function(){Error.stackTraceLimit=50;var e,t=this._options;for(var n in t){var r=this._installFunc[n];r&&t[n]&&(e=n,Ni()&&oa.log("Global Handler attached: "+e),r(),this._installFunc[n]=void 0)}},e.id="GlobalHandlers",e}();function dc(){Ia("error",(function(e){var t=gi(hc(),2),n=t[0],r=t[1];if(n.getIntegration(uc)){var o=e.msg,i=e.url,a=e.line,s=e.column,c=e.error;if(!(sc()||c&&c.__sentry_own_request__)){var l=void 0===c&&Mi(o)?function(e,t,n,r){var o=zi(e)?e.message:e,i="Error",a=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return a&&(i=a[1],o=a[2]),fc({exception:{values:[{type:i,value:o}]}},t,n,r)}(o,i,a,s):fc(Ys(c||o,void 0,{attachStacktrace:r,isRejection:!1}),i,a,s);l.level=_i.Error,mc(n,c,l,"onerror")}}}))}function pc(){Ia("unhandledrejection",(function(e){var t=gi(hc(),2),n=t[0],r=t[1];if(n.getIntegration(uc)){var o=e;try{"reason"in e?o=e.reason:"detail"in e&&"reason"in e.detail&&(o=e.detail.reason)}catch(e){}if(sc()||o&&o.__sentry_own_request__)return!0;var i=Di(o)?{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(o)}]}}:Ys(o,void 0,{attachStacktrace:r,isRejection:!0});i.level=_i.Error,mc(n,o,i,"onunhandledrejection")}}))}function fc(e,t,n,r){var o=e.exception=e.exception||{},i=o.values=o.values||[],a=i[0]=i[0]||{},s=a.stacktrace=a.stacktrace||{},c=s.frames=s.frames||[],l=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,d=Mi(t)&&t.length>0?t:function(){var e=Ai();try{return e.document.location.href}catch(e){return""}}();return 0===c.length&&c.push({colno:l,filename:d,function:"?",in_app:!0,lineno:u}),e}function mc(e,t,n,r){Ha(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function hc(){var e=as(),t=e.getClient();return[e,t&&t.getOptions().attachStacktrace]}var gc=["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"],vc=function(){function e(t){this.name=e.id,this._options=di({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}return e.prototype.setupOnce=function(){var e=Ai();this._options.setTimeout&&ua(e,"setTimeout",yc),this._options.setInterval&&ua(e,"setInterval",yc),this._options.requestAnimationFrame&&ua(e,"requestAnimationFrame",bc),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&ua(XMLHttpRequest.prototype,"send",wc);var t=this._options.eventTarget;t&&(Array.isArray(t)?t:gc).forEach(xc)},e.id="TryCatch",e}();function yc(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t[0];return t[0]=lc(r,{mechanism:{data:{function:aa(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function bc(e){return function(t){return e.call(this,lc(t,{mechanism:{data:{function:"requestAnimationFrame",handler:aa(e)},handled:!0,type:"instrument"}}))}}function wc(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this,o=["onload","onerror","onprogress","onreadystatechange"];return o.forEach((function(e){e in r&&"function"==typeof r[e]&&ua(r,e,(function(t){var n={mechanism:{data:{function:e,handler:aa(t)},handled:!0,type:"instrument"}},r=fa(t);return r&&(n.mechanism.data.handler=aa(r)),lc(t,n)}))})),e.apply(this,t)}}function xc(e){var t=Ai(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(ua(n,"addEventListener",(function(t){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=lc(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:aa(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.call(this,n,lc(r,{mechanism:{data:{function:"addEventListener",handler:aa(r),target:e},handled:!0,type:"instrument"}}),o)}})),ua(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)}})))}var _c=function(){function e(t){this.name=e.id,this._options=di({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype.addSentryBreadcrumb=function(e){this._options.sentry&&as().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:Da(e)},{event:e})},e.prototype.setupOnce=function(){var e;this._options.console&&Ia("console",Ec),this._options.dom&&Ia("dom",(e=this._options.dom,function(t){var n,r="object"==typeof e?e.serializeAttribute:void 0;"string"==typeof r&&(r=[r]);try{n=t.event.target?$i(t.event.target,r):$i(t.event,r)}catch(e){n="<unknown>"}0!==n.length&&as().addBreadcrumb({category:"ui."+t.name,message:n},{event:t.event,name:t.name,global:t.global})})),this._options.xhr&&Ia("xhr",Sc),this._options.fetch&&Ia("fetch",kc),this._options.history&&Ia("history",Cc)},e.id="Breadcrumbs",e}();function Ec(e){var t,n={category:"console",data:{arguments:e.args,logger:"console"},level:(t=e.level,"warn"===t?_i.Warning:function(e){return-1!==Qi.indexOf(e)}(t)?t:_i.Log),message:ca(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message="Assertion failed: "+(ca(e.args.slice(1)," ")||"console.assert"),n.data.arguments=e.args.slice(1)}as().addBreadcrumb(n,{input:e.args,level:e.level})}function Sc(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;var t=e.xhr.__sentry_xhr__||{},n=t.method,r=t.url,o=t.status_code,i=t.body;as().addBreadcrumb({category:"xhr",data:{method:n,url:r,status_code:o},type:"http"},{xhr:e.xhr,input:i})}}function kc(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?as().addBreadcrumb({category:"fetch",data:e.fetchData,level:_i.Error,type:"http"},{data:e.error,input:e.args}):as().addBreadcrumb({category:"fetch",data:di(di({},e.fetchData),{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))}function Cc(e){var t=Ai(),n=e.from,r=e.to,o=Ra(t.location.href),i=Ra(n),a=Ra(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),as().addBreadcrumb({category:"navigation",data:{from:n,to:r}})}var Tc=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||"cause",this._limit=t.limit||5}return e.prototype.setupOnce=function(){ts((function(t,n){var r=as().getIntegration(e);return r?function(e,t,n,r){if(!(n.exception&&n.exception.values&&r&&Ki(r.originalException,Error)))return n;var o=function e(t,n,r,o){if(void 0===o&&(o=[]),!Ki(n[r],Error)||o.length+1>=t)return o;var i=Vs(n[r]);return e(t,n[r],r,vi([i],o))}(t,r.originalException,e);return n.exception.values=vi(o,n.exception.values),n}(r._key,r._limit,t,n):t}))},e.id="LinkedErrors",e}(),Nc=Ai(),Ic=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){ts((function(t){if(as().getIntegration(e)){if(!Nc.navigator&&!Nc.location&&!Nc.document)return t;var n=t.request&&t.request.url||Nc.location&&Nc.location.href,r=(Nc.document||{}).referrer,o=(Nc.navigator||{}).userAgent,i=di(di(di({},t.request&&t.request.headers),r&&{Referer:r}),o&&{"User-Agent":o}),a=di(di({},n&&{url:n}),{headers:i});return di(di({},t),{request:a})}return t}))},e.id="UserAgent",e}(),Pc=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(t,n){t((function(t){var r=n().getIntegration(e);if(r){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&&(!!Ac(e,t)&&!!Oc(e,t))))}(e,t)||!!function(e,t){var n=Bc(t),r=Bc(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!Ac(e,t)&&!!Oc(e,t)))}(e,t))}(t,r._previousEvent))return oa.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){return r._previousEvent=t}return r._previousEvent=t}return t}))},e.id="Dedupe",e}();function Oc(e,t){var n=Fc(e),r=Fc(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(n=n,(r=r).length!==n.length)return!1;for(var o=0;o<r.length;o++){var i=r[o],a=n[o];if(i.filename!==a.filename||i.lineno!==a.lineno||i.colno!==a.colno||i.function!==a.function)return!1}return!0}function Ac(e,t){var n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function Bc(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Fc(e){var t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}else if(e.stacktrace)return e.stacktrace.frames}var Lc=function(e){function t(t){return void 0===t&&(t={}),t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:"6.17.9"}],version:"6.17.9"},e.call(this,oc,t)||this}return ui(t,e),t.prototype.showReportDialog=function(e){void 0===e&&(e={}),Ai().document&&(this._isEnabled()?function(e){if(void 0===e&&(e={}),ic.document)if(e.eventId)if(e.dsn){var t=ic.document.createElement("script");t.async=!0,t.src=function(e,t){var n=Zi(e),r=fs(n)+"embed/error-page/",o="dsn="+Gi(n);for(var i in t)if("dsn"!==i)if("user"===i){if(!t.user)continue;t.user.name&&(o+="&name="+encodeURIComponent(t.user.name)),t.user.email&&(o+="&email="+encodeURIComponent(t.user.email))}else o+="&"+encodeURIComponent(i)+"="+encodeURIComponent(t[i]);return r+"?"+o}(e.dsn,e),e.onLoad&&(t.onload=e.onLoad);var n=ic.document.head||ic.document.body;n&&n.appendChild(t)}else Ni()&&oa.error("Missing dsn option in showReportDialog call");else Ni()&&oa.error("Missing eventId option in showReportDialog call")}(di(di({},e),{dsn:e.dsn||this.getDsn()})):oa.error("Trying to call showReportDialog with Sentry Client disabled"))},t.prototype._prepareEvent=function(t,n,r){return t.platform=t.platform||"javascript",e.prototype._prepareEvent.call(this,t,n,r)},t.prototype._sendEvent=function(t){var n=this.getIntegration(_c);n&&n.addSentryBreadcrumb(t),e.prototype._sendEvent.call(this,t)},t}(xs),zc=[new Ns,new Cs,new vc,new _c,new uc,new Tc,new Pc,new Ic];function Rc(e){e.startSession({ignoreDuration:!0}),e.captureSession()}var Mc={error:console.error},Dc=n(null),jc=Dc.Provider,Hc=function(){var e=i(Dc);if(!e)throw new Error("useRootElement must be used withn a RootElementProvider");return e},Uc=n({assetTypes:[],language:"en_US",onSuccess:function(e,t){var n=t.selectedFile;return console.log(e,n)},selectionMode:"MultiSelect",hideExternalAccess:!1}),Vc=Uc.Provider,Kc=function(){return i(Uc)},$c=function(){return Kc().theme},Wc=function(){return Kc().selectionMode};function qc(e,t,n){return{background:Yc(e,t,n),color:Xc(e,t,n)}}function Yc(e,t,n){if("Primary"===t||"PrimarySm"===t)return void 0!==(null==e?void 0:e.colorButtonPrimaryActive)&&"Active"===n?e.colorButtonPrimaryActive:void 0===(null==e?void 0:e.colorButtonPrimaryHover)||"Hover"!==n&&"Active"!==n?void 0!==(null==e?void 0:e.colorButtonPrimary)?e.colorButtonPrimary:void 0:e.colorButtonPrimaryHover}function Xc(e,t,n){if("Primary"===t||"PrimarySm"===t)return void 0!==(null==e?void 0:e.colorButtonPrimaryHoverLabel)&&"Hover"===n?e.colorButtonPrimaryHoverLabel:void 0!==(null==e?void 0:e.colorButtonPrimaryLabel)?e.colorButtonPrimaryLabel:void 0}function Gc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(Boolean).join(" ")}var Jc=s((function(e,n){var o=e.title,i=e.isDisabled,a=e.onClick,s=e.testId,c=e.kind,l=void 0===c?"Flat":c,u=e.children,d=e.className,p=pi(e,["title","isDisabled","onClick","testId","kind","children","className"]),f=r(!1),m=f[0],h=f[1],g=r(!1),v=g[0],y=g[1],b=$c(),w=Gc("rounded inline-flex items-center flex-shrink-0 text-md border border-transparent\n\tselect-none active:shadow-inner focus:outline-none disabled:pointer-events-none\n\ttransition-color",function(e){switch(e){case"Flat":case"Primary":case"Secondary":return"h-10 px-4";case"FlatSm":case"PrimarySm":case"SecondarySm":return"h-8 px-3"}}(l),function(e){switch(e){case"Primary":case"PrimarySm":return"text-ui-0 bg-brand-500 hover:bg-brand-600 active:bg-brand-700\n\t\t\t\tdisabled:opacity-60";case"Secondary":case"SecondarySm":return"text-body-500 bg-ui-400 hover:bg-ui-500 hover:text-body-500 active:bg-ui-700\n\t\t\t\tfocus:text-body-500 disabled:text-body-300 disabled:bg-ui-500";case"Flat":case"FlatSm":return"text-body-400 active:bg-ui-700 active:text-body-500\n\t\t\t\tfocus:bg-ui-500 focus:text-body-500 hover:bg-ui-500 hover:text-body-500\n\t\t\t\tdisabled:text-body-300"}}(l),function(e){switch(e){case"Primary":case"PrimarySm":return"focus:border-ui-900";case"Secondary":case"SecondarySm":return"border-ui-600 focus:border-ui-900 disabled:border-ui-500";case"Flat":case"FlatSm":return"focus:border-ui-700"}}(l),d),x=qc(b,l,function(e,t){return t?"Active":e?"Hover":"None"}(m,v));return t.createElement("button",di({className:w,style:x,onMouseOver:function(){return h(!0)},onFocus:function(){return h(!0)},onMouseOut:function(){return h(!1)},onBlur:function(){return h(!1)},onMouseDown:function(){return y(!0)},onMouseUp:function(){return y(!1)},title:o,disabled:i,onClick:a,ref:n,"data-testid":null!=s?s:"button",type:"button"},p),u)}));function Zc(e){var t;return null!==(t=Qc[e])&&void 0!==t?t:e}var Qc={};function el(e){a((function(){var t=e.slice(0,2).toLowerCase();fetch("https://d8ejoa1fys2rk.cloudfront.net/5.0.5/modules/compactview/i18n/"+t+".json").then((function(e){return e.json()})).then((function(e){Qc=e}))}),[e])}function tl(){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 nl(e){return t.createElement(t.Fragment,null,t.createElement(tl,null),t.createElement("h1",{className:"mt-10 text-2xl"},Zc("Oops! Something went wrong")),t.createElement("span",{className:"mt-4 text-body-400"},Zc("Please try again or get in contact with our customer support.")),t.createElement("div",{className:"mt-8"},t.createElement(Jc,{kind:"Secondary",title:Zc("Send report"),onClick:e.onClickSend,isDisabled:e.isReportSent},e.isReportSent?Zc("Report sent"):Zc("Send report...")),t.createElement(Jc,{kind:"Primary",title:Zc("Try again"),className:"ml-2",onClick:e.onClickRetry},Zc("Try again"))))}var rl={exports:{}},ol={},il="function"==typeof Symbol&&Symbol.for,al=il?Symbol.for("react.element"):60103,sl=il?Symbol.for("react.portal"):60106,cl=il?Symbol.for("react.fragment"):60107,ll=il?Symbol.for("react.strict_mode"):60108,ul=il?Symbol.for("react.profiler"):60114,dl=il?Symbol.for("react.provider"):60109,pl=il?Symbol.for("react.context"):60110,fl=il?Symbol.for("react.async_mode"):60111,ml=il?Symbol.for("react.concurrent_mode"):60111,hl=il?Symbol.for("react.forward_ref"):60112,gl=il?Symbol.for("react.suspense"):60113,vl=il?Symbol.for("react.suspense_list"):60120,yl=il?Symbol.for("react.memo"):60115,bl=il?Symbol.for("react.lazy"):60116,wl=il?Symbol.for("react.block"):60121,xl=il?Symbol.for("react.fundamental"):60117,_l=il?Symbol.for("react.responder"):60118,El=il?Symbol.for("react.scope"):60119;function Sl(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case al:switch(e=e.type){case fl:case ml:case cl:case ul:case ll:case gl:return e;default:switch(e=e&&e.$$typeof){case pl:case hl:case bl:case yl:case dl:return e;default:return t}}case sl:return t}}}function kl(e){return Sl(e)===ml}function Cl(e){function t(e,t,r){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=n(e,t[s],r).trim();break;default:var c=s=0;for(t=[];s<i;++s)for(var l=0;l<a;++l)t[c++]=n(e[l]+" ",o[s],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(h,"$1"+e.trim());case 58:return e.trim()+t.replace(h,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(h,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,i){var a=e+";",s=2*t+3*n+4*i;if(944===s){e=a.indexOf(":",9)+1;var c=a.substring(e,a.length-1).trim();return c=a.substring(0,e).trim()+c+";",1===I||2===I&&o(c,1)?"-webkit-"+c+c:c}if(0===I||2===I&&!o(a,1))return a;switch(s){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(k,"$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"+(c=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+c+a;case 1005:return p.test(a)?a.replace(d,":-webkit-")+a.replace(d,":-moz-")+a:a;case 1e3:switch(t=(c=a.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=a.replace(b,"tb");break;case 232:c=a.replace(b,"tb-rl");break;case 220:c=a.replace(b,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+c+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(c=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(c,"-webkit-"+c)+";"+a.replace(c,"-ms-"+c+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return c=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+c+"-ms-flex-"+c+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(_,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(_,"")+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===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,i).replace(":fill-available",":stretch"):a.replace(c,"-webkit-"+c)+a.replace(c,"-moz-"+c.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+i&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+a}return a}function o(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),B(2!==t?r:r.replace(E,"$1"),n,t)}function i(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(x," or ($1)").substring(4):"("+t+")"}function a(e,t,n,r,o,i,a,s,l,u){for(var d,p=0,f=t;p<A;++p)switch(d=O[p].call(c,e,f,n,r,o,i,a,s,l,u)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function s(e){return void 0!==(e=e.prefix)&&(B=null,e?"function"!=typeof e?I=1:(I=2,B=e):I=0),s}function c(e,n){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<A){var c=a(-1,n,s,s,T,C,0,0,0,0);void 0!==c&&"string"==typeof c&&(n=c)}var d=function e(n,s,c,d,p){for(var f,m,h,b,x,_=0,E=0,S=0,k=0,O=0,B=0,L=h=f=0,z=0,R=0,M=0,D=0,j=c.length,H=j-1,U="",V="",K="",$="";z<j;){if(m=c.charCodeAt(z),z===H&&0!==E+k+S+_&&(0!==E&&(m=47===E?10:47),k=S=_=0,j++,H++),0===E+k+S+_){if(z===H&&(0<R&&(U=U.replace(u,"")),0<U.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:U+=c.charAt(z)}m=59}switch(m){case 123:for(f=(U=U.trim()).charCodeAt(0),h=1,D=++z;z<j;){switch(m=c.charCodeAt(z)){case 123:h++;break;case 125:h--;break;case 47:switch(m=c.charCodeAt(z+1)){case 42:case 47:e:{for(L=z+1;L<H;++L)switch(c.charCodeAt(L)){case 47:if(42===m&&42===c.charCodeAt(L-1)&&z+2!==L){z=L+1;break e}break;case 10:if(47===m){z=L+1;break e}}z=L}}break;case 91:m++;case 40:m++;case 34:case 39:for(;z++<H&&c.charCodeAt(z)!==m;);}if(0===h)break;z++}switch(h=c.substring(D,z),0===f&&(f=(U=U.replace(l,"").trim()).charCodeAt(0)),f){case 64:switch(0<R&&(U=U.replace(u,"")),m=U.charCodeAt(1)){case 100:case 109:case 115:case 45:R=s;break;default:R=P}if(D=(h=e(s,R,h,m,p+1)).length,0<A&&(x=a(3,h,R=t(P,U,M),s,T,C,D,m,p,d),U=R.join(""),void 0!==x&&0===(D=(h=x.trim()).length)&&(m=0,h="")),0<D)switch(m){case 115:U=U.replace(w,i);case 100:case 109:case 45:h=U+"{"+h+"}";break;case 107:h=(U=U.replace(g,"$1 $2"))+"{"+h+"}",h=1===I||2===I&&o("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=U+h,112===d&&(V+=h,h="")}else h="";break;default:h=e(s,t(s,U,M),h,d,p+1)}K+=h,h=M=R=L=f=0,U="",m=c.charCodeAt(++z);break;case 125:case 59:if(1<(D=(U=(0<R?U.replace(u,""):U).trim()).length))switch(0===L&&(f=U.charCodeAt(0),45===f||96<f&&123>f)&&(D=(U=U.replace(" ",":")).length),0<A&&void 0!==(x=a(1,U,s,n,T,C,V.length,d,p,d))&&0===(D=(U=x.trim()).length)&&(U="\0\0"),f=U.charCodeAt(0),m=U.charCodeAt(1),f){case 0:break;case 64:if(105===m||99===m){$+=U+c.charAt(z);break}default:58!==U.charCodeAt(D-1)&&(V+=r(U,f,m,U.charCodeAt(2)))}M=R=L=f=0,U="",m=c.charCodeAt(++z)}}switch(m){case 13:case 10:47===E?E=0:0===1+f&&107!==d&&0<U.length&&(R=1,U+="\0"),0<A*F&&a(0,U,s,n,T,C,V.length,d,p,d),C=1,T++;break;case 59:case 125:if(0===E+k+S+_){C++;break}default:switch(C++,b=c.charAt(z),m){case 9:case 32:if(0===k+_+E)switch(O){case 44:case 58:case 9:case 32:b="";break;default:32!==m&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===k+E+_&&(R=M=1,b="\f"+b);break;case 108:if(0===k+E+_+N&&0<L)switch(z-L){case 2:112===O&&58===c.charCodeAt(z-3)&&(N=O);case 8:111===B&&(N=B)}break;case 58:0===k+E+_&&(L=z);break;case 44:0===E+S+k+_&&(R=1,b+="\r");break;case 34:case 39:0===E&&(k=k===m?0:0===k?m:k);break;case 91:0===k+E+S&&_++;break;case 93:0===k+E+S&&_--;break;case 41:0===k+E+_&&S--;break;case 40:if(0===k+E+_){if(0===f)switch(2*O+3*B){case 533:break;default:f=1}S++}break;case 64:0===E+S+k+_+L+h&&(h=1);break;case 42:case 47:if(!(0<k+_+S))switch(E){case 0:switch(2*m+3*c.charCodeAt(z+1)){case 235:E=47;break;case 220:D=z,E=42}break;case 42:47===m&&42===O&&D+2!==z&&(33===c.charCodeAt(D+2)&&(V+=c.substring(D,z+1)),b="",E=0)}}0===E&&(U+=b)}B=O,O=m,z++}if(0<(D=V.length)){if(R=s,0<A&&void 0!==(x=a(2,V,R,n,T,C,D,d,p,d))&&0===(V=x).length)return $+V+K;if(V=R.join(",")+"{"+V+"}",0!=I*N){switch(2!==I||o(V,2)||(N=0),N){case 111:V=V.replace(y,":-moz-$1")+V;break;case 112:V=V.replace(v,"::-webkit-input-$1")+V.replace(v,"::-moz-$1")+V.replace(v,":-ms-input-$1")+V}N=0}}return $+V+K}(P,s,n,0,0);return 0<A&&void 0!==(c=a(-2,d,s,s,T,C,d.length,0,0,0))&&(d=c),N=0,C=T=1,d}var l=/^\0+/g,u=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,m=/,\r+?/g,h=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,y=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,_=/-self|flex-/g,E=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,C=1,T=1,N=0,I=1,P=[],O=[],A=0,B=null,F=0;return c.use=function e(t){switch(t){case void 0:case null:A=O.length=0;break;default:if("function"==typeof t)O[A++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else F=0|!!t}return e},c.set=s,void 0!==e&&s(e),c}ol.AsyncMode=fl,ol.ConcurrentMode=ml,ol.ContextConsumer=pl,ol.ContextProvider=dl,ol.Element=al,ol.ForwardRef=hl,ol.Fragment=cl,ol.Lazy=bl,ol.Memo=yl,ol.Portal=sl,ol.Profiler=ul,ol.StrictMode=ll,ol.Suspense=gl,ol.isAsyncMode=function(e){return kl(e)||Sl(e)===fl},ol.isConcurrentMode=kl,ol.isContextConsumer=function(e){return Sl(e)===pl},ol.isContextProvider=function(e){return Sl(e)===dl},ol.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===al},ol.isForwardRef=function(e){return Sl(e)===hl},ol.isFragment=function(e){return Sl(e)===cl},ol.isLazy=function(e){return Sl(e)===bl},ol.isMemo=function(e){return Sl(e)===yl},ol.isPortal=function(e){return Sl(e)===sl},ol.isProfiler=function(e){return Sl(e)===ul},ol.isStrictMode=function(e){return Sl(e)===ll},ol.isSuspense=function(e){return Sl(e)===gl},ol.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===cl||e===ml||e===ul||e===ll||e===gl||e===vl||"object"==typeof e&&null!==e&&(e.$$typeof===bl||e.$$typeof===yl||e.$$typeof===dl||e.$$typeof===pl||e.$$typeof===hl||e.$$typeof===xl||e.$$typeof===_l||e.$$typeof===El||e.$$typeof===wl)},ol.typeOf=Sl,rl.exports=ol;var Tl={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},Nl=/^((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)-.*))$/,Il=function(e){var t={};return function(e){return void 0===t[e]&&(t[e]=(n=e,Nl.test(n)||111===n.charCodeAt(0)&&110===n.charCodeAt(1)&&n.charCodeAt(2)<91)),t[e];var n}}(),Pl=rl.exports,Ol={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Al={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Bl={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Fl={};function Ll(e){return Pl.isMemo(e)?Bl:Fl[e.$$typeof]||Ol}Fl[Pl.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Fl[Pl.Memo]=Bl;var zl=Object.defineProperty,Rl=Object.getOwnPropertyNames,Ml=Object.getOwnPropertySymbols,Dl=Object.getOwnPropertyDescriptor,jl=Object.getPrototypeOf,Hl=Object.prototype;function Ul(){return(Ul=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 Vl=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},Kl=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!rl.exports.typeOf(e)},$l=Object.freeze([]),Wl=Object.freeze({});function ql(e){return"function"==typeof e}function Yl(e){return e.displayName||e.name||"Component"}function Xl(e){return e&&"string"==typeof e.styledComponentId}var Gl="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Jl="undefined"!=typeof window&&"HTMLElement"in window,Zl=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),Ql={};function eu(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 tu=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&&eu(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),s=0,c=t.length;s<c;s++)this.tag.insertRule(a,t[s])&&(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}(),nu=new Map,ru=new Map,ou=1,iu=function(e){if(nu.has(e))return nu.get(e);for(;ru.has(ou);)ou++;var t=ou++;return nu.set(e,t),ru.set(t,e),t},au=function(e){return ru.get(e)},su=function(e,t){t>=ou&&(ou=t+1),nu.set(e,t),ru.set(t,e)},cu="style["+Gl+'][data-styled-version="5.3.3"]',lu=new RegExp("^"+Gl+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),uu=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)},du=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 s=a.match(lu);if(s){var c=0|parseInt(s[1],10),l=s[2];0!==c&&(su(l,c),uu(e,l,s[3]),e.getTag().insertRules(c,r)),r.length=0}else r.push(a)}}},pu=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(Gl))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(Gl,"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},fu=function(){function e(e){var t=this.element=pu(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}eu(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}(),mu=function(){function e(e){var t=this.element=pu(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}(),hu=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}(),gu=Jl,vu={isServer:!Jl,useCSSOMInjection:!Zl},yu=function(){function e(e,t,n){void 0===e&&(e=Wl),void 0===t&&(t={}),this.options=Ul({},vu,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Jl&&gu&&(gu=!1,function(e){for(var t=document.querySelectorAll(cu),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(Gl)&&(du(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return iu(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(Ul({},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 hu(o):r?new fu(o):new mu(o),new tu(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(iu(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(iu(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(iu(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=au(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(a&&s&&a.size){var c=Gl+".g"+o+'[id="'+i+'"]',l="";void 0!==a&&a.forEach((function(e){e.length>0&&(l+=e+",")})),r+=""+s+c+'{content:"'+l+'"}/*!sc*/\n'}}}return r}(this)},e}(),bu=/(a)(d)/gi,wu=function(e){return String.fromCharCode(e+(e>25?39:97))};function xu(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=wu(t%52)+n;return(wu(t%52)+n).replace(bu,"$1-$2")}var _u=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Eu=function(e){return _u(5381,e)};function Su(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(ql(n)&&!Xl(n))return!1}return!0}var ku=Eu("5.3.3"),Cu=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Su(e),this.componentId=t,this.baseHash=_u(ku,t),this.baseStyle=n,yu.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=Ku(this.rules,e,t,n).join(""),a=xu(_u(this.baseHash,i)>>>0);if(!t.hasNameForId(r,a)){var s=n(i,"."+a,void 0,r);t.insertRules(r,a,s)}o.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,l=_u(this.baseHash,n.hash),u="",d=0;d<c;d++){var p=this.rules[d];if("string"==typeof p)u+=p;else if(p){var f=Ku(p,e,t,n),m=Array.isArray(f)?f.join(""):f;l=_u(l,m+d),u+=m}}if(u){var h=xu(l>>>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}(),Tu=/^\s*\/\/.*$/gm,Nu=[":","[",".","#"];function Iu(e){var t,n,r,o,i=void 0===e?Wl:e,a=i.options,s=void 0===a?Wl:a,c=i.plugins,l=void 0===c?$l:c,u=new Cl(s),d=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,s,c,l,u,d){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){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!==Nu.indexOf(i[n.length])||i.match(o)?e:"."+t};function m(e,i,a,s){void 0===s&&(s="&");var c=e.replace(Tu,""),l=i&&a?a+" "+i+" { "+c+" }":c;return t=s,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),u(a||!i?"":i,l)}return u.use([].concat(l,[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=l.length?l.reduce((function(e,t){return t.name||eu(15),_u(e,t.name)}),5381).toString():"",m}var Pu=t.createContext(),Ou=t.createContext(),Au=new yu,Bu=Iu();function Fu(){return i(Pu)||Au}function Lu(){return i(Ou)||Bu}function zu(e){var n=r(e.stylisPlugins),i=n[0],s=n[1],c=Fu(),l=o((function(){var t=c;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 Iu({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 s=Object.prototype.hasOwnProperty.bind(t),c=0;c<i.length;c++){var l=i[c];if(!s(l))return!1;var u=e[l],d=t[l];if(!1===(o=void 0)||void 0===o&&u!==d)return!1}return!0})(i,e.stylisPlugins)||s(e.stylisPlugins)}),[e.stylisPlugins]),t.createElement(Pu.Provider,{value:l},t.createElement(Ou.Provider,{value:u},e.children))}var Ru=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Bu);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 eu(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=Bu),this.name+e.hash},e}(),Mu=/([A-Z])/,Du=/([A-Z])/g,ju=/^ms-/,Hu=function(e){return"-"+e.toLowerCase()};function Uu(e){return Mu.test(e)?e.replace(Du,Hu).replace(ju,"-ms-"):e}var Vu=function(e){return null==e||!1===e||""===e};function Ku(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=Ku(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return Vu(e)?"":Xl(e)?"."+e.styledComponentId:ql(e)?"function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t?e:Ku(e(t),t,n,r):e instanceof Ru?n?(e.inject(n,r),e.getName(r)):e:Kl(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!Vu(t[a])&&(Array.isArray(t[a])&&t[a].isCss||ql(t[a])?i.push(Uu(a)+":",t[a],";"):Kl(t[a])?i.push.apply(i,e(t[a],a)):i.push(Uu(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in Tl?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var c}var $u=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Wu(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 ql(e)||Kl(e)?$u(Ku(Vl($l,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:$u(Ku(Vl(e,n)))}var qu=function(e,t,n){return void 0===n&&(n=Wl),e.theme!==n.theme&&e.theme||t||n.theme},Yu=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Xu=/(^-|-$)/g;function Gu(e){return e.replace(Yu,"-").replace(Xu,"")}var Ju=function(e){return xu(Eu(e)>>>0)};function Zu(e){return"string"==typeof e&&!0}var Qu=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},ed=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function td(e,t,n){var r=e[n];Qu(t)&&Qu(r)?nd(r,t):e[n]=t}function nd(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(Qu(a))for(var s in a)ed(s)&&td(e,a[s],s)}return e}var rd=t.createContext(),od={};function id(e,n,r){var o=Xl(e),a=!Zu(e),s=n.attrs,c=void 0===s?$l:s,l=n.componentId,d=void 0===l?function(e,t){var n="string"!=typeof e?"sc":Gu(e);od[n]=(od[n]||0)+1;var r=n+"-"+Ju("5.3.3"+n+od[n]);return t?t+"-"+r:r}(n.displayName,n.parentComponentId):l,p=n.displayName,f=void 0===p?function(e){return Zu(e)?"styled."+e:"Styled("+Yl(e)+")"}(e):p,m=n.displayName&&n.componentId?Gu(n.displayName)+"-"+n.componentId:n.componentId||d,h=o&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,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 Cu(r,m,o?e.componentStyle:void 0),b=y.isStatic&&0===c.length,w=function(e,t){return function(e,t,n,r){var o=e.attrs,a=e.componentStyle,s=e.defaultProps,c=e.foldedComponentIds,l=e.shouldForwardProp,d=e.styledComponentId,p=e.target,f=function(e,t,n){void 0===e&&(e=Wl);var r=Ul({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in ql(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]}(qu(t,i(rd),s)||Wl,t,o),m=f[0],h=f[1],g=function(e,t,n,r){var o=Fu(),i=Lu();return t?e.generateAndInjectStyles(Wl,o,i):e.generateAndInjectStyles(n,o,i)}(a,r,m),v=n,y=h.$as||t.$as||h.as||t.as||p,b=Zu(y),w=h!==t?Ul({},t,{},h):t,x={};for(var _ in w)"$"!==_[0]&&"as"!==_&&("forwardedAs"===_?x.as=w[_]:(l?l(_,Il,y):!b||Il(_))&&(x[_]=w[_]));return t.style&&h.style!==t.style&&(x.style=Ul({},t.style,{},h.style)),x.className=Array.prototype.concat(c,d,g!==d?g:null,t.className,h.className).filter(Boolean).join(" "),x.ref=v,u(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):$l,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+"-"+(Zu(e)?e:Gu(Yl(e)));return id(e,Ul({},o,{attrs:h,componentId:i}),r)},Object.defineProperty(v,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?nd({},e.defaultProps,t):t}}),v.toString=function(){return"."+v.styledComponentId},a&&function e(t,n,r){if("string"!=typeof n){if(Hl){var o=jl(n);o&&o!==Hl&&e(t,o,r)}var i=Rl(n);Ml&&(i=i.concat(Ml(n)));for(var a=Ll(t),s=Ll(n),c=0;c<i.length;++c){var l=i[c];if(!(Al[l]||r&&r[l]||s&&s[l]||a&&a[l])){var u=Dl(n,l);try{zl(t,l,u)}catch(e){}}}}return t}(v,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),v}var ad=function(e){return function e(t,n,r){if(void 0===r&&(r=Wl),!rl.exports.isValidElementType(n))return eu(1,String(n));var o=function(){return t(n,r,Wu.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,n,Ul({},r,{},o))},o.attrs=function(o){return e(t,n,Ul({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o}(id,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){ad[e]=ad(e)}));var sd=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Su(e),yu.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var o=r(Ku(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&&yu.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function cd(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=Wu.apply(void 0,[e].concat(r)),s="sc-global-"+Ju(JSON.stringify(a)),u=new sd(a,s);function d(e){var t=Fu(),n=Lu(),r=i(rd),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,Ql,n,o);else{var i=Ul({},t,{theme:qu(t,r,d.defaultProps)});u.renderStyles(e,i,n,o)}}return t.memo(d)}function ld(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=Wu.apply(void 0,[e].concat(n)).join(""),i=Ju(o);return new Ru(i,o)}var ud=ad;function dd(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var pd={};dd(pd,"SSRProvider",()=>hd),dd(pd,"useSSRSafeId",()=>vd),dd(pd,"useIsSSR",()=>yd);const fd={prefix:String(Math.round(1e10*Math.random())),current:0},md=t.createContext(fd);function hd(e){let n=i(md),r=o(()=>({prefix:n===fd?"":`${n.prefix}-${++n.current}`,current:0}),[n]);return t.createElement(md.Provider,{value:r},e.children)}let gd=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function vd(e){let t=i(md);return t!==fd||gd||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."),o(()=>e||`react-aria${t.prefix}-${++t.current}`,[e])}function yd(){let e=i(md)!==fd,[t,n]=r(e);return"undefined"!=typeof window&&e&&l(()=>{n(!1)},[]),t}function bd(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=bd(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function wd(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=bd(e))&&(r&&(r+=" "),r+=t);return r}function xd(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function _d(e,t,n){let[o,i]=r(e||t),a=c(void 0!==e),s=a.current,l=void 0!==e,u=c(o);s!==l&&console.warn(`WARN: A component changed from ${s?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),a.current=l;let p=d((e,...t)=>{let r=(e,...t)=>{n&&(Object.is(u.current,e)||n(e,...t)),l||(u.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((n,...o)=>{let i=e(l?u.current:n,...o);return r(i,...t),l?n:i})):(l||i(e),r(e,...t))},[l,n]);return l?u.current=e:e=o,[e,p]}xd({},"useControlledState",()=>_d);var Ed={};function Sd(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function kd(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(),s=a.indexOf("."),c=s>=0?a.length-s:0;if(c>0){let e=Math.pow(10,c);i=Math.round(i*e)/e}return i}function Cd(e,t,n=10){const r=Math.pow(n,t);return Math.round(e*r)/r}function Td(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}xd(Ed,"clamp",()=>Sd),xd(Ed,"snapValueToStep",()=>kd),xd(Ed,"toFixedNumber",()=>Cd);var Nd={};Td(Nd,"useId",()=>Od),Td(Nd,"mergeIds",()=>Ad),Td(Nd,"useSlotId",()=>Bd),Td({},"useLayoutEffect",()=>Id);const Id="undefined"!=typeof window?t.useLayoutEffect:()=>{};let Pd=new Map;function Od(e){let t=c(!0);t.current=!0;let[n,o]=r(e),i=c(null),s=vd(n),l=e=>{t.current?i.current=e:o(e)};return Pd.set(s,l),Id(()=>{t.current=!1},[l]),Id(()=>{let e=s;return()=>{Pd.delete(e)}},[s]),a(()=>{let e=i.current;e&&(o(e),i.current=null)},[o,l]),s}function Ad(e,t){if(e===t)return e;let n=Pd.get(e);if(n)return n(t),t;let r=Pd.get(t);return r?(r(e),e):t}function Bd(e=[]){let t=Od(),[n,r]=_p(t),o=d(()=>{r((function*(){yield t,yield document.getElementById(t)?t:null}))},[t,r]);return Id(o,[t,o,...e]),n}function Fd(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}function Ld(...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]=Fd(n,o):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof o?"id"===e&&n&&o?t.id=Ad(n,o):t[e]=void 0!==o?o:n:t[e]=wd(n,o)}}return t}Td({},"chain",()=>Fd),Td({},"mergeProps",()=>Ld),Td({},"filterDOMProps",()=>Dd);const zd=new Set(["id"]),Rd=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Md=/^(data-.*)$/;function Dd(e,t={}){let{labelable:n,propNames:r}=t,o={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(zd.has(t)||n&&Rd.has(t)||(null==r?void 0:r.has(t))||Md.test(t))&&(o[t]=e[t]);return o}function jd(e){if(function(){if(null==Hd){Hd=!1;try{document.createElement("div").focus({get preventScroll(){return Hd=!0,!0}})}catch(e){}}return Hd}())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)}}Td({},"focusWithoutScrolling",()=>jd);let Hd=null;function Ud(e,t,n="horizontal"){let r=e.getBoundingClientRect();return t?"horizontal"===n?r.right:r.bottom:"horizontal"===n?r.left:r.top}Td({},"getOffset",()=>Ud);var Vd={};Td(Vd,"clamp",()=>Sd),Td(Vd,"snapValueToStep",()=>kd),Td({},"runAfterTransition",()=>qd);let Kd=new Map,$d=new Set;function Wd(){if("undefined"==typeof window)return;let e=t=>{let n=Kd.get(t.target);if(n&&(n.delete(t.propertyName),0===n.size&&(t.target.removeEventListener("transitioncancel",e),Kd.delete(t.target)),0===Kd.size)){for(let e of $d)e();$d.clear()}};document.body.addEventListener("transitionrun",t=>{let n=Kd.get(t.target);n||(n=new Set,Kd.set(t.target,n),t.target.addEventListener("transitioncancel",e)),n.add(t.propertyName)}),document.body.addEventListener("transitionend",e)}function qd(e){requestAnimationFrame(()=>{0===Kd.size?e():$d.add(e)})}"undefined"!=typeof document&&("loading"!==document.readyState?Wd():document.addEventListener("DOMContentLoaded",Wd)),Td({},"useDrag1D",()=>Xd);const Yd=[];function Xd(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:a,onIncrement:s,onDecrement:l,onIncrementToMax:u,onDecrementToMin:d,onCollapseToggle:p}=e,f=e=>{let o=Ud(t.current,n,r),i=(e=>"horizontal"===r?e.clientX:e.clientY)(e);return n?o-i:i-o},m=c(!1),h=c(0),g=c({onPositionChange:a,onDrag:i});g.current.onDrag=i,g.current.onPositionChange=a;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,a&&a(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),Yd.splice(Yd.indexOf(t),1),window.removeEventListener("mouseup",y,!1),window.removeEventListener("mousemove",v,!1)};return{onMouseDown:e=>{const t=e.currentTarget;Yd.some(e=>t.contains(e))||(Yd.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(),l&&!n?l():s&&n&&s());break;case"Up":case"ArrowUp":"vertical"===r&&(e.preventDefault(),l&&!n?l():s&&n&&s());break;case"Right":case"ArrowRight":"horizontal"===r&&(e.preventDefault(),s&&!n?s():l&&n&&l());break;case"Down":case"ArrowDown":"vertical"===r&&(e.preventDefault(),s&&!n?s():l&&n&&l());break;case"Home":e.preventDefault(),d&&d();break;case"End":e.preventDefault(),u&&u();break;case"Enter":e.preventDefault(),p&&p()}}}}function Gd(){let e=c(new Map),t=d((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=d((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=d(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return a(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Jd(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;if(n=Od(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 Zd(e){const t=c();return Id(()=>{e&&("function"==typeof e?e(t.current):e.current=t.current)},[e]),t}function Qd(e,t){const n=c(!0);a(()=>{n.current?n.current=!1:e()},t)}function ep(e){const{ref:t,onResize:n}=e;a(()=>{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 tp(e,t){Id(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}},[e,t])}function np(e){for(;e&&!rp(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function rp(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}Td({},"useGlobalListeners",()=>Gd),Td({},"useLabels",()=>Jd),Td({},"useObjectRef",()=>Zd),Td({},"useUpdateEffect",()=>Qd),Td({},"useResizeObserver",()=>ep),Td({},"useSyncRef",()=>tp),Td({},"getScrollParent",()=>np),Td({},"useViewportSize",()=>ip);let op="undefined"!=typeof window&&window.visualViewport;function ip(){let[e,t]=r(()=>ap());return a(()=>{let e=()=>{t(e=>{let t=ap();return t.width===e.width&&t.height===e.height?e:t})};return op?op.addEventListener("resize",e):window.addEventListener("resize",e),()=>{op?op.removeEventListener("resize",e):window.removeEventListener("resize",e)}},[]),e}function ap(){return{width:(null==op?void 0:op.width)||window.innerWidth,height:(null==op?void 0:op.height)||window.innerHeight}}Td({},"useDescription",()=>lp);let sp=0;const cp=new Map;function lp(e){let[t,n]=r(null);return Id(()=>{if(!e)return;let t=cp.get(e);if(t)n(t.element.id);else{let r="react-aria-description-"+sp++;n(r);let o=document.createElement("div");o.id=r,o.style.display="none",o.textContent=e,document.body.appendChild(o),t={refCount:0,element:o},cp.set(e,t)}return t.refCount++,()=>{0==--t.refCount&&(t.element.remove(),cp.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}var up={};function dp(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test(window.navigator.userAgent)}function pp(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test(window.navigator.platform)}function fp(){return pp(/^Mac/)}function mp(){return pp(/^iPhone/)}function hp(){return pp(/^iPad/)||fp()&&navigator.maxTouchPoints>1}function gp(){return mp()||hp()}function vp(){return fp()||gp()}function yp(){return dp(/AppleWebKit/)&&!bp()}function bp(){return dp(/Chrome/)}function wp(){return dp(/Android/)}function xp(e,t,n,r){let o=c(n);o.current=n;let i=null==n;a(()=>{if(i)return;let n=e.current,a=e=>o.current.call(this,e);return n.addEventListener(t,a,r),()=>{n.removeEventListener(t,a,r)}},[e,t,r,i])}function _p(e){let[t,n]=r(e),o=c(t),i=c(null);o.current=t;let a=c(null);a.current=()=>{let e=i.current.next();e.done?i.current=null:t===e.value?a.current():n(e.value)},Id(()=>{i.current&&a.current()});let s=d(e=>{i.current=e(o.current),a.current()},[i,a]);return[t,s]}function Ep(e,t){let n=Sp(e,t,"left"),r=Sp(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,s=e.scrollTop,c=a+e.offsetWidth,l=s+e.offsetHeight;n<=a?a=n:n+o>c&&(a+=n+o-c),r<=s?s=r:r+i>l&&(s+=r+i-l),e.scrollLeft=a,e.scrollTop=s}function Sp(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 kp(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}Td(up,"isMac",()=>fp),Td(up,"isIPhone",()=>mp),Td(up,"isIPad",()=>hp),Td(up,"isIOS",()=>gp),Td(up,"isAppleDevice",()=>vp),Td(up,"isWebKit",()=>yp),Td(up,"isChrome",()=>bp),Td(up,"isAndroid",()=>wp),Td({},"useEvent",()=>xp),Td({},"useValueEffect",()=>_p),Td({},"scrollIntoView",()=>Ep),kp({},"Pressable",()=>Hp),kp({},"usePress",()=>Bp);let Cp="default",Tp="",Np=new WeakMap;function Ip(e){gp()?("default"===Cp&&(Tp=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),Cp="disabled"):e&&(Np.set(e,e.style.userSelect),e.style.userSelect="none")}function Pp(e){if(gp()){if("disabled"!==Cp)return;Cp="restoring",setTimeout(()=>{qd(()=>{"restoring"===Cp&&("none"===document.documentElement.style.webkitUserSelect&&(document.documentElement.style.webkitUserSelect=Tp||""),Tp="",Cp="default")})},300)}else if(e&&Np.has(e)){let t=Np.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),Np.delete(e)}}function Op(e){return!(0!==e.mozInputSource||!e.isTrusted)||0===e.detail&&!e.pointerType}const Ap=t.createContext(null);function Bp(e){let{onPress:t,onPressChange:n,onPressStart:s,onPressEnd:l,onPressUp:u,isDisabled:d,isPressed:p,preventFocusOnPress:f,shouldCancelOnPointerExit:m,allowTextSelectionOnPress:h,ref:g,...v}=function(e){let t=i(Ap);if(t){let{register:n,...r}=t;e=Ld(r,e),n()}return tp(t,e.ref),e}(e),y=c(null);y.current={onPress:t,onPressChange:n,onPressStart:s,onPressEnd:l,onPressUp:u,isDisabled:d,shouldCancelOnPointerExit:m};let[b,w]=r(!1),x=c({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:_,removeAllGlobalListeners:E}=Gd(),S=o(()=>{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:s}=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&&!s&&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(Rp(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,E(),h||Pp(e.target))},i={onKeyDown(n){Lp(n.nativeEvent)&&n.currentTarget.contains(n.target)&&(jp(n.target)&&n.preventDefault(),n.stopPropagation(),e.isPressed||n.repeat||(e.target=n.currentTarget,e.isPressed=!0,t(n,"keyboard"),_(document,"keyup",a,!1)))},onKeyUp(t){Lp(t.nativeEvent)&&!t.repeat&&t.currentTarget.contains(t.target)&&r(Rp(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&&!Op(o.nativeEvent)||(d||f||jd(o.currentTarget),t(o,"virtual"),r(o,"virtual"),n(o,"virtual")),e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1)}},a=t=>{if(e.isPressed&&Lp(t)){jp(t.target)&&t.preventDefault(),t.stopPropagation(),e.isPressed=!1;let r=t.target;n(Rp(e.target,t),"keyboard",e.target.contains(r)),E(),(e.target.contains(r)&&Fp(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?e.pointerType="virtual":(Dp(n.target)&&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||jd(n.currentTarget),h||Ip(e.target),t(n,e.pointerType),_(document,"pointermove",a,!1),_(document,"pointerup",s,!1),_(document,"pointercancel",c,!1))))},i.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(Dp(e.target)&&e.preventDefault(),e.stopPropagation())},i.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&Mp(t,t.currentTarget)&&r(t,e.pointerType||t.pointerType)};let a=r=>{r.pointerId===e.activePointerId&&(Mp(r,e.target)?e.isOverTarget||(e.isOverTarget=!0,t(Rp(e.target,r),e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,n(Rp(e.target,r),e.pointerType,!1),y.current.shouldCancelOnPointerExit&&o(r)))},s=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&(Mp(t,e.target)?n(Rp(e.target,t),e.pointerType):e.isOverTarget&&n(Rp(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,E(),h||Pp(e.target))},c=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)&&(Dp(n.target)&&n.preventDefault(),n.stopPropagation(),e.ignoreEmulatedMouseEvents||(e.isPressed=!0,e.isOverTarget=!0,e.target=n.currentTarget,e.pointerType=Op(n.nativeEvent)?"virtual":"mouse",d||f||jd(n.currentTarget),t(n,e.pointerType),_(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,E(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(Mp(t,e.target)?n(Rp(e.target,t),e.pointerType):e.isOverTarget&&n(Rp(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||jd(n.currentTarget),h||Ip(e.target),t(n,e.pointerType),_(window,"scroll",s,!0))},i.onTouchMove=r=>{if(!r.currentTarget.contains(r.target))return;if(r.stopPropagation(),!e.isPressed)return;let i=zp(r.nativeEvent,e.activePointerId);i&&Mp(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=zp(t.nativeEvent,e.activePointerId);o&&Mp(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||Pp(e.target),E()},i.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&o(t))};let s=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},[_,d,f,E,h]);return a(()=>()=>{h||Pp(x.current.target)},[h]),{isPressed:p||b,pressProps:Ld(v,S)}}function Fp(e){return"A"===e.tagName&&e.hasAttribute("href")}function Lp(e){const{key:t,code:n,target:r}=e,o=r,{tagName:i,isContentEditable:a}=o,s=o.getAttribute("role");return!("Enter"!==t&&" "!==t&&"Spacebar"!==t&&"Space"!==n||"INPUT"===i||"TEXTAREA"===i||!0===a||Fp(o)&&("button"!==s||"Enter"===t)||"link"===s&&"Enter"!==t)}function zp(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 Rp(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function Mp(e,t){return function(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}(t.getBoundingClientRect(),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))}function Dp(e){return!e.closest('[draggable="true"]')}function jp(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&"submit"===e.type)}Ap.displayName="PressResponderContext";const Hp=t.forwardRef(({children:e,...n},r)=>{let o=c();r=null!=r?r:o;let{pressProps:i}=Bp({...n,ref:r}),a=t.Children.only(e);return t.cloneElement(a,{ref:r,...Ld(a.props,i)})});kp({},"PressResponder",()=>Up);const Up=t.forwardRef(({children:e,...n},r)=>{let o=c(!1),s=i(Ap),l=Ld(s||{},{...n,ref:r||(null==s?void 0:s.ref),register(){o.current=!0,s&&s.register()}});return tp(s,r),a(()=>{o.current||console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component.")},[]),t.createElement(Ap.Provider,{value:l},e)});function Vp(e){if(e.isDisabled)return{focusProps:{}};let t,n;return(e.onFocus||e.onFocusChange)&&(t=t=>{t.target===t.currentTarget&&(e.onFocus&&e.onFocus(t),e.onFocusChange&&e.onFocusChange(!0))}),(e.onBlur||e.onFocusChange)&&(n=t=>{t.target===t.currentTarget&&(e.onBlur&&e.onBlur(t),e.onFocusChange&&e.onFocusChange(!1))}),{focusProps:{onFocus:t,onBlur:n}}}kp({},"useFocus",()=>Vp);var Kp={};kp(Kp,"isFocusVisible",()=>of),kp(Kp,"getInteractionModality",()=>af),kp(Kp,"setInteractionModality",()=>sf),kp(Kp,"useInteractionModality",()=>cf),kp(Kp,"useFocusVisible",()=>lf),kp(Kp,"useFocusVisibleListener",()=>uf);let $p=null,Wp=new Set,qp=!1,Yp=!1,Xp=!1;const Gp={Tab:!0,Escape:!0};function Jp(e,t){for(let n of Wp)n(e,t)}function Zp(e){Yp=!0,function(e){return!(e.metaKey||!fp()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&($p="keyboard",Jp("keyboard",e))}function Qp(e){$p="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Yp=!0,Jp("pointer",e))}function ef(e){Op(e)&&(Yp=!0,$p="virtual")}function tf(e){e.target!==window&&e.target!==document&&(Yp||Xp||($p="virtual",Jp("virtual",e)),Yp=!1,Xp=!1)}function nf(){Yp=!1,Xp=!0}function rf(){if("undefined"==typeof window||qp)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Yp=!0,e.apply(this,arguments)},document.addEventListener("keydown",Zp,!0),document.addEventListener("keyup",Zp,!0),document.addEventListener("click",ef,!0),window.addEventListener("focus",tf,!0),window.addEventListener("blur",nf,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",Qp,!0),document.addEventListener("pointermove",Qp,!0),document.addEventListener("pointerup",Qp,!0)):(document.addEventListener("mousedown",Qp,!0),document.addEventListener("mousemove",Qp,!0),document.addEventListener("mouseup",Qp,!0)),qp=!0}function of(){return"pointer"!==$p}function af(){return $p}function sf(e){$p=e,Jp(e,null)}function cf(){rf();let[e,t]=r($p);return a(()=>{let e=()=>{t($p)};return Wp.add(e),()=>{Wp.delete(e)}},[]),e}function lf(e={}){let{isTextInput:t,autoFocus:n}=e,[o,i]=r(n||of());return uf(e=>{i(e)},[t],{isTextInput:t}),{isFocusVisible:o}}function uf(e,t,n){rf(),a(()=>{let t=(t,r)=>{(function(e,t,n){return!(e&&"keyboard"===t&&n instanceof KeyboardEvent&&!Gp[n.key])})(null==n?void 0:n.isTextInput,t,r)&&e(of())};return Wp.add(t),()=>{Wp.delete(t)}},t)}function df(e){let t=c({isFocusWithin:!1}).current;return e.isDisabled?{focusWithinProps:{}}:{focusWithinProps:{onFocus:n=>{t.isFocusWithin||(e.onFocusWithin&&e.onFocusWithin(n),e.onFocusWithinChange&&e.onFocusWithinChange(!0),t.isFocusWithin=!0)},onBlur:n=>{t.isFocusWithin&&!n.currentTarget.contains(n.relatedTarget)&&(e.onBlurWithin&&e.onBlurWithin(n),e.onFocusWithinChange&&e.onFocusWithinChange(!1),t.isFocusWithin=!1)}}}}"undefined"!=typeof document&&("loading"!==document.readyState?rf():document.addEventListener("DOMContentLoaded",rf)),kp({},"useFocusWithin",()=>df),kp({},"useHover",()=>vf);let pf=!1,ff=0;function mf(){pf=!0,setTimeout(()=>{pf=!1},50)}function hf(e){"touch"===e.pointerType&&mf()}function gf(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",hf):document.addEventListener("touchend",mf),ff++,()=>{ff--,ff>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",hf):document.removeEventListener("touchend",mf))}}function vf(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:i,isDisabled:s}=e,[l,u]=r(!1),d=c({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;a(gf,[]);let{hoverProps:p,triggerHoverEnd:f}=o(()=>{let e=(e,r)=>{if(d.pointerType=r,s||"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=>{pf&&"mouse"===t.pointerType||e(t,t.pointerType)},o.onPointerLeave=e=>{!s&&e.currentTarget.contains(e.target)&&r(e,e.pointerType)}):(o.onTouchStart=()=>{d.ignoreEmulatedMouseEvents=!0},o.onMouseEnter=t=>{d.ignoreEmulatedMouseEvents||pf||e(t,"mouse"),d.ignoreEmulatedMouseEvents=!1},o.onMouseLeave=e=>{!s&&e.currentTarget.contains(e.target)&&r(e,"mouse")}),{hoverProps:o,triggerHoverEnd:r}},[t,n,i,s,d]);return a(()=>{s&&f({currentTarget:d.target},d.pointerType)},[s]),{hoverProps:p,isHovered:l}}function yf(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,i=c({isPointerDown:!1,ignoreEmulatedMouseEvents:!1,onInteractOutside:n,onInteractOutsideStart:o}).current;i.onInteractOutside=n,i.onInteractOutsideStart=o,a(()=>{if(r)return;let e=e=>{bf(e,t)&&i.onInteractOutside&&(i.onInteractOutsideStart&&i.onInteractOutsideStart(e),i.isPointerDown=!0)};if("undefined"!=typeof PointerEvent){let n=e=>{i.isPointerDown&&i.onInteractOutside&&bf(e,t)&&(i.isPointerDown=!1,i.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=>{i.ignoreEmulatedMouseEvents?i.ignoreEmulatedMouseEvents=!1:i.isPointerDown&&i.onInteractOutside&&bf(e,t)&&(i.isPointerDown=!1,i.onInteractOutside(e))},r=e=>{i.ignoreEmulatedMouseEvents=!0,i.onInteractOutside&&i.isPointerDown&&bf(e,t)&&(i.isPointerDown=!1,i.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,i,r])}function bf(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 wf(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 xf(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:wf(e.onKeyDown),onKeyUp:wf(e.onKeyUp)}}}function _f(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=c({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:a,removeGlobalListener:s}=Gd();return{moveProps:o(()=>{let e={},o=()=>{Ip(),i.current.didMove=!1},c=(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}))},l=(e,t)=>{Pp(),i.current.didMove&&(null==r||r({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&&(c(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&&(l(e,"mouse"),s(window,"mousemove",t,!1),s(window,"mouseup",n,!1))};e.onMouseDown=e=>{0===e.button&&(o(),e.stopPropagation(),e.preventDefault(),i.current.lastPosition={pageX:e.pageX,pageY:e.pageY},a(window,"mousemove",t,!1),a(window,"mouseup",n,!1))};let r=e=>{let t=[...e.changedTouches].findIndex(({identifier:e})=>e===i.current.id);if(t>=0){let{pageX:n,pageY:r}=e.changedTouches[t];c(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&&(l(e,"touch"),i.current.id=null,s(window,"touchmove",r),s(window,"touchend",u),s(window,"touchcancel",u))};e.onTouchStart=e=>{if(0===e.changedTouches.length||null!=i.current.id)return;let{pageX:t,pageY:n,identifier:s}=e.changedTouches[0];o(),e.stopPropagation(),e.preventDefault(),i.current.lastPosition={pageX:t,pageY:n},i.current.id=s,a(window,"touchmove",r,!1),a(window,"touchend",u,!1),a(window,"touchcancel",u,!1)}}else{let t=e=>{if(e.pointerId===i.current.id){let t=e.pointerType||"mouse";c(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";l(e,r),i.current.id=null,s(window,"pointermove",t,!1),s(window,"pointerup",n,!1),s(window,"pointercancel",n,!1)}};e.onPointerDown=e=>{0===e.button&&null==i.current.id&&(o(),e.stopPropagation(),e.preventDefault(),i.current.lastPosition={pageX:e.pageX,pageY:e.pageY},i.current.id=e.pointerId,a(window,"pointermove",t,!1),a(window,"pointerup",n,!1),a(window,"pointercancel",n,!1))}}let u=(e,t,n)=>{o(),c(e,"keyboard",t,n),l(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,r,a,s])}}function Ef(e,t){let{onScroll:n,isDisabled:r}=e,o=d(e=>{e.ctrlKey||(e.preventDefault(),e.stopPropagation(),n&&n({deltaX:e.deltaX,deltaY:e.deltaY}))},[n]);xp(t,"wheel",r?null:o)}kp({},"useInteractOutside",()=>yf),kp({},"useKeyboard",()=>xf),kp({},"useMove",()=>_f),kp({},"useScrollWheel",()=>Ef),kp({},"useLongPress",()=>kf);const Sf=500;function kf(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=Sf,accessibilityDescription:a}=e;const s=c(null);let{addGlobalListener:l,removeGlobalListener:u}=Gd(),{pressProps:d}=Bp({isDisabled:t,onPressStart(e){if(("mouse"===e.pointerType||"touch"===e.pointerType)&&(n&&n({...e,type:"longpressstart"}),s.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...e,type:"longpress"}),s.current=null},i),"touch"===e.pointerType)){let t=e=>{e.preventDefault()};l(e.target,"contextmenu",t,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{u(e.target,"contextmenu",t)},30)},{once:!0})}},onPressEnd(e){s.current&&clearTimeout(s.current),!r||"mouse"!==e.pointerType&&"touch"!==e.pointerType||r({...e,type:"longpressend"})}});return{longPressProps:Ld(d,lp(o&&!t?a:null))}}function Cf(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Tf={};function Nf(e){if("virtual"===af()){let t=document.activeElement;qd(()=>{document.activeElement===t&&document.contains(e)&&jd(e)})}else jd(e)}Cf(Tf,"FocusScope",()=>Af),Cf(Tf,"useFocusManager",()=>Bf),Cf(Tf,"getFocusableTreeWalker",()=>Vf),Cf(Tf,"createFocusManager",()=>Kf),Cf({},"focusSafely",()=>Nf);const If=t.createContext(null);let Pf=null,Of=new Map;function Af(e){let{children:n,contain:r,restoreFocus:o,autoFocus:s}=e,l=c(),u=c(),d=c([]),p=i(If),f=null==p?void 0:p.scopeRef;Id(()=>{let e=l.current.nextSibling,t=[];for(;e&&e!==u.current;)t.push(e),e=e.nextSibling;d.current=t},[n,f]),Id(()=>(Of.set(d,f),()=>{d!==Pf&&!jf(d,Pf)||f&&!Of.has(f)||(Pf=f),Of.delete(d)}),[d,f]),function(e,t){let n=c(),r=c(null);Id(()=>{let o=e.current;if(!t)return;let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||e!==Pf)return;let n=document.activeElement,r=e.current;if(!Mf(n,r))return;let o=Vf(Rf(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&&Hf(i,!0)},a=t=>{!Pf||jf(Pf,e)?(Pf=e,n.current=t.target):e!==Pf||Df(t.target,e)?e===Pf&&(n.current=t.target):n.current?n.current.focus():Pf&&Uf(Pf.current)},s=t=>{r.current=requestAnimationFrame(()=>{e!==Pf||Df(document.activeElement,e)||(Pf=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",s,!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",s,!1))}},[e,t]),a(()=>()=>cancelAnimationFrame(r.current),[r])}(d,r),function(e,t,n){const r=c("undefined"!=typeof document?document.activeElement:null);Id(()=>{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(!Mf(n,e.current))return;let r=Vf(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||!Mf(i,e.current))&&o){r.currentNode=o;do{i=t.shiftKey?r.previousNode():r.nextNode()}while(Mf(i,e.current));t.preventDefault(),t.stopPropagation(),i?Hf(i,!0):function(e){for(let t of Of.keys())if(Mf(e,t.current))return!0;return!1}(o)?Hf(o,!0):n.blur()}};return n||document.addEventListener("keydown",i,!0),()=>{n||document.removeEventListener("keydown",i,!0),t&&o&&Mf(document.activeElement,e.current)&&requestAnimationFrame(()=>{document.body.contains(o)&&Hf(o)})}},[e,t,n])}(d,o,r),function(e,n){const r=t.useRef(n);a(()=>{r.current&&(Pf=e,Mf(document.activeElement,Pf.current)||Uf(e.current)),r.current=!1},[])}(d,s);let m=function(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i}=t,a=r||document.activeElement,s=n[0].previousElementSibling,c=Vf(Rf(n),{tabbable:o},n);c.currentNode=Mf(a,n)?a:s;let l=c.nextNode();return!l&&i&&(c.currentNode=s,l=c.nextNode()),l&&Hf(l,!0),l},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i}=t,a=r||document.activeElement,s=n[n.length-1].nextElementSibling,c=Vf(Rf(n),{tabbable:o},n);c.currentNode=Mf(a,n)?a:s;let l=c.previousNode();return!l&&i&&(c.currentNode=s,l=c.previousNode()),l&&Hf(l,!0),l},focusFirst(t={}){let n=e.current,{tabbable:r}=t,o=Vf(Rf(n),{tabbable:r},n);o.currentNode=n[0].previousElementSibling;let i=o.nextNode();return i&&Hf(i,!0),i},focusLast(t={}){let n=e.current,{tabbable:r}=t,o=Vf(Rf(n),{tabbable:r},n);o.currentNode=n[n.length-1].nextElementSibling;let i=o.previousNode();return i&&Hf(i,!0),i}}}(d);return t.createElement(If.Provider,{value:{scopeRef:d,focusManager:m}},t.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:l}),n,t.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:u}))}function Bf(){var e;return null===(e=i(If))||void 0===e?void 0:e.focusManager}const Ff=["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]"],Lf=Ff.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Ff.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const zf=Ff.join(':not([hidden]):not([tabindex="-1"]),');function Rf(e){return e[0].parentElement}function Mf(e,t){return t.some(t=>t.contains(e))}function Df(e,t){for(let n of Of.keys())if((n===t||jf(t,n))&&Mf(e,n.current))return!0;return!1}function jf(e,t){let n=Of.get(t);return!!n&&(n===e||jf(e,n))}function Hf(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{Nf(e)}catch(e){}}function Uf(e){let t=e[0].previousElementSibling,n=Vf(Rf(e),{tabbable:!0},e);n.currentNode=t,Hf(n.nextNode())}function Vf(e,t,n){let r=(null==t?void 0:t.tabbable)?zf:Lf,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)&&function e(t,n){return"#comment"!==t.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}(t)&&function(e,t){return!e.hasAttribute("hidden")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(t,n)&&(!t.parentElement||e(t.parentElement,t))}(e)&&(!n||Mf(e,n))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return(null==t?void 0:t.from)&&(o.currentNode=t.from),o}function Kf(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i}=t,a=r||document.activeElement,s=Vf(n,{tabbable:o});n.contains(a)&&(s.currentNode=a);let c=s.nextNode();return!c&&i&&(s.currentNode=n,c=s.nextNode()),c&&Hf(c,!0),c},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i}=t,a=r||document.activeElement,s=Vf(n,{tabbable:o});if(!n.contains(a)){let e=$f(s);return e&&Hf(e,!0),e}s.currentNode=a;let c=s.previousNode();return!c&&i&&(s.currentNode=n,c=$f(s)),c&&Hf(c,!0),c},focusFirst(t={}){let n=e.current,{tabbable:r}=t,o=Vf(n,{tabbable:r}).nextNode();return o&&Hf(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r}=t,o=$f(Vf(n,{tabbable:r}));return o&&Hf(o,!0),o}}}function $f(e){let t,n;do{n=e.lastChild(),n&&(t=n)}while(n);return t}function Wf(e={}){let{autoFocus:t=!1,isTextInput:n,within:o}=e,i=c({isFocused:!1,isFocusVisible:t||of()}).current,[a,s]=r(!1),[l,u]=r(()=>i.isFocused&&i.isFocusVisible),d=()=>u(i.isFocused&&i.isFocusVisible),p=e=>{i.isFocused=e,s(e),d()};uf(e=>{i.isFocusVisible=e,d()},[],{isTextInput:n});let{focusProps:f}=Vp({isDisabled:o,onFocusChange:p}),{focusWithinProps:m}=df({isDisabled:!o,onFocusWithinChange:p});return{isFocused:a,isFocusVisible:i.isFocused&&l,focusProps:o?m:f}}function qf(e){let{children:n,focusClass:r,focusRingClass:o}=e,{isFocused:i,isFocusVisible:a,focusProps:s}=Wf(e),c=t.Children.only(n);return t.cloneElement(c,Ld(c.props,{...s,className:wd({[r||""]:i,[o||""]:a})}))}Cf({},"FocusRing",()=>qf),Cf({},"useFocusRing",()=>Wf);var Yf={};Cf(Yf,"FocusableProvider",()=>Jf),Cf(Yf,"useFocusable",()=>Zf);let Xf=t.createContext(null);function Gf(e,n){let{children:r,...o}=e,i={...o,ref:n};return t.createElement(Xf.Provider,{value:i},r)}let Jf=t.forwardRef(Gf);function Zf(e,t){let{focusProps:n}=Vp(e),{keyboardProps:r}=xf(e),o=Ld(n,r),s=function(e){let t=i(Xf)||{};tp(t,e);let{ref:n,...r}=t;return r}(t),l=e.isDisabled?{}:s,u=c(e.autoFocus);return a(()=>{u.current&&t.current&&t.current.focus(),u.current=!1},[]),{focusableProps:Ld({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},l)}}var Qf={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},em=e.createContext&&e.createContext(Qf),tm=function(){return(tm=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}).apply(this,arguments)};function nm(t){return function(n){return e.createElement(rm,tm({attr:tm({},t.attr)},n),function t(n){return n&&n.map((function(n,r){return e.createElement(n.tag,tm({key:r},n.attr),t(n.child))}))}(t.child))}}function rm(t){var n=function(n){var r,o=t.size||n.size||"1em";n.className&&(r=n.className),t.className&&(r=(r?r+" ":"")+t.className);var i=t.attr,a=t.title,s=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&&(n[r[o]]=e[r[o]])}return n}(t,["attr","title"]);return e.createElement("svg",tm({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,i,s,{className:r,style:tm({color:t.color||n.color},n.style,t.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),a&&e.createElement("title",null,a),t.children)};return void 0!==em?e.createElement(em.Consumer,null,(function(e){return n(e)})):n(Qf)}var om=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{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)};om.displayName="MdAspectRatio";var im=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}}]})(e)};im.displayName="MdExitToApp";var am=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{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)};am.displayName="MdLabel";var sm=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}}]})(e)};sm.displayName="MdOpenInNew";var cm=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.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)};cm.displayName="MdSearch";var lm=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{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)};lm.displayName="MdVideocam";var um=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.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)};um.displayName="MdVolumeUp";var dm=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"}}]})(e)};dm.displayName="MdSort";var pm=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{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)};pm.displayName="MdInsertDriveFile";var fm=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{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)};fm.displayName="MdInsertPhoto";var mm=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{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)};mm.displayName="MdPhotoCamera";var hm=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{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)};hm.displayName="MdPhotoLibrary";var gm=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3 17v2h6v-2H3zM3 5v2h10V5H3zm10 16v-2h8v-2h-8v-2h-2v6h2zM7 9v2H3v2h4v2h2V9H7zm14 4v-2H11v2h10zm-6-4h2V7h4V5h-4V3h-2v6z"}}]})(e)};gm.displayName="MdTune";var vm=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M7 10l5 5 5-5z"}}]})(e)};vm.displayName="MdArrowDropDown";var ym=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{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)};ym.displayName="MdCancel";var bm=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}}]})(e)};bm.displayName="MdCheck";var wm=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}}]})(e)};wm.displayName="MdChevronLeft";var xm=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}}]})(e)};xm.displayName="MdChevronRight";var _m=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{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)};_m.displayName="MdClose";var Em={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 s in o)t.call(o,s)&&o[s]&&e.push(s);else e.push(o.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(hl);var ml=hl.exports,gl=!1;if("undefined"!=typeof window){var vl={get passive(){gl=!0}};window.addEventListener("testPassive",null,vl),window.removeEventListener("testPassive",null,vl)}var yl="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),bl=[],xl=!1,_l=-1,wl=void 0,Sl=void 0,El=function(e){return bl.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},kl=function(e){var t=e||window.event;return!!El(t.target)||t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1)};function Cl(){return(Cl=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 Tl=function(e){var n=e.classes,r=e.classNames,o=e.styles,i=e.id,a=e.closeIcon,s=e.onClick;return t.createElement("button",{id:i,className:ml(n.closeButton,null==r?void 0:r.closeButton),style:null==o?void 0:o.closeButton,onClick:s,"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"})))},Nl="undefined"!=typeof window,Il=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'];function Ol(e){return null===e.offsetParent||"hidden"===getComputedStyle(e).visibility}function Al(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 Pl(e){for(var t=document.activeElement,n=e.querySelectorAll(Il.join(",")),r=[],o=0;o<n.length;o++){var i=n[o];(t===i||!i.disabled&&Bl(i)>-1&&!Ol(i)&&Al(i))&&r.push(i)}return r}function Bl(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return e.getAttribute("contentEditable")}(e)?0:e.tabIndex:t}var Rl=function(e){var t=e.container,n=e.initialFocusRef,r=l();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=Pl(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(Nl&&document.addEventListener("keydown",e),Nl&&(null==t?void 0:t.current)){var o=function(){-1!==Il.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=Pl(t.current);i[0]&&(o(),i[0].focus())}}return function(){var t;Nl&&(document.removeEventListener("keydown",e),null==(t=r.current)||t.focus())}}),[t,n]),null},Fl=[],zl={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"},Ll=t.forwardRef((function(e,n){var o,i,s,c,u=e.open,d=e.center,p=e.blockScroll,h=void 0===p||p,m=e.closeOnEsc,g=void 0===m||m,v=e.closeOnOverlayClick,y=void 0===v||v,b=e.container,x=e.showCloseIcon,_=void 0===x||x,w=e.closeIconId,S=e.closeIcon,E=e.focusTrapped,k=void 0===E||E,C=e.initialFocusRef,T=void 0===C?void 0:C,N=e.animationDuration,I=void 0===N?300:N,O=e.classNames,A=e.styles,P=e.role,B=void 0===P?"dialog":P,R=e.ariaDescribedby,F=e.ariaLabelledby,z=e.modalId,L=e.onClose,j=e.onEscKeyDown,M=e.onOverlayClick,D=e.onAnimationEnd,H=e.children,U=function(e){var n=function(e){void 0===e&&(e=null);var n=t.useState(e),r=n[0],o=n[1],i=t.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 t.useEffect((function(){e&&("function"==typeof e?e(n.current):e.current=n.current)})),n}(n),q=l(null),V=l(null),W=l(null);null===W.current&&Nl&&(W.current=document.createElement("div"));var $=r(!1),Y=$[0],G=$[1];!function(e,t){a((function(){return t&&(n=e,Fl.push(n)),function(){var t;t=e,Fl=Fl.filter((function(e){return e!==t}))};var n}),[t,e])}(q,u),function(e,t,n,r){var o=l(null);a((function(){return t&&e.current&&r&&(o.current=e.current,function(e,t){if(e){if(!bl.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};bl=[].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)}(bl),[n]),yl?(e.ontouchstart=function(e){1===e.targetTouches.length&&(_l=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-_l;!El(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?kl(e):e.stopPropagation())}(t,e)},xl||(document.addEventListener("touchmove",kl,gl?{passive:!1}:void 0),xl=!0)):function(e){if(void 0===Sl){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(Sl=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===wl&&(wl=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)),function(){var e;o.current&&((e=o.current)?(bl=bl.filter((function(t){return t.targetElement!==e})),yl?(e.ontouchstart=null,e.ontouchmove=null,xl&&0===bl.length&&(document.removeEventListener("touchmove",kl,gl?{passive:!1}:void 0),xl=!1)):bl.length||(void 0!==Sl&&(document.body.style.paddingRight=Sl,Sl=void 0),void 0!==wl&&(document.body.style.overflow=wl,wl=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices."),o.current=null)}}),[t,n,e])}(q,u,Y,h);var X=function(e){var t;27===e.keyCode&&(t=q,Fl.length&&Fl[Fl.length-1]===t)&&(null==j||j(e),g&&L())};a((function(){return function(){Y&&(W.current&&!b&&document.body.contains(W.current)&&document.body.removeChild(W.current),document.removeEventListener("keydown",X))}}),[Y]),a((function(){u&&!Y&&(G(!0),!W.current||b||document.body.contains(W.current)||document.body.appendChild(W.current),document.addEventListener("keydown",X))}),[u]);var J=function(){V.current=!1},K=b||W.current,Z=u?null!=(o=null==O?void 0:O.overlayAnimationIn)?o:zl.overlayAnimationIn:null!=(i=null==O?void 0:O.overlayAnimationOut)?i:zl.overlayAnimationOut,Q=u?null!=(s=null==O?void 0:O.modalAnimationIn)?s:zl.modalAnimationIn:null!=(c=null==O?void 0:O.modalAnimationOut)?c:zl.modalAnimationOut;return Y&&K?f.createPortal(t.createElement("div",{className:ml(zl.root,null==O?void 0:O.root),style:null==A?void 0:A.root,"data-testid":"root"},t.createElement("div",{className:ml(zl.overlay,null==O?void 0:O.overlay),"data-testid":"overlay","aria-hidden":!0,style:Cl({animation:Z+" "+I+"ms"},null==A?void 0:A.overlay)}),t.createElement("div",{ref:q,className:ml(zl.modalContainer,d&&zl.modalContainerCenter,null==O?void 0:O.modalContainer),style:null==A?void 0:A.modalContainer,"data-testid":"modal-container",onClick:function(e){null===V.current&&(V.current=!0),V.current?(null==M||M(e),y&&L(),V.current=null):V.current=null}},t.createElement("div",{ref:U,className:ml(zl.modal,null==O?void 0:O.modal),style:Cl({animation:Q+" "+I+"ms"},null==A?void 0:A.modal),onMouseDown:J,onMouseUp:J,onClick:J,onAnimationEnd:function(){u||G(!1),null==D||D()},id:z,role:B,"aria-modal":"true","aria-labelledby":F,"aria-describedby":R,"data-testid":"modal",tabIndex:-1},k&&t.createElement(Rl,{container:U,initialFocusRef:T}),H,_&&t.createElement(Tl,{classes:zl,classNames:O,styles:A,closeIcon:S,onClick:L,id:w})))),K):null}));const jl={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)",blue400:"var(--blue400)",blue300:"var(--blue300)",blue200:"var(--blue200)",blue100:"var(--blue100)",red400:"var(--red400)",red500:"var(--red500)",red600:"var(--red600)",red700:"var(--red700)",yellow500:"var(--yellow500)",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)",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)"},Ml=cc(["color:",";font-size:",";font-family:",";line-height:",";"],jl.colorText,jl.fontSizeBase,jl.brandFontStackBase,jl.lineHeightBase);wc.div.withConfig({displayName:"BaseStyles",componentId:"zvdl8u-0"})(["",""],Ml),wc.div.withConfig({shouldForwardProp:(e,t)=>!["color"].includes(e)&&t(e)}).withConfig({displayName:"BadgeStyled",componentId:"zvdl8u-1"})(["display:inline-flex;vertical-align:middle;flex-wrap:nowrap;align-items:center;justify-content: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?jl.spacing2:"6px",e=>e.isPillShaped?jl.radiusPill:jl.radiusMedium,jl.white,jl.fontSize50,e=>{if(!e.isSecondary&&e.color){const t={brand:jl.brandPrimary500,gray:jl.gray400,black:jl.gray900,blue:jl.blue500,red:jl.red400};return e.hasBorder?cc(["border-color:",";color:",";"],t[e.color],t[e.color]):cc(["background-color:",";"],t[e.color])}if(e.isSecondary)return cc(["border-color:",";background-color:",";color:",";"],e.hasBorder?jl.gray100:"transparent",e.hasBorder?jl.white:jl.gray100,jl.gray800)}),wc.div.withConfig({displayName:"IconHolder",componentId:"zvdl8u-2"})(["display:flex;align-items:center;height:100%;margin-right:",";margin-left:calc("," * -1);svg{width:18px;height:18px;}"],e=>e.isSmall?jl.spacing1:jl.spacing2,jl.spacing1),wc.div.withConfig({shouldForwardProp:(e,t)=>!["color"].includes(e)&&t(e)}).withConfig({displayName:"Track1",componentId:"zvdl8u-3"})(["overflow:hidden;height:4px;border-radius:",";background:",";"],e=>e.noCornerRadius?"0":jl.radiusPill,e=>"brand"===e.color?jl.brandPrimary500:`\n\t\t\t\tlinear-gradient(\n\t\t\t\t\t0deg,\n\t\t\t\t\trgb(${jl["white-rgb"]} / 30%),\n\t\t\t\t\trgb(${jl["white-rgb"]} / 30%)\n\t\t\t\t),\n\t\t\t\t${jl.gray100a}\n\t\t\t`);const Dl=kc(["to{transform:translateX(-40px);}"]),Hl=`rgb(${jl["white-rgb"]} / 0.15)`,Ul=`rgb(${jl["gray1000-rgb"]} / 0.15)`;wc.div.withConfig({displayName:"Fill2",componentId:"zvdl8u-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;"],Hl,Ul,Ul,Hl,Hl,Ul,Ul,Dl);const ql={paragraphS:cc(["font-weight:normal;font-size:",";line-height:",";"],jl.fontSize75,jl.lineHeightText),paragraphM:cc(["font-weight:normal;font-size:",";line-height:",";"],jl.fontSize100,jl.lineHeightText),paragraphL:cc(["font-weight:normal;font-size:",";line-height:",";"],jl.fontSize200,jl.lineHeightText),uiTextXS:cc(["font-weight:normal;font-size:",";line-height:20px;"],jl.fontSize50),uiTextS:cc(["font-weight:normal;font-size:",";line-height:20px;"],jl.fontSize75),uiTextM:cc(["font-weight:normal;font-size:",";line-height:20px;"],jl.fontSize100),uiTextL:cc(["font-weight:normal;font-size:",";line-height:24px;"],jl.fontSize200),headingXS:cc(["font-weight:600;font-size:",";line-height:",";"],jl.fontSize100,jl.lineHeightHeading),headingS:cc(["font-weight:600;font-size:",";line-height:",";"],jl.fontSize200,jl.lineHeightHeading),headingM:cc(["font-weight:normal;font-size:",";line-height:",";"],jl.fontSize400,jl.lineHeightHeading),headingL:cc(["font-weight:normal;font-size:",";line-height:",";"],jl.fontSize600,jl.lineHeightHeading),headingXL:cc(["font-weight:normal;font-size:",";line-height:",";"],jl.fontSize800,jl.lineHeightHeading),headingXXL:cc(["font-weight:normal;font-size:",";line-height:",";"],jl.fontSize1000,jl.lineHeightHeading)};wc.label.withConfig({displayName:"Container5",componentId:"zvdl8u-5"})([""," display:flex;align-items:flex-start;margin:0;padding:"," 0;cursor:",";user-select:none;"],ql.uiTextM,jl.spacing1,e=>!e.isDisabled&&"pointer"),wc.div.withConfig({displayName:"IndicatorPosition1",componentId:"zvdl8u-6"})(["display:flex;flex:none;align-items:center;&::before{content:'';}"]),wc.div.withConfig({displayName:"Indicator2",componentId:"zvdl8u-7"})(["position:relative;display:flex;align-items:center;justify-content: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:",";}"],jl.gray300,jl.radiusMedium,jl.focusRingWidth,jl.radiusMedium,e=>e.isFocusVisible&&cc(["border-color:",";&::before{border-color:",";}"],jl.gray500,e.isChecked||e.isIndeterminate?jl.focusRingColorPrimary:jl.focusRingColorSecondary),e=>e.isChecked&&cc(["border-color:transparent;background-color:",";fill:#fff;"],jl.blue500),e=>e.isIndeterminate&&cc(["border-color:transparent;background-color:",";"],jl.blue500),e=>e.isDisabled&&cc(["border-color:transparent;background-color:",";fill:",";"],jl.gray100,jl.gray500),".ds-checkbox__pointer-events-wrapper",".ds-checkbox__pointer-events-wrapper",e=>!e.isChecked&&!e.isIndeterminate&&!e.isDisabled&&`border-color: ${jl.gray500};`,e=>!e.isChecked&&!e.isIndeterminate||e.isDisabled?void 0:jl.blue600),wc.input.withConfig({displayName:"Input1",componentId:"zvdl8u-8"})(["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%);"]),wc.div.withConfig({displayName:"IndeterminateMark",componentId:"zvdl8u-9"})(["width:8px;height:2px;border-radius:",";background-color:",";"],jl.radiusPill,jl.white),wc.div.withConfig({displayName:"Label4",componentId:"zvdl8u-10"})(["display:block;margin-left:8px;color:",";"],e=>e.isDisabled?jl.gray400:jl.colorText),wc.div.withConfig({displayName:"GroupStyled",componentId:"zvdl8u-11"})(["margin:0;padding:"," 0;border:0;"],jl.spacing3),wc.div.withConfig({displayName:"HelperTextStyled",componentId:"zvdl8u-12"})([""," display:flex;align-items:center;margin-top:",";padding-top:",";color:",";"],ql.uiTextS,jl.spacing2,e=>e.hasIcon?"2px":"0",e=>e.isInvalid?jl.red500:jl.gray600),wc.div.withConfig({displayName:"Icon2",componentId:"zvdl8u-13"})(["flex:none;align-self:flex-start;margin-top:-2px;margin-right:",";"],jl.spacing2),wc.label.withConfig({displayName:"LabelStyled",componentId:"zvdl8u-14"})([""," display:block;margin:0 0 ",";padding:0;border:none;color:",";"],ql.uiTextM,jl.spacing3,jl.colorText),wc.span.withConfig({displayName:"SecondaryText",componentId:"zvdl8u-15"})(["color:",";"],jl.gray600),wc.span.withConfig({displayName:"Space",componentId:"zvdl8u-16"})(["display:inline-block;width:",";"],jl.spacing3),wc.div.withConfig({displayName:"RowStyled",componentId:"zvdl8u-17"})(["display:grid;grid-template-columns:repeat(auto-fit,minmax(10px,1fr));gap:",";"],jl.spacing4),wc.div.withConfig({displayName:"InputRowStyled",componentId:"zvdl8u-18"})(["display:flex;& > *{min-width:min-content;&:not(:first-child){margin-left:",";}}"],jl.spacing4),wc.ul.withConfig({displayName:"List",componentId:"zvdl8u-19"})(["margin:0;padding:0;list-style:none;"]),wc.li.withConfig({displayName:"Item2",componentId:"zvdl8u-20"})(["&:not(:last-child){margin-bottom:",";}"],jl.spacing2);const Vl=wc.span.withConfig({displayName:"DeleteButton",componentId:"zvdl8u-21"})(["display:flex;align-items:center;justify-content: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:",";}"],jl.spacing3,jl.spacing3,jl.radiusCircle,e=>e.isDisabled?jl.gray400:jl.gray600,jl.gray50a,jl.gray800,jl.gray100a);wc.button.withConfig({displayName:"ChipStyled",componentId:"zvdl8u-22"})(["display:inline-flex;align-items:center;border:0;border-radius:",";background-color:",";color:",";outline:none;font-family:",";white-space:nowrap;",";",";",";",";",";"],jl.radiusPill,jl.gray50,jl.gray800,jl.brandFontStackBase,e=>e.onClick&&cc(["cursor:pointer;&:hover{background-color:",";","{color:",";}}&:active{background-color:",";}"],jl.gray75,Vl,jl.gray800,jl.gray100),e=>e.isFocusVisible&&cc(["background:",";box-shadow:inset ",";outline:0;"],jl.gray25,jl.elevationStatic),e=>"m"===e.size&&Yl,e=>"s"===e.size&&$l,e=>e.isDisabled&&Gl);const Wl=wc.div.withConfig({displayName:"ThumbnailContainer1",componentId:"zvdl8u-23"})(["display:block;"]),$l=cc([""," height:32px;padding:0 12px;","{margin:0 "," 0 calc("," * -1);}"],ql.uiTextS,Wl,jl.spacing3,jl.spacing3),Yl=cc([""," height:40px;padding:0 16px;","{margin:0 "," 0 calc("," * -1);}"],ql.uiTextM,Wl,jl.spacing3,jl.spacing4),Gl=cc(["background-color:",";color:",";pointer-events:none;"],jl.gray25,jl.gray400);function Xl(e){if(!function(e){return/^#([\da-f]{3}){1,2}$/i.test(e)}(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)}`}wc.div.withConfig({displayName:"IconContainer1",componentId:"zvdl8u-24"})(["width:24px;height:24px;margin-left:calc("," * -1);padding:0 "," 0 0;"],jl.spacing2,jl.spacing3);const Jl={"--white":"#ffffff","--white-rgb":Xl("#ffffff"),"--gray1000":"#002233","--gray1000-rgb":Xl("#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","--blue400":"#1aa3ff","--blue300":"#33adff","--blue200":"#80ccff","--blue100":"#ccebff","--red400":"#f45225","--red500":"#f23e0d","--red600":"#da380b","--red700":"#c2320a","--yellow500":"#fea900","--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":"#0087e0","--brandPrimary600":"#0095eb","--brandPrimary500":"var(--userBrandPrimary500, #00aaff)","--brandPrimary500-rgb":Xl("#00aaff"),"--brandPrimary300":"#b3e6ff","--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)","--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(--gray25)","--componentButtonCleanFillActive":"var(--gray75)","--componentButtonCleanFillFocus":"transparent","--componentButtonCleanFillDisabled":"transparent","--componentButtonCleanFocusRing":"0 0 0 3px var(--gray50a)"},Kl={"--gray1000":"#ffffff","--gray1000-rgb":Xl("#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"},Zl=Ec`${cc([":root,:host,.",",.","{","}.","{","}"],"ds-light-theme","ds-dark-theme",Ql(Jl),"ds-dark-theme",Ql(Kl))}`;function Ql(e){return Object.entries(e).map(e=>e.join(":")).join(";")+";"}const eu={size:"24px",attr:{"aria-hidden":"true"},style:{verticalAlign:"middle"}};function tu({children:e,noTheme:n}){return t.createElement(Vc.Provider,{value:eu},!n&&t.createElement(Zl,null),e)}wc.div.withConfig({displayName:"ArrowStyled",componentId:"zvdl8u-25"})(["margin-right:calc("," * -1);margin-left:calc("," * -1);"],jl.spacing2,jl.spacing2);const nu=s(({children:e,...n},r)=>t.createElement(ru,Object.assign({role:"menu",ref:r},n),e)),ru=wc.div.withConfig({displayName:"ContainerStyled",componentId:"zvdl8u-26"})(["z-index:1032;overflow-y:auto;box-sizing:border-box;min-width:224px;max-width:336px;max-height:calc(36px * 9.5 + ",");padding:"," 0;border-radius:",";background:",";box-shadow:",",",";"],jl.spacing3,jl.spacing3,jl.radiusBase,jl.gray10,jl.elevationStatic,jl.elevation2);wc.hr.withConfig({displayName:"DividerStyled",componentId:"zvdl8u-27"})(["box-sizing:content-box;height:1px;margin:0;padding:"," 0;border:none;background:",";background-clip:content-box;"],jl.spacing3,jl.gray50),wc.label.withConfig({displayName:"SwitchStyled",componentId:"zvdl8u-28"})([""," display:flex;align-items:baseline;margin:0;padding:"," 0;color:",";cursor:",";user-select:none;"],ql.uiTextM,jl.spacing1,jl.gray800,e=>!e.isDisabled&&"pointer"),wc.span.withConfig({displayName:"Label2",componentId:"zvdl8u-29"})(["align-self:center;margin-right:",";"],jl.spacing4),wc.span.withConfig({displayName:"ToggleAlignment",componentId:"zvdl8u-30"})(["margin-left:auto;&::before{content:'\\200B';display:inline-block;vertical-align:middle;}"]);const ou=wc.span.withConfig({displayName:"Toggle",componentId:"zvdl8u-31"})(["position:relative;display:inline-block;vertical-align:middle;width:36px;height:22px;input{position:absolute;opacity:0;}"]);wc.span.withConfig({displayName:"Indicator1",componentId:"zvdl8u-32"})(["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:",";}",""],jl.radiusPill,e=>e.isDisabled?jl.gray100:jl.gray75,e=>!e.isDisabled&&"pointer",e=>e.isDisabled?jl.gray50:jl.gray10,jl.elevation2,ou,e=>e.isDisabled?jl.gray400:jl.blue500,e=>e.isDisabled?"0.5":"1",e=>e.isDisabled?jl.gray100:jl.gray10,e=>!e.isDisabled&&cc(["",":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",jl.gray100,".ds-switch__pointer-events-wrapper",".ds-switch__pointer-events-wrapper",e=>e.isDisabled?jl.gray400:jl.blue600,e=>e.isFocusVisible&&cc([""," 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:",";}"],ou,jl.gray100,jl.gray200,ou,jl.blue500)),wc.div.withConfig({displayName:"ItemWrapper",componentId:"zvdl8u-33"})(["position:relative;"]);const iu=wc.button.withConfig({displayName:"ItemStyled",componentId:"zvdl8u-34"})([""," 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;}"],ql.uiTextS,jl.spacing5,e=>e.isChecked?jl.gray800:jl.gray600,jl.brandFontStackBase,e=>e.isSubmenuOpen&&cc(["background:",";color:",";"],jl.gray25,jl.gray800),e=>e.isFocusVisible&&cc(["background:",";color:",";"],jl.gray50,jl.gray800),jl.gray25,jl.gray800,jl.gray50,jl.gray800,jl.gray400);function au({children:e,direction:n="row",wrap:r="nowrap",justifyContent:o="flex-start",alignItems:i="stretch",gap:a,...s}){return t.createElement(su,Object.assign({},s),t.createElement(cu,{direction:n,wrap:r,justifyContent:o,alignItems:i,gap:a},e))}wc.span.withConfig({displayName:"CheckboxContainer",componentId:"zvdl8u-35"})(["display:flex;flex:none;align-items:center;justify-content:center;width:24px;height:24px;margin-right:",";"],jl.spacing3),wc.span.withConfig({displayName:"Icon1",componentId:"zvdl8u-36"})(["display:flex;flex:none;align-items:center;justify-content:center;width:24px;height:24px;margin-right:",";"],jl.spacing3),wc.span.withConfig({displayName:"Label1",componentId:"zvdl8u-37"})(["flex:1;overflow:hidden;min-width:0;text-align:left;text-overflow:ellipsis;white-space:nowrap;"]),wc.span.withConfig({displayName:"RightContainer",componentId:"zvdl8u-38"})(["flex:none;margin:0 ",";&:last-child{margin-right:calc("," * -1);}"],jl.spacing3,jl.spacing2),wc.span.withConfig({displayName:"SubmenuIconContainer",componentId:"zvdl8u-39"})(["flex:none;margin-right:calc("," * -1);margin-left:",";color:",";",":hover,",":active{color:",";}"],jl.spacing3,jl.spacing3,e=>e.isActive?jl.gray400:jl.gray200,iu,iu,jl.gray400),wc(nu).withConfig({displayName:"SubMenuContainer",componentId:"zvdl8u-40"})(["margin-top:calc("," * -1);"],jl.spacing3),wc.div.withConfig({displayName:"SectionTitleStyled",componentId:"zvdl8u-41"})([""," overflow:hidden;padding:"," "," ",";color:",";text-overflow:ellipsis;white-space:nowrap;"],ql.uiTextS,jl.spacing4,jl.spacing5,jl.spacing3,jl.gray800),wc.span.withConfig({displayName:"Text1",componentId:"zvdl8u-42"})(["width:100%;text-align:left;"]);const su=wc.div.withConfig({displayName:"Wrapper",componentId:"zvdl8u-43"})(["display:flex;"]),cu=wc.div.withConfig({shouldForwardProp:(e,t)=>!["direction","wrap"].includes(e)&&t(e)}).withConfig({displayName:"Container3",componentId:"zvdl8u-44"})(["display:flex;flex-direction:",";flex-wrap:",";align-items:",";justify-content:",";box-sizing:border-box;width:100%;height:100%;",""],e=>e.direction,e=>e.wrap,e=>e.alignItems,e=>e.justifyContent,e=>{if(!e.gap)return null;const t=jl[`spacing${e.gap}`];return cc(["width:calc(100% + calc("," + 1px));height:calc(100% + ",");margin-bottom:calc("," * -1);margin-left:calc("," * -1);&& > *{margin-bottom:",";margin-left:",";}"],t,t,t,t,t,t)}),lu=wc.button.withConfig({displayName:"ButtonStyled",componentId:"zvdl8u-45"})(["display:inline-flex;vertical-align:middle;flex-wrap:nowrap;align-items:center;justify-content: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;}"," ",";",""],jl.brandRadiusBase,jl.fontSizeBase,jl.brandFontStackBase,jl.lineHeightBase,e=>e.isFullWidth&&"width: 100%;",e=>e.isSmall?cc(["height:32px;padding:0 ",";font-size:",";line-height:20px;"],jl.spacing4,jl.fontSize75):cc(["height:40px;padding:0 ",";"],jl.spacing5),e=>{if("primary"===e.variant){const t=cc(["border-color:",";background-color:",";color:",";box-shadow:none;"],jl.componentButtonPrimaryBorderActive,jl.componentButtonPrimaryFillActive,jl.componentButtonPrimaryColorActive);return cc(["border-color:transparent;background-color:",";color:",";"," &:hover{border-color:",";background-color:",";color:",";box-shadow:",";}&:active{","}"," &:disabled{border-color:",";background-color:",";color:",";box-shadow:none;}"],jl.componentButtonPrimaryFill,jl.componentButtonPrimaryColor,e.isPressed&&t,jl.componentButtonPrimaryBorderHover,jl.componentButtonPrimaryFillHover,jl.componentButtonPrimaryColorHover,jl.elevation1,t,e.isFocusVisible&&cc(["background-color:",";color:",";&,&:hover{border-color:",";box-shadow:",";}"],jl.componentButtonPrimaryFillFocus,jl.componentButtonPrimaryColorFocus,jl.componentButtonPrimaryBorderFocus,jl.componentButtonPrimaryFocusRing),jl.componentButtonPrimaryBorderDisabled,jl.componentButtonPrimaryFillDisabled,jl.componentButtonPrimaryColorDisabled)}if("secondary"===e.variant){const t=cc(["border-color:",";background-color:",";color:",";box-shadow:none;"],jl.componentButtonSecondaryBorderActive,jl.componentButtonSecondaryFillActive,jl.componentButtonSecondaryColorActive);return cc(["border-color:",";background-color:",";color:",";"," &:hover{border-color:",";background-color:",";color:",";box-shadow:",";}&:active{","}"," &:disabled{border-color:",";background-color:",";color:",";box-shadow:none;}"],jl.componentButtonSecondaryBorder,jl.componentButtonSecondaryFill,jl.componentButtonSecondaryColor,e.isPressed&&t,jl.componentButtonSecondaryBorderHover,jl.componentButtonSecondaryFillHover,jl.componentButtonSecondaryColorHover,jl.elevation1,t,e.isFocusVisible&&cc(["background-color:",";color:",";&,&:hover{border-color:",";box-shadow:",";}"],jl.componentButtonSecondaryFillFocus,jl.componentButtonSecondaryColorFocus,jl.componentButtonSecondaryBorderFocus,jl.componentButtonSecondaryFocusRing),jl.componentButtonSecondaryBorderDisabled,jl.componentButtonSecondaryFillDisabled,jl.componentButtonSecondaryColorDisabled)}if("clean"===e.variant){const t=cc(["border-color:",";background-color:",";color:",";box-shadow:none;"],jl.componentButtonCleanBorderActive,jl.componentButtonCleanFillActive,jl.componentButtonCleanColorActive);return cc(["background-color:",";color:",";"," &:hover{background-color:",";color:",";box-shadow:none;}&:active{","}"," &:disabled{background-color:",";color:",";}"],jl.componentButtonCleanFill,jl.componentButtonCleanColor,e.isPressed&&t,jl.componentButtonCleanFillHover,jl.componentButtonCleanColorHover,t,e.isFocusVisible&&cc(["color:",";&,&:hover{border-color:",";box-shadow:",";}"],jl.componentButtonCleanColorFocus,jl.componentButtonCleanBorderFocus,jl.componentButtonCleanFocusRing),jl.componentButtonCleanFillDisabled,jl.componentButtonCleanColorDisabled)}return""}),uu=wc.div.withConfig({displayName:"Icon",componentId:"zvdl8u-46"})(["display:flex;align-items:center;height:100%;"]),du=wc(uu).withConfig({displayName:"LeftIcon",componentId:"zvdl8u-47"})(["margin-right:",";margin-left:calc("," * -1);"],e=>e.lastChild?`calc(${jl.spacing2} * -1) `:jl.spacing3,jl.spacing2),pu=wc(uu).withConfig({displayName:"RightIcon",componentId:"zvdl8u-48"})(["margin-right:calc("," * -1);margin-left:",";"],jl.spacing2,jl.spacing3);function fu(){return t.createElement(gu,{viewBox:"0 0 24 24","aria-hidden":"true"},t.createElement(vu,{cx:"12",cy:"12",r:"8",fill:"none",strokeWidth:"3"}))}const hu=kc(["100%{transform:rotate(360deg);}"]),mu=kc(["0%{stroke-dasharray:1,100;stroke-dashoffset:0;}50%{stroke-dasharray:80,100;stroke-dashoffset:-20;}100%{stroke-dasharray:80,100;stroke-dashoffset:-48;}"]),gu=wc.svg.withConfig({displayName:"Svg",componentId:"zvdl8u-49"})(["width:24px;height:24px;animation:"," 1s linear infinite;"],hu),vu=wc.circle.withConfig({displayName:"Circle",componentId:"zvdl8u-50"})(["stroke:currentColor;animation:"," 1.5s ease-in-out infinite;stroke-linecap:round;"],mu),yu=s(({children:e,variant:n="secondary",isSmall:o=!1,icon:i,rightIcon:a,isDisabled:s=!1,isLoading:c=!1,type:u="button",...d},p)=>{const{isFocusVisible:f,focusProps:h}=function(e){void 0===e&&(e={});let{within:t}=e,[n,o]=r(!1),[i,a]=r(!1),{isFocusVisible:s}=Uc(e),{focusProps:c}=function(e){if(e.isDisabled)return{focusProps:{}};let t,n;return(e.onFocus||e.onFocusChange)&&(t=t=>{t.target===t.currentTarget&&(e.onFocus&&e.onFocus(t),e.onFocusChange&&e.onFocusChange(!0))}),(e.onBlur||e.onFocusChange)&&(n=t=>{t.target===t.currentTarget&&(e.onBlur&&e.onBlur(t),e.onFocusChange&&e.onFocusChange(!1))}),{focusProps:{onFocus:t,onBlur:n}}}({isDisabled:t,onFocusChange:o}),{focusWithinProps:u}=function(e){let t=l({isFocusWithin:!1}).current;return e.isDisabled?{focusWithinProps:{}}:{focusWithinProps:{onFocus:n=>{t.isFocusWithin||(e.onFocusWithin&&e.onFocusWithin(n),e.onFocusWithinChange&&e.onFocusWithinChange(!0),t.isFocusWithin=!0)},onBlur:n=>{t.isFocusWithin&&!n.currentTarget.contains(n.relatedTarget)&&(e.onBlurWithin&&e.onBlurWithin(n),e.onFocusWithinChange&&e.onFocusWithinChange(!1),t.isFocusWithin=!1)}}}}({isDisabled:!t,onFocusWithinChange:a});return{isFocused:t?i:n,isFocusVisible:(t?i:n)&&s,focusProps:t?u:c}}();return t.createElement(lu,Object.assign({variant:n,isSmall:o,disabled:c||s,type:u,as:d.href?"a":"button",isFocusVisible:f,ref:p},h,d),c?t.createElement(t.Fragment,null,t.createElement(du,{"data-testid":"ds-button-loading-icon"},t.createElement(fu,null)),e):t.createElement(t.Fragment,null,i&&t.createElement(du,{lastChild:!e},i),e,a&&t.createElement(pu,null,a)))}),bu=Ec`${cc(["@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:1031;}.","{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: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","b-modal__overlay",jl.gray200a,"b-modal__container",jl.spacing6,"b-modal__modal",jl.radiusBase,jl.gray10,jl.elevation8,Ml,"b-modal__modal--full-screen")}`,xu=wc.div.withConfig({displayName:"HeaderStyled",componentId:"zvdl8u-51"})(["display:flex;flex:none;align-items:center;box-sizing:border-box;height:72px;padding:"," ",";",""],jl.spacing4,jl.spacing6,e=>!e.hideCloseIcon&&cc(["padding-right:calc( "," + 50px + "," );"],jl.spacing4,jl.spacing6)),_u=wc.div.withConfig({displayName:"BackButton",componentId:"zvdl8u-52"})(["margin-right:",";margin-left:calc("," * -1);"],jl.spacing4,jl.spacing4),wu=wc.div.withConfig({displayName:"ModalThumbnail",componentId:"zvdl8u-53"})(["margin-right:",";"],jl.spacing4),Su=wc.div.withConfig({displayName:"Headings",componentId:"zvdl8u-54"})(["flex:1;min-width:0;"]),Eu=wc.h2.withConfig({displayName:"Title2",componentId:"zvdl8u-55"})([""," overflow:hidden;margin:0;color:",";text-overflow:ellipsis;white-space:nowrap;"],ql.uiTextL,jl.colorText),ku=wc.h3.withConfig({displayName:"SecondaryInformation",componentId:"zvdl8u-56"})([""," overflow:hidden;margin:0;color:",";text-overflow:ellipsis;white-space:nowrap;"],ql.uiTextS,jl.gray500),Cu=wc.div.withConfig({displayName:"ContentStyled",componentId:"zvdl8u-57"})(["flex:1 1 auto;min-height:0;",""],e=>e.scrollable&&cc(["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);}"],jl.colorShadow,jl.colorShadow)),Tu=wc.div.withConfig({displayName:"ContentInner",componentId:"zvdl8u-58"})(["box-sizing:border-box;padding:"," ",";"," ",""],jl.spacing5,jl.spacing6,Ml,e=>e.scrollable&&cc(["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) );}"],jl.spacing5,jl.spacing5,jl.spacing6,jl.gray10,jl.gray10,jl.spacing6,jl.spacing5,jl.gray10,jl.gray10)),Nu=wc.div.withConfig({displayName:"ContentExpander",componentId:"zvdl8u-59"})(["min-height:100%;"]),Iu=wc.div.withConfig({displayName:"FooterStyled",componentId:"zvdl8u-60"})(["display:flex;flex:none;padding:",";"],jl.spacing6),Ou=wc.div.withConfig({displayName:"ActionsRight",componentId:"zvdl8u-61"})(["margin-left:auto;"]),Au=wc.div.withConfig({displayName:"CloseButton",componentId:"zvdl8u-62"})(["position:absolute;top:",";right:",";"],jl.spacing5,jl.spacing4),Pu=t.createContext({fullScreen:!1,hideCloseIcon:!1});function Bu({isOpen:e,onClose:n,isFullScreen:r=!1,isCloseButtonHidden:o=!1,closeButtonTitle:i="Close",isClosedOnOverlayClick:a=!1,children:s,container:c}){const l={root:"b-modal",overlay:"b-modal__overlay",modalContainer:"b-modal__container",modal:`b-modal__modal ${r?"b-modal__modal--full-screen":""}`,modalAnimationIn:"b-modal-container-in",modalAnimationOut:"b-modal-container-out",overlayAnimationIn:"b-modal-overlay-in",overlayAnimationOut:"b-modal-overlay-out"},u=!o;return t.createElement(Pu.Provider,{value:{fullScreen:r,hideCloseIcon:o}},t.createElement(Ll,{open:e,onClose:n,classNames:l,animationDuration:200,showCloseIcon:!1,closeOnEsc:u,closeOnOverlayClick:a,container:c},s,u&&t.createElement(Au,null,t.createElement(yu,{variant:"clean",icon:t.createElement(fl,null),"aria-label":i,title:i,onClick:n}))),t.createElement(bu,null))}function Ru({isOpen:e,onClose:n,isFullScreen:r,isCloseButtonHidden:o,isClosedOnOverlayClick:i,closeButtonTitle:a,title:s,secondaryInfo:c,thumbnail:l,children:u,actionPrimary:d,actionSecondary:p,container:f}){return t.createElement(Bu,{isOpen:e,onClose:n,isClosedOnOverlayClick:i,isCloseButtonHidden:o,isFullScreen:r,closeButtonTitle:a,container:f},t.createElement(Bu.Header,{title:s,secondaryInfo:c,thumbnail:l}),t.createElement(Bu.Content,null,u),d&&t.createElement(Bu.Footer,{actionPrimary:d,actionSecondary:p}))}function Fu(e){return t.createElement(Ru,Object.assign({},e))}Bu.Header=function({title:e,secondaryInfo:n,thumbnail:r,backButton:o}){const{hideCloseIcon:a}=i(Pu);return t.createElement(xu,{hideCloseIcon:a},o&&t.createElement(_u,null,t.createElement(yu,Object.assign({variant:"clean",icon:t.createElement(ul,null),"aria-label":o.title},o))),r&&t.createElement(wu,null,r),t.createElement(Su,null,t.createElement(Eu,null,e),n&&t.createElement(ku,null,n)))},Bu.Content=function({children:e}){const{fullScreen:n}=i(Pu);return t.createElement(Cu,{scrollable:n},t.createElement(Tu,{scrollable:n},n?t.createElement(Nu,null,e):e))},Bu.Footer=function({actionPrimary:e,actionSecondary:n,actionTertiary:r}){return t.createElement(Iu,null,r,t.createElement(Ou,null,t.createElement(au,{gap:"5"},n,e)))},wc.div.withConfig({displayName:"NotificationPositionStyled",componentId:"zvdl8u-63"})(["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"),wc.div.withConfig({displayName:"NotificationsStyled",componentId:"zvdl8u-64"})(["position:fixed;bottom:",";left:",";z-index:9999;"],jl.spacing6,jl.spacing6),wc.div.withConfig({shouldForwardProp:(e,t)=>!["shape"].includes(e)&&t(e)}).withConfig({displayName:"ThumbnailContainer",componentId:"zvdl8u-65"})(["position:relative;overflow:hidden;border-radius:",";"," ",""],e=>"circle"===e.shape?jl.radiusCircle:jl.brandRadiusBase,e=>e.hasCheckers&&cc(["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 cc(["width:",";height:",";"],t,t)}),wc.div.withConfig({displayName:"Fill1",componentId:"zvdl8u-66"})(["display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:50% 50% no-repeat;background-color:",";background-image:",";background-size:cover;color:",";"],e=>e.backgroundColor,e=>e.imageUrl?`url(${e.imageUrl}) `:void 0,e=>e.iconColor),wc.div.withConfig({shouldForwardProp:(e,t)=>!["shape"].includes(e)&&t(e)}).withConfig({displayName:"InnerShadow",componentId:"zvdl8u-67"})(["position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border:1px solid ",";border-radius:",";"],jl.gray100a,e=>"circle"===e.shape?jl.radiusCircle:jl.brandRadiusBase),wc.div.withConfig({displayName:"NoImage",componentId:"zvdl8u-68"})(["width:80%;height:2px;border-radius:2px;background:",";transform:rotate(-45deg);"],jl.red500),wc.div.withConfig({displayName:"BaloonStyled",componentId:"zvdl8u-69"})(["",";position:relative;display:flex;align-items:flex-start;overflow:hidden;box-sizing:border-box;width:480px;padding:",";border-radius:",";background:",";box-shadow:",",",";"],Ml,jl.spacing5,jl.radiusLarge,jl.white,jl.elevationStatic,jl.elevation2),wc.div.withConfig({displayName:"ThumbnailWrapper",componentId:"zvdl8u-70"})(["flex:none;margin-right:",";"],jl.spacing5),wc.div.withConfig({displayName:"Text",componentId:"zvdl8u-71"})(["flex:1;align-self:center;"]),wc.h2.withConfig({displayName:"Title1",componentId:"zvdl8u-72"})(["display:-webkit-box;overflow:hidden;margin:0;font:inherit;-webkit-line-clamp:3;-webkit-box-orient:vertical;"]),wc.p.withConfig({displayName:"Description",componentId:"zvdl8u-73"})(["display:-webkit-box;overflow:hidden;margin:"," 0 0;color:",";font-size:",";line-height:20px;-webkit-line-clamp:4;-webkit-box-orient:vertical;"],jl.spacing2,jl.gray500,jl.fontSize75),wc.div.withConfig({displayName:"Action",componentId:"zvdl8u-74"})(["flex:none;"]),wc.div.withConfig({displayName:"Progress1",componentId:"zvdl8u-75"})(["position:absolute;bottom:0;left:0;height:4px;background-color:",";transition:width 0.2s;"],jl.brandPrimary500),wc.div.withConfig({displayName:"Track",componentId:"zvdl8u-76"})(["height:4px;border-radius:",";background:",";"],e=>e.noCornerRadius?"0":jl.radiusPill,e=>e.noBackground?"none":jl.gray100a),wc.div.withConfig({shouldForwardProp:(e,t)=>!["color"].includes(e)&&t(e)}).withConfig({displayName:"Fill",componentId:"zvdl8u-77"})(["max-width:100%;height:100%;border-radius:",";background:",";transition:width 0.2s ease-out;"],e=>e.noCornerRadius?"0":jl.radiusPill,e=>"brand"===e.color?jl.brandPrimary500:jl.gray600),wc.div.withConfig({displayName:"IndicatorPosition",componentId:"zvdl8u-78"})(["display:flex;flex:none;align-items:center;&::before{content:'';}"]);const zu=wc.div.withConfig({displayName:"Indicator",componentId:"zvdl8u-79"})(["position:relative;display:flex;align-items:center;justify-content: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:",";}"," ",""],jl.gray300,jl.radiusCircle,jl.focusRingWidth,e=>e.isFocusVisible&&jl.focusRingColorPrimary,jl.radiusCircle,e=>e.isChecked&&cc(["border-color:transparent;background-color:",";color:#fff;"],jl.blue500),e=>e.isDisabled&&cc(["border-color:transparent;background-color:",";color:",";"],jl.gray100,jl.gray500));wc.div.withConfig({displayName:"IndicatorMark",componentId:"zvdl8u-80"})(["width:6px;height:6px;border-radius:",";background:currentColor;"],jl.radiusCircle),wc.input.withConfig({displayName:"Input",componentId:"zvdl8u-81"})(["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%);"]),wc.label.withConfig({displayName:"Container2",componentId:"zvdl8u-82"})([""," display:flex;align-items:flex-start;margin:0;padding:"," 0;cursor:",";user-select:none;&:hover ","{","}"],ql.uiTextM,jl.spacing1,e=>!e.isDisabled&&"pointer",zu,e=>{if(!e.isDisabled)return e.isChecked?cc(["background-color:",";"],jl.blue600):cc(["border-color:",";"],jl.gray500)}),wc.div.withConfig({displayName:"Label",componentId:"zvdl8u-83"})(["display:block;margin-left:8px;color:",";"],e=>e.isDisabled?jl.gray400:jl.colorText),wc.aside.withConfig({displayName:"Container1",componentId:"zvdl8u-84"})(["overflow-y:auto;box-sizing:border-box;width:272px;height:100%;padding:"," 0;border-right:1px solid ",";background:",";"],jl.spacing5,jl.gray100,jl.white),wc.div.withConfig({displayName:"TooltipContainer",componentId:"zvdl8u-85"})([""," display:flex;max-width:240px;padding:calc("," / 2) ",";border-radius:",";background:",";color:",";"],ql.uiTextS,jl.spacing4,jl.spacing4,jl.radiusBase,jl.gray900a,jl.gray10),wc.span.withConfig({displayName:"IconContainer",componentId:"zvdl8u-86"})(["display:flex;align-items:center;width:24px;height:24px;margin:-"," "," -"," -",";color:",";"],jl.spacing1,jl.spacing2,jl.spacing1,jl.spacing2,jl.gray400),wc.span.withConfig({displayName:"LabelContainer",componentId:"zvdl8u-87"})(["margin-right:",";color:",";"],jl.spacing2,jl.gray400),wc.div.withConfig({displayName:"VerticalLabelContainer",componentId:"zvdl8u-88"})(["color:",";"],jl.gray400),wc.div.withConfig({displayName:"LeftIconContainer",componentId:"zvdl8u-89"})(["margin-right:",";*{max-width:24px;max-height:24px;}"],jl.spacing4),wc.div.withConfig({displayName:"RightElementIcon",componentId:"zvdl8u-90"})(["margin-left:",";&:last-child{margin-right:calc("," * -1);}"],jl.spacing3,jl.spacing2);const Lu=wc.div.withConfig({displayName:"RightElementText",componentId:"zvdl8u-91"})(["display:flex;align-items:center;justify-content:flex-end;margin-left:",";color:",";text-align:right;"],jl.spacing4,jl.gray400);wc.div.withConfig({displayName:"RightElementsContainer",componentId:"zvdl8u-92"})(["display:flex;align-items:center;margin-left:auto;"]);const ju=cc(["background-color:",";color:",";","{color:",";}"],jl.gray50,jl.gray800,Lu,jl.gray600);function Mu(e){var n;return t.createElement(Fu,{title:ma("Send error report"),isOpen:e.isOpen,onClose:e.onCancel,actionPrimary:t.createElement(ha,{kind:"Primary",title:ma("Send report"),className:"ml-2",onClick:e.onDone},ma("Send report")),actionSecondary:t.createElement(ha,{"data-testid":"bla",kind:"Secondary",title:ma("Cancel"),onClick:e.onCancel},ma("Cancel")),container:e.container},t.createElement("div",{className:"leading-6"},ma("We have created a report that you can send us to help us prevent this from happening in the future.")),t.createElement("div",{className:"my-4 flex-grow self-stretch bg-ui-400 rounded border border-ui-600 px-4 py-3 leading-6 overflow-scroll",style:{maxHeight:200},"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("span",{className:"text-body-400 text-sm leading-5"},ma("We will treat this report as confidential and anonymous.")))}function Du(e){var n=e.error,o=e.onRetry,i=oa(),s=r(!1),c=s[0],l=s[1],u=r(!1),d=u[0],p=u[1];return a((function(){ta.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(ba,{isReportSent:d,onClickSend:function(){l(!0)},onClickRetry:o}),t.createElement(Mu,{isOpen:c,error:n,container:i,onDone:function(){oi(n),l(!1),p(!0)},onCancel:function(){l(!1)}}))}function Hu(){var e=pr(kr()[0].page),n=e[0],r=e[1],o=fa("w-6 h-6 -mx-1","ASC"===n.direction&&"flip-y"),i={ASC:ma("Ascending"),DESC:ma("Descending")},a={ASC:"DESC",DESC:"ASC"};return t.createElement(ha,{kind:"FlatSm",title:i[n.direction],onClick:function(){r({field:n.field,direction:a[n.direction]})}},t.createElement(tl,{className:o}))}function Uu(e){var n=l(null),o=r(0)[1];!function(e,t){var n=oa();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,n],e.onClickOutside),u((function(){o(null!==e.target.current?e.target.current.getBoundingClientRect().x:0)}),[e.target]);var i=oa();if(null===i||null===e.target.current)return null;var s=e.target.current.getBoundingClientRect(),c=s.x,d=window.innerWidth,p={left:c+300>d?void 0:c,right:c+300>d?d-s.width-c:void 0,top:"Down"===e.direction?s.top+s.height:void 0,bottom:"Up"===e.direction?window.innerHeight-s.top:void 0},f=fa("cv-root cv-dropdown select-none",e.className);return h(t.createElement("div",{className:f,style:p,ref:n},e.children),i)}function qu(e){var n=e.buttonKind,o=void 0===n?"FlatSm":n,i=e.direction,a=void 0===i?"Down":i,s=gr(e,["buttonKind","direction"]),c=r(!1),u=c[0],d=c[1],p=l(null),f=function(){return d((function(e){return!e}))},h=fa(u&&"bg-ui-400 border-ui-700 text-body-500",s.buttonClassName);return t.createElement(t.Fragment,null,t.createElement(ha,{kind:o,onClick:f,className:h,ref:p,isDisabled:s.disabled},t.createElement("span",{className:"inline-flex items-center",title:s.alt},s.title),t.createElement(sl,{className:"w-6 h-6 ml-1 -mr-2"})),u&&t.createElement(Uu,{className:s.className,onClickOutside:f,direction:a,target:p},s.children(f)))}function Vu(e){var n=e.selected,r=void 0!==n&&n,o=gr(e,["selected"]),i=fa("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",{className:i,onClick:o.onClick,"data-testid":"dropdown-list-item"},o.children,r&&t.createElement(ll,{className:"w-6 h-6 ml-3 fade-in"}))}function Wu(e){var n=e.options,r=void 0===n?["CREATED_AT","PUBLISHED_AT","UPDATED_AT","NAME"]:n,o=pr(kr()[0].page),i=o[0],a=o[1],s={CREATED_AT:ma("Date added"),NAME:ma("Name"),PUBLISHED_AT:ma("Date published"),UPDATED_AT:ma("Date modified")};return t.createElement(qu,{className:"py-2",buttonClassName:"ml-auto",title:s[i.field],alt:ma("Order by")},(function(e){return t.createElement("ul",null,r.map((function(n){return t.createElement(Vu,{className:"px-4 py-px text-sm",selected:i.field===n,key:s[n],onClick:function(){a({field:n,direction:i.direction}),e()}},t.createElement("span",{className:"flex-grow min-w-24 py-2"},s[n]))})))}))}function $u(e,t,n){return(1===e?t:n).replace("{}",e.toString())}function Yu(e){var n=e.alt,r=e.className,o=e.fadeIn,i=void 0===o||o,a=e.id,s=e.style,c=e.stacked,l=void 0!==c&&c,u=e.title,d=e.onClick,p=e.children,f=void 0===p?null:p,h=e.metaproperties,m=gr(e,["alt","className","fadeIn","id","style","stacked","title","onClick","children","metaproperties"]);return t.createElement("div",{className:fa("m-2 w-56 self-start group relative rounded bg-ui-500 shadow transition-shadow\n\t\t\t\t cursor-pointer",i&&"fade-in-down",r),id:a,style:s,title:n,onClick:d,"aria-selected":m["aria-selected"],"data-testid":"asset-card"},t.createElement("div",{className:"overflow-hidden rounded"},t.createElement("div",{className:"flex h-32 relative"},f),t.createElement("div",{className:"p-3 bg-ui-0"},t.createElement("header",{className:"truncate"},u),!!(null==h?void 0:h.length)&&t.createElement("dl",{className:"pt-2 mt-2 border-t border-ui-600 text-body-400 text-sm"},h&&h.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 pb-1",key:n},t.createElement("dt",{className:"text-body-300 pr-1"},n,":"),t.createElement("dd",{className:""},r))}))))),l&&t.createElement("div",{className:"absolute border-b rounded left-px right-px h-3 -bottom-0.75","data-testid":"stacked"}))}function Gu(e){var n=e.width,r=void 0===n?100:n,o=e.className;return t.createElement("span",{className:fa("cv-skeleton",o),style:{width:r},"data-testid":"skeleton"},"")}function Xu(e){return t.createElement(t.Fragment,null,Array(e.rows*e.columns).fill(void 0).map((function(n,r){return t.createElement(Yu,{key:r,style:{animationDuration:Math.round(r/e.columns*200+500)+"ms"},title:t.createElement(t.Fragment,null,t.createElement(Gu,{width:70+Ju(100,r),className:"h-4"}),e.title)})})))}function Ju(e,t){return 16807*((t+20)%2147483647+2147483646)%2147483647%e}function Ku(e){var n=r("None"),o=n[0],i=n[1],a=ca(),s=fa("inline-flex p-0.5 items-center text-md text-body-400 select-none shadow shadow-overlay\n\t\t focus:outline-none transition-color",e.active?"bg-brand-500 hover:bg-brand-600 text-ui-0":"bg-ui-0-.8 hover:bg-ui-0 hover:text-body-500",e.className),c=e.active||"None"!==o?ua(a,"Primary",o):void 0;return t.createElement("button",{className:s,style:c,title:e.title,onClick:e.onClick,onMouseOver:function(){return i("Hover")},onFocus:function(){return i("Hover")},onMouseOut:function(){return i("None")},onBlur:function(){return i("None")},type:"button"},e.children)}function Zu(e){return{tag:"ok",value:e}}function Qu(e){return{tag:"error",error:e}}function ed(e){return"ok"===e.tag}function td(e){return"error"===e.tag}function nd(e){return"https://"+e.replace(/^https?:\/\//i,"").replace(/\/+$/i,"")+"/"}wc.a.withConfig({displayName:"StyledNavItem",componentId:"zvdl8u-93"})(["&&{"," 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{","}"," "," ",";}"],ql.uiTextM,jl.spacing3,jl.spacing4,jl.brandRadiusBase,jl.gray600,jl.brandFontStackBase,e=>e.disabled?"default":"pointer",jl.gray25,jl.gray800,Lu,jl.gray600,ju,e=>e.isSelected&&ju,e=>e.isFocusVisible&&cc(["background-color:",";color:",";","{color:",";}"],jl.gray25,jl.gray800,Lu,jl.gray600),e=>e.disabled&&cc(["background-color:inherit;color:",";pointer-events:none;","{color:",";}"],jl.gray400,Lu,jl.gray400)),wc.div.withConfig({displayName:"ItemTitle",componentId:"zvdl8u-94"})(["overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;"]),wc.hr.withConfig({displayName:"Divider",componentId:"zvdl8u-95"})(["height:1px;margin:",";border:0;background-color:",";"],jl.spacing4,jl.gray50),wc.div.withConfig({displayName:"StyledTitleContainer",componentId:"zvdl8u-96"})(["",";display:flex;align-items:center;box-sizing:border-box;height:32px;padding:0 ",";color:",";"],ql.uiTextS,jl.spacing4,jl.gray800),wc.div.withConfig({displayName:"StyledTitle",componentId:"zvdl8u-97"})(["overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;"]),wc.div.withConfig({displayName:"Container",componentId:"zvdl8u-98"})(["margin:0 ",";"],jl.spacing5);var rd=new Map;function od(e,t,n){return vr(this,void 0,void 0,(function(){var r,o,i,a,s,c;return yr(this,(function(l){switch(l.label){case 0:if(!n)return[2,Qu("No authentication provided")];if("/"===(r=void 0!==n.accountDomain?nd(n.accountDomain.trim()):"https://"+window.location.host).charAt(r.length-1)&&(r=r.slice(0,-1)),o=r+":"+e+":"+JSON.stringify(t)+":"+n.accessToken,rd.has(o))return[2,Zu(rd.get(o))];i={Accept:"application/json","Content-Type":"application/json","X-Bynder-Integration":"UCV/v2.6.0"},a=void 0===(null==n?void 0:n.accessToken)?i:mr(mr({},i),{Authorization:"Bearer "+n.accessToken}),s={method:"post",headers:a,body:JSON.stringify({query:e,variables:t})},l.label=1;case 1:return l.trys.push([1,4,,5]),[4,fetch(r+"/graphql",s)];case 2:return[4,l.sent().json()];case 3:return c=l.sent(),[3,5];case 4:return[2,Qu(l.sent())];case 5:return void 0!==c.errors?[2,Qu(c.errors.map((function(e){return e.message})).join(","))]:(rd.set(o,c.data),rd.size>50&&rd.delete(rd.keys().next().value),[2,Zu(c.data)])}}))}))}function id(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 ad(){var e=new Uint32Array(28),t=window.crypto.getRandomValues(e);return Array.from(t).map((function(e){return("0"+e.toString(16)).substr(-2)})).join("")}var sd="42b1eefa-d754-4802-b9c4-bf80d6ab6052",cd="https://d8ejoa1fys2rk.cloudfront.net/5.0.5/modules/compactview/loginCompleted.html",ld=["offline","asset:read","collection:read","meta.assetbank:read"];function ud(e,t,n){return vr(this,void 0,void 0,(function(){var r,o,i,a;return yr(this,(function(s){switch(s.label){case 0:r=dd(n)+"token",o=new URLSearchParams({client_id:sd,code_verifier:t,code:e,redirect_uri:cd,grant_type:"authorization_code"}),s.label=1;case 1:return s.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=s.sent()).ok?[4,i.json()]:[2,Qu("Failed to fetch access token: "+i.status)];case 3:return[2,Zu({refreshToken:(a=s.sent()).refresh_token,accessToken:a.access_token,expiresIn:a.expires_in})];case 4:return[2,Qu(s.sent().toString())];case 5:return[2]}}))}))}function dd(e){return"webdam"===pd()?"https://apiv2.webdamdb.com/oauth2/":nd(e)+"v6/authentication/oauth2/"}function pd(){var e;return null!==(e=localStorage.getItem("cvp"))&&void 0!==e?e:void 0}function fd(e){return vr(this,void 0,void 0,(function(){var t,n,r,o,i,a;return yr(this,(function(s){switch(s.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=700,width=570,left="+n+",top="+r))?[2,Qu("Error opening login window")]:(o.document.head.innerHTML=hd,o.document.body.innerHTML=md,o.location.href=e,[4,Promise.race([new Promise((function(e){window.addEventListener("message",(function(t){"https://d8ejoa1fys2rk.cloudfront.net"===t.origin&&e(Zu(t))}))})),new Promise((function(e){setTimeout((function(){return e(Qu("Timeout"))}),6e5)})),(c=o,new Promise((function(e){var t=setInterval((function(){c.closed&&(clearInterval(t),e(Qu("Login window closed")))}),1e3)})))])]);case 1:return td(i=s.sent())?[2,i]:[2,Zu({state:(a=new URLSearchParams(i.value.data)).get("state"),code:a.get("code")})]}var c}))}))}var hd='\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>',md='<div class="cv-spinner"></div>';function gd(e){var n=oa();return t.createElement(Qs,{target:n,disableVendorPrefixes:!0},t.createElement(tu,null,e.children))}function vd(e){var n=e.children,o=t.useRef(null),i=r(null),s=i[0],c=i[1];return a((function(){if(null!==o.current){var e,t=function(e){try{return e.attachShadow({mode:"open"})}catch(e){return null}}(o.current);yd(null!=(e=t)?e:document.head,'@import url(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}small{font-size:80%}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{margin:0}button{background-color:transparent;background-image:none;padding:0}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}}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.bg-brand-500{background-color:#0af}.bg-ui-0{background-color:#fff}.bg-ui-400{background-color:rgba(0,34,51,.03)}.bg-ui-500{background-color:rgba(0,34,51,.05)}.bg-ui-600{background-color:rgba(0,34,51,.1)}.bg-ui-800{background-color:rgba(0,34,51,.2)}.bg-ui-900{background-color:rgba(0,34,51,.35)}.bg-ui-0-\\.8{background-color:hsla(0,0%,100%,.8)}.hover\\:bg-brand-600:hover{background-color:#008ed5}.hover\\:bg-ui-0:hover{background-color:#fff}.hover\\:bg-ui-400:hover{background-color:rgba(0,34,51,.03)}.focus\\:bg-ui-500:focus,.hover\\:bg-ui-500:hover{background-color:rgba(0,34,51,.05)}.active\\:bg-brand-700:active{background-color:#008dd5}.active\\:bg-ui-700:active{background-color:rgba(0,34,51,.15)}.disabled\\:bg-ui-500:disabled{background-color:rgba(0,34,51,.05)}.border-transparent{border-color:transparent}.border-error{border-color:#f4562b}.border-brand-500{border-color:#0af}.border-ui-600{border-color:rgba(0,34,51,.1)}.border-ui-700{border-color:rgba(0,34,51,.15)}.hover\\:border-ui-900:hover{border-color:rgba(0,34,51,.35)}.focus\\:border-ui-700:focus{border-color:rgba(0,34,51,.15)}.focus\\:border-ui-900:focus{border-color:rgba(0,34,51,.35)}.disabled\\:border-ui-500:disabled{border-color:rgba(0,34,51,.05)}.rounded{border-radius:5px}.rounded-full{border-radius:9999px}.border-2{border-width:2px}.border{border-width:1px}.border-t{border-top-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}.cursor-wait{cursor:wait}.block{display:block}.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}.hidden{display:none}.group:hover .group-hover\\:block{display:block}.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}.self-stretch{-ms-flex-item-align:stretch;align-self:stretch}.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}.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-3{height:12px}.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-16{height:64px}.h-20{height:80px}.h-32{height:128px}.h-40{height:160px}.h-2\\/4{height:50%}.h-full{height:100%}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.m-2{margin:8px}.my-2{margin-top:8px;margin-bottom:8px}.mx-2{margin-left:8px;margin-right:8px}.my-4{margin-top:16px;margin-bottom:16px}.my-px{margin-top:1px;margin-bottom:1px}.-mx-1{margin-left:-4px;margin-right:-4px}.-my-2{margin-top:-8px;margin-bottom:-8px}.mt-1{margin-top:4px}.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}.mt-4{margin-top:16px}.mr-4{margin-right:16px}.mb-4{margin-bottom:16px}.mr-5{margin-right:20px}.mt-6{margin-top:24px}.mt-8{margin-top:32px}.mb-8{margin-bottom:32px}.mt-10{margin-top:40px}.mr-auto{margin-right:auto}.ml-auto{margin-left:auto}.ml-px{margin-left:1px}.-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}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.disabled\\:opacity-60:disabled{opacity:.6}.focus\\:outline-none:focus{outline:0}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.overflow-y-auto{overflow-y:auto}.p-3{padding:12px}.p-4{padding:16px}.p-0\\.5{padding:2px}.py-1{padding-top:4px;padding-bottom:4px}.py-2{padding-top:8px;padding-bottom:8px}.px-2{padding-left:8px;padding-right:8px}.py-3{padding-top:12px;padding-bottom:12px}.px-3{padding-left:12px;padding-right:12px}.py-4{padding-top:16px;padding-bottom:16px}.px-4{padding-left:16px;padding-right:16px}.px-6{padding-left:24px;padding-right:24px}.py-px{padding-top:1px;padding-bottom:1px}.pr-0{padding-right:0}.pl-0{padding-left:0}.pr-1{padding-right:4px}.pb-1{padding-bottom:4px}.pt-2{padding-top:8px}.pb-2{padding-bottom:8px}.pl-3{padding-left:12px}.pt-4{padding-top:16px}.pr-4{padding-right:16px}.pl-4{padding-left:16px}.pr-5{padding-right:20px}.pr-10{padding-right:40px}.pl-10{padding-left:40px}.placeholder-body-300::-webkit-input-placeholder{color:rgba(0,34,51,.3)}.placeholder-body-300::-moz-placeholder{color:rgba(0,34,51,.3)}.placeholder-body-300:-ms-input-placeholder{color:rgba(0,34,51,.3)}.placeholder-body-300::-ms-input-placeholder{color:rgba(0,34,51,.3)}.placeholder-body-300::placeholder{color:rgba(0,34,51,.3)}.disabled\\:pointer-events-none:disabled,.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{right:0;left:0}.inset-0,.inset-y-0{top:0;bottom:0}.top-0{top:0}.right-0{right:0}.bottom-0{bottom:0}.left-0{left:0}.top-3{top:12px}.right-3{right:12px}.right-4{right:16px}.right-px{right:1px}.left-px{left:1px}.-bottom-0\\.75{bottom:-3px}.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-outline{-webkit-box-shadow:0 0 0 2px #0af;box-shadow:0 0 0 2px #0af}.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)}.shadow-fade-left{-webkit-box-shadow:-16px 0 10px 0 #fff;box-shadow:-16px 0 10px 0 #fff}.shadow-fade-right{-webkit-box-shadow:4px 0 13px 13px #fff;box-shadow:4px 0 13px 13px #fff}.shadow-footer{-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)}.shadow-overlay{-webkit-box-shadow:0 4px 10px 0 rgba(0,34,51,.1);box-shadow:0 4px 10px 0 rgba(0,34,51,.1)}.shadow-modal{-webkit-box-shadow:0 2px 12px 0 rgba(0,34,51,.1);box-shadow:0 2px 12px 0 rgba(0,34,51,.1)}.active\\:shadow-inner:active{-webkit-box-shadow:inset 0 1px 3px 0 rgba(0,34,51,.1);box-shadow:inset 0 1px 3px 0 rgba(0,34,51,.1)}.active\\:shadow-fade-left:active{-webkit-box-shadow:-16px 0 10px 0 #fff;box-shadow:-16px 0 10px 0 #fff}.active\\:shadow-fade-right:active{-webkit-box-shadow:4px 0 13px 13px #fff;box-shadow:4px 0 13px 13px #fff}.fill-current{fill:currentColor}.text-center{text-align:center}.text-right{text-align:right}.text-error{color:#f4562b}.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)}.text-ui-0{color:#fff}.focus-within\\:text-body-400:focus-within{color:rgba(0,34,51,.5)}.hover\\:text-body-400:hover{color:rgba(0,34,51,.5)}.active\\:text-body-500:active,.focus\\:text-body-500:focus,.hover\\:text-body-500:hover{color:rgba(0,34,51,.8)}.disabled\\:text-body-300:disabled{color:rgba(0,34,51,.3)}.text-xs{font-size:12px}.text-sm{font-size:14px}.text-base{font-size:16px}.text-xl{font-size:20px}.text-2xl{font-size:22px}.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}.invisible{visibility:hidden}.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-80{width:320px}.w-2\\/4{width:50%}.w-full{width:100%}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.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-shadow{-webkit-transition-property:-webkit-box-shadow;transition-property:-webkit-box-shadow;transition-property:box-shadow;transition-property:box-shadow,-webkit-box-shadow}.transition-transform{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform}@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-shadow{-webkit-transition:-webkit-box-shadow .1s linear;transition:-webkit-box-shadow .1s linear;transition:box-shadow .1s linear;transition:box-shadow .1s linear,-webkit-box-shadow .1s linear}.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;background-color:#fff;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}.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;-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}.flip-y{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.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}.group:hover .group-hover\\:fade-in{-webkit-animation:fade-in .15s ease-out;animation:fade-in .15s ease-out}.animation-duration-500{-webkit-animation-duration:.5s;animation-duration:.5s}.selected-outline{-webkit-box-shadow:0 0 0 2px #0af;box-shadow:0 0 0 2px #0af}.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%}}.cbx{border-radius:3px;background-color:#fff;-webkit-box-shadow:inset 0 0 0 1px rgba(0,34,51,.1),inset 0 1px 2px 0 rgba(0,34,51,.15);box-shadow:inset 0 0 0 1px rgba(0,34,51,.1),inset 0 1px 2px 0 rgba(0,34,51,.15);position:relative;-ms-flex-negative:0;flex-shrink:0;height:13px;-webkit-transition:background-color .15s linear;transition:background-color .15s linear;width:13px}.cbx svg{position:absolute;top:2px;left:2px;height:8px;width:10px;fill:none;-webkit-filter:drop-shadow(0 1px .5px #296bb0);filter:drop-shadow(0 1px .5px #296bb0);stroke-dasharray:17;stroke-dashoffset:17;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.2;stroke:#fff;-webkit-transform:translateZ(0);transform:translateZ(0)}.cbx.cbx--checked{background-color:#0af}.cbx.cbx--checked svg{stroke-dashoffset:0;-webkit-transition:stroke-dashoffset .15s linear;transition:stroke-dashoffset .15s linear}.overlay-pill{position:absolute;margin:12px;padding-left:4px;padding-right:4px;height:20px;border-radius:4px;background-color:rgba(0,34,51,.3);color:#fff;font-size:12px;font-weight:600;line-height:22px}.fa-lg{line-height:1.05em}.z-a-lot{z-index:999999}'),t&&yd(document.head,bd),c(null!=t?t:o.current)}}),[]),t.createElement("div",{ref:o,style:{display:"flex",height:"100%"},"data-testid":"root"},s&&t.createElement(ra,{value:s},t.createElement(gd,null,h(n,s))))}function yd(e,t){var n=document.createElement("style"),r=document.createTextNode(t);n.appendChild(r),e.appendChild(n)}var bd="\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('https://d8ejoa1fys2rk.cloudfront.net/5.0.5/includes/fonts/SourceSans/sourcesanspro-regular.woff2') format('woff2'),\n url('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(\"https://d8ejoa1fys2rk.cloudfront.net/5.0.5/includes/fonts/fontawesome-webfont.woff2?v=4.7.0\") format(\"woff2\"),\n url(\"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",xd=n("parent");function _d(e){return"parent"===i(xd)?t.createElement(xd.Provider,{value:"child"},t.createElement(vd,null,e.children)):t.createElement(t.Fragment,null,e.children)}var wd=n(null),Sd=function(){return i(wd)};function Ed(e){var n=e.children,i=e.isOpen,s=void 0===i||i,c=e.style,l=e.onClose,u=void 0===l?function(){}:l,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()}}),[]),s?t.createElement(wd.Provider,{value:m},p&&t.createElement(t.Fragment,null,h(t.createElement(_d,null,t.createElement("div",{className:"inset-0 flex items-center p-4 z-a-lot fixed bg-ui-600 fade-in-down"},t.createElement("div",{className:"shadow-modal h-full w-full overflow-hidden rounded",style:c,"data-testid":"modal"},n))),p))):null}function kd(e){var n=Sd();return t.createElement("div",{className:"bg-ui-0 w-full h-full flex flex-col items-center justify-center cv-root relative"},null!==n&&t.createElement(ha,{onClick:n.onClose,title:ma("Close"),className:"absolute top-3 right-4"},t.createElement(fl,{className:"w-6 h-6 -mx-1"})),t.createElement("div",{className:"flex flex-col"},e.children))}function Cd(){return t.createElement("label",{htmlFor:"account-domain-input",className:"text-body-400 mb-8"},ma("Enter the portal domain"))}function Td(){return t.createElement(t.Fragment,null,t.createElement("svg",{viewBox:"0 0 479.438 361.46",className:"w-10 mb-8"},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"},ma("Connect your brand portal")))}function Nd(e){var n=fa("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 Id(e){var n=fa("appearance-none block h-10 w-80 border rounded text-body-500 placeholder-body-300\n\t\t focus:outline-none transition-color","invalid"===e.status?"pl-4 pr-10 border-error":"px-4 border-ui-600 hover:border-ui-900 focus:border-ui-900");return t.createElement("div",{className:"mb-4"},t.createElement("div",{className:"relative"},t.createElement("input",{id:"account-domain-input",value:e.value,className:n,placeholder:"yourdomain.bynder.com",readOnly:e.isReadOnly,autoFocus:!0,onChange:function(t){e.onChange(t.target.value)},onKeyDown:function(t){"valid"===e.status&&13===t.keyCode&&e.onSubmit()}}),"validating"===e.status&&t.createElement("div",{role:"alert","aria-live":"polite"},t.createElement(Nd,{className:"absolute top-0 right-0 mr-3 h-full"})),"invalid"===e.status&&t.createElement(fl,{className:"absolute top-0 right-3 w-6 h-full text-error fade-in cursor-pointer",onClick:function(){e.onChange("")}})),"invalid"===e.status&&t.createElement("div",{className:"text-error text-sm mt-1 fade-in"},ma("This portal domain does not exist")))}function Od(e){return t.createElement(ha,{kind:"Primary",className:"justify-center relative",isDisabled:!e.isValidDomain||e.isSubmitting,onClick:e.onClick,testId:"login-button"},e.isSubmitting?t.createElement("div",{role:"alert","aria-live":"polite"},t.createElement(Nd,{className:"text-ui-0"})):ma("Connect"))}function Ad(e){return t.createElement(kd,null,t.createElement(Td,null),t.createElement(Cd,null),t.createElement(Id,{value:e.domainValue,isReadOnly:!1===e.isEditable||e.isSubmitting,onChange:e.onChangeDomain,onSubmit:e.onSubmit,status:e.domainStatus}),t.createElement(Od,{isValidDomain:"valid"===e.domainStatus,isSubmitting:e.isSubmitting,onClick:e.onSubmit}))}var Pd=function(e){function n(t){var n=e.call(this,t)||this;return n.state={error:null},n}return hr(n,e),n.getDerivedStateFromError=function(e){return{error:e}},n.prototype.render=function(){var e=this;return this.state.error?t.createElement(Du,{error:this.state.error,onRetry:function(){return e.setState({error:null})}}):this.props.children},n}(t.Component);function Bd(){return t.createElement("div",{role:"alert","aria-live":"polite",className:"bg-ui-0 w-full h-full"}," ",t.createElement(Nd,null)," ")}var Rd=n(null);function Fd(e){var n,o,i,s,c;va(null!==(n=e.language)&&void 0!==n?n:"en_US");var u=function(){var e,t,n=r(void 0),o=n[0],i=n[1],s=r(null!==(e=localStorage.getItem("cvrt"))&&void 0!==e?e:void 0),c=s[0],u=s[1],d=r(null!==(t=localStorage.getItem("cvad"))&&void 0!==t?t:void 0),p=d[0],f=d[1],h=r(x()),m=h[0],g=h[1],v=l();function y(e){i(e.accessToken),u(e.refreshToken),f(e.accountDomain),g(x(e.accessToken,e.refreshToken)),localStorage.setItem("cvrt",e.refreshToken),localStorage.setItem("cvad",e.accountDomain),v.current&&clearTimeout(v.current),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 x(e,t){return void 0===e&&(e=o),void 0===t&&(t=c),void 0!==e?"authenticated":void 0!==t?"refreshing":"not-authenticated"}return a((function(){return function(){v.current&&clearTimeout(v.current)}}),[]),a((function(){void 0===o&&c&&p&&(g("refreshing"),function(e,t){return vr(this,void 0,void 0,(function(){var n,r,o,i;return yr(this,(function(a){switch(a.label){case 0:n=dd(t)+"token",r=new URLSearchParams({client_id:sd,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,Qu("Failed to fetch refresh token: "+o.status)];case 3:return[2,Zu({accessToken:(i=a.sent()).access_token,expiresIn:i.expires_in})];case 4:return[2,Qu(a.sent().toString())];case 5:return[2]}}))}))}(c,p).then((function(e){ed(e)?y({accessToken:e.value.accessToken,expiresIn:e.value.expiresIn,refreshToken:c,accountDomain:p}):(ta.error(e.error),b())})))}),[o,c,p]),[{accessToken:o,accountDomain:p,status:m},y,b]}(),d=u[0],p=u[1],f=u[2],h=function(e){var t=r(null!=e?e:""),n=t[0],o=t[1],i=r(e?"validating":"empty"),s=i[0],c=i[1],u=l();return a((function(){if(n){var e=!1;return u.current=setTimeout((function(){(function(e){return vr(this,void 0,void 0,(function(){var t,n,r;return yr(this,(function(o){switch(o.label){case 0:t=nd(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||(c("invalid"!==t?"valid":"invalid"),localStorage.setItem("cvp",t))}))}),1e3),function(){e=!0}}}),[n]),[n,function(e){u.current&&clearTimeout(u.current),o(e),c(""===e?"empty":"validating")},s]}(null!==(i=null===(o=e.portal)||void 0===o?void 0:o.url)&&void 0!==i?i:d.accountDomain),m=h[0],g=h[1],v=h[2],y=r(!1),b=y[0],x=y[1];a((function(){var e=!0;return!0===b&&function(e){return vr(this,void 0,void 0,(function(){var t,n,r,o,i,a,s,c,l,u;return yr(this,(function(d){switch(d.label){case 0:t=ad(),d.label=1;case 1:return d.trys.push([1,3,,4]),[4,id(t)];case 2:return n=d.sent(),[3,4];case 3:return[2,Qu(d.sent().toString())];case 4:return p=n,r=btoa(String.fromCharCode.apply(null,Array.from(new Uint8Array(p)))).replace(/\+/g,"-").replace(/\//g,"_").replace(/[=]+$/,""),o=ad(),[4,fd(function(e,t,n){var r={client_id:sd,code_challenge:e,code_challenge_method:"S256",redirect_uri:cd,response_type:"code",scope:ld.join(" "),domain:"",state:t},o="auth?";"webdam"===pd()&&(o="authorize?",delete r.scope,r.domain=n);var i=new URLSearchParams(r);return dd(n)+o+i}(r,o,e))];case 5:return td(i=d.sent())?[2,i]:i.value.state!==o||null===i.value.code?[2,Qu("Error logging in")]:[4,ud(i.value.code,t,e)];case 6:return td(a=d.sent())?[2,a]:(s=a.value,c=s.refreshToken,l=s.accessToken,u=s.expiresIn,[2,Zu({accessToken:l,expiresIn:parseFloat(u),refreshToken:c})])}var p}))}))}(m).then((function(t){e&&(function(e){ed(e)?p(mr(mr({},e.value),{accountDomain:m})):ta.error(e.error)}(t),x(!1))})),function(){e=!1}}),[b,m]);var _=mr(mr({},d),{logout:function(){f()}});switch(d.status){case"authenticated":return t.createElement(Rd.Provider,{value:_},e.children);case"not-authenticated":return t.createElement(_d,null,t.createElement(Ad,{domainValue:m,domainStatus:v,onChangeDomain:g,isSubmitting:b,isEditable:null===(c=null===(s=e.portal)||void 0===s?void 0:s.editable)||void 0===c||c,onSubmit:function(){x(!0)}}));case"refreshing":return t.createElement(Bd,null)}}var zd=function(e){return t.createElement(Pd,null,t.createElement(Fd,mr({},e)))},Ld=function(){return i(Rd)};function jd(e){var t,n,o,i,s=this,c=Ld(),l=r({tag:"Loading",value:null}),u=l[0],d=l[1],p=!1,f=function(t){return vr(s,void 0,void 0,(function(){var n;return yr(this,(function(r){switch(r.label){case 0:return d((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),[4,od("\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 \nfragment DisplayAsset on Asset {\n __typename\n id\n derivatives {\n thumbnail\n }\n extensions\n name\n url\n isArchived\n isWatermarked\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}\n",Md(e,null!=t?t:null),c)];case 1:return n=r.sent(),p||(td(n)?d({tag:"Failure",value:n.error}):h(n,t)),[2]}}))}))},h=function(e,t){Dd(u)&&t?d((function(t){var n,r,o=null!==(r=null===(n=Dd(t))||void 0===n?void 0:n.nodes)&&void 0!==r?r:[];return{tag:"Loaded",value:{searchAssets:{assets:mr(mr({},e.value.searchAssets.assets),{nodes:wr(o,e.value.searchAssets.assets.nodes)})}}}})):d({tag:"Loaded",value:e.value})};return a((function(){return f(),function(){p=!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,e.collection,e.orderBy,e.searchTerm,e.language]),{data:u,executeQuery:function(){return f()},isLoading:!u||"Loading"===u.tag,loadMore:function(){var e;return f(null===(e=Dd(u))||void 0===e?void 0:e.pageInfo.endCursor)},hasNextPage:!!(null===(i=Dd(u))||void 0===i?void 0:i.pageInfo.hasNextPage)}}var Md=function(e,t){var n,r,o,i,a,s=e.filter,c=e.predefinedFilter,l=e.collection,u=e.orderBy,d=e.allAssetTypes,p=e.searchTerm,f=e.language,h=(null===(n=null==s?void 0:s.assetTypes)||void 0===n?void 0:n.length)?s.assetTypes:null==c?void 0:c.assetType_in;return{orderBy:u,filter:{collectionId:null!==(r=null==l?void 0:l.id)&&void 0!==r?r:null==c?void 0:c.collectionId,assetType_in:null!=h?h:d,metapropertyOptionId_in:null!==(o=Hd(null==s?void 0:s.metaproperties))&&void 0!==o?o:null==c?void 0:c.metapropertyOptionId_in,searchTerm:null!==(i=null!=p?p:null==c?void 0:c.searchTerm)&&void 0!==i?i:null,tagNames_in:null!==(a=null==s?void 0:s.tags)&&void 0!==a?a:null==c?void 0:c.tagNames_in,isLimitedUse:!1},after:t,language:f}},Dd=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},Hd=function(e){return e?e.map((function(e){return e.id})):null};function Ud(e,t,n){return vr(this,void 0,void 0,(function(){var r;return yr(this,(function(o){switch(o.label){case 0:return[4,od("\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 \nfragment DisplayAsset on Asset {\n __typename\n id\n derivatives {\n thumbnail\n }\n extensions\n name\n url\n isArchived\n isWatermarked\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}",{ids:e.map((function(e){return btoa("(Asset_id "+e+")")})),language:n},t)];case 1:return td(r=o.sent())?[2,r]:[2,Zu(r.value.nodes)]}}))}))}var qd=n(null);function Vd(e){var n=r([]),i=n[0],s=n[1],c=function(e){var t=this,n=r([]),o=n[0],i=n[1],s=sa(),c=s.selectionMode,l=s.language,u=Ld(),d=!1;return a((function(){var n,r=null!=e?e:[];return"MultiSelect"!==c&&(r=r[0]?[r[0]]:[]),n=r,vr(t,void 0,void 0,(function(){var e,t;return yr(this,(function(r){switch(r.label){case 0:return n.length?[4,Ud(n,u,l)]:[3,2];case 1:e=r.sent(),d||td(e)||i(null!==(t=e.value)&&void 0!==t?t:[]),r.label=2;case 2:return[2]}}))})),function(){d=!0}}),[e]),o}(e.preselectedAssetIds),l=la();function u(){s([])}function d(e){s((function(t){var n=e.filter((function(e){return!Wd(t,e)}));return wr(t,n.map((function(e){return{type:"asset",value:e}})))}))}function p(e){var t;"MultiSelect"!==l?(t=e[0],i.some((function(e){return e.value.id===t.id}))?s([]):s([{type:"asset",value:t}])):s((function(t){var n=e.filter((function(e){return!Wd(t,e)})),r=e.filter((function(e){return Wd(t,e)}));return wr(t.filter((function(e){return!r.some((function(t){return t.id===e.value.id}))})),n.map((function(e){return{type:"asset",value:e}})))}))}function f(e){s((function(t){return Wd(t,e)?t.filter((function(t){return t.value.id!==e.id})):wr(t,[{type:"collection",value:e}])}))}a((function(){d(c)}),[c]);var h=o((function(){return{selection:i,clear:u,selectAssets:d,toggleAssets:p,toggleCollection:f}}),[i]);return t.createElement(qd.Provider,{value:h},e.children)}function Wd(e,t){return e.some((function(e){return e.value.id===t.id}))}function $d(){var e=i(qd);if(null===e)throw new Error("useSelection must be used with a SelectionProvider");return e}function Yd(e){var n=e.url,o=e.cover,i=void 0===o||o,a=e.alt,s=r(!1),c=s[0],l=s[1],u=fa("select-none w-full h-full",i?"object-cover":"object-contain",c?"fade-in animation-duration-500":"invisible"),d=null!=n?n:"data:,";return t.createElement("img",{className:u,src:d,draggable:!1,onLoad:function(){return l(!0)},alt:a,"data-testid":"card-image"})}function Gd(e){var n=e.urls,r=e.totalCount,o=e.alt;return t.createElement(t.Fragment,null,0===n.length&&t.createElement(Yd,{alt:o}),1===n.length&&t.createElement(Yd,{url:n[0],cover:!1,alt:o}),2===n.length&&t.createElement(t.Fragment,null,t.createElement("div",{className:"w-2/4 h-full"}," ",t.createElement(Yd,{url:n[0],alt:o})," "),t.createElement("div",{className:"w-2/4 h-full"}," ",t.createElement(Yd,{url:n[1],alt:o})," ")),3===n.length&&t.createElement(t.Fragment,null,t.createElement("div",{className:"w-2/4 h-full"}," ",t.createElement(Yd,{url:n[0],alt:o})," "),t.createElement("div",{className:"flex flex-col w-2/4"},t.createElement("div",{className:"h-2/4 bg-ui-500 fade-in"}," ",t.createElement(Yd,{url:n[1],alt:o})," "),t.createElement("div",{className:"h-2/4 bg-ui-600 fade-in"}," ",t.createElement(Yd,{url:n[2],alt:o})," "))),n.length>=4&&t.createElement(t.Fragment,null,t.createElement("div",{className:"flex flex-col w-2/4"},t.createElement("div",{className:"h-2/4"}," ",t.createElement(Yd,{url:n[0],alt:o})," "),t.createElement("div",{className:"h-2/4 bg-ui-400 fade-in"}," ",t.createElement(Yd,{url:n[1],alt:o})," ")),t.createElement("div",{className:"flex flex-col w-2/4"},t.createElement("div",{className:"h-2/4 bg-ui-500 fade-in"}," ",t.createElement(Yd,{url:n[2],alt:o})," "),t.createElement("div",{className:"h-2/4 bg-ui-600 fade-in"}," ",t.createElement(Yd,{url:n[3],alt:o})," "))),r>4&&t.createElement("div",{className:"absolute text-ui-0 right-0 bottom-0 text-xl h-2/4 w-2/4 text-center\n\t\t\t\t\t flex items-center justify-center bg-ui-900"},"+",r-4))}function Xd(e){var n=e.className,r=e.collection,o=e.fadeIn,i=void 0===o||o,a=e.isSelected,s=e.style,c=la(),l=kr()[1],u=$d(),d=sa().hideExternalAccess,p=t.createElement(t.Fragment,null,t.createElement("div",{className:"truncate"}," ",r.name," "),t.createElement("div",{className:"mt-2 text-sm text-body-400"},$u(r.assetCount,ma("{} asset"),ma("{} assets"))));return t.createElement(Yu,{id:r.id,style:s,title:p,alt:r.name,className:fa(n,a&&"shadow-outline"),fadeIn:i,stacked:!0,onClick:function(){return l({page:"collection",collection:r})},"aria-selected":a},t.createElement(t.Fragment,null,t.createElement(Gd,{urls:r.thumbnailUrls,totalCount:r.assetCount,alt:r.name}),a&&t.createElement("div",{className:"absolute h-full w-full bg-ui-800 fade-in"}),!d&&t.createElement(Ku,{className:"absolute left-0 top-0 ml-3 mt-3 rounded hidden\n\t\t\t\t\t\t group-hover:block group-hover:fade-in",title:ma("Open in new tab"),onClick:function(e){e.stopPropagation(),window.open(r.url,"_blank")}},t.createElement(Kc,{className:"w-6 h-6"})),"MultiSelect"===c&&t.createElement(Ku,{active:a,title:ma(a?"Deselect":"Select"),className:fa("absolute right-0 top-0 mr-3 mt-3 rounded-full",!a&&"hidden group-hover:block group-hover:fade-in"),onClick:function(e){e.stopPropagation(),u.toggleCollection(r)}},t.createElement(ll,{className:"w-6 h-6"}))))}function Jd(e){var t=r(void 0),n=t[0],o=t[1],i=l(void 0);function s(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(){s();var e=function(){return s()};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e),i.current&&cancelAnimationFrame(i.current)}}),[e]),{dimensions:n,remeasure:s}}function Kd(e,t){if(!e)throw new Error("Invariant failed")}function Zd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qd(){return(Qd=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)}function ep(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var tp=new Map,np=new Map,rp=new Map,op=0;function ip(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(tp.has(e)&&Kd(!1),e){var s=function(e){return e?rp.has(e)?rp.get(e):(op+=1,rp.set(e,op.toString()),rp.get(e)+"_"):""}(o)+(i?a.toString()+"_"+i:a.toString()),c=np.get(s);c||(c=new IntersectionObserver(sp,n),s&&np.set(s,c));var l={callback:t,element:e,inView:!1,observerId:s,observer:c,thresholds:c.thresholds||(Array.isArray(a)?a:[a])};return tp.set(e,l),c.observe(e),l}}function ap(e){if(e){var t=tp.get(e);if(t){var n=t.observerId,r=t.observer,o=r.root;r.unobserve(e);var i=!1,a=!1;n&&tp.forEach((function(t,r){r!==e&&(t.observerId===n&&(i=!0,a=!0),t.observer.root===o&&(a=!0))})),!a&&o&&rp.delete(o),r&&!i&&r.disconnect(),tp.delete(e)}}}function sp(e){e.forEach((function(e){var t=e.isIntersecting,n=e.intersectionRatio,r=e.target,o=tp.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 cp=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 Zd(ep(t=e.call.apply(e,[this].concat(r))||this),"state",{inView:!1,entry:void 0}),Zd(ep(t),"node",null),Zd(ep(t),"handleNode",(function(e){t.node&&(ap(t.node),e||t.props.triggerOnce||t.setState({inView:!1,entry:void 0})),t.node=e||null,t.observeNode()})),Zd(ep(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||Kd(!1)},o.componentDidUpdate=function(e,t){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold||(ap(this.node),this.observeNode()),t.inView!==this.state.inView&&this.state.inView&&this.props.triggerOnce&&(ap(this.node),this.node=null)},o.componentWillUnmount=function(){this.node&&(ap(this.node),this.node=null)},o.observeNode=function(){if(this.node){var e=this.props,t=e.threshold,n=e.root,r=e.rootMargin;ip(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,s=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 c(i||a||"div",Qd({ref:this.handleNode},s),o)},r}(p);Zd(cp,"displayName","InView"),Zd(cp,"defaultProps",{threshold:0,triggerOnce:!1});var lp={inView:!1,entry:void 0};function up(e){var n=function(e){void 0===e&&(e={});var t=l(),n=r(lp),o=n[0],i=n[1];return[d((function(n){t.current&&(ap(t.current),e.triggerOnce||i(lp)),n&&ip(n,(function(t,r){i({inView:t,entry:r}),t&&e.triggerOnce&&ap(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(Nd,{className:fa(!i&&"hidden")})))}function dp(){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 pp(e){return t.createElement("div",{className:" w-full h-full flex flex-col items-center justify-center"},t.createElement("div",{className:"bg-ui-400 rounded-full w-40 h-40 flex items-center justify-center"},t.createElement(dp,null),t.createElement(Zc,{className:"absolute mt-1 ml-px text-body-300",style:{width:36,height:36}})),t.createElement("h1",{className:"mt-6 text-2xl"},ma("No results found")),t.createElement("span",{className:"mt-4 text-body-400"},ma("Try adjusting the filter to find assets.")),t.createElement(ha,{kind:"Primary",title:ma("Reset filters"),className:"mt-8",onClick:e.onReset},ma("Reset filters")))}function fp(e){var n,o,i=r(null),a=i[0],s=i[1],c=Jd(a).dimensions,l=$d().selection.filter((function(e){return"collection"===e.type})).map((function(e){return e.value.id})),u=Ar().setSearch,d=e.connection,p=d.data,f=d.isLoading,h=d.loadMore,m=d.hasNextPage,g=void 0!==c?Math.ceil(c.height/184):0,v=void 0!==c?Math.round((c.width-32)/204):0;return t.createElement("div",{className:"card-list",ref:function(e){s(e)}},("Failure"===p.tag||"Loading"===p.tag&&!p.value)&&t.createElement(Xu,{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(pp,{onReset:function(){return u("collections","")}}),("Loading"===p.tag&&!!p.value||"Loaded"===p.tag&&p.value.collections.nodes.length>0)&&t.createElement(up,{hasNextPage:m,isLoading:f,loadMore:h},null===(o=p.value)||void 0===o?void 0:o.collections.nodes.map((function(e,n){return t.createElement(Xd,{key:e.id,isSelected:l.includes(e.id),collection:e,fadeIn:n>=g*v})}))))}function hp(){var e=Pr("collections"),n=e.value,o=e.setIsLoading,i=function(e){var t,n=this,o=Ld(),i=r({tag:"Loading",value:null}),s=i[0],c=i[1],l=!1,u=function(t){return vr(n,void 0,void 0,(function(){var n,r;return yr(this,(function(i){switch(i.label){case 0:return c((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),[4,od("\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}",mr(mr({},e),{searchTerm:null!==(r=e.searchTerm)&&void 0!==r?r:null,after:null!=t?t:null}),o)];case 1:return n=i.sent(),l||(td(n)?c({tag:"Failure",value:n.error}):d(n,t)),[2]}}))}))},d=function(e,t){p()&&t?c((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:mr(mr({},e.value.collections),{nodes:wr(o,e.value.collections.nodes)})}}})):c({tag:"Loaded",value:e.value})},p=function(e){var t,n=null!=e?e:s;if("Failure"!==n.tag)return null===(t=n.value)||void 0===t?void 0:t.collections};return a((function(){return u(),function(){l=!0}}),[e.searchTerm,e.orderBy]),{data:s,executeQuery:function(){return u()},isLoading:!s||"Loading"===s.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:pr("collections")[0]});return a((function(){i.isLoading||o(!1)}),[i.isLoading]),"Failure"===i.data.tag?t.createElement(Du,{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"},$u(i.data.value.collections.totalCount,ma("{} collection"),ma("{} collections"))),!i.data.value&&t.createElement("span",{className:"flex-grow"}),t.createElement(Wu,{options:["CREATED_AT","NAME"]}),t.createElement(Hu,null)),t.createElement(fp,{connection:i}))}var mp=n(null);function gp(e){var n=r([]),i=n[0],a=n[1],s=r([]),c=s[0],l=s[1],u=r([]),d=u[0],p=u[1],f=r({}),h=f[0],m=f[1];function g(e){a((function(t){return vp(t,e)}))}function v(e){a((function(t){return yp(t,e)}))}function y(e){l((function(t){return vp(t,e.id)})),m((function(t){var n;return mr(mr({},t),((n={})[e.id]=e,n))}))}function b(e){l((function(t){return yp(t,e.id)})),m((function(t){var n=t,r=e.id;return gr(n,["symbol"==typeof r?r:r+""])}))}function x(e){p((function(t){return vp(t,e)}))}function _(e){p((function(t){return yp(t,e)}))}function w(){a([]),l([]),m({}),p([])}var S=c.map((function(e){return h[e]})),E=o((function(){return{assetTypes:i,metaproperties:S,tags:d,addAssetType:g,removeAssetType:v,addMetaproperty:y,removeMetaproperty:b,addTag:x,removeTag:_,clear:w}}),[i,S,d]);return t.createElement(mp.Provider,{value:E},e.children)}function vp(e,t){return e.includes(t)?e:wr(e,[t])}function yp(e,t){return e.filter((function(e){return e!==t}))}function bp(){var e=i(mp);if(null===e)throw new Error("useAssetFilter must be used with a AssetFilterProvider");return e}function xp(e){return ma({AUDIO:"Audio",DOCUMENT:"Document",IMAGE:"Image",VIDEO:"Video"}[e])}function _p(e){switch(e){case"AUDIO":return el;case"DOCUMENT":return nl;case"IMAGE":return ol;case"VIDEO":return Qc}}function wp(e){return t.createElement(ha,{kind:"FlatSm",className:fa("pl-0 pr-0 z-20",e.isVisible?"shadow-fade-left active:shadow-fade-left":"hidden"),onClick:e.onClick,testId:"arrow-right"},t.createElement(dl,{className:"w-6 h-6"}))}function Sp(e){return t.createElement(ha,{kind:"FlatSm",className:fa("pl-0 pr-0 z-20",e.isVisible?"shadow-fade-right active:shadow-fade-right":"hidden"),onClick:e.onClick,testId:"arrow-left"},t.createElement(ul,{className:"w-6 h-6"}))}function Ep(e){var n=r(0),o=n[0],i=n[1],s=l(null),c=Jd(s.current),u=c.dimensions,d=c.remeasure,p=null!==s.current?s.current.scrollWidth-s.current.clientWidth:0,f=void 0!==u&&u.width<u.scrollWidth;a((function(){d(s.current)}),[e.children,s.current]),a((function(){f||i(0)}),[f]);var h=o>0,m=p>5&&o!==p;return t.createElement("div",{className:fa("inline-flex flex-grow overflow-hidden",e.className)},f&&t.createElement(Sp,{isVisible:h,onClick:function(){i((function(e){var t=Math.max(e-250,0);return t>=100?t:0}))}}),t.createElement("div",{className:"overflow-hidden",ref:s},t.createElement("div",{className:"transition-transform inline-flex",style:{transform:"translateX("+-o+"px)"},"data-testid":"horizontal-scrollable-el"},e.children)),f&&t.createElement(wp,{isVisible:m,onClick:function(){i((function(e){var t=Math.min(e+250,p);return t<=p-100?t:p}))}}),e.static)}function kp(e){var n=fa("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,"data-testid":e["data-testid"]},e.children)}function Cp(e){return t.createElement(kp,{className:"mr-2 fade-in-down","data-testid":"selected-filter:"+e.title},e.icon,t.createElement("span",{className:"max-w-32 truncate",title:e.title},e.title),t.createElement(fl,{onClick:e.onClick,title:ma("Remove filter"),className:"w-5 h-5 ml-1 -mr-1 text-body-300 hover:text-body-400 cursor-pointer"}))}function Tp(){var e=bp(),n=0===e.metaproperties.length&&0===e.assetTypes.length&&0===e.tags.length?void 0:t.createElement(ha,{kind:"FlatSm",className:"flex-shrink-0 fade-in-down",onClick:e.clear},ma("Clear filters"));return t.createElement("div",{"data-testid":"selected-filter-list"},t.createElement(Ep,{className:"ml-2",static:n},e.assetTypes.map((function(n){var r=_p(n);return t.createElement(Cp,{key:n,onClick:function(){return e.removeAssetType(n)},title:xp(n),icon:t.createElement(r,{className:"w-5 h-5 mr-1"})})})),e.metaproperties.map((function(n){return t.createElement(Cp,{key:n.id,onClick:function(){return e.removeMetaproperty(n)},title:n.label})})),e.tags.map((function(n){return t.createElement(Cp,{key:n,onClick:function(){return e.removeTag(n)},title:n})}))))}function Np(e){var n=e.isSelected;return t.createElement(Ku,{active:n,title:ma(n?"Deselect":"Select"),className:fa("absolute right-0 top-0 mr-3 mt-3 rounded-full",!n&&"hidden group-hover:block group-hover:fade-in")},t.createElement(ll,{className:"w-6 h-6"}))}function Ip(e){var n=e.asset;return t.createElement(Ku,{className:"absolute left-0 top-0 ml-3 mt-3 rounded hidden group-hover:block\n\t\t\t group-hover:fade-in",title:ma("Open in new tab"),onClick:function(e){e.stopPropagation(),window.open(n.url,"_blank")}},t.createElement(Kc,{className:"w-6 h-6"}))}var Op=["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 Ap(e){if(e.derivatives.thumbnail)return e.derivatives.thumbnail;var t=e.extensions[0];return Op.includes(t)?"https://d8ejoa1fys2rk.cloudfront.net/includes/img/placeholder/medium/"+t+".jpg":"aif"===t?"https://d8ejoa1fys2rk.cloudfront.net/includes/img/placeholder/medium/aiff.jpg":"m4a"===t?"https://d8ejoa1fys2rk.cloudfront.net/includes/img/placeholder/medium/m4r.jpg":"https://d8ejoa1fys2rk.cloudfront.net/includes/img/common/no-image.png"}function Pp(e){var t=e.extensions[0];return"JPG"===(null==t?void 0:t.toUpperCase())?"JPEG":null==t?void 0:t.toUpperCase()}function Bp(e){var n=e.className,o=e.fadeIn,i=void 0===o||o,s=e.asset,c=e.isSelected,l=e.isOutlined,u=e.onClick,d=e.children,p=void 0===d?null:d,f=r(),h=f[0],m=f[1],g=sa().theme,v=(c||l)&&void 0!==(null==g?void 0:g.colorPrimary)?{boxShadow:"0 0 0 2px "+g.colorPrimary}:void 0,y=sa().hideExternalAccess,b=function(e){return e.isArchived&&e.isWatermarked?ma("archived")+", "+ma("watermarked"):e.isArchived?ma("archived"):e.isWatermarked?ma("watermarked"):void 0}(s),x=Pp(s);return a((function(){var e,t=null===(e=s.metaproperties)||void 0===e?void 0:e.nodes.filter((function(e){return e.showInGridView||e.showInListView}));m(t)}),[s.metaproperties]),t.createElement("div",{"data-drag-select-id":s.id},t.createElement(Yu,{id:s.id,style:v,title:s.name,alt:s.name,metaproperties:h,className:fa(n,c&&"shadow-outline",l&&"selected-outline"),fadeIn:i,onClick:function(e){void 0!==u&&(e.stopPropagation(),u(s,e))},"aria-selected":c},t.createElement(Yd,{url:Ap(s),cover:!1,alt:s.name}),c&&t.createElement("div",{className:"absolute h-full w-full bg-ui-800 fade-in"}),!y&&t.createElement(Ip,{asset:s}),t.createElement(Np,{isSelected:c}),b&&t.createElement("span",{className:"overlay-pill left-0 bottom-0 max-w-32 truncate",title:b},b),x&&t.createElement("span",{className:"overlay-pill right-0 bottom-0"},x),p))}function Rp(e,t,n){var r=this,i=l(null),s=l(0),c=l(null),u=l([]),d=l(),p=l(),f=l(e),h=l(!0);f.current=e;var m=!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;return a((function(){return h.current=!0,function(){h.current=!1}}),[]),o((function(){var e=function(e){var t=u.current,n=d.current;return u.current=d.current=null,s.current=e,p.current=f.current.apply(n,t)},n=function(e,t){m&&cancelAnimationFrame(c.current),c.current=m?requestAnimationFrame(e):setTimeout(e,t)},o=function(e){if(!h.current)return!1;var n=e-i.current,r=e-s.current;return!i.current||n>=t||n<0||y&&r>=b},a=function(t){return c.current=null,v&&u.current?e(t):(u.current=d.current=null,p.current)},l=function(){var e=Date.now();if(o(e))return a(e);if(h.current){var r=e-i.current,c=e-s.current,u=t-r,d=y?Math.min(u,b-c):u;n(l,d)}},x=function(){for(var a=[],f=0;f<arguments.length;f++)a[f]=arguments[f];var m=Date.now(),v=o(m);if(u.current=a,d.current=r,i.current=m,v){if(!c.current&&h.current)return s.current=i.current,n(l,t),g?e(i.current):p.current;if(y)return n(l,t),e(i.current)}return c.current||n(l,t),p.current};return x.cancel=function(){c.current&&(m?cancelAnimationFrame(c.current):clearTimeout(c.current)),s.current=0,u.current=i.current=d.current=c.current=null},x.isPending=function(){return!!c.current},x.flush=function(){return c.current?a(Date.now()):p.current},x}),[g,y,t,b,v,m])}function Fp(e,t){return e===t}function zp(e){return"function"==typeof e?function(){return e}:e}function Lp(e,t,n){var o=n&&n.equalityFn||Fp,i=function(e){var t=r(zp(e)),n=t[0],o=t[1];return[n,d((function(e){return o(zp(e))}),[])]}(e),s=i[0],c=i[1],u=Rp(d((function(e){return c(e)}),[c]),t,n),p=l(e);return a((function(){o(p.current,e)||(u(e),p.current=e)}),[e,u,o]),[s,{cancel:u.cancel,isPending:u.isPending,flush:u.flush}]}var jp={x:null,y:null},Mp=function(e){var n=e.dragContainer,o=e.selectionBoxCustomAttr,i=e.onSelect,s=e.onDeselect,c=e.onDragStart,u=e.onDragEnd,p=r(jp),h=p[0],m=p[1],g=r(jp),v=g[0],y=g[1],b=Lp(v,10,{leading:!0,maxWait:10})[0],x=r(),_=x[0],w=x[1],S=oa(),E=t.useMemo((function(){return Hp(h,b,S.querySelector(".cv-root"))}),[h,b,S]),k=Lp(E,50,{leading:!1,maxWait:50})[0],C=r([]),T=C[0],N=C[1],I=$p(T),O=l(h),A=l(v),P=l(null!==O.current.x&&null!==O.current.y&&null!==A.current.x&&null!==A.current.y),B=l({shiftKey:!1,metaKey:!1});a((function(){return document.addEventListener("keydown",R,!1),document.addEventListener("keyup",R,!1),function(){document.removeEventListener("keydown",R,!1),document.removeEventListener("keyup",R,!1)}}),[]);var R=function(e){var t=e.shiftKey,n=e.metaKey,r=t||n?"inverse":"select";B.current={shiftKey:t,metaKey:n},P.current&&r!==_&&w(r)};a((function(){var e;return"function"==typeof c&&P.current?(R(B.current),c(null!=_?_:"select")):"function"!=typeof u||P.current||(e=setTimeout((function(){return u(null!=_?_:"select")}),10)),function(){return clearTimeout(e)}}),[P.current,_]);var F=function(e){O.current=e,m(e),L()},z=function(e){A.current=e,y(e),L()},L=function(){P.current=null!==O.current.x&&null!==O.current.y&&null!==A.current.x&&null!==A.current.y},j=d((function(e){var t,n,r=e.clientY,o=e.clientX,i=null!==O.current.x,a=Math.abs(null!==(t=O.current.x)&&void 0!==t?t:0-o)>=1||Math.abs(null!==(n=O.current.y)&&void 0!==n?n:0-r)>=1;i&&a&&z({x:o,y:r})}),[]),M=d((function(){S.removeEventListener("mousemove",j),S.removeEventListener("mouseup",M),F(jp),z(jp)}),[j,S]),D=d((function(e){var t=e.clientY,n=e.clientX;0===e.button&&(S.addEventListener("mousemove",j),S.addEventListener("mouseup",M),F({x:n,y:t}))}),[j,M,S]);a((function(){var e=S.querySelector(n);return e&&(Vp(S),e.addEventListener("mousedown",D)),function(){e&&(e.removeEventListener("mousedown",D),Wp(S))}}),[n,D,j,M,S]),a((function(){var e=S.querySelectorAll("[data-drag-select-id]"),t=Array.from(e).reduce((function(e,t){var n=qp(t);return t instanceof HTMLElement&&Up(n,k)&&t.dataset.dragSelectId&&e.push(t.dataset.dragSelectId),e}),[]);N(t)}),[k,S]),a((function(){if(I&&I!==T&&P.current){var e=T.filter((function(e){return!I.includes(e)})),t=I.filter((function(e){return!T.includes(e)}));e.length&&i(e),t.length&&s(t)}}),[T,I,i,s,P]);var H=S.querySelector("#drag-select-container");return P.current&&H?f.createPortal(t.createElement("div",mr({},o,{style:o.style?mr(mr(mr({},Dp),o.style),E):mr(mr({},Dp),E),"data-testid":"drag-selection"})),H):null},Dp={position:"absolute",zIndex:100},Hp=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),s=Math.abs(t.y-e.y),c=Math.abs(o-e.x),l=r.width+r.left-i-4;return{left:i,top:a,height:s,width:c=Math.min(c,l)}},Up=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},qp=function(e){var t=e.getBoundingClientRect();return{left:t.left,top:t.top+window.scrollY,height:t.height,width:t.width}},Vp=function(e){var t=document.createElement("div");t.id="drag-select-container",e.appendChild(t)},Wp=function(e){var t=e.querySelector("#drag-select-container");t&&t.remove()},$p=function(e){var t=l();return a((function(){t.current=e})),t.current};function Yp(e){var n,o=e.assets,i=e.count,a=e.hasNextPage,s=void 0!==a&&a,c=e.isLoading,u=void 0!==c&&c,d=e.loadMore,p=void 0===d?function(){}:d,f=e.onSelect,h=void 0===f?function(){}:f,m=e.onToggle,g=void 0===m?function(){}:m,v=e.emptyStateElement,y=void 0===v?null:v,b=e.selectedAssetIds,x=void 0===b?[]:b,_=e.selectionMode,w=void 0===_?"MultiSelect":_,S=e.theme,E=e.children,k=void 0===E?null:E,C=l(null),T=Jd(C.current).dimensions,N=r([]),I=N[0],O=N[1],A=r("inactive"),P=A[0],B=A[1],R=function(e,t){return void 0!==e?[1,e]:t?[Math.ceil(t.height/188),Math.round((t.width-16)/208)]:[0,0]}(i,T),F=R[0],z=R[1];function L(e){return("inverse"!==P||!x.includes(e.id)||!I.includes(e.id))&&(x.includes(e.id)||I.includes(e.id))}return t.createElement("div",{className:"flex flex-col flex-grow overflow-y-auto",ref:C,"data-drag-select-container":!0},k,t.createElement("div",{className:"card-list"},"Loading"===o.tag&&!o.value&&t.createElement(Xu,{rows:F,columns:z}),"Loaded"===o.tag&&0===o.value.length&&y,("Loading"===o.tag&&o.value||"Loaded"===o.tag)&&t.createElement(t.Fragment,null,"MultiSelect"===w&&t.createElement(Mp,{dragContainer:"[data-drag-select-container]",selectionBoxCustomAttr:{className:"rounded border-2 border-brand-500",style:{zIndex:1e6,borderColor:null==S?void 0:S.colorPrimary}},onSelect:function(e){O((function(t){return wr(t,e)}))},onDeselect:function(e){O((function(t){return t.filter((function(t){return!e.includes(t)}))}))},onDragStart:function(e){B(e)},onDragEnd:function(e){if(B("inactive"),I.length){var t=[];I.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):h(t),O([])}}}),t.createElement(up,{hasNextPage:s,isLoading:u,loadMore:p},null===(n=o.value)||void 0===n?void 0:n.map((function(e,n){return t.createElement(Bp,{key:e.id,isSelected:L(e),isOutlined:L(e),asset:e,fadeIn:n>=F*z,onClick:function(e,t){return function(e,t){var n,r,i;if(t.shiftKey&&"MultiSelect"===w&&(null===(n=o.value)||void 0===n?void 0:n.length)){var a=o.value.findIndex((function(t){return t.id===e.id})),s=null===(r=o.value)||void 0===r?void 0:r.findIndex((function(e){return e.id===x[x.length-1]}));h(s<a?null===(i=o.value)||void 0===i?void 0:i.slice(s,a+1):o.value.slice(a,s+1))}else g([e])}(e,t)}})}))))))}function Gp(e){var n,r,o,i,s=e.connection,c=s.data,l=s.isLoading,u=s.loadMore,d=s.hasNextPage,p=s.executeQuery,f=Ar().setIsLoading,h=sa(),m=$d().selection.filter((function(e){return"asset"===e.type})).map((function(e){return e.value.id})),g=$d(),v=g.selectAssets,y=g.toggleAssets,b=Ar().setSearch,x=bp();if(a((function(){l||f(!1)}),[l]),"Failure"===c.tag)return t.createElement(Du,{error:new Error(c.value),onRetry:p});var _=null!==(i=null===(o=null===(r=null===(n=c.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(Yp,{assets:Xp(c),count:_,isLoading:l,loadMore:u,hasNextPage:d,theme:h.theme,selectionMode:h.selectionMode,selectedAssetIds:m,onSelect:v,onToggle:y,emptyStateElement:t.createElement(pp,{onReset:function(){x.clear(),b("assets",""),b("collection","")}})},t.createElement("div",{className:"flex justify-between items-center px-4 pt-4 pb-2 z-10"},void 0!==_&&t.createElement("span",{className:"flex-shrink-0 text-body-400 fade-in-down",key:_},$u(_,ma("{} asset"),ma("{} assets"))),e.showActiveFilters&&t.createElement(Tp,null),t.createElement(Wu,null),t.createElement(Hu,null)))}function Xp(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 Jp(e){var n=Pr("collection").value,r=kr()[1],o=pr("collection")[0],i=sa(),a=i.assetTypes,s=i.language,c=jd({collection:e.collection,allAssetTypes:a,searchTerm:n,orderBy:o,language:s});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"},ma("Collections")," / "),t.createElement("span",null," ",e.collection.name," ")),t.createElement(Gp,{connection:c,totalCount:e.collection.assetCount}))}function Kp(e){var n=e.className,r=e.onClick,o=e.isChecked,i=void 0!==o&&o,a=e.title;return t.createElement("div",{onClick:r,className:fa("cbx",i&&"cbx--checked",n),title:a},t.createElement("svg",{viewBox:"0 0 12 11"},t.createElement("polyline",{points:"1 6.29411765 4.5 10 11 1"})))}function Zp(e){var n=void 0!==e.selectedOptionIds&&e.selectedOptionIds.includes(e.metapropertyOption.id),r=fa("flex items-center py-2 px-4 text-sm hover:bg-ui-400 transition-color",!n&&"text-body-400",!n&&e.isLoading?"cursor-wait cursor-default":"cursor-pointer");return t.createElement("li",{className:r,onClick:function(){n?e.onRemoveOption():e.isLoading||e.onAddOption()},"data-testid":"metaproperty-option"},t.createElement(Kp,{isChecked:n,className:"mr-2"}),t.createElement("span",{className:"flex-grow mr-4 my-px truncate fade-in-down",title:e.metapropertyOption.label},e.metapropertyOption.label),t.createElement("span",{className:"fade-in-down"},e.metapropertyOption.assetCount))}function Qp(e){return t.createElement("div",{className:"pt-4 w-56","data-testid":"metaproperty-filter-content"},t.createElement("h1",{className:"mb-2 px-4 truncate",title:e.metaproperty.label},e.metaproperty.label),t.createElement("ul",{className:"overflow-y-auto pb-1 max-h-400"},e.metaproperty.options.map((function(n){return t.createElement(Zp,{key:n.id,metapropertyOption:n,selectedOptionIds:e.selectedOptionIds,isLoading:e.isLoading,onAddOption:function(){return e.onAddOption(n)},onRemoveOption:function(){return e.onRemoveOption(n)}})}))))}function ef(e){return t.createElement("div",{className:"flex"},e.smartfilter.metaproperties.map((function(n){return t.createElement(Qp,{key:n.id,metaproperty:n,selectedOptionIds:e.selectedOptionIds,isLoading:e.isLoading,onAddOption:e.onAddOption,onRemoveOption:e.onRemoveOption})})))}function tf(e){var n=bp(),r=n.metaproperties.map((function(e){return e.id})),o=function(e){var t=function(e){return"Metaproperty"===e.__typename?1e4:e.zIndex};return wr(e).sort((function(e,n){return t(e)-t(n)}))}(e.metapropertyFilters.filter((function(e){return"Metaproperty"===e.__typename||0!==e.metaproperties.length})));return t.createElement(t.Fragment,null,o.map((function(o){return t.createElement(qu,{key:o.id,title:t.createElement(nf,{filter:o}),alt:o.label,buttonClassName:"text-sm fade-in-down"},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(Nd,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),"Metaproperty"===o.__typename?t.createElement(Qp,{metaproperty:o,selectedOptionIds:r,isLoading:e.isLoading,onAddOption:n.addMetaproperty,onRemoveOption:n.removeMetaproperty}):t.createElement(ef,{smartfilter:o,selectedOptionIds:r,isLoading:e.isLoading,onAddOption:n.addMetaproperty,onRemoveOption:n.removeMetaproperty}))}))})))}function nf(e){var n=e.filter;return t.createElement(t.Fragment,null,"Smartfilter"===n.__typename&&n.icon&&t.createElement("i",{className:fa("fa fa-lg mr-2",n.icon)}),t.createElement("span",{className:"max-w-24 truncate","data-testid":"metaproperty-filter"},n.label))}function rf(e){var n=bp(),r=n.tags.includes(e.tag.name),o=fa("mb-2 mr-2",r&&"bg-ui-500",e.isLoading&&!r?"cursor-default":"cursor-pointer");return t.createElement(kp,{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 of(e){var n=wr(e.tags).sort((function(e,t){return t.assetCount-e.assetCount}));return t.createElement(qu,{title:t.createElement(af,null),className:"pt-4 pb-1 overflow-hidden max-w-600",buttonClassName:"text-sm fade-in-down"},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(Nd,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),t.createElement("h1",{className:"px-4 mb-4"}," ",ma("Tags")," "),t.createElement("div",{className:"flex flex-wrap px-4 -mr-2"},n.map((function(n){return t.createElement(rf,{key:n.id,tag:n,isLoading:e.isLoading})}))))}))}function af(){return t.createElement(t.Fragment,null,t.createElement(Jc,{className:"mr-2 inline w-6 h-6"}),t.createElement("span",{"data-testid":"tags-filter"},ma("Tags")))}function sf(e){var n=bp(),r=n.assetTypes.includes(e.type),o=fa("flex items-center py-2 px-4 text-sm hover:bg-ui-400 transition-color",!r&&"text-body-400",!r&&e.isLoading?"cursor-wait cursor-default":"cursor-pointer"),i=_p(e.type);return t.createElement("li",{className:o,onClick:function(){r?n.removeAssetType(e.type):n.addAssetType(e.type)},"data-testid":xp(e.type)+"-filter"},t.createElement(Kp,{isChecked:r,className:"mr-2"}),t.createElement(i,{className:"w-6 h-6 mr-2 -my-2"}),t.createElement("span",{className:"flex-grow mr-2 my-px"},xp(e.type)),t.createElement("span",{className:"fade-in-down"},e.count))}function cf(e){var n=sa().assetTypes,r=n.filter((function(t){return uf(e.count,t)>0}));return 0===n.length||0===r.length?null:t.createElement(qu,{title:t.createElement(lf,null),className:"pt-4 pb-1",buttonClassName:"text-sm fade-in-down"},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(Nd,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),t.createElement("h1",{className:"px-4 mb-4"},ma("Type")),t.createElement("ul",null,r.map((function(n){return t.createElement(sf,{key:n,type:n,count:uf(e.count,n),isLoading:e.isLoading})}))))}))}function lf(){return t.createElement(t.Fragment,null,t.createElement(al,{className:"mr-2 inline w-6 h-6"}),ma("Advanced"))}function uf(e,t){switch(t){case"AUDIO":return e.audio;case"DOCUMENT":return e.document;case"IMAGE":return e.image;case"VIDEO":return e.video}}function df(){var e=bp(),n=Pr("assets").value,o=sa(),i=o.assetTypes,s=o.language;va(s);var c=function(e){var t=this,n=Ld(),o=r({tag:"Loading",value:null}),i=o[0],s=o[1],c=!1;return a((function(){return vr(t,void 0,void 0,(function(){var t,r,o,i,a,l;return yr(this,(function(u){switch(u.label){case 0:return s((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,od("\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 }\n }\n }\n }",{filter:{assetType_in:null!==(l=t.assetTypes)&&void 0!==l?l:o,collectionId:null,isLimitedUse:!1,metapropertyOptionId_in:t.metaproperties.map((function(e){return e.id})),searchTerm:r,tagNames_in:t.tags},language:i},n)];case 1:return a=u.sent(),c||(td(a)?s({tag:"Failure",value:a.error}):s({tag:"Loaded",value:a.value})),[2]}}))})),function(){c=!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:s}),l=c.data,u=c.isLoading;if("Failure"===l.tag||!l.value)return t.createElement("nav",{className:"flex justify-between bg-ui-0 px-4 py-2 z-20"},t.createElement(pf,null));var d=l.value.searchAssets,p=d.metapropertyFilters,f=d.tags,h=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(Ep,{className:"h-8"},p&&p.nodes.length>0&&t.createElement(tf,{metapropertyFilters:p.nodes,isLoading:u}),f&&f.nodes.length>0&&t.createElement(of,{tags:f.nodes,isLoading:u}),t.createElement(cf,{isLoading:u,count:h.assetType})))}function pf(){return t.createElement("div",{className:"inline-flex items-center"},t.createElement(Gu,{className:"h-4 ml-2 mr-2 my-2",width:100}),t.createElement(Gu,{className:"h-4 ml-2 mr-2 my-2",width:80}),t.createElement(Gu,{className:"h-4 ml-2 mr-2 my-2",width:110}))}function ff(){var e=kr()[0],n=Pr(e.page),o=n.value,i=n.isLoading,s=n.setSearch,c=Rp(s,500),l=r(o),u=l[0],d=l[1];a((function(){d(o)}),[e,o]),a((function(){return function(){c.flush()}}),[e,c]);var p="collections"===e.page?ma("Search for collections"):ma("Search for assets"),f=!i&&""!==o;return t.createElement("div",{className:"w-full inline-flex relative text-body-300 focus-within:text-body-400\n\t\t\t transition-color",style:{maxWidth:"440px"}},t.createElement("div",{className:"pointer-events-none absolute inset-y-0 left-0 pl-3 flex items-center"},t.createElement(Zc,{className:"fill-current pointer-events-none w-6 h-6"})),t.createElement("input",{value:u,className:"appearance-none block w-full border border-ui-600 rounded py-2 pr-4\n\t\t\t\t pl-10 text-body-500 placeholder-body-300 focus:outline-none\n\t\t\t\t hover:border-ui-900 focus:border-ui-900 transition-color",placeholder:p,onChange:function(e){return t=e.target.value,d(t),void c(t);var t},"data-testid":"search-input"}),i&&t.createElement("div",{role:"alert","aria-live":"polite"},t.createElement(Nd,{className:"absolute right-0 mr-3 h-full"})),f&&t.createElement("button",{"data-testid":"clear-search-input",className:"h-full absolute right-3 focus:outline-none text-body-300\n\t\t\t\t\t hover:text-body-400 fade-in",onClick:function(){d(""),s("")},type:"button"},t.createElement(cl,{className:"w-6 h-6"})))}function hf(){var e=kr(),n=e[0],r=e[1];return t.createElement("div",{className:"inline-flex mr-auto"},t.createElement(ha,{className:"assets"===n.page?"bg-ui-500 text-body-500":void 0,onClick:function(){return r({page:"assets"})}},ma("Assets")),t.createElement(ha,{className:"collections"===n.page?"bg-ui-500 text-body-500":void 0,onClick:function(){return r({page:"collections"})}},ma("Collections")))}function mf(){var e,n="authenticated"===(null===(e=i(Rd))||void 0===e?void 0:e.status)||!1,r=Sd(),o=Ld(),a=void 0!==sa().assetFilter;return n||r||!a?t.createElement("nav",{className:"flex justify-between bg-ui-0 px-4 py-3 z-30"},!a&&t.createElement(t.Fragment,null,t.createElement(hf,null),t.createElement(ff,null)),t.createElement("div",{className:"inline-flex ml-auto"},n&&t.createElement(ha,{onClick:function(){return null==o?void 0:o.logout()}},t.createElement("span",{className:"mr-1"}," ",ma("Log out")," "),t.createElement(Xc,{className:"w-6 h-6 -mr-1"})),r&&t.createElement(ha,{onClick:function(){return r.onClose()},title:ma("Close")},t.createElement(fl,{className:"w-6 h-6 -mx-1"})))):null}function gf(){var e=bp(),n=e.assetTypes,r=e.metaproperties,o=e.tags,i=Pr("assets").value,a=pr("assets")[0],s=sa(),c=s.assetFilter,l=s.assetTypes,u=s.language,d=jd(void 0===c?{filter:{assetTypes:n,metaproperties:r,tags:o},searchTerm:i,orderBy:a,allAssetTypes:l,language:u}:{predefinedFilter:c,orderBy:a,language:u});return t.createElement(Gp,{connection:d,showActiveFilters:void 0===c})}function vf(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"),vr(this,void 0,void 0,(function(){var r;return yr(this,(function(o){switch(o.label){case 0:return[4,od("\n fragment AddMediaAsset on Asset {\n "+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 td(r=o.sent())?[2,r]:[2,Zu(r.value.node)]}}))}))}function yf(e){return e.replace(/([a-z0-9])([A-Z])/g,(function(e,t,n){return t+" "+n}))}function bf(e){var n=r({status:"Loading"}),o=n[0],i=n[1],s=Ld(),c=sa().assetFieldSelection;return a((function(){i({status:"Loading"}),e.onChange(void 0),function(e,t,n){return vr(this,void 0,void 0,(function(){var r;return yr(this,(function(o){switch(o.label){case 0:return[4,vf(e.id,t,n)];case 1:return[2,ed(r=o.sent())&&r.value.files?Zu(r.value.files):Qu("Error retrieving asset files")]}}))}))}(e.asset,s,c).then((function(t){if(td(t))return ta.error(t.error),void i({status:"Failure"});var n=t.value,r=function(e){return"transformBaseUrl"in e?"transformBaseUrl":"original"in e?"original":"webImage"}(n);i({status:"Data",files:n,key:r}),e.onChange(n[r])}))}),[e.asset.id,s,c]),t.createElement(qu,{title:t.createElement(xf,{state:o}),buttonKind:"Secondary",className:"py-2",buttonClassName:"mr-4 capitalize",direction:"Up",disabled:"Loading"===o.status},(function(n){return"Data"===o.status&&t.createElement("ul",{className:"overflow-y-auto pb-1 max-h-400"},Object.entries(o.files).map((function(r){var a,s=r[0],c=r[1];return t.createElement(Vu,{key:s,className:"px-3 py-2",selected:o.key===s,onClick:function(){!function(t){i((function(n){return"Data"!==n.status?n:(e.onChange(n.files[t]),mr(mr({},n),{key:t}))}))}(s),n()}},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 justify-center font-semibold text-body-400 text-xs\n\t\t\t\t\t\t\t\t\t uppercase","data-testid":"file-extension"},"transformBaseUrl"===s?t.createElement(Gc,{className:"w-6 h-6"}):null!==(a=function(e){if(e)return function(e){var t=e.match(/filename=(.*?)&/);if(t){var n=/(?:\.([^.]+))?$/.exec(t[1]);if(n&&n[1])return n[1]}}(e)||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)}(c.url))&&void 0!==a?a:t.createElement(rl,{className:"w-6 h-6"})),t.createElement("div",{className:"flex-grow w-40"},t.createElement("div",{className:"capitalize text-body-500 truncate"},yf(s)),t.createElement("div",{className:"text-sm"},c.width&&c.height&&c.width+" x "+c.height+" px",c.width&&c.height&&c.fileSize&&t.createElement("span",{className:"mx-2"},"•"),c.fileSize&&function(e){if(e<1)return"0 Bytes";var t=Math.floor(Math.log(e)/Math.log(1024));return(e/Math.pow(1024,t)).toFixed(1)+" "+{0:"Bytes",1:"kB",2:"MB",3:"GB",4:"TB",5:"PB",6:"EB",7:"ZB",8:"YB"}[t]}(c.fileSize))))})))}))}function xf(e){var n=e.state;return"Loading"===n.status?t.createElement(Gu,{width:50,className:"h-4"}):"Data"===n.status?t.createElement(t.Fragment,null,yf(n.key)):t.createElement(t.Fragment,null,"Error")}function _f(e){var n=e.status,r=e.numberOfSelectedItems;return"Done"===n?t.createElement(ll,{"data-testid":"check",className:"w-6 h-6"}):"Error"===n?t.createElement(t.Fragment,null,ma("Retry")):"Loading"===n?t.createElement(Nd,{className:"text-ui-0"}):t.createElement(t.Fragment,null,$u(r,ma("Add asset"),ma("Add assets")))}function wf(e){var n,o=sa(),i=o.assetFieldSelection,s=o.onSuccess,c=o.selectionMode,u=Ld(),d=l(!0),p=r("SingleSelectFile"===c?{status:"WaitingForFileSelection"}:{status:"Ready"}),f=p[0],h=p[1];function m(e,t){if(td(e))h({status:"Error"});else{try{var n=Array.isArray(e.value)?e.value:[e.value];s(n,{selectedFile:t})}catch(e){ta.error(e)}d.current&&(h({status:"Done"}),setTimeout((function(){d.current&&h({status:"Ready"})}),2e3))}}return a((function(){return function(){d.current=!1}}),[]),t.createElement(t.Fragment,null,"SingleSelectFile"===c&&"asset"===(null===(n=e.selection[0])||void 0===n?void 0:n.type)&&t.createElement(bf,{asset:e.selection[0].value,onChange:function(e){h(void 0===e?{status:"WaitingForFileSelection"}:{status:"ReadyWithFile",file:e})}}),t.createElement(ha,{kind:"Primary",className:"relative",isDisabled:"Loading"===f.status||"WaitingForFileSelection"===f.status,onClick:function(){var t,n="ReadyWithFile"===f.status?f.file:void 0;h({status:"Loading"}),"MultiSelect"!==c&&"asset"===(null===(t=e.selection[0])||void 0===t?void 0:t.type)?vf(e.selection[0].value.id,u,i).then((function(e){m(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"),vr(this,void 0,void 0,(function(){var r,o,i,a,s,c,l,u,d,p,f,h;return yr(this,(function(m){switch(m.label){case 0:return r="\n fragment AddMediaAsset on Asset {\n "+n+"\n }\n\n query getAssetsById($ids: [ID!]!) {\n nodes(ids: $ids) {\n __typename\n id\n ...on Asset {\n ...AddMediaAsset\n files\n }\n ...on Collection {\n assets {\n nodes {\n __typename\n id\n ...AddMediaAsset\n files\n }\n }\n }\n }\n }",o={ids:e.map((function(e){return e.value.id}))},[4,od(r,o,t)];case 1:if(td(i=m.sent()))return[2,i];for(a=[],s=0,c=i.value.nodes;s<c.length;s++)"Collection"===(l=c[s]).__typename?a.push.apply(a,l.assets.nodes):a.push(l);for(u=new Set,d=[],p=0,f=a;p<f.length;p++)h=f[p],u.has(h.id)||(d.push(h),u.add(h.id));return[2,Zu(d)]}}))}))}(e.selection,u,i).then((function(e){m(e,n)}))},testId:"add-button"},t.createElement(_f,{status:f.status,numberOfSelectedItems:e.selection.length})))}function Sf(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(Kp,{isChecked:!0,className:"ml-2 mr-5 cursor-pointer",onClick:r,title:ma("Deselect")}),o)}function Ef(e){var n=e.asset,r=$d();return t.createElement(Sf,{title:n.name,onRemove:function(){return r.toggleAssets([n])}},t.createElement("img",{alt:n.name,className:"w-10 h-10 mr-3 select-none object-cover bg-ui-500 rounded",src:Ap(n),draggable:!1}),t.createElement("span",{className:"w-40 mr-2 truncate"},n.name),Pp(n)&&t.createElement("span",{className:"flex-grow text-body-400 text-sm text-right"},Pp(n)))}function kf(e){var n=e.collection,r=$d();return t.createElement(Sf,{title:n.name,onRemove:function(){return r.toggleCollection(n)}},t.createElement("div",{className:"w-10 h-10 mr-3 bg-ui-500 rounded flex items-center justify-center"},t.createElement(il,{className:"w-6 h-6 text-body-500 opacity-75"})),t.createElement("span",{className:"w-40 mr-2 truncate"},n.name),t.createElement("span",{className:"flex-grow text-body-400 text-sm text-right"},$u(n.assetCount,ma("{} asset"),ma("{} assets"))))}function Cf(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(Ef,{key:e.value.id,asset:e.value}):t.createElement(kf,{key:e.value.id,collection:e.value})})))}function Tf(){var e=$d(),n=e.selection,r=e.clear,o=n.length;return 0===o?null:t.createElement("div",{className:"flex flex-shrink-0 h-16 z-10 px-6 items-center shadow-footer fade-in-down","data-testid":"selection-footer"},t.createElement("span",{className:"flex-grow flex items-center"},t.createElement(qu,{buttonKind:"Secondary",direction:"Up",title:ma("View {} selected").replace("{}",o.toString())},(function(){return t.createElement(Cf,{selection:n})})),t.createElement(ha,{className:"ml-1",onClick:r},ma("Clear selection"))),t.createElement(wf,{selection:n}))}function Nf(e){return"[object String]"===Object.prototype.toString.call(e)}function If(e){return"[object Object]"===Object.prototype.toString.call(e)}function Of(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function Af(e,t){try{return e instanceof t}catch(e){return!1}}function Pf(e){var t,n,r,o,i,a=e,s=[];if(!a||!a.tagName)return"";if(s.push(a.tagName.toLowerCase()),a.id&&s.push("#"+a.id),(t=a.className)&&Nf(t))for(n=t.split(/\s+/),i=0;i<n.length;i++)s.push("."+n[i]);var c=["type","name","title","alt"];for(i=0;i<c.length;i++)r=c[i],(o=a.getAttribute(r))&&s.push("["+r+'="'+o+'"]');return s.join("")}function Bf(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function Rf(e,t){return e.require(t)}function Ff(e){var t;try{t=Rf(module,e)}catch(e){}try{var n=Rf(module,"process").cwd;t=Rf(module,n()+"/node_modules/"+e)}catch(e){}return t}function zf(e,t){return!!Nf(e)&&(n=t,"[object RegExp]"===Object.prototype.toString.call(n)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t));var n}var Lf={};function jf(){return Bf()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:Lf}function Mf(){var e=jf(),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=function(e){for(var t=e.toString(16);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,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function Df(e){var t=jf();if(!("console"in t))return e();var n=t.console,r={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&n[e].__sentry_original__&&(r[e]=n[e],n[e]=n[e].__sentry_original__)}));var o=e();return Object.keys(r).forEach((function(e){n[e]=r[e]})),o}var Hf=jf(),Uf="Sentry Logger ",qf=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Df((function(){Hf.console.log(Uf+"[Log]: "+e.join(" "))}))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Df((function(){Hf.console.warn(Uf+"[Warn]: "+e.join(" "))}))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Df((function(){Hf.console.error(Uf+"[Error]: "+e.join(" "))}))},e}();Hf.__SENTRY__=Hf.__SENTRY__||{};var Vf=Hf.__SENTRY__.logger||(Hf.__SENTRY__.logger=new qf);function Wf(e){try{return e&&"function"==typeof e&&e.name||"<anonymous>"}catch(e){return"<anonymous>"}}function $f(e,t,n){if(t in e){var r=e[t],o=n(r);if("function"==typeof o)try{o.prototype=o.prototype||{},Object.defineProperties(o,{__sentry_original__:{enumerable:!1,value:r}})}catch(e){}e[t]=o}}function Yf(e){var t,n;if(If(e)){var r=e,o={};try{for(var i=br(Object.keys(r)),a=i.next();!a.done;a=i.next()){var s=a.value;void 0!==r[s]&&(o[s]=Yf(r[s]))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o}return Array.isArray(e)?e.map(Yf):e}function Gf(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}var Xf,Jf,Kf,Zf=jf(),Qf={},eh={};function th(e){if(!eh[e])switch(eh[e]=!0,e){case"console":"console"in Zf&&["debug","info","warn","error","log","assert"].forEach((function(e){e in Zf.console&&$f(Zf.console,e,(function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];rh("console",{args:n,level:e}),t&&Function.prototype.apply.call(t,Zf.console,n)}}))}));break;case"dom":!function(){if("document"in Zf){var e=rh.bind(null,"dom"),t=ah(e,!0);Zf.document.addEventListener("click",t,!1),Zf.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((function(t){var n=Zf[t]&&Zf[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&($f(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 s=ah(e);a.handler=s,t.call(this,n,s,o)}a.refCount+=1}catch(e){}return t.call(this,n,r,o)}})),$f(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 Zf){var e=[],t=[],n=XMLHttpRequest.prototype;$f(n,"open",(function(n){return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=this,a=r[1];i.__sentry_xhr__={method:Nf(r[0])?r[0].toUpperCase():r[0],url:r[1]},Nf(a)&&"POST"===i.__sentry_xhr__.method&&a.match(/sentry_key/)&&(i.__sentry_own_request__=!0);var s=function(){if(4===i.readyState){try{i.__sentry_xhr__&&(i.__sentry_xhr__.status_code=i.status)}catch(e){}try{var n=e.indexOf(i);if(-1!==n){e.splice(n);var o=t.splice(n)[0];i.__sentry_xhr__&&void 0!==o[0]&&(i.__sentry_xhr__.body=o[0])}}catch(e){}rh("xhr",{args:r,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:i})}};return"onreadystatechange"in i&&"function"==typeof i.onreadystatechange?$f(i,"onreadystatechange",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return s(),e.apply(i,t)}})):i.addEventListener("readystatechange",s),n.apply(i,r)}})),$f(n,"send",(function(n){return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return e.push(this),t.push(r),rh("xhr",{args:r,startTimestamp:Date.now(),xhr:this}),n.apply(this,r)}}))}}();break;case"fetch":(function(){if(!function(){if(!("fetch"in jf()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}())return!1;var e=jf();if(Gf(e.fetch))return!0;var t=!1,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=Gf(r.contentWindow.fetch)),n.head.removeChild(r)}catch(e){Vf.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t})()&&$f(Zf,"fetch",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r={args:t,fetchData:{method:oh(t),url:ih(t)},startTimestamp:Date.now()};return rh("fetch",mr({},r)),e.apply(Zf,t).then((function(e){return rh("fetch",mr(mr({},r),{endTimestamp:Date.now(),response:e})),e}),(function(e){throw rh("fetch",mr(mr({},r),{endTimestamp:Date.now(),error:e})),e}))}}));break;case"history":!function(){if(function(){var e=jf(),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=Zf.onpopstate;Zf.onpopstate=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=Zf.location.href,o=Xf;if(Xf=r,rh("history",{from:o,to:r}),e)try{return e.apply(this,t)}catch(e){}},$f(Zf.history,"pushState",t),$f(Zf.history,"replaceState",t)}function t(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.length>2?t[2]:void 0;if(r){var o=Xf,i=String(r);Xf=i,rh("history",{from:o,to:i})}return e.apply(this,t)}}}();break;case"error":ch=Zf.onerror,Zf.onerror=function(e,t,n,r,o){return rh("error",{column:r,error:o,line:n,msg:e,url:t}),!!ch&&ch.apply(this,arguments)};break;case"unhandledrejection":lh=Zf.onunhandledrejection,Zf.onunhandledrejection=function(e){return rh("unhandledrejection",e),!lh||lh.apply(this,arguments)};break;default:Vf.warn("unknown instrumentation type:",e)}}function nh(e){e&&"string"==typeof e.type&&"function"==typeof e.callback&&(Qf[e.type]=Qf[e.type]||[],Qf[e.type].push(e.callback),th(e.type))}function rh(e,t){var n,r;if(e&&Qf[e])try{for(var o=br(Qf[e]||[]),i=o.next();!i.done;i=o.next()){var a=i.value;try{a(t)}catch(t){Vf.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+Wf(a)+"\nError: "+t)}}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}function oh(e){return void 0===e&&(e=[]),"Request"in Zf&&Af(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function ih(e){return void 0===e&&(e=[]),"string"==typeof e[0]?e[0]:"Request"in Zf&&Af(e[0],Request)?e[0].url:String(e[0])}function ah(e,t){return void 0===t&&(t=!1),function(n){if(n&&Kf!==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===Jf||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}(Kf,n))&&(e({event:n,name:r,global:t}),Kf=n),clearTimeout(Jf),Jf=Zf.setTimeout((function(){Jf=void 0}),1e3)}}}var sh,ch=null,lh=null;!function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}(sh||(sh={}));var uh,dh,ph,fh=function(){function e(e){var t=this;this._state=sh.PENDING,this._handlers=[],this._resolve=function(e){t._setResult(sh.RESOLVED,e)},this._reject=function(e){t._setResult(sh.REJECTED,e)},this._setResult=function(e,n){t._state===sh.PENDING&&(Of(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._attachHandler=function(e){t._handlers=t._handlers.concat(e),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==sh.PENDING){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e.done||(t._state===sh.RESOLVED&&e.onfulfilled&&e.onfulfilled(t._value),t._state===sh.REJECTED&&e.onrejected&&e.onrejected(t._value),e.done=!0)}))}};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.resolve=function(t){return new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){return new e((function(n,r){if(Array.isArray(t))if(0!==t.length){var o=t.length,i=[];t.forEach((function(t,a){e.resolve(t).then((function(e){i[a]=e,0==(o-=1)&&n(i)})).then(null,r)}))}else n([]);else r(new TypeError("Promise.all requires an array as input."))}))},e.prototype.then=function(t,n){var r=this;return new e((function(e,o){r._attachHandler({done:!1,onfulfilled:function(n){if(t)try{return void e(t(n))}catch(e){return void o(e)}else e(n)},onrejected:function(t){if(n)try{return void e(n(t))}catch(e){return void o(e)}else o(t)}})}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,r){var o,i;return n.then((function(e){i=!1,o=e,t&&t()}),(function(e){i=!0,o=e,t&&t()})).then((function(){i?r(o):e(o)}))}))},e.prototype.toString=function(){return"[object SyncPromise]"},e}(),hh={nowSeconds:function(){return Date.now()/1e3}},mh=Bf()?function(){try{return Rf(module,"perf_hooks").performance}catch(e){return}}():function(){var e=jf().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),gh=void 0===mh?hh:{nowSeconds:function(){return(mh.timeOrigin+mh.now())/1e3}},vh=hh.nowSeconds.bind(hh),yh=gh.nowSeconds.bind(gh),bh=yh,xh=function(){var e=jf().performance;if(e){var t=e.now(),n=Date.now(),r=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,o=r<36e5,i=e.timing&&e.timing.navigationStart,a="number"==typeof i?Math.abs(i+t-n):36e5;return o||a<36e5?r<=a?e.timeOrigin:i:n}}(),_h=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=_r(t._breadcrumbs),n._tags=mr({},t._tags),n._extra=mr({},t._extra),n._contexts=mr({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=_r(t._eventProcessors),n._requestSession=t._requestSession),n},e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},e.prototype.getUser=function(){return this._user},e.prototype.getRequestSession=function(){return this._requestSession},e.prototype.setRequestSession=function(e){return this._requestSession=e,this},e.prototype.setTags=function(e){return this._tags=mr(mr({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=mr(mr({},this._tags),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=mr(mr({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=mr(mr({},this._extra),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this.setTransactionName(e)},e.prototype.setContext=function(e,t){var n;return null===t?delete this._contexts[e]:this._contexts=mr(mr({},this._contexts),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.prototype.getTransaction=function(){var e,t,n,r,o=this.getSpan();return(null===(e=o)||void 0===e?void 0:e.transaction)?null===(t=o)||void 0===t?void 0:t.transaction:(null===(r=null===(n=o)||void 0===n?void 0:n.spanRecorder)||void 0===r?void 0:r.spans[0])?o.spanRecorder.spans[0]:void 0},e.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},e.prototype.getSession=function(){return this._session},e.prototype.update=function(t){if(!t)return this;if("function"==typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=mr(mr({},this._tags),t._tags),this._extra=mr(mr({},this._extra),t._extra),this._contexts=mr(mr({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):If(t)&&(t=t,this._tags=mr(mr({},this._tags),t.tags),this._extra=mr(mr({},this._extra),t.extra),this._contexts=mr(mr({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this},e.prototype.clear=function(){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},e.prototype.addBreadcrumb=function(e,t){var n=mr({timestamp:vh()},e);return this._breadcrumbs=void 0!==t&&t>=0?_r(this._breadcrumbs,[n]).slice(-t):_r(this._breadcrumbs,[n]),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){var n;if(this._extra&&Object.keys(this._extra).length&&(e.extra=mr(mr({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=mr(mr({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=mr(mr({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=mr(mr({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=mr({trace:this._span.getTraceContext()},e.contexts);var r=null===(n=this._span.transaction)||void 0===n?void 0:n.name;r&&(e.tags=mr({transaction:r},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=_r(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors(_r(function(){var e=jf();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}(),this._eventProcessors),e,t)},e.prototype._notifyEventProcessors=function(e,t,n,r){var o=this;return void 0===r&&(r=0),new fh((function(i,a){var s=e[r];if(null===t||"function"!=typeof s)i(t);else{var c=s(mr({},t),n);Of(c)?c.then((function(t){return o._notifyEventProcessors(e,t,n,r+1).then(i)})).then(null,a):o._notifyEventProcessors(e,c,n,r+1).then(i).then(null,a)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)},e.prototype._applyFingerprint=function(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},e}();!function(e){e.Ok="ok",e.Exited="exited",e.Crashed="crashed",e.Abnormal="abnormal"}(uh||(uh={})),function(e){e.Ok="ok",e.Errored="errored",e.Crashed="crashed"}(dh||(dh={})),function(e){e.Explicit="explicitly_set",e.Sampler="client_sampler",e.Rate="client_rate",e.Inheritance="inheritance"}(ph||(ph={}));var wh=function(){function e(e,t,n){void 0===t&&(t=new _h),void 0===n&&(n=4),this._version=n,this._stack=[{}],this.getStackTop().scope=t,this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this._version<e},e.prototype.bindClient=function(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()},e.prototype.pushScope=function(){var e=_h.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e},e.prototype.popScope=function(){return!(this.getStack().length<=1||!this.getStack().pop())},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var n=this._lastEventId=Mf(),r=t;if(!t){var o=void 0;try{throw new Error("Sentry syntheticException")}catch(e){o=e}r={originalException:e,syntheticException:o}}return this._invokeClient("captureException",e,mr(mr({},r),{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var r=this._lastEventId=Mf(),o=n;if(!n){var i=void 0;try{throw new Error(e)}catch(e){i=e}o={originalException:e,syntheticException:i}}return this._invokeClient("captureMessage",e,t,mr(mr({},o),{event_id:r})),r},e.prototype.captureEvent=function(e,t){var n=this._lastEventId=Mf();return this._invokeClient("captureEvent",e,mr(mr({},t),{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop(),r=n.scope,o=n.client;if(r&&o){var i=o.getOptions&&o.getOptions()||{},a=i.beforeBreadcrumb,s=void 0===a?null:a,c=i.maxBreadcrumbs,l=void 0===c?100:c;if(!(l<=0)){var u=vh(),d=mr({timestamp:u},e),p=s?Df((function(){return s(d,t)})):d;null!==p&&r.addBreadcrumb(p,Math.min(l,100))}}},e.prototype.setUser=function(e){var t=this.getScope();t&&t.setUser(e)},e.prototype.setTags=function(e){var t=this.getScope();t&&t.setTags(e)},e.prototype.setExtras=function(e){var t=this.getScope();t&&t.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getScope();n&&n.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getScope();n&&n.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getScope();n&&n.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop(),n=t.scope,r=t.client;n&&r&&e(n)},e.prototype.run=function(e){var t=Eh(this);try{e(this)}finally{Eh(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return Vf.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e){return this._callExtensionMethod("startSpan",e)},e.prototype.startTransaction=function(e,t){return this._callExtensionMethod("startTransaction",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype.captureSession=function(e){if(void 0===e&&(e=!1),e)return this.endSession();this._sendSessionUpdate()},e.prototype.endSession=function(){var e,t,n,r,o;null===(n=null===(t=null===(e=this.getStackTop())||void 0===e?void 0:e.scope)||void 0===t?void 0:t.getSession())||void 0===n||n.close(),this._sendSessionUpdate(),null===(o=null===(r=this.getStackTop())||void 0===r?void 0:r.scope)||void 0===o||o.setSession()},e.prototype.startSession=function(e){var t=this.getStackTop(),n=t.scope,r=t.client,o=r&&r.getOptions()||{},i=o.release,a=o.environment,s=new Oh(mr(mr({release:i,environment:a},n&&{user:n.getUser()}),e));if(n){var c=n.getSession&&n.getSession();c&&c.status===uh.Ok&&c.update({status:uh.Exited}),this.endSession(),n.setSession(s)}return s},e.prototype._sendSessionUpdate=function(){var e=this.getStackTop(),t=e.scope,n=e.client;if(t){var r=t.getSession&&t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}},e.prototype._invokeClient=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.getStackTop(),i=o.scope,a=o.client;a&&a[e]&&(t=a)[e].apply(t,_r(n,[i]))},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Sh(),o=r.__SENTRY__;if(o&&o.extensions&&"function"==typeof o.extensions[e])return o.extensions[e].apply(this,t);Vf.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function Sh(){var e=jf();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function Eh(e){var t=Sh(),n=Th(t);return Nh(t,e),n}function kh(){var e=Sh();return Ch(e)&&!Th(e).isOlderThan(4)||Nh(e,new wh),Bf()?function(e){var t,n,r;try{var o=null===(r=null===(n=null===(t=Sh().__SENTRY__)||void 0===t?void 0:t.extensions)||void 0===n?void 0:n.domain)||void 0===r?void 0:r.active;if(!o)return Th(e);if(!Ch(o)||Th(o).isOlderThan(4)){var i=Th(e).getStackTop();Nh(o,new wh(i.client,_h.clone(i.scope)))}return Th(o)}catch(t){return Th(e)}}(e):Th(e)}function Ch(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function Th(e){return e&&e.__SENTRY__&&e.__SENTRY__.hub||(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=new wh),e.__SENTRY__.hub}function Nh(e,t){return!!e&&(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=t,!0)}var Ih,Oh=function(){function e(e){this.errors=0,this.sid=Mf(),this.duration=0,this.status=uh.Ok,this.init=!0,this.ignoreDuration=!1;var t=yh();this.timestamp=t,this.started=t,e&&this.update(e)}return e.prototype.update=function(e){if(void 0===e&&(e={}),e.user&&(e.user.ip_address&&(this.ipAddress=e.user.ip_address),e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||yh(),e.ignoreDuration&&(this.ignoreDuration=e.ignoreDuration),e.sid&&(this.sid=32===e.sid.length?e.sid:Mf()),void 0!==e.init&&(this.init=e.init),e.did&&(this.did=""+e.did),"number"==typeof e.started&&(this.started=e.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof e.duration)this.duration=e.duration;else{var t=this.timestamp-this.started;this.duration=t>=0?t:0}e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),e.ipAddress&&(this.ipAddress=e.ipAddress),e.userAgent&&(this.userAgent=e.userAgent),"number"==typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):this.status===uh.Ok?this.update({status:uh.Exited}):this.update()},e.prototype.toJSON=function(){return Yf({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:Yf({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},e}();!function(e){e.Ok="ok",e.DeadlineExceeded="deadline_exceeded",e.Unauthenticated="unauthenticated",e.PermissionDenied="permission_denied",e.NotFound="not_found",e.ResourceExhausted="resource_exhausted",e.InvalidArgument="invalid_argument",e.Unimplemented="unimplemented",e.Unavailable="unavailable",e.InternalError="internal_error",e.UnknownError="unknown_error",e.Cancelled="cancelled",e.AlreadyExists="already_exists",e.FailedPrecondition="failed_precondition",e.Aborted="aborted",e.OutOfRange="out_of_range",e.DataLoss="data_loss"}(Ih||(Ih={})),function(e){e.fromHttpCode=function(t){if(t<400)return e.Ok;if(t>=400&&t<500)switch(t){case 401:return e.Unauthenticated;case 403:return e.PermissionDenied;case 404:return e.NotFound;case 409:return e.AlreadyExists;case 413:return e.FailedPrecondition;case 429:return e.ResourceExhausted;default:return e.InvalidArgument}if(t>=500&&t<600)switch(t){case 501:return e.Unimplemented;case 503:return e.Unavailable;case 504:return e.DeadlineExceeded;default:return e.InternalError}return e.UnknownError}}(Ih||(Ih={}));var Ah=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Ph(e){var t;return void 0===e&&(e=null===(t=kh().getClient())||void 0===t?void 0:t.getOptions()),!!e&&("tracesSampleRate"in e||"tracesSampler"in e)}function Bh(e){var t,n;return void 0===e&&(e=kh()),null===(n=null===(t=e)||void 0===t?void 0:t.getScope())||void 0===n?void 0:n.getTransaction()}function Rh(e){return e/1e3}function Fh(){var e=Bh();e&&(Vf.log("[Tracing] Transaction: "+Ih.InternalError+" -> Global error occured"),e.setStatus(Ih.InternalError))}var zh=function(){function e(e){void 0===e&&(e=1e3),this.spans=[],this._maxlen=e}return e.prototype.add=function(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)},e}(),Lh=function(e){function t(t,n){var r=e.call(this,t)||this;return r._measurements={},r._hub=kh(),Af(n,wh)&&(r._hub=n),r.name=t.name||"",r.metadata=t.metadata||{},r._trimEnd=t.trimEnd,r.transaction=r,r}return hr(t,e),t.prototype.setName=function(e){this.name=e},t.prototype.initSpanRecorder=function(e){void 0===e&&(e=1e3),this.spanRecorder||(this.spanRecorder=new zh(e)),this.spanRecorder.add(this)},t.prototype.setMeasurements=function(e){this._measurements=mr({},e)},t.prototype.setMetadata=function(e){this.metadata=mr(mr({},this.metadata),e)},t.prototype.finish=function(t){var n=this;if(void 0===this.endTimestamp){if(this.name||(Vf.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),e.prototype.finish.call(this,t),!0===this.sampled){var r=this.spanRecorder?this.spanRecorder.spans.filter((function(e){return e!==n&&e.endTimestamp})):[];this._trimEnd&&r.length>0&&(this.endTimestamp=r.reduce((function(e,t){return e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e})).endTimestamp);var o={contexts:{trace:this.getTraceContext()},spans:r,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",debug_meta:this.metadata};return Object.keys(this._measurements).length>0&&(Vf.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),o.measurements=this._measurements),Vf.log("[Tracing] Finishing "+this.op+" transaction: "+this.name+"."),this._hub.captureEvent(o)}Vf.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.")}},t.prototype.toContext=function(){var t=e.prototype.toContext.call(this);return Yf(mr(mr({},t),{name:this.name,trimEnd:this._trimEnd}))},t.prototype.updateWithContext=function(t){var n;return e.prototype.updateWithContext.call(this,t),this.name=null!=(n=t.name)?n:"",this._trimEnd=t.trimEnd,this},t}(function(){function e(e){if(this.traceId=Mf(),this.spanId=Mf().substring(16),this.startTimestamp=bh(),this.tags={},this.data={},!e)return this;e.traceId&&(this.traceId=e.traceId),e.spanId&&(this.spanId=e.spanId),e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.data&&(this.data=e.data),e.tags&&(this.tags=e.tags),e.status&&(this.status=e.status),e.startTimestamp&&(this.startTimestamp=e.startTimestamp),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}return e.prototype.child=function(e){return this.startChild(e)},e.prototype.startChild=function(t){var n=new e(mr(mr({},t),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));return n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,n},e.prototype.setTag=function(e,t){var n;return this.tags=mr(mr({},this.tags),((n={})[e]=t,n)),this},e.prototype.setData=function(e,t){var n;return this.data=mr(mr({},this.data),((n={})[e]=t,n)),this},e.prototype.setStatus=function(e){return this.status=e,this},e.prototype.setHttpStatus=function(e){this.setTag("http.status_code",String(e));var t=Ih.fromHttpCode(e);return t!==Ih.UnknownError&&this.setStatus(t),this},e.prototype.isSuccess=function(){return this.status===Ih.Ok},e.prototype.finish=function(e){this.endTimestamp="number"==typeof e?e:bh()},e.prototype.toTraceparent=function(){var e="";return void 0!==this.sampled&&(e=this.sampled?"-1":"-0"),this.traceId+"-"+this.spanId+e},e.prototype.toContext=function(){return Yf({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})},e.prototype.updateWithContext=function(e){var t,n,r,o,i;return this.data=null!=(t=e.data)?t:{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=null!=(n=e.spanId)?n:this.spanId,this.startTimestamp=null!=(r=e.startTimestamp)?r:this.startTimestamp,this.status=e.status,this.tags=null!=(o=e.tags)?o:{},this.traceId=null!=(i=e.traceId)?i:this.traceId,this},e.prototype.getTraceContext=function(){return Yf({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})},e.prototype.toJSON=function(){return Yf({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})},e}()),jh=function(e){function t(t,n,r,o){void 0===r&&(r="");var i=e.call(this,o)||this;return i._pushActivity=t,i._popActivity=n,i.transactionSpanId=r,i}return hr(t,e),t.prototype.add=function(t){var n=this;t.spanId!==this.transactionSpanId&&(t.finish=function(e){t.endTimestamp="number"==typeof e?e:bh(),n._popActivity(t.spanId)},void 0===t.endTimestamp&&this._pushActivity(t.spanId)),e.prototype.add.call(this,t)},t}(zh),Mh=function(e){function t(t,n,r,o){void 0===r&&(r=1e3),void 0===o&&(o=!1);var i=e.call(this,t,n)||this;return i._idleHub=n,i._idleTimeout=r,i._onScope=o,i.activities={},i._heartbeatTimer=0,i._heartbeatCounter=0,i._finished=!1,i._beforeFinishCallbacks=[],n&&o&&(Dh(n),Vf.log("Setting idle transaction on scope. Span ID: "+i.spanId),n.configureScope((function(e){return e.setSpan(i)}))),i._initTimeout=setTimeout((function(){i._finished||i.finish()}),i._idleTimeout),i}return hr(t,e),t.prototype.finish=function(t){var n,r,o=this;if(void 0===t&&(t=bh()),this._finished=!0,this.activities={},this.spanRecorder){Vf.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op);try{for(var i=br(this._beforeFinishCallbacks),a=i.next();!a.done;a=i.next())(0,a.value)(this,t)}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}this.spanRecorder.spans=this.spanRecorder.spans.filter((function(e){if(e.spanId===o.spanId)return!0;e.endTimestamp||(e.endTimestamp=t,e.setStatus(Ih.Cancelled),Vf.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));var n=e.startTimestamp<t;return n||Vf.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(e,void 0,2)),n})),Vf.log("[Tracing] flushing IdleTransaction")}else Vf.log("[Tracing] No active IdleTransaction");return this._onScope&&Dh(this._idleHub),e.prototype.finish.call(this,t)},t.prototype.registerBeforeFinishCallback=function(e){this._beforeFinishCallbacks.push(e)},t.prototype.initSpanRecorder=function(e){var t=this;this.spanRecorder||(this.spanRecorder=new jh((function(e){t._finished||t._pushActivity(e)}),(function(e){t._finished||t._popActivity(e)}),this.spanId,e),Vf.log("Starting heartbeat"),this._pingHeartbeat()),this.spanRecorder.add(this)},t.prototype._pushActivity=function(e){this._initTimeout&&(clearTimeout(this._initTimeout),this._initTimeout=void 0),Vf.log("[Tracing] pushActivity: "+e),this.activities[e]=!0,Vf.log("[Tracing] new activities count",Object.keys(this.activities).length)},t.prototype._popActivity=function(e){var t=this;if(this.activities[e]&&(Vf.log("[Tracing] popActivity "+e),delete this.activities[e],Vf.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){var n=this._idleTimeout,r=bh()+n/1e3;setTimeout((function(){t._finished||t.finish(r)}),n)}},t.prototype._beat=function(){if(clearTimeout(this._heartbeatTimer),!this._finished){var e=Object.keys(this.activities),t=e.length?e.reduce((function(e,t){return e+t})):"";t===this._prevHeartbeatString?this._heartbeatCounter+=1:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?(Vf.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus(Ih.DeadlineExceeded),this.setTag("heartbeat","failed"),this.finish()):this._pingHeartbeat()}},t.prototype._pingHeartbeat=function(){var e=this;Vf.log("pinging Heartbeat -> current counter: "+this._heartbeatCounter),this._heartbeatTimer=setTimeout((function(){e._beat()}),5e3)},t}(Lh);function Dh(e){if(e){var t=e.getScope();t&&t.getTransaction()&&t.setSpan(void 0)}}function Hh(e,t,n){return Ph()?void 0!==e.sampled?(e.setMetadata({transactionSampling:{method:ph.Explicit}}),e):("function"==typeof t.tracesSampler?(o=t.tracesSampler(n),e.setMetadata({transactionSampling:{method:ph.Sampler,rate:Number(o)}})):void 0!==n.parentSampled?(o=n.parentSampled,e.setMetadata({transactionSampling:{method:ph.Inheritance}})):(o=t.tracesSampleRate,e.setMetadata({transactionSampling:{method:ph.Rate,rate:Number(o)}})),r=o,(isNaN(r)||"number"!=typeof r&&"boolean"!=typeof r?(Vf.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got "+JSON.stringify(r)+" of type "+JSON.stringify(typeof r)+"."),0):!(r<0||r>1)||(Vf.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got "+r+"."),0))?o?(e.sampled=Math.random()<o,e.sampled?(Vf.log("[Tracing] starting "+e.op+" transaction - "+e.name),e):(Vf.log("[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = "+Number(o)+")"),e)):(Vf.log("[Tracing] Discarding transaction because "+("function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),e.sampled=!1,e):(Vf.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)):(e.sampled=!1,e);var r,o}var Uh,qh,Vh=jf(),Wh=function(e,t,n,r){var o;return function(){n&&t.isFinal&&n.disconnect(),t.value>=0&&(r||t.isFinal||"hidden"===document.visibilityState)&&(t.delta=t.value-(o||0),(t.delta||t.isFinal||void 0===o)&&(e(t),o=t.value))}},$h=function(e,t){return void 0===t&&(t=-1),{name:e,value:t,delta:0,entries:[],id:Date.now()+"-"+(Math.floor(8999999999999*Math.random())+1e12),isFinal:!1}},Yh=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},Gh=!1,Xh=!1,Jh=function(e){Gh=!e.persisted},Kh=function(e,t){void 0===t&&(t=!1),Xh||(addEventListener("pagehide",Jh),addEventListener("beforeunload",(function(){})),Xh=!0),addEventListener("visibilitychange",(function(t){var n=t.timeStamp;"hidden"===document.visibilityState&&e({timeStamp:n,isUnloading:Gh})}),{capture:!0,once:t})},Zh=function(){return void 0===Uh&&(Uh="hidden"===document.visibilityState?0:1/0,Kh((function(e){var t=e.timeStamp;return Uh=t}),!0)),{get timeStamp(){return Uh}}},Qh=jf(),em=function(){function e(){var e;this._measurements={},this._performanceCursor=0,!Bf()&&(null===(e=Qh)||void 0===e?void 0:e.performance)&&(Qh.performance.mark&&Qh.performance.mark("sentry-tracing-init"),this._trackCLS(),this._trackLCP(),this._trackFID())}return e.prototype.addPerformanceEntries=function(e){var t=this;if(Qh&&Qh.performance&&Qh.performance.getEntries&&xh){Vf.log("[Tracing] Adding & adjusting spans using Performance API");var n,r,o,i,a,s=Rh(xh);if(Qh.document)for(var c=0;c<document.scripts.length;c++)if("true"===document.scripts[c].dataset.entry){n=document.scripts[c].src;break}if(Qh.performance.getEntries().slice(this._performanceCursor).forEach((function(c){var l=Rh(c.startTime),u=Rh(c.duration);if(!("navigation"===e.op&&s+l<e.startTimestamp))switch(c.entryType){case"navigation":!function(e,t,n){tm({transaction:e,entry:t,event:"unloadEvent",timeOrigin:n}),tm({transaction:e,entry:t,event:"redirect",timeOrigin:n}),tm({transaction:e,entry:t,event:"domContentLoadedEvent",timeOrigin:n}),tm({transaction:e,entry:t,event:"loadEvent",timeOrigin:n}),tm({transaction:e,entry:t,event:"connect",timeOrigin:n}),tm({transaction:e,entry:t,event:"secureConnection",timeOrigin:n,eventEnd:"connectEnd",description:"TLS/SSL"}),tm({transaction:e,entry:t,event:"fetch",timeOrigin:n,eventEnd:"domainLookupStart",description:"cache"}),tm({transaction:e,entry:t,event:"domainLookup",timeOrigin:n,description:"DNS"}),function(e,t,n){nm(e,{op:"browser",description:"request",startTimestamp:n+Rh(t.requestStart),endTimestamp:n+Rh(t.responseEnd)}),nm(e,{op:"browser",description:"response",startTimestamp:n+Rh(t.responseStart),endTimestamp:n+Rh(t.responseEnd)})}(e,t,n)}(e,c,s),i=s+Rh(c.responseStart),a=s+Rh(c.requestStart);break;case"mark":case"paint":case"measure":var d=function(e,t,n,r,o){var i=o+n,a=i+r;return nm(e,{description:t.name,endTimestamp:a,op:t.entryType,startTimestamp:i}),i}(e,c,l,u,s);void 0===o&&"sentry-tracing-init"===c.name&&(o=d);var p=Zh(),f=c.startTime<p.timeStamp;"first-paint"===c.name&&f&&(Vf.log("[Measurements] Adding FP"),t._measurements.fp={value:c.startTime},t._measurements["mark.fp"]={value:d}),"first-contentful-paint"===c.name&&f&&(Vf.log("[Measurements] Adding FCP"),t._measurements.fcp={value:c.startTime},t._measurements["mark.fcp"]={value:d});break;case"resource":var h=c.name.replace(window.location.origin,""),m=function(e,t,n,r,o,i){if("xmlhttprequest"!==t.initiatorType&&"fetch"!==t.initiatorType){var a={};"transferSize"in t&&(a["Transfer Size"]=t.transferSize),"encodedBodySize"in t&&(a["Encoded Body Size"]=t.encodedBodySize),"decodedBodySize"in t&&(a["Decoded Body Size"]=t.decodedBodySize);var s=i+r,c=s+o;return nm(e,{description:n,endTimestamp:c,op:t.initiatorType?"resource."+t.initiatorType:"resource",startTimestamp:s,data:a}),c}}(e,c,h,l,u,s);void 0===r&&(n||"").indexOf(h)>-1&&(r=m)}})),void 0!==r&&void 0!==o&&nm(e,{description:"evaluation",endTimestamp:o,op:"script",startTimestamp:r}),this._performanceCursor=Math.max(performance.getEntries().length-1,0),this._trackNavigator(e),"pageload"===e.op){var l=Rh(xh);"number"==typeof i&&(Vf.log("[Measurements] Adding TTFB"),this._measurements.ttfb={value:1e3*(i-e.startTimestamp)},"number"==typeof a&&a<=i&&(this._measurements["ttfb.requestTime"]={value:1e3*(i-a)})),["fcp","fp","lcp"].forEach((function(n){if(t._measurements[n]&&!(l>=e.startTimestamp)){var r=t._measurements[n].value,o=l+Rh(r),i=Math.abs(1e3*(o-e.startTimestamp)),a=i-r;Vf.log("[Measurements] Normalized "+n+" from "+r+" to "+i+" ("+a+")"),t._measurements[n].value=i}})),this._measurements["mark.fid"]&&this._measurements.fid&&nm(e,{description:"first input delay",endTimestamp:this._measurements["mark.fid"].value+Rh(this._measurements.fid.value),op:"web.vitals",startTimestamp:this._measurements["mark.fid"].value}),e.setMeasurements(this._measurements),this._lcpEntry&&(Vf.log("[Measurements] Adding LCP Data"),this._lcpEntry.element&&e.setTag("lcp.element",function(e){try{for(var t=e,n=[],r=0,o=0,i=" > ".length,a=void 0;t&&r++<5&&!("html"===(a=Pf(t))||r>1&&o+n.length*i+a.length>=80);)n.push(a),o+=a.length,t=t.parentNode;return n.reverse().join(" > ")}catch(e){return"<unknown>"}}(this._lcpEntry.element)),this._lcpEntry.id&&e.setTag("lcp.id",this._lcpEntry.id),this._lcpEntry.url&&e.setTag("lcp.url",this._lcpEntry.url.trim().slice(0,200)),e.setTag("lcp.size",this._lcpEntry.size))}}},e.prototype._trackCLS=function(){var e=this;!function(t,n){void 0===n&&(n=!1);var r,o=$h("CLS",0),i=function(e){e.hadRecentInput||(o.value+=e.value,o.entries.push(e),r())},a=Yh("layout-shift",i);a&&(r=Wh((function(t){t.entries.pop()&&(Vf.log("[Measurements] Adding CLS"),e._measurements.cls={value:t.value})}),o,a,n),Kh((function(e){var t=e.isUnloading;a.takeRecords().map(i),t&&(o.isFinal=!0),r()})))}()},e.prototype._trackNavigator=function(e){var t=Qh.navigator;if(t){var n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),rm(n.rtt)&&(this._measurements["connection.rtt"]={value:n.rtt}),rm(n.downlink)&&(this._measurements["connection.downlink"]={value:n.downlink})),rm(t.deviceMemory)&&e.setTag("deviceMemory",String(t.deviceMemory)),rm(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}},e.prototype._trackLCP=function(){var e=this;!function(e,t){void 0===t&&(t=!1);var n,r=$h("LCP"),o=Zh(),i=function(e){var t=e.startTime;t<o.timeStamp?(r.value=t,r.entries.push(e)):r.isFinal=!0,n()},a=Yh("largest-contentful-paint",i);if(a){n=Wh(e,r,a,t);var s=function(){r.isFinal||(a.takeRecords().map(i),r.isFinal=!0,n())};(qh||(qh=new Promise((function(e){return["scroll","keydown","pointerdown"].map((function(t){addEventListener(t,e,{once:!0,passive:!0,capture:!0})}))}))),qh).then(s),Kh(s,!0)}}((function(t){var n=t.entries.pop();if(n){var r=Rh(xh),o=Rh(n.startTime);Vf.log("[Measurements] Adding LCP"),e._measurements.lcp={value:t.value},e._measurements["mark.lcp"]={value:r+o},e._lcpEntry=n}}))},e.prototype._trackFID=function(){var e,t,n,r,o,i=this;e=$h("FID"),t=Zh(),r=Yh("first-input",n=function(n){n.startTime<t.timeStamp&&(e.value=n.processingStart-n.startTime,e.entries.push(n),e.isFinal=!0,o())}),o=Wh((function(e){var t=e.entries.pop();if(t){var n=Rh(xh),r=Rh(t.startTime);Vf.log("[Measurements] Adding FID"),i._measurements.fid={value:e.value},i._measurements["mark.fid"]={value:n+r}}}),e,r),r?Kh((function(){r.takeRecords().map(n),r.disconnect()}),!0):window.perfMetrics&&window.perfMetrics.onFirstInputDelay&&window.perfMetrics.onFirstInputDelay((function(n,r){r.timeStamp<t.timeStamp&&(e.value=n,e.isFinal=!0,e.entries=[{entryType:"first-input",name:r.type,target:r.target,cancelable:r.cancelable,startTime:r.timeStamp,processingStart:r.timeStamp+n}],o())}))},e}();function tm(e){var t=e.transaction,n=e.entry,r=e.event,o=e.timeOrigin,i=e.eventEnd,a=e.description,s=i?n[i]:n[r+"End"],c=n[r+"Start"];c&&s&&nm(t,{op:"browser",description:null!=a?a:r,startTimestamp:o+Rh(c),endTimestamp:o+Rh(s)})}function nm(e,t){var n=t.startTimestamp,r=gr(t,["startTimestamp"]);return n&&e.startTimestamp>n&&(e.startTimestamp=n),e.startChild(mr({startTimestamp:n},r))}function rm(e){return"number"==typeof e&&isFinite(e)}var om={traceFetch:!0,traceXHR:!0,tracingOrigins:["localhost",/^\//]};var im=jf(),am=mr({idleTimeout:1e3,markBackgroundTransactions:!0,maxTransactionDuration:600,routingInstrumentation:function(e,t,n){if(void 0===t&&(t=!0),void 0===n&&(n=!0),im&&im.location){var r,o=im.location.href;t&&(r=e({name:im.location.pathname,op:"pageload"})),n&&nh({callback:function(t){var n=t.to,i=t.from;void 0===i&&o&&-1!==o.indexOf(n)?o=void 0:i!==n&&(o=void 0,r&&(Vf.log("[Tracing] Finishing current transaction with op: "+r.op),r.finish()),r=e({name:im.location.pathname,op:"navigation"}))},type:"history"})}else Vf.warn("Could not initialize routing instrumentation due to invalid location")},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0},om),sm=function(){function e(t){this.name=e.id,this._metrics=new em,this._emitOptionsWarning=!1;var n=om.tracingOrigins;t&&t.tracingOrigins&&Array.isArray(t.tracingOrigins)&&0!==t.tracingOrigins.length?n=t.tracingOrigins:this._emitOptionsWarning=!0,this.options=mr(mr(mr({},am),t),{tracingOrigins:n})}return e.prototype.setupOnce=function(e,t){var n=this;this._getCurrentHub=t,this._emitOptionsWarning&&(Vf.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),Vf.warn("[Tracing] We added a reasonable default for you: "+om.tracingOrigins));var r=this.options,o=r.routingInstrumentation,i=r.startTransactionOnLocationChange,a=r.startTransactionOnPageLoad,s=r.markBackgroundTransactions,c=r.traceFetch,l=r.traceXHR,u=r.tracingOrigins,d=r.shouldCreateSpanForRequest;o((function(e){return n._createRouteTransaction(e)}),a,i),s&&(Vh&&Vh.document?Vh.document.addEventListener("visibilitychange",(function(){var e=Bh();Vh.document.hidden&&e&&(Vf.log("[Tracing] Transaction: "+Ih.Cancelled+" -> since tab moved to the background, op: "+e.op),e.status||e.setStatus(Ih.Cancelled),e.setTag("visibilitychange","document.hidden"),e.finish())})):Vf.warn("[Tracing] Could not set up background tab detection due to lack of global document")),function(e){var t=mr(mr({},om),e),n=t.traceFetch,r=t.traceXHR,o=t.tracingOrigins,i=t.shouldCreateSpanForRequest,a={},s=function(e){if(a[e])return a[e];var t=o;return a[e]=t.some((function(t){return zf(e,t)}))&&!zf(e,"sentry_key"),a[e]},c=s;"function"==typeof i&&(c=function(e){return s(e)&&i(e)});var l={};n&&nh({callback:function(e){!function(e,t,n){if(Ph()&&e.fetchData&&t(e.fetchData.url))if(e.endTimestamp&&e.fetchData.__span)(o=n[e.fetchData.__span])&&(e.response?o.setHttpStatus(e.response.status):e.error&&o.setStatus(Ih.InternalError),o.finish(),delete n[e.fetchData.__span]);else{var r=Bh();if(r){var o=r.startChild({data:mr(mr({},e.fetchData),{type:"fetch"}),description:e.fetchData.method+" "+e.fetchData.url,op:"http"});e.fetchData.__span=o.spanId,n[o.spanId]=o;var i=e.args[0]=e.args[0],a=e.args[1]=e.args[1]||{},s=a.headers;Af(i,Request)&&(s=i.headers),s?"function"==typeof s.append?s.append("sentry-trace",o.toTraceparent()):s=Array.isArray(s)?_r(s,[["sentry-trace",o.toTraceparent()]]):mr(mr({},s),{"sentry-trace":o.toTraceparent()}):s={"sentry-trace":o.toTraceparent()},a.headers=s}}}(e,c,l)},type:"fetch"}),r&&nh({callback:function(e){!function(e,t,n){var r,o;if(Ph()&&!(null===(r=e.xhr)||void 0===r?void 0:r.__sentry_own_request__)&&(null===(o=e.xhr)||void 0===o?void 0:o.__sentry_xhr__)&&t(e.xhr.__sentry_xhr__.url)){var i=e.xhr.__sentry_xhr__;if(e.endTimestamp&&e.xhr.__sentry_xhr_span_id__)(s=n[e.xhr.__sentry_xhr_span_id__])&&(s.setHttpStatus(i.status_code),s.finish(),delete n[e.xhr.__sentry_xhr_span_id__]);else{var a=Bh();if(a){var s=a.startChild({data:mr(mr({},i.data),{type:"xhr",method:i.method,url:i.url}),description:i.method+" "+i.url,op:"http"});if(e.xhr.__sentry_xhr_span_id__=s.spanId,n[e.xhr.__sentry_xhr_span_id__]=s,e.xhr.setRequestHeader)try{e.xhr.setRequestHeader("sentry-trace",s.toTraceparent())}catch(e){}}}}}(e,c,l)},type:"xhr"})}({traceFetch:c,traceXHR:l,tracingOrigins:u,shouldCreateSpanForRequest:d})},e.prototype._createRouteTransaction=function(e){var t=this;if(this._getCurrentHub){var n=this.options,r=n.beforeNavigate,o=n.idleTimeout,i=n.maxTransactionDuration,a="pageload"===e.op?function(){var e,t=("sentry-trace",(e=document.querySelector("meta[name=sentry-trace]"))?e.getAttribute("content"):null);if(t)return function(e){var t=e.match(Ah);if(t){var n=void 0;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}}(t)}():void 0,s=mr(mr(mr({},e),a),{trimEnd:!0}),c="function"==typeof r?r(s):s,l=void 0===c?mr(mr({},s),{sampled:!1}):c;!1===l.sampled&&Vf.log("[Tracing] Will not send "+l.op+" transaction because of beforeNavigate."),Vf.log("[Tracing] Starting "+l.op+" transaction on scope");var u=function(e,t,n,r,o){var i,a,s=(null===(i=e.getClient())||void 0===i?void 0:i.getOptions())||{},c=new Mh(t,e,n,!0);return(c=Hh(c,s,mr({parentSampled:t.parentSampled,transactionContext:t},o))).sampled&&c.initSpanRecorder(null===(a=s._experiments)||void 0===a?void 0:a.maxSpans),c}(this._getCurrentHub(),l,o,0,{location:jf().location});return u.registerBeforeFinishCallback((function(e,n){t._metrics.addPerformanceEntries(e),function(e,t,n){var r=n-t.startTimestamp;n&&(r>e||r<0)&&(t.setStatus(Ih.DeadlineExceeded),t.setTag("maxTransactionDurationExceeded","true"))}(1e3*i,e,n)})),u}Vf.warn("[Tracing] Did not create "+e.op+" transaction because _getCurrentHub is invalid.")},e.id="BrowserTracing",e}(),cm=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._router=t.router||t.app,this._methods=(Array.isArray(t.methods)?t.methods:[]).concat("use")}return e.prototype.setupOnce=function(){var e,t;this._router?(e=this._router,void 0===(t=this._methods)&&(t=[]),t.forEach((function(t){return function(e,t){var n=e[t];return e[t]=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return n.call.apply(n,_r([this],um(e,t)))},e}(e,t)}))):Vf.error("ExpressIntegration is missing an Express instance")},e.id="Express",e}();function lm(e,t){var n=e.length;switch(n){case 2:return function(n,r){var o=r.__sentry_transaction;if(o){var i=o.startChild({description:e.name,op:"middleware."+t});r.once("finish",(function(){i.finish()}))}return e.call(this,n,r)};case 3:return function(n,r,o){var i,a=null===(i=r.__sentry_transaction)||void 0===i?void 0:i.startChild({description:e.name,op:"middleware."+t});e.call(this,n,r,(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];null===(e=a)||void 0===e||e.finish(),o.call.apply(o,_r([this],t))}))};case 4:return function(n,r,o,i){var a,s=null===(a=o.__sentry_transaction)||void 0===a?void 0:a.startChild({description:e.name,op:"middleware."+t});e.call(this,n,r,o,(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];null===(e=s)||void 0===e||e.finish(),i.call.apply(i,_r([this],t))}))};default:throw new Error("Express middleware takes 2-4 arguments. Got: "+n)}}function um(e,t){return e.map((function(e){return"function"==typeof e?lm(e,t):Array.isArray(e)?e.map((function(e){return"function"==typeof e?lm(e,t):e})):e}))}var dm,pm=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(e,t){var n=Ff("pg");n?$f(n.Client.prototype,"query",(function(e){return function(n,r,o){var i,a,s,c=null===(a=null===(i=t().getScope())||void 0===i?void 0:i.getSpan())||void 0===a?void 0:a.startChild({description:"string"==typeof n?n:n.text,op:"db"});if("function"==typeof o)return e.call(this,n,r,(function(e,t){var n;null===(n=c)||void 0===n||n.finish(),o(e,t)}));if("function"==typeof r)return e.call(this,n,(function(e,t){var n;null===(n=c)||void 0===n||n.finish(),r(e,t)}));var l=void 0!==r?e.call(this,n,r):e.call(this,n);return Of(l)?l.then((function(e){var t;return null===(t=c)||void 0===t||t.finish(),e})):(null===(s=c)||void 0===s||s.finish(),l)}})):Vf.error("Postgres Integration was unable to require `pg` package.")},e.id="Postgres",e}(),fm=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(e,t){var n=Ff("mysql/lib/Connection.js");n?$f(n,"createQuery",(function(e){return function(n,r,o){var i,a,s=null===(a=null===(i=t().getScope())||void 0===i?void 0:i.getSpan())||void 0===a?void 0:a.startChild({description:"string"==typeof n?n:n.sql,op:"db"});return"function"==typeof o?e.call(this,n,r,(function(e,t,n){var r;null===(r=s)||void 0===r||r.finish(),o(e,t,n)})):"function"==typeof r?e.call(this,n,(function(e,t,n){var o;null===(o=s)||void 0===o||o.finish(),r(e,t,n)})):e.call(this,n,r,o)}})):Vf.error("Mysql Integration was unable to require `mysql` package.")},e.id="Mysql",e}(),hm=["aggregate","bulkWrite","countDocuments","createIndex","createIndexes","deleteMany","deleteOne","distinct","drop","dropIndex","dropIndexes","estimatedDocumentCount","find","findOne","findOneAndDelete","findOneAndReplace","findOneAndUpdate","indexes","indexExists","indexInformation","initializeOrderedBulkOp","insertMany","insertOne","isCapped","mapReduce","options","parallelCollectionScan","rename","replaceOne","stats","updateMany","updateOne"],mm={bulkWrite:["operations"],countDocuments:["query"],createIndex:["fieldOrSpec"],createIndexes:["indexSpecs"],deleteMany:["filter"],deleteOne:["filter"],distinct:["key","query"],dropIndex:["indexName"],find:["query"],findOne:["query"],findOneAndDelete:["filter"],findOneAndReplace:["filter","replacement"],findOneAndUpdate:["filter","update"],indexExists:["indexes"],insertMany:["docs"],insertOne:["doc"],mapReduce:["map","reduce"],rename:["newName"],replaceOne:["filter","doc"],updateMany:["filter","update"],updateOne:["filter","update"]},gm=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._operations=Array.isArray(t.operations)?t.operations:hm,this._describeOperations=!("describeOperations"in t)||t.describeOperations,this._useMongoose=!!t.useMongoose}return e.prototype.setupOnce=function(e,t){var n=this._useMongoose?"mongoose":"mongodb",r=Ff(n);r?this._instrumentOperations(r.Collection,this._operations,t):Vf.error("Mongo Integration was unable to require `"+n+"` package.")},e.prototype._instrumentOperations=function(e,t,n){var r=this;t.forEach((function(t){return r._patchOperation(e,t,n)}))},e.prototype._patchOperation=function(e,t,n){if(t in e.prototype){var r=this._getSpanContextFromOperationArguments.bind(this);$f(e.prototype,t,(function(e){return function(){for(var o,i,a,s,c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];var u=c[c.length-1],d=n().getScope(),p=null===(o=d)||void 0===o?void 0:o.getSpan();if("function"!=typeof u||"mapReduce"===t&&2===c.length){var f=null===(i=p)||void 0===i?void 0:i.startChild(r(this,t,c)),h=e.call.apply(e,_r([this],c));return Of(h)?h.then((function(e){var t;return null===(t=f)||void 0===t||t.finish(),e})):(null===(a=f)||void 0===a||a.finish(),h)}var m=null===(s=p)||void 0===s?void 0:s.startChild(r(this,t,c.slice(0,-1)));return e.call.apply(e,_r([this],c.slice(0,-1),[function(e,t){var n;null===(n=m)||void 0===n||n.finish(),u(e,t)}]))}}))}},e.prototype._getSpanContextFromOperationArguments=function(e,t,n){var r={collectionName:e.collectionName,dbName:e.dbName,namespace:e.namespace},o={op:"db",description:t,data:r},i=mm[t],a=Array.isArray(this._describeOperations)?this._describeOperations.includes(t):this._describeOperations;if(!i||!a)return o;try{if("mapReduce"===t){var s=xr(n,2),c=s[0],l=s[1];r[i[0]]="string"==typeof c?c:c.name||"<anonymous>",r[i[1]]="string"==typeof l?l:l.name||"<anonymous>"}else for(var u=0;u<i.length;u++)r[i[u]]=JSON.stringify(n[u])}catch(e){}return o},e.id="Mongo",e}(),vm=mr(mr({},Object.freeze({__proto__:null,Express:cm,Postgres:pm,Mysql:fm,Mongo:gm})),{BrowserTracing:sm});function ym(e){var n=e.assetFieldSelection,r=e.assetFilter,o=e.assetTypes,i=void 0===o?["IMAGE","AUDIO","VIDEO","DOCUMENT"]:o,a=e.defaultSearchTerm,s=e.language,c=void 0===s?"en_US":s,l=e.mode,u=void 0===l?"MultiSelect":l,d=e.onSuccess,p=void 0===d?function(e,t){var n=t.selectedFile;return console.log(e,n)}:d,f=e.theme,h=e.hideExternalAccess,m=e.selectedAssets;va(c);var g={assetFieldSelection:n,assetFilter:r,assetTypes:i,language:c,onSuccess:p,selectionMode:u,theme:f,hideExternalAccess:h};return t.createElement(Pd,null,t.createElement(Er,null,t.createElement(dr,null,t.createElement(gp,null,t.createElement(Or,{defaultValue:a,selectionMode:g.selectionMode},t.createElement(aa,{value:g},t.createElement(Vd,{preselectedAssetIds:null!=m?m:[]},t.createElement(_d,null,t.createElement("div",{className:"cv-root cv-container"},t.createElement(mf,null),t.createElement(bm,null),t.createElement(Tf,null))))))))))}function bm(){var e=kr()[0],n=sa().assetFilter;return t.createElement(t.Fragment,null,"assets"===e.page&&void 0===n&&t.createElement(df,null),"assets"===e.page&&t.createElement(gf,null),"collections"===e.page&&t.createElement(hp,null),"collection"===e.page&&t.createElement(Jp,{collection:e.collection}))}(dm=Sh()).__SENTRY__&&(dm.__SENTRY__.extensions=dm.__SENTRY__.extensions||{},dm.__SENTRY__.extensions.startTransaction||(dm.__SENTRY__.extensions.startTransaction=function(e,t){var n,r,o=(null===(n=this.getClient())||void 0===n?void 0:n.getOptions())||{},i=new Lh(e,this);return(i=Hh(i,o,mr({parentSampled:e.parentSampled,transactionContext:e},t))).sampled&&i.initSpanRecorder(null===(r=o._experiments)||void 0===r?void 0:r.maxSpans),i}),dm.__SENTRY__.extensions.traceHeaders||(dm.__SENTRY__.extensions.traceHeaders=function(){var e=this.getScope();if(e){var t=e.getSpan();if(t)return{"sentry-trace":t.toTraceparent()}}return{}})),Bf()&&function(){var e=Sh();if(e.__SENTRY__){var t={mongodb:function(){return new(Rf(module,"./integrations/mongo").Mongo)},mongoose:function(){return new(Rf(module,"./integrations/mongo").Mongo)({mongoose:!0})},mysql:function(){return new(Rf(module,"./integrations/mysql").Mysql)},pg:function(){return new(Rf(module,"./integrations/postgres").Postgres)}},n=Object.keys(t).filter((function(e){return!!Ff(e)})).map((function(e){try{return t[e]()}catch(e){return}})).filter((function(e){return e}));n.length>0&&(e.__SENTRY__.integrations=_r(e.__SENTRY__.integrations||[],n))}}(),nh({callback:Fh,type:"error"}),nh({callback:Fh,type:"unhandledrejection"}),function(e){if(void 0===e&&(e={}),void 0===e.defaultIntegrations&&(e.defaultIntegrations=ea),void 0===e.release){var t=eo();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),function(e,t){var n;!0===t.debug&&uo.enable();var r=Zo();null===(n=r.getScope())||void 0===n||n.update(t.initialScope);var o=new e(t);r.bindClient(o)}(Qi,e),e.autoSessionTracking&&function(){if(void 0!==eo().document){var e=Zo();"function"==typeof e.startSession&&"function"==typeof e.captureSession&&(e.startSession(),e.captureSession(),Oo({callback:function(t){var n=t.from,r=t.to;void 0!==n&&n!==r&&(e.startSession(),e.captureSession())},type:"history"}))}else uo.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}()}({dsn:"https://dd74b64cc05845468f0c3654b458da29@sentry10.bynder.cloud/464",autoSessionTracking:!0,integrations:[new vm.BrowserTracing],tracesSampleRate:1,defaultIntegrations:!1});export{ym as CompactView,zd as Login,Ed 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 s in o)t.call(o,s)&&o[s]&&e.push(s);else e.push(o.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(Em);var Sm=Em.exports,km=!1;if("undefined"!=typeof window){var Cm={get passive(){km=!0}};window.addEventListener("testPassive",null,Cm),window.removeEventListener("testPassive",null,Cm)}var Tm="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),Nm=[],Im=!1,Pm=-1,Om=void 0,Am=void 0,Bm=function(e){return Nm.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},Fm=function(e){var t=e||window.event;return!!Bm(t.target)||t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1)};function Lm(){return(Lm=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 zm=function(e){var n=e.classes,r=e.classNames,o=e.styles,i=e.id,a=e.closeIcon,s=e.onClick;return t.createElement("button",{id:i,className:Sm(n.closeButton,null==r?void 0:r.closeButton),style:null==o?void 0:o.closeButton,onClick:s,"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"})))},Rm="undefined"!=typeof window,Mm=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'];function Dm(e){return null===e.offsetParent||"hidden"===getComputedStyle(e).visibility}function jm(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 Hm(e){for(var t=document.activeElement,n=e.querySelectorAll(Mm.join(",")),r=[],o=0;o<n.length;o++){var i=n[o];(t===i||!i.disabled&&Um(i)>-1&&!Dm(i)&&jm(i))&&r.push(i)}return r}function Um(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return e.getAttribute("contentEditable")}(e)?0:e.tabIndex:t}var Vm=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=Hm(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!==Mm.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=Hm(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},Km=[],$m={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"},Wm=t.forwardRef((function(e,n){var o,i,s,l,u=e.open,d=e.center,p=e.blockScroll,m=void 0===p||p,h=e.closeOnEsc,g=void 0===h||h,v=e.closeOnOverlayClick,y=void 0===v||v,b=e.container,w=e.showCloseIcon,x=void 0===w||w,_=e.closeIconId,E=e.closeIcon,S=e.focusTrapped,k=void 0===S||S,C=e.initialFocusRef,T=void 0===C?void 0:C,N=e.animationDuration,I=void 0===N?300:N,P=e.classNames,O=e.styles,A=e.role,B=void 0===A?"dialog":A,F=e.ariaDescribedby,L=e.ariaLabelledby,z=e.modalId,R=e.onClose,M=e.onEscKeyDown,D=e.onOverlayClick,j=e.onAnimationEnd,H=e.children,U=e.reserveScrollBarGap,V=function(e){const n=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);return t.useEffect(()=>{e&&("function"==typeof e?e(n.current):e.current=n.current)}),n}(n),K=c(null),$=c(null),W=c(null);null===W.current&&Rm&&(W.current=document.createElement("div"));var q=r(!1),Y=q[0],X=q[1];!function(e,t){a((function(){return t&&(n=e,Km.push(n)),function(){var t;t=e,Km=Km.filter((function(e){return e!==t}))};var n}),[t,e])}(K,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(!Nm.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};Nm=[].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)}(Nm),[n]),Tm?(e.ontouchstart=function(e){1===e.targetTouches.length&&(Pm=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-Pm;!Bm(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?Fm(e):e.stopPropagation())}(t,e)},Im||(document.addEventListener("touchmove",Fm,km?{passive:!1}:void 0),Im=!0)):function(e){if(void 0===Am){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(Am=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===Om&&(Om=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)?(Nm=Nm.filter((function(t){return t.targetElement!==e})),Tm?(e.ontouchstart=null,e.ontouchmove=null,Im&&0===Nm.length&&(document.removeEventListener("touchmove",Fm,km?{passive:!1}:void 0),Im=!1)):Nm.length||(void 0!==Am&&(document.body.style.paddingRight=Am,Am=void 0),void 0!==Om&&(document.body.style.overflow=Om,Om=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices."),i.current=null)}}),[t,n,e,r,o])}(K,u,Y,m,U);var G=function(e){var t;27===e.keyCode&&(t=K,Km.length&&Km[Km.length-1]===t)&&(null==M||M(e),g&&R())};a((function(){return function(){Y&&(W.current&&!b&&document.body.contains(W.current)&&document.body.removeChild(W.current),document.removeEventListener("keydown",G))}}),[Y]),a((function(){u&&!Y&&(X(!0),!W.current||b||document.body.contains(W.current)||document.body.appendChild(W.current),document.addEventListener("keydown",G))}),[u]);var J=function(){$.current=!1},Z=b||W.current,Q=u?null!=(o=null==P?void 0:P.overlayAnimationIn)?o:$m.overlayAnimationIn:null!=(i=null==P?void 0:P.overlayAnimationOut)?i:$m.overlayAnimationOut,ee=u?null!=(s=null==P?void 0:P.modalAnimationIn)?s:$m.modalAnimationIn:null!=(l=null==P?void 0:P.modalAnimationOut)?l:$m.modalAnimationOut;return Y&&Z?f.createPortal(t.createElement("div",{className:Sm($m.root,null==P?void 0:P.root),style:null==O?void 0:O.root,"data-testid":"root"},t.createElement("div",{className:Sm($m.overlay,null==P?void 0:P.overlay),"data-testid":"overlay","aria-hidden":!0,style:Lm({animation:Q+" "+I+"ms"},null==O?void 0:O.overlay)}),t.createElement("div",{ref:K,className:Sm($m.modalContainer,d&&$m.modalContainerCenter,null==P?void 0:P.modalContainer),style:null==O?void 0:O.modalContainer,"data-testid":"modal-container",onClick:function(e){null===$.current&&($.current=!0),$.current?(null==D||D(e),y&&R(),$.current=null):$.current=null}},t.createElement("div",{ref:V,className:Sm($m.modal,null==P?void 0:P.modal),style:Lm({animation:ee+" "+I+"ms"},null==O?void 0:O.modal),onMouseDown:J,onMouseUp:J,onClick:J,onAnimationEnd:function(){u||X(!1),null==j||j()},id:z,role:B,"aria-modal":"true","aria-labelledby":L,"aria-describedby":F,"data-testid":"modal",tabIndex:-1},k&&t.createElement(Vm,{container:V,initialFocusRef:T}),H,x&&t.createElement(zm,{classes:$m,classNames:P,styles:O,closeIcon:E,onClick:R,id:_})))),Z):null}));const qm={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)",blue400:"var(--blue400)",blue300:"var(--blue300)",blue200:"var(--blue200)",blue100:"var(--blue100)",red400:"var(--red400)",red500:"var(--red500)",red600:"var(--red600)",red700:"var(--red700)",yellow500:"var(--yellow500)",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)",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)"},Ym=Wu(["color:",";font-size:",";font-family:",";line-height:",";"],qm.colorText,qm.fontSizeBase,qm.brandFontStackBase,qm.lineHeightBase);ud.div.withConfig({displayName:"BaseStyles",componentId:"zvdl8u-0"})(["",""],Ym),ud.div.withConfig({shouldForwardProp:(e,t)=>!["color"].includes(e)&&t(e)}).withConfig({displayName:"BadgeStyled",componentId:"zvdl8u-1"})(["display:inline-flex;vertical-align:middle;flex-wrap:nowrap;align-items:center;justify-content: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?qm.spacing2:"6px",e=>e.isPillShaped?qm.radiusPill:qm.radiusMedium,qm.white,qm.fontSize50,e=>{if(!e.isSecondary&&e.color){const t={brand:qm.brandPrimary500,gray:qm.gray400,black:qm.gray900,blue:qm.blue500,red:qm.red400};return e.hasBorder?Wu(["border-color:",";color:",";"],t[e.color],t[e.color]):Wu(["background-color:",";"],t[e.color])}if(e.isSecondary)return Wu(["border-color:",";background-color:",";color:",";"],e.hasBorder?qm.gray100:"transparent",e.hasBorder?qm.white:qm.gray100,qm.gray800)}),ud.div.withConfig({displayName:"IconHolder",componentId:"zvdl8u-2"})(["display:flex;align-items:center;height:100%;margin-right:",";margin-left:calc("," * -1);svg{width:18px;height:18px;}"],e=>e.isSmall?qm.spacing1:qm.spacing2,qm.spacing1),ud.div.withConfig({shouldForwardProp:(e,t)=>!["color"].includes(e)&&t(e)}).withConfig({displayName:"Track1",componentId:"zvdl8u-3"})(["overflow:hidden;height:4px;border-radius:",";background:",";"],e=>e.noCornerRadius?"0":qm.radiusPill,e=>"brand"===e.color?qm.brandPrimary500:`\n\t\t\t\tlinear-gradient(\n\t\t\t\t\t0deg,\n\t\t\t\t\trgb(${qm["white-rgb"]} / 30%),\n\t\t\t\t\trgb(${qm["white-rgb"]} / 30%)\n\t\t\t\t),\n\t\t\t\t${qm.gray100a}\n\t\t\t`);const Xm=ld(["to{transform:translateX(-40px);}"]),Gm=`rgb(${qm["white-rgb"]} / 0.15)`,Jm=`rgb(${qm["gray1000-rgb"]} / 0.15)`;ud.div.withConfig({displayName:"Fill2",componentId:"zvdl8u-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;"],Gm,Jm,Jm,Gm,Gm,Jm,Jm,Xm);const Zm={paragraphS:Wu(["font-weight:normal;font-size:",";line-height:",";"],qm.fontSize75,qm.lineHeightText),paragraphM:Wu(["font-weight:normal;font-size:",";line-height:",";"],qm.fontSize100,qm.lineHeightText),paragraphL:Wu(["font-weight:normal;font-size:",";line-height:",";"],qm.fontSize200,qm.lineHeightText),uiTextXS:Wu(["font-weight:normal;font-size:",";line-height:20px;"],qm.fontSize50),uiTextS:Wu(["font-weight:normal;font-size:",";line-height:20px;"],qm.fontSize75),uiTextM:Wu(["font-weight:normal;font-size:",";line-height:20px;"],qm.fontSize100),uiTextL:Wu(["font-weight:normal;font-size:",";line-height:24px;"],qm.fontSize200),headingXS:Wu(["font-weight:600;font-size:",";line-height:",";"],qm.fontSize100,qm.lineHeightHeading),headingS:Wu(["font-weight:600;font-size:",";line-height:",";"],qm.fontSize200,qm.lineHeightHeading),headingM:Wu(["font-weight:normal;font-size:",";line-height:",";"],qm.fontSize400,qm.lineHeightHeading),headingL:Wu(["font-weight:normal;font-size:",";line-height:",";"],qm.fontSize600,qm.lineHeightHeading),headingXL:Wu(["font-weight:normal;font-size:",";line-height:",";"],qm.fontSize800,qm.lineHeightHeading),headingXXL:Wu(["font-weight:normal;font-size:",";line-height:",";"],qm.fontSize1000,qm.lineHeightHeading)};ud.label.withConfig({displayName:"Container5",componentId:"zvdl8u-5"})([""," display:flex;align-items:flex-start;margin:0;padding:"," 0;cursor:",";user-select:none;"],Zm.uiTextM,qm.spacing1,e=>!e.isDisabled&&"pointer"),ud.div.withConfig({displayName:"IndicatorPosition1",componentId:"zvdl8u-6"})(["display:flex;flex:none;align-items:center;&::before{content:'';}"]),ud.div.withConfig({displayName:"Indicator2",componentId:"zvdl8u-7"})(["position:relative;display:flex;align-items:center;justify-content: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:",";}"],qm.gray300,qm.radiusMedium,qm.focusRingWidth,qm.radiusMedium,e=>e.isFocusVisible&&Wu(["border-color:",";&::before{border-color:",";}"],qm.gray500,e.isChecked||e.isIndeterminate?qm.focusRingColorPrimary:qm.focusRingColorSecondary),e=>e.isChecked&&Wu(["border-color:transparent;background-color:",";fill:#fff;"],qm.blue500),e=>e.isIndeterminate&&Wu(["border-color:transparent;background-color:",";"],qm.blue500),e=>e.isDisabled&&Wu(["border-color:transparent;background-color:",";fill:",";"],qm.gray100,qm.gray500),".ds-checkbox__pointer-events-wrapper",".ds-checkbox__pointer-events-wrapper",e=>!e.isChecked&&!e.isIndeterminate&&!e.isDisabled&&`border-color: ${qm.gray500};`,e=>!e.isChecked&&!e.isIndeterminate||e.isDisabled?void 0:qm.blue600),ud.input.withConfig({displayName:"Input1",componentId:"zvdl8u-8"})(["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%);"]),ud.div.withConfig({displayName:"IndeterminateMark",componentId:"zvdl8u-9"})(["width:8px;height:2px;border-radius:",";background-color:",";"],qm.radiusPill,qm.white),ud.div.withConfig({displayName:"Label4",componentId:"zvdl8u-10"})(["display:block;margin-left:8px;color:",";"],e=>e.isDisabled?qm.gray400:qm.colorText),ud.div.withConfig({displayName:"GroupStyled",componentId:"zvdl8u-11"})(["margin:0;padding:"," 0;border:0;"],qm.spacing3),ud.div.withConfig({displayName:"HelperTextStyled",componentId:"zvdl8u-12"})([""," display:flex;align-items:center;margin-top:",";padding-top:",";color:",";"],Zm.uiTextS,qm.spacing2,e=>e.hasIcon?"2px":"0",e=>e.isInvalid?qm.red500:qm.gray600),ud.div.withConfig({displayName:"Icon2",componentId:"zvdl8u-13"})(["flex:none;align-self:flex-start;margin-top:-2px;margin-right:",";"],qm.spacing2),ud.label.withConfig({displayName:"LabelStyled",componentId:"zvdl8u-14"})([""," display:block;margin:0 0 ",";padding:0;border:none;color:",";"],Zm.uiTextM,qm.spacing3,qm.colorText),ud.span.withConfig({displayName:"SecondaryText",componentId:"zvdl8u-15"})(["color:",";"],qm.gray600),ud.span.withConfig({displayName:"Space",componentId:"zvdl8u-16"})(["display:inline-block;width:",";"],qm.spacing3),ud.div.withConfig({displayName:"RowStyled",componentId:"zvdl8u-17"})(["display:grid;grid-template-columns:repeat(auto-fit,minmax(10px,1fr));gap:",";"],qm.spacing4),ud.div.withConfig({displayName:"InputRowStyled",componentId:"zvdl8u-18"})(["display:flex;& > *{min-width:min-content;&:not(:first-child){margin-left:",";}}"],qm.spacing4),ud.ul.withConfig({displayName:"List",componentId:"zvdl8u-19"})(["margin:0;padding:0;list-style:none;"]),ud.li.withConfig({displayName:"Item2",componentId:"zvdl8u-20"})(["&:not(:last-child){margin-bottom:",";}"],qm.spacing2);const Qm=ud.span.withConfig({displayName:"DeleteButton",componentId:"zvdl8u-21"})(["display:flex;align-items:center;justify-content: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:",";}"],qm.spacing3,qm.spacing3,qm.radiusCircle,e=>e.isDisabled?qm.gray400:qm.gray600,qm.gray50a,qm.gray800,qm.gray100a);ud.button.withConfig({displayName:"ChipStyled",componentId:"zvdl8u-22"})(["display:inline-flex;align-items:center;border:0;border-radius:",";background-color:",";color:",";outline:none;font-family:",";white-space:nowrap;",";",";",";",";",";"],qm.radiusPill,qm.gray50,qm.gray800,qm.brandFontStackBase,e=>e.onClick&&Wu(["cursor:pointer;&:hover{background-color:",";","{color:",";}}&:active{background-color:",";}"],qm.gray75,Qm,qm.gray800,qm.gray100),e=>e.isFocusVisible&&Wu(["background:",";box-shadow:inset ",";outline:0;"],qm.gray25,qm.elevationStatic),e=>"m"===e.size&&nh,e=>"s"===e.size&&th,e=>e.isDisabled&&rh);const eh=ud.div.withConfig({displayName:"ThumbnailContainer1",componentId:"zvdl8u-23"})(["display:block;"]),th=Wu([""," height:32px;padding:0 12px;","{margin:0 "," 0 calc("," * -1);}"],Zm.uiTextS,eh,qm.spacing3,qm.spacing3),nh=Wu([""," height:40px;padding:0 16px;","{margin:0 "," 0 calc("," * -1);}"],Zm.uiTextM,eh,qm.spacing3,qm.spacing4),rh=Wu(["background-color:",";color:",";pointer-events:none;"],qm.gray25,qm.gray400);function oh(e){if(!function(e){return/^#([\da-f]{3}){1,2}$/i.test(e)}(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)}`}ud.div.withConfig({displayName:"IconContainer1",componentId:"zvdl8u-24"})(["width:24px;height:24px;margin-left:calc("," * -1);padding:0 "," 0 0;"],qm.spacing2,qm.spacing3);const ih={"--white":"#ffffff","--white-rgb":oh("#ffffff"),"--gray1000":"#002233","--gray1000-rgb":oh("#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","--blue400":"#1aa3ff","--blue300":"#33adff","--blue200":"#80ccff","--blue100":"#ccebff","--red400":"#f45225","--red500":"#f23e0d","--red600":"#da380b","--red700":"#c2320a","--yellow500":"#fea900","--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":"#0087e0","--brandPrimary600":"#0095eb","--brandPrimary500":"var(--userBrandPrimary500, #00aaff)","--brandPrimary500-rgb":oh("#00aaff"),"--brandPrimary300":"#b3e6ff","--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)","--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(--gray25)","--componentButtonCleanFillActive":"var(--gray75)","--componentButtonCleanFillFocus":"transparent","--componentButtonCleanFillDisabled":"transparent","--componentButtonCleanFocusRing":"0 0 0 3px var(--gray50a)"},ah={"--gray1000":"#ffffff","--gray1000-rgb":oh("#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"},sh=cd`${Wu([":root,:host,.",",.","{","}.","{","}"],"ds-light-theme","ds-dark-theme",ch(ih),"ds-dark-theme",ch(ah))}`;function ch(e){return Object.entries(e).map(e=>e.join(":")).join(";")+";"}const lh={size:"24px",attr:{"aria-hidden":"true"},style:{verticalAlign:"middle"}};function uh({children:e,noTheme:n}){return t.createElement(em.Provider,{value:lh},!n&&t.createElement(sh,null),e)}ud.div.withConfig({displayName:"ArrowStyled",componentId:"zvdl8u-25"})(["margin-right:calc("," * -1);margin-left:calc("," * -1);"],qm.spacing2,qm.spacing2);const dh=s(({children:e,...n},r)=>t.createElement(ph,Object.assign({role:"menu",ref:r},n),e)),ph=ud.div.withConfig({displayName:"ContainerStyled",componentId:"zvdl8u-26"})(["z-index:1032;overflow-y:auto;box-sizing:border-box;min-width:224px;max-width:336px;max-height:calc(36px * 9.5 + ",");padding:"," 0;border-radius:",";background:",";box-shadow:",",",";"],qm.spacing3,qm.spacing3,qm.radiusBase,qm.gray10,qm.elevationStatic,qm.elevation2);ud.hr.withConfig({displayName:"DividerStyled",componentId:"zvdl8u-27"})(["box-sizing:content-box;height:1px;margin:0;padding:"," 0;border:none;background:",";background-clip:content-box;"],qm.spacing3,qm.gray50),ud.label.withConfig({displayName:"SwitchStyled",componentId:"zvdl8u-28"})([""," display:flex;align-items:baseline;margin:0;padding:"," 0;color:",";cursor:",";user-select:none;"],Zm.uiTextM,qm.spacing1,qm.gray800,e=>!e.isDisabled&&"pointer"),ud.span.withConfig({displayName:"Label2",componentId:"zvdl8u-29"})(["align-self:center;margin-right:",";"],qm.spacing4),ud.span.withConfig({displayName:"ToggleAlignment",componentId:"zvdl8u-30"})(["margin-left:auto;&::before{content:'\\200B';display:inline-block;vertical-align:middle;}"]);const fh=ud.span.withConfig({displayName:"Toggle",componentId:"zvdl8u-31"})(["position:relative;display:inline-block;vertical-align:middle;width:36px;height:22px;input{position:absolute;opacity:0;}"]);ud.span.withConfig({displayName:"Indicator1",componentId:"zvdl8u-32"})(["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:",";}",""],qm.radiusPill,e=>e.isDisabled?qm.gray100:qm.gray75,e=>!e.isDisabled&&"pointer",e=>e.isDisabled?qm.gray50:qm.gray10,qm.elevation2,fh,e=>e.isDisabled?qm.gray400:qm.blue500,e=>e.isDisabled?"0.5":"1",e=>e.isDisabled?qm.gray100:qm.gray10,e=>!e.isDisabled&&Wu(["",":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",qm.gray100,".ds-switch__pointer-events-wrapper",".ds-switch__pointer-events-wrapper",e=>e.isDisabled?qm.gray400:qm.blue600,e=>e.isFocusVisible&&Wu([""," 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:",";}"],fh,qm.gray100,qm.gray200,fh,qm.blue500)),ud.div.withConfig({displayName:"ItemWrapper",componentId:"zvdl8u-33"})(["position:relative;"]);const mh=ud.button.withConfig({displayName:"ItemStyled",componentId:"zvdl8u-34"})([""," 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;}"],Zm.uiTextS,qm.spacing5,e=>e.isChecked?qm.gray800:qm.gray600,qm.brandFontStackBase,e=>e.isSubmenuOpen&&Wu(["background:",";color:",";"],qm.gray25,qm.gray800),e=>e.isFocusVisible&&Wu(["background:",";color:",";"],qm.gray50,qm.gray800),qm.gray25,qm.gray800,qm.gray50,qm.gray800,qm.gray400);function hh({children:e,direction:n="row",wrap:r="nowrap",justifyContent:o="flex-start",alignItems:i="stretch",gap:a,...s}){return t.createElement(gh,Object.assign({},s),t.createElement(vh,{direction:n,wrap:r,justifyContent:o,alignItems:i,gap:a},e))}ud.span.withConfig({displayName:"CheckboxContainer",componentId:"zvdl8u-35"})(["display:flex;flex:none;align-items:center;justify-content:center;width:24px;height:24px;margin-right:",";"],qm.spacing3),ud.span.withConfig({displayName:"Icon1",componentId:"zvdl8u-36"})(["display:flex;flex:none;align-items:center;justify-content:center;width:24px;height:24px;margin-right:",";"],qm.spacing3),ud.span.withConfig({displayName:"Label1",componentId:"zvdl8u-37"})(["flex:1;overflow:hidden;min-width:0;text-align:left;text-overflow:ellipsis;white-space:nowrap;"]),ud.span.withConfig({displayName:"RightContainer",componentId:"zvdl8u-38"})(["flex:none;margin:0 ",";&:last-child{margin-right:calc("," * -1);}"],qm.spacing3,qm.spacing2),ud.span.withConfig({displayName:"SubmenuIconContainer",componentId:"zvdl8u-39"})(["flex:none;margin-right:calc("," * -1);margin-left:",";color:",";",":hover,",":active{color:",";}"],qm.spacing3,qm.spacing3,e=>e.isActive?qm.gray400:qm.gray200,mh,mh,qm.gray400),ud(dh).withConfig({displayName:"SubMenuContainer",componentId:"zvdl8u-40"})(["margin-top:calc("," * -1);"],qm.spacing3),ud.div.withConfig({displayName:"SectionTitleStyled",componentId:"zvdl8u-41"})([""," overflow:hidden;padding:"," "," ",";color:",";text-overflow:ellipsis;white-space:nowrap;"],Zm.uiTextS,qm.spacing4,qm.spacing5,qm.spacing3,qm.gray800),ud.span.withConfig({displayName:"Text1",componentId:"zvdl8u-42"})(["width:100%;text-align:left;"]);const gh=ud.div.withConfig({displayName:"Wrapper",componentId:"zvdl8u-43"})(["display:flex;"]),vh=ud.div.withConfig({shouldForwardProp:(e,t)=>!["direction","wrap"].includes(e)&&t(e)}).withConfig({displayName:"Container3",componentId:"zvdl8u-44"})(["display:flex;flex-direction:",";flex-wrap:",";align-items:",";justify-content:",";box-sizing:border-box;width:100%;height:100%;",""],e=>e.direction,e=>e.wrap,e=>e.alignItems,e=>e.justifyContent,e=>{if(!e.gap)return null;const t=qm["spacing"+e.gap];return Wu(["width:calc(100% + calc("," + 1px));height:calc(100% + ",");margin-bottom:calc("," * -1);margin-left:calc("," * -1);&& > *{margin-bottom:",";margin-left:",";}"],t,t,t,t,t,t)}),yh=ud.button.withConfig({displayName:"ButtonStyled",componentId:"zvdl8u-45"})(["display:inline-flex;vertical-align:middle;flex-wrap:nowrap;align-items:center;justify-content: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;}"," ",";",""],qm.brandRadiusBase,qm.fontSizeBase,qm.brandFontStackBase,qm.lineHeightBase,e=>e.isFullWidth&&"width: 100%;",e=>e.isSmall?Wu(["height:32px;padding:0 ",";font-size:",";line-height:20px;"],qm.spacing4,qm.fontSize75):Wu(["height:40px;padding:0 ",";"],qm.spacing5),e=>{if("primary"===e.variant){const t=Wu(["border-color:",";background-color:",";color:",";box-shadow:none;"],qm.componentButtonPrimaryBorderActive,qm.componentButtonPrimaryFillActive,qm.componentButtonPrimaryColorActive);return Wu(["border-color:transparent;background-color:",";color:",";"," &:hover{border-color:",";background-color:",";color:",";box-shadow:",";}&:active{","}"," &:disabled{border-color:",";background-color:",";color:",";box-shadow:none;}"],qm.componentButtonPrimaryFill,qm.componentButtonPrimaryColor,e.isPressed&&t,qm.componentButtonPrimaryBorderHover,qm.componentButtonPrimaryFillHover,qm.componentButtonPrimaryColorHover,qm.elevation1,t,e.isFocusVisible&&Wu(["background-color:",";color:",";&,&:hover{border-color:",";box-shadow:",";}"],qm.componentButtonPrimaryFillFocus,qm.componentButtonPrimaryColorFocus,qm.componentButtonPrimaryBorderFocus,qm.componentButtonPrimaryFocusRing),qm.componentButtonPrimaryBorderDisabled,qm.componentButtonPrimaryFillDisabled,qm.componentButtonPrimaryColorDisabled)}if("secondary"===e.variant){const t=Wu(["border-color:",";background-color:",";color:",";box-shadow:none;"],qm.componentButtonSecondaryBorderActive,qm.componentButtonSecondaryFillActive,qm.componentButtonSecondaryColorActive);return Wu(["border-color:",";background-color:",";color:",";"," &:hover{border-color:",";background-color:",";color:",";box-shadow:",";}&:active{","}"," &:disabled{border-color:",";background-color:",";color:",";box-shadow:none;}"],qm.componentButtonSecondaryBorder,qm.componentButtonSecondaryFill,qm.componentButtonSecondaryColor,e.isPressed&&t,qm.componentButtonSecondaryBorderHover,qm.componentButtonSecondaryFillHover,qm.componentButtonSecondaryColorHover,qm.elevation1,t,e.isFocusVisible&&Wu(["background-color:",";color:",";&,&:hover{border-color:",";box-shadow:",";}"],qm.componentButtonSecondaryFillFocus,qm.componentButtonSecondaryColorFocus,qm.componentButtonSecondaryBorderFocus,qm.componentButtonSecondaryFocusRing),qm.componentButtonSecondaryBorderDisabled,qm.componentButtonSecondaryFillDisabled,qm.componentButtonSecondaryColorDisabled)}if("clean"===e.variant){const t=Wu(["border-color:",";background-color:",";color:",";box-shadow:none;"],qm.componentButtonCleanBorderActive,qm.componentButtonCleanFillActive,qm.componentButtonCleanColorActive);return Wu(["background-color:",";color:",";"," &:hover{background-color:",";color:",";box-shadow:none;}&:active{","}"," &:disabled{background-color:",";color:",";}"],qm.componentButtonCleanFill,qm.componentButtonCleanColor,e.isPressed&&t,qm.componentButtonCleanFillHover,qm.componentButtonCleanColorHover,t,e.isFocusVisible&&Wu(["color:",";&,&:hover{border-color:",";box-shadow:",";}"],qm.componentButtonCleanColorFocus,qm.componentButtonCleanBorderFocus,qm.componentButtonCleanFocusRing),qm.componentButtonCleanFillDisabled,qm.componentButtonCleanColorDisabled)}return""}),bh=ud.div.withConfig({displayName:"Icon",componentId:"zvdl8u-46"})(["display:flex;align-items:center;height:100%;"]),wh=ud(bh).withConfig({displayName:"LeftIcon",componentId:"zvdl8u-47"})(["margin-right:",";margin-left:calc("," * -1);"],e=>e.lastChild?`calc(${qm.spacing2} * -1) `:qm.spacing3,qm.spacing2),xh=ud(bh).withConfig({displayName:"RightIcon",componentId:"zvdl8u-48"})(["margin-right:calc("," * -1);margin-left:",";"],qm.spacing2,qm.spacing3);function _h(){return t.createElement(kh,{viewBox:"0 0 24 24","aria-hidden":"true"},t.createElement(Ch,{cx:"12",cy:"12",r:"8",fill:"none",strokeWidth:"3"}))}const Eh=ld(["100%{transform:rotate(360deg);}"]),Sh=ld(["0%{stroke-dasharray:1,100;stroke-dashoffset:0;}50%{stroke-dasharray:80,100;stroke-dashoffset:-20;}100%{stroke-dasharray:80,100;stroke-dashoffset:-48;}"]),kh=ud.svg.withConfig({displayName:"Svg",componentId:"zvdl8u-49"})(["width:24px;height:24px;animation:"," 1s linear infinite;"],Eh),Ch=ud.circle.withConfig({displayName:"Circle",componentId:"zvdl8u-50"})(["stroke:currentColor;animation:"," 1.5s ease-in-out infinite;stroke-linecap:round;"],Sh),Th=s(({children:e,variant:n="secondary",isSmall:r=!1,icon:o,rightIcon:i,isDisabled:a=!1,isLoading:s=!1,type:c="button",...l},u)=>{const{isFocusVisible:d,focusProps:p}=Wf();return t.createElement(yh,Object.assign({variant:n,isSmall:r,disabled:s||a,type:c,as:l.href?"a":"button",isFocusVisible:d,ref:u},p,l),s?t.createElement(t.Fragment,null,t.createElement(wh,{"data-testid":"ds-button-loading-icon"},t.createElement(_h,null)),e):t.createElement(t.Fragment,null,o&&t.createElement(wh,{lastChild:!e},o),e,i&&t.createElement(xh,null,i)))}),Nh=cd`${Wu(["@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:1031;}.","{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: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","b-modal__overlay",qm.gray200a,"b-modal__container",qm.spacing6,"b-modal__modal",qm.radiusBase,qm.gray10,qm.elevation8,Ym,"b-modal__modal--full-screen")}`,Ih=ud.div.withConfig({displayName:"HeaderStyled",componentId:"zvdl8u-51"})(["display:flex;flex:none;align-items:center;box-sizing:border-box;height:72px;padding:"," ",";",""],qm.spacing4,qm.spacing6,e=>!e.hideCloseIcon&&Wu(["padding-right:calc( "," + 50px + "," );"],qm.spacing4,qm.spacing6)),Ph=ud.div.withConfig({displayName:"BackButton",componentId:"zvdl8u-52"})(["margin-right:",";margin-left:calc("," * -1);"],qm.spacing4,qm.spacing4),Oh=ud.div.withConfig({displayName:"ModalThumbnail",componentId:"zvdl8u-53"})(["margin-right:",";"],qm.spacing4),Ah=ud.div.withConfig({displayName:"Headings",componentId:"zvdl8u-54"})(["flex:1;min-width:0;"]),Bh=ud.h2.withConfig({displayName:"Title2",componentId:"zvdl8u-55"})([""," overflow:hidden;margin:0;color:",";text-overflow:ellipsis;white-space:nowrap;"],Zm.uiTextL,qm.colorText),Fh=ud.h3.withConfig({displayName:"SecondaryInformation",componentId:"zvdl8u-56"})([""," overflow:hidden;margin:0;color:",";text-overflow:ellipsis;white-space:nowrap;"],Zm.uiTextS,qm.gray500),Lh=ud.div.withConfig({displayName:"ContentStyled",componentId:"zvdl8u-57"})(["flex:1 1 auto;min-height:0;",""],e=>e.scrollable&&Wu(["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);}"],qm.colorShadow,qm.colorShadow)),zh=ud.div.withConfig({displayName:"ContentInner",componentId:"zvdl8u-58"})(["box-sizing:border-box;padding:"," ",";"," ",""],qm.spacing5,qm.spacing6,Ym,e=>e.scrollable&&Wu(["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) );}"],qm.spacing5,qm.spacing5,qm.spacing6,qm.gray10,qm.gray10,qm.spacing6,qm.spacing5,qm.gray10,qm.gray10)),Rh=ud.div.withConfig({displayName:"ContentExpander",componentId:"zvdl8u-59"})(["min-height:100%;"]),Mh=ud.div.withConfig({displayName:"FooterStyled",componentId:"zvdl8u-60"})(["display:flex;flex:none;padding:",";"],qm.spacing6),Dh=ud.div.withConfig({displayName:"ActionsRight",componentId:"zvdl8u-61"})(["margin-left:auto;"]),jh=ud.div.withConfig({displayName:"CloseButton",componentId:"zvdl8u-62"})(["position:absolute;top:",";right:",";"],qm.spacing5,qm.spacing4),Hh=t.createContext({fullScreen:!1,hideCloseIcon:!1});function Uh({isOpen:e,onClose:n,isFullScreen:r=!1,isCloseButtonHidden:o=!1,closeButtonTitle:i="Close",isClosedOnOverlayClick:a=!1,children:s,container:c}){const l={root:"b-modal",overlay:"b-modal__overlay",modalContainer:"b-modal__container",modal:"b-modal__modal "+(r?"b-modal__modal--full-screen":""),modalAnimationIn:"b-modal-container-in",modalAnimationOut:"b-modal-container-out",overlayAnimationIn:"b-modal-overlay-in",overlayAnimationOut:"b-modal-overlay-out"},u=!o;return t.createElement(Hh.Provider,{value:{fullScreen:r,hideCloseIcon:o}},t.createElement(Wm,{open:e,onClose:n,classNames:l,animationDuration:200,showCloseIcon:!1,closeOnEsc:u,closeOnOverlayClick:a,container:c},s,u&&t.createElement(jh,null,t.createElement(Th,{variant:"clean",icon:t.createElement(_m,null),"aria-label":i,title:i,onClick:n}))),t.createElement(Nh,null))}function Vh({isOpen:e,onClose:n,isFullScreen:r,isCloseButtonHidden:o,isClosedOnOverlayClick:i,closeButtonTitle:a,title:s,secondaryInfo:c,thumbnail:l,children:u,actionPrimary:d,actionSecondary:p,container:f}){return t.createElement(Uh,{isOpen:e,onClose:n,isClosedOnOverlayClick:i,isCloseButtonHidden:o,isFullScreen:r,closeButtonTitle:a,container:f},t.createElement(Uh.Header,{title:s,secondaryInfo:c,thumbnail:l}),t.createElement(Uh.Content,null,u),d&&t.createElement(Uh.Footer,{actionPrimary:d,actionSecondary:p}))}function Kh(e){return t.createElement(Vh,Object.assign({},e))}Uh.Header=function({title:e,secondaryInfo:n,thumbnail:r,backButton:o}){const{hideCloseIcon:a}=i(Hh);return t.createElement(Ih,{hideCloseIcon:a},o&&t.createElement(Ph,null,t.createElement(Th,Object.assign({variant:"clean",icon:t.createElement(wm,null),"aria-label":o.title},o))),r&&t.createElement(Oh,null,r),t.createElement(Ah,null,t.createElement(Bh,null,e),n&&t.createElement(Fh,null,n)))},Uh.Content=function({children:e}){const{fullScreen:n}=i(Hh);return t.createElement(Lh,{scrollable:n},t.createElement(zh,{scrollable:n},n?t.createElement(Rh,null,e):e))},Uh.Footer=function({actionPrimary:e,actionSecondary:n,actionTertiary:r}){return t.createElement(Mh,null,r,t.createElement(Dh,null,t.createElement(hh,{gap:"5"},n,e)))},ud.div.withConfig({displayName:"NotificationPositionStyled",componentId:"zvdl8u-63"})(["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"),ud.div.withConfig({displayName:"NotificationsStyled",componentId:"zvdl8u-64"})(["position:fixed;bottom:",";left:",";z-index:9999;"],qm.spacing6,qm.spacing6),ud.div.withConfig({shouldForwardProp:(e,t)=>!["shape"].includes(e)&&t(e)}).withConfig({displayName:"ThumbnailContainer",componentId:"zvdl8u-65"})(["position:relative;overflow:hidden;border-radius:",";"," ",""],e=>"circle"===e.shape?qm.radiusCircle:qm.brandRadiusBase,e=>e.hasCheckers&&Wu(["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 Wu(["width:",";height:",";"],t,t)}),ud.div.withConfig({displayName:"Fill1",componentId:"zvdl8u-66"})(["display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:50% 50% no-repeat;background-color:",";background-image:",";background-size:cover;color:",";"],e=>e.backgroundColor,e=>e.imageUrl?`url(${e.imageUrl}) `:void 0,e=>e.iconColor),ud.div.withConfig({shouldForwardProp:(e,t)=>!["shape"].includes(e)&&t(e)}).withConfig({displayName:"InnerShadow",componentId:"zvdl8u-67"})(["position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border:1px solid ",";border-radius:",";"],qm.gray100a,e=>"circle"===e.shape?qm.radiusCircle:qm.brandRadiusBase),ud.div.withConfig({displayName:"NoImage",componentId:"zvdl8u-68"})(["width:80%;height:2px;border-radius:2px;background:",";transform:rotate(-45deg);"],qm.red500),ud.div.withConfig({displayName:"BaloonStyled",componentId:"zvdl8u-69"})(["",";position:relative;display:flex;align-items:flex-start;overflow:hidden;box-sizing:border-box;width:480px;padding:",";border-radius:",";background:",";box-shadow:",",",";"],Ym,qm.spacing5,qm.radiusLarge,qm.white,qm.elevationStatic,qm.elevation2),ud.div.withConfig({displayName:"ThumbnailWrapper",componentId:"zvdl8u-70"})(["flex:none;margin-right:",";"],qm.spacing5),ud.div.withConfig({displayName:"Text",componentId:"zvdl8u-71"})(["flex:1;align-self:center;"]),ud.h2.withConfig({displayName:"Title1",componentId:"zvdl8u-72"})(["display:-webkit-box;overflow:hidden;margin:0;font:inherit;-webkit-line-clamp:3;-webkit-box-orient:vertical;"]),ud.p.withConfig({displayName:"Description",componentId:"zvdl8u-73"})(["display:-webkit-box;overflow:hidden;margin:"," 0 0;color:",";font-size:",";line-height:20px;-webkit-line-clamp:4;-webkit-box-orient:vertical;"],qm.spacing2,qm.gray500,qm.fontSize75),ud.div.withConfig({displayName:"Action",componentId:"zvdl8u-74"})(["flex:none;"]),ud.div.withConfig({displayName:"Progress1",componentId:"zvdl8u-75"})(["position:absolute;bottom:0;left:0;height:4px;background-color:",";transition:width 0.2s;"],qm.brandPrimary500),ud.div.withConfig({displayName:"Track",componentId:"zvdl8u-76"})(["height:4px;border-radius:",";background:",";"],e=>e.noCornerRadius?"0":qm.radiusPill,e=>e.noBackground?"none":qm.gray100a),ud.div.withConfig({shouldForwardProp:(e,t)=>!["color"].includes(e)&&t(e)}).withConfig({displayName:"Fill",componentId:"zvdl8u-77"})(["max-width:100%;height:100%;border-radius:",";background:",";transition:width 0.2s ease-out;"],e=>e.noCornerRadius?"0":qm.radiusPill,e=>"brand"===e.color?qm.brandPrimary500:qm.gray600),ud.div.withConfig({displayName:"IndicatorPosition",componentId:"zvdl8u-78"})(["display:flex;flex:none;align-items:center;&::before{content:'';}"]);const $h=ud.div.withConfig({displayName:"Indicator",componentId:"zvdl8u-79"})(["position:relative;display:flex;align-items:center;justify-content: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:",";}"," ",""],qm.gray300,qm.radiusCircle,qm.focusRingWidth,e=>e.isFocusVisible&&qm.focusRingColorPrimary,qm.radiusCircle,e=>e.isChecked&&Wu(["border-color:transparent;background-color:",";color:#fff;"],qm.blue500),e=>e.isDisabled&&Wu(["border-color:transparent;background-color:",";color:",";"],qm.gray100,qm.gray500));ud.div.withConfig({displayName:"IndicatorMark",componentId:"zvdl8u-80"})(["width:6px;height:6px;border-radius:",";background:currentColor;"],qm.radiusCircle),ud.input.withConfig({displayName:"Input",componentId:"zvdl8u-81"})(["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%);"]),ud.label.withConfig({displayName:"Container2",componentId:"zvdl8u-82"})([""," display:flex;align-items:flex-start;margin:0;padding:"," 0;cursor:",";user-select:none;&:hover ","{","}"],Zm.uiTextM,qm.spacing1,e=>!e.isDisabled&&"pointer",$h,e=>{if(!e.isDisabled)return e.isChecked?Wu(["background-color:",";"],qm.blue600):Wu(["border-color:",";"],qm.gray500)}),ud.div.withConfig({displayName:"Label",componentId:"zvdl8u-83"})(["display:block;margin-left:8px;color:",";"],e=>e.isDisabled?qm.gray400:qm.colorText),ud.aside.withConfig({displayName:"Container1",componentId:"zvdl8u-84"})(["overflow-y:auto;box-sizing:border-box;width:272px;height:100%;padding:"," 0;border-right:1px solid ",";background:",";"],qm.spacing5,qm.gray100,qm.white),ud.div.withConfig({displayName:"TooltipContainer",componentId:"zvdl8u-85"})([""," display:flex;max-width:240px;padding:calc("," / 2) ",";border-radius:",";background:",";color:",";"],Zm.uiTextS,qm.spacing4,qm.spacing4,qm.radiusBase,qm.gray900a,qm.gray10),ud.span.withConfig({displayName:"IconContainer",componentId:"zvdl8u-86"})(["display:flex;align-items:center;width:24px;height:24px;margin:-"," "," -"," -",";color:",";"],qm.spacing1,qm.spacing2,qm.spacing1,qm.spacing2,qm.gray400),ud.span.withConfig({displayName:"LabelContainer",componentId:"zvdl8u-87"})(["margin-right:",";color:",";"],qm.spacing2,qm.gray400),ud.div.withConfig({displayName:"VerticalLabelContainer",componentId:"zvdl8u-88"})(["color:",";"],qm.gray400),ud.div.withConfig({displayName:"LeftIconContainer",componentId:"zvdl8u-89"})(["margin-right:",";*{max-width:24px;max-height:24px;}"],qm.spacing4),ud.div.withConfig({displayName:"RightElementIcon",componentId:"zvdl8u-90"})(["margin-left:",";&:last-child{margin-right:calc("," * -1);}"],qm.spacing3,qm.spacing2);const Wh=ud.div.withConfig({displayName:"RightElementText",componentId:"zvdl8u-91"})(["display:flex;align-items:center;justify-content:flex-end;margin-left:",";color:",";text-align:right;"],qm.spacing4,qm.gray400);ud.div.withConfig({displayName:"RightElementsContainer",componentId:"zvdl8u-92"})(["display:flex;align-items:center;margin-left:auto;"]);const qh=Wu(["background-color:",";color:",";","{color:",";}"],qm.gray50,qm.gray800,Wh,qm.gray600);function Yh(e){var n;return t.createElement(Kh,{title:Zc("Send error report"),isOpen:e.isOpen,onClose:e.onCancel,actionPrimary:t.createElement(Jc,{kind:"Primary",title:Zc("Send report"),className:"ml-2",onClick:e.onDone},Zc("Send report")),actionSecondary:t.createElement(Jc,{"data-testid":"bla",kind:"Secondary",title:Zc("Cancel"),onClick:e.onCancel},Zc("Cancel")),container:e.container},t.createElement("div",{className:"leading-6"},Zc("We have created a report that you can send us to help us prevent this from happening in the future.")),t.createElement("div",{className:"my-4 flex-grow self-stretch bg-ui-400 rounded border border-ui-600 px-4 py-3 leading-6 overflow-scroll",style:{maxHeight:200},"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("span",{className:"text-body-400 text-sm leading-5"},Zc("We will treat this report as confidential and anonymous.")))}function Xh(e){var n=e.error,o=e.onRetry,i=Hc(),s=r(!1),c=s[0],l=s[1],u=r(!1),d=u[0],p=u[1];return a((function(){Mc.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(nl,{isReportSent:d,onClickSend:function(){l(!0)},onClickRetry:o}),t.createElement(Yh,{isOpen:c,error:n,container:i,onDone:function(){ds(n),l(!1),p(!0)},onCancel:function(){l(!1)}}))}function Gh(){var e=ci(xi()[0].page),n=e[0],r=e[1],o=Gc("w-6 h-6 -mx-1","ASC"===n.direction&&"flip-y"),i={ASC:Zc("Ascending"),DESC:Zc("Descending")},a={ASC:"DESC",DESC:"ASC"};return t.createElement(Jc,{kind:"FlatSm",title:i[n.direction],onClick:function(){r({field:n.field,direction:a[n.direction]})}},t.createElement(dm,{className:o}))}function Jh(e){var n=c(null),o=r(0)[1];!function(e,t){var n=Hc();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,n],e.onClickOutside),l((function(){o(null!==e.target.current?e.target.current.getBoundingClientRect().x:0)}),[e.target]);var i=Hc();if(null===i||null===e.target.current)return null;var s=e.target.current.getBoundingClientRect(),u=s.x,d=window.innerWidth,p={left:u+300>d?void 0:u,right:u+300>d?d-s.width-u:void 0,top:"Down"===e.direction?s.top+s.height:void 0,bottom:"Up"===e.direction?window.innerHeight-s.top:void 0},f=Gc("cv-root cv-dropdown select-none",e.className);return m(t.createElement("div",{role:"menu",id:e.id,className:f,style:p,ref:n},e.children),i)}function Zh(e){var n=e.buttonKind,i=void 0===n?"FlatSm":n,a=e.direction,s=void 0===a?"Down":a,l=pi(e,["buttonKind","direction"]),u=o((function(){return"dropdownmenu-"+Date.now()+"-"+Math.random().toString(36).substring(2)}),[]),d=r(!1),p=d[0],f=d[1],m=c(null),h=function(){return f((function(e){return!e}))},g=Gc(p&&"bg-ui-400 border-ui-700 text-body-500",l.buttonClassName);return t.createElement(t.Fragment,null,t.createElement(Jc,{kind:i,onClick:h,className:g,ref:m,isDisabled:l.disabled,"aria-haspopup":!0,"aria-expanded":p,"aria-controls":u},t.createElement("span",{className:"inline-flex items-center",title:l.alt},l.title),t.createElement(vm,{className:"w-6 h-6 ml-1 -mr-2"})),p&&t.createElement(Jh,{className:l.className,onClickOutside:h,direction:s,target:m,id:u},l.children(h)))}function Qh(e){var n=e.selected,r=void 0!==n&&n,o=pi(e,["selected"]),i=Gc("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(bm,{className:"w-6 h-6 ml-3 fade-in"})))}function eg(e){var n=e.options,r=void 0===n?["CREATED_AT","PUBLISHED_AT","UPDATED_AT","NAME"]:n,o=ci(xi()[0].page),i=o[0],a=o[1],s={CREATED_AT:Zc("Date added"),NAME:Zc("Name"),PUBLISHED_AT:Zc("Date published"),UPDATED_AT:Zc("Date modified")};return t.createElement(Zh,{className:"py-2",buttonClassName:"ml-auto",title:s[i.field],alt:Zc("Order by")},(function(e){return t.createElement("ul",null,r.map((function(n){return t.createElement(Qh,{className:"px-4 py-px text-sm",selected:i.field===n,key:s[n],onClick:function(){a({field:n,direction:i.direction}),e()}},t.createElement("span",{className:"flex-grow min-w-24 py-2"},s[n]))})))}))}function tg(e,t,n){return(1===e?t:n).replace("{}",e.toString())}function ng(e,t){t&&"Enter"===e.key&&(e.preventDefault(),t(e))}function rg(e){var n=e.alt,r=e.className,o=e.fadeIn,i=void 0===o||o,a=e.id,s=e.style,c=e.stacked,l=void 0!==c&&c,u=e.title,d=e.onClick,p=e.children,f=void 0===p?null:p,m=e.metaproperties,h=pi(e,["alt","className","fadeIn","id","style","stacked","title","onClick","children","metaproperties"]);return t.createElement("div",{className:Gc("m-2 w-56 self-start group relative rounded bg-ui-500 shadow transition-shadow\n\t\t\t\t cursor-pointer",i&&"fade-in-down",r),id:a,style:s,title:n,onClick:d,onKeyDown:function(e){return ng(e,d)},tabIndex:0,role:"option","aria-label":n,"aria-selected":h["aria-selected"],"data-testid":"asset-card"},t.createElement("div",{className:"overflow-hidden rounded"},t.createElement("div",{className:"flex h-32 relative"},f),t.createElement("div",{className:"p-3 bg-ui-0"},t.createElement("header",{className:"truncate"},u),!!(null==m?void 0:m.length)&&t.createElement("dl",{className:"pt-2 mt-2 border-t border-ui-600 text-body-400 text-sm"},m&&m.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 pb-1",key:n},t.createElement("dt",{className:"text-body-300 pr-1"},n,":"),t.createElement("dd",{className:""},r))}))))),l&&t.createElement("div",{className:"absolute border-b rounded left-px right-px h-3 -bottom-0.75","data-testid":"stacked"}))}function og(e){var n=e.width,r=void 0===n?100:n,o=e.className;return t.createElement("span",{className:Gc("cv-skeleton",o),style:{width:r},"data-testid":"skeleton"},"")}function ig(e){return t.createElement(t.Fragment,null,Array(e.rows*e.columns).fill(void 0).map((function(n,r){return t.createElement(rg,{key:r,style:{animationDuration:Math.round(r/e.columns*200+500)+"ms"},title:t.createElement(t.Fragment,null,t.createElement(og,{width:70+ag(100,r),className:"h-4"}),e.title)})})))}function ag(e,t){return 16807*((t+20)%2147483647+2147483646)%2147483647%e}function sg(e){var n=e.title,o=e.onClick,i=e.active,a=e.className,s=e.children,c=pi(e,["title","onClick","active","className","children"]),l=r("None"),u=l[0],d=l[1],p=$c(),f=Gc("inline-flex p-0.5 items-center text-md text-body-400 select-none shadow shadow-overlay\n\t\t transition-color",i?"bg-brand-500 hover:bg-brand-600 text-ui-0":"bg-ui-0-.8 hover:bg-ui-0 hover:text-body-500",a),m=i||"None"!==u?qc(p,"Primary",u):void 0;return t.createElement("button",di({className:f,style:m,title:n,onClick:o,onMouseOver:function(){return d("Hover")},onFocus:function(){return d("Hover")},onMouseOut:function(){return d("None")},onBlur:function(){return d("None")},type:"button"},c),s)}function cg(e){return{tag:"ok",value:e}}function lg(e){return{tag:"error",error:e}}function ug(e){return"ok"===e.tag}function dg(e){return"error"===e.tag}function pg(e){return"https://"+e.replace(/^https?:\/\//i,"").replace(/\/+$/i,"")+"/"}ud.a.withConfig({displayName:"StyledNavItem",componentId:"zvdl8u-93"})(["&&{"," 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{","}"," "," ",";}"],Zm.uiTextM,qm.spacing3,qm.spacing4,qm.brandRadiusBase,qm.gray600,qm.brandFontStackBase,e=>e.disabled?"default":"pointer",qm.gray25,qm.gray800,Wh,qm.gray600,qh,e=>e.isSelected&&qh,e=>e.isFocusVisible&&Wu(["background-color:",";color:",";","{color:",";}"],qm.gray25,qm.gray800,Wh,qm.gray600),e=>e.disabled&&Wu(["background-color:inherit;color:",";pointer-events:none;","{color:",";}"],qm.gray400,Wh,qm.gray400)),ud.div.withConfig({displayName:"ItemTitle",componentId:"zvdl8u-94"})(["overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;"]),ud.hr.withConfig({displayName:"Divider",componentId:"zvdl8u-95"})(["height:1px;margin:",";border:0;background-color:",";"],qm.spacing4,qm.gray50),ud.div.withConfig({displayName:"StyledTitleContainer",componentId:"zvdl8u-96"})(["",";display:flex;align-items:center;box-sizing:border-box;height:32px;padding:0 ",";color:",";"],Zm.uiTextS,qm.spacing4,qm.gray800),ud.div.withConfig({displayName:"StyledTitle",componentId:"zvdl8u-97"})(["overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;"]),ud.div.withConfig({displayName:"Container",componentId:"zvdl8u-98"})(["margin:0 ",";"],qm.spacing5);var fg=new Map;function mg(e,t,n){return fi(this,void 0,void 0,(function(){var r,o,i,a,s,c;return mi(this,(function(l){switch(l.label){case 0:if(!n)return[2,lg("No authentication provided")];if("/"===(r=void 0!==n.accountDomain?pg(n.accountDomain.trim()):"https://"+window.location.host).charAt(r.length-1)&&(r=r.slice(0,-1)),o=r+":"+e+":"+JSON.stringify(t)+":"+n.accessToken,fg.has(o))return[2,cg(fg.get(o))];i={Accept:"application/json","Content-Type":"application/json","X-Bynder-Integration":"UCV/v2.6.1"},a=void 0===(null==n?void 0:n.accessToken)?i:di(di({},i),{Authorization:"Bearer "+n.accessToken}),s={method:"post",headers:a,body:JSON.stringify({query:e,variables:t})},l.label=1;case 1:return l.trys.push([1,4,,5]),[4,fetch(r+"/graphql",s)];case 2:return[4,l.sent().json()];case 3:return c=l.sent(),[3,5];case 4:return[2,lg(l.sent())];case 5:return void 0!==c.errors?[2,lg(c.errors.map((function(e){return e.message})).join(","))]:(fg.set(o,c.data),fg.size>50&&fg.delete(fg.keys().next().value),[2,cg(c.data)])}}))}))}function hg(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 gg(){var e=new Uint32Array(28),t=window.crypto.getRandomValues(e);return Array.from(t).map((function(e){return("0"+e.toString(16)).substr(-2)})).join("")}var vg="42b1eefa-d754-4802-b9c4-bf80d6ab6052",yg="https://d8ejoa1fys2rk.cloudfront.net/5.0.5/modules/compactview/loginCompleted.html",bg=["offline","asset:read","collection:read","meta.assetbank:read"];function wg(e,t,n){return fi(this,void 0,void 0,(function(){var r,o,i,a;return mi(this,(function(s){switch(s.label){case 0:r=xg(n)+"token",o=new URLSearchParams({client_id:vg,code_verifier:t,code:e,redirect_uri:yg,grant_type:"authorization_code"}),s.label=1;case 1:return s.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=s.sent()).ok?[4,i.json()]:[2,lg("Failed to fetch access token: "+i.status)];case 3:return[2,cg({refreshToken:(a=s.sent()).refresh_token,accessToken:a.access_token,expiresIn:a.expires_in})];case 4:return[2,lg(s.sent().toString())];case 5:return[2]}}))}))}function xg(e){return"webdam"===_g()?"https://apiv2.webdamdb.com/oauth2/":pg(e)+"v6/authentication/oauth2/"}function _g(){var e;return null!==(e=localStorage.getItem("cvp"))&&void 0!==e?e:void 0}function Eg(e){return fi(this,void 0,void 0,(function(){var t,n,r,o,i,a;return mi(this,(function(s){switch(s.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=700,width=570,left="+n+",top="+r))?[2,lg("Error opening login window")]:(o.document.head.innerHTML=Sg,o.document.body.innerHTML=kg,o.location.href=e,[4,Promise.race([new Promise((function(e){window.addEventListener("message",(function(t){"https://d8ejoa1fys2rk.cloudfront.net"===t.origin&&e(cg(t))}))})),new Promise((function(e){setTimeout((function(){return e(lg("Timeout"))}),6e5)})),(c=o,new Promise((function(e){var t=setInterval((function(){c.closed&&(clearInterval(t),e(lg("Login window closed")))}),1e3)})))])]);case 1:return dg(i=s.sent())?[2,i]:[2,cg({state:(a=new URLSearchParams(i.value.data)).get("state"),code:a.get("code")})]}var c}))}))}var Sg='\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>',kg='<div class="cv-spinner"></div>';function Cg(e){var n=Hc();return t.createElement(zu,{target:n,disableVendorPrefixes:!0},t.createElement(uh,null,e.children))}function Tg(e){var n=e.children,o=t.useRef(null),i=r(null),s=i[0],c=i[1];return a((function(){if(null!==o.current){var e,t=function(e){try{return e.attachShadow({mode:"open"})}catch(e){return null}}(o.current);Ng(null!=(e=t)?e:document.head,'@import url(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}small{font-size:80%}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{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}}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.bg-brand-500{--bg-opacity:1;background-color:#0af;background-color:rgba(0,170,255,var(--bg-opacity))}.bg-ui-0{--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity))}.bg-ui-400{background-color:rgba(0,34,51,.03)}.bg-ui-500{background-color:rgba(0,34,51,.05)}.bg-ui-600{background-color:rgba(0,34,51,.1)}.bg-ui-800{background-color:rgba(0,34,51,.2)}.bg-ui-900{background-color:rgba(0,34,51,.35)}.bg-ui-0-\\.8{background-color:hsla(0,0%,100%,.8)}.focus-within\\:bg-ui-400:focus-within{background-color:rgba(0,34,51,.03)}.hover\\:bg-brand-600:hover{--bg-opacity:1;background-color:#008ed5;background-color:rgba(0,142,213,var(--bg-opacity))}.hover\\:bg-ui-0:hover{--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity))}.hover\\:bg-ui-400:hover{background-color:rgba(0,34,51,.03)}.focus\\:bg-ui-500:focus,.hover\\:bg-ui-500:hover{background-color:rgba(0,34,51,.05)}.active\\:bg-brand-700:active{--bg-opacity:1;background-color:#008dd5;background-color:rgba(0,141,213,var(--bg-opacity))}.active\\:bg-ui-700:active{background-color:rgba(0,34,51,.15)}.disabled\\:bg-ui-500:disabled{background-color:rgba(0,34,51,.05)}.border-transparent{border-color:transparent}.border-error{--border-opacity:1;border-color:#f4562b;border-color:rgba(244,86,43,var(--border-opacity))}.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)}.border-ui-700{border-color:rgba(0,34,51,.15)}.hover\\:border-ui-900:hover{border-color:rgba(0,34,51,.35)}.focus\\:border-ui-700:focus{border-color:rgba(0,34,51,.15)}.focus\\:border-ui-900:focus{border-color:rgba(0,34,51,.35)}.disabled\\:border-ui-500:disabled{border-color:rgba(0,34,51,.05)}.rounded{border-radius:5px}.rounded-full{border-radius:9999px}.border-2{border-width:2px}.border{border-width:1px}.border-t{border-top-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}.cursor-wait{cursor:wait}.block{display:block}.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}.group:hover .group-hover\\:block{display:block}.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}.self-stretch{-ms-flex-item-align:stretch;align-self:stretch}.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}.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-3{height:12px}.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-16{height:64px}.h-20{height:80px}.h-32{height:128px}.h-40{height:160px}.h-2\\/4{height:50%}.h-full{height:100%}.text-xs{font-size:12px}.text-sm{font-size:14px}.text-base{font-size:16px}.text-xl{font-size:20px}.text-2xl{font-size:22px}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.m-2{margin:8px}.my-2{margin-top:8px;margin-bottom:8px}.mx-2{margin-left:8px;margin-right:8px}.my-4{margin-top:16px;margin-bottom:16px}.my-px{margin-top:1px;margin-bottom:1px}.-mx-1{margin-left:-4px;margin-right:-4px}.-my-2{margin-top:-8px;margin-bottom:-8px}.mt-1{margin-top:4px}.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}.mt-4{margin-top:16px}.mr-4{margin-right:16px}.mb-4{margin-bottom:16px}.mr-5{margin-right:20px}.mt-6{margin-top:24px}.mt-8{margin-top:32px}.mb-8{margin-bottom:32px}.mt-10{margin-top:40px}.mr-auto{margin-right:auto}.ml-auto{margin-left:auto}.ml-px{margin-left:1px}.-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}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.disabled\\:opacity-60:disabled{opacity:.6}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.overflow-y-auto{overflow-y:auto}.p-3{padding:12px}.p-4{padding:16px}.p-0\\.5{padding:2px}.py-1{padding-top:4px;padding-bottom:4px}.py-2{padding-top:8px;padding-bottom:8px}.px-2{padding-left:8px;padding-right:8px}.py-3{padding-top:12px;padding-bottom:12px}.px-3{padding-left:12px;padding-right:12px}.py-4{padding-top:16px;padding-bottom:16px}.px-4{padding-left:16px;padding-right:16px}.px-6{padding-left:24px;padding-right:24px}.py-px{padding-top:1px;padding-bottom:1px}.pr-0{padding-right:0}.pl-0{padding-left:0}.pr-1{padding-right:4px}.pb-1{padding-bottom:4px}.pt-2{padding-top:8px}.pb-2{padding-bottom:8px}.pl-3{padding-left:12px}.pt-4{padding-top:16px}.pr-4{padding-right:16px}.pl-4{padding-left:16px}.pr-5{padding-right:20px}.pr-10{padding-right:40px}.pl-10{padding-left:40px}.placeholder-body-300::-webkit-input-placeholder{color:rgba(0,34,51,.3)}.placeholder-body-300::-moz-placeholder{color:rgba(0,34,51,.3)}.placeholder-body-300:-ms-input-placeholder{color:rgba(0,34,51,.3)}.placeholder-body-300::-ms-input-placeholder{color:rgba(0,34,51,.3)}.placeholder-body-300::placeholder{color:rgba(0,34,51,.3)}.disabled\\:pointer-events-none:disabled,.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{right:0;left:0}.inset-0,.inset-y-0{top:0;bottom:0}.top-0{top:0}.right-0{right:0}.bottom-0{bottom:0}.left-0{left:0}.top-3{top:12px}.right-3{right:12px}.right-4{right:16px}.right-px{right:1px}.left-px{left:1px}.-bottom-0\\.75{bottom:-3px}.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-outline{-webkit-box-shadow:0 0 0 2px #0af;box-shadow:0 0 0 2px #0af}.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)}.shadow-fade-left{-webkit-box-shadow:-16px 0 10px 0 #fff;box-shadow:-16px 0 10px 0 #fff}.shadow-fade-right{-webkit-box-shadow:4px 0 13px 13px #fff;box-shadow:4px 0 13px 13px #fff}.shadow-footer{-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)}.shadow-overlay{-webkit-box-shadow:0 4px 10px 0 rgba(0,34,51,.1);box-shadow:0 4px 10px 0 rgba(0,34,51,.1)}.shadow-modal{-webkit-box-shadow:0 2px 12px 0 rgba(0,34,51,.1);box-shadow:0 2px 12px 0 rgba(0,34,51,.1)}.active\\:shadow-inner:active{-webkit-box-shadow:inset 0 1px 3px 0 rgba(0,34,51,.1);box-shadow:inset 0 1px 3px 0 rgba(0,34,51,.1)}.active\\:shadow-fade-left:active{-webkit-box-shadow:-16px 0 10px 0 #fff;box-shadow:-16px 0 10px 0 #fff}.active\\:shadow-fade-right:active{-webkit-box-shadow:4px 0 13px 13px #fff;box-shadow:4px 0 13px 13px #fff}.fill-current{fill:currentColor}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-error{--text-opacity:1;color:#f4562b;color:rgba(244,86,43,var(--text-opacity))}.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)}.text-ui-0{--text-opacity:1;color:#fff;color:rgba(255,255,255,var(--text-opacity))}.focus-within\\:text-body-400:focus-within{color:rgba(0,34,51,.5)}.hover\\:text-body-400:hover{color:rgba(0,34,51,.5)}.active\\:text-body-500:active,.focus\\:text-body-500:focus,.hover\\:text-body-500:hover{color:rgba(0,34,51,.8)}.disabled\\:text-body-300:disabled{color:rgba(0,34,51,.3)}.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}.invisible{visibility:hidden}.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-80{width:320px}.w-2\\/4{width:50%}.w-full{width:100%}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.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-shadow{-webkit-transition-property:-webkit-box-shadow;transition-property:-webkit-box-shadow;transition-property:box-shadow;transition-property:box-shadow,-webkit-box-shadow}.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-shadow{-webkit-transition:-webkit-box-shadow .1s linear;transition:-webkit-box-shadow .1s linear;transition:box-shadow .1s linear;transition:box-shadow .1s linear,-webkit-box-shadow .1s linear}.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}.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;-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}.flip-y{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.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}.group:hover .group-hover\\:fade-in{-webkit-animation:fade-in .15s ease-out;animation:fade-in .15s ease-out}.animation-duration-500{-webkit-animation-duration:.5s;animation-duration:.5s}.selected-outline{-webkit-box-shadow:0 0 0 2px #0af;box-shadow:0 0 0 2px #0af}.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%}}.cbx{border-radius:3px;--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity));-webkit-box-shadow:inset 0 0 0 1px rgba(0,34,51,.1),inset 0 1px 2px 0 rgba(0,34,51,.15);box-shadow:inset 0 0 0 1px rgba(0,34,51,.1),inset 0 1px 2px 0 rgba(0,34,51,.15);position:relative;-ms-flex-negative:0;flex-shrink:0;height:13px;-webkit-transition:background-color .15s linear;transition:background-color .15s linear;width:13px}.cbx svg{position:absolute;top:2px;left:2px;height:8px;width:10px;fill:none;-webkit-filter:drop-shadow(0 1px .5px #296bb0);filter:drop-shadow(0 1px .5px #296bb0);stroke-dasharray:17;stroke-dashoffset:17;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.2;stroke:#fff;-webkit-transform:translateZ(0);transform:translateZ(0)}.cbx.cbx--checked{--bg-opacity:1;background-color:#0af;background-color:rgba(0,170,255,var(--bg-opacity))}.cbx.cbx--checked svg{stroke-dashoffset:0;-webkit-transition:stroke-dashoffset .15s linear;transition:stroke-dashoffset .15s linear}.overlay-pill{position:absolute;margin:12px;padding-left:4px;padding-right:4px;height:20px;border-radius:4px;background-color:rgba(0,34,51,.3);--text-opacity:1;color:#fff;color:rgba(255,255,255,var(--text-opacity));font-size:12px;font-weight:600;line-height:22px}.fa-lg{line-height:1.05em}.z-a-lot{z-index:999999}'),t&&Ng(document.head,Ig),c(null!=t?t:o.current)}}),[]),t.createElement("div",{ref:o,style:{display:"flex",height:"100%"},"data-testid":"root"},s&&t.createElement(jc,{value:s},t.createElement(Cg,null,m(n,s))))}function Ng(e,t){var n=document.createElement("style"),r=document.createTextNode(t);n.appendChild(r),e.appendChild(n)}var Ig="\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('https://d8ejoa1fys2rk.cloudfront.net/5.0.5/includes/fonts/SourceSans/sourcesanspro-regular.woff2') format('woff2'),\n url('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(\"https://d8ejoa1fys2rk.cloudfront.net/5.0.5/includes/fonts/fontawesome-webfont.woff2?v=4.7.0\") format(\"woff2\"),\n url(\"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",Pg=n("parent");function Og(e){return"parent"===i(Pg)?t.createElement(Pg.Provider,{value:"child"},t.createElement(Tg,null,e.children)):t.createElement(t.Fragment,null,e.children)}var Ag=n(null),Bg=function(){return i(Ag)};function Fg(e){var n=e.children,i=e.isOpen,s=void 0===i||i,c=e.style,l=e.onClose,u=void 0===l?function(){}:l,d=r(null),p=d[0],f=d[1],h=o((function(){return{onClose:u}}),[u]);return a((function(){var e=document.createElement("div");return document.body.appendChild(e),f(e),function(){e.remove()}}),[]),s?t.createElement(Ag.Provider,{value:h},p&&t.createElement(t.Fragment,null,m(t.createElement(Og,null,t.createElement("div",{className:"inset-0 flex items-center p-4 z-a-lot fixed bg-ui-600 fade-in-down"},t.createElement("div",{className:"shadow-modal h-full w-full overflow-hidden rounded",style:c,"data-testid":"modal"},n))),p))):null}function Lg(e){var n=Bg();return t.createElement("div",{className:"bg-ui-0 w-full h-full flex flex-col items-center justify-center cv-root relative"},null!==n&&t.createElement(Jc,{onClick:n.onClose,title:Zc("Close"),className:"absolute top-3 right-4"},t.createElement(_m,{className:"w-6 h-6 -mx-1"})),t.createElement("div",{className:"flex flex-col"},e.children))}function zg(){return t.createElement("label",{htmlFor:"account-domain-input",className:"text-body-400 mb-8"},Zc("Enter the portal domain"))}function Rg(){return t.createElement(t.Fragment,null,t.createElement("svg",{viewBox:"0 0 479.438 361.46",className:"w-10 mb-8"},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"},Zc("Connect your brand portal")))}function Mg(e){var n=Gc("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 Dg(e){var n=Gc("appearance-none block h-10 w-80 border rounded text-body-500 placeholder-body-300\n\t\t focus:outline-none transition-color","invalid"===e.status?"pl-4 pr-10 border-error":"px-4 border-ui-600 hover:border-ui-900 focus:border-ui-900");return t.createElement("div",{className:"mb-4"},t.createElement("div",{className:"relative"},t.createElement("input",{id:"account-domain-input",value:e.value,className:n,placeholder:"yourdomain.bynder.com",readOnly:e.isReadOnly,autoFocus:!0,onChange:function(t){e.onChange(t.target.value)},onKeyDown:function(t){"valid"===e.status&&13===t.keyCode&&e.onSubmit()}}),"validating"===e.status&&t.createElement("div",{role:"alert","aria-live":"polite"},t.createElement(Mg,{className:"absolute top-0 right-0 mr-3 h-full"})),"invalid"===e.status&&t.createElement(_m,{className:"absolute top-0 right-3 w-6 h-full text-error fade-in cursor-pointer",onClick:function(){e.onChange("")}})),"invalid"===e.status&&t.createElement("div",{className:"text-error text-sm mt-1 fade-in"},Zc("This portal domain does not exist")))}function jg(e){return t.createElement(Jc,{kind:"Primary",className:"justify-center relative",isDisabled:!e.isValidDomain||e.isSubmitting,onClick:e.onClick,testId:"login-button"},e.isSubmitting?t.createElement("div",{role:"alert","aria-live":"polite"},t.createElement(Mg,{className:"text-ui-0"})):Zc("Connect"))}function Hg(e){return t.createElement(Lg,null,t.createElement(Rg,null),t.createElement(zg,null),t.createElement(Dg,{value:e.domainValue,isReadOnly:!1===e.isEditable||e.isSubmitting,onChange:e.onChangeDomain,onSubmit:e.onSubmit,status:e.domainStatus}),t.createElement(jg,{isValidDomain:"valid"===e.domainStatus,isSubmitting:e.isSubmitting,onClick:e.onSubmit}))}var Ug=function(e){function n(t){var n=e.call(this,t)||this;return n.state={error:null},n}return ui(n,e),n.getDerivedStateFromError=function(e){return{error:e}},n.prototype.render=function(){var e=this;return this.state.error?t.createElement(Xh,{error:this.state.error,onRetry:function(){return e.setState({error:null})}}):this.props.children},n}(t.Component);function Vg(){return t.createElement("div",{role:"alert","aria-live":"polite",className:"bg-ui-0 w-full h-full"}," ",t.createElement(Mg,null)," ")}var Kg=n(null);function $g(e){var n,o,i,s,l;el(null!==(n=e.language)&&void 0!==n?n:"en_US");var u=function(){var e,t,n=r(void 0),o=n[0],i=n[1],s=r(null!==(e=localStorage.getItem("cvrt"))&&void 0!==e?e:void 0),l=s[0],u=s[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(e.accessToken),u(e.refreshToken),f(e.accountDomain),g(w(e.accessToken,e.refreshToken)),localStorage.setItem("cvrt",e.refreshToken),localStorage.setItem("cvad",e.accountDomain),v.current&&clearTimeout(v.current),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=l),void 0!==e?"authenticated":void 0!==t?"refreshing":"not-authenticated"}return a((function(){return function(){v.current&&clearTimeout(v.current)}}),[]),a((function(){void 0===o&&l&&p&&(g("refreshing"),function(e,t){return fi(this,void 0,void 0,(function(){var n,r,o,i;return mi(this,(function(a){switch(a.label){case 0:n=xg(t)+"token",r=new URLSearchParams({client_id:vg,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,lg("Failed to fetch refresh token: "+o.status)];case 3:return[2,cg({accessToken:(i=a.sent()).access_token,expiresIn:i.expires_in})];case 4:return[2,lg(a.sent().toString())];case 5:return[2]}}))}))}(l,p).then((function(e){ug(e)?y({accessToken:e.value.accessToken,expiresIn:e.value.expiresIn,refreshToken:l,accountDomain:p}):(Mc.error(e.error),b())})))}),[o,l,p]),[{accessToken:o,accountDomain:p,status:h},y,b]}(),d=u[0],p=u[1],f=u[2],m=function(e){var t=r(null!=e?e:""),n=t[0],o=t[1],i=r(e?"validating":"empty"),s=i[0],l=i[1],u=c();return a((function(){if(n){var e=!1;return u.current=setTimeout((function(){(function(e){return fi(this,void 0,void 0,(function(){var t,n,r;return mi(this,(function(o){switch(o.label){case 0:t=pg(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||(l("invalid"!==t?"valid":"invalid"),localStorage.setItem("cvp",t))}))}),1e3),function(){e=!0}}}),[n]),[n,function(e){u.current&&clearTimeout(u.current),o(e),l(""===e?"empty":"validating")},s]}(null!==(i=null===(o=e.portal)||void 0===o?void 0:o.url)&&void 0!==i?i:d.accountDomain),h=m[0],g=m[1],v=m[2],y=r(!1),b=y[0],w=y[1];a((function(){var e=!0;return!0===b&&function(e){return fi(this,void 0,void 0,(function(){var t,n,r,o,i,a,s,c,l,u;return mi(this,(function(d){switch(d.label){case 0:t=gg(),d.label=1;case 1:return d.trys.push([1,3,,4]),[4,hg(t)];case 2:return n=d.sent(),[3,4];case 3:return[2,lg(d.sent().toString())];case 4:return p=n,r=btoa(String.fromCharCode.apply(null,Array.from(new Uint8Array(p)))).replace(/\+/g,"-").replace(/\//g,"_").replace(/[=]+$/,""),o=gg(),[4,Eg(function(e,t,n){var r={client_id:vg,code_challenge:e,code_challenge_method:"S256",redirect_uri:yg,response_type:"code",scope:bg.join(" "),domain:"",state:t},o="auth?";"webdam"===_g()&&(o="authorize?",delete r.scope,r.domain=n);var i=new URLSearchParams(r);return xg(n)+o+i}(r,o,e))];case 5:return dg(i=d.sent())?[2,i]:i.value.state!==o||null===i.value.code?[2,lg("Error logging in")]:[4,wg(i.value.code,t,e)];case 6:return dg(a=d.sent())?[2,a]:(s=a.value,c=s.refreshToken,l=s.accessToken,u=s.expiresIn,[2,cg({accessToken:l,expiresIn:parseFloat(u),refreshToken:c})])}var p}))}))}(h).then((function(t){e&&(function(e){ug(e)?p(di(di({},e.value),{accountDomain:h})):Mc.error(e.error)}(t),w(!1))})),function(){e=!1}}),[b,h]);var x=di(di({},d),{logout:function(){f()}});switch(d.status){case"authenticated":return t.createElement(Kg.Provider,{value:x},e.children);case"not-authenticated":return t.createElement(Og,null,t.createElement(Hg,{domainValue:h,domainStatus:v,onChangeDomain:g,isSubmitting:b,isEditable:null===(l=null===(s=e.portal)||void 0===s?void 0:s.editable)||void 0===l||l,onSubmit:function(){w(!0)}}));case"refreshing":return t.createElement(Vg,null)}}var Wg=function(e){return t.createElement(Ug,null,t.createElement($g,di({},e)))},qg=function(){return i(Kg)};function Yg(e){var t,n,o,i,s=this,c=qg(),l=r({tag:"Loading",value:null}),u=l[0],d=l[1],p=!1,f=function(t){return fi(s,void 0,void 0,(function(){var n;return mi(this,(function(r){switch(r.label){case 0:return d((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),[4,mg("\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 \nfragment DisplayAsset on Asset {\n __typename\n id\n derivatives {\n thumbnail\n }\n extensions\n name\n url\n isArchived\n isWatermarked\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}\n",Xg(e,null!=t?t:null),c)];case 1:return n=r.sent(),p||(dg(n)?d({tag:"Failure",value:n.error}):m(n,t)),[2]}}))}))},m=function(e,t){Gg(u)&&t?d((function(t){var n,r,o=null!==(r=null===(n=Gg(t))||void 0===n?void 0:n.nodes)&&void 0!==r?r:[];return{tag:"Loaded",value:{searchAssets:{assets:di(di({},e.value.searchAssets.assets),{nodes:yi(o,e.value.searchAssets.assets.nodes)})}}}})):d({tag:"Loaded",value:e.value})};return a((function(){return f(),function(){p=!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,e.collection,e.orderBy,e.searchTerm,e.language]),{data:u,executeQuery:function(){return f()},isLoading:!u||"Loading"===u.tag,loadMore:function(){var e;return f(null===(e=Gg(u))||void 0===e?void 0:e.pageInfo.endCursor)},hasNextPage:!!(null===(i=Gg(u))||void 0===i?void 0:i.pageInfo.hasNextPage)}}var Xg=function(e,t){var n,r,o,i,a,s=e.filter,c=e.predefinedFilter,l=e.collection,u=e.orderBy,d=e.allAssetTypes,p=e.searchTerm,f=e.language,m=(null===(n=null==s?void 0:s.assetTypes)||void 0===n?void 0:n.length)?s.assetTypes:null==c?void 0:c.assetType_in;return{orderBy:u,filter:{collectionId:null!==(r=null==l?void 0:l.id)&&void 0!==r?r:null==c?void 0:c.collectionId,assetType_in:null!=m?m:d,metapropertyOptionId_in:null!==(o=Jg(null==s?void 0:s.metaproperties))&&void 0!==o?o:null==c?void 0:c.metapropertyOptionId_in,searchTerm:null!==(i=null!=p?p:null==c?void 0:c.searchTerm)&&void 0!==i?i:null,tagNames_in:null!==(a=null==s?void 0:s.tags)&&void 0!==a?a:null==c?void 0:c.tagNames_in,isLimitedUse:!1},after:t,language:f}},Gg=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},Jg=function(e){return e?e.map((function(e){return e.id})):null};function Zg(e,t,n){return fi(this,void 0,void 0,(function(){var r;return mi(this,(function(o){switch(o.label){case 0:return[4,mg("\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 \nfragment DisplayAsset on Asset {\n __typename\n id\n derivatives {\n thumbnail\n }\n extensions\n name\n url\n isArchived\n isWatermarked\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}",{ids:e,language:n},t)];case 1:return dg(r=o.sent())?[2,r]:[2,cg(r.value.nodes)]}}))}))}var Qg=n(null);function ev(e){var n=r([]),i=n[0],s=n[1],c=r(),l=c[0],u=c[1],d=function(e){var t=this,n=r([]),o=n[0],i=n[1],s=Kc(),c=s.selectionMode,l=s.language,u=qg(),d=!1;return a((function(){if(e){var n=null!=e?e:[];"MultiSelect"!==c&&(n=n[0]?[n[0]]:[]),r=n,fi(t,void 0,void 0,(function(){var e,t,n;return mi(this,(function(o){switch(o.label){case 0:return r.length?[4,Zg(r,u,l)]:[3,2];case 1:e=o.sent(),d||dg(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}(l),p=Wc();function f(){s([])}function m(e){s((function(t){var n=e.filter((function(e){return!tv(t,e)}));return yi(t,n.map((function(e){return{type:"asset",value:e}})))}))}function h(e){var t;"MultiSelect"!==p?(t=e[0],i.some((function(e){return e.value.id===t.id}))?s([]):s([{type:"asset",value:t}])):s((function(t){var n=e.filter((function(e){return!tv(t,e)})),r=e.filter((function(e){return tv(t,e)}));return yi(t.filter((function(e){return!r.some((function(t){return t.id===e.value.id}))})),n.map((function(e){return{type:"asset",value:e}})))}))}function g(e){s((function(t){return tv(t,e)?t.filter((function(t){return t.value.id!==e.id})):yi(t,[{type:"collection",value:e}])}))}a((function(){var t;u(null===(t=e.preselectedAssetIds)||void 0===t?void 0:t.map((function(e){return window.btoa("(Asset_id "+e+")")})))}),[e.preselectedAssetIds]),a((function(){m(d)}),[d]);var v=o((function(){return{selection:i,preselectedAssetIds:l,clear:f,selectAssets:m,toggleAssets:h,toggleCollection:g}}),[i]);return t.createElement(Qg.Provider,{value:v},e.children)}function tv(e,t){return e.some((function(e){return e.value.id===t.id}))}function nv(){var e=i(Qg);if(null===e)throw new Error("useSelection must be used with a SelectionProvider");return e}function rv(e){var n=e.url,o=e.cover,i=void 0===o||o,a=e.alt,s=r(!1),c=s[0],l=s[1],u=Gc("select-none w-full h-full",i?"object-cover":"object-contain",c?"fade-in animation-duration-500":"invisible"),d=null!=n?n:"data:,";return t.createElement("img",{className:u,src:d,draggable:!1,onLoad:function(){return l(!0)},alt:a,"data-testid":"card-image"})}function ov(e){var n=e.urls,r=e.totalCount,o=e.alt;return t.createElement(t.Fragment,null,0===n.length&&t.createElement(rv,{alt:o}),1===n.length&&t.createElement(rv,{url:n[0],cover:!1,alt:o}),2===n.length&&t.createElement(t.Fragment,null,t.createElement("div",{className:"w-2/4 h-full"}," ",t.createElement(rv,{url:n[0],alt:o})," "),t.createElement("div",{className:"w-2/4 h-full"}," ",t.createElement(rv,{url:n[1],alt:o})," ")),3===n.length&&t.createElement(t.Fragment,null,t.createElement("div",{className:"w-2/4 h-full"}," ",t.createElement(rv,{url:n[0],alt:o})," "),t.createElement("div",{className:"flex flex-col w-2/4"},t.createElement("div",{className:"h-2/4 bg-ui-500 fade-in"}," ",t.createElement(rv,{url:n[1],alt:o})," "),t.createElement("div",{className:"h-2/4 bg-ui-600 fade-in"}," ",t.createElement(rv,{url:n[2],alt:o})," "))),n.length>=4&&t.createElement(t.Fragment,null,t.createElement("div",{className:"flex flex-col w-2/4"},t.createElement("div",{className:"h-2/4"}," ",t.createElement(rv,{url:n[0],alt:o})," "),t.createElement("div",{className:"h-2/4 bg-ui-400 fade-in"}," ",t.createElement(rv,{url:n[1],alt:o})," ")),t.createElement("div",{className:"flex flex-col w-2/4"},t.createElement("div",{className:"h-2/4 bg-ui-500 fade-in"}," ",t.createElement(rv,{url:n[2],alt:o})," "),t.createElement("div",{className:"h-2/4 bg-ui-600 fade-in"}," ",t.createElement(rv,{url:n[3],alt:o})," "))),r>4&&t.createElement("div",{className:"absolute text-ui-0 right-0 bottom-0 text-xl h-2/4 w-2/4 text-center\n\t\t\t\t\t flex items-center justify-center bg-ui-900"},"+",r-4))}function iv(e){var n=e.className,r=e.collection,o=e.fadeIn,i=void 0===o||o,a=e.isSelected,s=e.style,c=Wc(),l=xi()[1],u=nv(),d=Kc().hideExternalAccess,p=t.createElement(t.Fragment,null,t.createElement("div",{className:"truncate"}," ",r.name," "),t.createElement("div",{className:"mt-2 text-sm text-body-400"},tg(r.assetCount,Zc("{} asset"),Zc("{} assets"))));return t.createElement(rg,{id:r.id,style:s,title:p,alt:r.name,className:Gc(n,a&&"shadow-outline"),fadeIn:i,stacked:!0,onClick:function(){return l({page:"collection",collection:r})},"aria-selected":a},t.createElement(t.Fragment,null,t.createElement(ov,{urls:r.thumbnailUrls,totalCount:r.assetCount,alt:r.name}),a&&t.createElement("div",{className:"absolute h-full w-full bg-ui-800 fade-in"}),!d&&t.createElement(sg,{className:"absolute left-0 top-0 ml-3 mt-3 rounded hidden\n\t\t\t\t\t\t group-hover:block group-hover:fade-in",title:Zc("Open in new tab"),onClick:function(e){e.stopPropagation(),window.open(r.url,"_blank")}},t.createElement(sm,{className:"w-6 h-6"})),"MultiSelect"===c&&t.createElement(sg,{active:a,title:Zc(a?"Deselect":"Select"),className:Gc("absolute right-0 top-0 mr-3 mt-3 rounded-full",!a&&"hidden group-hover:block group-hover:fade-in"),onClick:function(e){e.stopPropagation(),u.toggleCollection(r)}},t.createElement(bm,{className:"w-6 h-6"}))))}function av(e){var t=r(void 0),n=t[0],o=t[1],i=c(void 0);function s(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(){s();var e=function(){return s()};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e),i.current&&cancelAnimationFrame(i.current)}}),[e]),{dimensions:n,remeasure:s}}function sv(e,t){if(!e)throw new Error("Invariant failed")}function cv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lv(){return(lv=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)}function uv(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var dv=new Map,pv=new Map,fv=new Map,mv=0;function hv(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(dv.has(e)&&sv(!1),e){var s=function(e){return e?fv.has(e)?fv.get(e):(mv+=1,fv.set(e,mv.toString()),fv.get(e)+"_"):""}(o)+(i?a.toString()+"_"+i:a.toString()),c=pv.get(s);c||(c=new IntersectionObserver(vv,n),s&&pv.set(s,c));var l={callback:t,element:e,inView:!1,observerId:s,observer:c,thresholds:c.thresholds||(Array.isArray(a)?a:[a])};return dv.set(e,l),c.observe(e),l}}function gv(e){if(e){var t=dv.get(e);if(t){var n=t.observerId,r=t.observer,o=r.root;r.unobserve(e);var i=!1,a=!1;n&&dv.forEach((function(t,r){r!==e&&(t.observerId===n&&(i=!0,a=!0),t.observer.root===o&&(a=!0))})),!a&&o&&fv.delete(o),r&&!i&&r.disconnect(),dv.delete(e)}}}function vv(e){e.forEach((function(e){var t=e.isIntersecting,n=e.intersectionRatio,r=e.target,o=dv.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 yv=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 cv(uv(t=e.call.apply(e,[this].concat(r))||this),"state",{inView:!1,entry:void 0}),cv(uv(t),"node",null),cv(uv(t),"handleNode",(function(e){t.node&&(gv(t.node),e||t.props.triggerOnce||t.setState({inView:!1,entry:void 0})),t.node=e||null,t.observeNode()})),cv(uv(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||sv(!1)},o.componentDidUpdate=function(e,t){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold||(gv(this.node),this.observeNode()),t.inView!==this.state.inView&&this.state.inView&&this.props.triggerOnce&&(gv(this.node),this.node=null)},o.componentWillUnmount=function(){this.node&&(gv(this.node),this.node=null)},o.observeNode=function(){if(this.node){var e=this.props,t=e.threshold,n=e.root,r=e.rootMargin;hv(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,s=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 u(i||a||"div",lv({ref:this.handleNode},s),o)},r}(p);cv(yv,"displayName","InView"),cv(yv,"defaultProps",{threshold:0,triggerOnce:!1});var bv={inView:!1,entry:void 0};function wv(e){var n=function(e){void 0===e&&(e={});var t=c(),n=r(bv),o=n[0],i=n[1];return[d((function(n){t.current&&(gv(t.current),e.triggerOnce||i(bv)),n&&hv(n,(function(t,r){i({inView:t,entry:r}),t&&e.triggerOnce&&gv(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(Mg,{className:Gc(!i&&"hidden")})))}function xv(){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 _v(e){return t.createElement("div",{className:" w-full h-full flex flex-col items-center justify-center"},t.createElement("div",{className:"bg-ui-400 rounded-full w-40 h-40 flex items-center justify-center"},t.createElement(xv,null),t.createElement(cm,{className:"absolute mt-1 ml-px text-body-300",style:{width:36,height:36}})),t.createElement("h1",{className:"mt-6 text-2xl"},Zc("No results found")),t.createElement("span",{className:"mt-4 text-body-400"},Zc("Try adjusting the filter to find assets.")),t.createElement(Jc,{kind:"Primary",title:Zc("Reset filters"),className:"mt-8",onClick:e.onReset},Zc("Reset filters")))}function Ev(e){var n,o,i=r(null),a=i[0],s=i[1],c=av(a).dimensions,l=nv().selection.filter((function(e){return"collection"===e.type})).map((function(e){return e.value.id})),u=Ci().setSearch,d=e.connection,p=d.data,f=d.isLoading,m=d.loadMore,h=d.hasNextPage,g=void 0!==c?Math.ceil(c.height/184):0,v=void 0!==c?Math.round((c.width-32)/204):0;return t.createElement("div",{role:"listbox",className:"card-list",ref:function(e){s(e)}},("Failure"===p.tag||"Loading"===p.tag&&!p.value)&&t.createElement(ig,{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(_v,{onReset:function(){return u("collections","")}}),("Loading"===p.tag&&!!p.value||"Loaded"===p.tag&&p.value.collections.nodes.length>0)&&t.createElement(wv,{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(iv,{key:e.id,isSelected:l.includes(e.id),collection:e,fadeIn:n>=g*v})}))))}function Sv(){var e=Ti("collections"),n=e.value,o=e.setIsLoading,i=function(e){var t,n=this,o=qg(),i=r({tag:"Loading",value:null}),s=i[0],c=i[1],l=!1,u=function(t){return fi(n,void 0,void 0,(function(){var n,r;return mi(this,(function(i){switch(i.label){case 0:return c((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),[4,mg("\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}",di(di({},e),{searchTerm:null!==(r=e.searchTerm)&&void 0!==r?r:null,after:null!=t?t:null}),o)];case 1:return n=i.sent(),l||(dg(n)?c({tag:"Failure",value:n.error}):d(n,t)),[2]}}))}))},d=function(e,t){p()&&t?c((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:di(di({},e.value.collections),{nodes:yi(o,e.value.collections.nodes)})}}})):c({tag:"Loaded",value:e.value})},p=function(e){var t,n=null!=e?e:s;if("Failure"!==n.tag)return null===(t=n.value)||void 0===t?void 0:t.collections};return a((function(){return u(),function(){l=!0}}),[e.searchTerm,e.orderBy]),{data:s,executeQuery:function(){return u()},isLoading:!s||"Loading"===s.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:ci("collections")[0]});return a((function(){i.isLoading||o(!1)}),[i.isLoading]),"Failure"===i.data.tag?t.createElement(Xh,{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"},tg(i.data.value.collections.totalCount,Zc("{} collection"),Zc("{} collections"))),!i.data.value&&t.createElement("span",{className:"flex-grow"}),t.createElement(eg,{options:["CREATED_AT","NAME"]}),t.createElement(Gh,null)),t.createElement(Ev,{connection:i}))}var kv=n(null);function Cv(e){var n=r([]),i=n[0],a=n[1],s=r([]),c=s[0],l=s[1],u=r([]),d=u[0],p=u[1],f=r({}),m=f[0],h=f[1];function g(e){a((function(t){return Tv(t,e)}))}function v(e){a((function(t){return Nv(t,e)}))}function y(e){l((function(t){return Tv(t,e.id)})),h((function(t){var n;return di(di({},t),((n={})[e.id]=e,n))}))}function b(e){l((function(t){return Nv(t,e.id)})),h((function(t){var n=t,r=e.id;return pi(n,["symbol"==typeof r?r:r+""])}))}function w(e){p((function(t){return Tv(t,e)}))}function x(e){p((function(t){return Nv(t,e)}))}function _(){a([]),l([]),h({}),p([])}var E=c.map((function(e){return m[e]})),S=o((function(){return{assetTypes:i,metaproperties:E,tags:d,addAssetType:g,removeAssetType:v,addMetaproperty:y,removeMetaproperty:b,addTag:w,removeTag:x,clear:_}}),[i,E,d]);return t.createElement(kv.Provider,{value:S},e.children)}function Tv(e,t){return e.includes(t)?e:yi(e,[t])}function Nv(e,t){return e.filter((function(e){return e!==t}))}function Iv(){var e=i(kv);if(null===e)throw new Error("useAssetFilter must be used with a AssetFilterProvider");return e}function Pv(e){return Zc({AUDIO:"Audio",DOCUMENT:"Document",IMAGE:"Image",VIDEO:"Video"}[e])}function Ov(e){switch(e){case"AUDIO":return um;case"DOCUMENT":return pm;case"IMAGE":return mm;case"VIDEO":return lm}}function Av(e){return t.createElement(Jc,{kind:"FlatSm",className:Gc("pl-0 pr-0 z-20",e.isVisible?"shadow-fade-left active:shadow-fade-left":"hidden"),onClick:e.onClick,testId:"arrow-right"},t.createElement(xm,{className:"w-6 h-6"}))}function Bv(e){return t.createElement(Jc,{kind:"FlatSm",className:Gc("pl-0 pr-0 z-20",e.isVisible?"shadow-fade-right active:shadow-fade-right":"hidden"),onClick:e.onClick,testId:"arrow-left"},t.createElement(wm,{className:"w-6 h-6"}))}function Fv(e){var n=r(0),o=n[0],i=n[1],s=c(null),l=av(s.current),u=l.dimensions,d=l.remeasure,p=null!==s.current?s.current.scrollWidth-s.current.clientWidth:0,f=void 0!==u&&u.width<u.scrollWidth;a((function(){d(s.current)}),[e.children,s.current]),a((function(){f||i(0)}),[f]);var m=o>0,h=p>5&&o!==p;return t.createElement("div",{className:Gc("inline-flex flex-grow overflow-hidden",e.className)},f&&t.createElement(Bv,{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:s},t.createElement("div",{className:"transition-transform inline-flex",style:{transform:"translateX("+-o+"px)"},"data-testid":"horizontal-scrollable-el"},e.children)),f&&t.createElement(Av,{isVisible:h,onClick:function(){i((function(e){var t=Math.min(e+250,p);return t<=p-100?t:p}))}}),e.static)}function Lv(e){var n=Gc("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 ng(t,e.onClick)},role:"button",tabIndex:0,"data-testid":e["data-testid"]},e.children)}function zv(e){return t.createElement(Lv,{className:"mr-2 fade-in-down","data-testid":"selected-filter:"+e.title},e.icon,t.createElement("span",{className:"max-w-32 truncate",title:e.title},e.title),t.createElement(_m,{onClick:e.onClick,title:Zc("Remove filter"),className:"w-5 h-5 ml-1 -mr-1 text-body-300 hover:text-body-400 cursor-pointer"}))}function Rv(){var e=Iv(),n=0===e.metaproperties.length&&0===e.assetTypes.length&&0===e.tags.length?void 0:t.createElement(Jc,{kind:"FlatSm",className:"flex-shrink-0 fade-in-down",onClick:e.clear},Zc("Clear filters"));return t.createElement("div",{"data-testid":"selected-filter-list"},t.createElement(Fv,{className:"ml-2",static:n},e.assetTypes.map((function(n){var r=Ov(n);return t.createElement(zv,{key:n,onClick:function(){return e.removeAssetType(n)},title:Pv(n),icon:t.createElement(r,{className:"w-5 h-5 mr-1"})})})),e.metaproperties.map((function(n){return t.createElement(zv,{key:n.id,onClick:function(){return e.removeMetaproperty(n)},title:n.label})})),e.tags.map((function(n){return t.createElement(zv,{key:n,onClick:function(){return e.removeTag(n)},title:n})}))))}function Mv(e){var n=e.isSelected;return t.createElement(sg,{active:n,title:Zc(n?"Deselect":"Select"),className:Gc("absolute right-0 top-0 mr-3 mt-3 rounded-full",!n&&"hidden group-hover:block group-hover:fade-in"),tabIndex:-1},t.createElement(bm,{className:"w-6 h-6"}))}function Dv(e){var n=e.asset;return t.createElement(sg,{className:"absolute left-0 top-0 ml-3 mt-3 rounded hidden group-hover:block\n\t\t\t group-hover:fade-in",title:Zc("Open in new tab"),onClick:function(e){e.stopPropagation(),window.open(n.url,"_blank")}},t.createElement(sm,{className:"w-6 h-6"}))}var jv=["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 Hv(e){if(e.derivatives.thumbnail)return e.derivatives.thumbnail;var t=e.extensions[0];return jv.includes(t)?"https://d8ejoa1fys2rk.cloudfront.net/includes/img/placeholder/medium/"+t+".jpg":"aif"===t?"https://d8ejoa1fys2rk.cloudfront.net/includes/img/placeholder/medium/aiff.jpg":"m4a"===t?"https://d8ejoa1fys2rk.cloudfront.net/includes/img/placeholder/medium/m4r.jpg":"https://d8ejoa1fys2rk.cloudfront.net/includes/img/common/no-image.png"}function Uv(e){var t=e.extensions[0];return"JPG"===(null==t?void 0:t.toUpperCase())?"JPEG":null==t?void 0:t.toUpperCase()}function Vv(e){var n=e.className,o=e.fadeIn,i=void 0===o||o,s=e.asset,c=e.isSelected,l=e.isOutlined,u=e.onClick,d=e.children,p=void 0===d?null:d,f=r(),m=f[0],h=f[1],g=Kc().theme,v=(c||l)&&void 0!==(null==g?void 0:g.colorPrimary)?{boxShadow:"0 0 0 2px "+g.colorPrimary}:void 0,y=Kc().hideExternalAccess,b=function(e){return e.isArchived&&e.isWatermarked?Zc("archived")+", "+Zc("watermarked"):e.isArchived?Zc("archived"):e.isWatermarked?Zc("watermarked"):void 0}(s),w=Uv(s);return a((function(){var e,t=null===(e=s.metaproperties)||void 0===e?void 0:e.nodes.filter((function(e){return e.showInGridView||e.showInListView}));h(t)}),[s.metaproperties]),t.createElement("div",{"data-drag-select-id":s.id},t.createElement(rg,{id:s.id,style:v,title:s.name,alt:s.name,metaproperties:m,className:Gc(n,c&&"shadow-outline",l&&"selected-outline"),fadeIn:i,onClick:function(e){void 0!==u&&(e.stopPropagation(),u(s,e))},"aria-selected":c},t.createElement(rv,{url:Hv(s),cover:!1,alt:s.name}),c&&t.createElement("div",{className:"absolute h-full w-full bg-ui-800 fade-in"}),!y&&t.createElement(Dv,{asset:s}),t.createElement(Mv,{isSelected:c}),b&&t.createElement("span",{className:"overlay-pill left-0 bottom-0 max-w-32 truncate",title:b},b),w&&t.createElement("span",{className:"overlay-pill right-0 bottom-0"},w),p))}function Kv(e,t,n){var r=this,i=c(null),s=c(0),l=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;return a((function(){return m.current=!0,function(){m.current=!1}}),[]),o((function(){var e=function(e){var t=u.current,n=d.current;return u.current=d.current=null,s.current=e,p.current=f.current.apply(n,t)},n=function(e,t){h&&cancelAnimationFrame(l.current),l.current=h?requestAnimationFrame(e):setTimeout(e,t)},o=function(e){if(!m.current)return!1;var n=e-i.current,r=e-s.current;return!i.current||n>=t||n<0||y&&r>=b},a=function(t){return l.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,l=e-s.current,u=t-r,d=y?Math.min(u,b-l):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(!l.current&&m.current)return s.current=i.current,n(c,t),g?e(i.current):p.current;if(y)return n(c,t),e(i.current)}return l.current||n(c,t),p.current};return w.cancel=function(){l.current&&(h?cancelAnimationFrame(l.current):clearTimeout(l.current)),s.current=0,u.current=i.current=d.current=l.current=null},w.isPending=function(){return!!l.current},w.flush=function(){return l.current?a(Date.now()):p.current},w}),[g,y,t,b,v,h])}function $v(e,t){return e===t}function Wv(e){return"function"==typeof e?function(){return e}:e}function qv(e,t,n){var o=n&&n.equalityFn||$v,i=function(e){var t=r(Wv(e)),n=t[0],o=t[1];return[n,d((function(e){return o(Wv(e))}),[])]}(e),s=i[0],l=i[1],u=Kv(d((function(e){return l(e)}),[l]),t,n),p=c(e);return a((function(){o(p.current,e)||(u(e),p.current=e)}),[e,u,o]),[s,{cancel:u.cancel,isPending:u.isPending,flush:u.flush}]}var Yv={x:null,y:null},Xv=function(e){var n=e.dragContainer,o=e.selectionBoxCustomAttr,i=e.onSelect,s=e.onDeselect,l=e.onDragStart,u=e.onDragEnd,p=r(Yv),m=p[0],h=p[1],g=r(Yv),v=g[0],y=g[1],b=qv(v,10,{leading:!0,maxWait:10})[0],w=r(),x=w[0],_=w[1],E=Hc(),S=t.useMemo((function(){return Jv(m,b,E.querySelector(".cv-root"))}),[m,b,E]),k=qv(S,50,{leading:!1,maxWait:50})[0],C=r([]),T=C[0],N=C[1],I=ny(T),P=c(m),O=c(v),A=c(null!==P.current.x&&null!==P.current.y&&null!==O.current.x&&null!==O.current.y),B=c({shiftKey:!1,metaKey:!1});a((function(){return document.addEventListener("keydown",F,!1),document.addEventListener("keyup",F,!1),function(){document.removeEventListener("keydown",F,!1),document.removeEventListener("keyup",F,!1)}}),[]);var F=function(e){var t=e.shiftKey,n=e.metaKey,r=t||n?"inverse":"select";B.current={shiftKey:t,metaKey:n},A.current&&r!==x&&_(r)};a((function(){var e;return"function"==typeof l&&A.current?(F(B.current),l(null!=x?x:"select")):"function"!=typeof u||A.current||(e=setTimeout((function(){return u(null!=x?x:"select")}),10)),function(){return clearTimeout(e)}}),[A.current,x]);var L=function(e){P.current=e,h(e),R()},z=function(e){O.current=e,y(e),R()},R=function(){A.current=null!==P.current.x&&null!==P.current.y&&null!==O.current.x&&null!==O.current.y},M=d((function(e){var t,n,r=e.clientY,o=e.clientX,i=null!==P.current.x,a=Math.abs(null!==(t=P.current.x)&&void 0!==t?t:0-o)>=1||Math.abs(null!==(n=P.current.y)&&void 0!==n?n:0-r)>=1;i&&a&&z({x:o,y:r})}),[]),D=d((function(){E.removeEventListener("mousemove",M),E.removeEventListener("mouseup",D),L(Yv),z(Yv)}),[M,E]),j=d((function(e){var t=e.clientY,n=e.clientX;0===e.button&&(E.addEventListener("mousemove",M),E.addEventListener("mouseup",D),L({x:n,y:t}))}),[M,D,E]);a((function(){var e=E.querySelector(n);return e&&(ey(E),e.addEventListener("mousedown",j)),function(){e&&(e.removeEventListener("mousedown",j),ty(E))}}),[n,j,M,D,E]),a((function(){var e=E.querySelectorAll("[data-drag-select-id]"),t=Array.from(e).reduce((function(e,t){var n=Qv(t);return t instanceof HTMLElement&&Zv(n,k)&&t.dataset.dragSelectId&&e.push(t.dataset.dragSelectId),e}),[]);N(t)}),[k,E]),a((function(){if(I&&I!==T&&A.current){var e=T.filter((function(e){return!I.includes(e)})),t=I.filter((function(e){return!T.includes(e)}));e.length&&i(e),t.length&&s(t)}}),[T,I,i,s,A]);var H=E.querySelector("#drag-select-container");return A.current&&H?f.createPortal(t.createElement("div",di({},o,{style:o.style?di(di(di({},Gv),o.style),S):di(di({},Gv),S),"data-testid":"drag-selection"})),H):null},Gv={position:"absolute",zIndex:100},Jv=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),s=Math.abs(t.y-e.y),c=Math.abs(o-e.x),l=r.width+r.left-i-4;return{left:i,top:a,height:s,width:c=Math.min(c,l)}},Zv=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},Qv=function(e){var t=e.getBoundingClientRect();return{left:t.left,top:t.top+window.scrollY,height:t.height,width:t.width}},ey=function(e){var t=document.createElement("div");t.id="drag-select-container",e.appendChild(t)},ty=function(e){var t=e.querySelector("#drag-select-container");t&&t.remove()},ny=function(e){var t=c();return a((function(){t.current=e})),t.current};function ry(e){var n,o=e.assets,i=e.count,a=e.hasNextPage,s=void 0!==a&&a,l=e.isLoading,u=void 0!==l&&l,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,_=void 0===x?"MultiSelect":x,E=e.theme,S=e.children,k=void 0===S?null:S,C=c(null),T=av(C.current).dimensions,N=r([]),I=N[0],P=N[1],O=r("inactive"),A=O[0],B=O[1],F=function(e,t){return void 0!==e?[1,e]:t?[Math.ceil(t.height/188),Math.round((t.width-16)/208)]:[0,0]}(i,T),L=F[0],z=F[1];function R(e){return("inverse"!==A||!w.includes(e.id)||!I.includes(e.id))&&(w.includes(e.id)||I.includes(e.id))}return t.createElement("div",{className:"flex flex-col flex-grow overflow-y-auto",ref:C,"data-drag-select-container":!0},k,t.createElement("div",{className:"card-list",role:"listbox"},"Loading"===o.tag&&!o.value&&t.createElement(ig,{rows:L,columns:z}),"Loaded"===o.tag&&0===o.value.length&&y,("Loading"===o.tag&&o.value||"Loaded"===o.tag)&&t.createElement(t.Fragment,null,"MultiSelect"===_&&t.createElement(Xv,{dragContainer:"[data-drag-select-container]",selectionBoxCustomAttr:{className:"rounded border-2 border-brand-500",style:{zIndex:1e6,borderColor:null==E?void 0:E.colorPrimary}},onSelect:function(e){P((function(t){return yi(t,e)}))},onDeselect:function(e){P((function(t){return t.filter((function(t){return!e.includes(t)}))}))},onDragStart:function(e){B(e)},onDragEnd:function(e){if(B("inactive"),I.length){var t=[];I.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),P([])}}}),t.createElement(wv,{hasNextPage:s,isLoading:u,loadMore:p},null===(n=o.value)||void 0===n?void 0:n.map((function(e,n){return t.createElement(Vv,{key:e.id,isSelected:R(e),isOutlined:R(e),asset:e,fadeIn:n>=L*z,onClick:function(e,t){return function(e,t){var n,r,i;if(t.shiftKey&&"MultiSelect"===_&&(null===(n=o.value)||void 0===n?void 0:n.length)){var a=o.value.findIndex((function(t){return t.id===e.id})),s=null===(r=o.value)||void 0===r?void 0:r.findIndex((function(e){return e.id===w[w.length-1]}));m(s<a?null===(i=o.value)||void 0===i?void 0:i.slice(s,a+1):o.value.slice(a,s+1))}else g([e])}(e,t)}})}))))))}function oy(e){var n,r,o,i,s=e.connection,c=s.data,l=s.isLoading,u=s.loadMore,d=s.hasNextPage,p=s.executeQuery,f=Ci().setIsLoading,m=Kc(),h=nv().selection.filter((function(e){return"asset"===e.type})).map((function(e){return e.value.id})),g=nv(),v=g.selectAssets,y=g.toggleAssets,b=Ci().setSearch,w=Iv();if(a((function(){l||f(!1)}),[l]),"Failure"===c.tag)return t.createElement(Xh,{error:new Error(c.value),onRetry:p});var x=null!==(i=null===(o=null===(r=null===(n=c.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(ry,{assets:iy(c),count:x,isLoading:l,loadMore:u,hasNextPage:d,theme:m.theme,selectionMode:m.selectionMode,selectedAssetIds:h,onSelect:v,onToggle:y,emptyStateElement:t.createElement(_v,{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},tg(x,Zc("{} asset"),Zc("{} assets"))),e.showActiveFilters&&t.createElement(Rv,null),t.createElement(eg,null),t.createElement(Gh,null)))}function iy(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 ay(e){var n=Ti("collection").value,r=xi()[1],o=ci("collection")[0],i=Kc(),a=i.assetTypes,s=i.language,c=Yg({collection:e.collection,allAssetTypes:a,searchTerm:n,orderBy:o,language:s});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"},Zc("Collections")," / "),t.createElement("span",null," ",e.collection.name," ")),t.createElement(oy,{connection:c,totalCount:e.collection.assetCount}))}function sy(e){var n=e.className,r=e.onClick,o=e.isChecked,i=void 0!==o&&o,a=e.title;return t.createElement("div",{className:Gc("cbx",i&&"cbx--checked",n),title:a,role:"checkbox","aria-checked":i,tabIndex:0,onClick:r,onKeyDown:function(e){return function(e,t){t&&" "===e.key&&(e.preventDefault(),t(e))}(e,r)}},t.createElement("svg",{viewBox:"0 0 12 11"},t.createElement("polyline",{points:"1 6.29411765 4.5 10 11 1"})))}function cy(e){var n=void 0!==e.selectedOptionIds&&e.selectedOptionIds.includes(e.metapropertyOption.id),r=Gc("w-full text-left flex items-center py-2 px-4 text-sm hover:bg-ui-400 focus-within:bg-ui-400 transition-color",!n&&"text-body-400",!n&&e.isLoading?"cursor-wait cursor-default":"cursor-pointer");function o(){n?e.onRemoveOption():e.isLoading||e.onAddOption()}return t.createElement("li",null,t.createElement("button",{type:"button",className:r,onClick:o,role:"menuitemradio","aria-checked":n,tabIndex:-1,"data-testid":"metaproperty-option"},t.createElement(sy,{isChecked:n,onClick:o,className:"mr-2"}),t.createElement("span",{className:"flex-grow mr-4 my-px truncate fade-in-down",title:e.metapropertyOption.label},e.metapropertyOption.label),t.createElement("span",{className:"fade-in-down"},e.metapropertyOption.assetCount)))}function ly(e){return t.createElement("div",{className:"pt-4 w-56","data-testid":"metaproperty-filter-content"},t.createElement("h1",{className:"mb-2 px-4 truncate",title:e.metaproperty.label},e.metaproperty.label),t.createElement("ul",{className:"overflow-y-auto pb-1 max-h-400"},e.metaproperty.options.map((function(n){return t.createElement(cy,{key:n.id,metapropertyOption:n,selectedOptionIds:e.selectedOptionIds,isLoading:e.isLoading,onAddOption:function(){return e.onAddOption(n)},onRemoveOption:function(){return e.onRemoveOption(n)}})}))))}function uy(e){return t.createElement("div",{className:"flex"},e.smartfilter.metaproperties.map((function(n){return t.createElement(ly,{key:n.id,metaproperty:n,selectedOptionIds:e.selectedOptionIds,isLoading:e.isLoading,onAddOption:e.onAddOption,onRemoveOption:e.onRemoveOption})})))}function dy(e){var n=Iv(),r=n.metaproperties.map((function(e){return e.id})),o=function(e){var t=function(e){return"Metaproperty"===e.__typename?1e4:e.zIndex};return yi(e).sort((function(e,n){return t(e)-t(n)}))}(e.metapropertyFilters.filter((function(e){return"Metaproperty"===e.__typename||0!==e.metaproperties.length})));return t.createElement(t.Fragment,null,o.map((function(o){return t.createElement(Zh,{key:o.id,title:t.createElement(py,{filter:o}),alt:o.label,buttonClassName:"text-sm fade-in-down"},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(Mg,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),"Metaproperty"===o.__typename?t.createElement(ly,{metaproperty:o,selectedOptionIds:r,isLoading:e.isLoading,onAddOption:n.addMetaproperty,onRemoveOption:n.removeMetaproperty}):t.createElement(uy,{smartfilter:o,selectedOptionIds:r,isLoading:e.isLoading,onAddOption:n.addMetaproperty,onRemoveOption:n.removeMetaproperty}))}))})))}function py(e){var n=e.filter;return t.createElement(t.Fragment,null,"Smartfilter"===n.__typename&&n.icon&&t.createElement("i",{className:Gc("fa fa-lg mr-2",n.icon)}),t.createElement("span",{className:"max-w-24 truncate","data-testid":"metaproperty-filter"},n.label))}function fy(e){var n=Iv(),r=n.tags.includes(e.tag.name),o=Gc("mb-2 mr-2",r&&"bg-ui-500",e.isLoading&&!r?"cursor-default":"cursor-pointer");return t.createElement(Lv,{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 my(e){var n=yi(e.tags).sort((function(e,t){return t.assetCount-e.assetCount}));return t.createElement(Zh,{title:t.createElement(hy,null),className:"pt-4 pb-1 overflow-hidden max-w-600",buttonClassName:"text-sm fade-in-down"},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(Mg,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),t.createElement("h1",{className:"px-4 mb-4"}," ",Zc("Tags")," "),t.createElement("div",{className:"flex flex-wrap px-4 -mr-2"},n.map((function(n){return t.createElement(fy,{key:n.id,tag:n,isLoading:e.isLoading})}))))}))}function hy(){return t.createElement(t.Fragment,null,t.createElement(am,{className:"mr-2 inline w-6 h-6"}),t.createElement("span",{"data-testid":"tags-filter"},Zc("Tags")))}function gy(e){var n=Iv(),r=n.assetTypes.includes(e.type),o=Gc("flex items-center py-2 px-4 text-sm hover:bg-ui-400 transition-color",!r&&"text-body-400",!r&&e.isLoading?"cursor-wait cursor-default":"cursor-pointer"),i=Ov(e.type);return t.createElement("li",{className:o,onClick:function(){r?n.removeAssetType(e.type):n.addAssetType(e.type)},"data-testid":Pv(e.type)+"-filter"},t.createElement(sy,{isChecked:r,className:"mr-2"}),t.createElement(i,{className:"w-6 h-6 mr-2 -my-2"}),t.createElement("span",{className:"flex-grow mr-2 my-px"},Pv(e.type)),t.createElement("span",{className:"fade-in-down"},e.count))}function vy(e){var n=Kc().assetTypes,r=n.filter((function(t){return by(e.count,t)>0}));return 0===n.length||0===r.length?null:t.createElement(Zh,{title:t.createElement(yy,null),className:"pt-4 pb-1",buttonClassName:"text-sm fade-in-down"},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(Mg,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),t.createElement("h1",{className:"px-4 mb-4"},Zc("Type")),t.createElement("ul",null,r.map((function(n){return t.createElement(gy,{key:n,type:n,count:by(e.count,n),isLoading:e.isLoading})}))))}))}function yy(){return t.createElement(t.Fragment,null,t.createElement(gm,{className:"mr-2 inline w-6 h-6"}),Zc("Advanced"))}function by(e,t){switch(t){case"AUDIO":return e.audio;case"DOCUMENT":return e.document;case"IMAGE":return e.image;case"VIDEO":return e.video}}function wy(){var e=Iv(),n=Ti("assets").value,o=Kc(),i=o.assetTypes,s=o.language;el(s);var c=function(e){var t=this,n=qg(),o=r({tag:"Loading",value:null}),i=o[0],s=o[1],c=!1;return a((function(){return fi(t,void 0,void 0,(function(){var t,r,o,i,a,l;return mi(this,(function(u){switch(u.label){case 0:return s((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,mg("\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 }\n }\n }\n }",{filter:{assetType_in:null!==(l=t.assetTypes)&&void 0!==l?l:o,collectionId:null,isLimitedUse:!1,metapropertyOptionId_in:t.metaproperties.map((function(e){return e.id})),searchTerm:r,tagNames_in:t.tags},language:i},n)];case 1:return a=u.sent(),c||(dg(a)?s({tag:"Failure",value:a.error}):s({tag:"Loaded",value:a.value})),[2]}}))})),function(){c=!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:s}),l=c.data,u=c.isLoading;if("Failure"===l.tag||!l.value)return t.createElement("nav",{className:"flex justify-between bg-ui-0 px-4 py-2 z-20"},t.createElement(xy,null));var d=l.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(Fv,{className:"h-8"},p&&p.nodes.length>0&&t.createElement(dy,{metapropertyFilters:p.nodes,isLoading:u}),f&&f.nodes.length>0&&t.createElement(my,{tags:f.nodes,isLoading:u}),t.createElement(vy,{isLoading:u,count:m.assetType})))}function xy(){return t.createElement("div",{className:"inline-flex items-center"},t.createElement(og,{className:"h-4 ml-2 mr-2 my-2",width:100}),t.createElement(og,{className:"h-4 ml-2 mr-2 my-2",width:80}),t.createElement(og,{className:"h-4 ml-2 mr-2 my-2",width:110}))}function _y(){var e=xi()[0],n=Ti(e.page),o=n.value,i=n.isLoading,s=n.setSearch,c=Kv(s,500),l=r(o),u=l[0],d=l[1];a((function(){d(o)}),[e,o]),a((function(){return function(){c.flush()}}),[e,c]);var p="collections"===e.page?Zc("Search for collections"):Zc("Search for assets"),f=!i&&""!==o;return t.createElement("div",{className:"w-full inline-flex relative text-body-300 focus-within:text-body-400\n\t\t\t transition-color",style:{maxWidth:"440px"}},t.createElement("div",{className:"pointer-events-none absolute inset-y-0 left-0 pl-3 flex items-center"},t.createElement(cm,{className:"fill-current pointer-events-none w-6 h-6"})),t.createElement("input",{value:u,className:"appearance-none block w-full border border-ui-600 rounded py-2 pr-4\n\t\t\t\t pl-10 text-body-500 placeholder-body-300 focus:outline-none\n\t\t\t\t hover:border-ui-900 focus:border-ui-900 transition-color",placeholder:p,onChange:function(e){return t=e.target.value,d(t),void c(t);var t},"data-testid":"search-input"}),i&&t.createElement("div",{role:"alert","aria-live":"polite"},t.createElement(Mg,{className:"absolute right-0 mr-3 h-full"})),f&&t.createElement("button",{"data-testid":"clear-search-input",className:"h-full absolute right-3 focus:outline-none text-body-300\n\t\t\t\t\t hover:text-body-400 fade-in",onClick:function(){d(""),s("")},type:"button"},t.createElement(ym,{className:"w-6 h-6"})))}function Ey(){var e=xi(),n=e[0],r=e[1];return t.createElement("div",{className:"inline-flex mr-auto"},t.createElement(Jc,{className:"assets"===n.page?"bg-ui-500 text-body-500":void 0,onClick:function(){return r({page:"assets"})}},Zc("Assets")),t.createElement(Jc,{className:"collections"===n.page?"bg-ui-500 text-body-500":void 0,onClick:function(){return r({page:"collections"})}},Zc("Collections")))}function Sy(){var e,n="authenticated"===(null===(e=i(Kg))||void 0===e?void 0:e.status)||!1,r=Bg(),o=qg(),a=void 0!==Kc().assetFilter;return n||r||!a?t.createElement("nav",{className:"flex justify-between bg-ui-0 px-4 py-3 z-30"},!a&&t.createElement(t.Fragment,null,t.createElement(Ey,null),t.createElement(_y,null)),t.createElement("div",{className:"inline-flex ml-auto"},n&&t.createElement(Jc,{onClick:function(){return null==o?void 0:o.logout()}},t.createElement("span",{className:"mr-1"}," ",Zc("Log out")," "),t.createElement(im,{className:"w-6 h-6 -mr-1"})),r&&t.createElement(Jc,{onClick:function(){return r.onClose()},title:Zc("Close")},t.createElement(_m,{className:"w-6 h-6 -mx-1"})))):null}function ky(){var e=Iv(),n=e.assetTypes,r=e.metaproperties,o=e.tags,i=Ti("assets").value,a=ci("assets")[0],s=Kc(),c=s.assetFilter,l=s.assetTypes,u=s.language,d=Yg(void 0===c?{filter:{assetTypes:n,metaproperties:r,tags:o},searchTerm:i,orderBy:a,allAssetTypes:l,language:u}:{predefinedFilter:c,orderBy:a,language:u});return t.createElement(oy,{connection:d,showActiveFilters:void 0===c})}function Cy(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"),fi(this,void 0,void 0,(function(){var r;return mi(this,(function(o){switch(o.label){case 0:return[4,mg("\n fragment AddMediaAsset on Asset {\n "+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 dg(r=o.sent())?[2,r]:[2,cg(r.value.node)]}}))}))}function Ty(e){return e.replace(/([a-z0-9])([A-Z])/g,(function(e,t,n){return t+" "+n}))}function Ny(e){var n=r({status:"Loading"}),o=n[0],i=n[1],s=qg(),c=Kc().assetFieldSelection;return a((function(){i({status:"Loading"}),e.onChange(void 0),function(e,t,n){return fi(this,void 0,void 0,(function(){var r;return mi(this,(function(o){switch(o.label){case 0:return[4,Cy(e.id,t,n)];case 1:return[2,ug(r=o.sent())&&r.value.files?cg(r.value.files):lg("Error retrieving asset files")]}}))}))}(e.asset,s,c).then((function(t){if(dg(t))return Mc.error(t.error),void i({status:"Failure"});var n=t.value,r=function(e){return"transformBaseUrl"in e?"transformBaseUrl":"original"in e?"original":"webImage"}(n);i({status:"Data",files:n,key:r}),e.onChange(n[r])}))}),[e.asset.id,s,c]),t.createElement(Zh,{title:t.createElement(Iy,{state:o}),buttonKind:"Secondary",className:"py-2",buttonClassName:"mr-4 capitalize",direction:"Up",disabled:"Loading"===o.status},(function(n){return"Data"===o.status&&t.createElement("ul",{className:"overflow-y-auto pb-1 max-h-400"},Object.entries(o.files).map((function(r){var a,s=r[0],c=r[1];return t.createElement(Qh,{key:s,className:"px-3 py-2",selected:o.key===s,onClick:function(){!function(t){i((function(n){return"Data"!==n.status?n:(e.onChange(n.files[t]),di(di({},n),{key:t}))}))}(s),n()}},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 justify-center font-semibold text-body-400 text-xs\n\t\t\t\t\t\t\t\t\t uppercase","data-testid":"file-extension"},"transformBaseUrl"===s?t.createElement(om,{className:"w-6 h-6"}):null!==(a=function(e){if(e)return function(e){var t=e.match(/filename=(.*?)&/);if(t){var n=/(?:\.([^.]+))?$/.exec(t[1]);if(n&&n[1])return n[1]}}(e)||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)}(c.url))&&void 0!==a?a:t.createElement(fm,{className:"w-6 h-6"})),t.createElement("div",{className:"flex-grow w-40"},t.createElement("div",{className:"capitalize text-body-500 truncate"},Ty(s)),t.createElement("div",{className:"text-sm"},c.width&&c.height&&c.width+" x "+c.height+" px",c.width&&c.height&&c.fileSize&&t.createElement("span",{className:"mx-2"},"•"),c.fileSize&&function(e){if(e<1)return"0 Bytes";var t=Math.floor(Math.log(e)/Math.log(1024));return(e/Math.pow(1024,t)).toFixed(1)+" "+{0:"Bytes",1:"kB",2:"MB",3:"GB",4:"TB",5:"PB",6:"EB",7:"ZB",8:"YB"}[t]}(c.fileSize))))})))}))}function Iy(e){var n=e.state;return"Loading"===n.status?t.createElement(og,{width:50,className:"h-4"}):"Data"===n.status?t.createElement(t.Fragment,null,Ty(n.key)):t.createElement(t.Fragment,null,"Error")}function Py(e){var n=e.status,r=e.numberOfSelectedItems;return"Done"===n?t.createElement(bm,{"data-testid":"check",className:"w-6 h-6"}):"Error"===n?t.createElement(t.Fragment,null,Zc("Retry")):"Loading"===n?t.createElement(Mg,{className:"text-ui-0"}):t.createElement(t.Fragment,null,tg(r,Zc("Add asset"),Zc("Add assets")))}function Oy(e){var n,o=Kc(),i=o.assetFieldSelection,s=o.onSuccess,l=o.selectionMode,u=nv().preselectedAssetIds,d=qg(),p=c(!0),f=r("SingleSelectFile"===l?{status:"WaitingForFileSelection"}:{status:"Ready"}),m=f[0],h=f[1];function g(e,t){if(dg(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)})),s(n,{selectedFile:t})}catch(e){Mc.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"===l&&"asset"===(null===(n=e.selection[0])||void 0===n?void 0:n.type)&&t.createElement(Ny,{asset:e.selection[0].value,onChange:function(e){h(void 0===e?{status:"WaitingForFileSelection"}:{status:"ReadyWithFile",file:e})}}),t.createElement(Jc,{kind:"Primary",className:"relative",isDisabled:"Loading"===m.status||"WaitingForFileSelection"===m.status,onClick:function(){var t,n="ReadyWithFile"===m.status?m.file:void 0;h({status:"Loading"}),"MultiSelect"!==l&&"asset"===(null===(t=e.selection[0])||void 0===t?void 0:t.type)?Cy(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"),fi(this,void 0,void 0,(function(){var r,o,i,a,s,c,l,u,d,p,f,m;return mi(this,(function(h){switch(h.label){case 0:return r="\n fragment AddMediaAsset on Asset {\n "+n+"\n }\n\n query getAssetsById($ids: [ID!]!) {\n nodes(ids: $ids) {\n __typename\n id\n ...on Asset {\n ...AddMediaAsset\n files\n }\n ...on Collection {\n assets {\n nodes {\n __typename\n id\n ...AddMediaAsset\n files\n }\n }\n }\n }\n }",o={ids:e.map((function(e){return e.value.id}))},[4,mg(r,o,t)];case 1:if(dg(i=h.sent()))return[2,i];for(a=[],s=0,c=i.value.nodes;s<c.length;s++)"Collection"===(l=c[s]).__typename?a.push.apply(a,l.assets.nodes):a.push(l);for(u=new Set,d=[],p=0,f=a;p<f.length;p++)m=f[p],u.has(m.id)||(d.push(m),u.add(m.id));return[2,cg(d)]}}))}))}(e.selection,d,i).then((function(e){g(e,n)}))},testId:"add-button"},t.createElement(Py,{status:m.status,numberOfSelectedItems:e.selection.length})))}function Ay(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(sy,{isChecked:!0,className:"ml-2 mr-5 cursor-pointer",onClick:r,title:Zc("Deselect")}),o)}function By(e){var n=e.asset,r=nv();return t.createElement(Ay,{title:n.name,onRemove:function(){return r.toggleAssets([n])}},t.createElement("img",{alt:n.name,className:"w-10 h-10 mr-3 select-none object-cover bg-ui-500 rounded",src:Hv(n),draggable:!1}),t.createElement("span",{className:"w-40 mr-2 truncate"},n.name),Uv(n)&&t.createElement("span",{className:"flex-grow text-body-400 text-sm text-right"},Uv(n)))}function Fy(e){var n=e.collection,r=nv();return t.createElement(Ay,{title:n.name,onRemove:function(){return r.toggleCollection(n)}},t.createElement("div",{className:"w-10 h-10 mr-3 bg-ui-500 rounded flex items-center justify-center"},t.createElement(hm,{className:"w-6 h-6 text-body-500 opacity-75"})),t.createElement("span",{className:"w-40 mr-2 truncate"},n.name),t.createElement("span",{className:"flex-grow text-body-400 text-sm text-right"},tg(n.assetCount,Zc("{} asset"),Zc("{} assets"))))}function Ly(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(By,{key:e.value.id,asset:e.value}):t.createElement(Fy,{key:e.value.id,collection:e.value})})))}function zy(){var e=nv(),n=e.selection,r=e.clear,o=n.length;return 0===o?null:t.createElement("div",{className:"flex flex-shrink-0 h-16 z-10 px-6 items-center shadow-footer fade-in-down","data-testid":"selection-footer"},t.createElement("span",{className:"flex-grow flex items-center"},t.createElement(Zh,{buttonKind:"Secondary",direction:"Up",title:Zc("View {} selected").replace("{}",o.toString())},(function(){return t.createElement(Ly,{selection:n})})),t.createElement(Jc,{className:"ml-1",onClick:r},Zc("Clear selection"))),t.createElement(Oy,{selection:n}))}var Ry=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function My(e){var t=as().getClient(),n=e||t&&t.getOptions();return!!n&&("tracesSampleRate"in n||"tracesSampler"in n)}function Dy(e){var t=(e||as()).getScope();return t&&t.getTransaction()}function jy(e){return e/1e3}function Hy(){var e=Dy();e&&(oa.log("[Tracing] Transaction: internal_error -> Global error occured"),e.setStatus("internal_error"))}var Uy=["heartbeatFailed","idleTimeout","documentHidden"],Vy=function(){function e(e){void 0===e&&(e=1e3),this.spans=[],this._maxlen=e}return e.prototype.add=function(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)},e}(),Ky=function(e){function t(t,n){var r=e.call(this,t)||this;return r._measurements={},r._hub=as(),Ki(n,rs)&&(r._hub=n),r.name=t.name||"",r.metadata=t.metadata||{},r._trimEnd=t.trimEnd,r.transaction=r,r}return ui(t,e),t.prototype.setName=function(e){this.name=e},t.prototype.initSpanRecorder=function(e){void 0===e&&(e=1e3),this.spanRecorder||(this.spanRecorder=new Vy(e)),this.spanRecorder.add(this)},t.prototype.setMeasurements=function(e){this._measurements=di({},e)},t.prototype.setMetadata=function(e){this.metadata=di(di({},this.metadata),e)},t.prototype.finish=function(t){var n=this;if(void 0===this.endTimestamp){if(this.name||(oa.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),e.prototype.finish.call(this,t),!0===this.sampled){var r=this.spanRecorder?this.spanRecorder.spans.filter((function(e){return e!==n&&e.endTimestamp})):[];this._trimEnd&&r.length>0&&(this.endTimestamp=r.reduce((function(e,t){return e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e})).endTimestamp);var o={contexts:{trace:this.getTraceContext()},spans:r,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:this.metadata};return Object.keys(this._measurements).length>0&&(oa.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),o.measurements=this._measurements),oa.log("[Tracing] Finishing "+this.op+" transaction: "+this.name+"."),this._hub.captureEvent(o)}oa.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.");var i=this._hub.getClient(),a=i&&i.getTransport&&i.getTransport();a&&a.recordLostEvent&&a.recordLostEvent("sample_rate","transaction")}},t.prototype.toContext=function(){var t=e.prototype.toContext.call(this);return ba(di(di({},t),{name:this.name,trimEnd:this._trimEnd}))},t.prototype.updateWithContext=function(t){var n;return e.prototype.updateWithContext.call(this,t),this.name=null!=(n=t.name)?n:"",this._trimEnd=t.trimEnd,this},t}(function(){function e(e){if(this.traceId=za(),this.spanId=za().substring(16),this.startTimestamp=Ja(),this.tags={},this.data={},!e)return this;e.traceId&&(this.traceId=e.traceId),e.spanId&&(this.spanId=e.spanId),e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.data&&(this.data=e.data),e.tags&&(this.tags=e.tags),e.status&&(this.status=e.status),e.startTimestamp&&(this.startTimestamp=e.startTimestamp),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}return e.prototype.child=function(e){return this.startChild(e)},e.prototype.startChild=function(t){var n=new e(di(di({},t),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));return n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,n},e.prototype.setTag=function(e,t){var n;return this.tags=di(di({},this.tags),((n={})[e]=t,n)),this},e.prototype.setData=function(e,t){var n;return this.data=di(di({},this.data),((n={})[e]=t,n)),this},e.prototype.setStatus=function(e){return this.status=e,this},e.prototype.setHttpStatus=function(e){this.setTag("http.status_code",String(e));var t=function(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(e);return"unknown_error"!==t&&this.setStatus(t),this},e.prototype.isSuccess=function(){return"ok"===this.status},e.prototype.finish=function(e){this.endTimestamp="number"==typeof e?e:Ja()},e.prototype.toTraceparent=function(){var e="";return void 0!==this.sampled&&(e=this.sampled?"-1":"-0"),this.traceId+"-"+this.spanId+e},e.prototype.toContext=function(){return ba({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})},e.prototype.updateWithContext=function(e){var t,n,r,o,i;return this.data=null!=(t=e.data)?t:{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=null!=(n=e.spanId)?n:this.spanId,this.startTimestamp=null!=(r=e.startTimestamp)?r:this.startTimestamp,this.status=e.status,this.tags=null!=(o=e.tags)?o:{},this.traceId=null!=(i=e.traceId)?i:this.traceId,this},e.prototype.getTraceContext=function(){return ba({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})},e.prototype.toJSON=function(){return ba({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})},e}()),$y=function(e){function t(t,n,r,o){void 0===r&&(r="");var i=e.call(this,o)||this;return i._pushActivity=t,i._popActivity=n,i.transactionSpanId=r,i}return ui(t,e),t.prototype.add=function(t){var n=this;t.spanId!==this.transactionSpanId&&(t.finish=function(e){t.endTimestamp="number"==typeof e?e:Ja(),n._popActivity(t.spanId)},void 0===t.endTimestamp&&this._pushActivity(t.spanId)),e.prototype.add.call(this,t)},t}(Vy),Wy=function(e){function t(t,n,r,o){void 0===r&&(r=1e3),void 0===o&&(o=!1);var i=e.call(this,t,n)||this;return i._idleHub=n,i._idleTimeout=r,i._onScope=o,i.activities={},i._heartbeatCounter=0,i._finished=!1,i._beforeFinishCallbacks=[],n&&o&&(qy(n),oa.log("Setting idle transaction on scope. Span ID: "+i.spanId),n.configureScope((function(e){return e.setSpan(i)}))),i._initTimeout=setTimeout((function(){i._finished||i.finish()}),i._idleTimeout),i}return ui(t,e),t.prototype.finish=function(t){var n,r,o=this;if(void 0===t&&(t=Ja()),this._finished=!0,this.activities={},this.spanRecorder){oa.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op);try{for(var i=hi(this._beforeFinishCallbacks),a=i.next();!a.done;a=i.next())(0,a.value)(this,t)}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}this.spanRecorder.spans=this.spanRecorder.spans.filter((function(e){if(e.spanId===o.spanId)return!0;e.endTimestamp||(e.endTimestamp=t,e.setStatus("cancelled"),oa.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));var n=e.startTimestamp<t;return n||oa.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(e,void 0,2)),n})),oa.log("[Tracing] flushing IdleTransaction")}else oa.log("[Tracing] No active IdleTransaction");return this._onScope&&qy(this._idleHub),e.prototype.finish.call(this,t)},t.prototype.registerBeforeFinishCallback=function(e){this._beforeFinishCallbacks.push(e)},t.prototype.initSpanRecorder=function(e){var t=this;this.spanRecorder||(this.spanRecorder=new $y((function(e){t._finished||t._pushActivity(e)}),(function(e){t._finished||t._popActivity(e)}),this.spanId,e),oa.log("Starting heartbeat"),this._pingHeartbeat()),this.spanRecorder.add(this)},t.prototype._pushActivity=function(e){this._initTimeout&&(clearTimeout(this._initTimeout),this._initTimeout=void 0),oa.log("[Tracing] pushActivity: "+e),this.activities[e]=!0,oa.log("[Tracing] new activities count",Object.keys(this.activities).length)},t.prototype._popActivity=function(e){var t=this;if(this.activities[e]&&(oa.log("[Tracing] popActivity "+e),delete this.activities[e],oa.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){var n=this._idleTimeout,r=Ja()+n/1e3;setTimeout((function(){t._finished||(t.setTag("finishReason",Uy[1]),t.finish(r))}),n)}},t.prototype._beat=function(){if(!this._finished){var e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter+=1:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?(oa.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this.setTag("finishReason",Uy[0]),this.finish()):this._pingHeartbeat()}},t.prototype._pingHeartbeat=function(){var e=this;oa.log("pinging Heartbeat -> current counter: "+this._heartbeatCounter),setTimeout((function(){e._beat()}),5e3)},t}(Ky);function qy(e){if(e){var t=e.getScope();t&&t.getTransaction()&&t.setSpan(void 0)}}function Yy(e,t,n){return My(t)?void 0!==e.sampled?(e.setMetadata({transactionSampling:{method:"explicitly_set"}}),e):("function"==typeof t.tracesSampler?(o=t.tracesSampler(n),e.setMetadata({transactionSampling:{method:"client_sampler",rate:Number(o)}})):void 0!==n.parentSampled?(o=n.parentSampled,e.setMetadata({transactionSampling:{method:"inheritance"}})):(o=t.tracesSampleRate,e.setMetadata({transactionSampling:{method:"client_rate",rate:Number(o)}})),r=o,(isNaN(r)||"number"!=typeof r&&"boolean"!=typeof r?(oa.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got "+JSON.stringify(r)+" of type "+JSON.stringify(typeof r)+"."),0):!(r<0||r>1)||(oa.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got "+r+"."),0))?o?(e.sampled=Math.random()<o,e.sampled?(oa.log("[Tracing] starting "+e.op+" transaction - "+e.name),e):(oa.log("[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = "+Number(o)+")"),e)):(oa.log("[Tracing] Discarding transaction because "+("function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),e.sampled=!1,e):(oa.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)):(e.sampled=!1,e);var r,o}var Xy=Ai(),Gy=function(e,t,n){var r;return function(o){t.value>=0&&(o||n)&&(t.delta=t.value-(r||0),(t.delta||void 0===r)&&(r=t.value,e(t)))}},Jy=function(e,t){return{name:e,value:null!=t?t:-1,delta:0,entries:[],id:"v2-"+Date.now()+"-"+(Math.floor(8999999999999*Math.random())+1e12)}},Zy=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},Qy=function(e,t){var n=function(r){"pagehide"!==r.type&&"hidden"!==Ai().document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},eb=-1,tb=function(){return eb<0&&(eb="hidden"===Ai().document.visibilityState?0:1/0,Qy((function(e){var t=e.timeStamp;eb=t}),!0)),{get firstHiddenTime(){return eb}}},nb={},rb=Ai(),ob=function(){function e(e){void 0===e&&(e=!1),this._reportAllChanges=e,this._measurements={},this._performanceCursor=0,!Ii()&&rb&&rb.performance&&rb.document&&(rb.performance.mark&&rb.performance.mark("sentry-tracing-init"),this._trackCLS(),this._trackLCP(),this._trackFID())}return e.prototype.addPerformanceEntries=function(e){var t=this;if(rb&&rb.performance&&rb.performance.getEntries&&Za){oa.log("[Tracing] Adding & adjusting spans using Performance API");var n,r,o=jy(Za);if(rb.performance.getEntries().slice(this._performanceCursor).forEach((function(i){var a=jy(i.startTime),s=jy(i.duration);if(!("navigation"===e.op&&o+a<e.startTimestamp))switch(i.entryType){case"navigation":!function(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((function(r){ib(e,t,r,n)})),ib(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),ib(e,t,"fetch",n,"cache","domainLookupStart"),ib(e,t,"domainLookup",n,"DNS"),function(e,t,n){ab(e,{op:"browser",description:"request",startTimestamp:n+jy(t.requestStart),endTimestamp:n+jy(t.responseEnd)}),ab(e,{op:"browser",description:"response",startTimestamp:n+jy(t.responseStart),endTimestamp:n+jy(t.responseEnd)})}(e,t,n)}(e,i,o),n=o+jy(i.responseStart),r=o+jy(i.requestStart);break;case"mark":case"paint":case"measure":var c=function(e,t,n,r,o){var i=o+n,a=i+r;return ab(e,{description:t.name,endTimestamp:a,op:t.entryType,startTimestamp:i}),i}(e,i,a,s,o),l=tb(),u=i.startTime<l.firstHiddenTime;"first-paint"===i.name&&u&&(oa.log("[Measurements] Adding FP"),t._measurements.fp={value:i.startTime},t._measurements["mark.fp"]={value:c}),"first-contentful-paint"===i.name&&u&&(oa.log("[Measurements] Adding FCP"),t._measurements.fcp={value:i.startTime},t._measurements["mark.fcp"]={value:c});break;case"resource":var d=i.name.replace(rb.location.origin,"");!function(e,t,n,r,o,i){if("xmlhttprequest"!==t.initiatorType&&"fetch"!==t.initiatorType){var a={};"transferSize"in t&&(a["Transfer Size"]=t.transferSize),"encodedBodySize"in t&&(a["Encoded Body Size"]=t.encodedBodySize),"decodedBodySize"in t&&(a["Decoded Body Size"]=t.decodedBodySize);var s=i+r;ab(e,{description:n,endTimestamp:s+o,op:t.initiatorType?"resource."+t.initiatorType:"resource",startTimestamp:s,data:a})}}(e,i,d,a,s,o)}})),this._performanceCursor=Math.max(performance.getEntries().length-1,0),this._trackNavigator(e),"pageload"===e.op){var i=jy(Za);"number"==typeof n&&(oa.log("[Measurements] Adding TTFB"),this._measurements.ttfb={value:1e3*(n-e.startTimestamp)},"number"==typeof r&&r<=n&&(this._measurements["ttfb.requestTime"]={value:1e3*(n-r)})),["fcp","fp","lcp"].forEach((function(n){if(t._measurements[n]&&!(i>=e.startTimestamp)){var r=t._measurements[n].value,o=i+jy(r),a=Math.abs(1e3*(o-e.startTimestamp)),s=a-r;oa.log("[Measurements] Normalized "+n+" from "+r+" to "+a+" ("+s+")"),t._measurements[n].value=a}})),this._measurements["mark.fid"]&&this._measurements.fid&&ab(e,{description:"first input delay",endTimestamp:this._measurements["mark.fid"].value+jy(this._measurements.fid.value),op:"web.vitals",startTimestamp:this._measurements["mark.fid"].value}),"fcp"in this._measurements||delete this._measurements.cls,e.setMeasurements(this._measurements),function(e,t,n){t&&(oa.log("[Measurements] Adding LCP Data"),t.element&&e.setTag("lcp.element",$i(t.element)),t.id&&e.setTag("lcp.id",t.id),t.url&&e.setTag("lcp.url",t.url.trim().slice(0,200)),e.setTag("lcp.size",t.size)),n&&n.sources&&(oa.log("[Measurements] Adding CLS Data"),n.sources.forEach((function(t,n){return e.setTag("cls.source."+(n+1),$i(t.node))})))}(e,this._lcpEntry,this._clsEntry),e.setTag("sentry_reportAllChanges",this._reportAllChanges)}}},e.prototype._trackNavigator=function(e){var t=rb.navigator;if(t){var n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),sb(n.rtt)&&(this._measurements["connection.rtt"]={value:n.rtt}),sb(n.downlink)&&(this._measurements["connection.downlink"]={value:n.downlink})),sb(t.deviceMemory)&&e.setTag("deviceMemory",String(t.deviceMemory)),sb(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}},e.prototype._trackCLS=function(){var e,t,n,r,o,i,a=this;t=Jy("CLS",0),n=0,r=[],(i=Zy("layout-shift",o=function(o){if(o&&!o.hadRecentInput){var i=r[0],a=r[r.length-1];n&&0!==r.length&&o.startTime-a.startTime<1e3&&o.startTime-i.startTime<5e3?(n+=o.value,r.push(o)):(n=o.value,r=[o]),n>t.value&&(t.value=n,t.entries=r,e&&e())}}))&&(e=Gy((function(e){var t=e.entries.pop();t&&(oa.log("[Measurements] Adding CLS"),a._measurements.cls={value:e.value},a._clsEntry=t)}),t,void 0),Qy((function(){i.takeRecords().map(o),e(!0)})))},e.prototype._trackLCP=function(){var e=this;!function(t,n){var r,o=tb(),i=Jy("LCP"),a=function(e){var t=e.startTime;t<o.firstHiddenTime&&(i.value=t,i.entries.push(e)),r&&r()},s=Zy("largest-contentful-paint",a);if(s){r=Gy((function(t){var n=t.entries.pop();if(n){var r=jy(Za),o=jy(n.startTime);oa.log("[Measurements] Adding LCP"),e._measurements.lcp={value:t.value},e._measurements["mark.lcp"]={value:r+o},e._lcpEntry=n}}),i,n);var c=function(){nb[i.id]||(s.takeRecords().map(a),s.disconnect(),nb[i.id]=!0,r(!0))};["keydown","click"].forEach((function(e){addEventListener(e,c,{once:!0,capture:!0})})),Qy(c,!0)}}(0,this._reportAllChanges)},e.prototype._trackFID=function(){var e,t,n,r,o,i=this;t=tb(),n=Jy("FID"),(o=Zy("first-input",r=function(r){e&&r.startTime<t.firstHiddenTime&&(n.value=r.processingStart-r.startTime,n.entries.push(r),e(!0))}))&&(e=Gy((function(e){var t=e.entries.pop();if(t){var n=jy(Za),r=jy(t.startTime);oa.log("[Measurements] Adding FID"),i._measurements.fid={value:e.value},i._measurements["mark.fid"]={value:n+r}}}),n,void 0),Qy((function(){o.takeRecords().map(r),o.disconnect()}),!0))},e}();function ib(e,t,n,r,o,i){var a=i?t[i]:t[n+"End"],s=t[n+"Start"];s&&a&&ab(e,{op:"browser",description:null!=o?o:n,startTimestamp:r+jy(s),endTimestamp:r+jy(a)})}function ab(e,t){var n=t.startTimestamp,r=pi(t,["startTimestamp"]);return n&&e.startTimestamp>n&&(e.startTimestamp=n),e.startChild(di({startTimestamp:n},r))}function sb(e){return"number"==typeof e&&isFinite(e)}var cb={traceFetch:!0,traceXHR:!0,tracingOrigins:["localhost",/^\//]};var lb,ub=Ai(),db=di({idleTimeout:1e3,markBackgroundTransactions:!0,maxTransactionDuration:600,routingInstrumentation:function(e,t,n){if(void 0===t&&(t=!0),void 0===n&&(n=!0),ub&&ub.location){var r,o=ub.location.href;t&&(r=e({name:ub.location.pathname,op:"pageload"})),n&&Ia("history",(function(t){var n=t.to,i=t.from;void 0===i&&o&&-1!==o.indexOf(n)?o=void 0:i!==n&&(o=void 0,r&&(oa.log("[Tracing] Finishing current transaction with op: "+r.op),r.finish()),r=e({name:ub.location.pathname,op:"navigation"}))}))}else oa.warn("Could not initialize routing instrumentation due to invalid location")},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0},cb),pb=function(){function e(t){this.name=e.id,this._emitOptionsWarning=!1,this._configuredIdleTimeout=void 0;var n=cb.tracingOrigins;t&&(this._configuredIdleTimeout=t.idleTimeout,t.tracingOrigins&&Array.isArray(t.tracingOrigins)&&0!==t.tracingOrigins.length?n=t.tracingOrigins:this._emitOptionsWarning=!0),this.options=di(di(di({},db),t),{tracingOrigins:n});var r=this.options._metricOptions;this._metrics=new ob(r&&r._reportAllChanges)}return e.prototype.setupOnce=function(e,t){var n=this;this._getCurrentHub=t,this._emitOptionsWarning&&(oa.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),oa.warn("[Tracing] We added a reasonable default for you: "+cb.tracingOrigins));var r=this.options,o=r.routingInstrumentation,i=r.startTransactionOnLocationChange,a=r.startTransactionOnPageLoad,s=r.markBackgroundTransactions,c=r.traceFetch,l=r.traceXHR,u=r.tracingOrigins,d=r.shouldCreateSpanForRequest;o((function(e){return n._createRouteTransaction(e)}),a,i),s&&(Xy&&Xy.document?Xy.document.addEventListener("visibilitychange",(function(){var e=Dy();Xy.document.hidden&&e&&(oa.log("[Tracing] Transaction: cancelled -> since tab moved to the background, op: "+e.op),e.status||e.setStatus("cancelled"),e.setTag("visibilitychange","document.hidden"),e.setTag("finishReason",Uy[2]),e.finish())})):oa.warn("[Tracing] Could not set up background tab detection due to lack of global document")),function(e){var t=di(di({},cb),e),n=t.traceFetch,r=t.traceXHR,o=t.tracingOrigins,i=t.shouldCreateSpanForRequest,a={},s=function(e){if(a[e])return a[e];var t=o;return a[e]=t.some((function(t){return la(e,t)}))&&!la(e,"sentry_key"),a[e]},c=s;"function"==typeof i&&(c=function(e){return s(e)&&i(e)});var l={};n&&Ia("fetch",(function(e){!function(e,t,n){if(My()&&e.fetchData&&t(e.fetchData.url))if(e.endTimestamp){var r=e.fetchData.__span;if(!r)return;(i=n[r])&&(e.response?i.setHttpStatus(e.response.status):e.error&&i.setStatus("internal_error"),i.finish(),delete n[r])}else{var o=Dy();if(o){var i=o.startChild({data:di(di({},e.fetchData),{type:"fetch"}),description:e.fetchData.method+" "+e.fetchData.url,op:"http.client"});e.fetchData.__span=i.spanId,n[i.spanId]=i;var a=e.args[0]=e.args[0],s=e.args[1]=e.args[1]||{},c=s.headers;Ki(a,Request)&&(c=a.headers),c?"function"==typeof c.append?c.append("sentry-trace",i.toTraceparent()):c=Array.isArray(c)?vi(c,[["sentry-trace",i.toTraceparent()]]):di(di({},c),{"sentry-trace":i.toTraceparent()}):c={"sentry-trace":i.toTraceparent()},s.headers=c}}}(e,c,l)})),r&&Ia("xhr",(function(e){!function(e,t,n){if(!(!My()||e.xhr&&e.xhr.__sentry_own_request__)&&e.xhr&&e.xhr.__sentry_xhr__&&t(e.xhr.__sentry_xhr__.url)){var r=e.xhr.__sentry_xhr__;if(e.endTimestamp){var o=e.xhr.__sentry_xhr_span_id__;if(!o)return;(a=n[o])&&(a.setHttpStatus(r.status_code),a.finish(),delete n[o])}else{var i=Dy();if(i){var a=i.startChild({data:di(di({},r.data),{type:"xhr",method:r.method,url:r.url}),description:r.method+" "+r.url,op:"http.client"});if(e.xhr.__sentry_xhr_span_id__=a.spanId,n[e.xhr.__sentry_xhr_span_id__]=a,e.xhr.setRequestHeader)try{e.xhr.setRequestHeader("sentry-trace",a.toTraceparent())}catch(e){}}}}}(e,c,l)}))}({traceFetch:c,traceXHR:l,tracingOrigins:u,shouldCreateSpanForRequest:d})},e.prototype._createRouteTransaction=function(e){var t=this;if(this._getCurrentHub){var n=this.options,r=n.beforeNavigate,o=n.idleTimeout,i=n.maxTransactionDuration,a="pageload"===e.op?function(){var e,t=("sentry-trace",(e=Ai().document.querySelector("meta[name=sentry-trace]"))?e.getAttribute("content"):null);if(t)return function(e){var t=e.match(Ry);if(t){var n=void 0;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}}(t)}():void 0,s=di(di(di({},e),a),{trimEnd:!0}),c="function"==typeof r?r(s):s,l=void 0===c?di(di({},s),{sampled:!1}):c;!1===l.sampled&&oa.log("[Tracing] Will not send "+l.op+" transaction because of beforeNavigate."),oa.log("[Tracing] Starting "+l.op+" transaction on scope");var u=function(e,t,n,r,o){var i=e.getClient(),a=i&&i.getOptions()||{},s=new Wy(t,e,n,!0);return(s=Yy(s,a,di({parentSampled:t.parentSampled,transactionContext:t},o))).sampled&&s.initSpanRecorder(a._experiments&&a._experiments.maxSpans),s}(this._getCurrentHub(),l,o,0,{location:Ai().location});return u.registerBeforeFinishCallback((function(e,n){t._metrics.addPerformanceEntries(e),function(e,t,n){var r=n-t.startTimestamp;n&&(r>e||r<0)&&(t.setStatus("deadline_exceeded"),t.setTag("maxTransactionDurationExceeded","true"))}(1e3*i,e,n)})),u.setTag("idleTimeout",this._configuredIdleTimeout),u}oa.warn("[Tracing] Did not create "+e.op+" transaction because _getCurrentHub is invalid.")},e.id="BrowserTracing",e}();function fb(e){var n=e.assetFieldSelection,r=e.assetFilter,o=e.assetTypes,i=void 0===o?["IMAGE","AUDIO","VIDEO","DOCUMENT"]:o,a=e.defaultSearchTerm,s=e.language,c=void 0===s?"en_US":s,l=e.mode,u=void 0===l?"MultiSelect":l,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;el(c);var g={assetFieldSelection:n,assetFilter:r,assetTypes:i,language:c,onSuccess:p,selectionMode:u,theme:f,hideExternalAccess:m};return t.createElement(Ug,null,t.createElement(wi,null,t.createElement(si,null,t.createElement(Cv,null,t.createElement(ki,{defaultValue:a,selectionMode:g.selectionMode},t.createElement(Vc,{value:g},t.createElement(ev,{preselectedAssetIds:null!=h?h:[]},t.createElement(Og,null,t.createElement("div",{className:"cv-root cv-container"},t.createElement(Sy,null),t.createElement(mb,null),t.createElement(zy,null))))))))))}function mb(){var e=xi()[0],n=Kc().assetFilter;return t.createElement(t.Fragment,null,"assets"===e.page&&void 0===n&&t.createElement(wy,null),"assets"===e.page&&t.createElement(ky,null),"collections"===e.page&&t.createElement(Sv,null),"collection"===e.page&&t.createElement(ay,{collection:e.collection}))}(lb=os()).__SENTRY__&&(lb.__SENTRY__.extensions=lb.__SENTRY__.extensions||{},lb.__SENTRY__.extensions.startTransaction||(lb.__SENTRY__.extensions.startTransaction=function(e,t){var n=this.getClient(),r=n&&n.getOptions()||{},o=new Ky(e,this);return(o=Yy(o,r,di({parentSampled:e.parentSampled,transactionContext:e},t))).sampled&&o.initSpanRecorder(r._experiments&&r._experiments.maxSpans),o}),lb.__SENTRY__.extensions.traceHeaders||(lb.__SENTRY__.extensions.traceHeaders=function(){var e=this.getScope();if(e){var t=e.getSpan();if(t)return{"sentry-trace":t.toTraceparent()}}return{}})),Ii()&&function(){var e=os();if(e.__SENTRY__){var t={mongodb:function(){return new(Pi(module,"./integrations/node/mongo").Mongo)},mongoose:function(){return new(Pi(module,"./integrations/node/mongo").Mongo)({mongoose:!0})},mysql:function(){return new(Pi(module,"./integrations/node/mysql").Mysql)},pg:function(){return new(Pi(module,"./integrations/node/postgres").Postgres)}},n=Object.keys(t).filter((function(e){return!!function(e){var t;try{t=Pi(module,e)}catch(e){}try{var n=Pi(module,"process").cwd;t=Pi(module,n()+"/node_modules/"+e)}catch(e){}return t}(e)})).map((function(e){try{return t[e]()}catch(e){return}})).filter((function(e){return e}));n.length>0&&(e.__SENTRY__.integrations=vi(e.__SENTRY__.integrations||[],n))}}(),Ia("error",Hy),Ia("unhandledrejection",Hy),function(e){if(void 0===e&&(e={}),void 0===e.defaultIntegrations&&(e.defaultIntegrations=zc),void 0===e.release){var t=Ai();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),function(e,t){!0===t.debug&&oa.enable();var n=as(),r=n.getScope();r&&r.update(t.initialScope);var o=new e(t);n.bindClient(o)}(Lc,e),e.autoSessionTracking&&function(){if(void 0!==Ai().document){var e=as();e.captureSession&&(Rc(e),Ia("history",(function(e){var t=e.from,n=e.to;void 0!==t&&t!==n&&Rc(as())})))}else Ni()&&oa.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}()}({dsn:"https://dd74b64cc05845468f0c3654b458da29@sentry10.bynder.cloud/464",autoSessionTracking:!0,integrations:[new pb],tracesSampleRate:1,defaultIntegrations:!1});export{fb as CompactView,Wg as Login,Fg as Modal};
|