HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wpmuhibbah_err/wp-content/plugins/give/build/elementorDonationFormWidget.js
(()=>{var e={8812:(e,t,n)=>{"use strict";n.d(t,{A:()=>yr});var r=n(51609),o=n.n(r);const i=window.wp.i18n;var a=n(5556),s=n.n(a);function l(){return l=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},l.apply(this,arguments)}function u(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}var c,d,f=(c=function(e){!function(t){if("undefined"!=typeof window){var n,r=0,o=!1,i=!1,a="[iFrameSizer]",s=null,l=window.requestAnimationFrame,u={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},c={},d=null,f={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){E("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}},p={};window.jQuery&&((n=window.jQuery).fn?n.fn.iFrameResize||(n.fn.iFrameResize=function(e){return this.filter("iframe").each((function(t,n){I(n,e)})).end()}):y("","Unable to bind to jQuery, it is not fully loaded.")),e.exports=H(),window.iFrameResize=window.iFrameResize||H()}function m(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function g(e,t,n){e.addEventListener(t,n,!1)}function v(e,t,n){e.removeEventListener(t,n,!1)}function h(e){return c[e]?c[e].log:o}function b(e,t){w("log",e,t,h(e))}function y(e,t){w("info",e,t,h(e))}function E(e,t){w("warn",e,t,!0)}function w(e,t,n,r){!0===r&&"object"==typeof window.console&&console[e](function(e){return a+"["+function(e){var t="Host page: "+e;return window.top!==window.self&&(t=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),t}(e)+"]"}(t),n)}function T(e){function t(){n("Height"),n("Width"),M((function(){x(A),C(D),f("onResized",A)}),A,"init")}function n(e){var t=Number(c[D]["max"+e]),n=Number(c[D]["min"+e]),r=e.toLowerCase(),o=Number(A[r]);b(D,"Checking "+r+" is in range "+n+"-"+t),o<n&&(o=n,b(D,"Set "+r+" to min value")),o>t&&(o=t,b(D,"Set "+r+" to max value")),A[r]=""+o}function r(e){return _.substr(_.indexOf(":")+7+e)}function o(e,t){var n,r;n=function(){var n,r;F("Send Page Info","pageInfo:"+(n=document.body.getBoundingClientRect(),r=A.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:r.height,iframeWidth:r.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(r.top-n.top,10),offsetLeft:parseInt(r.left-n.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,t)},p[r=t]||(p[r]=setTimeout((function(){p[r]=null,n()}),32))}function i(e){var t=e.getBoundingClientRect();return N(D),{x:Math.floor(Number(t.left)+Number(s.x)),y:Math.floor(Number(t.top)+Number(s.y))}}function l(e){var t=e?i(A.iframe):{x:0,y:0},n={x:Number(A.width)+t.x,y:Number(A.height)+t.y};b(D,"Reposition requested from iFrame (offset x:"+t.x+" y:"+t.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](n.x,n.y):E(D,"Unable to scroll to requested position, window.parentIFrame not found"):(s=n,u(),b(D,"--"))}function u(){!1!==f("onScroll",s)?C(D):k()}function d(e){f(e,{iframe:A.iframe,screenX:A.width,screenY:A.height,type:A.type})}function f(e,t){return P(D,e,t)}var m,h,w,T,L,I,_=e.data,A={},D=null;"[iFrameResizerChild]Ready"===_?function(){for(var e in c)F("iFrame requested init",O(e),c[e].iframe,e)}():a===(""+_).substr(0,13)&&_.substr(13).split(":")[0]in c?(T=(w=_.substr(13).split(":"))[1]?parseInt(w[1],10):0,L=c[w[0]]&&c[w[0]].iframe,I=getComputedStyle(L),A={iframe:L,id:w[0],height:T+function(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}(I)+function(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}(I),width:w[2],type:w[3]},D=A.id,c[D]&&(c[D].loaded=!0),(h=A.type in{true:1,false:1,undefined:1})&&b(D,"Ignoring init message from meta parent page"),!h&&function(e){var t=!0;return c[e]||(t=!1,E(A.type+" No settings for "+e+". Message was: "+_)),t}(D)&&(b(D,"Received: "+_),m=!0,null===A.iframe&&(E(D,"IFrame ("+A.id+") not found"),m=!1),m&&function(){var t,n=e.origin,r=c[D]&&c[D].checkOrigin;if(r&&""+n!="null"&&!(r.constructor===Array?function(){var e=0,t=!1;for(b(D,"Checking connection is from allowed list of origins: "+r);e<r.length;e++)if(r[e]===n){t=!0;break}return t}():(t=c[D]&&c[D].remoteHost,b(D,"Checking connection is from: "+t),n===t)))throw new Error("Unexpected message received from: "+n+" for "+A.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(c[D]&&c[D].firstRun&&c[D]&&(c[D].firstRun=!1),A.type){case"close":S(A.iframe);break;case"message":h=r(6),b(D,"onMessage passed: {iframe: "+A.iframe.id+", message: "+h+"}"),f("onMessage",{iframe:A.iframe,message:JSON.parse(h)}),b(D,"--");break;case"mouseenter":d("onMouseEnter");break;case"mouseleave":d("onMouseLeave");break;case"autoResize":c[D].autoResize=JSON.parse(r(9));break;case"scrollTo":l(!1);break;case"scrollToOffset":l(!0);break;case"pageInfo":o(c[D]&&c[D].iframe,D),function(){function e(e,r){function i(){c[n]?o(c[n].iframe,n):t()}["scroll","resize"].forEach((function(t){b(n,e+t+" listener for sendPageInfo"),r(window,t,i)}))}function t(){e("Remove ",v)}var n=D;e("Add ",g),c[n]&&(c[n].stopPageInfo=t)}();break;case"pageInfoStop":c[D]&&c[D].stopPageInfo&&(c[D].stopPageInfo(),delete c[D].stopPageInfo);break;case"inPageLink":e=r(9),a=e.split("#")[1]||"",p=decodeURIComponent(a),(m=document.getElementById(p)||document.getElementsByName(p)[0])?(n=i(m),b(D,"Moving to in page link (#"+a+") at x: "+n.x+" y: "+n.y),s={x:n.x,y:n.y},u(),b(D,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(a):b(D,"In page link #"+a+" not found and window.parentIFrame not found"):b(D,"In page link #"+a+" not found");break;case"reset":R(A);break;case"init":t(),f("onInit",A.iframe);break;default:t()}var e,n,a,p,m,h}())):y(D,"Ignored: "+_)}function P(e,t,n){var r=null,o=null;if(c[e]){if("function"!=typeof(r=c[e][t]))throw new TypeError(t+" on iFrame["+e+"] is not a function");o=r(n)}return o}function L(e){var t=e.id;delete c[t]}function S(e){var t=e.id;if(!1!==P(t,"onClose",t)){b(t,"Removing iFrame: "+t);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){E(e)}P(t,"onClosed",t),b(t,"--"),L(e)}else b(t,"Close iframe cancelled by onClose event")}function N(e){null===s&&b(e,"Get page position: "+(s={x:window.pageXOffset!==t?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==t?window.pageYOffset:document.documentElement.scrollTop}).x+","+s.y)}function C(e){null!==s&&(window.scrollTo(s.x,s.y),b(e,"Set page position: "+s.x+","+s.y),k())}function k(){s=null}function R(e){b(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),N(e.id),M((function(){x(e),F("reset","reset",e.iframe,e.id)}),e,"reset")}function x(e){function t(t){i||"0"!==e[t]||(i=!0,b(r,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(c).forEach((function(e){!function(e){function t(t){return"0px"===(c[e]&&c[e].iframe.style[t])}c[e]&&null!==c[e].iframe.offsetParent&&(t("height")||t("width"))&&F("Visibility change","resize",c[e].iframe,e)}(e)}))}function t(t){b("window","Mutation observed: "+t[0].target+" "+t[0].type),_(e,16)}var n,r=m();r&&(n=document.querySelector("body"),new r(t).observe(n,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}))}())}function n(n){!function(t){e.id?(e.iframe.style[t]=e[t]+"px",b(e.id,"IFrame ("+r+") "+t+" set to "+e[t]+"px")):b("undefined","messageData id not set")}(n),t(n)}var r=e.iframe.id;c[r]&&(c[r].sizeHeight&&n("height"),c[r].sizeWidth&&n("width"))}function M(e,t,n){n!==t.type&&l&&!window.jasmine?(b(t.id,"Requesting animation frame"),l(e)):e()}function F(e,t,n,r,o){var i,s=!1;r=r||n.id,c[r]&&(n&&"contentWindow"in n&&null!==n.contentWindow?(i=c[r]&&c[r].targetOrigin,b(r,"["+e+"] Sending msg to iframe["+r+"] ("+t+") targetOrigin: "+i),n.contentWindow.postMessage(a+t,i)):E(r,"["+e+"] IFrame("+r+") not found"),o&&c[r]&&c[r].warningTimeout&&(c[r].msgTimeout=setTimeout((function(){!c[r]||c[r].loaded||s||(s=!0,E(r,"IFrame has not responded within "+c[r].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),c[r].warningTimeout)))}function O(e){return e+":"+c[e].bodyMarginV1+":"+c[e].sizeWidth+":"+c[e].log+":"+c[e].interval+":"+c[e].enablePublicMethods+":"+c[e].autoResize+":"+c[e].bodyMargin+":"+c[e].heightCalculationMethod+":"+c[e].bodyBackground+":"+c[e].bodyPadding+":"+c[e].tolerance+":"+c[e].inPageLinks+":"+c[e].resizeFrom+":"+c[e].widthCalculationMethod}function I(e,n){function i(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],E(a,"Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}var a=function(t){var i;return""===t&&(e.id=(i=n&&n.id||f.id+r++,null!==document.getElementById(i)&&(i+=r++),t=i),o=(n||{}).log,b(t,"Added missing iframe ID: "+t+" ("+e.src+")")),t}(e.id);a in c&&"iFrameResizer"in e?E(a,"Ignored iFrame, already setup."):(function(t){var n;t=t||{},c[a]={firstRun:!0,iframe:e,remoteHost:e.src&&e.src.split("/").slice(0,3).join("/")},function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(t),Object.keys(t).forEach(i,t),function(e){for(var t in f)Object.prototype.hasOwnProperty.call(f,t)&&(c[a][t]=Object.prototype.hasOwnProperty.call(e,t)?e[t]:f[t])}(t),c[a]&&(c[a].targetOrigin=!0===c[a].checkOrigin?""===(n=c[a].remoteHost)||null!==n.match(/^(about:blank|javascript:|file:\/\/)/)?"*":n:"*")}(n),function(){switch(b(a,"IFrame scrolling "+(c[a]&&c[a].scrolling?"enabled":"disabled")+" for "+a),e.style.overflow=!1===(c[a]&&c[a].scrolling)?"hidden":"auto",c[a]&&c[a].scrolling){case"omit":break;case!0:e.scrolling="yes";break;case!1:e.scrolling="no";break;default:e.scrolling=c[a]?c[a].scrolling:"no"}}(),function(){function t(t){1/0!==c[a][t]&&0!==c[a][t]&&(e.style[t]=c[a][t]+"px",b(a,"Set "+t+" = "+c[a][t]+"px"))}function n(e){if(c[a]["min"+e]>c[a]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),t("maxHeight"),t("minHeight"),t("maxWidth"),t("minWidth")}(),"number"!=typeof(c[a]&&c[a].bodyMargin)&&"0"!==(c[a]&&c[a].bodyMargin)||(c[a].bodyMarginV1=c[a].bodyMargin,c[a].bodyMargin=c[a].bodyMargin+"px"),function(n){var r=m();r&&function(t){e.parentNode&&new t((function(t){t.forEach((function(t){Array.prototype.slice.call(t.removedNodes).forEach((function(t){t===e&&S(e)}))}))})).observe(e.parentNode,{childList:!0})}(r),g(e,"load",(function(){var r,o;F("iFrame.onload",n,e,t,!0),r=c[a]&&c[a].firstRun,o=c[a]&&c[a].heightCalculationMethod in u,!r&&o&&R({iframe:e,height:0,width:0,type:"init"})})),F("init",n,e,t,!0)}(O(a)),c[a]&&(c[a].iframe.iFrameResizer={close:S.bind(null,c[a].iframe),removeListeners:L.bind(null,c[a].iframe),resize:F.bind(null,"Window resize","resize",c[a].iframe),moveToAnchor:function(e){F("Move to anchor","moveToAnchor:"+e,c[a].iframe,a)},sendMessage:function(e){F("Send Message","message:"+(e=JSON.stringify(e)),c[a].iframe,a)}}))}function _(e,t){null===d&&(d=setTimeout((function(){d=null,e()}),t))}function A(){"hidden"!==document.visibilityState&&(b("document","Trigger event: Visiblity change"),_((function(){D("Tab Visable","resize")}),16))}function D(e,t){Object.keys(c).forEach((function(n){(function(e){return c[e]&&"parent"===c[e].resizeFrom&&c[e].autoResize&&!c[e].firstRun})(n)&&F(e,t,c[n].iframe,n)}))}function H(){function e(e,t){t&&(function(){if(!t.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==t.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+t.tagName+">")}(),I(t,e),n.push(t))}var n;return function(){var e,t=["moz","webkit","o","ms"];for(e=0;e<t.length&&!l;e+=1)l=window[t[e]+"RequestAnimationFrame"];l?l=l.bind(window):b("setup","RequestAnimationFrame not supported")}(),g(window,"message",T),g(window,"resize",(function(){b("window","Trigger event: resize"),_((function(){D("Window resize","resize")}),16)})),g(document,"visibilitychange",A),g(document,"-webkit-visibilitychange",A),function(r,o){switch(n=[],function(e){e&&e.enablePublicMethods&&E("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(r),typeof o){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(o||"iframe"),e.bind(t,r));break;case"object":e(r,o);break;default:throw new TypeError("Unexpected data type ("+typeof o+")")}return n}}}()},c(d={exports:{}}),d.exports),p=function(){},m=function(e){var t=e.title,n=e.forwardRef,i=u(e,["title","forwardRef"]),a=function(e){return e.autoResize,e.bodyBackground,e.bodyMargin,e.bodyPadding,e.checkOrigin,e.inPageLinks,e.heightCalculationMethod,e.interval,e.log,e.maxHeight,e.maxWidth,e.minHeight,e.minWidth,e.resizeFrom,e.scrolling,e.sizeHeight,e.sizeWidth,e.warningTimeout,e.tolerance,e.widthCalculationMethod,e.onClosed,e.onInit,e.onMessage,e.onMouseEnter,e.onMouseLeave,e.onResized,u(e,["autoResize","bodyBackground","bodyMargin","bodyPadding","checkOrigin","inPageLinks","heightCalculationMethod","interval","log","maxHeight","maxWidth","minHeight","minWidth","resizeFrom","scrolling","sizeHeight","sizeWidth","warningTimeout","tolerance","widthCalculationMethod","onClosed","onInit","onMessage","onMouseEnter","onMouseLeave","onResized"])}(i),s=(0,r.useRef)(null),c=function(){return p(!s.current,"[iframeSizerReact]["+(s&&s.current&&s.current.id)+"] Close event ignored, to remove the iframe update your React component"),!s.current};return(0,r.useEffect)((function(){var e=s.current;return f(l({},i,{onClose:c}),e),function(){return e.iFrameResizer&&e.iFrameResizer.removeListeners()}}),[]),(0,r.useImperativeHandle)(n,(function(){return{resize:function(){return s.current.iFrameResizer.resize()},moveToAnchor:function(e){return s.current.iFrameResizer.moveToAnchor(e)},sendMessage:function(e,t){s.current.iFrameResizer.sendMessage(e,t)}}})),o().createElement("iframe",l({title:t},a,{ref:s}))};m.defaultProps={title:"iframe"},m.propTypes={title:s().string};const g=m,v=window.wp.element;function h(e){const t=(0,r.useRef)(null);return(0,r.useMemo)((()=>({get current(){return t.current},set current(n){t.current=n,"function"==typeof e?e(n):e&&(e.current=n)}})),[e])}function b(...e){return 1===e.length&&e[0]?e[0]:t=>{for(let n of e)"function"==typeof n?n(t):null!=n&&(n.current=t)}}function y(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}const E="undefined"!=typeof document?r.useLayoutEffect:()=>{};function w(e){const t=(0,r.useRef)(null);return E((()=>{t.current=e}),[e]),(0,r.useCallback)(((...e)=>{const n=t.current;return null==n?void 0:n(...e)}),[])}const T={prefix:String(Math.round(1e10*Math.random())),current:0},P=r.createContext(T),L=r.createContext(!1);let S=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),N=new WeakMap;const C="function"==typeof r.useId?function(e){let t=r.useId(),[n]=(0,r.useState)(M());return e||`${n?"react-aria":`react-aria${T.prefix}`}-${t}`}:function(e){let t=(0,r.useContext)(P);t!==T||S||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=function(e=!1){let t=(0,r.useContext)(P),n=(0,r.useRef)(null);if(null===n.current&&!e){var o,i;let e=null===(i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===i||null===(o=i.ReactCurrentOwner)||void 0===o?void 0:o.current;if(e){let n=N.get(e);null==n?N.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,N.delete(e))}n.current=++t.current}return n.current}(!!e),o=`react-aria${t.prefix}`;return e||`${o}-${n}`};function k(){return!1}function R(){return!0}function x(e){return()=>{}}function M(){return"function"==typeof r.useSyncExternalStore?r.useSyncExternalStore(x,k,R):(0,r.useContext)(L)}let F,O=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),I=new Map;function _(e){let[t,n]=(0,r.useState)(e),o=(0,r.useRef)(null),i=C(t),a=(0,r.useRef)(null);if(F&&F.register(a,i),O){const e=I.get(i);e&&!e.includes(o)?e.push(o):I.set(i,[o])}return E((()=>{let e=i;return()=>{F&&F.unregister(a),I.delete(e)}}),[i]),(0,r.useEffect)((()=>{let e=o.current;return e&&n(e),()=>{e&&(o.current=null)}})),i}function A(e,t){if(e===t)return e;let n=I.get(e);if(n)return n.forEach((e=>e.current=t)),t;let r=I.get(t);return r?(r.forEach((t=>t.current=e)),e):t}function D(e=[]){let t=_(),[n,o]=function(e){let[t,n]=(0,r.useState)(e),o=(0,r.useRef)(null),i=w((()=>{if(!o.current)return;let e=o.current.next();e.done?o.current=null:t===e.value?i():n(e.value)}));E((()=>{o.current&&i()}));let a=w((e=>{o.current=e(t),i()}));return[t,a]}(t),i=(0,r.useCallback)((()=>{o((function*(){yield t,yield document.getElementById(t)?t:void 0}))}),[t,o]);return E(i,[t,i,...e]),n}function H(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=H(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}"undefined"!=typeof FinalizationRegistry&&(F=new FinalizationRegistry((e=>{I.delete(e)})));const W=function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=H(e))&&(r&&(r+=" "),r+=t);return r};function z(...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]=y(n,o):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof o?"id"===e&&n&&o?t.id=A(n,o):t[e]=void 0!==o?o:n:t[e]=W(n,o)}}return t}const K=Symbol("default");function U({values:e,children:t}){for(let[n,o]of e)t=r.createElement(n.Provider,{value:o},t);return t}function j(e){let{className:t,style:n,children:o,defaultClassName:i,defaultChildren:a,defaultStyle:s,values:l}=e;return(0,r.useMemo)((()=>{let e,r,u;return e="function"==typeof t?t({...l,defaultClassName:i}):t,r="function"==typeof n?n({...l,defaultStyle:s||{}}):n,u="function"==typeof o?o({...l,defaultChildren:a}):null==o?a:o,{className:null!=e?e:i,style:r||s?{...s,...r}:void 0,children:null!=u?u:a,"data-rac":""}}),[t,n,o,i,a,s,l])}function B(e,t,n){let o=function(e,t){let n=(0,r.useContext)(e);if(null===t)return null;if(n&&"object"==typeof n&&"slots"in n&&n.slots){let e=t||K;if(!n.slots[e]){let e=(new Intl.ListFormat).format(Object.keys(n.slots).map((e=>`"${e}"`)));throw new Error(`${t?`Invalid slot "${t}".`:"A slot prop is required."} Valid slot names are ${e}.`)}return n.slots[e]}return n}(n,e.slot)||{},{ref:i,...a}=o,s=h((0,r.useMemo)((()=>b(t,i)),[t,i])),l=z(a,e);return"style"in a&&a.style&&"style"in e&&e.style&&("function"==typeof a.style||"function"==typeof e.style?l.style=t=>{let n="function"==typeof a.style?a.style(t):a.style,r={...t.defaultStyle,...n},o="function"==typeof e.style?e.style({...t,defaultStyle:r}):e.style;return{...r,...o}}:l.style={...a.style,...e.style}),[l,s]}const V=(0,r.createContext)(null);let $=null;class q{isAttached(){var e;return null===(e=this.node)||void 0===e?void 0:e.isConnected}createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",n=7e3){var r,o;if(!this.node)return;let i=document.createElement("div");"object"==typeof e?(i.setAttribute("role","img"),i.setAttribute("aria-labelledby",e["aria-labelledby"])):i.textContent=e,"assertive"===t?null===(r=this.assertiveLog)||void 0===r||r.appendChild(i):null===(o=this.politeLog)||void 0===o||o.appendChild(i),""!==e&&setTimeout((()=>{i.remove()}),n)}clear(e){this.node&&(e&&"assertive"!==e||!this.assertiveLog||(this.assertiveLog.innerHTML=""),e&&"polite"!==e||!this.politeLog||(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,"undefined"!=typeof document&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}const G=new Set(["id"]),Y=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),X=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),J=/^(data-.*)$/;function Q(e,t={}){let{labelable:n,isLink:r,propNames:o}=t,i={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(G.has(t)||n&&Y.has(t)||r&&X.has(t)||(null==o?void 0:o.has(t))||J.test(t))&&(i[t]=e[t]);return i}function Z(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}function ee(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function te(e){let t=null;return()=>(null==t&&(t=e()),t)}const ne=te((function(){return ee(/^Mac/i)})),re=te((function(){return ee(/^iPhone/i)})),oe=te((function(){return ee(/^iPad/i)||ne()&&navigator.maxTouchPoints>1})),ie=te((function(){return re()||oe()})),ae=(te((function(){return ne()||ie()})),te((function(){return Z(/AppleWebKit/i)&&!se()}))),se=te((function(){return Z(/Chrome/i)})),le=te((function(){return Z(/Android/i)})),ue=te((function(){return Z(/Firefox/i)})),ce=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},de=e=>e&&"window"in e&&e.window===e?e:ce(e).defaultView||window;function fe(e){return null!==(t=e)&&"object"==typeof t&&"nodeType"in t&&"number"==typeof t.nodeType&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e;var t}let pe=new Map,me=new Set;function ge(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=n=>{if(!e(n)||!n.target)return;let r=pe.get(n.target);if(r&&(r.delete(n.propertyName),0===r.size&&(n.target.removeEventListener("transitioncancel",t),pe.delete(n.target)),0===pe.size)){for(let e of me)e();me.clear()}};document.body.addEventListener("transitionrun",(n=>{if(!e(n)||!n.target)return;let r=pe.get(n.target);r||(r=new Set,pe.set(n.target,r),n.target.addEventListener("transitioncancel",t,{once:!0})),r.add(n.propertyName)})),document.body.addEventListener("transitionend",t)}function ve(e){requestAnimationFrame((()=>{0===pe.size?e():me.add(e)}))}"undefined"!=typeof document&&("loading"!==document.readyState?ge():document.addEventListener("DOMContentLoaded",ge));let he="default",be="",ye=new WeakMap;function Ee(e){if(ie()){if("default"===he){const t=ce(e);be=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}he="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";ye.set(e,e.style[t]),e.style[t]="none"}}function we(e){if(ie()){if("disabled"!==he)return;he="restoring",setTimeout((()=>{ve((()=>{if("restoring"===he){const t=ce(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=be||""),be="",he="default"}}))}),300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&ye.has(e)){let t=ye.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";"none"===e.style[n]&&(e.style[n]=t),""===e.getAttribute("style")&&e.removeAttribute("style"),ye.delete(e)}}const Te=r.createContext({register:()=>{}});Te.displayName="PressResponderContext";const Pe=["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]:not([contenteditable^="false"])'],Le=Pe.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Pe.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Se=Pe.join(':not([hidden]):not([tabindex="-1"]),');function Ne(e){return e.matches(Le)}function Ce(e){return e.matches(Se)}function ke(e){if(function(){if(null==Re){Re=!1;try{document.createElement("div").focus({get preventScroll(){return Re=!0,!0}})}catch{}}return Re}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;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)}}let Re=null;class xe{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function Me(e){let t=(0,r.useRef)({isFocused:!1,observer:null});E((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=w((t=>{null==e||e(t)}));return(0,r.useCallback)((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target,o=e=>{t.current.isFocused=!1,r.disabled&&n(new xe("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver((()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}})),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}}),[n])}let Fe=!1;function Oe(e){for(;e&&!Ne(e);)e=e.parentElement;let t=de(e),n=t.document.activeElement;if(!n||n===e)return;Fe=!0;let r=!1,o=e=>{(e.target===n||r)&&e.stopImmediatePropagation()},i=t=>{(t.target===n||r)&&(t.stopImmediatePropagation(),e||r||(r=!0,ke(n),l()))},a=t=>{(t.target===e||r)&&t.stopImmediatePropagation()},s=t=>{(t.target===e||r)&&(t.stopImmediatePropagation(),r||(r=!0,ke(n),l()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",i,!0),t.addEventListener("focusin",s,!0),t.addEventListener("focus",a,!0);let l=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",i,!0),t.removeEventListener("focusin",s,!0),t.removeEventListener("focus",a,!0),Fe=!1,r=!1},u=requestAnimationFrame(l);return l}function Ie(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function _e(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,Ie(e,t,"set"),n),n}function Ae(e,t){E((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}}))}function De(){let e=(0,r.useRef)(new Map),t=(0,r.useCallback)(((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,i,o)}),[]),n=(0,r.useCallback)(((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)}),[]),o=(0,r.useCallback)((()=>{e.current.forEach(((e,t)=>{n(e.eventTarget,e.type,t,e.options)}))}),[n]);return(0,r.useEffect)((()=>o),[o]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:o}}let He=!1;function We(){return He}function ze(e,t){if(!We())return!(!t||!e)&&e.contains(t);if(!e||!t)return!1;let n=t;for(;null!==n;){if(n===e)return!0;n="SLOT"===n.tagName&&n.assignedSlot?n.assignedSlot.parentNode:fe(n)?n.host:n.parentNode}return!1}const Ke=(e=document)=>{var t;if(!We())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(null===(t=n.shadowRoot)||void 0===t?void 0:t.activeElement);)n=n.shadowRoot.activeElement;return n};function Ue(e){return We()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function je(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}=t;ue()&&(null===(o=window.event)||void 0===o||null===(r=o.type)||void 0===r?void 0:r.startsWith("key"))&&"_blank"===e.target&&(ne()?i=!0:a=!0);let u=ae()&&ne()&&!oe()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});je.isOpening=n,ke(e),e.dispatchEvent(u),je.isOpening=!1}function Be(e){return!(0!==e.mozInputSource||!e.isTrusted)||(le()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}je.isOpening=!1;var Ve=n(75795),$e=new WeakMap;class qe{continuePropagation(){_e(this,$e,!1)}get shouldStopPropagation(){return function(e,t){return t.get?t.get.call(e):t.value}(this,Ie(this,$e,"get"))}constructor(e,t,n,r){var o,i,a,s;s={writable:!0,value:void 0},function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(i=this,a=$e),a.set(i,s),_e(this,$e,!0);let l=null!==(o=null==r?void 0:r.target)&&void 0!==o?o:n.currentTarget;const u=null==l?void 0:l.getBoundingClientRect();let c,d,f=0,p=null;null!=n.clientX&&null!=n.clientY&&(d=n.clientX,p=n.clientY),u&&(null!=d&&null!=p?(c=d-u.left,f=p-u.top):(c=u.width/2,f=u.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=c,this.y=f}}const Ge=Symbol("linkClicked");function Ye(e){return"A"===e.tagName&&e.hasAttribute("href")}function Xe(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return!("Enter"!==n&&" "!==n&&"Spacebar"!==n&&"Space"!==r||o instanceof de(o).HTMLInputElement&&!rt(o,n)||o instanceof de(o).HTMLTextAreaElement||o.isContentEditable||("link"===i||!i&&Ye(o))&&"Enter"!==n)}function Je(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 Qe(e,t){let n=0,r=0;return t.targetTouches&&1===t.targetTouches.length&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function Ze(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function et(e,t){let n=t.getBoundingClientRect(),r=function(e){let t=0,n=0;return void 0!==e.width?t=e.width/2:void 0!==e.radiusX&&(t=e.radiusX),void 0!==e.height?n=e.height/2:void 0!==e.radiusY&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);return i=r,!((o=n).left>i.right||i.left>o.right||o.top>i.bottom||i.top>o.bottom);var o,i}function tt(e,t){return e instanceof HTMLInputElement?!rt(e,t):function(e){return!(e instanceof HTMLInputElement||(e instanceof HTMLButtonElement?"submit"===e.type||"reset"===e.type:Ye(e)))}(e)}const nt=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function rt(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:nt.has(e.type)}let ot=null,it=new Set,at=new Map,st=!1,lt=!1;const ut={Tab:!0,Escape:!0};function ct(e,t){for(let n of it)n(e,t)}function dt(e){st=!0,function(e){return!(e.metaKey||!ne()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(ot="keyboard",ct("keyboard",e))}function ft(e){ot="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(st=!0,ct("pointer",e))}function pt(e){Be(e)&&(st=!0,ot="virtual")}function mt(e){e.target!==window&&e.target!==document&&!Fe&&e.isTrusted&&(st||lt||(ot="virtual",ct("virtual",e)),st=!1,lt=!1)}function gt(){Fe||(st=!1,lt=!0)}function vt(e){if("undefined"==typeof window||at.get(de(e)))return;const t=de(e),n=ce(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){st=!0,r.apply(this,arguments)},n.addEventListener("keydown",dt,!0),n.addEventListener("keyup",dt,!0),n.addEventListener("click",pt,!0),t.addEventListener("focus",mt,!0),t.addEventListener("blur",gt,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",ft,!0),n.addEventListener("pointermove",ft,!0),n.addEventListener("pointerup",ft,!0)):(n.addEventListener("mousedown",ft,!0),n.addEventListener("mousemove",ft,!0),n.addEventListener("mouseup",ft,!0)),t.addEventListener("beforeunload",(()=>{ht(e)}),{once:!0}),at.set(t,{focus:r})}const ht=(e,t)=>{const n=de(e),r=ce(e);t&&r.removeEventListener("DOMContentLoaded",t),at.has(n)&&(n.HTMLElement.prototype.focus=at.get(n).focus,r.removeEventListener("keydown",dt,!0),r.removeEventListener("keyup",dt,!0),r.removeEventListener("click",pt,!0),n.removeEventListener("focus",mt,!0),n.removeEventListener("blur",gt,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",ft,!0),r.removeEventListener("pointermove",ft,!0),r.removeEventListener("pointerup",ft,!0)):(r.removeEventListener("mousedown",ft,!0),r.removeEventListener("mousemove",ft,!0),r.removeEventListener("mouseup",ft,!0)),at.delete(n))};function bt(){return"pointer"!==ot}function yt(){return ot}"undefined"!=typeof document&&function(e){const t=ce(e);let n;"loading"!==t.readyState?vt(e):(n=()=>{vt(e)},t.addEventListener("DOMContentLoaded",n))}();const Et=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function wt(e){const t=ce(e),n=Ke(t);if("virtual"===yt()){let r=n;ve((()=>{Ke(t)===r&&e.isConnected&&ke(e)}))}else ke(e)}function Tt(e){let{isDisabled:t,onFocus:n,onBlur:o,onFocusChange:i}=e;const a=(0,r.useCallback)((e=>{if(e.target===e.currentTarget)return o&&o(e),i&&i(!1),!0}),[o,i]),s=Me(a),l=(0,r.useCallback)((e=>{const t=ce(e.target),r=t?Ke(t):Ke();e.target===e.currentTarget&&r===Ue(e.nativeEvent)&&(n&&n(e),i&&i(!0),s(e))}),[i,n,s]);return{focusProps:{onFocus:!t&&(n||i||o)?l:void 0,onBlur:t||!o&&!i?void 0:a}}}function Pt(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){t?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped:()=>t};e(r),t&&n.stopPropagation()}}let Lt=r.createContext(null);function St(e,t){let{focusProps:n}=Tt(e),{keyboardProps:o}=function(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Pt(e.onKeyDown),onKeyUp:Pt(e.onKeyUp)}}}(e),i=z(n,o),a=function(e){let t=(0,r.useContext)(Lt)||{};Ae(t,e);let{ref:n,...o}=t;return o}(t),s=e.isDisabled?{}:a,l=(0,r.useRef)(e.autoFocus);(0,r.useEffect)((()=>{l.current&&t.current&&wt(t.current),l.current=!1}),[t]);let u=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(u=void 0),{focusableProps:z({...i,tabIndex:u},s)}}function Nt(e,t){let n,{elementType:o="button",isDisabled:i,onPress:a,onPressStart:s,onPressEnd:l,onPressUp:u,onPressChange:c,preventFocusOnPress:d,allowFocusWhenDisabled:f,onClick:p,href:m,target:g,rel:v,type:h="button"}=e;n="button"===o?{type:h,disabled:i}:{role:"button",href:"a"!==o||i?void 0:m,target:"a"===o?g:void 0,type:"input"===o?h:void 0,disabled:"input"===o?i:void 0,"aria-disabled":i&&"input"!==o?i:void 0,rel:"a"===o?v:void 0};let{pressProps:b,isPressed:E}=function(e){let{onPress:t,onPressChange:n,onPressStart:o,onPressEnd:i,onPressUp:a,isDisabled:s,isPressed:l,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:f,...p}=function(e){let t=(0,r.useContext)(Te);if(t){let{register:n,...r}=t;e=z(r,e),n()}return Ae(t,e.ref),e}(e),[m,g]=(0,r.useState)(!1),v=(0,r.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:h,removeAllGlobalListeners:b}=De(),E=w(((e,t)=>{let r=v.current;if(s||r.didFirePressStart)return!1;let i=!0;if(r.isTriggeringEvent=!0,o){let n=new qe("pressstart",t,e);o(n),i=n.shouldStopPropagation}return n&&n(!0),r.isTriggeringEvent=!1,r.didFirePressStart=!0,g(!0),i})),T=w(((e,r,o=!0)=>{let a=v.current;if(!a.didFirePressStart)return!1;a.didFirePressStart=!1,a.isTriggeringEvent=!0;let l=!0;if(i){let t=new qe("pressend",r,e);i(t),l=t.shouldStopPropagation}if(n&&n(!1),g(!1),t&&o&&!s){let n=new qe("press",r,e);t(n),l&&(l=n.shouldStopPropagation)}return a.isTriggeringEvent=!1,l})),P=w(((e,t)=>{let n=v.current;if(s)return!1;if(a){n.isTriggeringEvent=!0;let r=new qe("pressup",t,e);return a(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0})),L=w((e=>{let t=v.current;if(t.isPressed&&t.target){t.didFirePressStart&&null!=t.pointerType&&T(Ze(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,b(),d||we(t.target);for(let e of t.disposables)e();t.disposables=[]}})),S=w((e=>{c&&L(e)})),N=(0,r.useMemo)((()=>{let e=v.current,t={onKeyDown(t){if(Xe(t.nativeEvent,t.currentTarget)&&ze(t.currentTarget,Ue(t.nativeEvent))){var r;tt(Ue(t.nativeEvent),t.key)&&t.preventDefault();let o=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,e.pointerType="keyboard",o=E(t,"keyboard");let r=t.currentTarget,i=t=>{Xe(t,r)&&!t.repeat&&ze(r,Ue(t))&&e.target&&P(Ze(e.target,t),"keyboard")};h(ce(t.currentTarget),"keyup",y(i,n),!0)}o&&t.stopPropagation(),t.metaKey&&ne()&&(null===(r=e.metaKeyEvents)||void 0===r||r.set(t.key,t.nativeEvent))}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||ze(t.currentTarget,Ue(t.nativeEvent)))&&t&&0===t.button&&!e.isTriggeringEvent&&!je.isOpening){let n=!0;if(s&&t.preventDefault(),e.ignoreEmulatedMouseEvents||e.isPressed||"virtual"!==e.pointerType&&!Be(t.nativeEvent)){if(e.isPressed&&"keyboard"!==e.pointerType){let r=e.pointerType||t.nativeEvent.pointerType||"virtual";n=T(Ze(t.currentTarget,t),r,!0),e.isOverTarget=!1,L(t)}}else{let e=E(t,"virtual"),r=P(t,"virtual"),o=T(t,"virtual");n=e&&r&&o}e.ignoreEmulatedMouseEvents=!1,n&&t.stopPropagation()}}},n=t=>{var n;if(e.isPressed&&e.target&&Xe(t,e.target)){var r;tt(Ue(t),t.key)&&t.preventDefault();let n=Ue(t);T(Ze(e.target,t),"keyboard",ze(e.target,Ue(t))),b(),"Enter"!==t.key&&Ye(e.target)&&ze(e.target,n)&&!t[Ge]&&(t[Ge]=!0,je(e.target,t,!1)),e.isPressed=!1,null===(r=e.metaKeyEvents)||void 0===r||r.delete(t.key)}else if("Meta"===t.key&&(null===(n=e.metaKeyEvents)||void 0===n?void 0:n.size)){var o;let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let n of t.values())null===(o=e.target)||void 0===o||o.dispatchEvent(new KeyboardEvent("keyup",n))}};if("undefined"!=typeof PointerEvent){t.onPointerDown=t=>{if(0!==t.button||!ze(t.currentTarget,Ue(t.nativeEvent)))return;if(o=t.nativeEvent,!le()&&0===o.width&&0===o.height||1===o.width&&1===o.height&&0===o.pressure&&0===o.detail&&"mouse"===o.pointerType)return void(e.pointerType="virtual");var o;e.pointerType=t.pointerType;let i=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,d||Ee(e.target),i=E(t,e.pointerType);let o=Ue(t.nativeEvent);"releasePointerCapture"in o&&o.releasePointerCapture(t.pointerId),h(ce(t.currentTarget),"pointerup",n,!1),h(ce(t.currentTarget),"pointercancel",r,!1)}i&&t.stopPropagation()},t.onMouseDown=t=>{if(ze(t.currentTarget,Ue(t.nativeEvent))&&0===t.button){if(u){let n=Oe(t.target);n&&e.disposables.push(n)}t.stopPropagation()}},t.onPointerUp=t=>{ze(t.currentTarget,Ue(t.nativeEvent))&&"virtual"!==e.pointerType&&0===t.button&&P(t,e.pointerType||t.pointerType)},t.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!0,E(Ze(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,T(Ze(e.target,t),e.pointerType,!1),S(t))};let n=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target){if(ze(e.target,Ue(t))&&null!=e.pointerType){let n=!1,r=setTimeout((()=>{e.isPressed&&e.target instanceof HTMLElement&&(n?L(t):(ke(e.target),e.target.click()))}),80);h(t.currentTarget,"click",(()=>n=!0),!0),e.disposables.push((()=>clearTimeout(r)))}else L(t);e.isOverTarget=!1}},r=e=>{L(e)};t.onDragStart=e=>{ze(e.currentTarget,Ue(e.nativeEvent))&&L(e)}}else{t.onMouseDown=t=>{if(0===t.button&&ze(t.currentTarget,Ue(t.nativeEvent)))if(e.ignoreEmulatedMouseEvents)t.stopPropagation();else{if(e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=Be(t.nativeEvent)?"virtual":"mouse",(0,Ve.flushSync)((()=>E(t,e.pointerType)))&&t.stopPropagation(),u){let n=Oe(t.target);n&&e.disposables.push(n)}h(ce(t.currentTarget),"mouseup",n,!1)}},t.onMouseEnter=t=>{if(!ze(t.currentTarget,Ue(t.nativeEvent)))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!0,n=E(t,e.pointerType)),n&&t.stopPropagation()},t.onMouseLeave=t=>{if(!ze(t.currentTarget,Ue(t.nativeEvent)))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!1,n=T(t,e.pointerType,!1),S(t)),n&&t.stopPropagation()},t.onMouseUp=t=>{ze(t.currentTarget,Ue(t.nativeEvent))&&(e.ignoreEmulatedMouseEvents||0!==t.button||P(t,e.pointerType||"mouse"))};let n=t=>{0===t.button&&(e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(e.target&&e.target.contains(t.target)&&null!=e.pointerType||L(t),e.isOverTarget=!1))};t.onTouchStart=t=>{if(!ze(t.currentTarget,Ue(t.nativeEvent)))return;let n=function(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}(t.nativeEvent);n&&(e.activePointerId=n.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=t.currentTarget,e.pointerType="touch",d||Ee(e.target),E(Qe(e.target,t),e.pointerType)&&t.stopPropagation(),h(de(t.currentTarget),"scroll",r,!0))},t.onTouchMove=t=>{if(!ze(t.currentTarget,Ue(t.nativeEvent)))return;if(!e.isPressed)return void t.stopPropagation();let n=Je(t.nativeEvent,e.activePointerId),r=!0;n&&et(n,t.currentTarget)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,r=E(Qe(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,r=T(Qe(e.target,t),e.pointerType,!1),S(Qe(e.target,t))),r&&t.stopPropagation()},t.onTouchEnd=t=>{if(!ze(t.currentTarget,Ue(t.nativeEvent)))return;if(!e.isPressed)return void t.stopPropagation();let n=Je(t.nativeEvent,e.activePointerId),r=!0;n&&et(n,t.currentTarget)&&null!=e.pointerType?(P(Qe(e.target,t),e.pointerType),r=T(Qe(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(r=T(Qe(e.target,t),e.pointerType,!1)),r&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!d&&we(e.target),b()},t.onTouchCancel=t=>{ze(t.currentTarget,Ue(t.nativeEvent))&&(t.stopPropagation(),e.isPressed&&L(Qe(e.target,t)))};let r=t=>{e.isPressed&&ze(Ue(t),e.target)&&L({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};t.onDragStart=e=>{ze(e.currentTarget,Ue(e.nativeEvent))&&L(e)}}return t}),[h,s,u,b,d,L,S,T,E,P]);return(0,r.useEffect)((()=>{let e=v.current;return()=>{var t;d||we(null!==(t=e.target)&&void 0!==t?t:void 0);for(let t of e.disposables)t();e.disposables=[]}}),[d]),{isPressed:l||m,pressProps:z(p,N)}}({onPressStart:s,onPressEnd:l,onPressChange:c,onPress:a,onPressUp:u,isDisabled:i,preventFocusOnPress:d,ref:t}),{focusableProps:T}=St(e,t);f&&(T.tabIndex=i?-1:T.tabIndex);let P=z(T,b,Q(e,{labelable:!0}));return{isPressed:E,buttonProps:z(n,P,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],onClick:e=>{p&&(p(e),console.warn("onClick is deprecated, please use onPress"))}})}}function Ct(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:o,onFocusWithinChange:i}=e,a=(0,r.useRef)({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:l}=De(),u=(0,r.useCallback)((e=>{e.currentTarget.contains(e.target)&&a.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(a.current.isFocusWithin=!1,l(),n&&n(e),i&&i(!1))}),[n,i,a,l]),c=Me(u),d=(0,r.useCallback)((e=>{if(!e.currentTarget.contains(e.target))return;const t=ce(e.target),n=Ke(t);if(!a.current.isFocusWithin&&n===Ue(e.nativeEvent)){o&&o(e),i&&i(!0),a.current.isFocusWithin=!0,c(e);let n=e.currentTarget;s(t,"focus",(e=>{if(a.current.isFocusWithin&&!ze(n,e.target)){let r=new xe("blur",new t.defaultView.FocusEvent("blur",{relatedTarget:e.target}));r.target=n,r.currentTarget=n,u(r)}}),{capture:!0})}}),[o,i,c,s,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:u}}}function kt(e={}){let{autoFocus:t=!1,isTextInput:n,within:o}=e,i=(0,r.useRef)({isFocused:!1,isFocusVisible:t||bt()}),[a,s]=(0,r.useState)(!1),[l,u]=(0,r.useState)((()=>i.current.isFocused&&i.current.isFocusVisible)),c=(0,r.useCallback)((()=>u(i.current.isFocused&&i.current.isFocusVisible)),[]),d=(0,r.useCallback)((e=>{i.current.isFocused=e,s(e),c()}),[c]);!function(e,t,n){vt(),(0,r.useEffect)((()=>{let t=(t,r)=>{(function(e,t,n){let r=ce(null==n?void 0:n.target);const o="undefined"!=typeof window?de(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,i="undefined"!=typeof window?de(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a="undefined"!=typeof window?de(null==n?void 0:n.target).HTMLElement:HTMLElement,s="undefined"!=typeof window?de(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||r.activeElement instanceof o&&!Et.has(r.activeElement.type)||r.activeElement instanceof i||r.activeElement instanceof a&&r.activeElement.isContentEditable)&&"keyboard"===t&&n instanceof s&&!ut[n.key])})(!!(null==n?void 0:n.isTextInput),t,r)&&e(bt())};return it.add(t),()=>{it.delete(t)}}),t)}((e=>{i.current.isFocusVisible=e,c()}),[],{isTextInput:n});let{focusProps:f}=Tt({isDisabled:o,onFocusChange:d}),{focusWithinProps:p}=Ct({isDisabled:!o,onFocusWithinChange:d});return{isFocused:a,isFocusVisible:l,focusProps:o?p:f}}let Rt=!1,xt=0;function Mt(){Rt=!0,setTimeout((()=>{Rt=!1}),50)}function Ft(e){"touch"===e.pointerType&&Mt()}function Ot(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",Ft):document.addEventListener("touchend",Mt),xt++,()=>{xt--,xt>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",Ft):document.removeEventListener("touchend",Mt))}}if("undefined"!=typeof HTMLTemplateElement){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const It=(0,r.createContext)(!1),_t=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),At=(0,r.createContext)({}),Dt=function(e){let t=(t,n)=>(0,r.useContext)(It)?null:e(t,n);return t.displayName=e.displayName||e.name,(0,r.forwardRef)(t)}((function(e,t){[e,t]=B(e,t,At);let n=e=function(e){return e.isPending&&(e.onPress=void 0,e.onPressStart=void 0,e.onPressEnd=void 0,e.onPressChange=void 0,e.onPressUp=void 0,e.onKeyDown=void 0,e.onKeyUp=void 0,e.onClick=void 0,e.href=void 0),e}(e),{isPending:o}=n,{buttonProps:i,isPressed:a}=Nt(e,t),{focusProps:s,isFocused:l,isFocusVisible:u}=kt(e),{hoverProps:c,isHovered:d}=function(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:o,isDisabled:i}=e,[a,s]=(0,r.useState)(!1),l=(0,r.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,r.useEffect)(Ot,[]);let{addGlobalListener:u,removeAllGlobalListeners:c}=De(),{hoverProps:d,triggerHoverEnd:f}=(0,r.useMemo)((()=>{let e=(e,o)=>{if(l.pointerType=o,i||"touch"===o||l.isHovered||!e.currentTarget.contains(e.target))return;l.isHovered=!0;let a=e.currentTarget;l.target=a,u(ce(e.target),"pointerover",(e=>{l.isHovered&&l.target&&!ze(l.target,e.target)&&r(e,e.pointerType)}),{capture:!0}),t&&t({type:"hoverstart",target:a,pointerType:o}),n&&n(!0),s(!0)},r=(e,t)=>{let r=l.target;l.pointerType="",l.target=null,"touch"!==t&&l.isHovered&&r&&(l.isHovered=!1,c(),o&&o({type:"hoverend",target:r,pointerType:t}),n&&n(!1),s(!1))},a={};return"undefined"!=typeof PointerEvent?(a.onPointerEnter=t=>{Rt&&"mouse"===t.pointerType||e(t,t.pointerType)},a.onPointerLeave=e=>{!i&&e.currentTarget.contains(e.target)&&r(e,e.pointerType)}):(a.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},a.onMouseEnter=t=>{l.ignoreEmulatedMouseEvents||Rt||e(t,"mouse"),l.ignoreEmulatedMouseEvents=!1},a.onMouseLeave=e=>{!i&&e.currentTarget.contains(e.target)&&r(e,"mouse")}),{hoverProps:a,triggerHoverEnd:r}}),[t,n,o,i,l,u,c]);return(0,r.useEffect)((()=>{i&&f({currentTarget:l.target},l.pointerType)}),[i]),{hoverProps:d,isHovered:a}}({...e,isDisabled:e.isDisabled||o}),f={isHovered:d,isPressed:(n.isPressed||a)&&!o,isFocused:l,isFocusVisible:u,isDisabled:e.isDisabled||!1,isPending:null!=o&&o},p=j({...e,values:f,defaultClassName:"react-aria-Button"}),m=_(i.id),g=_(),v=i["aria-labelledby"];o&&(v?v=`${v} ${g}`:i["aria-label"]&&(v=`${m} ${g}`));let h=(0,r.useRef)(o);return(0,r.useEffect)((()=>{let e={"aria-labelledby":v||m};(!h.current&&l&&o||h.current&&l&&!o)&&function(e,t="assertive",n=7e3){$?$.announce(e,t,n):($=new q,("boolean"==typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:"undefined"!=typeof jest)?$.announce(e,t,n):setTimeout((()=>{(null==$?void 0:$.isAttached())&&(null==$||$.announce(e,t,n))}),100))}(e,"assertive"),h.current=o}),[o,l,v,m]),r.createElement("button",{...Q(e,{propNames:_t}),...z(i,s,c),...p,type:"submit"===i.type&&o?"button":i.type,id:m,ref:t,"aria-labelledby":v,slot:e.slot||void 0,"aria-disabled":o?"true":i["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":f.isPressed||void 0,"data-hovered":d||void 0,"data-focused":l||void 0,"data-pending":o||void 0,"data-focus-visible":u||void 0},r.createElement(V.Provider,{value:{id:g}},p.children))}));(0,r.createContext)(null),(0,r.createContext)(null),(0,r.createContext)(null),(0,r.createContext)(null),(0,r.createContext)(null);const Ht=(0,r.createContext)({}),Wt=(0,r.createContext)({});function zt({children:e}){let t=(0,r.useMemo)((()=>({register:()=>{}})),[]);return r.createElement(Te.Provider,{value:t},e)}function Kt(e,t){return"#comment"!==e.nodeName&&function(e){const t=de(e);if(!(e instanceof t.HTMLElement||e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o="none"!==n&&"hidden"!==r&&"collapse"!==r;if(o){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:n,visibility:r}=t(e);o="none"!==n&&"hidden"!==r&&"collapse"!==r}return o}(e)&&function(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(e,t)&&(!e.parentElement||Kt(e.parentElement,e))}class Ut{get currentNode(){return this._currentNode}set currentNode(e){if(!ze(this.root,e))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const t=[];let n=e,r=e;for(this._currentNode=e;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const e=n,o=this._doc.createTreeWalker(e,this.whatToShow,{acceptNode:this._acceptNode});t.push(o),o.currentNode=r,this._currentSetFor.add(o),n=r=e.host}else n=n.parentNode;const o=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});t.push(o),o.currentNode=r,this._currentSetFor.add(o),this._walkerStack=t}get doc(){return this._doc}firstChild(){let e=this.currentNode,t=this.nextNode();return ze(e,t)?(t&&(this.currentNode=t),t):(this.currentNode=e,null)}lastChild(){let e=this._walkerStack[0].lastChild();return e&&(this.currentNode=e),e}nextNode(){const e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){var t;let n;if("function"==typeof this.filter?n=this.filter(e):(null===(t=this.filter)||void 0===t?void 0:t.acceptNode)&&(n=this.filter.acceptNode(e)),n===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let r=this.nextNode();return r&&(this.currentNode=r),r}return e&&(this.currentNode=e),e}if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.nextNode();return e&&(this.currentNode=e),e}return null}previousNode(){const e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e)){if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}return null}return null}const t=e.previousNode();if(t){if(t.shadowRoot){var n;let e;if("function"==typeof this.filter?e=this.filter(t):(null===(n=this.filter)||void 0===n?void 0:n.acceptNode)&&(e=this.filter.acceptNode(t)),e===NodeFilter.FILTER_ACCEPT)return t&&(this.currentNode=t),t;let r=this.lastChild();return r&&(this.currentNode=r),r}return t&&(this.currentNode=t),t}if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,t,n,r){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=e=>{if(e.nodeType===Node.ELEMENT_NODE){const n=e.shadowRoot;if(n){const e=this._doc.createTreeWalker(n,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(e),NodeFilter.FILTER_ACCEPT}var t;if("function"==typeof this.filter)return this.filter(e);if(null===(t=this.filter)||void 0===t?void 0:t.acceptNode)return this.filter.acceptNode(e);if(null===this.filter)return NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=t,this.filter=null!=r?r:null,this.whatToShow=null!=n?n:NodeFilter.SHOW_ALL,this._currentNode=t,this._walkerStack.unshift(e.createTreeWalker(t,n,this._acceptNode));const o=t.shadowRoot;if(o){const e=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(e)}}}const jt=r.createContext(null),Bt="react-aria-focus-scope-restore";let Vt=null;function $t(e){let{children:t,contain:n,restoreFocus:o,autoFocus:i}=e,a=(0,r.useRef)(null),s=(0,r.useRef)(null),l=(0,r.useRef)([]),{parentNode:u}=(0,r.useContext)(jt)||{},c=(0,r.useMemo)((()=>new sn({scopeRef:l})),[l]);E((()=>{let e=u||ln.root;if(ln.getTreeNode(e.scopeRef)&&Vt&&!Qt(Vt,e.scopeRef)){let t=ln.getTreeNode(Vt);t&&(e=t)}e.addChild(c),ln.addNode(c)}),[c,u]),E((()=>{let e=ln.getTreeNode(l);e&&(e.contain=!!n)}),[n]),E((()=>{var e;let t=null===(e=a.current)||void 0===e?void 0:e.nextSibling,n=[],r=e=>e.stopPropagation();for(;t&&t!==s.current;)n.push(t),t.addEventListener(Bt,r),t=t.nextSibling;return l.current=n,()=>{for(let e of n)e.removeEventListener(Bt,r)}}),[t]),function(e,t,n){E((()=>{if(t||n)return;let r=e.current;const o=ce(r?r[0]:void 0);let i=t=>{let n=Ue(t);Xt(n,e.current)?Vt=e:Yt(n)||(Vt=null)};return o.addEventListener("focusin",i,!1),null==r||r.forEach((e=>e.addEventListener("focusin",i,!1))),()=>{o.removeEventListener("focusin",i,!1),null==r||r.forEach((e=>e.removeEventListener("focusin",i,!1)))}}),[e,t,n])}(l,o,n),function(e,t){let n=(0,r.useRef)(void 0),o=(0,r.useRef)(void 0);E((()=>{let r=e.current;if(!t)return void(o.current&&(cancelAnimationFrame(o.current),o.current=void 0));const i=ce(r?r[0]:void 0);let a=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!Gt(e)||t.isComposing)return;let n=Ke(i),r=e.current;if(!r||!Xt(n,r))return;let o=on(qt(r),{tabbable:!0},r);if(!n)return;o.currentNode=n;let a=t.shiftKey?o.previousNode():o.nextNode();a||(o.currentNode=t.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,a=t.shiftKey?o.previousNode():o.nextNode()),t.preventDefault(),a&&Zt(a,!0)},s=t=>{Vt&&!Qt(Vt,e)||!Xt(Ue(t),e.current)?Gt(e)&&!Jt(Ue(t),e)?n.current?n.current.focus():Vt&&Vt.current&&tn(Vt.current):Gt(e)&&(n.current=Ue(t)):(Vt=e,n.current=Ue(t))},l=t=>{o.current&&cancelAnimationFrame(o.current),o.current=requestAnimationFrame((()=>{let r=yt(),o=("virtual"===r||null===r)&&le()&&se(),a=Ke(i);if(!o&&a&&Gt(e)&&!Jt(a,e)){Vt=e;let r=Ue(t);var s;r&&r.isConnected?(n.current=r,null===(s=n.current)||void 0===s||s.focus()):Vt.current&&tn(Vt.current)}}))};return i.addEventListener("keydown",a,!1),i.addEventListener("focusin",s,!1),null==r||r.forEach((e=>e.addEventListener("focusin",s,!1))),null==r||r.forEach((e=>e.addEventListener("focusout",l,!1))),()=>{i.removeEventListener("keydown",a,!1),i.removeEventListener("focusin",s,!1),null==r||r.forEach((e=>e.removeEventListener("focusin",s,!1))),null==r||r.forEach((e=>e.removeEventListener("focusout",l,!1)))}}),[e,t]),E((()=>()=>{o.current&&cancelAnimationFrame(o.current)}),[o])}(l,n),function(e,t,n){const o=(0,r.useRef)("undefined"!=typeof document?Ke(ce(e.current?e.current[0]:void 0)):null);E((()=>{let r=e.current;const o=ce(r?r[0]:void 0);if(!t||n)return;let i=()=>{Vt&&!Qt(Vt,e)||!Xt(Ke(o),e.current)||(Vt=e)};return o.addEventListener("focusin",i,!1),null==r||r.forEach((e=>e.addEventListener("focusin",i,!1))),()=>{o.removeEventListener("focusin",i,!1),null==r||r.forEach((e=>e.removeEventListener("focusin",i,!1)))}}),[e,n]),E((()=>{const r=ce(e.current?e.current[0]:void 0);if(!t)return;let o=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!Gt(e)||t.isComposing)return;let n=r.activeElement;if(!Jt(n,e)||!nn(e))return;let o=ln.getTreeNode(e);if(!o)return;let i=o.nodeToRestore,a=on(r.body,{tabbable:!0});a.currentNode=n;let s=t.shiftKey?a.previousNode():a.nextNode();if(i&&i.isConnected&&i!==r.body||(i=void 0,o.nodeToRestore=void 0),(!s||!Jt(s,e))&&i){a.currentNode=i;do{s=t.shiftKey?a.previousNode():a.nextNode()}while(Jt(s,e));t.preventDefault(),t.stopPropagation(),s?Zt(s,!0):Yt(i)?Zt(i,!0):n.blur()}};return n||r.addEventListener("keydown",o,!0),()=>{n||r.removeEventListener("keydown",o,!0)}}),[e,t,n]),E((()=>{const n=ce(e.current?e.current[0]:void 0);if(!t)return;let r=ln.getTreeNode(e);var i;return r?(r.nodeToRestore=null!==(i=o.current)&&void 0!==i?i:void 0,()=>{let r=ln.getTreeNode(e);if(!r)return;let o=r.nodeToRestore,i=Ke(n);if(t&&o&&(i&&Jt(i,e)||i===n.body&&nn(e))){let t=ln.clone();requestAnimationFrame((()=>{if(n.activeElement===n.body){let n=t.getTreeNode(e);for(;n;){if(n.nodeToRestore&&n.nodeToRestore.isConnected)return void rn(n.nodeToRestore);n=n.parent}for(n=t.getTreeNode(e);n;){if(n.scopeRef&&n.scopeRef.current&&ln.getTreeNode(n.scopeRef))return void rn(en(n.scopeRef.current,!0));n=n.parent}}}))}}):void 0}),[e,t])}(l,o,n),function(e,t){const n=r.useRef(t);(0,r.useEffect)((()=>{if(n.current){Vt=e;const t=ce(e.current?e.current[0]:void 0);!Xt(Ke(t),Vt.current)&&e.current&&tn(e.current)}n.current=!1}),[e])}(l,i),(0,r.useEffect)((()=>{const e=Ke(ce(l.current?l.current[0]:void 0));let t=null;if(Xt(e,l.current)){for(let n of ln.traverse())n.scopeRef&&Xt(e,n.scopeRef.current)&&(t=n);t===ln.getTreeNode(l)&&(Vt=t.scopeRef)}}),[l]),E((()=>()=>{var e,t,n;let r=null!==(n=null===(t=ln.getTreeNode(l))||void 0===t||null===(e=t.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==n?n:null;l!==Vt&&!Qt(l,Vt)||r&&!ln.getTreeNode(r)||(Vt=r),ln.removeTreeNode(l)}),[l]);let d=(0,r.useMemo)((()=>function(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t;var s;let l=r||Ke(ce(null!==(s=n[0])&&void 0!==s?s:void 0)),u=n[0].previousElementSibling,c=on(qt(n),{tabbable:o,accept:a},n);c.currentNode=Xt(l,n)?l:u;let d=c.nextNode();return!d&&i&&(c.currentNode=u,d=c.nextNode()),d&&Zt(d,!0),d},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t;var s;let l=r||Ke(ce(null!==(s=n[0])&&void 0!==s?s:void 0)),u=n[n.length-1].nextElementSibling,c=on(qt(n),{tabbable:o,accept:a},n);c.currentNode=Xt(l,n)?l:u;let d=c.previousNode();return!d&&i&&(c.currentNode=u,d=c.previousNode()),d&&Zt(d,!0),d},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=on(qt(n),{tabbable:r,accept:o},n);i.currentNode=n[0].previousElementSibling;let a=i.nextNode();return a&&Zt(a,!0),a},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=on(qt(n),{tabbable:r,accept:o},n);i.currentNode=n[n.length-1].nextElementSibling;let a=i.previousNode();return a&&Zt(a,!0),a}}}(l)),[]),f=(0,r.useMemo)((()=>({focusManager:d,parentNode:c})),[c,d]);return r.createElement(jt.Provider,{value:f},r.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,r.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:s}))}function qt(e){return e[0].parentElement}function Gt(e){let t=ln.getTreeNode(Vt);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function Yt(e){return Jt(e)}function Xt(e,t){return!!e&&!!t&&t.some((t=>t.contains(e)))}function Jt(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of ln.traverse(ln.getTreeNode(t)))if(n&&Xt(e,n.current))return!0;return!1}function Qt(e,t){var n;let r=null===(n=ln.getTreeNode(t))||void 0===n?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function Zt(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch{}}else try{wt(e)}catch{}}function en(e,t=!0){let n=e[0].previousElementSibling,r=qt(e),o=on(r,{tabbable:t},e);o.currentNode=n;let i=o.nextNode();return t&&!i&&(r=qt(e),o=on(r,{tabbable:!1},e),o.currentNode=n,i=o.nextNode()),i}function tn(e,t=!0){Zt(en(e,t))}function nn(e){let t=ln.getTreeNode(Vt);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(null==t?void 0:t.scopeRef)===e}function rn(e){e.dispatchEvent(new CustomEvent(Bt,{bubbles:!0,cancelable:!0}))&&Zt(e)}function on(e,t,n){let r=(null==t?void 0:t.tabbable)?Ce:Ne,o=(null==e?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,i=ce(o),a=function(e,t,n,r){return We()?new Ut(e,t,n,r):e.createTreeWalker(t,n,r)}(i,e||i,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:!r(e)||!Kt(e)||n&&!Xt(e,n)||(null==t?void 0:t.accept)&&!t.accept(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}});return(null==t?void 0:t.from)&&(a.currentNode=t.from),a}class an{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(null!=t?t:null);if(!r)return;let o=new sn({scopeRef:e});r.addChild(o),o.parent=r,this.fastMap.set(e,o),n&&(o.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&Xt(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach((e=>n&&n.addChild(e)))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e;let t=new an;var n;for(let r of this.traverse())t.addTreeNode(r.scopeRef,null!==(n=null===(e=r.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==n?n:null,r.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new sn({scopeRef:null}),this.fastMap.set(null,this.root)}}class sn{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let ln=new an;const un=r.createContext(null);function cn(e){let t=M(),{portalContainer:n=(t?null:document.body),isExiting:o}=e,[i,a]=(0,r.useState)(!1),s=(0,r.useMemo)((()=>({contain:i,setContain:a})),[i,a]),{getContainer:l}=null!==(u=(0,r.useContext)(Wt))&&void 0!==u?u:{};var u;if(!e.portalContainer&&l&&(n=l()),!n)return null;let c=e.children;return e.disableFocusManagement||(c=r.createElement($t,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!o},c)),c=r.createElement(un.Provider,{value:s},r.createElement(zt,null,c)),Ve.createPortal(c,n)}function dn(){let e=(0,r.useContext)(un),t=null==e?void 0:e.setContain;E((()=>{null==t||t(!0)}),[t])}const fn=(0,r.createContext)(null),pn=(0,r.createContext)(null),mn=(0,r.forwardRef)((function(e,t){let n=e["aria-labelledby"];[e,t]=B(e,t,fn);let{dialogProps:o,titleProps:i}=function(e,t){let{role:n="dialog"}=e,o=D();o=e["aria-label"]?void 0:o;let i=(0,r.useRef)(!1);return(0,r.useEffect)((()=>{if(t.current&&!t.current.contains(document.activeElement)){wt(t.current);let e=setTimeout((()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),wt(t.current)),i.current=!1)}),500);return()=>{clearTimeout(e)}}}),[t]),dn(),{dialogProps:{...Q(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||o,onBlur:e=>{i.current&&e.stopPropagation()}},titleProps:{id:o}}}({...e,"aria-labelledby":n},t),a=(0,r.useContext)(pn);o["aria-label"]||o["aria-labelledby"]||(e["aria-labelledby"]?o["aria-labelledby"]=e["aria-labelledby"]:console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));let s=j({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(null==a?void 0:a.close)||(()=>{})}});return r.createElement("section",{...Q(e),...o,...s,ref:t,slot:e.slot||void 0},r.createElement(U,{values:[[Ht,{slots:{[K]:{},title:{...i,level:2}}}],[At,{slots:{[K]:{},close:{onPress:()=>null==a?void 0:a.close()}}}]]},s.children))}));let gn=new WeakMap,vn=[];function hn(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;if(e.target.closest("[data-react-aria-top-layer]"))return!1}return!!t.current&&!e.composedPath().includes(t.current)}const bn=[];function yn(e,t){let{onClose:n,shouldCloseOnBlur:o,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:l}=e;(0,r.useEffect)((()=>{if(i&&!bn.includes(t))return bn.push(t),()=>{let e=bn.indexOf(t);e>=0&&bn.splice(e,1)}}),[i,t]);let u=()=>{bn[bn.length-1]===t&&n&&n()};!function(e){let{ref:t,onInteractOutside:n,isDisabled:o,onInteractOutsideStart:i}=e,a=(0,r.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=w((e=>{n&&hn(e,t)&&(i&&i(e),a.current.isPointerDown=!0)})),l=w((e=>{n&&n(e)}));(0,r.useEffect)((()=>{let e=a.current;if(o)return;const n=t.current,r=ce(n);if("undefined"!=typeof PointerEvent){let n=n=>{e.isPointerDown&&hn(n,t)&&l(n),e.isPointerDown=!1};return r.addEventListener("pointerdown",s,!0),r.addEventListener("pointerup",n,!0),()=>{r.removeEventListener("pointerdown",s,!0),r.removeEventListener("pointerup",n,!0)}}{let n=n=>{e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:e.isPointerDown&&hn(n,t)&&l(n),e.isPointerDown=!1},o=n=>{e.ignoreEmulatedMouseEvents=!0,e.isPointerDown&&hn(n,t)&&l(n),e.isPointerDown=!1};return r.addEventListener("mousedown",s,!0),r.addEventListener("mouseup",n,!0),r.addEventListener("touchstart",s,!0),r.addEventListener("touchend",o,!0),()=>{r.removeEventListener("mousedown",s,!0),r.removeEventListener("mouseup",n,!0),r.removeEventListener("touchstart",s,!0),r.removeEventListener("touchend",o,!0)}}}),[t,o,s,l])}({ref:t,onInteractOutside:a&&i?e=>{l&&!l(e.target)||(bn[bn.length-1]===t&&(e.stopPropagation(),e.preventDefault()),u())}:void 0,onInteractOutsideStart:e=>{l&&!l(e.target)||bn[bn.length-1]===t&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:c}=Ct({isDisabled:!o,onBlurWithin:e=>{e.relatedTarget&&!Jt(e.relatedTarget,Vt)&&(l&&!l(e.relatedTarget)||null==n||n())}});return{overlayProps:{onKeyDown:e=>{"Escape"!==e.key||s||e.nativeEvent.isComposing||(e.stopPropagation(),e.preventDefault(),u())},...c},underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}function En(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function wn(e,t){let n=e;for(En(n,t)&&(n=n.parentElement);n&&!En(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}const Tn="undefined"!=typeof document&&window.visualViewport,Pn=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Ln,Sn=0;function Nn(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Cn(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function kn(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let e=wn(n);if(e!==document.documentElement&&e!==document.body&&e!==n){let t=e.getBoundingClientRect().top,r=n.getBoundingClientRect().top;r>t+n.clientHeight&&(e.scrollTop+=r-t)}n=e.parentElement}}function Rn(e,t,n){let{overlayProps:o,underlayProps:i}=yn({...e,isOpen:t.isOpen,onClose:t.close},n);return function(e={}){let{isDisabled:t}=e;E((()=>{if(!t)return Sn++,1===Sn&&(Ln=ie()?function(){let e,t,n=null,r=()=>{if(n)return;let e=window.pageXOffset,t=window.pageYOffset;n=y(Cn(window,"scroll",(()=>{window.scrollTo(0,0)})),Nn(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),Nn(document.documentElement,"overflow","hidden"),Nn(document.body,"marginTop",`-${t}px`),(()=>{window.scrollTo(e,t)})),window.scrollTo(0,0)},o=y(Cn(document,"touchstart",(n=>{e=wn(n.target,!0),e===document.documentElement&&e===document.body||e instanceof HTMLElement&&"auto"===window.getComputedStyle(e).overscrollBehavior&&(t=Nn(e,"overscrollBehavior","contain"))}),{passive:!1,capture:!0}),Cn(document,"touchmove",(t=>{e&&e!==document.documentElement&&e!==document.body?e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&t.preventDefault():t.preventDefault()}),{passive:!1,capture:!0}),Cn(document,"touchend",(()=>{t&&t()}),{passive:!1,capture:!0}),Cn(document,"focus",(e=>{let t=e.target;(function(e){return e instanceof HTMLInputElement&&!Pn.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable})(t)&&(r(),t.style.transform="translateY(-2000px)",requestAnimationFrame((()=>{t.style.transform="",Tn&&(Tn.height<window.innerHeight?requestAnimationFrame((()=>{kn(t)})):Tn.addEventListener("resize",(()=>kn(t)),{once:!0}))})))}),!0));return()=>{null==t||t(),null==n||n(),o()}}():y(Nn(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),Nn(document.documentElement,"overflow","hidden"))),()=>{Sn--,0===Sn&&Ln()}}),[t])}({isDisabled:!t.isOpen}),dn(),(0,r.useEffect)((()=>{if(t.isOpen&&n.current)return function(e,t=document.body){let n=new Set(e),r=new Set,o=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(t);let t=e=>{if(n.has(e)||e.parentElement&&r.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of n)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),a=t(e);if(a===NodeFilter.FILTER_ACCEPT&&i(e),a!==NodeFilter.FILTER_REJECT){let e=o.nextNode();for(;null!=e;)i(e),e=o.nextNode()}},i=e=>{var t;let n=null!==(t=gn.get(e))&&void 0!==t?t:0;"true"===e.getAttribute("aria-hidden")&&0===n||(0===n&&e.setAttribute("aria-hidden","true"),r.add(e),gn.set(e,n+1))};vn.length&&vn[vn.length-1].disconnect(),o(t);let a=new MutationObserver((e=>{for(let t of e)if("childList"===t.type&&0!==t.addedNodes.length&&![...n,...r].some((e=>e.contains(t.target)))){for(let e of t.removedNodes)e instanceof Element&&(n.delete(e),r.delete(e));for(let e of t.addedNodes)!(e instanceof HTMLElement||e instanceof SVGElement)||"true"!==e.dataset.liveAnnouncer&&"true"!==e.dataset.reactAriaTopLayer?e instanceof Element&&o(e):n.add(e)}}));a.observe(t,{childList:!0,subtree:!0});let s={visibleNodes:n,hiddenNodes:r,observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return vn.push(s),()=>{a.disconnect();for(let e of r){let t=gn.get(e);null!=t&&(1===t?(e.removeAttribute("aria-hidden"),gn.delete(e)):gn.set(e,t-1))}s===vn[vn.length-1]?(vn.pop(),vn.length&&vn[vn.length-1].observe()):vn.splice(vn.indexOf(s),1)}}([n.current])}),[t.isOpen,n]),{modalProps:z(o),underlayProps:i}}var xn;xn={"ar-AE":{dismiss:"تجاهل"},"bg-BG":{dismiss:"Отхвърляне"},"cs-CZ":{dismiss:"Odstranit"},"da-DK":{dismiss:"Luk"},"de-DE":{dismiss:"Schließen"},"el-GR":{dismiss:"Απόρριψη"},"en-US":{dismiss:"Dismiss"},"es-ES":{dismiss:"Descartar"},"et-EE":{dismiss:"Lõpeta"},"fi-FI":{dismiss:"Hylkää"},"fr-FR":{dismiss:"Rejeter"},"he-IL":{dismiss:"התעלם"},"hr-HR":{dismiss:"Odbaci"},"hu-HU":{dismiss:"Elutasítás"},"it-IT":{dismiss:"Ignora"},"ja-JP":{dismiss:"閉じる"},"ko-KR":{dismiss:"무시"},"lt-LT":{dismiss:"Atmesti"},"lv-LV":{dismiss:"Nerādīt"},"nb-NO":{dismiss:"Lukk"},"nl-NL":{dismiss:"Negeren"},"pl-PL":{dismiss:"Zignoruj"},"pt-BR":{dismiss:"Descartar"},"pt-PT":{dismiss:"Dispensar"},"ro-RO":{dismiss:"Revocare"},"ru-RU":{dismiss:"Пропустить"},"sk-SK":{dismiss:"Zrušiť"},"sl-SI":{dismiss:"Opusti"},"sr-SP":{dismiss:"Odbaci"},"sv-SE":{dismiss:"Avvisa"},"tr-TR":{dismiss:"Kapat"},"uk-UA":{dismiss:"Скасувати"},"zh-CN":{dismiss:"取消"},"zh-TW":{dismiss:"關閉"}};const Mn=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Fn=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function On(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(n)return"rtl"===n.direction;if(t.script)return Mn.has(t.script)}let t=e.split("-")[0];return Fn.has(t)}const In=Symbol.for("react-aria.i18n.locale");function An(){let e="undefined"!=typeof window&&window[In]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:On(e)?"rtl":"ltr"}}let Dn=An(),Hn=new Set;function Wn(){Dn=An();for(let e of Hn)e(Dn)}const zn=r.createContext(null);function Kn(){let e=function(){let e=M(),[t,n]=(0,r.useState)(Dn);return(0,r.useEffect)((()=>(0===Hn.size&&window.addEventListener("languagechange",Wn),Hn.add(n),()=>{Hn.delete(n),0===Hn.size&&window.removeEventListener("languagechange",Wn)})),[]),e?{locale:"en-US",direction:"ltr"}:t}();return(0,r.useContext)(zn)||e}const Un=Symbol.for("react-aria.i18n.locale"),jn=Symbol.for("react-aria.i18n.strings");let Bn;class Vn{getStringForLocale(e,t){let n=this.getStringsForLocale(t)[e];if(!n)throw new Error(`Could not find intl message ${e} in ${t} locale`);return n}getStringsForLocale(e){let t=this.strings[e];return t||(t=function(e,t,n="en-US"){if(t[e])return t[e];let r=function(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}(e);if(t[r])return t[r];for(let e in t)if(e.startsWith(r+"-"))return t[e];return t[n]}(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(e){if("undefined"==typeof window)return null;let t=window[Un];if(void 0===Bn){let e=window[jn];if(!e)return null;Bn={};for(let n in e)Bn[n]=new Vn({[t]:e[n]},t)}let n=null==Bn?void 0:Bn[e];if(!n)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(e,t="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter((([,e])=>e))),this.defaultLocale=t}}const $n=new Map,qn=new Map;class Gn{format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return"function"==typeof n?n(t,this):n}plural(e,t,n="cardinal"){let r=t["="+e];if(r)return"function"==typeof r?r():r;let o=this.locale+":"+n,i=$n.get(o);return i||(i=new Intl.PluralRules(this.locale,{type:n}),$n.set(o,i)),r=t[i.select(e)]||t.other,"function"==typeof r?r():r}number(e){let t=qn.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),qn.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return"function"==typeof n?n():n}constructor(e,t){this.locale=e,this.strings=t}}const Yn=new WeakMap;function Xn(e,t){let{locale:n}=Kn(),o=function(e,t){return t&&Vn.getGlobalDictionaryForPackage(t)||function(e){let t=Yn.get(e);return t||(t=new Vn(e),Yn.set(e,t)),t}(e)}(e,t);return(0,r.useMemo)((()=>new Gn(n,o)),[n,o])}const Jn={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Qn(e){let{children:t,elementType:n="div",isFocusable:o,style:i,...a}=e,{visuallyHiddenProps:s}=function(e={}){let{style:t,isFocusable:n}=e,[o,i]=(0,r.useState)(!1),{focusWithinProps:a}=Ct({isDisabled:!n,onFocusWithinChange:e=>i(e)});return{visuallyHiddenProps:{...a,style:(0,r.useMemo)((()=>o?t:t?{...Jn,...t}:Jn),[o])}}}(e);return r.createElement(n,z(a,s),t)}function Zn(e){let{onDismiss:t,...n}=e;var o;let i=function(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;if(n=_(n),o&&r){let e=new Set([n,...o.trim().split(/\s+/)]);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}}(n,Xn((o=xn)&&o.__esModule?o.default:o,"@react-aria/overlays").format("dismiss"));return r.createElement(Qn,null,r.createElement("button",{...i,tabIndex:-1,onClick:()=>{t&&t()},style:{width:1,height:1}}))}function er(e,t=!0){let[n,o]=(0,r.useState)(!0),i=n&&t;return E((()=>{if(i&&e.current&&"getAnimations"in e.current)for(let t of e.current.getAnimations())t instanceof CSSTransition&&t.cancel()}),[e,i]),nr(e,i,(0,r.useCallback)((()=>o(!1)),[])),i}function tr(e,t){let[n,o]=(0,r.useState)(t?"open":"closed");switch(n){case"open":t||o("exiting");break;case"closed":case"exiting":t&&o("open")}let i="exiting"===n;return nr(e,i,(0,r.useCallback)((()=>{o((e=>"exiting"===e?"closed":e))}),[])),i}function nr(e,t,n){E((()=>{if(t&&e.current){if(!("getAnimations"in e.current))return void n();let t=e.current.getAnimations();if(0===t.length)return void n();let r=!1;return Promise.all(t.map((e=>e.finished))).then((()=>{r||(0,Ve.flushSync)((()=>{n()}))})).catch((()=>{})),()=>{r=!0}}}),[e,t,n])}let rr="undefined"!=typeof document&&window.visualViewport;function or(){return{width:rr&&(null==rr?void 0:rr.width)||window.innerWidth,height:rr&&(null==rr?void 0:rr.height)||window.innerHeight}}function ir(e){let[t,n]=function(e,t,n){let[o,i]=(0,r.useState)(e||t),a=(0,r.useRef)(void 0!==e),s=void 0!==e;(0,r.useEffect)((()=>{let e=a.current;e!==s&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),a.current=s}),[s]);let l=s?e:o,u=(0,r.useCallback)(((e,...t)=>{let r=(e,...t)=>{n&&(Object.is(l,e)||n(e,...t)),s||(l=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(s?l:n,...o);return r(i,...t),s?n:i}))):(s||i(e),r(e,...t))}),[s,l,n]);return[l,u]}(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const o=(0,r.useCallback)((()=>{n(!0)}),[n]),i=(0,r.useCallback)((()=>{n(!1)}),[n]),a=(0,r.useCallback)((()=>{n(!t)}),[n,t]);return{isOpen:t,setOpen:n,open:o,close:i,toggle:a}}const ar=(0,r.createContext)(null),sr=(0,r.createContext)(null),lr=(0,r.forwardRef)((function(e,t){if((0,r.useContext)(sr))return r.createElement(fr,{...e,modalRef:t},e.children);let{isDismissable:n,isKeyboardDismissDisabled:o,isOpen:i,defaultOpen:a,onOpenChange:s,children:l,isEntering:u,isExiting:c,UNSTABLE_portalContainer:d,shouldCloseOnInteractOutside:f,...p}=e;return r.createElement(cr,{isDismissable:n,isKeyboardDismissDisabled:o,isOpen:i,defaultOpen:a,onOpenChange:s,isEntering:u,isExiting:c,UNSTABLE_portalContainer:d,shouldCloseOnInteractOutside:f},r.createElement(fr,{...p,modalRef:t},l))}));function ur(e,t){[e,t]=B(e,t,ar);let n=(0,r.useContext)(pn),o=ir(e),i=null==e.isOpen&&null==e.defaultOpen&&n?n:o,a=h(t),s=(0,r.useRef)(null),l=tr(a,i.isOpen),u=tr(s,i.isOpen),c=l||u||e.isExiting||!1,d=M();return!i.isOpen&&!c||d?null:r.createElement(dr,{...e,state:i,isExiting:c,overlayRef:a,modalRef:s})}const cr=(0,r.forwardRef)(ur);function dr({UNSTABLE_portalContainer:e,...t}){let n=t.modalRef,{state:o}=t,{modalProps:i,underlayProps:a}=Rn(t,o,n),s=er(t.overlayRef)||t.isEntering||!1,l=j({...t,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:s,isExiting:t.isExiting,state:o}}),u=function(){let e=M(),[t,n]=(0,r.useState)((()=>e?{width:0,height:0}:or()));return(0,r.useEffect)((()=>{let e=()=>{n((e=>{let t=or();return t.width===e.width&&t.height===e.height?e:t}))};return rr?rr.addEventListener("resize",e):window.addEventListener("resize",e),()=>{rr?rr.removeEventListener("resize",e):window.removeEventListener("resize",e)}}),[]),t}(),c={...l.style,"--visual-viewport-height":u.height+"px"};return r.createElement(cn,{isExiting:t.isExiting,portalContainer:e},r.createElement("div",{...z(Q(t),a),...l,style:c,ref:t.overlayRef,"data-entering":s||void 0,"data-exiting":t.isExiting||void 0},r.createElement(U,{values:[[sr,{modalProps:i,modalRef:n,isExiting:t.isExiting,isDismissable:t.isDismissable}],[pn,o]]},l.children)))}function fr(e){let{modalProps:t,modalRef:n,isExiting:o,isDismissable:i}=(0,r.useContext)(sr),a=(0,r.useContext)(pn),s=h((0,r.useMemo)((()=>b(e.modalRef,n)),[e.modalRef,n])),l=er(s),u=j({...e,defaultClassName:"react-aria-Modal",values:{isEntering:l,isExiting:o,state:a}});return r.createElement("div",{...z(Q(e),t),...u,ref:s,"data-entering":l||void 0,"data-exiting":o||void 0},i&&r.createElement(Zn,{onDismiss:a.close}),u.children)}const pr=window.wp.components;function mr(){return(0,r.createElement)(pr.SVG,{className:"givewp-donation-form-modal__close__icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},(0,r.createElement)(pr.Path,{stroke:"black",strokeWidth:"2",d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}))}function gr({dataSrc:e,embedId:t,buttonText:n,isFormRedirect:o,formViewUrl:a}){const[s,l]=(0,v.useState)(e),[u,c]=(0,v.useState)(o),[d,f]=(0,v.useState)(!1),[p,m]=(0,v.useState)(!1);(0,v.useEffect)((()=>{const e=e=>{"Escape"===e.key&&u&&b()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[u]),(0,v.useEffect)((()=>{const e=`link[rel="preload"][href="${s}"][as="document"]`;if(!document.querySelector(e)){const e=document.createElement("link");e.rel="preload",e.href=s,e.as="document",document.head.appendChild(e)}return()=>{const t=document.querySelector(e);t&&document.head.removeChild(t)}}),[s]),(0,v.useEffect)((()=>{p&&!d&&y()}),[p,d]);const h=()=>{!u&&o&&l(a)},b=()=>{c(!1),f(!1),h()},y=()=>{setTimeout((()=>{m(!1)}),2e3)};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(Dt,{type:"button",className:"givewp-donation-form-modal__open",onPress:()=>{m(!0),c(!0),f(!0),h()},isPending:d,"aria-label":d?(0,i.__)("Loading donation form","give"):(0,i.__)("Open donation form","give")},d&&(0,r.createElement)("span",{className:"givewp-donation-form-modal__open__spinner"},(0,r.createElement)(pr.Spinner,{style:{margin:"0 auto",verticalAlign:"middle"},"aria-label":(0,i.__)("In progress","give")})),(0,r.createElement)("span",{style:{margin:"0",visibility:d?"hidden":"visible"},"aria-hidden":d},n)),(0,r.createElement)(cr,{className:"givewp-donation-form-modal__overlay","data-loading":d,isOpen:u,onOpenChange:c,isDismissable:!0,isEntering:p},(0,r.createElement)(lr,{className:"givewp-donation-form-modal","data-loading":d},(0,r.createElement)($t,{contain:!0,restoreFocus:!0,autoFocus:!0},(0,r.createElement)(mn,{className:"givewp-donation-form-modal__dialog","aria-label":(0,i.__)("Donation Form","give"),role:"dialog","aria-modal":"true"},(0,r.createElement)("button",{"aria-label":(0,i.__)("Close donation form","give"),type:"button",className:"givewp-donation-form-modal__close",onClick:b,tabIndex:0},(0,r.createElement)(mr,null)),(0,r.createElement)("div",{className:"givewp-donation-form-modal__dialog__content"},(0,r.createElement)(g,{title:(0,i.__)("Donation Form","give"),id:t,src:s,checkOrigin:!1,heightCalculationMethod:"taggedElement",style:{minWidth:"100%",border:"none"},onInit:e=>{e.iFrameResizer.resize(),f(!1)}})))))))}var vr=n(36457);const hr=["donation-confirmation-receipt-view"],br=e=>{const t=new URL(e);return n=new URLSearchParams(t.search),r=hr,n.has("givewp-route")&&r.includes(n.get("givewp-route"));var n,r};function yr({formFormat:e,dataSrc:t,embedId:n,openFormButton:o,formUrl:a,formViewUrl:s}){const l=br(t);return"newTab"===e?(0,r.createElement)("a",{className:"givewp-donation-form-link",href:a,target:"_blank",rel:"noopener noreferrer","aria-label":`${o} ${(0,i.__)("Opens in a new tab","give")}`},o):"modal"===e||"reveal"===e?(0,r.createElement)(gr,{buttonText:o,dataSrc:t,embedId:n,isFormRedirect:l,formViewUrl:s}):(0,r.createElement)(g,{title:(0,i.__)("Donation Form","give"),id:n,src:t,checkOrigin:!1,heightCalculationMethod:"taggedElement",style:{width:"1px",minWidth:"100%",border:"0"}})}const Er=document.querySelectorAll(".root-data-givewp-embed");Er?.forEach((e=>{(0,vr.A)(e)}))},36457:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(51609),o=n(5338),i=n(8812);function a(e){let t=e.getAttribute("data-src");const n=e.getAttribute("data-form-locale");if(n){const e=new URL(t);e.searchParams.set("locale",n),t=e.toString()}const a=t,s=e.getAttribute("data-givewp-embed-id"),l=e.getAttribute("data-form-format"),u=e.getAttribute("data-open-form-button"),c=e.getAttribute("data-form-url"),d=e.getAttribute("data-form-view-url");(0,o.H)(e).render((0,r.createElement)(i.A,{openFormButton:u,formFormat:l,dataSrc:a,embedId:s,formUrl:c,formViewUrl:d}))}},2694:(e,t,n)=>{"use strict";var r=n(6925);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5556:(e,t,n)=>{e.exports=n(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5338:(e,t,n)=>{"use strict";var r=n(75795);t.H=r.createRoot,r.hydrateRoot},51609:e=>{"use strict";e.exports=window.React},75795:e=>{"use strict";e.exports=window.ReactDOM}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(36457);class t extends elementorModules.frontend.handlers.Base{render(){const t=document.querySelectorAll(`[data-id="${this.getID()}"] .root-data-givewp-embed`);t?.forEach((t=>{(0,e.A)(t)}))}onInit(){this.render()}}window.addEventListener("elementor/frontend/init",(()=>{elementorFrontend.hooks.addAction("frontend/element_ready/givewp_donation_form.default",(e=>{elementorFrontend.elementsHandler.addHandler(t,{$element:e})}))}))})()})();