DonationForms
2 years ago
EventTickets
2 years ago
fonts
2 years ago
images
2 years ago
adminBlocks.asset.php
2 years ago
adminBlocks.css
2 years ago
adminBlocks.js
2 years ago
baseFormDesignCss.asset.php
2 years ago
baseFormDesignCss.css
2 years ago
baseFormDesignCss.js
2 years ago
classicFormDesignCss.asset.php
2 years ago
classicFormDesignCss.css
2 years ago
classicFormDesignCss.js
2 years ago
classicFormDesignJs.asset.php
2 years ago
classicFormDesignJs.js
2 years ago
donationConfirmationReceiptApp.asset.php
2 years ago
donationConfirmationReceiptApp.js
2 years ago
donationFormApp.asset.php
2 years ago
donationFormApp.css
2 years ago
donationFormApp.js
2 years ago
donationFormBlock.asset.php
2 years ago
donationFormBlock.css
2 years ago
donationFormBlock.js
2 years ago
donationFormBlockApp.asset.php
2 years ago
donationFormBlockApp.css
2 years ago
donationFormBlockApp.js
2 years ago
donationFormEmbed.asset.php
2 years ago
donationFormEmbed.js
2 years ago
donationFormEmbedInside.asset.php
2 years ago
donationFormEmbedInside.js
2 years ago
donationFormRegistrars.asset.php
2 years ago
donationFormRegistrars.css
2 years ago
donationFormRegistrars.js
2 years ago
eventTicketsBlock.asset.php
2 years ago
eventTicketsBlock.css
2 years ago
eventTicketsBlock.js
2 years ago
eventTicketsTemplate.asset.php
2 years ago
eventTicketsTemplate.css
2 years ago
eventTicketsTemplate.js
2 years ago
formBuilderApp.asset.php
2 years ago
formBuilderApp.css
2 years ago
formBuilderApp.js
2 years ago
formBuilderRegistrars.asset.php
2 years ago
formBuilderRegistrars.css
2 years ago
formBuilderRegistrars.js
2 years ago
multiStepFormDesignCss.asset.php
2 years ago
multiStepFormDesignCss.css
2 years ago
multiStepFormDesignCss.js
2 years ago
offlineGateway.asset.php
2 years ago
offlineGateway.js
2 years ago
offlineGatewayFormBuilder.asset.php
2 years ago
offlineGatewayFormBuilder.css
2 years ago
offlineGatewayFormBuilder.js
2 years ago
payPalCommerceGateway.asset.php
2 years ago
payPalCommerceGateway.js
2 years ago
payPalStandardGateway.asset.php
2 years ago
payPalStandardGateway.js
2 years ago
stripePaymentElementFormBuilder.asset.php
2 years ago
stripePaymentElementFormBuilder.css
2 years ago
stripePaymentElementFormBuilder.js
2 years ago
stripePaymentElementGateway.asset.php
2 years ago
stripePaymentElementGateway.js
2 years ago
style-adminBlocks.css
2 years ago
style-formBuilderApp.css
2 years ago
testGateway.asset.php
2 years ago
testGateway.js
2 years ago
testOffsiteGateway.asset.php
2 years ago
testOffsiteGateway.js
2 years ago
twoPanelStepsFormLayoutCss.asset.php
2 years ago
twoPanelStepsFormLayoutCss.css
2 years ago
twoPanelStepsFormLayoutCss.js
2 years ago
donationFormBlockApp.js
2 lines
| 1 | !function(){var e={2703:function(e,t,n){"use strict";var r=n(414);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}},5697:function(e,t,n){e.exports=n(2703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3250:function(e,t,n){"use strict";var r=n(9196),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,u=r.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}"undefined"==typeof window||void 0===window.document||window.document.createElement;void 0!==r.useSyncExternalStore&&r.useSyncExternalStore},1688:function(e,t,n){"use strict";n(3250)},9196:function(e){"use strict";e.exports=window.React}},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=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(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=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=window.wp.element,t=n(5697),r=n.n(t),o=n(9196),i=n.n(o);function a(){return a=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},a.apply(this,arguments)}function s(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 u,l,c=(u=function(e){!function(t){if("undefined"!=typeof window){var n,r=0,o=!1,i=!1,a=7,s="[iFrameSizer]",u=s.length,l=null,c=window.requestAnimationFrame,d={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},f={},p=null,m={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(){T("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}},g={};window.jQuery&&((n=window.jQuery).fn?n.fn.iFrameResize||(n.fn.iFrameResize=function(e){return this.filter("iframe").each((function(t,n){A(n,e)})).end()}):E("","Unable to bind to jQuery, it is not fully loaded.")),"function"==typeof t&&t.amd?t([],B):e.exports=B(),window.iFrameResize=window.iFrameResize||B()}function v(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function h(e,t,n){e.addEventListener(t,n,!1)}function b(e,t,n){e.removeEventListener(t,n,!1)}function y(e){return f[e]?f[e].log:o}function w(e,t){P("log",e,t,y(e))}function E(e,t){P("info",e,t,y(e))}function T(e,t){P("warn",e,t,!0)}function P(e,t,n,r){!0===r&&"object"==typeof window.console&&console[e](function(e){return s+"["+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 S(e){function t(){n("Height"),n("Width"),N((function(){O(W),L(H),m("onResized",W)}),W,"init")}function n(e){var t=Number(f[H]["max"+e]),n=Number(f[H]["min"+e]),r=e.toLowerCase(),o=Number(W[r]);w(H,"Checking "+r+" is in range "+n+"-"+t),o<n&&(o=n,w(H,"Set "+r+" to min value")),o>t&&(o=t,w(H,"Set "+r+" to max value")),W[r]=""+o}function r(e){return z.substr(z.indexOf(":")+a+e)}function o(e,t){var n,r;n=function(){var n,r;I("Send Page Info","pageInfo:"+(n=document.body.getBoundingClientRect(),r=W.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)},g[r=t]||(g[r]=setTimeout((function(){g[r]=null,n()}),32))}function i(e){var t=e.getBoundingClientRect();return x(H),{x:Math.floor(Number(t.left)+Number(l.x)),y:Math.floor(Number(t.top)+Number(l.y))}}function c(e){var t=e?i(W.iframe):{x:0,y:0},n={x:Number(W.width)+t.x,y:Number(W.height)+t.y};w(H,"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):T(H,"Unable to scroll to requested position, window.parentIFrame not found"):(l=n,d(),w(H,"--"))}function d(){!1!==m("onScroll",l)?L(H):k()}function p(e){m(e,{iframe:W.iframe,screenX:W.width,screenY:W.height,type:W.type})}function m(e,t){return R(H,e,t)}var v,y,P,S,C,A,z=e.data,W={},H=null;"[iFrameResizerChild]Ready"===z?function(){for(var e in f)I("iFrame requested init",D(e),f[e].iframe,e)}():s===(""+z).substr(0,u)&&z.substr(u).split(":")[0]in f?(S=(P=z.substr(u).split(":"))[1]?parseInt(P[1],10):0,C=f[P[0]]&&f[P[0]].iframe,A=getComputedStyle(C),W={iframe:C,id:P[0],height:S+function(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}(A)+function(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}(A),width:P[2],type:P[3]},H=W.id,f[H]&&(f[H].loaded=!0),(y=W.type in{true:1,false:1,undefined:1})&&w(H,"Ignoring init message from meta parent page"),!y&&function(e){var t=!0;return f[e]||(t=!1,T(W.type+" No settings for "+e+". Message was: "+z)),t}(H)&&(w(H,"Received: "+z),v=!0,null===W.iframe&&(T(H,"IFrame ("+W.id+") not found"),v=!1),v&&function(){var t,n=e.origin,r=f[H]&&f[H].checkOrigin;if(r&&""+n!="null"&&!(r.constructor===Array?function(){var e=0,t=!1;for(w(H,"Checking connection is from allowed list of origins: "+r);e<r.length;e++)if(r[e]===n){t=!0;break}return t}():(t=f[H]&&f[H].remoteHost,w(H,"Checking connection is from: "+t),n===t)))throw new Error("Unexpected message received from: "+n+" for "+W.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(f[H]&&f[H].firstRun&&f[H]&&(f[H].firstRun=!1),W.type){case"close":M(W.iframe);break;case"message":u=r(6),w(H,"onMessage passed: {iframe: "+W.iframe.id+", message: "+u+"}"),m("onMessage",{iframe:W.iframe,message:JSON.parse(u)}),w(H,"--");break;case"mouseenter":p("onMouseEnter");break;case"mouseleave":p("onMouseLeave");break;case"autoResize":f[H].autoResize=JSON.parse(r(9));break;case"scrollTo":c(!1);break;case"scrollToOffset":c(!0);break;case"pageInfo":o(f[H]&&f[H].iframe,H),function(){function e(e,r){function i(){f[n]?o(f[n].iframe,n):t()}["scroll","resize"].forEach((function(t){w(n,e+t+" listener for sendPageInfo"),r(window,t,i)}))}function t(){e("Remove ",b)}var n=H;e("Add ",h),f[n]&&(f[n].stopPageInfo=t)}();break;case"pageInfoStop":f[H]&&f[H].stopPageInfo&&(f[H].stopPageInfo(),delete f[H].stopPageInfo);break;case"inPageLink":n=r(9).split("#")[1]||"",a=decodeURIComponent(n),(s=document.getElementById(a)||document.getElementsByName(a)[0])?(e=i(s),w(H,"Moving to in page link (#"+n+") at x: "+e.x+" y: "+e.y),l={x:e.x,y:e.y},d(),w(H,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(n):w(H,"In page link #"+n+" not found and window.parentIFrame not found"):w(H,"In page link #"+n+" not found");break;case"reset":F(W);break;case"init":t(),m("onInit",W.iframe);break;default:t()}var e,n,a,s,u}())):E(H,"Ignored: "+z)}function R(e,t,n){var r=null,o=null;if(f[e]){if("function"!=typeof(r=f[e][t]))throw new TypeError(t+" on iFrame["+e+"] is not a function");o=r(n)}return o}function C(e){var t=e.id;delete f[t]}function M(e){var t=e.id;if(!1!==R(t,"onClose",t)){w(t,"Removing iFrame: "+t);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){T(e)}R(t,"onClosed",t),w(t,"--"),C(e)}else w(t,"Close iframe cancelled by onClose event")}function x(e){null===l&&w(e,"Get page position: "+(l={x:window.pageXOffset!==t?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==t?window.pageYOffset:document.documentElement.scrollTop}).x+","+l.y)}function L(e){null!==l&&(window.scrollTo(l.x,l.y),w(e,"Set page position: "+l.x+","+l.y),k())}function k(){l=null}function F(e){w(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),x(e.id),N((function(){O(e),I("reset","reset",e.iframe,e.id)}),e,"reset")}function O(e){function t(t){i||"0"!==e[t]||(i=!0,w(r,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(f).forEach((function(e){!function(e){function t(t){return"0px"===(f[e]&&f[e].iframe.style[t])}f[e]&&null!==f[e].iframe.offsetParent&&(t("height")||t("width"))&&I("Visibility change","resize",f[e].iframe,e)}(e)}))}function t(t){w("window","Mutation observed: "+t[0].target+" "+t[0].type),z(e,16)}var n,r=v();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",w(e.id,"IFrame ("+r+") "+t+" set to "+e[t]+"px")):w("undefined","messageData id not set")}(n),t(n)}var r=e.iframe.id;f[r]&&(f[r].sizeHeight&&n("height"),f[r].sizeWidth&&n("width"))}function N(e,t,n){n!==t.type&&c&&!window.jasmine?(w(t.id,"Requesting animation frame"),c(e)):e()}function I(e,t,n,r,o){var i,a=!1;r=r||n.id,f[r]&&(n&&"contentWindow"in n&&null!==n.contentWindow?(i=f[r]&&f[r].targetOrigin,w(r,"["+e+"] Sending msg to iframe["+r+"] ("+t+") targetOrigin: "+i),n.contentWindow.postMessage(s+t,i)):T(r,"["+e+"] IFrame("+r+") not found"),o&&f[r]&&f[r].warningTimeout&&(f[r].msgTimeout=setTimeout((function(){!f[r]||f[r].loaded||a||(a=!0,T(r,"IFrame has not responded within "+f[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."))}),f[r].warningTimeout)))}function D(e){return e+":"+f[e].bodyMarginV1+":"+f[e].sizeWidth+":"+f[e].log+":"+f[e].interval+":"+f[e].enablePublicMethods+":"+f[e].autoResize+":"+f[e].bodyMargin+":"+f[e].heightCalculationMethod+":"+f[e].bodyBackground+":"+f[e].bodyPadding+":"+f[e].tolerance+":"+f[e].inPageLinks+":"+f[e].resizeFrom+":"+f[e].widthCalculationMethod}function A(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],T(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||m.id+r++,null!==document.getElementById(i)&&(i+=r++),t=i),o=(n||{}).log,w(t,"Added missing iframe ID: "+t+" ("+e.src+")")),t}(e.id);a in f&&"iFrameResizer"in e?T(a,"Ignored iFrame, already setup."):(function(t){var n;t=t||{},f[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 m)Object.prototype.hasOwnProperty.call(m,t)&&(f[a][t]=Object.prototype.hasOwnProperty.call(e,t)?e[t]:m[t])}(t),f[a]&&(f[a].targetOrigin=!0===f[a].checkOrigin?""===(n=f[a].remoteHost)||null!==n.match(/^(about:blank|javascript:|file:\/\/)/)?"*":n:"*")}(n),function(){switch(w(a,"IFrame scrolling "+(f[a]&&f[a].scrolling?"enabled":"disabled")+" for "+a),e.style.overflow=!1===(f[a]&&f[a].scrolling)?"hidden":"auto",f[a]&&f[a].scrolling){case"omit":break;case!0:e.scrolling="yes";break;case!1:e.scrolling="no";break;default:e.scrolling=f[a]?f[a].scrolling:"no"}}(),function(){function t(t){1/0!==f[a][t]&&0!==f[a][t]&&(e.style[t]=f[a][t]+"px",w(a,"Set "+t+" = "+f[a][t]+"px"))}function n(e){if(f[a]["min"+e]>f[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(f[a]&&f[a].bodyMargin)&&"0"!==(f[a]&&f[a].bodyMargin)||(f[a].bodyMarginV1=f[a].bodyMargin,f[a].bodyMargin=f[a].bodyMargin+"px"),function(n){var r=v();r&&function(t){e.parentNode&&new t((function(t){t.forEach((function(t){Array.prototype.slice.call(t.removedNodes).forEach((function(t){t===e&&M(e)}))}))})).observe(e.parentNode,{childList:!0})}(r),h(e,"load",(function(){var r,o;I("iFrame.onload",n,e,t,!0),r=f[a]&&f[a].firstRun,o=f[a]&&f[a].heightCalculationMethod in d,!r&&o&&F({iframe:e,height:0,width:0,type:"init"})})),I("init",n,e,t,!0)}(D(a)),f[a]&&(f[a].iframe.iFrameResizer={close:M.bind(null,f[a].iframe),removeListeners:C.bind(null,f[a].iframe),resize:I.bind(null,"Window resize","resize",f[a].iframe),moveToAnchor:function(e){I("Move to anchor","moveToAnchor:"+e,f[a].iframe,a)},sendMessage:function(e){I("Send Message","message:"+(e=JSON.stringify(e)),f[a].iframe,a)}}))}function z(e,t){null===p&&(p=setTimeout((function(){p=null,e()}),t))}function W(){"hidden"!==document.visibilityState&&(w("document","Trigger event: Visiblity change"),z((function(){H("Tab Visable","resize")}),16))}function H(e,t){Object.keys(f).forEach((function(n){(function(e){return f[e]&&"parent"===f[e].resizeFrom&&f[e].autoResize&&!f[e].firstRun})(n)&&I(e,t,f[n].iframe,n)}))}function B(){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+">")}(),A(t,e),n.push(t))}var n;return function(){var e,t=["moz","webkit","o","ms"];for(e=0;e<t.length&&!c;e+=1)c=window[t[e]+"RequestAnimationFrame"];c?c=c.bind(window):w("setup","RequestAnimationFrame not supported")}(),h(window,"message",S),h(window,"resize",(function(){w("window","Trigger event: resize"),z((function(){H("Window resize","resize")}),16)})),h(document,"visibilitychange",W),h(document,"-webkit-visibilitychange",W),function(r,o){switch(n=[],function(e){e&&e.enablePublicMethods&&T("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}}}()},u(l={exports:{}}),l.exports),d=function(){},f=function(e){var t=e.title,n=e.forwardRef,r=s(e,["title","forwardRef"]),u=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,s(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"])}(r),l=(0,o.useRef)(null),f=function(){return d(!l.current,"[iframeSizerReact]["+(l&&l.current&&l.current.id)+"] Close event ignored, to remove the iframe update your React component"),!l.current};return(0,o.useEffect)((function(){var e=l.current;return c(a({},r,{onClose:f}),e),function(){return e.iFrameResizer&&e.iFrameResizer.removeListeners()}}),[]),(0,o.useImperativeHandle)(n,(function(){return{resize:function(){return l.current.iFrameResizer.resize()},moveToAnchor:function(e){return l.current.iFrameResizer.moveToAnchor(e)},sendMessage:function(e,t){l.current.iFrameResizer.sendMessage(e,t)}}})),i().createElement("iframe",a({title:t},u,{ref:l}))};f.defaultProps={title:"iframe"},f.propTypes={title:r().string};var p=f;const m={prefix:String(Math.round(1e10*Math.random())),current:0,isSSR:!1},g=o.createContext(m);let v=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),h=new WeakMap;const b="function"==typeof o.useId?function(e){let t=o.useId(),[n]=(0,o.useState)(T());return e||`${n?"react-aria":`react-aria${m.prefix}`}-${t}`}:function(e){let t=(0,o.useContext)(g);t!==m||v||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,o.useContext)(g),n=(0,o.useRef)(null);if(null===n.current&&!e){var r,i;let e=null===(r=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===r||null===(i=r.ReactCurrentOwner)||void 0===i?void 0:i.current;if(e){let n=h.get(e);null==n?h.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,h.delete(e))}n.current=++t.current}return n.current}(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`};function y(){return!1}function w(){return!0}function E(e){return()=>{}}function T(){return"function"==typeof o.useSyncExternalStore?o.useSyncExternalStore(E,y,w):(0,o.useContext)(g).isSSR}function P(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=P(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}var S=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=P(e))&&(r&&(r+=" "),r+=t);return r};const R="undefined"!=typeof document?o.useLayoutEffect:()=>{};let C=new Map;function M(e){let[t,n]=(0,o.useState)(e),r=(0,o.useRef)(null),i=b(t),a=(0,o.useCallback)((e=>{r.current=e}),[]);return C.set(i,a),R((()=>{let e=i;return()=>{C.delete(e)}}),[i]),(0,o.useEffect)((()=>{let e=r.current;e&&(r.current=null,n(e))})),i}function x(e,t){if(e===t)return e;let n=C.get(e);if(n)return n(t),t;let r=C.get(t);return r?(r(e),e):t}function L(e=[]){let t=M(),[n,r]=function(e){let[t,n]=(0,o.useState)(e),r=(0,o.useRef)(t),i=(0,o.useRef)(null),a=(0,o.useCallback)((()=>{let e=i.current.next();for(;!e.done&&r.current===e.value;)e=i.current.next();e.done?i.current=null:(n(e.value),r.current=e.value)}),[n,r,i]);R((()=>{i.current&&a()}));let s=(0,o.useCallback)((e=>{i.current=e(r.current),a()}),[a,i,r]);return[t,s]}(t),i=(0,o.useCallback)((()=>{r((function*(){yield t,yield document.getElementById(t)?t:void 0}))}),[t,r]);return R(i,[t,i,...e]),n}function k(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}function F(...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]=k(n,o):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof o?"id"===e&&n&&o?t.id=x(n,o):t[e]=void 0!==o?o:n:t[e]=S(n,o)}}return t}function O(...e){return 1===e.length?e[0]:t=>{for(let n of e)"function"==typeof n?n(t):null!=n&&(n.current=t)}}const N=new Set(["id"]),I=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),D=/^(data-.*)$/;function A(e,t={}){let{labelable:n,propNames:r}=t,o={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(N.has(t)||n&&I.has(t)||(null==r?void 0:r.has(t))||D.test(t))&&(o[t]=e[t]);return o}function z(e){if(function(){if(null==W){W=!1;try{document.createElement("div").focus({get preventScroll(){return W=!0,!0}})}catch(e){}}return W}())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)}}let W=null,H=new Map,B=new Set;function K(){if("undefined"==typeof window)return;let e=t=>{let n=H.get(t.target);if(n&&(n.delete(t.propertyName),0===n.size&&(t.target.removeEventListener("transitioncancel",e),H.delete(t.target)),0===H.size)){for(let e of B)e();B.clear()}};document.body.addEventListener("transitionrun",(t=>{let n=H.get(t.target);n||(n=new Set,H.set(t.target,n),t.target.addEventListener("transitioncancel",e)),n.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}function _(e){requestAnimationFrame((()=>{0===H.size?e():B.add(e)}))}function U(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;if(n=M(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}}function j(e){const t=(0,o.useRef)();return(0,o.useMemo)((()=>({get current(){return t.current},set current(n){t.current=n,"function"==typeof e?e(n):e&&(e.current=n)}})),[e])}function V(e,t){R((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}}),[e,t])}function q(e){for($(e)&&(e=e.parentElement);e&&!$(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function $(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}"undefined"!=typeof document&&("loading"!==document.readyState?K():document.addEventListener("DOMContentLoaded",K));let Y="undefined"!=typeof document&&window.visualViewport;function G(){return{width:(null==Y?void 0:Y.width)||window.innerWidth,height:(null==Y?void 0:Y.height)||window.innerHeight}}function X(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 J(){return X(/^Mac/i)}function Q(){return X(/^iPhone/i)||X(/^iPad/i)||J()&&navigator.maxTouchPoints>1}function Z(e){const t=(0,o.useRef)(null);return R((()=>{t.current=e}),[e]),(0,o.useCallback)(((...e)=>(0,t.current)(...e)),[])}function ee(e){return!(0!==e.mozInputSource||!e.isTrusted)||(t=/Android/i,"undefined"!=typeof window&&null!=window.navigator&&((null===(n=window.navigator.userAgentData)||void 0===n?void 0:n.brands.some((e=>t.test(e.brand))))||t.test(window.navigator.userAgent))&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType);var t,n}function te(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function ne(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,te(e,t,"set"),n),n}new Map;let re="default",oe="",ie=new WeakMap;function ae(e){Q()?("default"===re&&(oe=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),re="disabled"):(e instanceof HTMLElement||e instanceof SVGElement)&&(ie.set(e,e.style.userSelect),e.style.userSelect="none")}function se(e){if(Q()){if("disabled"!==re)return;re="restoring",setTimeout((()=>{_((()=>{"restoring"===re&&("none"===document.documentElement.style.webkitUserSelect&&(document.documentElement.style.webkitUserSelect=oe||""),oe="",re="default")}))}),300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&ie.has(e)){let t=ie.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),ie.delete(e)}}const ue=o.createContext(null);ue.displayName="PressResponderContext";var le=new WeakMap;class ce{continuePropagation(){ne(this,le,!1)}get shouldStopPropagation(){return function(e,t){return t.get?t.get.call(e):t.value}(this,te(this,le,"get"))}constructor(e,t,n){var r,o,i;i={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")}(r=this,o=le),o.set(r,i),ne(this,le,!0),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}}function de(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,isDisabled:s,isPressed:u,preventFocusOnPress:l,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:f,...p}=function(e){let t=(0,o.useContext)(ue);if(t){let{register:n,...r}=t;e=F(r,e),n()}return V(t,e.ref),e}(e),[m,g]=(0,o.useState)(!1),v=(0,o.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:h,removeAllGlobalListeners:b}=function(){let e=(0,o.useRef)(new Map),t=(0,o.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,r,o)}),[]),n=(0,o.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)}),[]),r=(0,o.useCallback)((()=>{e.current.forEach(((e,t)=>{n(e.eventTarget,e.type,t,e.options)}))}),[n]);return(0,o.useEffect)((()=>r),[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}(),y=Z(((e,t)=>{let o=v.current;if(s||o.didFirePressStart)return;let i=!0;if(r){let n=new ce("pressstart",t,e);r(n),i=n.shouldStopPropagation}return n&&n(!0),o.didFirePressStart=!0,g(!0),i})),w=Z(((e,r,o=!0)=>{let a=v.current;if(!a.didFirePressStart)return;a.ignoreClickAfterPress=!0,a.didFirePressStart=!1;let u=!0;if(i){let t=new ce("pressend",r,e);i(t),u=t.shouldStopPropagation}if(n&&n(!1),g(!1),t&&o&&!s){let n=new ce("press",r,e);t(n),u&&(u=n.shouldStopPropagation)}return u})),E=Z(((e,t)=>{if(!s){if(a){let n=new ce("pressup",t,e);return a(n),n.shouldStopPropagation}return!0}})),T=Z((e=>{let t=v.current;t.isPressed&&(t.isOverTarget&&w(ge(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,b(),d||se(t.target))})),P=Z((e=>{c&&T(e)})),S=(0,o.useMemo)((()=>{let e=v.current,t={onKeyDown(t){if(pe(t.nativeEvent,t.currentTarget)&&t.currentTarget.contains(t.target)){be(t.target,t.key)&&t.preventDefault();let r=!0;e.isPressed||t.repeat||(e.target=t.currentTarget,e.isPressed=!0,r=y(t,"keyboard"),h(document,"keyup",n,!1)),r&&t.stopPropagation()}else"Enter"===t.key&&fe(t.currentTarget)&&t.stopPropagation()},onKeyUp(t){pe(t.nativeEvent,t.currentTarget)&&!t.repeat&&t.currentTarget.contains(t.target)&&E(ge(e.target,t),"keyboard")},onClick(t){if((!t||t.currentTarget.contains(t.target))&&t&&0===t.button){let n=!0;if(s&&t.preventDefault(),!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&("virtual"===e.pointerType||ee(t.nativeEvent))){s||l||z(t.currentTarget);let e=y(t,"virtual"),r=E(t,"virtual"),o=w(t,"virtual");n=e&&r&&o}e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1,n&&t.stopPropagation()}}},n=t=>{if(e.isPressed&&pe(t,e.target)){be(t.target,t.key)&&t.preventDefault(),e.isPressed=!1;let n=t.target,r=w(ge(e.target,t),"keyboard",e.target.contains(n));b(),r&&t.stopPropagation(),e.target instanceof HTMLElement&&e.target.contains(n)&&(fe(e.target)||"link"===e.target.getAttribute("role"))&&e.target.click()}};if("undefined"!=typeof PointerEvent){t.onPointerDown=t=>{if(0!==t.button||!t.currentTarget.contains(t.target))return;if(0===(i=t.nativeEvent).width&&0===i.height||1===i.width&&1===i.height&&0===i.pressure&&0===i.detail&&"mouse"===i.pointerType)return void(e.pointerType="virtual");var i;he(t.currentTarget)&&t.preventDefault(),e.pointerType=t.pointerType;let a=!0;e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,s||l||z(t.currentTarget),d||ae(e.target),a=y(t,e.pointerType),h(document,"pointermove",n,!1),h(document,"pointerup",r,!1),h(document,"pointercancel",o,!1)),a&&t.stopPropagation()},t.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(he(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},t.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&ve(t,t.currentTarget)&&E(t,e.pointerType||t.pointerType)};let n=t=>{t.pointerId===e.activePointerId&&(ve(t,e.target)?e.isOverTarget||(e.isOverTarget=!0,y(ge(e.target,t),e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,w(ge(e.target,t),e.pointerType,!1),P(t)))},r=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&(ve(t,e.target)?w(ge(e.target,t),e.pointerType):e.isOverTarget&&w(ge(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,b(),d||se(e.target))},o=e=>{T(e)};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&T(e)}}else{t.onMouseDown=t=>{0===t.button&&t.currentTarget.contains(t.target)&&(he(t.currentTarget)&&t.preventDefault(),e.ignoreEmulatedMouseEvents?t.stopPropagation():(e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=ee(t.nativeEvent)?"virtual":"mouse",s||l||z(t.currentTarget),y(t,e.pointerType)&&t.stopPropagation(),h(document,"mouseup",n,!1)))},t.onMouseEnter=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!0,n=y(t,e.pointerType)),n&&t.stopPropagation()},t.onMouseLeave=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!1,n=w(t,e.pointerType,!1),P(t)),n&&t.stopPropagation()},t.onMouseUp=t=>{t.currentTarget.contains(t.target)&&(e.ignoreEmulatedMouseEvents||0!==t.button||E(t,e.pointerType))};let n=t=>{0===t.button&&(e.isPressed=!1,b(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(ve(t,e.target)?w(ge(e.target,t),e.pointerType):e.isOverTarget&&w(ge(e.target,t),e.pointerType,!1),e.isOverTarget=!1))};t.onTouchStart=t=>{if(!t.currentTarget.contains(t.target))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",s||l||z(t.currentTarget),d||ae(e.target),y(t,e.pointerType)&&t.stopPropagation(),h(window,"scroll",r,!0))},t.onTouchMove=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=me(t.nativeEvent,e.activePointerId),r=!0;n&&ve(n,t.currentTarget)?e.isOverTarget||(e.isOverTarget=!0,r=y(t,e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,r=w(t,e.pointerType,!1),P(t)),r&&t.stopPropagation()},t.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=me(t.nativeEvent,e.activePointerId),r=!0;n&&ve(n,t.currentTarget)?(E(t,e.pointerType),r=w(t,e.pointerType)):e.isOverTarget&&(r=w(t,e.pointerType,!1)),r&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,d||se(e.target),b()},t.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&T(t))};let r=t=>{e.isPressed&&t.target.contains(e.target)&&T({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&T(e)}}return t}),[h,s,l,b,d,T,P,w,y,E]);return(0,o.useEffect)((()=>()=>{d||se(v.current.target)}),[d]),{isPressed:u||m,pressProps:F(p,S)}}function fe(e){return"A"===e.tagName&&e.hasAttribute("href")}function pe(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return!("Enter"!==n&&" "!==n&&"Spacebar"!==n&&"Space"!==r||o instanceof HTMLInputElement&&!we(o,n)||o instanceof HTMLTextAreaElement||o.isContentEditable||fe(o)&&("button"!==i||"Enter"===n)||"link"===i&&"Enter"!==n)}function me(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 ge(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function ve(e,t){let n=t.getBoundingClientRect(),r=function(e){let t=e.width/2||e.radiusX||0,n=e.height/2||e.radiusY||0;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);return i=r,!((o=n).left>i.right||i.left>o.right||o.top>i.bottom||i.top>o.bottom);var o,i}function he(e){return!(e instanceof HTMLElement&&e.draggable)}function be(e,t){return e instanceof HTMLInputElement?!we(e,t):!(e instanceof HTMLButtonElement)||"submit"!==e.type&&"reset"!==e.type}const ye=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function we(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:ye.has(e.type)}class Ee{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 Te(e){let t=(0,o.useRef)({isFocused:!1,observer:null});R((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=Z((t=>{null==e||e(t)}));return(0,o.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 Ee("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){t.current.observer.disconnect();let e=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}})),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}}),[n])}function Pe(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=(0,o.useCallback)((e=>{if(e.target===e.currentTarget)return r&&r(e),i&&i(!1),!0}),[r,i]),s=Te(a),u=(0,o.useCallback)((e=>{e.target===e.currentTarget&&document.activeElement===e.target&&(n&&n(e),i&&i(!0),s(e))}),[i,n,s]);return{focusProps:{onFocus:!t&&(n||i||r)?u:void 0,onBlur:t||!r&&!i?void 0:a}}}let Se=null,Re=new Set,Ce=!1,Me=!1,xe=!1;const Le={Tab:!0,Escape:!0};function ke(e,t){for(let n of Re)n(e,t)}function Fe(e){Me=!0,function(e){return!(e.metaKey||!J()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(Se="keyboard",ke("keyboard",e))}function Oe(e){Se="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Me=!0,ke("pointer",e))}function Ne(e){ee(e)&&(Me=!0,Se="virtual")}function Ie(e){e.target!==window&&e.target!==document&&(Me||xe||(Se="virtual",ke("virtual",e)),Me=!1,xe=!1)}function De(){Me=!1,xe=!0}function Ae(){if("undefined"==typeof window||Ce)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Me=!0,e.apply(this,arguments)},document.addEventListener("keydown",Fe,!0),document.addEventListener("keyup",Fe,!0),document.addEventListener("click",Ne,!0),window.addEventListener("focus",Ie,!0),window.addEventListener("blur",De,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",Oe,!0),document.addEventListener("pointermove",Oe,!0),document.addEventListener("pointerup",Oe,!0)):(document.addEventListener("mousedown",Oe,!0),document.addEventListener("mousemove",Oe,!0),document.addEventListener("mouseup",Oe,!0)),Ce=!0}function ze(){return"pointer"!==Se}function We(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=(0,o.useRef)({isFocusWithin:!1}),s=(0,o.useCallback)((e=>{a.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(a.current.isFocusWithin=!1,n&&n(e),i&&i(!1))}),[n,i,a]),u=Te(s),l=(0,o.useCallback)((e=>{a.current.isFocusWithin||document.activeElement!==e.target||(r&&r(e),i&&i(!0),a.current.isFocusWithin=!0,u(e))}),[r,i,u]);return t?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:l,onBlur:s}}}"undefined"!=typeof document&&("loading"!==document.readyState?Ae():document.addEventListener("DOMContentLoaded",Ae));let He=!1,Be=0;function Ke(){He=!0,setTimeout((()=>{He=!1}),50)}function _e(e){"touch"===e.pointerType&&Ke()}function Ue(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",_e):document.addEventListener("touchend",Ke),Be++,()=>{Be--,Be>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",_e):document.removeEventListener("touchend",Ke))}}function je(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&&!t.current.contains(e.target)}function Ve(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return 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 qe(e){if("virtual"===Se){let t=document.activeElement;_((()=>{document.activeElement===t&&document.contains(e)&&z(e)}))}else z(e)}function $e(e,t){return"#comment"!==e.nodeName&&function(e){if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;let{display:t,visibility:n}=e.style,r="none"!==t&&"hidden"!==n&&"collapse"!==n;if(r){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:n,visibility:o}=t(e);r="none"!==n&&"hidden"!==o&&"collapse"!==o}return r}(e)&&function(e,t){return!e.hasAttribute("hidden")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(e,t)&&(!e.parentElement||$e(e.parentElement,e))}const Ye=o.createContext(null);let Ge=null;function Xe(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,a=(0,o.useRef)(),s=(0,o.useRef)(),u=(0,o.useRef)([]),{parentNode:l}=(0,o.useContext)(Ye)||{},c=(0,o.useMemo)((()=>new ct({scopeRef:u})),[u]);R((()=>{let e=l||dt.root;if(dt.getTreeNode(e.scopeRef)&&Ge&&!it(Ge,e.scopeRef)){let t=dt.getTreeNode(Ge);t&&(e=t)}e.addChild(c),dt.addNode(c)}),[c,l]),R((()=>{dt.getTreeNode(u).contain=n}),[n]),R((()=>{let e=a.current.nextSibling,t=[];for(;e&&e!==s.current;)t.push(e),e=e.nextSibling;u.current=t}),[t]),function(e,t,n){R((()=>{if(t||n)return;let r=e.current,o=t=>{let n=t.target;rt(n,e.current)?Ge=e:nt(n)||(Ge=null)};return document.addEventListener("focusin",o,!1),r.forEach((e=>e.addEventListener("focusin",o,!1))),()=>{document.removeEventListener("focusin",o,!1),r.forEach((e=>e.removeEventListener("focusin",o,!1)))}}),[e,t,n])}(u,r,n),function(e,t){let n=(0,o.useRef)(),r=(0,o.useRef)(null);R((()=>{let o=e.current;if(!t)return void(r.current&&(cancelAnimationFrame(r.current),r.current=null));let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!tt(e))return;let n=document.activeElement,r=e.current;if(!rt(n,r))return;let o=ut(et(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&&at(i,!0)},a=t=>{Ge&&!it(Ge,e)||!rt(t.target,e.current)?tt(e)&&!ot(t.target,e)?n.current?n.current.focus():Ge&&st(Ge.current):tt(e)&&(n.current=t.target):(Ge=e,n.current=t.target)},s=t=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame((()=>{tt(e)&&!ot(document.activeElement,e)&&(Ge=e,document.body.contains(t.target)?(n.current=t.target,n.current.focus()):Ge&&st(Ge.current))}))};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]),R((()=>()=>{r.current&&cancelAnimationFrame(r.current)}),[r])}(u,n),function(e,t,n){const r=(0,o.useRef)("undefined"!=typeof document?document.activeElement:null);R((()=>{let r=e.current;if(!t||n)return;let o=()=>{Ge&&!it(Ge,e)||!rt(document.activeElement,e.current)||(Ge=e)};return document.addEventListener("focusin",o,!1),r.forEach((e=>e.addEventListener("focusin",o,!1))),()=>{document.removeEventListener("focusin",o,!1),r.forEach((e=>e.removeEventListener("focusin",o,!1)))}}),[e,n]),R((()=>{if(!t)return;let r=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!tt(e))return;let n=document.activeElement;if(!rt(n,e.current))return;let r=dt.getTreeNode(e).nodeToRestore,o=ut(document.body,{tabbable:!0});o.currentNode=n;let i=t.shiftKey?o.previousNode():o.nextNode();if(document.body.contains(r)&&r!==document.body||(r=null,dt.getTreeNode(e).nodeToRestore=null),(!i||!rt(i,e.current))&&r){o.currentNode=r;do{i=t.shiftKey?o.previousNode():o.nextNode()}while(rt(i,e.current));t.preventDefault(),t.stopPropagation(),i?at(i,!0):nt(r)?at(r,!0):n.blur()}};return n||document.addEventListener("keydown",r,!0),()=>{n||document.removeEventListener("keydown",r,!0)}}),[e,t,n]),R((()=>{if(t)return dt.getTreeNode(e).nodeToRestore=r.current,()=>{let n=dt.getTreeNode(e).nodeToRestore;if(t&&n&&(rt(document.activeElement,e.current)||document.activeElement===document.body&&function(e){let t=dt.getTreeNode(Ge);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(null==t?void 0:t.scopeRef)===e}(e))){let t=dt.clone();requestAnimationFrame((()=>{if(document.activeElement===document.body){let n=t.getTreeNode(e);for(;n;){if(n.nodeToRestore&&document.body.contains(n.nodeToRestore))return void at(n.nodeToRestore);n=n.parent}for(n=t.getTreeNode(e);n;){if(n.scopeRef&&dt.getTreeNode(n.scopeRef))return void st(n.scopeRef.current,!0);n=n.parent}}}))}}}),[e,t])}(u,r,n),function(e,t){const n=o.useRef(t);(0,o.useEffect)((()=>{n.current&&(Ge=e,rt(document.activeElement,Ge.current)||st(e.current)),n.current=!1}),[e])}(u,i),(0,o.useEffect)((()=>{if(u){let e=document.activeElement,t=null;if(rt(e,u.current)){for(let n of dt.traverse())rt(e,n.scopeRef.current)&&(t=n);t===dt.getTreeNode(u)&&(Ge=t.scopeRef)}return()=>{let e=dt.getTreeNode(u).parent.scopeRef;u!==Ge&&!it(u,Ge)||e&&!dt.getTreeNode(e)||(Ge=e),dt.removeTreeNode(u)}}}),[u]);let d=(0,o.useMemo)((()=>function(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t,s=r||document.activeElement,u=n[0].previousElementSibling,l=ut(et(n),{tabbable:o,accept:a},n);l.currentNode=rt(s,n)?s:u;let c=l.nextNode();return!c&&i&&(l.currentNode=u,c=l.nextNode()),c&&at(c,!0),c},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t,s=r||document.activeElement,u=n[n.length-1].nextElementSibling,l=ut(et(n),{tabbable:o,accept:a},n);l.currentNode=rt(s,n)?s:u;let c=l.previousNode();return!c&&i&&(l.currentNode=u,c=l.previousNode()),c&&at(c,!0),c},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=ut(et(n),{tabbable:r,accept:o},n);i.currentNode=n[0].previousElementSibling;let a=i.nextNode();return a&&at(a,!0),a},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=ut(et(n),{tabbable:r,accept:o},n);i.currentNode=n[n.length-1].nextElementSibling;let a=i.previousNode();return a&&at(a,!0),a}}}(u)),[]),f=(0,o.useMemo)((()=>({focusManager:d,parentNode:c})),[c,d]);return o.createElement(Ye.Provider,{value:f},o.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,o.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:s}))}const Je=["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]"],Qe=Je.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Je.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Ze=Je.join(':not([hidden]):not([tabindex="-1"]),');function et(e){return e[0].parentElement}function tt(e){let t=dt.getTreeNode(Ge);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function nt(e){return ot(e)}function rt(e,t){return t.some((t=>t.contains(e)))}function ot(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of dt.traverse(dt.getTreeNode(t)))if(rt(e,n.current))return!0;return!1}function it(e,t){var n;let r=null===(n=dt.getTreeNode(t))||void 0===n?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function at(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{qe(e)}catch(e){}}function st(e,t=!0){let n=e[0].previousElementSibling,r=ut(et(e),{tabbable:t},e);r.currentNode=n;let o=r.nextNode();t&&!o&&(r=ut(et(e),{tabbable:!1},e),r.currentNode=n,o=r.nextNode()),at(o)}function ut(e,t,n){let r=(null==t?void 0:t.tabbable)?Ze:Qe,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)||!$e(e)||n&&!rt(e,n)||(null==t?void 0:t.accept)&&!t.accept(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}});return(null==t?void 0:t.from)&&(o.currentNode=t.from),o}class lt{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(null!=t?t:null),o=new ct({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),n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef.current&&rt(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n.removeChild(t),r.size>0&&r.forEach((e=>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(){let e=new lt;for(let t of this.traverse())e.addTreeNode(t.scopeRef,t.parent.scopeRef,t.nodeToRestore);return e}constructor(){this.fastMap=new Map,this.root=new ct({scopeRef:null}),this.fastMap.set(null,this.root)}}class ct{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 dt=new lt;function ft(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=(0,o.useRef)({isFocused:!1,isFocusVisible:t||ze()}),[a,s]=(0,o.useState)(!1),[u,l]=(0,o.useState)((()=>i.current.isFocused&&i.current.isFocusVisible)),c=(0,o.useCallback)((()=>l(i.current.isFocused&&i.current.isFocusVisible)),[]),d=(0,o.useCallback)((e=>{i.current.isFocused=e,s(e),c()}),[c]);!function(e,t,n){Ae(),(0,o.useEffect)((()=>{let t=(t,r)=>{(function(e,t,n){return!(e&&"keyboard"===t&&n instanceof KeyboardEvent&&!Le[n.key])})(null==n?void 0:n.isTextInput,t,r)&&e(ze())};return Re.add(t),()=>{Re.delete(t)}}),t)}((e=>{i.current.isFocusVisible=e,c()}),[],{isTextInput:n});let{focusProps:f}=Pe({isDisabled:r,onFocusChange:d}),{focusWithinProps:p}=We({isDisabled:!r,onFocusWithinChange:d});return{isFocused:a,isFocusVisible:u,focusProps:r?p:f}}let pt=o.createContext(null);function mt(e,t){let{focusProps:n}=Pe(e),{keyboardProps:r}=function(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Ve(e.onKeyDown),onKeyUp:Ve(e.onKeyUp)}}}(e),i=F(n,r),a=function(e){let t=(0,o.useContext)(pt)||{};V(t,e);let{ref:n,...r}=t;return r}(t),s=e.isDisabled?{}:a,u=(0,o.useRef)(e.autoFocus);return(0,o.useEffect)((()=>{u.current&&t.current&&qe(t.current),u.current=!1}),[t]),{focusableProps:F({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}class gt{getStringForLocale(e,t){let n=this.strings[t];n||(n=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]}(t,this.strings,this.defaultLocale),this.strings[t]=n);let r=n[e];if(!r)throw new Error(`Could not find intl message ${e} in ${t} locale`);return r}constructor(e,t="en-US"){this.strings={...e},this.defaultLocale=t}}const vt=new Map,ht=new Map;class bt{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=vt.get(o);return i||(i=new Intl.PluralRules(this.locale,{type:n}),vt.set(o,i)),r=t[i.select(e)]||t.other,"function"==typeof r?r():r}number(e){let t=ht.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),ht.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 yt=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),wt=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Et(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize().script;return yt.has(t)}let t=e.split("-")[0];return wt.has(t)}function Tt(){let e="undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(t){e="en-US"}return{locale:e,direction:Et(e)?"rtl":"ltr"}}let Pt=Tt(),St=new Set;function Rt(){Pt=Tt();for(let e of St)e(Pt)}const Ct=o.createContext(null);function Mt(){let e=function(){let e=T(),[t,n]=(0,o.useState)(Pt);return(0,o.useEffect)((()=>(0===St.size&&window.addEventListener("languagechange",Rt),St.add(n),()=>{St.delete(n),0===St.size&&window.removeEventListener("languagechange",Rt)})),[]),e?{locale:"en-US",direction:"ltr"}:t}();return(0,o.useContext)(Ct)||e}const xt=new WeakMap;new Map;var Lt=window.ReactDOM;const kt={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 Ft(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:s}=function(e={}){let{style:t,isFocusable:n}=e,[r,i]=(0,o.useState)(!1),{focusWithinProps:a}=We({isDisabled:!n,onFocusWithinChange:e=>i(e)});return{visuallyHiddenProps:{...a,style:(0,o.useMemo)((()=>r?t:t?{...kt,...t}:kt),[r])}}}(e);return o.createElement(n,F(a,s),t)}function Ot(e){return e&&e.__esModule?e.default:e}"undefined"!=typeof document&&window.visualViewport,new WeakMap,"undefined"!=typeof document&&window.visualViewport;const Nt=[];function It(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:u}=e;(0,o.useEffect)((()=>(i&&Nt.push(t),()=>{let e=Nt.indexOf(t);e>=0&&Nt.splice(e,1)})),[i,t]);let l=()=>{Nt[Nt.length-1]===t&&n&&n()};!function(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,a=(0,o.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=Z((e=>{n&&je(e,t)&&(i&&i(e),a.current.isPointerDown=!0)})),u=Z((e=>{n&&n(e)}));(0,o.useEffect)((()=>{let e=a.current;if(!r){if("undefined"!=typeof PointerEvent){let n=n=>{e.isPointerDown&&je(n,t)&&u(n),e.isPointerDown=!1};return document.addEventListener("pointerdown",s,!0),document.addEventListener("pointerup",n,!0),()=>{document.removeEventListener("pointerdown",s,!0),document.removeEventListener("pointerup",n,!0)}}{let n=n=>{e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:e.isPointerDown&&je(n,t)&&u(n),e.isPointerDown=!1},r=n=>{e.ignoreEmulatedMouseEvents=!0,e.isPointerDown&&je(n,t)&&u(n),e.isPointerDown=!1};return document.addEventListener("mousedown",s,!0),document.addEventListener("mouseup",n,!0),document.addEventListener("touchstart",s,!0),document.addEventListener("touchend",r,!0),()=>{document.removeEventListener("mousedown",s,!0),document.removeEventListener("mouseup",n,!0),document.removeEventListener("touchstart",s,!0),document.removeEventListener("touchend",r,!0)}}}}),[t,r,s,u])}({ref:t,onInteractOutside:a?e=>{u&&!u(e.target)||(Nt[Nt.length-1]===t&&(e.stopPropagation(),e.preventDefault()),l())}:null,onInteractOutsideStart:e=>{u&&!u(e.target)||Nt[Nt.length-1]===t&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:c}=We({isDisabled:!r,onBlurWithin:e=>{e.relatedTarget&&ot(e.relatedTarget,Ge)||u&&!u(e.relatedTarget)||n()}});return{overlayProps:{onKeyDown:e=>{"Escape"!==e.key||s||(e.stopPropagation(),e.preventDefault(),l())},...c},underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}const Dt="undefined"!=typeof document&&window.visualViewport,At=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let zt,Wt=0;function Ht(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Bt(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Kt(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=q(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let n=t.getBoundingClientRect().top,r=e.getBoundingClientRect().top;r>n+e.clientHeight&&(t.scrollTop+=r-n)}e=t.parentElement}}function _t(e){return e instanceof HTMLInputElement&&!At.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var Ut={};function jt(e){let{onDismiss:t,...n}=e,r=U(n,function(e){let{locale:t}=Mt(),n=(0,o.useMemo)((()=>function(e){let t=xt.get(e);return t||(t=new gt(e),xt.set(e,t)),t}(e)),[e]);return(0,o.useMemo)((()=>new bt(t,n)),[t,n])}(Ot(Ut)).format("dismiss"));return o.createElement(Ft,null,o.createElement("button",{...r,tabIndex:-1,onClick:()=>{t&&t()}}))}Ut={"ar-AE":{dismiss:"تجاهل"},"bg-BG":{dismiss:"От� |
| 2 | върляне"},"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:"關閉"}};let Vt=new WeakMap,qt=[];const $t=o.createContext(null);function Yt(e){let t,n=T(),{portalContainer:r=(n?null:document.body),isExiting:i}=e,[a,s]=(0,o.useState)(!1),u=(0,o.useMemo)((()=>({contain:a,setContain:s})),[a,s]);return r?(t=e.disableFocusManagement?o.createElement($t.Provider,{value:u},e.children):o.createElement($t.Provider,{value:u},o.createElement(Xe,{restoreFocus:!0,contain:a&&!i},e.children)),Lt.createPortal(t,r)):null}function Gt(){let e=(0,o.useContext)($t),t=null==e?void 0:e.setContain;R((()=>{null==t||t(!0)}),[t])}function Xt(e,t,n){let{overlayProps:r,underlayProps:i}=It({...e,isOpen:t.isOpen,onClose:t.close},n);return function(e={}){let{isDisabled:t}=e;R((()=>{if(!t)return Wt++,1===Wt&&(zt=Q()?function(){let e,t=0,n=window.pageXOffset,r=window.pageYOffset,o=k(Ht(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),Ht(document.documentElement,"overflow","hidden"),Ht(document.body,"marginTop",`-${r}px`));window.scrollTo(0,0);let i=k(Bt(document,"touchstart",(n=>{e=q(n.target),e===document.documentElement&&e===document.body||(t=n.changedTouches[0].pageY)}),{passive:!1,capture:!0}),Bt(document,"touchmove",(n=>{if(!e||e===document.documentElement||e===document.body)return void n.preventDefault();let r=n.changedTouches[0].pageY,o=e.scrollTop,i=e.scrollHeight-e.clientHeight;0!==i&&((o<=0&&r>t||o>=i&&r<t)&&n.preventDefault(),t=r)}),{passive:!1,capture:!0}),Bt(document,"touchend",(e=>{let t=e.target;_t(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform="translateY(-2000px)",t.focus(),requestAnimationFrame((()=>{t.style.transform=""})))}),{passive:!1,capture:!0}),Bt(document,"focus",(e=>{let t=e.target;_t(t)&&(t.style.transform="translateY(-2000px)",requestAnimationFrame((()=>{t.style.transform="",Dt&&(Dt.height<window.innerHeight?requestAnimationFrame((()=>{Kt(t)})):Dt.addEventListener("resize",(()=>Kt(t)),{once:!0}))})))}),!0),Bt(window,"scroll",(()=>{window.scrollTo(0,0)})));return()=>{o(),i(),window.scrollTo(n,r)}}():k(Ht(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),Ht(document.documentElement,"overflow","hidden"))),()=>{Wt--,0===Wt&&zt()}}),[t])}({isDisabled:!t.isOpen}),Gt(),(0,o.useEffect)((()=>{if(t.isOpen)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)||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=Vt.get(e))&&void 0!==t?t:0;"true"===e.getAttribute("aria-hidden")&&0===n||(0===n&&e.setAttribute("aria-hidden","true"),r.add(e),Vt.set(e,n+1))};qt.length&&qt[qt.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={observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return qt.push(s),()=>{a.disconnect();for(let e of r){let t=Vt.get(e);1===t?(e.removeAttribute("aria-hidden"),Vt.delete(e)):Vt.set(e,t-1)}s===qt[qt.length-1]?(qt.pop(),qt.length&&qt[qt.length-1].observe()):qt.splice(qt.indexOf(s),1)}}([n.current])}),[t.isOpen,n]),{modalProps:F(r),underlayProps:i}}function Jt(e){let{description:t,errorMessage:n,validationState:r}=e,{labelProps:o,fieldProps:i}=function(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=M(t);let a=M(),s={};return n?(r=r?`${a} ${r}`:a,s={id:a,htmlFor:"label"===i?t:void 0}):r||o||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility"),{labelProps:s,fieldProps:U({id:t,"aria-label":o,"aria-labelledby":r})}}(e),a=L([Boolean(t),Boolean(n),r]),s=L([Boolean(t),Boolean(n),r]);return i=F(i,{"aria-describedby":[a,s,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:i,descriptionProps:{id:a},errorMessageProps:{id:s}}}function Qt(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:a=!1,validationState:s,type:u="text",value:l,defaultValue:c,onChange:d=(()=>{})}=e,{focusableProps:f}=mt(e,t),{labelProps:p,fieldProps:m,descriptionProps:g,errorMessageProps:v}=Jt(e),h=A(e,{labelable:!0});const b={type:u,pattern:e.pattern};var y;return function(e,t,n){let r=(0,o.useRef)(t),i=Z((()=>{n&&n(r.current)}));(0,o.useEffect)((()=>{var t;let n=null==e||null===(t=e.current)||void 0===t?void 0:t.form;return null==n||n.addEventListener("reset",i),()=>{null==n||n.removeEventListener("reset",i)}}),[e,i])}(t,null!==(y=null!=l?l:c)&&void 0!==y?y:"",d),{labelProps:p,inputProps:F(h,"input"===n&&b,{disabled:r,readOnly:a,"aria-required":i||void 0,"aria-invalid":"invalid"===s||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:e.value,defaultValue:e.value?void 0:e.defaultValue,onChange:e=>d(e.target.value),autoComplete:e.autoComplete,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...f,...m}),descriptionProps:g,errorMessageProps:v}}function Zt(e){let[t,n]=function(e,t,n){let[r,i]=(0,o.useState)(e||t),a=(0,o.useRef)(void 0!==e),s=void 0!==e;(0,o.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 u=s?e:r,l=(0,o.useCallback)(((e,...t)=>{let r=(e,...t)=>{n&&(Object.is(u,e)||n(e,...t)),s||(u=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?u:n,...o);return r(i,...t),s?n:i}))):(s||i(e),r(e,...t))}),[s,u,n]);return[u,l]}(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=(0,o.useCallback)((()=>{n(!0)}),[n]),i=(0,o.useCallback)((()=>{n(!1)}),[n]),a=(0,o.useCallback)((()=>{n(!t)}),[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:a}}n(1688),new WeakMap;Symbol.iterator;const en="row-header-column-"+Math.random().toString(36).slice(2);let tn="row-header-column-"+Math.random().toString(36).slice(2);for(;en===tn;)tn="row-header-column-"+Math.random().toString(36).slice(2);function nn(e){return null}Symbol.iterator,nn.getCollectionNode=function*(e,t){let{children:n,textValue:r,UNSTABLE_childItems:i}=e;yield{type:"item",props:e,textValue:r,"aria-label":e["aria-label"],hasChildNodes:!0,*childNodes(){if(t.showDragButtons&&(yield{type:"cell",key:"header-drag",props:{isDragButtonCell:!0}}),t.showSelectionCheckboxes&&"none"!==t.selectionMode&&(yield{type:"cell",key:"header",props:{isSelectionCell:!0}}),"function"==typeof n){for(let e of t.columns)yield{type:"cell",element:n(e.key),key:e.key};if(i)for(let e of i)yield{type:"item",value:e}}else{let e=[],r=[];if(o.Children.forEach(n,(n=>{if(n.type===nn){if(e.length<t.columns.length)throw new Error("All of a Row's child Cells must be positioned before any child Rows.");r.push({type:"item",element:n})}else e.push({type:"cell",element:n})})),e.length!==t.columns.length)throw new Error(`Cell count must match column count. Found ${e.length} cells and ${t.columns.length} columns.`);yield*e,yield*r}},shouldInvalidate(e){return e.columns.length!==t.columns.length||e.columns.some(((e,n)=>e.key!==t.columns[n].key))||e.showSelectionCheckboxes!==t.showSelectionCheckboxes||e.showDragButtons!==t.showDragButtons||e.selectionMode!==t.selectionMode}}},Symbol.iterator;Symbol.iterator;const rn=Symbol("callback"),on=Symbol("default");function an({values:e,children:t}){for(let[n,r]of e)t=o.createElement(n.Provider,{value:r},t);return t}function sn(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,values:s}=e;return(0,o.useMemo)((()=>{let e,o,u;return e="function"==typeof t?t(s):t,o="function"==typeof n?n(s):n,u="function"==typeof r?r(s):null==r?a:r,{className:null!=e?e:i,style:o,children:u}}),[t,n,r,i,a,s])}function un(e,t,n){let r=(0,o.useContext)(n)||{};if("slots"in r&&r.slots){if(!e.slot&&!r.slots[on])throw new Error("A slot prop is required");let t=e.slot||on;if(!r.slots[t])throw new Error(`Invalid slot "${e.slot}". Valid slot names are `+(new Intl.ListFormat).format(Object.keys(r.slots).map((e=>`"${e}"`)))+".");r=r.slots[t]}let{ref:i,[rn]:a,...s}=r,u=j((0,o.useMemo)((()=>O(t,i)),[t,i])),l=F(s,e);return(0,o.useEffect)((()=>{a&&a(e)}),[a,e]),[l,u]}function ln(e,t=!0){let[n,r]=(0,o.useState)(!0);return dn(e,n&&t,(0,o.useCallback)((()=>r(!1)),[])),n&&t}function cn(e,t){let[n,r]=(0,o.useState)(!1),[i,a]=(0,o.useState)("idle");return!t&&e.current&&"idle"===i&&(n=!0,r(!0),a("exiting")),e.current||"exited"!==i||a("idle"),dn(e,n,(0,o.useCallback)((()=>{a("exited"),r(!1)}),[])),n}function dn(e,t,n){let r=(0,o.useRef)(null);t&&e.current&&(r.current=window.getComputedStyle(e.current).animation),R((()=>{if(t&&e.current){let t=window.getComputedStyle(e.current);if("none"!==t.animationName&&t.animation!==r.current){let t=o=>{o.target===e.current&&(r.removeEventListener("animationend",t),Lt.flushSync((()=>{n()})))},r=e.current;return r.addEventListener("animationend",t),()=>{r.removeEventListener("animationend",t)}}n()}}),[e,t,n])}const fn=(0,o.createContext)({}),pn=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),mn=(0,o.createContext)({});function gn(e,t){[e,t]=un(e,t,mn);let n=e,{buttonProps:r,isPressed:i}=function(e,t){let n,{elementType:r="button",isDisabled:o,onPress:i,onPressStart:a,onPressEnd:s,onPressChange:u,preventFocusOnPress:l,allowFocusWhenDisabled:c,onClick:d,href:f,target:p,rel:m,type:g="button"}=e;n="button"===r?{type:g,disabled:o}:{role:"button",tabIndex:o?void 0:0,href:"a"===r&&o?void 0:f,target:"a"===r?p:void 0,type:"input"===r?g:void 0,disabled:"input"===r?o:void 0,"aria-disabled":o&&"input"!==r?o:void 0,rel:"a"===r?m:void 0};let{pressProps:v,isPressed:h}=de({onPressStart:a,onPressEnd:s,onPressChange:u,onPress:i,isDisabled:o,preventFocusOnPress:l,ref:t}),{focusableProps:b}=mt(e,t);c&&(b.tabIndex=o?-1:b.tabIndex);let y=F(b,v,A(e,{labelable:!0}));return{isPressed:h,buttonProps:F(n,y,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:e=>{d&&(d(e),console.warn("onClick is deprecated, please use onPress"))}})}}(e,t),{focusProps:a,isFocused:s,isFocusVisible:u}=ft(e),{hoverProps:l,isHovered:c}=function(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,s]=(0,o.useState)(!1),u=(0,o.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,o.useEffect)(Ue,[]);let{hoverProps:l,triggerHoverEnd:c}=(0,o.useMemo)((()=>{let e=(e,r)=>{if(u.pointerType=r,i||"touch"===r||u.isHovered||!e.currentTarget.contains(e.target))return;u.isHovered=!0;let o=e.currentTarget;u.target=o,t&&t({type:"hoverstart",target:o,pointerType:r}),n&&n(!0),s(!0)},o=(e,t)=>{if(u.pointerType="",u.target=null,"touch"===t||!u.isHovered)return;u.isHovered=!1;let o=e.currentTarget;r&&r({type:"hoverend",target:o,pointerType:t}),n&&n(!1),s(!1)},a={};return"undefined"!=typeof PointerEvent?(a.onPointerEnter=t=>{He&&"mouse"===t.pointerType||e(t,t.pointerType)},a.onPointerLeave=e=>{!i&&e.currentTarget.contains(e.target)&&o(e,e.pointerType)}):(a.onTouchStart=()=>{u.ignoreEmulatedMouseEvents=!0},a.onMouseEnter=t=>{u.ignoreEmulatedMouseEvents||He||e(t,"mouse"),u.ignoreEmulatedMouseEvents=!1},a.onMouseLeave=e=>{!i&&e.currentTarget.contains(e.target)&&o(e,"mouse")}),{hoverProps:a,triggerHoverEnd:o}}),[t,n,r,i,u]);return(0,o.useEffect)((()=>{i&&c({currentTarget:u.target},u.pointerType)}),[i]),{hoverProps:l,isHovered:a}}(e),d=sn({...e,values:{isHovered:c,isPressed:i,isFocused:s,isFocusVisible:u,isDisabled:e.isDisabled||!1},defaultClassName:"react-aria-Button"});return o.createElement("button",{...A(e,{propNames:pn}),...F(r,a,l),...d,ref:t,slot:e.slot,"data-pressed":n.isPressed||i||void 0,"data-hovered":c||void 0,"data-focused":s||void 0,"data-focus-visible":u||void 0})}const vn=(0,o.forwardRef)(gn),hn=(0,o.createContext)({}),bn=(0,o.createContext)({}),yn=(0,o.createContext)({}),wn=(0,o.createContext)(null),En=(0,o.createContext)(null);function Tn(e,t){if((0,o.useContext)(En))return o.createElement(Mn,{...e,modalRef:t},e.children);let{isDismissable:n,isKeyboardDismissDisabled:r,isOpen:i,defaultOpen:a,onOpenChange:s,children:u,...l}=e;return o.createElement(Rn,{isDismissable:n,isKeyboardDismissDisabled:r,isOpen:i,defaultOpen:a,onOpenChange:s},o.createElement(Mn,{...l,modalRef:t},u))}const Pn=(0,o.forwardRef)(Tn);function Sn(e,t){let n=(0,o.useContext)(wn),r=Zt(e),i=null==e.isOpen&&null==e.defaultOpen&&(null==n?void 0:n.state)?n.state:r,a=j(t),s=(0,o.useRef)(null),u=cn(a,i.isOpen),l=cn(s,i.isOpen),c=u||l;return i.isOpen||c?o.createElement(Cn,{...e,state:i,isExiting:c,overlayRef:a,modalRef:s}):null}const Rn=(0,o.forwardRef)(Sn);function Cn(e){let t=e.modalRef,{state:n}=e,{modalProps:r,underlayProps:i}=Xt(e,n,t),a=ln(e.overlayRef),s=sn({...e,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:a,isExiting:e.isExiting,state:n}}),u=function(){let[e,t]=(0,o.useState)((()=>G()));return(0,o.useEffect)((()=>{let e=()=>{t((e=>{let t=G();return t.width===e.width&&t.height===e.height?e:t}))};return Y?Y.addEventListener("resize",e):window.addEventListener("resize",e),()=>{Y?Y.removeEventListener("resize",e):window.removeEventListener("resize",e)}}),[]),e}(),l={...s.style,"--visual-viewport-height":u.height+"px"};return o.createElement(Yt,{isExiting:e.isExiting},o.createElement("div",{...F(A(e),i),...s,style:l,ref:e.overlayRef,"data-entering":a||void 0,"data-exiting":e.isExiting||void 0},o.createElement(En.Provider,{value:{modalProps:r,modalRef:t,state:n,isExiting:e.isExiting,isDismissable:e.isDismissable}},s.children)))}function Mn(e){let{modalProps:t,modalRef:n,isExiting:r,isDismissable:i,state:a}=(0,o.useContext)(En),s=j((0,o.useMemo)((()=>O(e.modalRef,n)),[e.modalRef,n])),u=ln(s),l=sn({...e,defaultClassName:"react-aria-Modal",values:{isEntering:u,isExiting:r,state:a}});return o.createElement("div",{...F(A(e),t),...l,ref:s,"data-entering":u||void 0,"data-exiting":r||void 0},i&&o.createElement(jt,{onDismiss:a.close}),l.children)}const xn=(0,o.createContext)(null);function Ln(e,t){[e,t]=un(e,t,xn);let{dialogProps:n,titleProps:r}=function(e,t){let{role:n="dialog"}=e,r=L();r=e["aria-label"]?void 0:r;let i=(0,o.useRef)(!1);return(0,o.useEffect)((()=>{if(t.current&&!t.current.contains(document.activeElement)){qe(t.current);let e=setTimeout((()=>{document.activeElement===t.current&&(i.current=!0,t.current.blur(),qe(t.current),i.current=!1)}),500);return()=>{clearTimeout(e)}}}),[t]),Gt(),{dialogProps:{...A(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:e=>{i.current&&e.stopPropagation()}},titleProps:{id:r}}}(e,t),i=e.children;var a;return"function"==typeof i&&(i=i({close:e.onClose||(()=>{})})),o.createElement("section",{...A(e),...n,ref:t,slot:e.slot,style:e.style,className:null!==(a=e.className)&&void 0!==a?a:"react-aria-Dialog"},o.createElement(an,{values:[[mn,void 0],[fn,{...r,level:2}]]},i))}const kn=(0,o.forwardRef)(Ln);Symbol.iterator;const Fn=(0,o.createContext)({}),On=(0,o.createContext)(null);(0,o.forwardRef)((function(e,t){[e,t]=un(e,t,On);let n=(0,o.useRef)(null),[r,i]=function(){let[e,t]=(0,o.useState)(!0),n=(0,o.useRef)(!1),r=(0,o.useCallback)((e=>{n.current=!0,t(!!e)}),[]);return R((()=>{n.current||t(!1)}),[]),[r,e]}(),[a,s]=(0,o.useState)("input"),{labelProps:u,inputProps:l,descriptionProps:c,errorMessageProps:d}=Qt({...e,inputElementType:a,label:i},n),f=(0,o.useCallback)((e=>{n.current=e,e&&s(e instanceof HTMLTextAreaElement?"textarea":"input")}),[]),p=sn({...e,values:{isDisabled:e.isDisabled||!1,validationState:e.validationState},defaultClassName:"react-aria-TextField"});return o.createElement("div",{...A(e),...p,ref:t,slot:e.slot,"data-disabled":e.isDisabled||void 0,"data-validation-state":e.validationState||void 0},o.createElement(an,{values:[[bn,{...u,ref:r}],[yn,{...l,ref:f}],[Fn,{...l,ref:f}],[hn,{slots:{description:c,errorMessage:d}}]]},p.children))}));var Nn=window.wp.components;function In(){return(0,e.createElement)(Nn.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,e.createElement)(Nn.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 Dn({openFormButton:t,children:n,onChange:r,isOpen:o}){return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(vn,{className:"givewp-donation-form-modal__open",onPress:r},t),(0,e.createElement)(Pn,{className:"givewp-donation-form-modal__overlay",isOpen:o},(0,e.createElement)(kn,{className:"givewp-donation-form-modal__dialog"},n,(0,e.createElement)(vn,{className:"givewp-donation-form-modal__close",onPress:r},(0,e.createElement)(In,null)))))}function An({dataSrc:t,embedId:n,openFormButton:r,isFormRedirect:o,formViewUrl:i}){const[a,s]=(0,e.useState)(t),[u,l]=(0,e.useState)(o);return(0,e.createElement)(Dn,{isOpen:u,onChange:()=>{l(!u),!u&&o&&s(i)},openFormButton:r},(0,e.createElement)(p,{id:n,src:a,checkOrigin:!1,style:{minWidth:"100%",border:"none"}}))}const zn=["donation-confirmation-receipt-view"];function Wn({formFormat:t,dataSrc:n,embedId:r,openFormButton:o,formUrl:i,formViewUrl:a}){const s=(e=>{const t=new URL(e);return n=new URLSearchParams(t.search),r=zn,n.has("givewp-route")&&r.includes(n.get("givewp-route"));var n,r})(n);return"newTab"===t?(0,e.createElement)("a",{className:"givewp-donation-form-link",href:i,target:"_blank",rel:"noopener noreferrer"},o):"modal"===t||"reveal"===t?(0,e.createElement)(An,{openFormButton:o,dataSrc:n,embedId:r,isFormRedirect:s,formViewUrl:a}):(0,e.createElement)(p,{id:r,src:n,checkOrigin:!1,style:{width:"1px",minWidth:"100%",border:"0"}})}document.querySelectorAll(".root-data-givewp-embed").forEach((t=>{const n=t.getAttribute("data-src"),r=t.getAttribute("data-givewp-embed-id"),o=t.getAttribute("data-form-format"),i=t.getAttribute("data-open-form-button"),a=t.getAttribute("data-form-url"),s=t.getAttribute("data-form-view-url");e.createRoot?(0,e.createRoot)(t).render((0,e.createElement)(Wn,{openFormButton:i,formFormat:o,dataSrc:n,embedId:r,formUrl:a,formViewUrl:s})):(0,e.render)((0,e.createElement)(Wn,{openFormButton:i,formFormat:o,dataSrc:n,embedId:r,formUrl:a,formViewUrl:s}),t)}))}()}(); |