dvadf
/*! For license information please see entries.js.LICENSE.txt */
(()=>{var e,t,n={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"},10308:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){void 0===n&&(n={});for(var r=[],o="function"==typeof n.replace,c=n.transform||a.returnFirstArg,u=n.library||s,d=u.cloneElement,f=u.createElement,h=u.isValidElement,m=t.length,g=0;g<m;g++){var p=t[g];if(o){var M=n.replace(p,g);if(h(M)){m>1&&(M=d(M,{key:M.key||g})),r.push(c(M,p,g));continue}}if("text"!==p.type){var y=p,N={};l(y)?((0,a.setStyleProp)(y.attribs.style,y.attribs),N=y.attribs):y.attribs&&(N=(0,i.default)(y.attribs,y.name));var x=void 0;switch(p.type){case"script":case"style":p.children[0]&&(N.dangerouslySetInnerHTML={__html:p.children[0].data});break;case"tag":"textarea"===p.name&&p.children[0]?N.defaultValue=p.children[0].data:p.children&&p.children.length&&(x=e(p.children,n));break;default:continue}m>1&&(N.key=g),r.push(c(f(p.name,N,x),p,g))}else{var D=!p.data.trim().length;if(D&&p.parent&&!(0,a.canTextBeChildOfNode)(p.parent))continue;if(n.trim&&D)continue;r.push(c(p.data,p,g))}}return 1===r.length?r[0]:r};var o=n(51609),i=r(n(20840)),a=n(74958),s={cloneElement:o.cloneElement,createElement:o.createElement,isValidElement:o.isValidElement};function l(e){return a.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,a.isCustomComponent)(e.name,e.attribs)}},14210:(e,t,n)=>{"use strict";function r(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}const o={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((e=>{o[e]=new r(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((([e,t])=>{o[e]=new r(e,1,!1,t,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((e=>{o[e]=new r(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((e=>{o[e]=new r(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((e=>{o[e]=new r(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((e=>{o[e]=new r(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((e=>{o[e]=new r(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((e=>{o[e]=new r(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((e=>{o[e]=new r(e,5,!1,e.toLowerCase(),null,!1,!1)}));const i=/[\-\:]([a-z])/g,a=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((e=>{const t=e.replace(i,a);o[t]=new r(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((e=>{const t=e.replace(i,a);o[t]=new r(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((e=>{const t=e.replace(i,a);o[t]=new r(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!1,!1)})),o.xlinkHref=new r("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!0,!0)}));const{CAMELCASE:s,SAME:l,possibleStandardNames:c}=n(96811),u=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),d=Object.keys(c).reduce(((e,t)=>{const n=c[t];return n===l?e[t]=t:n===s?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return o.hasOwnProperty(e)?o[e]:null},t.isCustomAttribute=u,t.possibleStandardNames=d},15270:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=t.CARRIAGE_RETURN_PLACEHOLDER=t.CARRIAGE_RETURN_REGEX=t.CARRIAGE_RETURN=t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce((function(e,t){return e[t.toLowerCase()]=t,e}),{}),t.CARRIAGE_RETURN="\r",t.CARRIAGE_RETURN_REGEX=new RegExp(t.CARRIAGE_RETURN,"g"),t.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__"),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(t.CARRIAGE_RETURN_PLACEHOLDER,"g")},19788:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,f=1;function h(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function m(){var e={line:d,column:f};return function(t){return t.position=new g(e),N(),t}}function g(e){this.start=e,this.end={line:d,column:f},this.source=l.source}g.prototype.content=e;var p=[];function M(t){var n=new Error(l.source+":"+d+":"+f+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=f,n.source=e,!l.silent)throw n;p.push(n)}function y(t){var n=t.exec(e);if(n){var r=n[0];return h(r),e=e.slice(r.length),n}}function N(){y(r)}function x(e){var t;for(e=e||[];t=D();)!1!==t&&e.push(t);return e}function D(){var t=m();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return M("End of comment missing");var r=e.slice(2,n-2);return f+=2,h(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}function v(){var e=m(),n=y(o);if(n){if(D(),!y(i))return M("property missing ':'");var r=y(a),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return y(s),l}}return N(),function(){var e,t=[];for(x(t);e=v();)!1!==e&&(t.push(e),x(t));return t}()}},20840:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){void 0===e&&(e={});var n={},c=Boolean(e.type&&s[e.type]);for(var u in e){var d=e[u];if((0,r.isCustomAttribute)(u))n[u]=d;else{var f=u.toLowerCase(),h=l(f);if(h){var m=(0,r.getPropertyInfo)(h);switch(i.includes(h)&&a.includes(t)&&!c&&(h=l("default"+f)),n[h]=d,m&&m.type){case r.BOOLEAN:n[h]=!0;break;case r.OVERLOADED_BOOLEAN:""===d&&(n[h]=!0)}}else o.PRESERVE_CUSTOM_ATTRIBUTES&&(n[u]=d)}}return(0,o.setStyleProp)(e.style,n),n};var r=n(14210),o=n(74958),i=["checked","value"],a=["input","select","textarea"],s={reset:!0,submit:!0};function l(e){return r.possibleStandardNames[e]}},21020:(e,t,n)=>{"use strict";var r=n(51609),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},35229:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(51133)),o=n(98917);function i(e,t){var n={};return e&&"string"==typeof e?((0,r.default)(e,(function(e,r){e&&r&&(n[(0,o.camelCase)(e,t)]=r)})),n):n}i.default=i,e.exports=i},36957:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var a=n(45413),s=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),v(this,e)},e}();t.Node=s;var l=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return o(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(s);t.DataNode=l;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Text,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(l);t.Text=c;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Comment,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(l);t.Comment=u;var d=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=a.ElementType.Directive,r}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(l);t.ProcessingInstruction=d;var f=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return o(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=f;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(f);t.CDATA=h;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(f);t.Document=m;var g=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var i=e.call(this,r)||this;return i.name=t,i.attribs=n,i.type=o,i}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(f);function p(e){return(0,a.isTag)(e)}function M(e){return e.type===a.ElementType.CDATA}function y(e){return e.type===a.ElementType.Text}function N(e){return e.type===a.ElementType.Comment}function x(e){return e.type===a.ElementType.Directive}function D(e){return e.type===a.ElementType.Root}function v(e,t){var n;if(void 0===t&&(t=!1),y(e))n=new c(e.data);else if(N(e))n=new u(e.data);else if(p(e)){var r=t?w(e.children):[],o=new g(e.name,i({},e.attribs),r);r.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=o}else if(M(e)){r=t?w(e.children):[];var a=new h(r);r.forEach((function(e){return e.parent=a})),n=a}else if(D(e)){r=t?w(e.children):[];var s=new m(r);r.forEach((function(e){return e.parent=s})),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else{if(!x(e))throw new Error("Not implemented yet: ".concat(e.type));var l=new d(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function w(e){for(var t=e.map((function(e){return v(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=g,t.isTag=p,t.isCDATA=M,t.isText=y,t.isComment=N,t.isDirective=x,t.isDocument=D,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=v},41141:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(45413),a=n(36957);o(n(36957),t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,r=new a.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},45413:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},50442:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0,t.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,a.default)((0,o.default)(e,(null==t?void 0:t.htmlparser2)||l),t):[]};var o=r(n(92471));t.htmlToDOM=o.default;var i=r(n(20840));t.attributesToProps=i.default;var a=r(n(10308));t.domToReact=a.default;var s=n(41141);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return s.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return s.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return s.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return s.Text}});var l={lowerCaseAttributeNames:!1}},51133:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,o.default)(e),i="function"==typeof t;return r.forEach((function(e){if("declaration"===e.type){var r=e.property,o=e.value;i?t(r,o,e):o&&((n=n||{})[r]=o)}})),n};var o=r(n(19788))},51609:e=>{"use strict";e.exports=window.React},65496:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n,f=(e=(0,r.escapeSpecialCharacters)(e)).match(s),h=f&&f[1]?f[1].toLowerCase():"";switch(h){case o:var m=d(e);return l.test(e)||null===(t=null==(M=m.querySelector(i))?void 0:M.parentNode)||void 0===t||t.removeChild(M),c.test(e)||null===(n=null==(M=m.querySelector(a))?void 0:M.parentNode)||void 0===n||n.removeChild(M),m.querySelectorAll(o);case i:case a:var p=u(e).querySelectorAll(h);return c.test(e)&&l.test(e)?p[0].parentNode.childNodes:p;default:return g?g(e):(M=u(e,a).querySelector(a)).childNodes;var M}};var r=n(67731),o="html",i="head",a="body",s=/<([a-zA-Z]+[0-9]?)/,l=/<head[^]*>/i,c=/<body[^]*>/i,u=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},d=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},f="object"==typeof window&&window.DOMParser;if("function"==typeof f){var h=new f;u=d=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),h.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var m=document.implementation.createHTMLDocument();u=function(e,t){if(t){var n=m.documentElement.querySelector(t);return n&&(n.innerHTML=e),m}return m.documentElement.innerHTML=e,m}}var g,p="object"==typeof document&&document.createElement("template");p&&p.content&&(g=function(e){return p.innerHTML=e,p.content.childNodes})},67731:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAttributes=i,t.escapeSpecialCharacters=function(e){return e.replace(o.CARRIAGE_RETURN_REGEX,o.CARRIAGE_RETURN_PLACEHOLDER)},t.revertEscapedCharacters=s,t.formatDOM=function e(t,n,o){void 0===n&&(n=null);for(var l,c=[],u=0,d=t.length;u<d;u++){var f=t[u];switch(f.nodeType){case 1:var h=a(f.nodeName);(l=new r.Element(h,i(f.attributes))).children=e("template"===h?f.content.childNodes:f.childNodes,l);break;case 3:l=new r.Text(s(f.nodeValue));break;case 8:l=new r.Comment(f.nodeValue);break;default:continue}var m=c[u-1]||null;m&&(m.next=l),l.parent=n,l.prev=m,l.next=null,c.push(l)}return o&&((l=new r.ProcessingInstruction(o.substring(0,o.indexOf(" ")).toLowerCase(),o)).next=c[0]||null,l.parent=n,c.unshift(l),c[1]&&(c[1].prev=c[0])),c};var r=n(41141),o=n(15270);function i(e){for(var t={},n=0,r=e.length;n<r;n++){var o=e[n];t[o.name]=o.value}return t}function a(e){return function(e){return o.CASE_SENSITIVE_TAG_NAMES_MAP[e]}(e=e.toLowerCase())||e}function s(e){return e.replace(o.CARRIAGE_RETURN_PLACEHOLDER_REGEX,o.CARRIAGE_RETURN)}},74848:(e,t,n)=>{"use strict";e.exports=n(21020)},74958:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=function(e,t){return e.includes("-")?!a.has(e):Boolean(t&&"string"==typeof t.is)},t.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,i.default)(e,s)}catch(e){t.style={}}else t.style={}};var o=n(51609),i=r(n(35229)),a=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]),s={reactCompat:!0};t.PRESERVE_CUSTOM_ATTRIBUTES=Number(o.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}},92471:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(a),n=t?t[1]:void 0;return(0,i.formatDOM)((0,o.default)(e),null,n)};var o=r(n(65496)),i=n(67731),a=/<(![a-zA-Z\s]+)>/},96811:(e,t)=>{t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},98917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,o=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,l):e.replace(i,l)).replace(r,s))}}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e].call(i.exports,i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,o.d(i,a),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};o.r(e),o.d(e,{Button:()=>zp,CaptionLabel:()=>Sp,Chevron:()=>Lp,Day:()=>Cp,DayButton:()=>Rp,Dropdown:()=>Up,DropdownNav:()=>Qp,Footer:()=>Yp,Month:()=>Pp,MonthCaption:()=>_p,MonthGrid:()=>Fp,Months:()=>Bp,MonthsDropdown:()=>Vp,Nav:()=>Wp,NextMonthButton:()=>Hp,Option:()=>Gp,PreviousMonthButton:()=>qp,Root:()=>$p,Select:()=>Zp,Week:()=>Kp,WeekNumber:()=>eM,WeekNumberHeader:()=>tM,Weekday:()=>Xp,Weekdays:()=>Jp,Weeks:()=>nM,YearsDropdown:()=>rM});var t={};o.r(t),o.d(t,{formatCaption:()=>iM,formatDay:()=>sM,formatMonthCaption:()=>aM,formatMonthDropdown:()=>lM,formatWeekNumber:()=>cM,formatWeekNumberHeader:()=>uM,formatWeekdayName:()=>dM,formatYearCaption:()=>hM,formatYearDropdown:()=>fM});var n={};o.r(n),o.d(n,{labelCaption:()=>gM,labelDay:()=>yM,labelDayButton:()=>MM,labelGrid:()=>mM,labelGridcell:()=>pM,labelMonthDropdown:()=>xM,labelNav:()=>NM,labelNext:()=>DM,labelPrevious:()=>vM,labelWeekNumber:()=>TM,labelWeekNumberHeader:()=>bM,labelWeekday:()=>wM,labelYearDropdown:()=>jM});const r=window.wp.domReady;var i=o.n(r);const a=window.wp.element;let s=1;const l=new class{#e;#t;constructor(){this.#e=[],this.#t=[]}subscribe(e){return this.#t.push(e),()=>{this.#t=this.#t.filter((t=>t!==e))}}publish(e){this.#t.forEach((t=>t(e)))}add(e){this.#e.push(e),this.publish(e)}remove(e){return this.#e=this.#e.filter((t=>t.id!==e)),e}create(e){const{id:t,message:n="",jsx:r,...o}=e;if(!n&&"function"!=typeof r)return;const i="number"==typeof t?t:s++;return this.#e.find((e=>e.id===i))&&(this.#e=this.#e.map((e=>e.id===i?(this.publish({...e,title:n,jsx:r,...o}),{...e,title:n,jsx:r,...o}):e))),this.add({id:i,title:n,jsx:r,...o}),i}update(e,t){const{render:n}=t;let r=t;switch(typeof n){case"function":r={jsx:n,...t};break;case"string":r={title:n,...t}}this.#e=this.#e.map((t=>t.id===e?(this.publish({...t,...r}),{...t,...r}):t))}dismiss(e){return e||this.#e.forEach((e=>this.#t.forEach((t=>t({id:e.id,dismiss:!0}))))),this.#t.forEach((t=>t({id:e,dismiss:!0}))),e}history(){return this.#e}default(e="",t={}){return this.create({message:e,type:"neutral",...t})}success(e="",t={}){return this.create({message:e,type:"success",...t})}error(e="",t={}){return this.create({message:e,type:"error",...t})}warning(e="",t={}){return this.create({message:e,type:"warning",...t})}info(e="",t={}){return this.create({message:e,type:"info",...t})}custom(e,t={}){return this.create({jsx:e,type:"custom",...t})}},c=Object.seal(Object.assign(((e,t)=>l.default(e,t)),{success:l.success.bind(l),error:l.error.bind(l),warning:l.warning.bind(l),info:l.info.bind(l),custom:l.custom.bind(l),dismiss:l.dismiss.bind(l),update:l.update.bind(l)},{getHistory:l.history.bind(l)}));var u=o(74848),d=o(51609),f=o.t(d,2);const h=(...e)=>e.filter(((e,t,n)=>Boolean(e)&&n.indexOf(e)===t)).join(" ");var m={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const g=(0,d.forwardRef)((({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:a,...s},l)=>(0,d.createElement)("svg",{ref:l,...m,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:h("lucide",o),...s},[...a.map((([e,t])=>(0,d.createElement)(e,t))),...Array.isArray(i)?i:[i]]))),p=(e,t)=>{const n=(0,d.forwardRef)((({className:n,...r},o)=>{return(0,d.createElement)(g,{ref:o,iconNode:t,className:h(`lucide-${i=e,i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,n),...r});var i}));return n.displayName=`${e}`,n},M=p("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),y=e=>{const t=v(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),N(n,t)||D(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},N=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?N(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find((({validator:e})=>e(i)))?.classGroupId},x=/^\[(.+)\]$/,D=e=>{if(x.test(e)){const t=x.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},v=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return j(Object.entries(e.classGroups),n).forEach((([e,n])=>{w(n,r,e,t)})),r},w=(e,t,n,r)=>{e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return b(e)?void w(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{w(o,T(t,e),n,r)}))}else(""===e?t:T(t,e)).classGroupId=n}))},T=(e,t)=>{let n=e;return t.split("-").forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n},b=e=>e.isThemeGetter,j=(e,t)=>t?e.map((([e,n])=>[e,n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e))])):e,E=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},I=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],i=t.length,a=e=>{const n=[];let a,s=0,l=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===s){if(u===o&&(r||e.slice(c,c+i)===t)){n.push(e.slice(l,c)),l=c+i;continue}if("/"===u){a=c;continue}}"["===u?s++:"]"===u&&s--}const c=0===n.length?e:e.substring(l),u=c.startsWith("!");return{modifiers:n,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:a&&a>l?a-l:void 0}};return n?e=>n({className:e,parseClassName:a}):a},A=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t},O=/\s+/;function k(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=z(e))&&(r&&(r+=" "),r+=t);return r}const z=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=z(e[r]))&&(n&&(n+=" "),n+=t);return n};function S(e,...t){let n,r,o,i=function(s){const l=t.reduce(((e,t)=>t(e)),e());return n=(e=>({cache:E(e.cacheSize),parseClassName:I(e),...y(e)}))(l),r=n.cache.get,o=n.cache.set,i=a,a(s)};function a(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],a=e.trim().split(O);let s="";for(let e=a.length-1;e>=0;e-=1){const t=a[e],{modifiers:l,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:d}=n(t);let f=Boolean(d),h=r(f?u.substring(0,d):u);if(!h){if(!f){s=t+(s.length>0?" "+s:s);continue}if(h=r(u),!h){s=t+(s.length>0?" "+s:s);continue}f=!1}const m=A(l).join(":"),g=c?m+"!":m,p=g+h;if(i.includes(p))continue;i.push(p);const M=o(h,f);for(let e=0;e<M.length;++e){const t=M[e];i.push(g+t)}s=t+(s.length>0?" "+s:s)}return s})(e,n);return o(e,i),i}return function(){return i(k.apply(null,arguments))}}const L=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},C=/^\[(?:([a-z-]+):)?(.+)\]$/i,R=/^\d+\/\d+$/,U=new Set(["px","full","screen"]),Q=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Y=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,P=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,F=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,B=e=>W(e)||U.has(e)||R.test(e),V=e=>oe(e,"length",ie),W=e=>Boolean(e)&&!Number.isNaN(Number(e)),H=e=>oe(e,"number",W),G=e=>Boolean(e)&&Number.isInteger(Number(e)),q=e=>e.endsWith("%")&&W(e.slice(0,-1)),$=e=>C.test(e),Z=e=>Q.test(e),K=new Set(["length","size","percentage"]),X=e=>oe(e,K,ae),J=e=>oe(e,"position",ae),ee=new Set(["image","url"]),te=e=>oe(e,ee,le),ne=e=>oe(e,"",se),re=()=>!0,oe=(e,t,n)=>{const r=C.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},ie=e=>Y.test(e)&&!P.test(e),ae=()=>!1,se=e=>_.test(e),le=e=>F.test(e),ce=(Symbol.toStringTag,()=>{const e=L("colors"),t=L("spacing"),n=L("blur"),r=L("brightness"),o=L("borderColor"),i=L("borderRadius"),a=L("borderSpacing"),s=L("borderWidth"),l=L("contrast"),c=L("grayscale"),u=L("hueRotate"),d=L("invert"),f=L("gap"),h=L("gradientColorStops"),m=L("gradientColorStopPositions"),g=L("inset"),p=L("margin"),M=L("opacity"),y=L("padding"),N=L("saturate"),x=L("scale"),D=L("sepia"),v=L("skew"),w=L("space"),T=L("translate"),b=()=>["auto",$,t],j=()=>[$,t],E=()=>["",B,V],I=()=>["auto",W,$],A=()=>["","0",$],O=()=>[W,$];return{cacheSize:500,separator:":",theme:{colors:[re],spacing:[B,V],blur:["none","",Z,$],brightness:O(),borderColor:[e],borderRadius:["none","","full",Z,$],borderSpacing:j(),borderWidth:E(),contrast:O(),grayscale:A(),hueRotate:O(),invert:A(),gap:j(),gradientColorStops:[e],gradientColorStopPositions:[q,V],inset:b(),margin:b(),opacity:O(),padding:j(),saturate:O(),scale:O(),sepia:A(),skew:O(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",$]}],container:["container"],columns:[{columns:[Z]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",$]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",G,$]}],basis:[{basis:b()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",$]}],grow:[{grow:A()}],shrink:[{shrink:A()}],order:[{order:["first","last","none",G,$]}],"grid-cols":[{"grid-cols":[re]}],"col-start-end":[{col:["auto",{span:["full",G,$]},$]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[re]}],"row-start-end":[{row:["auto",{span:[G,$]},$]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",$]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",$]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],me:[{me:[p]}],mt:[{mt:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],"space-x":[{"space-x":[w]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[w]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",$,t]}],"min-w":[{"min-w":[$,t,"min","max","fit"]}],"max-w":[{"max-w":[$,t,"none","full","min","max","fit","prose",{screen:[Z]},Z]}],h:[{h:[$,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[$,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[$,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[$,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Z,V]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",H]}],"font-family":[{font:[re]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",$]}],"line-clamp":[{"line-clamp":["none",W,H]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",B,$]}],"list-image":[{"list-image":["none",$]}],"list-style-type":[{list:["none","disc","decimal",$]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[M]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",B,V]}],"underline-offset":[{"underline-offset":["auto",B,$]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",$]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",$]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[M]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",J]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",X]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},te]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[M]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[M]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[B,$]}],"outline-w":[{outline:[B,V]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:E()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[M]}],"ring-offset-w":[{"ring-offset":[B,V]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Z,ne]}],"shadow-color":[{shadow:[re]}],opacity:[{opacity:[M]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Z,$]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[N]}],sepia:[{sepia:[D]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[M]}],"backdrop-saturate":[{"backdrop-saturate":[N]}],"backdrop-sepia":[{"backdrop-sepia":[D]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",$]}],duration:[{duration:O()}],ease:[{ease:["linear","in","out","in-out",$]}],delay:[{delay:O()}],animate:[{animate:["none","spin","ping","pulse","bounce",$]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[G,$]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[v]}],"skew-y":[{"skew-y":[v]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",$]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",$]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",$]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[B,V,H]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}),ue=S(ce);function de(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=de(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function fe(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=de(e))&&(r&&(r+=" "),r+=t);return r}const he=fe,me=(...e)=>ue(fe(...e)),ge=(...e)=>(...t)=>e.forEach((e=>e?.(...t))),pe=e=>{const t={0:"gap-0",xxs:"gap-1",xs:"gap-2",sm:"gap-3",md:"gap-4",lg:"gap-5",xl:"gap-6","2xl":"gap-8"};return t[e]||t.md},Me=p("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),ye=p("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Ne=p("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),xe=p("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),De=(0,d.forwardRef)(((e,t)=>{const{variant:n="primary",size:r="md",type:o="button",tag:i="button",className:a,children:s,disabled:l=!1,destructive:c=!1,icon:f=null,iconPosition:h="left",loading:m=!1,...g}=e,p=c&&"focus:ring-focus-error",M=m?"opacity-50 disabled:cursor-not-allowed":"",y={primary:"text-text-on-color bg-button-primary hover:bg-button-primary-hover outline-button-primary hover:outline-button-primary-hover shadow-xs disabled:shadow-none focus:shadow-none disabled:bg-button-disabled disabled:outline-button-disabled",secondary:"text-text-on-color bg-button-secondary hover:bg-button-secondary-hover outline-button-secondary hover:outline-button-secondary-hover shadow-xs focus:shadow-none disabled:shadow-none disabled:bg-button-disabled disabled:outline-button-disabled",outline:"text-button-tertiary-color outline-border-subtle bg-button-tertiary shadow-sm focus:shadow-none hover:bg-button-tertiary-hover hover:outline-border-subtle disabled:bg-button-tertiary disabled:outline-border-disabled",ghost:"text-text-primary bg-transparent outline-transparent hover:bg-button-tertiary-hover",link:"outline-none text-link-primary bg-transparent hover:text-link-primary-hover hover:underline p-0 border-0 leading-none"}[n],N=c&&!l?{primary:"bg-button-danger hover:bg-button-danger-hover outline-button-danger hover:outline-button-danger-hover",secondary:"bg-button-danger hover:bg-button-danger-hover outline-button-danger hover:outline-button-danger-hover",outline:"text-button-danger outline outline-1 outline-button-danger hover:outline-button-danger bg-button-tertiary hover:bg-field-background-error",ghost:"text-button-danger hover:bg-field-background-error",link:"text-button-danger hover:text-button-danger-secondary"}[n]:"",x={xs:"p-1 rounded [&>svg]:size-4",sm:"p-2 rounded [&>svg]:size-4 gap-0.5",md:"p-2.5 rounded-md text-sm [&>svg]:size-5 gap-1",lg:"p-3 rounded-lg text-base [&>svg]:size-6 gap-1"}[r];let D,v=null,w="";return f&&(w="flex items-center justify-center","left"===h?D=f:v=f),(0,u.jsxs)(i,{ref:t,type:o,className:me(w,"outline outline-1 border-none cursor-pointer transition-colors duration-300 ease-in-out text-xs font-semibold focus:ring-2 focus:ring-toggle-on focus:ring-offset-2 disabled:text-text-disabled",x,y,N,p,M,{"cursor-default":l},a),disabled:l,...g,children:[(0,u.jsx)(d.Fragment,{children:D},"left-icon"),s?(0,u.jsx)("span",{className:"px-1",children:s}):null,(0,u.jsx)(d.Fragment,{children:v},"right-icon")]})}));De.displayName="Button";const ve="light",we="neutral",Te=({icon:e,theme:t=ve,variant:n=we})=>{const r="[&>svg]:h-5 [&>svg]:w-5",o=(({theme:e=ve,variant:t=we})=>{let n="light"===e?"text-icon-secondary":"text-icon-inverse";return n={info:"light"===e?"text-support-info":"text-support-info-inverse",success:"light"===e?"text-support-success":"text-support-success-inverse",warning:"light"===e?"text-support-warning":"text-support-warning-inverse",error:"light"===e?"text-support-error":"text-support-error-inverse"}[t]||n,n})({theme:t,variant:n});if(e&&(0,d.isValidElement)(e))return(0,d.cloneElement)(e,{className:me(r,o,e?.props?.className??"")});const i={neutral:(0,u.jsx)(Me,{className:me(r,o)}),info:(0,u.jsx)(Me,{className:me(r,o)}),success:(0,u.jsx)(ye,{className:me(r,o)}),warning:(0,u.jsx)(Ne,{className:me(r,o)}),error:(0,u.jsx)(xe,{className:me(r,o)})};return i[n]||i.neutral},be=({actionType:e="button",onAction:t=()=>{},actionLabel:n="",theme:r=ve})=>{const o="focus:ring-0 focus:ring-offset-0 ring-offset-0 focus:outline-none";let i="text-button-primary border-button-primary hover:border-button-primary hover:text-button-primary-hover";switch("dark"===r&&(i="text-text-inverse border-text-inverse hover:border-text-inverse hover:text-text-inverse"),e){case"button":return(0,u.jsx)(De,{variant:"outline",size:"xs",onClick:t,className:me("rounded",o,i,"dark"===r?"bg-transparent hover:bg-transparent":"bg-white hover:bg-white"),children:n});case"link":return(0,u.jsx)(De,{variant:"link",size:"xs",onClick:t,className:me(o,i),children:n});default:return null}},je=({theme:e=ve,title:t="",inline:n=!1})=>t?(0,u.jsx)("span",{className:me("block",{light:"text-text-primary",dark:"text-text-inverse"}[e],"text-sm leading-5 font-semibold",n?"inline":"block"),children:t}):null,Ee=({theme:e=ve,content:t="",inline:n=!1})=>t?(0,u.jsx)("span",{className:me({light:"text-text-primary",dark:"text-text-inverse"}[e],"block text-sm [&_*]:text-sm leading-5 [&_*]:leading-5 font-normal [word-break:break-word]",n?"inline":"block"),children:t}):null,Ie=(...e)=>t=>{e.forEach((e=>{"function"==typeof e?e(t):e&&(e.current=t)}))},Ae={"top-left":"top-0 bottom-0 left-0 justify-start items-start","top-right":"top-0 bottom-0 right-0 justify-start items-end","bottom-left":"top-0 bottom-0 left-0 justify-end items-start","bottom-right":"top-0 bottom-0 right-0 justify-end items-end"},Oe={neutral:"border-alert-border-neutral bg-alert-background-neutral",custom:"border-alert-border-neutral bg-alert-background-neutral",info:"border-alert-border-info bg-alert-background-info",success:"border-alert-border-green bg-alert-background-green",warning:"border-alert-border-warning bg-alert-background-warning",error:"border-alert-border-danger bg-alert-background-danger"},ke="bg-background-inverse border-background-inverse",ze={light:"text-icon-secondary",dark:"text-icon-inverse"},Se=window.ReactDOM,Le=(0,d.createContext)({});function Ce(e){const t=(0,d.useRef)(null);return null===t.current&&(t.current=e()),t.current}const Re=(0,d.createContext)(null),Ue=(0,d.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class Qe extends d.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Ye({children:e,isPresent:t}){const n=(0,d.useId)(),r=(0,d.useRef)(null),o=(0,d.useRef)({width:0,height:0,top:0,left:0}),{nonce:i}=(0,d.useContext)(Ue);return(0,d.useInsertionEffect)((()=>{const{width:e,height:a,top:s,left:l}=o.current;if(t||!r.current||!e||!a)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return i&&(c.nonce=i),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`\n [data-motion-pop-id="${n}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${a}px !important;\n top: ${s}px !important;\n left: ${l}px !important;\n }\n `),()=>{document.head.removeChild(c)}}),[t]),(0,u.jsx)(Qe,{isPresent:t,childRef:r,sizeRef:o,children:d.cloneElement(e,{ref:r})})}const Pe=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a})=>{const s=Ce(_e),l=(0,d.useId)(),c=(0,d.useCallback)((e=>{s.set(e,!0);for(const e of s.values())if(!e)return;r&&r()}),[s,r]),f=(0,d.useMemo)((()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:c,register:e=>(s.set(e,!1),()=>s.delete(e))})),i?[Math.random(),c]:[n,c]);return(0,d.useMemo)((()=>{s.forEach(((e,t)=>s.set(t,!1)))}),[n]),d.useEffect((()=>{!n&&!s.size&&r&&r()}),[n]),"popLayout"===a&&(e=(0,u.jsx)(Ye,{isPresent:n,children:e})),(0,u.jsx)(Re.Provider,{value:f,children:e})};function _e(){return new Map}function Fe(e=!0){const t=(0,d.useContext)(Re);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=(0,d.useId)();(0,d.useEffect)((()=>{e&&o(i)}),[e]);const a=(0,d.useCallback)((()=>e&&r&&r(i)),[i,r,e]);return!n&&r?[!1,a]:[!0]}const Be=e=>e.key||"";function Ve(e){const t=[];return d.Children.forEach(e,(e=>{(0,d.isValidElement)(e)&&t.push(e)})),t}const We="undefined"!=typeof window,He=We?d.useLayoutEffect:d.useEffect,Ge=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:a=!1})=>{const[s,l]=Fe(a),c=(0,d.useMemo)((()=>Ve(e)),[e]),f=a&&!s?[]:c.map(Be),h=(0,d.useRef)(!0),m=(0,d.useRef)(c),g=Ce((()=>new Map)),[p,M]=(0,d.useState)(c),[y,N]=(0,d.useState)(c);He((()=>{h.current=!1,m.current=c;for(let e=0;e<y.length;e++){const t=Be(y[e]);f.includes(t)?g.delete(t):!0!==g.get(t)&&g.set(t,!1)}}),[y,f.length,f.join("-")]);const x=[];if(c!==p){let e=[...c];for(let t=0;t<y.length;t++){const n=y[t],r=Be(n);f.includes(r)||(e.splice(t,0,n),x.push(n))}return"wait"===i&&x.length&&(e=x),N(Ve(e)),void M(c)}const{forceRender:D}=(0,d.useContext)(Le);return(0,u.jsx)(u.Fragment,{children:y.map((e=>{const d=Be(e),p=!(a&&!s)&&(c===y||f.includes(d));return(0,u.jsx)(Pe,{isPresent:p,initial:!(h.current&&!n)&&void 0,custom:p?void 0:t,presenceAffectsLayout:o,mode:i,onExitComplete:p?void 0:()=>{if(!g.has(d))return;g.set(d,!0);let e=!0;g.forEach((t=>{t||(e=!1)})),e&&(null==D||D(),N(m.current),a&&(null==l||l()),r&&r())},children:e},d)}))})};function qe(e){if("undefined"==typeof Proxy)return e;const t=new Map;return new Proxy(((...t)=>e(...t)),{get:(n,r)=>"create"===r?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}function $e(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}const Ze=e=>Array.isArray(e);function Ke(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Xe(e){return"string"==typeof e||Array.isArray(e)}function Je(e){const t=[{},{}];return null==e||e.values.forEach(((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()})),t}function et(e,t,n,r){if("function"==typeof t){const[o,i]=Je(r);t=t(void 0!==n?n:e.custom,o,i)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[o,i]=Je(r);t=t(void 0!==n?n:e.custom,o,i)}return t}function tt(e,t,n){const r=e.getProps();return et(r,t,void 0!==n?n:r.custom,e)}const nt=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],rt=["initial",...nt];function ot(e){let t;return()=>(void 0===t&&(t=e()),t)}const it=ot((()=>void 0!==window.ScrollTimeline));class at{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map((e=>"finished"in e?e.finished:e)))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){const n=this.animations.map((n=>it()&&n.attachTimeline?n.attachTimeline(e):"function"==typeof t?t(n):void 0));return()=>{n.forEach(((e,t)=>{e&&e(),this.animations[t].stop()}))}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach((t=>t[e]()))}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class st extends at{then(e,t){return Promise.all(this.animations).then(e).catch(t)}}function lt(e,t){return e?e[t]||e.default||e:void 0}const ct=2e4;function ut(e){let t=0,n=e.next(t);for(;!n.done&&t<ct;)t+=50,n=e.next(t);return t>=ct?1/0:t}function dt(e){return"function"==typeof e}function ft(e,t){e.timeline=t,e.onfinish=null}const ht=e=>Array.isArray(e)&&"number"==typeof e[0],mt={linearEasing:void 0};function gt(e,t){const n=ot(e);return()=>{var e;return null!==(e=mt[t])&&void 0!==e?e:n()}}const pt=gt((()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0}),"linearEasing"),Mt=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},yt=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let t=0;t<o;t++)r+=e(Mt(0,o-1,t))+", ";return`linear(${r.substring(0,r.length-2)})`};function Nt(e){return Boolean("function"==typeof e&&pt()||!e||"string"==typeof e&&(e in Dt||pt())||ht(e)||Array.isArray(e)&&e.every(Nt))}const xt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Dt={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xt([0,.65,.55,1]),circOut:xt([.55,0,1,.45]),backIn:xt([.31,.01,.66,-.59]),backOut:xt([.33,1.53,.69,.99])};function vt(e,t){return e?"function"==typeof e&&pt()?yt(e,t):ht(e)?xt(e):Array.isArray(e)?e.map((e=>vt(e,t)||Dt.easeOut)):Dt[e]:void 0}const wt={x:!1,y:!1};function Tt(){return wt.x||wt.y}function bt(e,t){const n=function(e){if(e instanceof Element)return[e];if("string"==typeof e){let t=document;const n=t.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e)}(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function jt(e){return t=>{"touch"===t.pointerType||Tt()||e(t)}}const Et=(e,t)=>!!t&&(e===t||Et(e,t.parentElement)),It=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,At=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),Ot=new WeakSet;function kt(e){return t=>{"Enter"===t.key&&e(t)}}function zt(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function St(e){return It(e)&&!Tt()}const Lt=e=>1e3*e,Ct=e=>e/1e3,Rt=e=>e,Ut=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Qt=new Set(Ut),Yt=new Set(["width","height","top","left","right","bottom",...Ut]),Pt=["read","resolveKeyframes","update","preRender","render","postRender"];function _t(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=Pt.reduce(((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function s(t){i.has(t)&&(l.schedule(t),e()),t(a)}const l={schedule:(e,o=!1,a=!1)=>{const s=a&&r?t:n;return o&&i.add(e),s.has(e)||s.add(e),e},cancel:e=>{n.delete(e),i.delete(e)},process:e=>{a=e,r?o=!0:(r=!0,[t,n]=[n,t],t.forEach(s),t.clear(),r=!1,o&&(o=!1,l.process(e)))}};return l}(i),e)),{}),{read:s,resolveKeyframes:l,update:c,preRender:u,render:d,postRender:f}=a,h=()=>{const i=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(i-o.timestamp,40),1),o.timestamp=i,o.isProcessing=!0,s.process(o),l.process(o),c.process(o),u.process(o),d.process(o),f.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(h))};return{schedule:Pt.reduce(((t,i)=>{const s=a[i];return t[i]=(t,i=!1,a=!1)=>(n||(n=!0,r=!0,o.isProcessing||e(h)),s.schedule(t,i,a)),t}),{}),cancel:e=>{for(let t=0;t<Pt.length;t++)a[Pt[t]].cancel(e)},state:o,steps:a}}const{schedule:Ft,cancel:Bt,state:Vt,steps:Wt}=_t("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:Rt,!0);let Ht;function Gt(){Ht=void 0}const qt={now:()=>(void 0===Ht&&qt.set(Vt.isProcessing?Vt.timestamp:performance.now()),Ht),set:e=>{Ht=e,queueMicrotask(Gt)}};function $t(e,t){-1===e.indexOf(t)&&e.push(t)}function Zt(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Kt{constructor(){this.subscriptions=[]}add(e){return $t(this.subscriptions,e),()=>Zt(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Xt(e,t){return t?e*(1e3/t):0}const Jt={current:void 0};class en{constructor(e,t={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{const n=qt.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=qt.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Kt);const n=this.events[e].add(t);return"change"===e?()=>{n(),Ft.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return Jt.current&&Jt.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=qt.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Xt(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function tn(e,t){return new en(e,t)}function nn(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,tn(n))}const rn=e=>Boolean(e&&e.getVelocity);function on(e,t){const n=e.getValue("willChange");if(r=n,Boolean(rn(r)&&r.add))return n.add(t);var r}const an=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),sn="data-"+an("framerAppearId");function ln(e){return e.props[sn]}const cn=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function un(e,t,n,r){if(e===t&&n===r)return Rt;return o=>0===o||1===o?o:cn(function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=cn(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>1e-7&&++s<12);return a}(o,0,1,e,n),t,r)}const dn=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,fn=e=>t=>1-e(1-t),hn=un(.33,1.53,.69,.99),mn=fn(hn),gn=dn(mn),pn=e=>(e*=2)<1?.5*mn(e):.5*(2-Math.pow(2,-10*(e-1))),Mn=e=>1-Math.sin(Math.acos(e)),yn=fn(Mn),Nn=dn(Mn),xn=e=>/^0[^.\s]+$/u.test(e),Dn=(e,t,n)=>n>t?t:n<e?e:n,vn={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},wn={...vn,transform:e=>Dn(0,1,e)},Tn={...vn,default:1},bn=e=>Math.round(1e5*e)/1e5,jn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,En=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,In=(e,t)=>n=>Boolean("string"==typeof n&&En.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),An=(e,t,n)=>r=>{if("string"!=typeof r)return r;const[o,i,a,s]=r.match(jn);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},On={...vn,transform:e=>Math.round((e=>Dn(0,255,e))(e))},kn={test:In("rgb","red"),parse:An("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+On.transform(e)+", "+On.transform(t)+", "+On.transform(n)+", "+bn(wn.transform(r))+")"},zn={test:In("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:kn.transform},Sn=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Ln=Sn("deg"),Cn=Sn("%"),Rn=Sn("px"),Un=Sn("vh"),Qn=Sn("vw"),Yn={...Cn,parse:e=>Cn.parse(e)/100,transform:e=>Cn.transform(100*e)},Pn={test:In("hsl","hue"),parse:An("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Cn.transform(bn(t))+", "+Cn.transform(bn(n))+", "+bn(wn.transform(r))+")"},_n={test:e=>kn.test(e)||zn.test(e)||Pn.test(e),parse:e=>kn.test(e)?kn.parse(e):Pn.test(e)?Pn.parse(e):zn.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?kn.transform(e):Pn.transform(e)},Fn=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Bn="number",Vn="color",Wn=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Hn(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(Wn,(e=>(_n.test(e)?(r.color.push(i),o.push(Vn),n.push(_n.parse(e))):e.startsWith("var(")?(r.var.push(i),o.push("var"),n.push(e)):(r.number.push(i),o.push(Bn),n.push(parseFloat(e))),++i,"${}"))).split("${}");return{values:n,split:a,indexes:r,types:o}}function Gn(e){return Hn(e).values}function qn(e){const{split:t,types:n}=Hn(e),r=t.length;return e=>{let o="";for(let i=0;i<r;i++)if(o+=t[i],void 0!==e[i]){const t=n[i];o+=t===Bn?bn(e[i]):t===Vn?_n.transform(e[i]):e[i]}return o}}const $n=e=>"number"==typeof e?0:e,Zn={test:function(e){var t,n;return isNaN(e)&&"string"==typeof e&&((null===(t=e.match(jn))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(Fn))||void 0===n?void 0:n.length)||0)>0},parse:Gn,createTransformer:qn,getAnimatableNone:function(e){const t=Gn(e);return qn(e)(t.map($n))}},Kn=new Set(["brightness","contrast","saturate","opacity"]);function Xn(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(jn)||[];if(!r)return e;const o=n.replace(r,"");let i=Kn.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Jn=/\b([a-z-]*)\(.*?\)/gu,er={...Zn,getAnimatableNone:e=>{const t=e.match(Jn);return t?t.map(Xn).join(" "):e}},tr={borderWidth:Rn,borderTopWidth:Rn,borderRightWidth:Rn,borderBottomWidth:Rn,borderLeftWidth:Rn,borderRadius:Rn,radius:Rn,borderTopLeftRadius:Rn,borderTopRightRadius:Rn,borderBottomRightRadius:Rn,borderBottomLeftRadius:Rn,width:Rn,maxWidth:Rn,height:Rn,maxHeight:Rn,top:Rn,right:Rn,bottom:Rn,left:Rn,padding:Rn,paddingTop:Rn,paddingRight:Rn,paddingBottom:Rn,paddingLeft:Rn,margin:Rn,marginTop:Rn,marginRight:Rn,marginBottom:Rn,marginLeft:Rn,backgroundPositionX:Rn,backgroundPositionY:Rn},nr={rotate:Ln,rotateX:Ln,rotateY:Ln,rotateZ:Ln,scale:Tn,scaleX:Tn,scaleY:Tn,scaleZ:Tn,skew:Ln,skewX:Ln,skewY:Ln,distance:Rn,translateX:Rn,translateY:Rn,translateZ:Rn,x:Rn,y:Rn,z:Rn,perspective:Rn,transformPerspective:Rn,opacity:wn,originX:Yn,originY:Yn,originZ:Rn},rr={...vn,transform:Math.round},or={...tr,...nr,zIndex:rr,size:Rn,fillOpacity:wn,strokeOpacity:wn,numOctaves:rr},ir={...or,color:_n,backgroundColor:_n,outlineColor:_n,fill:_n,stroke:_n,borderColor:_n,borderTopColor:_n,borderRightColor:_n,borderBottomColor:_n,borderLeftColor:_n,filter:er,WebkitFilter:er},ar=e=>ir[e];function sr(e,t){let n=ar(e);return n!==er&&(n=Zn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const lr=new Set(["auto","none","0"]),cr=e=>e===vn||e===Rn,ur=(e,t)=>parseFloat(e.split(", ")[t]),dr=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return ur(o[1],t);{const t=r.match(/^matrix\((.+)\)$/u);return t?ur(t[1],e):0}},fr=new Set(["x","y","z"]),hr=Ut.filter((e=>!fr.has(e))),mr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:dr(4,13),y:dr(5,14)};mr.translateX=mr.x,mr.translateY=mr.y;const gr=new Set;let pr=!1,Mr=!1;function yr(){if(Mr){const e=Array.from(gr).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),n=new Map;t.forEach((e=>{const t=function(e){const t=[];return hr.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t}(e);t.length&&(n.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const t=n.get(e);t&&t.forEach((([t,n])=>{var r;null===(r=e.getValue(t))||void 0===r||r.set(n)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}Mr=!1,pr=!1,gr.forEach((e=>e.complete())),gr.clear()}function Nr(){gr.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(Mr=!0)}))}class xr{constructor(e,t,n,r,o,i=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=o,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(gr.add(this),pr||(pr=!0,Ft.read(Nr),Ft.resolveKeyframes(yr))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let o=0;o<e.length;o++)if(null===e[o])if(0===o){const o=null==r?void 0:r.get(),i=e[e.length-1];if(void 0!==o)e[0]=o;else if(n&&t){const r=n.readValue(t,i);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=i),r&&void 0===o&&r.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),gr.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,gr.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let Dr=Rt,vr=Rt;const wr=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Tr=e=>t=>"string"==typeof t&&t.startsWith(e),br=Tr("--"),jr=Tr("var(--"),Er=e=>!!jr(e)&&Ir.test(e.split("/*")[0].trim()),Ir=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ar=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Or(e,t,n=1){vr(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=Ar.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${null!=n?n:r}`,o]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const e=i.trim();return wr(e)?parseFloat(e):e}return Er(o)?Or(o,t,n+1):o}const kr=e=>t=>t.test(e),zr=[vn,Rn,Cn,Ln,Qn,Un,{test:e=>"auto"===e,parse:e=>e}],Sr=e=>zr.find(kr(e));class Lr extends xr{constructor(e,t,n,r,o){super(e,t,n,r,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&(r=r.trim(),Er(r))){const o=Or(r,t.current);void 0!==o&&(e[n]=o),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Yt.has(n)||2!==e.length)return;const[r,o]=e,i=Sr(r),a=Sr(o);if(i!==a)if(cr(i)&&cr(a))for(let t=0;t<e.length;t++){const n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)("number"==typeof(r=e[t])?0===r:null===r||"none"===r||"0"===r||xn(r))&&n.push(t);var r;n.length&&function(e,t,n){let r,o=0;for(;o<e.length&&!r;){const t=e[o];"string"==typeof t&&!lr.has(t)&&Hn(t).values.length&&(r=e[o]),o++}if(r&&n)for(const o of t)e[o]=sr(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=mr[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const i=r.length-1,a=r[i];r[i]=mr[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach((([e,n])=>{t.getValue(e).set(n)})),this.resolveNoneKeyframes()}}const Cr=(e,t)=>!("zIndex"===t||"number"!=typeof e&&!Array.isArray(e)&&("string"!=typeof e||!Zn.test(e)&&"0"!==e||e.startsWith("url(")));function Rr(e,t,n,r){const o=e[0];if(null===o)return!1;if("display"===t||"visibility"===t)return!0;const i=e[e.length-1],a=Cr(o,t),s=Cr(i,t);return Dr(a===s,`You are trying to animate ${t} from "${o}" to "${i}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${i} via the \`style\` property.`),!(!a||!s)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||dt(n))&&r)}const Ur=e=>null!==e;function Qr(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(Ur),i=t&&"loop"!==n&&t%2==1?0:o.length-1;return i&&void 0!==r?r:o[i]}class Yr{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=qt.now(),this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:o,repeatType:i,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(Nr(),yr()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=qt.now(),this.hasAttemptedResolve=!0;const{name:n,type:r,velocity:o,delay:i,onComplete:a,onUpdate:s,isGenerator:l}=this.options;if(!l&&!Rr(e,n,r,o)){if(!i)return s&&s(Qr(e,this.options,t)),a&&a(),void this.resolveFinishedPromise();this.options.duration=0}const c=this.initPlayback(e,t);!1!==c&&(this._resolved={keyframes:e,finalKeyframe:t,...c},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise((e=>{this.resolveFinishedPromise=e}))}}const Pr=(e,t,n)=>e+(t-e)*n;function _r(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Fr(e,t){return n=>n>0?t:e}const Br=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Vr=[zn,kn,Pn];function Wr(e){const t=(n=e,Vr.find((e=>e.test(n))));var n;if(Dr(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(t))return!1;let r=t.parse(e);return t===Pn&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=_r(s,r,e+1/3),i=_r(s,r,e),a=_r(s,r,e-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}(r)),r}const Hr=(e,t)=>{const n=Wr(e),r=Wr(t);if(!n||!r)return Fr(e,t);const o={...n};return e=>(o.red=Br(n.red,r.red,e),o.green=Br(n.green,r.green,e),o.blue=Br(n.blue,r.blue,e),o.alpha=Pr(n.alpha,r.alpha,e),kn.transform(o))},Gr=(e,t)=>n=>t(e(n)),qr=(...e)=>e.reduce(Gr),$r=new Set(["none","hidden"]);function Zr(e,t){return n=>Pr(e,t,n)}function Kr(e){return"number"==typeof e?Zr:"string"==typeof e?Er(e)?Fr:_n.test(e)?Hr:eo:Array.isArray(e)?Xr:"object"==typeof e?_n.test(e)?Hr:Jr:Fr}function Xr(e,t){const n=[...e],r=n.length,o=e.map(((e,n)=>Kr(e)(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}}function Jr(e,t){const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=Kr(e[o])(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const eo=(e,t)=>{const n=Zn.createTransformer(t),r=Hn(e),o=Hn(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?$r.has(e)&&!o.values.length||$r.has(t)&&!r.values.length?function(e,t){return $r.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):qr(Xr(function(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],s=e.indexes[a][o[a]],l=null!==(n=e.values[s])&&void 0!==n?n:0;r[i]=l,o[a]++}return r}(r,o),o.values),n):(Dr(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Fr(e,t))};function to(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?Pr(e,t,n):Kr(e)(e,t)}function no(e,t,n){const r=Math.max(t-5,0);return Xt(n-e(r),t-r)}const ro=.01,oo=2,io=.005,ao=.5;const so=12;function lo(e,t){return e*Math.sqrt(1-t*t)}const co=["duration","bounce"],uo=["stiffness","damping","mass"];function fo(e,t){return t.some((t=>void 0!==e[t]))}function ho(e=.3,t=.3){const n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],s={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:f,isResolvedFromDuration:h}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!fo(e,uo)&&fo(e,co))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(1.2*n),o=r*r,i=2*Dn(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:1,stiffness:o,damping:i}}else{const n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:r=1}){let o,i;Dr(e<=Lt(10),"Spring duration must be 10 seconds or less");let a=1-t;a=Dn(.05,1,a),e=Dn(.01,10,Ct(e)),a<1?(o=t=>{const r=t*a,o=r*e;return.001-(r-n)/lo(t,a)*Math.exp(-o)},i=t=>{const r=t*a*e,i=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=lo(Math.pow(t,2),a);return(.001-o(t)>0?-1:1)*((i-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<so;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=Lt(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}({...n,velocity:-Ct(n.velocity||0)}),m=f||0,g=c/(2*Math.sqrt(l*u)),p=a-i,M=Ct(Math.sqrt(l/u)),y=Math.abs(p)<5;let N;if(r||(r=y?ro:oo),o||(o=y?io:ao),g<1){const e=lo(M,g);N=t=>{const n=Math.exp(-g*M*t);return a-n*((m+g*M*p)/e*Math.sin(e*t)+p*Math.cos(e*t))}}else if(1===g)N=e=>a-Math.exp(-M*e)*(p+(m+M*p)*e);else{const e=M*Math.sqrt(g*g-1);N=t=>{const n=Math.exp(-g*M*t),r=Math.min(e*t,300);return a-n*((m+g*M*p)*Math.sinh(r)+e*p*Math.cosh(r))/e}}const x={calculatedDuration:h&&d||null,next:e=>{const t=N(e);if(h)s.done=e>=d;else{let n=0;g<1&&(n=0===e?Lt(m):no(N,e,t));const i=Math.abs(n)<=r,l=Math.abs(a-t)<=o;s.done=i&&l}return s.value=s.done?a:t,s},toString:()=>{const e=Math.min(ut(x),ct),t=yt((t=>x.next(e*t).value),e,30);return e+"ms "+t}};return x}function mo({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},h=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let m=n*t;const g=d+m,p=void 0===a?g:a(g);p!==g&&(m=p-d);const M=e=>-m*Math.exp(-e/r),y=e=>p+M(e),N=e=>{const t=M(e),n=y(e);f.done=Math.abs(t)<=c,f.value=f.done?p:n};let x,D;const v=e=>{var t;t=f.value,(void 0!==s&&t<s||void 0!==l&&t>l)&&(x=e,D=ho({keyframes:[f.value,h(f.value)],velocity:no(y,e,f.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return v(0),{calculatedDuration:null,next:e=>{let t=!1;return D||void 0!==x||(t=!0,N(e),v(e)),void 0!==x&&e>=x?D.next(e-x):(!t&&N(e),f)}}}const go=un(.42,0,1,1),po=un(0,0,.58,1),Mo=un(.42,0,.58,1),yo={linear:Rt,easeIn:go,easeInOut:Mo,easeOut:po,circIn:Mn,circInOut:Nn,circOut:yn,backIn:mn,backInOut:gn,backOut:hn,anticipate:pn},No=e=>{if(ht(e)){vr(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return un(t,n,r,o)}return"string"==typeof e?(vr(void 0!==yo[e],`Invalid easing type '${e}'`),yo[e]):e};function xo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(No):No(r),i={done:!1,value:t[0]},a=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:function(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Mt(0,t,r);e.push(Pr(n,1,o))}}(t,e.length-1),t}(t),e),s=function(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(vr(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];if(2===i&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=function(e,t,n){const r=[],o=n||to,i=e.length-1;for(let n=0;n<i;n++){let i=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||Rt:t;i=qr(e,i)}r.push(i)}return r}(t,r,o),l=s.length,c=n=>{if(a&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);const o=Mt(e[r],e[r+1],n);return s[r](o)};return n?t=>c(Dn(e[0],e[i-1],t)):c}(a,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map((()=>c||Mo)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}const Do=e=>{const t=({timestamp:t})=>e(t);return{start:()=>Ft.update(t,!0),stop:()=>Bt(t),now:()=>Vt.isProcessing?Vt.timestamp:qt.now()}},vo={decay:mo,inertia:mo,tween:xo,keyframes:xo,spring:ho},wo=e=>e/100;class To extends Yr{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()};const{name:t,motionValue:n,element:r,keyframes:o}=this.options,i=(null==r?void 0:r.KeyframeResolver)||xr;this.resolver=new i(o,((e,t)=>this.onKeyframesResolved(e,t)),t,n,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:t="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:o,velocity:i=0}=this.options,a=dt(t)?t:vo[t]||xo;let s,l;a!==xo&&"number"!=typeof e[0]&&(s=qr(wo,to(e[0],e[1])),e=[0,100]);const c=a({...this.options,keyframes:e});"mirror"===o&&(l=a({...this.options,keyframes:[...e].reverse(),velocity:-i})),null===c.calculatedDuration&&(c.calculatedDuration=ut(c));const{calculatedDuration:u}=c,d=u+r;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:s,calculatedDuration:u,resolvedDuration:d,totalDuration:d*(n+1)-r}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){const{resolved:n}=this;if(!n){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:r,generator:o,mirroredGenerator:i,mapPercentToKeyframes:a,keyframes:s,calculatedDuration:l,totalDuration:c,resolvedDuration:u}=n;if(null===this.startTime)return o.next(0);const{delay:d,repeat:f,repeatType:h,repeatDelay:m,onUpdate:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const p=this.currentTime-d*(this.speed>=0?1:-1),M=this.speed>=0?p<0:p>c;this.currentTime=Math.max(p,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=c);let y=this.currentTime,N=o;if(f){const e=Math.min(this.currentTime,c)/u;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,f+1),Boolean(t%2)&&("reverse"===h?(n=1-n,m&&(n-=m/u)):"mirror"===h&&(N=i)),y=Dn(0,1,n)*u}const x=M?{done:!1,value:s[0]}:N.next(y);a&&(x.value=a(x.value));let{done:D}=x;M||null===l||(D=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const v=null===this.holdTime&&("finished"===this.state||"running"===this.state&&D);return v&&void 0!==r&&(x.value=Qr(s,this.options,r)),g&&g(x.value),v&&this.finish(),x}get duration(){const{resolved:e}=this;return e?Ct(e.calculatedDuration):0}get time(){return Ct(this.currentTime)}set time(e){e=Lt(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=Ct(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=Do,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e((e=>this.tick(e)))),t&&t();const r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const bo=new Set(["opacity","clipPath","filter","transform"]),jo=ot((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),Eo={anticipate:pn,backInOut:gn,circInOut:Nn};class Io extends Yr{constructor(e){super(e);const{name:t,motionValue:n,element:r,keyframes:o}=this.options;this.resolver=new Lr(o,((e,t)=>this.onKeyframesResolved(e,t)),t,n,r),this.resolver.scheduleResolve()}initPlayback(e,t){let{duration:n=300,times:r,ease:o,type:i,motionValue:a,name:s,startTime:l}=this.options;if(!a.owner||!a.owner.current)return!1;var c;if("string"==typeof o&&pt()&&o in Eo&&(o=Eo[o]),dt((c=this.options).type)||"spring"===c.type||!Nt(c.ease)){const{onComplete:t,onUpdate:a,motionValue:s,element:l,...c}=this.options,u=function(e,t){const n=new To({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&i<2e4;)r=n.sample(i),o.push(r.value),i+=10;return{times:void 0,keyframes:o,duration:i-10,ease:"linear"}}(e,c);1===(e=u.keyframes).length&&(e[1]=e[0]),n=u.duration,r=u.times,o=u.ease,i="keyframes"}const u=function(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:a="loop",ease:s="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=vt(s,o);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}(a.owner.current,s,e,{...this.options,duration:n,times:r,ease:o});return u.startTime=null!=l?l:this.calcStartTime(),this.pendingTimeline?(ft(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:n}=this.options;a.set(Qr(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:n,times:r,type:i,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return Ct(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return Ct(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.currentTime=Lt(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return Rt;const{animation:n}=t;ft(n,e)}else this.pendingTimeline=e;return Rt}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:n,duration:r,type:o,ease:i,times:a}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){const{motionValue:e,onUpdate:t,onComplete:s,element:l,...c}=this.options,u=new To({...c,keyframes:n,duration:r,type:o,ease:i,times:a,isGenerator:!0}),d=Lt(this.time);e.setWithVelocity(u.sample(d-10).value,u.sample(d).value,10)}const{onStop:s}=this.options;s&&s(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:a}=e;if(!(t&&t.owner&&t.owner.current instanceof HTMLElement))return!1;const{onUpdate:s,transformTemplate:l}=t.owner.getProps();return jo()&&n&&bo.has(n)&&!s&&!l&&!r&&"mirror"!==o&&0!==i&&"inertia"!==a}}const Ao={type:"spring",stiffness:500,damping:25,restSpeed:10},Oo={type:"keyframes",duration:.8},ko={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},zo=(e,{keyframes:t})=>t.length>2?Oo:Qt.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Ao:ko,So=(e,t,n,r={},o,i)=>a=>{const s=lt(r,e)||{},l=s.delay||r.delay||0;let{elapsed:c=0}=r;c-=Lt(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:o};(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length})(s)||(u={...u,...zo(e,u)}),u.duration&&(u.duration=Lt(u.duration)),u.repeatDelay&&(u.repeatDelay=Lt(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if((!1===u.type||0===u.duration&&!u.repeatDelay)&&(u.duration=0,0===u.delay&&(d=!0)),d&&!i&&void 0!==t.get()){const e=Qr(u.keyframes,s);if(void 0!==e)return Ft.update((()=>{u.onUpdate(e),u.onComplete()})),new st([])}return!i&&Io.supports(u)?new Io(u):new To(u)};function Lo({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function Co(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t;r&&(a=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const t in l){const r=e.getValue(t,null!==(i=e.latestValues[t])&&void 0!==i?i:null),o=l[t];if(void 0===o||u&&Lo(u,t))continue;const s={delay:n,...lt(a||{},t)};let d=!1;if(window.MotionHandoffAnimation){const n=ln(e);if(n){const e=window.MotionHandoffAnimation(n,t,Ft);null!==e&&(s.startTime=e,d=!0)}}on(e,t),r.start(So(t,r,o,e.shouldReduceMotion&&Yt.has(t)?{type:!1}:s,e,d));const f=r.animation;f&&c.push(f)}return s&&Promise.all(c).then((()=>{Ft.update((()=>{s&&function(e,t){const n=tt(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const t in i)nn(e,t,(a=i[t],Ze(a)?a[a.length-1]||0:a));var a}(e,s)}))})),c}function Ro(e,t,n={}){var r;const o=tt(e,t,"exit"===n.type?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const a=o?()=>Promise.all(Co(e,o,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(Uo).forEach(((e,r)=>{e.notify("AnimationStart",t),a.push(Ro(e,t,{...i,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(a)}(e,t,o+r,a,s,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then((()=>t()))}return Promise.all([a(),s(n.delay)])}function Uo(e,t){return e.sortNodePosition(t)}const Qo=rt.length;function Yo(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&Yo(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<Qo;n++){const r=rt[n],o=e.props[r];(Xe(o)||!1===o)&&(t[r]=o)}return t}const Po=[...nt].reverse(),_o=nt.length;function Fo(e){let t=function(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>Ro(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=Ro(e,t,n);else{const o="function"==typeof t?tt(e,t,n.custom):t;r=Promise.all(Co(e,o,n))}return r.then((()=>{e.notify("AnimationComplete",t)}))}(e,t,n))))}(e),n=Vo(),r=!0;const o=t=>(n,r)=>{var o;const i=tt(e,r,"exit"===t?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);if(i){const{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function i(i){const{props:a}=e,s=Yo(e.parent)||{},l=[],c=new Set;let u={},d=1/0;for(let t=0;t<_o;t++){const m=Po[t],g=n[m],p=void 0!==a[m]?a[m]:s[m],M=Xe(p),y=m===i?g.isActive:null;!1===y&&(d=t);let N=p===s[m]&&p!==a[m]&&M;if(N&&r&&e.manuallyAnimateOnMount&&(N=!1),g.protectedKeys={...u},!g.isActive&&null===y||!p&&!g.prevProp||$e(p)||"boolean"==typeof p)continue;const x=(f=g.prevProp,"string"==typeof(h=p)?h!==f:!!Array.isArray(h)&&!Ke(h,f));let D=x||m===i&&g.isActive&&!N&&M||t>d&&M,v=!1;const w=Array.isArray(p)?p:[p];let T=w.reduce(o(m),{});!1===y&&(T={});const{prevResolvedValues:b={}}=g,j={...b,...T},E=t=>{D=!0,c.has(t)&&(v=!0,c.delete(t)),g.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in j){const t=T[e],n=b[e];if(u.hasOwnProperty(e))continue;let r=!1;r=Ze(t)&&Ze(n)?!Ke(t,n):t!==n,r?null!=t?E(e):c.add(e):void 0!==t&&c.has(e)?E(e):g.protectedKeys[e]=!0}g.prevProp=p,g.prevResolvedValues=T,g.isActive&&(u={...u,...T}),r&&e.blockInitialAnimation&&(D=!1),D&&(!N||!x||v)&&l.push(...w.map((e=>({animation:e,options:{type:m}}))))}var f,h;if(c.size){const t={};c.forEach((n=>{const r=e.getBaseTarget(n),o=e.getValue(n);o&&(o.liveStyle=!0),t[n]=null!=r?r:null})),l.push({animation:t})}let m=Boolean(l.length);return!r||!1!==a.initial&&a.initial!==a.animate||e.manuallyAnimateOnMount||(m=!1),r=!1,m?t(l):Promise.resolve()}return{animateChanges:i,setActive:function(t,r){var o;if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const a=i(t);for(const e in n)n[e].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=Vo(),r=!0}}}function Bo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Vo(){return{animate:Bo(!0),whileInView:Bo(),whileHover:Bo(),whileTap:Bo(),whileDrag:Bo(),whileFocus:Bo(),exit:Bo()}}class Wo{constructor(e){this.isMounted=!1,this.node=e}update(){}}let Ho=0;const Go={animation:{Feature:class extends Wo{constructor(e){super(e),e.animationState||(e.animationState=Fo(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();$e(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}},exit:{Feature:class extends Wo{constructor(){super(...arguments),this.id=Ho++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}};function qo(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function $o(e){return{point:{x:e.pageX,y:e.pageY}}}function Zo(e,t,n,r){return qo(e,t,(e=>t=>It(t)&&e(t,$o(t)))(n),r)}const Ko=(e,t)=>Math.abs(e-t);class Xo{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=ti(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Ko(e.x,t.x),r=Ko(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=Vt;this.history.push({...r,timestamp:o});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Jo(t,this.transformPagePoint),Ft.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=ti("pointercancel"===e.type?this.lastMoveEventInfo:Jo(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},!It(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;const i=Jo($o(e),this.transformPagePoint),{point:a}=i,{timestamp:s}=Vt;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=t;l&&l(e,ti(i,this.history)),this.removeListeners=qr(Zo(this.contextWindow,"pointermove",this.handlePointerMove),Zo(this.contextWindow,"pointerup",this.handlePointerUp),Zo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Bt(this.updatePoint)}}function Jo(e,t){return t?{point:t(e.point)}:e}function ei(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ti({point:e},t){return{point:e,delta:ei(e,ri(t)),offset:ei(e,ni(t)),velocity:oi(t,.1)}}function ni(e){return e[0]}function ri(e){return e[e.length-1]}function oi(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=ri(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Lt(t)));)n--;if(!r)return{x:0,y:0};const i=Ct(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function ii(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function ai(e){return e.max-e.min}function si(e,t,n,r=.5){e.origin=r,e.originPoint=Pr(t.min,t.max,e.origin),e.scale=ai(n)/ai(t),e.translate=Pr(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function li(e,t,n,r){si(e.x,t.x,n.x,r?r.originX:void 0),si(e.y,t.y,n.y,r?r.originY:void 0)}function ci(e,t,n){e.min=n.min+t.min,e.max=e.min+ai(t)}function ui(e,t,n){e.min=t.min-n.min,e.max=e.min+ai(t)}function di(e,t,n){ui(e.x,t.x,n.x),ui(e.y,t.y,n.y)}function fi(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function hi(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const mi=.35;function gi(e,t,n){return{min:pi(e,t),max:pi(e,n)}}function pi(e,t){return"number"==typeof e?e:e[t]||0}const Mi=()=>({x:{min:0,max:0},y:{min:0,max:0}});function yi(e){return[e("x"),e("y")]}function Ni({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function xi(e){return void 0===e||1===e}function Di({scale:e,scaleX:t,scaleY:n}){return!xi(e)||!xi(t)||!xi(n)}function vi(e){return Di(e)||wi(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function wi(e){return Ti(e.x)||Ti(e.y)}function Ti(e){return e&&"0%"!==e}function bi(e,t,n){return n+t*(e-n)}function ji(e,t,n,r,o){return void 0!==o&&(e=bi(e,o,r)),bi(e,n,r)+t}function Ei(e,t=0,n=1,r,o){e.min=ji(e.min,t,n,r,o),e.max=ji(e.max,t,n,r,o)}function Ii(e,{x:t,y:n}){Ei(e.x,t.translate,t.scale,t.originPoint),Ei(e.y,n.translate,n.scale,n.originPoint)}const Ai=.999999999999,Oi=1.0000000000001;function ki(e,t){e.min=e.min+t,e.max=e.max+t}function zi(e,t,n,r,o=.5){Ei(e,t,n,Pr(e.min,e.max,o),r)}function Si(e,t){zi(e.x,t.x,t.scaleX,t.scale,t.originX),zi(e.y,t.y,t.scaleY,t.scale,t.originY)}function Li(e,t){return Ni(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const Ci=({current:e})=>e?e.ownerDocument.defaultView:null,Ri=new WeakMap;class Ui{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new Xo(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor($o(e).point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(i=n)||"y"===i?wt[i]?null:(wt[i]=!0,()=>{wt[i]=!1}):wt.x||wt.y?null:(wt.x=wt.y=!0,()=>{wt.x=wt.y=!1}),!this.openDragLock))return;var i;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),yi((e=>{let t=this.getAxisMotionValue(e).get()||0;if(Cn.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];r&&(t=ai(r)*(parseFloat(t)/100))}}this.originPoint[e]=t})),o&&Ft.postRender((()=>o(e,t))),on(this.visualElement,"transform");const{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:a}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>yi((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:Ci(this.visualElement)})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&Ft.postRender((()=>o(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!Qi(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?Pr(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?Pr(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,o=this.constraints;t&&ii(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!r)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:fi(e.x,n,o),y:fi(e.y,t,r)}}(r.layoutBox,t),this.elastic=function(e=mi){return!1===e?e=0:!0===e&&(e=mi),{x:gi(e,"left","right"),y:gi(e,"top","bottom")}}(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&yi((e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!ii(e))return!1;const n=e.current;vr(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=Li(e,n),{scroll:o}=t;return o&&(ki(r.x,o.offset.x),ki(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:hi(e.x,t.x),y:hi(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=Ni(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=yi((a=>{if(!Qi(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)}));return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return on(this.visualElement,e),n.start(So(e,n,0,t,this.visualElement,!1))}stopAnimation(){yi((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){yi((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){yi((t=>{const{drag:n}=this.getProps();if(!Qi(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-Pr(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!ii(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};yi((e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();r[e]=function(e,t){let n=.5;const r=ai(e),o=ai(t);return o>r?n=Mt(t.min,t.max-r,e.min):r>o&&(n=Mt(e.min,e.max-o,t.min)),Dn(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),yi((t=>{if(!Qi(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(Pr(o,i,r[t]))}))}addListeners(){if(!this.visualElement.current)return;Ri.set(this.visualElement,this);const e=Zo(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();ii(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),Ft.read(t);const o=qo(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(yi((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=mi,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function Qi(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const Yi=e=>(t,n)=>{e&&Ft.postRender((()=>e(t,n)))},Pi=(0,d.createContext)({}),_i={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Fi(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Bi={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Rn.test(e))return e;e=parseFloat(e)}return`${Fi(e,t.target.x)}% ${Fi(e,t.target.y)}%`}},Vi={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Zn.parse(e);if(o.length>5)return r;const i=Zn.createTransformer(e),a="number"!=typeof o[0]?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const c=Pr(s,l,.5);return"number"==typeof o[2+a]&&(o[2+a]/=c),"number"==typeof o[3+a]&&(o[3+a]/=c),i(o)}},Wi={},{schedule:Hi,cancel:Gi}=_t(queueMicrotask,!1);class qi extends d.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=Zi,Object.assign(Wi,i),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),_i.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||Ft.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Hi.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function $i(e){const[t,n]=Fe(),r=(0,d.useContext)(Le);return(0,u.jsx)(qi,{...e,layoutGroup:r,switchLayoutGroup:(0,d.useContext)(Pi),isPresent:t,safeToRemove:n})}const Zi={borderRadius:{...Bi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Bi,borderTopRightRadius:Bi,borderBottomLeftRadius:Bi,borderBottomRightRadius:Bi,boxShadow:Vi},Ki=(e,t)=>e.depth-t.depth;class Xi{constructor(){this.children=[],this.isDirty=!1}add(e){$t(this.children,e),this.isDirty=!0}remove(e){Zt(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ki),this.isDirty=!1,this.children.forEach(e)}}function Ji(e){const t=rn(e)?e.get():e;return n=t,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?t.toValue():t;var n}const ea=["TopLeft","TopRight","BottomLeft","BottomRight"],ta=ea.length,na=e=>"string"==typeof e?parseFloat(e):e,ra=e=>"number"==typeof e||Rn.test(e);function oa(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const ia=sa(0,.5,yn),aa=sa(.5,.95,Rt);function sa(e,t,n){return r=>r<e?0:r>t?1:n(Mt(e,t,r))}function la(e,t){e.min=t.min,e.max=t.max}function ca(e,t){la(e.x,t.x),la(e.y,t.y)}function ua(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function da(e,t,n,r,o){return e=bi(e-=t,1/n,r),void 0!==o&&(e=bi(e,1/o,r)),e}function fa(e,t,[n,r,o],i,a){!function(e,t=0,n=1,r=.5,o,i=e,a=e){if(Cn.test(t)&&(t=parseFloat(t),t=Pr(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=Pr(i.min,i.max,r);e===i&&(s-=t),e.min=da(e.min,t,n,s,o),e.max=da(e.max,t,n,s,o)}(e,t[n],t[r],t[o],t.scale,i,a)}const ha=["x","scaleX","originX"],ma=["y","scaleY","originY"];function ga(e,t,n,r){fa(e.x,t,ha,n?n.x:void 0,r?r.x:void 0),fa(e.y,t,ma,n?n.y:void 0,r?r.y:void 0)}function pa(e){return 0===e.translate&&1===e.scale}function Ma(e){return pa(e.x)&&pa(e.y)}function ya(e,t){return e.min===t.min&&e.max===t.max}function Na(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function xa(e,t){return Na(e.x,t.x)&&Na(e.y,t.y)}function Da(e){return ai(e.x)/ai(e.y)}function va(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class wa{constructor(){this.members=[]}add(e){$t(this.members,e),e.scheduleRender()}remove(e){if(Zt(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Ta={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ba="undefined"!=typeof window&&void 0!==window.MotionDebug,ja=["","X","Y","Z"],Ea={visibility:"hidden"};let Ia=0;function Aa(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Oa(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=ln(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ft,!(t||r))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Oa(r)}function ka({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=Ia++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ba&&(Ta.totalNodes=Ta.resolvedTargetDeltas=Ta.recalculatedProjection=0),this.nodes.forEach(La),this.nodes.forEach(_a),this.nodes.forEach(Fa),this.nodes.forEach(Ca),ba&&window.MotionDebug.record(Ta)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Xi)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Kt),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;var r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:o,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||o)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=qt.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Bt(r),e(i-t))};return Ft.read(r,!0),()=>Bt(r)}(r,250),_i.hasAnimatedSinceResize&&(_i.hasAnimatedSinceResize=!1,this.nodes.forEach(Pa))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||a.getDefaultTransition()||qa,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!xa(this.targetLayout,r)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...lt(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||Pa(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Bt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ba),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Oa(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Ua);this.isUpdating||this.nodes.forEach(Qa),this.isUpdating=!1,this.nodes.forEach(Ya),this.nodes.forEach(za),this.nodes.forEach(Sa),this.clearAllSnapshots();const e=qt.now();Vt.delta=Dn(0,1e3/60,e-Vt.timestamp),Vt.timestamp=e,Vt.isProcessing=!0,Wt.update.process(Vt),Wt.preRender.process(Vt),Wt.render.process(Vt),Vt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Hi.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Ra),this.sharedNodes.forEach(Va)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ft.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ft.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){const t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Ma(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||vi(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),Ka((r=n).x),Ka(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const n=t.measureViewportBox();if(!(null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)&&!this.path.some(Ja)){const{scroll:e}=this.root;e&&(ki(n.x,e.offset.x),ki(n.y,e.offset.y))}return n}removeElementScroll(e){var t;const n={x:{min:0,max:0},y:{min:0,max:0}};if(ca(n,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return n;for(let t=0;t<this.path.length;t++){const r=this.path[t],{scroll:o,options:i}=r;r!==this.root&&o&&i.layoutScroll&&(o.wasRoot&&ca(n,e),ki(n.x,o.offset.x),ki(n.y,o.offset.y))}return n}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};ca(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Si(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),vi(r.latestValues)&&Si(n,r.latestValues)}return vi(this.latestValues)&&Si(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};ca(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!vi(n.latestValues))continue;Di(n.latestValues)&&n.updateSnapshot();const r={x:{min:0,max:0},y:{min:0,max:0}};ca(r,n.measurePageBox()),ga(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return vi(this.latestValues)&&ga(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Vt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=Vt.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},di(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),ca(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,ci(a.x,s.x,l.x),ci(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):ca(this.target,this.layout.layoutBox),Ii(this.target,this.targetDelta)):ca(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},di(this.relativeTargetOrigin,this.target,e.target),ca(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ba&&Ta.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Di(this.parent.latestValues)&&!wi(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===Vt.timestamp&&(r=!1),r)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;ca(this.layoutCorrected,this.layout.layoutBox);const a=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,a;t.x=t.y=1;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const{visualElement:o}=i.options;o&&o.props.style&&"contents"===o.props.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Si(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Ii(e,a)),r&&vi(i.latestValues)&&Si(e,i.latestValues))}t.x<Oi&&t.x>Ai&&(t.x=1),t.y<Oi&&t.y>Ai&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:l}=t;l?(this.projectionDelta&&this.prevProjectionDelta?(ua(this.prevProjectionDelta.x,this.projectionDelta.x),ua(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),li(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===a&&this.treeScale.y===s&&va(this.projectionDelta.x,this.prevProjectionDelta.x)&&va(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),ba&&Ta.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a={x:{min:0,max:0},y:{min:0,max:0}},s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(s&&!c&&!0===this.options.crossfade&&!this.path.some(Ga));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;Wa(i.x,e.x,n),Wa(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(di(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){Ha(e.x,t.x,n.x,r),Ha(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,a,n),d&&function(e,t){return ya(e.x,t.x)&&ya(e.y,t.y)}(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),ca(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=Pr(0,void 0!==n.opacity?n.opacity:1,ia(r)),e.opacityExit=Pr(void 0!==t.opacity?t.opacity:1,0,aa(r))):i&&(e.opacity=Pr(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<ta;o++){const i=`border${ea[o]}Radius`;let a=oa(t,i),s=oa(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||ra(a)===ra(s)?(e[i]=Math.max(Pr(na(a),na(s),r),0),(Cn.test(s)||Cn.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||n.rotate)&&(e.rotate=Pr(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Bt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ft.update((()=>{_i.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=rn(0)?0:tn(0);return r.start(So("",r,1e3,n)),r.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&Xa(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=ai(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=ai(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}ca(t,n),Si(t,o),li(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new wa),this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};n.z&&Aa("z",e,r,this.animationValues);for(let t=0;t<ja.length;t++)Aa(`rotate${ja[t]}`,e,r,this.animationValues),Aa(`skew${ja[t]}`,e,r,this.animationValues);e.render();for(const t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Ea;const r={visibility:""},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=Ji(null==e?void 0:e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=Ji(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!vi(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=function(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,a=(null==n?void 0:n.z)||0;if((o||i||a)&&(r=`translate3d(${o}px, ${i}px, ${a}px) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:e,rotate:t,rotateX:o,rotateY:i,skewX:a,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),o&&(r+=`rotateX(${o}deg) `),i&&(r+=`rotateY(${i}deg) `),a&&(r+=`skewX(${a}deg) `),s&&(r+=`skewY(${s}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return 1===s&&1===l||(r+=`scale(${s}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,a),o&&(r.transform=o(a,r.transform));const{x:s,y:l}=this.projectionDelta;r.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const e in Wi){if(void 0===a[e])continue;const{correct:t,applyTo:n}=Wi[e],o="none"===r.transform?a[e]:t(a[e],i);if(n){const e=n.length;for(let t=0;t<e;t++)r[n[t]]=o}else r[e]=o}return this.options.layoutId&&(r.pointerEvents=i===this?Ji(null==e?void 0:e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(Ua),this.root.sharedNodes.clear()}}}function za(e){e.updateLayout()}function Sa(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,i=n.source!==e.layout.source;"size"===o?yi((e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=ai(r);r.min=t[e].min,r.max=r.min+o})):Xa(o,n.layoutBox,t)&&yi((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],a=ai(t[r]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)}));const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};li(a,t,n.layoutBox);const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i?li(s,e.applyTransform(r,!0),n.measuredBox):li(s,t,n.layoutBox);const l=!Ma(a);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const a={x:{min:0,max:0},y:{min:0,max:0}};di(a,n.layoutBox,o.layoutBox);const s={x:{min:0,max:0},y:{min:0,max:0}};di(s,t,i.layoutBox),xa(a,s)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function La(e){ba&&Ta.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Ca(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Ra(e){e.clearSnapshot()}function Ua(e){e.clearMeasurements()}function Qa(e){e.isLayoutDirty=!1}function Ya(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Pa(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function _a(e){e.resolveTargetDelta()}function Fa(e){e.calcProjection()}function Ba(e){e.resetSkewAndRotation()}function Va(e){e.removeLeadSnapshot()}function Wa(e,t,n){e.translate=Pr(t.translate,0,n),e.scale=Pr(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ha(e,t,n,r){e.min=Pr(t.min,n.min,r),e.max=Pr(t.max,n.max,r)}function Ga(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const qa={duration:.45,ease:[.4,0,.1,1]},$a=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Za=$a("applewebkit/")&&!$a("chrome/")?Math.round:Rt;function Ka(e){e.min=Za(e.min),e.max=Za(e.max)}function Xa(e,t,n){return"position"===e||"preserve-aspect"===e&&(r=Da(t),o=Da(n),!(Math.abs(r-o)<=.2));var r,o}function Ja(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}const es=ka({attachResizeListener:(e,t)=>qo(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ts={current:void 0},ns=ka({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ts.current){const e=new es({});e.mount(window),e.setOptions({layoutScroll:!0}),ts.current=e}return ts.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),rs={pan:{Feature:class extends Wo{constructor(){super(...arguments),this.removePointerDownListener=Rt}onPointerDown(e){this.session=new Xo(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ci(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Yi(e),onStart:Yi(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&Ft.postRender((()=>r(e,t)))}}}mount(){this.removePointerDownListener=Zo(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Wo{constructor(e){super(e),this.removeGroupControls=Rt,this.removeListeners=Rt,this.controls=new Ui(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Rt}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:ns,MeasureLayout:$i}};function os(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);const o=r["onHover"+n];o&&Ft.postRender((()=>o(t,$o(t))))}function is(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);const o=r["onTap"+("End"===n?"":n)];o&&Ft.postRender((()=>o(t,$o(t))))}const as=new WeakMap,ss=new WeakMap,ls=e=>{const t=as.get(e.target);t&&t(e)},cs=e=>{e.forEach(ls)};const us={some:0,all:1},ds={inView:{Feature:class extends Wo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:us[r]};return function(e,t,n){const r=function({root:e,...t}){const n=e||document;ss.has(n)||ss.set(n,{});const r=ss.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(cs,{root:e,...t})),r[o]}(t);return as.set(e,n),r.observe(e),()=>{as.delete(e),r.unobserve(e)}}(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Wo{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,o,i]=bt(e,n),a=e=>{const r=e.currentTarget;if(!St(e)||Ot.has(r))return;Ot.add(r);const i=t(e),a=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),St(e)&&Ot.has(r)&&(Ot.delete(r),"function"==typeof i&&i(e,{success:t}))},s=e=>{a(e,n.useGlobalTarget||Et(r,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",s,o),window.addEventListener("pointercancel",l,o)};return r.forEach((e=>{(function(e){return At.has(e.tagName)||-1!==e.tabIndex})(e)||null!==e.getAttribute("tabindex")||(e.tabIndex=0),(n.useGlobalTarget?window:e).addEventListener("pointerdown",a,o),e.addEventListener("focus",(e=>((e,t)=>{const n=e.currentTarget;if(!n)return;const r=kt((()=>{if(Ot.has(n))return;zt(n,"down");const e=kt((()=>{zt(n,"up")}));n.addEventListener("keyup",e,t),n.addEventListener("blur",(()=>zt(n,"cancel")),t)}));n.addEventListener("keydown",r,t),n.addEventListener("blur",(()=>n.removeEventListener("keydown",r)),t)})(e,o)),o)})),i}(e,(e=>(is(this.node,e,"Start"),(e,{success:t})=>is(this.node,e,t?"End":"Cancel"))),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends Wo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=qr(qo(this.node.current,"focus",(()=>this.onFocus())),qo(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Wo{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,o,i]=bt(e,n),a=jt((e=>{const{target:n}=e,r=t(e);if("function"!=typeof r||!n)return;const i=jt((e=>{r(e),n.removeEventListener("pointerleave",i)}));n.addEventListener("pointerleave",i,o)}));return r.forEach((e=>{e.addEventListener("pointerenter",a,o)})),i}(e,(e=>(os(this.node,e,"Start"),e=>os(this.node,e,"End")))))}unmount(){}}}},fs={layout:{ProjectionNode:ns,MeasureLayout:$i}},hs=(0,d.createContext)({strict:!1}),ms=(0,d.createContext)({});function gs(e){return $e(e.animate)||rt.some((t=>Xe(e[t])))}function ps(e){return Boolean(gs(e)||e.variants)}function Ms(e){return Array.isArray(e)?e.join(" "):e}const ys={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ns={};for(const e in ys)Ns[e]={isEnabled:t=>ys[e].some((e=>!!t[e]))};const xs=Symbol.for("motionComponentSymbol");function Ds(e,t,n){return(0,d.useCallback)((r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):ii(n)&&(n.current=r))}),[t])}function vs(e,t,n,r,o){var i,a;const{visualElement:s}=(0,d.useContext)(ms),l=(0,d.useContext)(hs),c=(0,d.useContext)(Re),u=(0,d.useContext)(Ue).reducedMotion,f=(0,d.useRef)(null);r=r||l.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:s,props:n,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:u}));const h=f.current,m=(0,d.useContext)(Pi);!h||h.projection||!o||"html"!==h.type&&"svg"!==h.type||function(e,t,n,r){const{layoutId:o,layout:i,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:ws(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(a)||s&&ii(s),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}(f.current,n,o,m);const g=(0,d.useRef)(!1);(0,d.useInsertionEffect)((()=>{h&&g.current&&h.update(n,c)}));const p=n[sn],M=(0,d.useRef)(Boolean(p)&&!(null===(i=window.MotionHandoffIsComplete)||void 0===i?void 0:i.call(window,p))&&(null===(a=window.MotionHasOptimisedAnimation)||void 0===a?void 0:a.call(window,p)));return He((()=>{h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),Hi.render(h.render),M.current&&h.animationState&&h.animationState.animateChanges())})),(0,d.useEffect)((()=>{h&&(!M.current&&h.animationState&&h.animationState.animateChanges(),M.current&&(queueMicrotask((()=>{var e;null===(e=window.MotionHandoffMarkAsComplete)||void 0===e||e.call(window,p)})),M.current=!1))})),h}function ws(e){if(e)return!1!==e.options.allowProjection?e.projection:ws(e.parent)}function Ts({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){var i,a;function s(e,i){let a;const s={...(0,d.useContext)(Ue),...e,layoutId:bs(e)},{isStatic:l}=s,c=function(e){const{initial:t,animate:n}=function(e,t){if(gs(e)){const{initial:t,animate:n}=e;return{initial:!1===t||Xe(t)?t:void 0,animate:Xe(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,d.useContext)(ms));return(0,d.useMemo)((()=>({initial:t,animate:n})),[Ms(t),Ms(n)])}(e),f=r(e,l);if(!l&&We){(0,d.useContext)(hs).strict;const e=function(e){const{drag:t,layout:n}=Ns;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(s);a=e.MeasureLayout,c.visualElement=vs(o,f,s,t,e.ProjectionNode)}return(0,u.jsxs)(ms.Provider,{value:c,children:[a&&c.visualElement?(0,u.jsx)(a,{visualElement:c.visualElement,...s}):null,n(o,e,Ds(f,c.visualElement,i),f,l,c.visualElement)]})}e&&function(e){for(const t in e)Ns[t]={...Ns[t],...e[t]}}(e),s.displayName=`motion.${"string"==typeof o?o:`create(${null!==(a=null!==(i=o.displayName)&&void 0!==i?i:o.name)&&void 0!==a?a:""})`}`;const l=(0,d.forwardRef)(s);return l[xs]=o,l}function bs({layoutId:e}){const t=(0,d.useContext)(Le).id;return t&&void 0!==e?t+"-"+e:e}const js=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Es(e){return"string"==typeof e&&!e.includes("-")&&!!(js.indexOf(e)>-1||/[A-Z]/u.test(e))}const Is=e=>(t,n)=>{const r=(0,d.useContext)(ms),o=(0,d.useContext)(Re),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,o,i){const a={latestValues:As(r,o,i,e),renderState:t()};return n&&(a.onMount=e=>n({props:r,current:e,...a}),a.onUpdate=e=>n(e)),a}(e,t,r,o);return n?i():Ce(i)};function As(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=Ji(i[e]);let{initial:a,animate:s}=e;const l=gs(e),c=ps(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!n&&!1===n.initial;u=u||!1===a;const d=u?s:a;if(d&&"boolean"!=typeof d&&!$e(d)){const t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){const r=et(e,t[n]);if(r){const{transitionEnd:e,transition:t,...n}=r;for(const e in n){let t=n[e];Array.isArray(t)&&(t=t[u?t.length-1:0]),null!==t&&(o[e]=t)}for(const t in e)o[t]=e[t]}}}return o}const Os=(e,t)=>t&&"number"==typeof e?t.transform(e):e,ks={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},zs=Ut.length;function Ss(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let a=!1,s=!1;for(const e in t){const n=t[e];if(Qt.has(e))a=!0;else if(br(e))o[e]=n;else{const t=Os(n,or[e]);e.startsWith("origin")?(s=!0,i[e]=t):r[e]=t}}if(t.transform||(a||n?r.transform=function(e,t,n){let r="",o=!0;for(let i=0;i<zs;i++){const a=Ut[i],s=e[a];if(void 0===s)continue;let l=!0;if(l="number"==typeof s?s===(a.startsWith("scale")?1:0):0===parseFloat(s),!l||n){const e=Os(s,or[a]);l||(o=!1,r+=`${ks[a]||a}(${e}) `),n&&(t[a]=e)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:e="50%",originY:t="50%",originZ:n=0}=i;r.transformOrigin=`${e} ${t} ${n}`}}const Ls={offset:"stroke-dashoffset",array:"stroke-dasharray"},Cs={offset:"strokeDashoffset",array:"strokeDasharray"};function Rs(e,t,n){return"string"==typeof e?e:Rn.transform(t+n*e)}function Us(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...c},u,d){if(Ss(e,c,d),u)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:f,style:h,dimensions:m}=e;f.transform&&(m&&(h.transform=f.transform),delete f.transform),m&&(void 0!==o||void 0!==i||h.transform)&&(h.transformOrigin=function(e,t,n){return`${Rs(t,e.x,e.width)} ${Rs(n,e.y,e.height)}`}(m,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(f.x=t),void 0!==n&&(f.y=n),void 0!==r&&(f.scale=r),void 0!==a&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Ls:Cs;e[i.offset]=Rn.transform(-r);const a=Rn.transform(t),s=Rn.transform(n);e[i.array]=`${a} ${s}`}(f,a,s,l,!1)}const Qs=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Ys(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const Ps=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function _s(e,t,n,r){Ys(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(Ps.has(n)?n:an(n),t.attrs[n])}function Fs(e,{layout:t,layoutId:n}){return Qt.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!Wi[e]||"opacity"===e)}function Bs(e,t,n){var r;const{style:o}=e,i={};for(const a in o)(rn(o[a])||t.style&&rn(t.style[a])||Fs(a,e)||void 0!==(null===(r=null==n?void 0:n.getValue(a))||void 0===r?void 0:r.liveStyle))&&(i[a]=o[a]);return i}function Vs(e,t,n){const r=Bs(e,t,n);for(const n in e)(rn(e[n])||rn(t[n]))&&(r[-1!==Ut.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}const Ws=["x","y","width","height","cx","cy","r"],Hs={useVisualState:Is({scrapeMotionValuesFromProps:Vs,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:o})=>{if(!n)return;let i=!!e.drag;if(!i)for(const e in o)if(Qt.has(e)){i=!0;break}if(!i)return;let a=!t;if(t)for(let n=0;n<Ws.length;n++){const r=Ws[n];e[r]!==t[r]&&(a=!0)}a&&Ft.read((()=>{!function(e,t){try{t.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(e){t.dimensions={x:0,y:0,width:0,height:0}}}(n,r),Ft.render((()=>{Us(r,o,Qs(n.tagName),e.transformTemplate),_s(n,r)}))}))}})},Gs={useVisualState:Is({scrapeMotionValuesFromProps:Bs,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{}})})};function qs(e,t,n){for(const r in t)rn(t[r])||Fs(r,n)||(e[r]=t[r])}function $s(e,t){const n={},r=function(e,t){const n={};return qs(n,e.style||{},e),Object.assign(n,function({transformTemplate:e},t){return(0,d.useMemo)((()=>{const n={style:{},transform:{},transformOrigin:{},vars:{}};return Ss(n,t,e),Object.assign({},n.vars,n.style)}),[t])}(e,t)),n}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Zs=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Ks(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Zs.has(e)}let Xs=e=>!Ks(e);try{(Js=require("@emotion/is-prop-valid").default)&&(Xs=e=>e.startsWith("on")?!Ks(e):Js(e))}catch(e){}var Js;function el(e,t,n,r){const o=(0,d.useMemo)((()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return Us(n,t,Qs(r),e.transformTemplate),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};qs(t,e.style,e),o.style={...t,...o.style}}return o}function tl(e=!1){return(t,n,r,{latestValues:o},i)=>{const a=(Es(t)?el:$s)(n,o,i,t),s=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(Xs(o)||!0===n&&Ks(o)||!t&&!Ks(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),l=t!==d.Fragment?{...s,...a,ref:r}:{},{children:c}=n,u=(0,d.useMemo)((()=>rn(c)?c.get():c),[c]);return(0,d.createElement)(t,{...l,children:u})}}function nl(e,t){return function(n,{forwardMotionProps:r}={forwardMotionProps:!1}){return Ts({...Es(n)?Hs:Gs,preloadedFeatures:e,useRender:tl(r),createVisualElement:t,Component:n})}}const rl={current:null},ol={current:!1},il=[...zr,_n,Zn],al=new WeakMap,sl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ll{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:o,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=xr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=qt.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,Ft.render(this.render,!1,!0))};const{latestValues:s,renderState:l,onUpdate:c}=i;this.onUpdate=c,this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=gs(t),this.isVariantNode=ps(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in d){const t=d[e];void 0!==s[e]&&rn(t)&&t.set(s[e],!1)}}mount(e){this.current=e,al.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),ol.current||function(){if(ol.current=!0,We)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>rl.current=e.matches;e.addListener(t),t()}else rl.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||rl.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){al.delete(this.current),this.projection&&this.projection.unmount(),Bt(this.notifyUpdate),Bt(this.render),this.valueSubscriptions.forEach((e=>e())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=Qt.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&Ft.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,(()=>{r(),o(),i&&i(),t.owner&&t.stop()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in Ns){const t=Ns[e];if(!t)continue;const{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<sl.length;t++){const n=sl[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(const r in t){const o=t[r],i=n[r];if(rn(o))e.addValue(r,o);else if(rn(i))e.addValue(r,tn(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const t=e.getValue(r);!0===t.liveStyle?t.jump(o):t.hasAnimated||t.set(o)}else{const t=e.getStaticValue(r);e.addValue(r,tn(void 0!==t?t:o,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=tn(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=r&&("string"==typeof r&&(wr(r)||xn(r))?r=parseFloat(r):(o=r,!il.find(kr(o))&&Zn.test(t)&&(r=sr(e,t))),this.setBaseTarget(e,rn(r)?r.get():r)),rn(r)?r.get():r;var o}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props;let r;if("string"==typeof n||"object"==typeof n){const o=et(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);o&&(r=o[e])}if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||rn(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new Kt),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class cl extends ll{constructor(){super(...arguments),this.KeyframeResolver=Lr}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;rn(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}}class ul extends cl{constructor(){super(...arguments),this.type="html",this.renderInstance=Ys}readValueFromInstance(e,t){if(Qt.has(t)){const e=ar(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(br(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return Li(e,t)}build(e,t,n){Ss(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Bs(e,t,n)}}class dl extends cl{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Mi}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Qt.has(t)){const e=ar(t);return e&&e.default||0}return t=Ps.has(t)?t:an(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Vs(e,t,n)}build(e,t,n){Us(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,r){_s(e,t,0,r)}mount(e){this.isSVGTag=Qs(e.tagName),super.mount(e)}}const fl=qe(nl({...Go,...ds,...rs,...fs},((e,t)=>Es(e)?new dl(t):new ul(t,{allowProjection:e!==d.Fragment}))));let hl=!1;const ml=({toastItem:e,title:t="",content:n="",autoDismiss:r=!0,dismissAfter:o=5e3,theme:i="light",design:a="stack",icon:s,variant:l="neutral",removeToast:c})=>{const f=(0,d.useRef)(0),h=(0,d.useRef)(0),m=(0,d.useRef)(),g=(e,t=o)=>{if(r&&!(o<0))return f.current=(new Date).getTime(),setTimeout((()=>{"function"==typeof c&&c(e.id)}),t)};(0,d.useEffect)((()=>{const t=o;return m.current=g(e,t),()=>{clearTimeout(m.current)}}),[]),(0,d.useEffect)((()=>{!e?.dismiss||"function"!=typeof c||c(e.id)}),[e]);const p=()=>{"function"==typeof c&&e?.action?.onClick?.((()=>c(e.id)))};let y=null;return"stack"===a&&(y=(0,u.jsx)("div",{className:me("flex items-center justify-start p-4 gap-2 relative border border-solid rounded-md shadow-lg","dark"===i?ke:Oe?.[l],"w-[22.5rem]"),onMouseEnter:()=>{clearTimeout(m.current),h.current=(new Date).getTime()},onMouseLeave:()=>{m.current=g(e,o-(h.current-f.current))},children:"custom"!==e.type?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:"self-start flex items-center justify-center [&_svg]:size-5 shrink-0",children:Te({variant:l,icon:s,theme:i})}),(0,u.jsxs)("div",{className:"flex flex-col items-start justify-start gap-0.5 mr-6",children:[je({title:t,theme:i}),Ee({content:n,theme:i}),e?.action?.label&&"function"==typeof e?.action?.onClick&&(0,u.jsx)("div",{className:"mt-2.5",children:be({actionLabel:e?.action?.label,actionType:e?.action?.type??"button",onAction:p,theme:i})})]}),(0,u.jsx)("div",{className:"absolute right-4 top-4 [&_svg]:size-5",children:(0,u.jsx)("button",{className:me("bg-transparent m-0 p-0 border-none focus:outline-none active:outline-none cursor-pointer",ze[i]??ze.light),onClick:()=>{"function"==typeof c&&c(e.id)},children:(0,u.jsx)(M,{})})})]}):e?.jsx?.({close:()=>c(e.id),action:e?.action?{...e?.action,onClick:p}:null})})),"inline"===a&&(y=(0,u.jsxs)("div",{className:me("flex items-center justify-start p-3 gap-2 relative border border-solid rounded-md shadow-lg","dark"===i?ke:Oe?.[l],"lg:w-[47.5rem] w-full"),children:[(0,u.jsx)("div",{className:"self-start flex items-center justify-center [&_svg]:size-5 shrink-0",children:Te({variant:l,icon:s,theme:i})}),(0,u.jsxs)("div",{className:"flex items-start justify-start gap-1 mr-10 [&>span:first-child]:shrink-0",children:[je({title:t,theme:i}),Ee({content:n,theme:i})]}),(0,u.jsx)("div",{className:"absolute right-3 top-3 [&_svg]:size-5",children:(0,u.jsx)("button",{className:me("bg-transparent m-0 p-0 border-none focus:outline-none active:outline-none cursor-pointer",ze[i]??ze.light),onClick:()=>c(e.id),children:(0,u.jsx)(M,{})})})]})),y},gl=(pl=({position:e="top-right",design:t="stack",theme:n="light",className:r="",autoDismiss:o=!0,dismissAfter:i=5e3})=>{const[a,s]=(0,d.useState)([]);(0,d.useEffect)((()=>{l.subscribe((e=>{e?.dismiss?s((t=>t.map((t=>t.id===e.id?{...t,dismiss:!0}:t)))):setTimeout((()=>{(0,Se.flushSync)((()=>s((t=>-1!==t.findIndex((t=>t.id===e.id))?t.map((t=>t.id===e.id?{...t,...e}:t)):[...t,e]))))}))}))}),[]);const c=e=>{s((t=>t.filter((t=>t.id!==e))))};return(0,u.jsx)("ul",{className:me("fixed flex flex-col list-none z-20 p-10 pointer-events-none [&>li]:pointer-events-auto gap-3",Ae[e]??Ae["top-right"],r),children:(0,u.jsx)(Ge,{initial:!1,children:a.map((e=>(0,u.jsx)(fl.li,{initial:{opacity:0,y:50,scale:.7},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.6,transition:{duration:.15}},layoutId:`toast-${e.id}`,children:(0,u.jsx)(ml,{toastItem:e,title:e.title,content:e?.description,icon:e?.icon??void 0,design:e?.design??t,autoDismiss:e?.autoDismiss??o,dismissAfter:e?.dismissAfter??i,removeToast:c,variant:e.type,theme:e?.theme??n})},e.id)))})})},(0,d.memo)((e=>{const t=e.singleTon;return hl&&t?null:(hl=!0,(0,u.jsx)(pl,{...e}))})));var pl,Ml={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},yl=new class{#n=Ml;#r=!1;setTimeoutProvider(e){this.#n=e}setTimeout(e,t){return this.#n.setTimeout(e,t)}clearTimeout(e){this.#n.clearTimeout(e)}setInterval(e,t){return this.#n.setInterval(e,t)}clearInterval(e){this.#n.clearInterval(e)}},Nl="undefined"==typeof window||"Deno"in globalThis;function xl(){}function Dl(e){return"number"==typeof e&&e>=0&&e!==1/0}function vl(e,t){return Math.max(e+(t||0)-Date.now(),0)}function wl(e,t){return"function"==typeof e?e(t):e}function Tl(e,t){return"function"==typeof e?e(t):e}function bl(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(a)if(r){if(t.queryHash!==El(a,t.options))return!1}else if(!Al(t.queryKey,a))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return!("boolean"==typeof s&&t.isStale()!==s||o&&o!==t.state.fetchStatus||i&&!i(t))}function jl(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Il(t.options.mutationKey)!==Il(i))return!1}else if(!Al(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function El(e,t){return(t?.queryKeyHashFn||Il)(e)}function Il(e){return JSON.stringify(e,((e,t)=>Ll(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function Al(e,t){return e===t||typeof e==typeof t&&!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every((n=>Al(e[n],t[n])))}var Ol=Object.prototype.hasOwnProperty;function kl(e,t){if(e===t)return e;const n=Sl(e)&&Sl(t);if(!(n||Ll(e)&&Ll(t)))return t;const r=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),i=o.length,a=n?new Array(i):{};let s=0;for(let l=0;l<i;l++){const i=n?l:o[l],c=e[i],u=t[i];if(c===u){a[i]=c,(n?l<r:Ol.call(e,i))&&s++;continue}if(null===c||null===u||"object"!=typeof c||"object"!=typeof u){a[i]=u;continue}const d=kl(c,u);a[i]=d,d===c&&s++}return r===i&&s===r?e:a}function zl(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Sl(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ll(e){if(!Cl(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Cl(n)&&!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function Cl(e){return"[object Object]"===Object.prototype.toString.call(e)}function Rl(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?kl(e,t):t}function Ul(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Ql(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Yl=Symbol();function Pl(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==Yl?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}function _l(e,t){return"function"==typeof e?e(...t):!!e}var Fl=function(e){setTimeout(e,0)},Bl=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},o=Fl;const i=r=>{t?e.push(r):o((()=>{n(r)}))};return{batch:i=>{let a;t++;try{a=i()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))})()}return a},batchCalls:e=>(...t)=>{i((()=>{e(...t)}))},schedule:i,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{o=e}}}(),Vl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Wl=new class extends Vl{#o;#i;#a;constructor(){super(),this.#a=e=>{if(!Nl&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#i||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#i?.(),this.#i=void 0)}setEventListener(e){this.#a=e,this.#i?.(),this.#i=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.#o!==e&&(this.#o=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach((t=>{t(e)}))}isFocused(){return"boolean"==typeof this.#o?this.#o:"hidden"!==globalThis.document?.visibilityState}},Hl=new class extends Vl{#s=!0;#i;#a;constructor(){super(),this.#a=e=>{if(!Nl&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#i||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#i?.(),this.#i=void 0)}setEventListener(e){this.#a=e,this.#i?.(),this.#i=e(this.setOnline.bind(this))}setOnline(e){this.#s!==e&&(this.#s=e,this.listeners.forEach((t=>{t(e)})))}isOnline(){return this.#s}};function Gl(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch((()=>{})),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}function ql(e){return Math.min(1e3*2**e,3e4)}function $l(e){return"online"!==(e??"online")||Hl.isOnline()}var Zl=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Kl(e){let t,n=!1,r=0;const o=Gl(),i=()=>"pending"!==o.status,a=()=>Wl.isFocused()&&("always"===e.networkMode||Hl.isOnline())&&e.canRun(),s=()=>$l(e.networkMode)&&e.canRun(),l=e=>{i()||(t?.(),o.resolve(e))},c=e=>{i()||(t?.(),o.reject(e))},u=()=>new Promise((n=>{t=e=>{(i()||a())&&n(e)},e.onPause?.()})).then((()=>{t=void 0,i()||e.onContinue?.()})),d=()=>{if(i())return;let t;const o=0===r?e.initialPromise:void 0;try{t=o??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(l).catch((t=>{if(i())return;const o=e.retry??(Nl?0:3),s=e.retryDelay??ql,l="function"==typeof s?s(r,t):s,f=!0===o||"number"==typeof o&&r<o||"function"==typeof o&&o(r,t);var h;!n&&f?(r++,e.onFail?.(r,t),(h=l,new Promise((e=>{yl.setTimeout(e,h)}))).then((()=>a()?void 0:u())).then((()=>{n?c(t):d()}))):c(t)}))};return{promise:o,status:()=>o.status,cancel:t=>{if(!i()){const n=new Zl(t);c(n),e.onCancel?.(n)}},continue:()=>(t?.(),o),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:s,start:()=>(s()?d():u().then(d),o)}}var Xl=class{#l;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Dl(this.gcTime)&&(this.#l=yl.setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Nl?1/0:3e5))}clearGcTimeout(){this.#l&&(yl.clearTimeout(this.#l),this.#l=void 0)}},Jl=class extends Xl{#c;#u;#d;#f;#h;#m;#g;constructor(e){super(),this.#g=!1,this.#m=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#f=e.client,this.#d=this.#f.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#c=nc(this.options),this.state=e.state??this.#c,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#h?.promise}setOptions(e){if(this.options={...this.#m,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const e=nc(this.options);void 0!==e.data&&(this.setState(tc(e.data,e.dataUpdatedAt)),this.#c=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#d.remove(this)}setData(e,t){const n=Rl(this.state.data,e,this.options);return this.#p({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#p({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#h?.promise;return this.#h?.cancel(e),t?t.then(xl).catch(xl):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#c)}isActive(){return this.observers.some((e=>!1!==Tl(e.options.enabled,this)))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Yl||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some((e=>"static"===wl(e.options.staleTime,this)))}isStale(){return this.getObserversCount()>0?this.observers.some((e=>e.getCurrentResult().isStale)):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!vl(this.state.dataUpdatedAt,e))}onFocus(){const e=this.observers.find((e=>e.shouldFetchOnWindowFocus()));e?.refetch({cancelRefetch:!1}),this.#h?.continue()}onOnline(){const e=this.observers.find((e=>e.shouldFetchOnReconnect()));e?.refetch({cancelRefetch:!1}),this.#h?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#d.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(this.#h&&(this.#g?this.#h.cancel({revert:!0}):this.#h.cancelRetry()),this.scheduleGc()),this.#d.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#p({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&"rejected"!==this.#h?.status())if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#h)return this.#h.continueRetry(),this.#h.promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#g=!0,n.signal)})},o=()=>{const e=Pl(this.options,t),n=(()=>{const e={client:this.#f,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#g=!1,this.options.persister?this.options.persister(e,n,this):e(n)},i=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#f,state:this.state,fetchFn:o};return r(e),e})();this.options.behavior?.onFetch(i,this),this.#u=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===i.fetchOptions?.meta||this.#p({type:"fetch",meta:i.fetchOptions?.meta}),this.#h=Kl({initialPromise:t?.initialPromise,fn:i.fetchFn,onCancel:e=>{e instanceof Zl&&e.revert&&this.setState({...this.#u,fetchStatus:"idle"}),n.abort()},onFail:(e,t)=>{this.#p({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#p({type:"pause"})},onContinue:()=>{this.#p({type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0});try{const e=await this.#h.start();if(void 0===e)throw new Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#d.config.onSuccess?.(e,this),this.#d.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof Zl){if(e.silent)return this.#h.promise;if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#p({type:"error",error:e}),this.#d.config.onError?.(e,this),this.#d.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#p(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...ec(t.data,this.options),fetchMeta:e.meta??null};case"success":const n={...t,...tc(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#u=e.manual?n:void 0,n;case"error":const r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),Bl.batch((()=>{this.observers.forEach((e=>{e.onQueryUpdate()})),this.#d.notify({query:this,type:"updated",action:e})}))}};function ec(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:$l(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function tc(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function nc(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var rc=class extends Vl{constructor(e={}){super(),this.config=e,this.#M=new Map}#M;build(e,t,n){const r=t.queryKey,o=t.queryHash??El(r,t);let i=this.get(o);return i||(i=new Jl({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(i)),i}add(e){this.#M.has(e.queryHash)||(this.#M.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#M.get(e.queryHash);t&&(e.destroy(),t===e&&this.#M.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Bl.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}get(e){return this.#M.get(e)}getAll(){return[...this.#M.values()]}find(e){const t={exact:!0,...e};return this.getAll().find((e=>bl(t,e)))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter((t=>bl(e,t))):t}notify(e){Bl.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){Bl.batch((()=>{this.getAll().forEach((e=>{e.onFocus()}))}))}onOnline(){Bl.batch((()=>{this.getAll().forEach((e=>{e.onOnline()}))}))}},oc=class extends Xl{#f;#y;#N;#h;constructor(e){super(),this.#f=e.client,this.mutationId=e.mutationId,this.#N=e.mutationCache,this.#y=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#y.includes(e)||(this.#y.push(e),this.clearGcTimeout(),this.#N.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#y=this.#y.filter((t=>t!==e)),this.scheduleGc(),this.#N.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#y.length||("pending"===this.state.status?this.scheduleGc():this.#N.remove(this))}continue(){return this.#h?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#p({type:"continue"})},n={client:this.#f,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#h=Kl({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#p({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#p({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#N.canRun(this)});const r="pending"===this.state.status,o=!this.#h.canStart();try{if(r)t();else{this.#p({type:"pending",variables:e,isPaused:o}),await(this.#N.config.onMutate?.(e,this,n));const t=await(this.options.onMutate?.(e,n));t!==this.state.context&&this.#p({type:"pending",context:t,variables:e,isPaused:o})}const i=await this.#h.start();return await(this.#N.config.onSuccess?.(i,e,this.state.context,this,n)),await(this.options.onSuccess?.(i,e,this.state.context,n)),await(this.#N.config.onSettled?.(i,null,this.state.variables,this.state.context,this,n)),await(this.options.onSettled?.(i,null,e,this.state.context,n)),this.#p({type:"success",data:i}),i}catch(t){try{throw await(this.#N.config.onError?.(t,e,this.state.context,this,n)),await(this.options.onError?.(t,e,this.state.context,n)),await(this.#N.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)),await(this.options.onSettled?.(void 0,t,e,this.state.context,n)),t}finally{this.#p({type:"error",error:t})}}finally{this.#N.runNext(this)}}#p(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),Bl.batch((()=>{this.#y.forEach((t=>{t.onMutationUpdate(e)})),this.#N.notify({mutation:this,type:"updated",action:e})}))}},ic=class extends Vl{constructor(e={}){super(),this.config=e,this.#x=new Set,this.#D=new Map,this.#v=0}#x;#D;#v;build(e,t,n){const r=new oc({client:e,mutationCache:this,mutationId:++this.#v,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#x.add(e);const t=ac(e);if("string"==typeof t){const n=this.#D.get(t);n?n.push(e):this.#D.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#x.delete(e)){const t=ac(e);if("string"==typeof t){const n=this.#D.get(t);if(n)if(n.length>1){const t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&this.#D.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=ac(e);if("string"==typeof t){const n=this.#D.get(t),r=n?.find((e=>"pending"===e.state.status));return!r||r===e}return!0}runNext(e){const t=ac(e);if("string"==typeof t){const n=this.#D.get(t)?.find((t=>t!==e&&t.state.isPaused));return n?.continue()??Promise.resolve()}return Promise.resolve()}clear(){Bl.batch((()=>{this.#x.forEach((e=>{this.notify({type:"removed",mutation:e})})),this.#x.clear(),this.#D.clear()}))}getAll(){return Array.from(this.#x)}find(e){const t={exact:!0,...e};return this.getAll().find((e=>jl(t,e)))}findAll(e={}){return this.getAll().filter((t=>jl(e,t)))}notify(e){Bl.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){const e=this.getAll().filter((e=>e.state.isPaused));return Bl.batch((()=>Promise.all(e.map((e=>e.continue().catch(xl))))))}};function ac(e){return e.options.scope?.id}function sc(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],a=t.state.data?.pageParams||[];let s={pages:[],pageParams:[]},l=0;const c=async()=>{let n=!1;const c=Pl(t.options,t.fetchOptions),u=async(e,r,o)=>{if(n)return Promise.reject();if(null==r&&e.pages.length)return Promise.resolve(e);const i=(()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:o?"backward":"forward",meta:t.options.meta};var i;return i=e,Object.defineProperty(i,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",(()=>{n=!0})),t.signal)}),e})(),a=await c(i),{maxPages:s}=t.options,l=o?Ql:Ul;return{pages:l(e.pages,a,s),pageParams:l(e.pageParams,r,s)}};if(o&&i.length){const e="backward"===o,t={pages:i,pageParams:a},n=(e?cc:lc)(r,t);s=await u(t,n,e)}else{const t=e??i.length;do{const e=0===l?a[0]??r.initialPageParam:lc(r,s);if(l>0&&null==e)break;s=await u(s,e),l++}while(l<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=c}}}function lc(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function cc(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var uc,dc=d.createContext(void 0),fc=e=>{const t=d.useContext(dc);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},hc=({client:e,children:t})=>(d.useEffect((()=>(e.mount(),()=>{e.unmount()})),[e]),(0,u.jsx)(dc.Provider,{value:e,children:t}));function mc(){return mc=Object.assign?Object.assign.bind():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},mc.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(uc||(uc={}));const gc="popstate";function pc(e,t){if(!1===e||null==e)throw new Error(t)}function Mc(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function yc(e,t){return{usr:e.state,key:e.key,idx:t}}function Nc(e,t,n,r){return void 0===n&&(n=null),mc({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?Dc(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function xc(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function Dc(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var vc;function wc(e,t,n){return void 0===n&&(n="/"),function(e,t,n,r){let o=Uc(("string"==typeof t?Dc(t):t).pathname||"/",n);if(null==o)return null;let i=Tc(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let a=null;for(let e=0;null==a&&e<i.length;++e){let t=Rc(o);a=Lc(i[e],t,r)}return a}(e,t,n,!1)}function Tc(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let o=(e,o,i)=>{let a={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};a.relativePath.startsWith("/")&&(pc(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let s=_c([r,a.relativePath]),l=n.concat(a);e.children&&e.children.length>0&&(pc(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),Tc(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:Sc(s,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of bc(e.path))o(e,t,n);else o(e,t)})),t}function bc(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let a=bc(r.join("/")),s=[];return s.push(...a.map((e=>""===e?i:[i,e].join("/")))),o&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(vc||(vc={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const jc=/^:[\w-]+$/,Ec=3,Ic=2,Ac=1,Oc=10,kc=-2,zc=e=>"*"===e;function Sc(e,t){let n=e.split("/"),r=n.length;return n.some(zc)&&(r+=kc),t&&(r+=Ic),n.filter((e=>!zc(e))).reduce(((e,t)=>e+(jc.test(t)?Ec:""===t?Ac:Oc)),r)}function Lc(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let e=0;e<r.length;++e){let s=r[e],l=e===r.length-1,c="/"===i?t:t.slice(i.length)||"/",u=Cc({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},c),d=s.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=Cc({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},c)),!u)return null;Object.assign(o,u.params),a.push({params:o,pathname:_c([i,u.pathname]),pathnameBase:Fc(_c([i,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(i=_c([i,u.pathnameBase]))}return a}function Cc(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),Mc("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1),l=r.reduce(((e,t,n)=>{let{paramName:r,isOptional:o}=t;if("*"===r){let e=s[n]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[n];return e[r]=o&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{});return{params:l,pathname:i,pathnameBase:a,pattern:e}}function Rc(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return Mc(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function Uc(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function Qc(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function Yc(e,t){let n=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t?n.map(((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)):n.map((e=>e.pathnameBase))}function Pc(e,t,n,r){let o;void 0===r&&(r=!1),"string"==typeof e?o=Dc(e):(o=mc({},e),pc(!o.pathname||!o.pathname.includes("?"),Qc("?","pathname","search",o)),pc(!o.pathname||!o.pathname.includes("#"),Qc("#","pathname","hash",o)),pc(!o.search||!o.search.includes("#"),Qc("#","search","hash",o)));let i,a=""===e||""===o.pathname,s=a?"/":o.pathname;if(null==s)i=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:o=""}="string"==typeof e?Dc(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:Bc(r),hash:Vc(o)}}(o,i),c=s&&"/"!==s&&s.endsWith("/"),u=(a||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}const _c=e=>e.join("/").replace(/\/\/+/g,"/"),Fc=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Bc=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Vc=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;const Wc=["post","put","patch","delete"],Hc=(new Set(Wc),["get",...Wc]);function Gc(){return Gc=Object.assign?Object.assign.bind():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},Gc.apply(this,arguments)}new Set(Hc),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred");const qc=d.createContext(null),$c=d.createContext(null),Zc=d.createContext(null),Kc=d.createContext(null),Xc=d.createContext({outlet:null,matches:[],isDataRoute:!1}),Jc=d.createContext(null);function eu(){return null!=d.useContext(Kc)}function tu(){return eu()||pc(!1),d.useContext(Kc).location}function nu(e){d.useContext(Zc).static||d.useLayoutEffect(e)}function ru(){let{isDataRoute:e}=d.useContext(Xc);return e?function(){let{router:e}=function(){let e=d.useContext(qc);return e||pc(!1),e}(fu.UseNavigateStable),t=mu(hu.UseNavigateStable),n=d.useRef(!1);return nu((()=>{n.current=!0})),d.useCallback((function(r,o){void 0===o&&(o={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,Gc({fromRouteId:t},o)))}),[e,t])}():function(){eu()||pc(!1);let e=d.useContext(qc),{basename:t,future:n,navigator:r}=d.useContext(Zc),{matches:o}=d.useContext(Xc),{pathname:i}=tu(),a=JSON.stringify(Yc(o,n.v7_relativeSplatPath)),s=d.useRef(!1);return nu((()=>{s.current=!0})),d.useCallback((function(n,o){if(void 0===o&&(o={}),!s.current)return;if("number"==typeof n)return void r.go(n);let l=Pc(n,JSON.parse(a),i,"path"===o.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:_c([t,l.pathname])),(o.replace?r.replace:r.push)(l,o.state,o)}),[t,r,a,i,e])}()}const ou=d.createContext(null);function iu(){let{matches:e}=d.useContext(Xc),t=e[e.length-1];return t?t.params:{}}function au(e,t){let{relative:n}=void 0===t?{}:t,{future:r}=d.useContext(Zc),{matches:o}=d.useContext(Xc),{pathname:i}=tu(),a=JSON.stringify(Yc(o,r.v7_relativeSplatPath));return d.useMemo((()=>Pc(e,JSON.parse(a),i,"path"===n)),[e,a,i,n])}function su(e,t,n,r){eu()||pc(!1);let{navigator:o,static:i}=d.useContext(Zc),{matches:a}=d.useContext(Xc),s=a[a.length-1],l=s?s.params:{},c=(s&&s.pathname,s?s.pathnameBase:"/");s&&s.route;let u,f=tu();if(t){var h;let e="string"==typeof t?Dc(t):t;"/"===c||(null==(h=e.pathname)?void 0:h.startsWith(c))||pc(!1),u=e}else u=f;let m=u.pathname||"/",g=m;if("/"!==c){let e=c.replace(/^\//,"").split("/");g="/"+m.replace(/^\//,"").split("/").slice(e.length).join("/")}let p=!i&&n&&n.matches&&n.matches.length>0?n.matches:wc(e,{pathname:g}),M=function(e,t,n,r){var o;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===r&&(r=null),null==e){var i;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(i=r)&&i.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let a=e,s=null==(o=n)?void 0:o.errors;if(null!=s){let e=a.findIndex((e=>e.route.id&&void 0!==(null==s?void 0:s[e.route.id])));e>=0||pc(!1),a=a.slice(0,Math.min(a.length,e+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let e=0;e<a.length;e++){let t=a[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:r}=n,o=t.route.loader&&void 0===e[t.route.id]&&(!r||void 0===r[t.route.id]);if(t.route.lazy||o){l=!0,a=c>=0?a.slice(0,c+1):[a[0]];break}}}return a.reduceRight(((e,r,o)=>{let i,u=!1,f=null,h=null;var m;n&&(i=s&&r.route.id?s[r.route.id]:void 0,f=r.route.errorElement||cu,l&&(c<0&&0===o?(gu[m="route-fallback"]||(gu[m]=!0),u=!0,h=null):c===o&&(u=!0,h=r.route.hydrateFallbackElement||null)));let g=t.concat(a.slice(0,o+1)),p=()=>{let t;return t=i?f:u?h:r.route.Component?d.createElement(r.route.Component,null):r.route.element?r.route.element:e,d.createElement(du,{match:r,routeContext:{outlet:e,matches:g,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?d.createElement(uu,{location:n.location,revalidation:n.revalidation,component:f,error:i,children:p(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):p()}),null)}(p&&p.map((e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:_c([c,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:_c([c,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),a,n,r);return t&&M?d.createElement(Kc.Provider,{value:{location:Gc({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:uc.Pop}},M):M}function lu(){let e=function(){var e;let t=d.useContext(Jc),n=function(){let e=d.useContext($c);return e||pc(!1),e}(hu.UseRouteError),r=mu(hu.UseRouteError);return void 0!==t?t:null==(e=n.errors)?void 0:e[r]}(),t=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},t),n?d.createElement("pre",{style:r},n):null,null)}const cu=d.createElement(lu,null);class uu extends d.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?d.createElement(Xc.Provider,{value:this.props.routeContext},d.createElement(Jc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function du(e){let{routeContext:t,match:n,children:r}=e,o=d.useContext(qc);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),d.createElement(Xc.Provider,{value:t},r)}var fu=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(fu||{}),hu=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(hu||{});function mu(e){let t=function(){let e=d.useContext(Xc);return e||pc(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||pc(!1),n.route.id}const gu={};function pu(e){return function(e){let t=d.useContext(Xc).outlet;return t?d.createElement(ou.Provider,{value:e},t):t}(e.context)}function Mu(e){pc(!1)}function yu(e){let{basename:t="/",children:n=null,location:r,navigationType:o=uc.Pop,navigator:i,static:a=!1,future:s}=e;eu()&&pc(!1);let l=t.replace(/^\/*/,"/"),c=d.useMemo((()=>({basename:l,navigator:i,static:a,future:Gc({v7_relativeSplatPath:!1},s)})),[l,s,i,a]);"string"==typeof r&&(r=Dc(r));let{pathname:u="/",search:f="",hash:h="",state:m=null,key:g="default"}=r,p=d.useMemo((()=>{let e=Uc(u,l);return null==e?null:{location:{pathname:e,search:f,hash:h,state:m,key:g},navigationType:o}}),[l,u,f,h,m,g,o]);return null==p?null:d.createElement(Zc.Provider,{value:c},d.createElement(Kc.Provider,{children:n,value:p}))}function Nu(e){let{children:t,location:n}=e;return su(xu(t),n)}function xu(e,t){void 0===t&&(t=[]);let n=[];return d.Children.forEach(e,((e,r)=>{if(!d.isValidElement(e))return;let o=[...t,r];if(e.type===d.Fragment)return void n.push.apply(n,xu(e.props.children,o));e.type!==Mu&&pc(!1),e.props.index&&e.props.children&&pc(!1);let i={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=xu(e.props.children,o)),n.push(i)})),n}function Du(){return Du=Object.assign?Object.assign.bind():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},Du.apply(this,arguments)}function vu(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}d.startTransition,new Promise((()=>{})),d.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const wu=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(hl){}new Map;const Tu=d.startTransition;function bu(e){let{basename:t,children:n,future:r,window:o}=e,i=d.useRef();var a;null==i.current&&(i.current=(void 0===(a={window:o,v5Compat:!0})&&(a={}),function(e,t,n,r){void 0===r&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=uc.Pop,l=null,c=u();function u(){return(a.state||{idx:null}).idx}function d(){s=uc.Pop;let e=u(),t=null==e?null:e-c;c=e,l&&l({action:s,location:h.location,delta:t})}function f(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,n="string"==typeof e?e:xc(e);return n=n.replace(/ $/,"%20"),pc(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==c&&(c=0,a.replaceState(mc({},a.state,{idx:c}),""));let h={get action(){return s},get location(){return e(o,a)},listen(e){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(gc,d),l=e,()=>{o.removeEventListener(gc,d),l=null}},createHref:e=>t(o,e),createURL:f,encodeLocation(e){let t=f(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s=uc.Push;let r=Nc(h.location,e,t);n&&n(r,e),c=u()+1;let d=yc(r,c),f=h.createHref(r);try{a.pushState(d,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(f)}i&&l&&l({action:s,location:h.location,delta:1})},replace:function(e,t){s=uc.Replace;let r=Nc(h.location,e,t);n&&n(r,e),c=u();let o=yc(r,c),d=h.createHref(r);a.replaceState(o,"",d),i&&l&&l({action:s,location:h.location,delta:0})},go:e=>a.go(e)};return h}((function(e,t){let{pathname:n="/",search:r="",hash:o=""}=Dc(e.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),Nc("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:xc(t))}),(function(e,t){Mc("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),a)));let s=i.current,[l,c]=d.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},f=d.useCallback((e=>{u&&Tu?Tu((()=>c(e))):c(e)}),[c,u]);return d.useLayoutEffect((()=>s.listen(f)),[s,f]),d.useEffect((()=>{return null==(e=r)||e.v7_startTransition,void 0!==(null==e?void 0:e.v7_relativeSplatPath)||t&&t.v7_relativeSplatPath,void(t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation));var e,t}),[r]),d.createElement(yu,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:r})}Se.flushSync,d.useId;const ju="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Eu=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Iu=d.forwardRef((function(e,t){let n,{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:c,preventScrollReset:u,viewTransition:f}=e,h=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,wu),{basename:m}=d.useContext(Zc),g=!1;if("string"==typeof c&&Eu.test(c)&&(n=c,ju))try{let e=new URL(window.location.href),t=c.startsWith("//")?new URL(e.protocol+c):new URL(c),n=Uc(t.pathname,m);t.origin===e.origin&&null!=n?c=n+t.search+t.hash:g=!0}catch(e){}let p=function(e,t){let{relative:n}=void 0===t?{}:t;eu()||pc(!1);let{basename:r,navigator:o}=d.useContext(Zc),{hash:i,pathname:a,search:s}=au(e,{relative:n}),l=a;return"/"!==r&&(l="/"===a?r:_c([r,a])),o.createHref({pathname:l,search:s,hash:i})}(c,{relative:o}),M=function(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,viewTransition:s}=void 0===t?{}:t,l=ru(),c=tu(),u=au(e,{relative:a});return d.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==r?r:xc(c)===xc(u);l(e,{replace:n,state:o,preventScrollReset:i,relative:a,viewTransition:s})}}),[c,l,u,r,o,n,e,i,a,s])}(c,{replace:a,state:s,target:l,preventScrollReset:u,relative:o,viewTransition:f});return d.createElement("a",Du({},h,{href:n||p,onClick:g||i?r:function(e){r&&r(e),e.defaultPrevented||M(e)},ref:t,target:l}))}));var Au,Ou;function ku(e){let t=d.useRef(vu(e)),n=d.useRef(!1),r=tu(),o=d.useMemo((()=>function(e,t){let n=vu(e);return t&&t.forEach(((e,r)=>{n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}))})),n}(r.search,n.current?null:t.current)),[r.search]),i=ru(),a=d.useCallback(((e,t)=>{const r=vu("function"==typeof e?e(o):e);n.current=!0,i("?"+r,t)}),[i,o]);return[o,a]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Au||(Au={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Ou||(Ou={}));const zu=window.wp.i18n,Su=function(){return React.createElement("div",null,React.createElement("h1",{className:"text-xl whitespace-nowrap font-semibold text-text-primary leading-[30px] tracking-[-0.005em]"},(0,zu.__)("All Form Entries","sureforms")))},Lu=window.wp.hooks,Cu=(...e)=>e.filter(((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t)).join(" ").trim();var Ru={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Uu=(0,d.forwardRef)((({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:a,...s},l)=>(0,d.createElement)("svg",{ref:l,...Ru,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:Cu("lucide",o),...s},[...a.map((([e,t])=>(0,d.createElement)(e,t))),...Array.isArray(i)?i:[i]]))),Qu=(e,t)=>{const n=(0,d.forwardRef)((({className:n,...r},o)=>{return(0,d.createElement)(Uu,{ref:o,iconNode:t,className:Cu(`lucide-${i=e,i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,n),...r});var i}));return n.displayName=`${e}`,n},Yu=Qu("ArchiveRestore",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h2",key:"tvwodi"}],["path",{d:"M20 8v11a2 2 0 0 1-2 2h-2",key:"1gkqxj"}],["path",{d:"m9 15 3-3 3 3",key:"1pd0qc"}],["path",{d:"M12 12v9",key:"192myk"}]]),Pu=Qu("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),_u=Qu("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]),Fu=Qu("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Bu=Qu("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),Vu=Qu("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]),Wu=Qu("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]),Hu=Qu("Trash",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]]),Gu=Qu("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]),qu=p("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),$u=p("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Zu=p("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);function Ku(){return"undefined"!=typeof window}function Xu(e){return td(e)?(e.nodeName||"").toLowerCase():"#document"}function Ju(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ed(e){var t;return null==(t=(td(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function td(e){return!!Ku()&&(e instanceof Node||e instanceof Ju(e).Node)}function nd(e){return!!Ku()&&(e instanceof Element||e instanceof Ju(e).Element)}function rd(e){return!!Ku()&&(e instanceof HTMLElement||e instanceof Ju(e).HTMLElement)}function od(e){return!(!Ku()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Ju(e).ShadowRoot)}function id(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=dd(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function ad(e){return["table","td","th"].includes(Xu(e))}function sd(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function ld(e){const t=cd(),n=nd(e)?dd(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function cd(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function ud(e){return["html","body","#document"].includes(Xu(e))}function dd(e){return Ju(e).getComputedStyle(e)}function fd(e){return nd(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function hd(e){if("html"===Xu(e))return e;const t=e.assignedSlot||e.parentNode||od(e)&&e.host||ed(e);return od(t)?t.host:t}function md(e){const t=hd(e);return ud(t)?e.ownerDocument?e.ownerDocument.body:e.body:rd(t)&&id(t)?t:md(t)}function gd(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=md(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Ju(o);if(i){const e=pd(a);return t.concat(a,a.visualViewport||[],id(o)?o:[],e&&n?gd(e):[])}return t.concat(o,gd(o,[],n))}function pd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Md(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function yd(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&od(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Nd(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function xd(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}function Dd(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Td()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function vd(e){return!xd().includes("jsdom/")&&(!Td()&&0===e.width&&0===e.height||Td()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function wd(){return/apple/i.test(navigator.vendor)}function Td(){const e=/android/i;return e.test(Nd())||e.test(xd())}function bd(){return Nd().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function jd(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Ed(e){return(null==e?void 0:e.ownerDocument)||document}function Id(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function Ad(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Od(e){return rd(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function kd(e){e.preventDefault(),e.stopPropagation()}function zd(e){return!!e&&"combobox"===e.getAttribute("role")&&Od(e)}const Sd=Math.min,Ld=Math.max,Cd=Math.round,Rd=Math.floor,Ud=e=>({x:e,y:e}),Qd={left:"right",right:"left",bottom:"top",top:"bottom"},Yd={start:"end",end:"start"};function Pd(e,t,n){return Ld(e,Sd(t,n))}function _d(e,t){return"function"==typeof e?e(t):e}function Fd(e){return e.split("-")[0]}function Bd(e){return e.split("-")[1]}function Vd(e){return"x"===e?"y":"x"}function Wd(e){return"y"===e?"height":"width"}function Hd(e){return["top","bottom"].includes(Fd(e))?"y":"x"}function Gd(e){return Vd(Hd(e))}function qd(e){return e.replace(/start|end/g,(e=>Yd[e]))}function $d(e){return e.replace(/left|right|bottom|top/g,(e=>Qd[e]))}function Zd(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Kd(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}var Xd=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),Jd="undefined"==typeof Element,ef=Jd?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,tf=!Jd&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},nf=function e(t,n){var r;void 0===n&&(n=!0);var o=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},rf=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if(!nf(a,!1))if("SLOT"===a.tagName){var s=a.assignedElements(),l=e(s.length?s:a.children,!0,r);r.flatten?o.push.apply(o,l):o.push({scopeParent:a,candidates:l})}else{ef.call(a,Xd)&&r.filter(a)&&(n||!t.includes(a))&&o.push(a);var c=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),u=!nf(c,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(c&&u){var d=e(!0===c?a.children:c.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:a,candidates:d})}else i.unshift.apply(i,a.children)}}return o},of=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},af=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!of(e)?0:e.tabIndex},sf=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},lf=function(e){return"INPUT"===e.tagName},cf=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},uf=function(e,t){return!(t.disabled||nf(t)||function(e){return lf(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=ef.call(e,"details>summary:first-of-type")?e.parentElement:e;if(ef.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return cf(e)}else{if("function"==typeof r){for(var i=e;e;){var a=e.parentElement,s=tf(e);if(a&&!a.shadowRoot&&!0===r(a))return cf(e);e=e.assignedSlot?e.assignedSlot:a||s===e.ownerDocument?a:s.host}e=i}if(function(e){var t,n,r,o,i=e&&tf(e),a=null===(t=i)||void 0===t?void 0:t.host,s=!1;if(i&&i!==e)for(s=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!s&&a;){var l,c,u;s=!(null===(c=a=null===(l=i=tf(a))||void 0===l?void 0:l.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(a))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!ef.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},df=function(e,t){return!(function(e){return function(e){return lf(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||tf(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)}(t)||af(t)<0||!uf(e,t))},ff=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},hf=function e(t){var n=[],r=[];return t.forEach((function(t,o){var i=!!t.scopeParent,a=i?t.scopeParent:t,s=function(e,t){var n=af(e);return n<0&&t&&!of(e)?0:n}(a,i),l=i?e(t.candidates):a;0===s?i?n.push.apply(n,l):n.push(a):r.push({documentOrder:o,tabIndex:s,item:t,isScope:i,content:l})})),r.sort(sf).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},mf=function(e,t){var n;return n=(t=t||{}).getShadowRoot?rf([e],t.includeContainer,{filter:df.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:ff}):function(e,t,n){if(nf(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(Xd));return t&&ef.call(e,Xd)&&r.unshift(e),r.filter(n)}(e,t.includeContainer,df.bind(null,t)),hf(n)};function gf(e,t,n){let{reference:r,floating:o}=e;const i=Hd(t),a=Gd(t),s=Wd(a),l=Fd(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let h;switch(l){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(Bd(t)){case"start":h[a]-=f*(n&&c?-1:1);break;case"end":h[a]+=f*(n&&c?-1:1)}return h}async function pf(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=_d(t,e),m=Zd(h),g=s[f?"floating"===d?"reference":"floating":d],p=Kd(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),M="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),N=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},x=Kd(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:M,offsetParent:y,strategy:l}):M);return{top:(p.top-x.top+m.top)/N.y,bottom:(x.bottom-p.bottom+m.bottom)/N.y,left:(p.left-x.left+m.left)/N.x,right:(x.right-p.right+m.right)/N.x}}function Mf(e){const t=dd(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=rd(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Cd(n)!==i||Cd(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function yf(e){return nd(e)?e:e.contextElement}function Nf(e){const t=yf(e);if(!rd(t))return Ud(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Mf(t);let a=(i?Cd(n.width):n.width)/r,s=(i?Cd(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const xf=Ud(0);function Df(e){const t=Ju(e);return cd()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:xf}function vf(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=yf(e);let a=Ud(1);t&&(r?nd(r)&&(a=Nf(r)):a=Nf(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Ju(e))&&t}(i,n,r)?Df(i):Ud(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=Ju(i),t=r&&nd(r)?Ju(r):r;let n=e,o=pd(n);for(;o&&r&&t!==n;){const e=Nf(o),t=o.getBoundingClientRect(),r=dd(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,n=Ju(o),o=pd(n)}}return Kd({width:u,height:d,x:l,y:c})}function wf(e,t){const n=fd(e).scrollLeft;return t?t.left+n:vf(ed(e)).left+n}function Tf(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:wf(e,r)),y:r.top+t.scrollTop}}function bf(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Ju(e),r=ed(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=cd();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=ed(e),n=fd(e),r=e.ownerDocument.body,o=Ld(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ld(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+wf(e);const s=-n.scrollTop;return"rtl"===dd(r).direction&&(a+=Ld(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(ed(e));else if(nd(t))r=function(e,t){const n=vf(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=rd(e)?Nf(e):Ud(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Df(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Kd(r)}function jf(e,t){const n=hd(e);return!(n===t||!nd(n)||ud(n))&&("fixed"===dd(n).position||jf(n,t))}function Ef(e,t,n){const r=rd(t),o=ed(t),i="fixed"===n,a=vf(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Ud(0);function c(){l.x=wf(o)}if(r||!r&&!i)if(("body"!==Xu(t)||id(o))&&(s=fd(t)),r){const e=vf(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=!o||r||i?Ud(0):Tf(o,s);return{x:a.left+s.scrollLeft-l.x-u.x,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}function If(e){return"static"===dd(e).position}function Af(e,t){if(!rd(e)||"fixed"===dd(e).position)return null;if(t)return t(e);let n=e.offsetParent;return ed(e)===n&&(n=n.ownerDocument.body),n}function Of(e,t){const n=Ju(e);if(sd(e))return n;if(!rd(e)){let t=hd(e);for(;t&&!ud(t);){if(nd(t)&&!If(t))return t;t=hd(t)}return n}let r=Af(e,t);for(;r&&ad(r)&&If(r);)r=Af(r,t);return r&&ud(r)&&If(r)&&!ld(r)?n:r||function(e){let t=hd(e);for(;rd(t)&&!ud(t);){if(ld(t))return t;if(sd(t))return null;t=hd(t)}return null}(e)||n}const kf={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=ed(r),s=!!t&&sd(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Ud(1);const u=Ud(0),d=rd(r);if((d||!d&&!i)&&(("body"!==Xu(r)||id(a))&&(l=fd(r)),rd(r))){const e=vf(r);c=Nf(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!a||d||i?Ud(0):Tf(a,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}},getDocumentElement:ed,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?sd(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=gd(e,[],!1).filter((e=>nd(e)&&"body"!==Xu(e))),o=null;const i="fixed"===dd(e).position;let a=i?hd(e):e;for(;nd(a)&&!ud(a);){const t=dd(a),n=ld(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||id(a)&&!n&&jf(e,a))?r=r.filter((e=>e!==a)):o=t,a=hd(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=bf(t,n,o);return e.top=Ld(r.top,e.top),e.right=Sd(r.right,e.right),e.bottom=Sd(r.bottom,e.bottom),e.left=Ld(r.left,e.left),e}),bf(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Of,getElementRects:async function(e){const t=this.getOffsetParent||Of,n=this.getDimensions,r=await n(e.floating);return{reference:Ef(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Mf(e);return{width:t,height:n}},getScale:Nf,isElement:nd,isRTL:function(e){return"rtl"===dd(e).direction}};function zf(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Sf(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=yf(e),u=o||i?[...c?gd(c):[],...gd(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const o=ed(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:h}=c;if(s||t(),!f||!h)return;const m={rootMargin:-Rd(d)+"px "+-Rd(o.clientWidth-(u+f))+"px "+-Rd(o.clientHeight-(d+h))+"px "+-Rd(u)+"px",threshold:Ld(0,Sd(1,l))||1};let g=!0;function p(t){const r=t[0].intersectionRatio;if(r!==l){if(!g)return a();r?a(!1,r):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==r||zf(c,e.getBoundingClientRect())||a(),g=!1}try{r=new IntersectionObserver(p,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(p,m)}r.observe(e)}(!0),i}(c,n):null;let f,h=-1,m=null;a&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),c&&!l&&m.observe(c),m.observe(t));let g=l?vf(e):null;return l&&function t(){const r=vf(e);g&&!zf(g,r)&&n(),g=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=m)||e.disconnect(),m=null,l&&cancelAnimationFrame(f)}}const Lf=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Fd(n),s=Bd(n),l="y"===Hd(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d=_d(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof m&&(h="end"===s?-1*m:m),l?{x:h*u,y:f*c}:{x:f*c,y:h*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},Cf=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=_d(e,t),c={x:n,y:r},u=await pf(t,l),d=Hd(Fd(o)),f=Vd(d);let h=c[f],m=c[d];if(i){const e="y"===f?"bottom":"right";h=Pd(h+u["y"===f?"top":"left"],h,h-u[e])}if(a){const e="y"===d?"bottom":"right";m=Pd(m+u["y"===d?"top":"left"],m,m-u[e])}const g=s.fn({...t,[f]:h,[d]:m});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[f]:i,[d]:a}}}}}},Rf=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...p}=_d(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const M=Fd(o),y=Hd(s),N=Fd(s)===s,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),D=f||(N||!g?[$d(s)]:function(e){const t=$d(e);return[qd(e),t,qd(t)]}(s)),v="none"!==m;!f&&v&&D.push(...function(e,t,n,r){const o=Bd(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(Fd(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(qd)))),i}(s,g,m,x));const w=[s,...D],T=await pf(t,p),b=[];let j=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&b.push(T[M]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Bd(e),o=Gd(e),i=Wd(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=$d(a)),[a,$d(a)]}(o,a,x);b.push(T[e[0]],T[e[1]])}if(j=[...j,{placement:o,overflows:b}],!b.every((e=>e<=0))){var E,I;const e=((null==(E=i.flip)?void 0:E.index)||0)+1,t=w[e];if(t){var A;const n="alignment"===d&&y!==Hd(t),r=(null==(A=j[0])?void 0:A.overflows[0])>0;if(!n||r)return{data:{index:e,overflows:j},reset:{placement:t}}}let n=null==(I=j.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:I.placement;if(!n)switch(h){case"bestFit":{var O;const e=null==(O=j.filter((e=>{if(v){const t=Hd(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:O[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},Uf=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...c}=_d(e,t),u=await pf(t,c),d=Fd(o),f=Bd(o),h="y"===Hd(o),{width:m,height:g}=i.floating;let p,M;"top"===d||"bottom"===d?(p=d,M=f===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(M=d,p="end"===f?"top":"bottom");const y=g-u.top-u.bottom,N=m-u.left-u.right,x=Sd(g-u[p],y),D=Sd(m-u[M],N),v=!t.middlewareData.shift;let w=x,T=D;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(T=N),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(w=y),v&&!f){const e=Ld(u.left,0),t=Ld(u.right,0),n=Ld(u.top,0),r=Ld(u.bottom,0);h?T=m-2*(0!==e||0!==t?e+t:Ld(u.left,u.right)):w=g-2*(0!==n||0!==r?n+r:Ld(u.top,u.bottom))}await l({...t,availableWidth:T,availableHeight:w});const b=await a.getDimensions(s.floating);return m!==b.width||g!==b.height?{reset:{rects:!0}}:{}}}},Qf=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=_d(e,t)||{};if(null==c)return{};const d=Zd(u),f={x:n,y:r},h=Gd(o),m=Wd(h),g=await a.getDimensions(c),p="y"===h,M=p?"top":"left",y=p?"bottom":"right",N=p?"clientHeight":"clientWidth",x=i.reference[m]+i.reference[h]-f[h]-i.floating[m],D=f[h]-i.reference[h],v=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let w=v?v[N]:0;w&&await(null==a.isElement?void 0:a.isElement(v))||(w=s.floating[N]||i.floating[m]);const T=x/2-D/2,b=w/2-g[m]/2-1,j=Sd(d[M],b),E=Sd(d[y],b),I=j,A=w-g[m]-E,O=w/2-g[m]/2+T,k=Pd(I,O,A),z=!l.arrow&&null!=Bd(o)&&O!==k&&i.reference[m]/2-(O<I?j:E)-g[m]/2<0,S=z?O<I?O-I:O-A:0;return{[h]:f[h]+S,data:{[h]:k,centerOffset:O-k-S,...z&&{alignmentOffset:S}},reset:z}}}),Yf=(e,t,n)=>{const r=new Map,o={platform:kf,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=gf(c,r,l),f=r,h={},m=0;for(let n=0;n<s.length;n++){const{name:i,fn:g}=s[n],{x:p,y:M,data:y,reset:N}=await g({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=p?p:u,d=null!=M?M:d,h={...h,[i]:{...h[i],...y}},N&&m<=50&&(m++,"object"==typeof N&&(N.placement&&(f=N.placement),N.rects&&(c=!0===N.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):N.rects),({x:u,y:d}=gf(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:h}})(e,t,{...o,platform:i})};var Pf="undefined"!=typeof document?d.useLayoutEffect:d.useEffect;function _f(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!_f(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||_f(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function Ff(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Bf(e,t){const n=Ff(e);return Math.round(t*n)/n}function Vf(e){const t=d.useRef(e);return Pf((()=>{t.current=e})),t}const Wf=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?Qf({element:n.current,padding:r}).fn(t):{}:n?Qf({element:n,padding:r}).fn(t):{};var o}}),Hf=(e,t)=>({...Lf(e),options:[e,t]}),Gf=(e,t)=>({...Cf(e),options:[e,t]}),qf=(e,t)=>({...Rf(e),options:[e,t]}),$f={...f},Zf=$f.useInsertionEffect||(e=>e());function Kf(e){const t=d.useRef((()=>{}));return Zf((()=>{t.current=e})),d.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}const Xf="ArrowUp",Jf="ArrowDown",eh="ArrowLeft",th="ArrowRight";function nh(e,t,n){return Math.floor(e/t)!==n}function rh(e,t){return t<0||t>=e.current.length}function oh(e,t){return ah(e,{disabledIndices:t})}function ih(e,t){return ah(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function ah(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:o,amount:i=1}=void 0===t?{}:t;const a=e.current;let s=n;do{s+=r?-i:i}while(s>=0&&s<=a.length-1&&ch(a,s,o));return s}function sh(e,t,n,r,o){if(-1===e)return-1;const i=n.indexOf(e),a=t[e];switch(o){case"tl":return i;case"tr":return a?i+a.width-1:i;case"bl":return a?i+(a.height-1)*r:i;case"br":return n.lastIndexOf(e)}}function lh(e,t){return t.flatMap(((t,n)=>e.includes(t)?[n]:[]))}function ch(e,t,n){if(n)return n.includes(t);const r=e[t];return null==r||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")}var uh="undefined"!=typeof document?d.useLayoutEffect:d.useEffect;function dh(){return dh=Object.assign?Object.assign.bind():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},dh.apply(this,arguments)}let fh=!1,hh=0;const mh=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+hh++,gh=$f.useId||function(){const[e,t]=d.useState((()=>fh?mh():void 0));return uh((()=>{null==e&&t(mh())}),[]),d.useEffect((()=>{fh=!0}),[]),e},ph=d.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:o,shift:i}},width:a=14,height:s=7,tipRadius:l=0,strokeWidth:c=0,staticOffset:u,stroke:f,d:h,style:{transform:m,...g}={},...p}=e,M=gh(),[y,N]=d.useState(!1);if(uh((()=>{r&&"rtl"===dd(r).direction&&N(!0)}),[r]),!r)return null;const[x,D]=n.split("-"),v="top"===x||"bottom"===x;let w=u;(v&&null!=i&&i.x||!v&&null!=i&&i.y)&&(w=null);const T=2*c,b=T/2,j=a/2*(l/-8+1),E=s/2*l/4,I=!!h,A=w&&"end"===D?"bottom":"top";let O=w&&"end"===D?"right":"left";w&&y&&(O="end"===D?"left":"right");const k=null!=(null==o?void 0:o.x)?w||o.x:"",z=null!=(null==o?void 0:o.y)?w||o.y:"",S=h||"M0,0 H"+a+" L"+(a-j)+","+(s-E)+" Q"+a/2+","+s+" "+j+","+(s-E)+" Z",L={top:I?"rotate(180deg)":"",left:I?"rotate(90deg)":"rotate(-90deg)",bottom:I?"":"rotate(180deg)",right:I?"rotate(-90deg)":"rotate(90deg)"}[x];return d.createElement("svg",dh({},p,{"aria-hidden":!0,ref:t,width:I?a:a+T,height:a,viewBox:"0 0 "+a+" "+(s>a?s:a),style:{position:"absolute",pointerEvents:"none",[O]:k,[A]:z,[x]:v||I?"100%":"calc(100% - "+T/2+"px)",transform:[L,m].filter((e=>!!e)).join(" "),...g}}),T>0&&d.createElement("path",{clipPath:"url(#"+M+")",fill:"none",stroke:f,strokeWidth:T+(h?0:1),d:S}),d.createElement("path",{stroke:T&&!h?p.fill:"none",d:S}),d.createElement("clipPath",{id:M},d.createElement("rect",{x:-b,y:b*(I?-1:1),width:a+T,height:a})))}));const Mh=d.createContext(null),yh=d.createContext(null),Nh=()=>{var e;return(null==(e=d.useContext(Mh))?void 0:e.id)||null},xh=()=>d.useContext(yh);function Dh(e){return"data-floating-ui-"+e}function vh(e){const t=(0,d.useRef)(e);return uh((()=>{t.current=e})),t}const wh=Dh("safe-polygon");function Th(e,t,n){return n&&!jd(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}let bh=0;function jh(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(bh);const i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():bh=requestAnimationFrame(i)}function Eh(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(r);return n}let Ih=new WeakMap,Ah=new WeakSet,Oh={},kh=0;const zh=e=>e&&(e.host||zh(e.parentNode));function Sh(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=Ed(e[0]).body;return function(e,t,n,r){const o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,a=(s=t,e.map((e=>{if(s.contains(e))return e;const t=zh(e);return s.contains(t)?t:null})).filter((e=>null!=e)));var s;const l=new Set,c=new Set(a),u=[];Oh[o]||(Oh[o]=new WeakMap);const d=Oh[o];return a.forEach((function e(t){t&&!l.has(t)&&(l.add(t),t.parentNode&&e(t.parentNode))})),function e(t){t&&!c.has(t)&&[].forEach.call(t.children,(t=>{if("script"!==Xu(t))if(l.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=(Ih.get(t)||0)+1,a=(d.get(t)||0)+1;Ih.set(t,r),d.set(t,a),u.push(t),1===r&&n&&Ah.add(t),1===a&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"true")}}))}(t),l.clear(),kh++,()=>{u.forEach((e=>{const t=(Ih.get(e)||0)-1,n=(d.get(e)||0)-1;Ih.set(e,t),d.set(e,n),t||(!Ah.has(e)&&i&&e.removeAttribute(i),Ah.delete(e)),n||e.removeAttribute(o)})),kh--,kh||(Ih=new WeakMap,Ih=new WeakMap,Ah=new WeakSet,Oh={})}}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const Lh=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Ch(e,t){const n=mf(e,Lh());"prev"===t&&n.reverse();const r=n.indexOf(Md(Ed(e)));return n.slice(r+1)[0]}function Rh(){return Ch(document.body,"next")}function Uh(){return Ch(document.body,"prev")}function Qh(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!yd(n,r)}function Yh(e){mf(e,Lh()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function Ph(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const _h={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function Fh(e){"Tab"===e.key&&(e.target,clearTimeout(void 0))}const Bh=d.forwardRef((function(e,t){const[n,r]=d.useState();uh((()=>(wd()&&r("button"),document.addEventListener("keydown",Fh),()=>{document.removeEventListener("keydown",Fh)})),[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[Dh("focus-guard")]:"",style:_h};return d.createElement("span",dh({},e,o))})),Vh=d.createContext(null),Wh=Dh("portal");function Hh(e){const{children:t,id:n,root:r,preserveTabOrder:o=!0}=e,i=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=gh(),o=Gh(),[i,a]=d.useState(null),s=d.useRef(null);return uh((()=>()=>{null==i||i.remove(),queueMicrotask((()=>{s.current=null}))}),[i]),uh((()=>{if(!r)return;if(s.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(Wh,""),e.appendChild(n),s.current=n,a(n)}),[t,r]),uh((()=>{if(null===n)return;if(!r)return;if(s.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!nd(e)&&(e=e.current),e=e||document.body;let i=null;t&&(i=document.createElement("div"),i.id=t,e.appendChild(i));const l=document.createElement("div");l.id=r,l.setAttribute(Wh,""),e=i||e,e.appendChild(l),s.current=l,a(l)}),[t,n,r,o]),i}({id:n,root:r}),[a,s]=d.useState(null),l=d.useRef(null),c=d.useRef(null),u=d.useRef(null),f=d.useRef(null),h=null==a?void 0:a.modal,m=null==a?void 0:a.open,g=!!a&&!a.modal&&a.open&&o&&!(!r&&!i);return d.useEffect((()=>{if(i&&o&&!h)return i.addEventListener("focusin",e,!0),i.addEventListener("focusout",e,!0),()=>{i.removeEventListener("focusin",e,!0),i.removeEventListener("focusout",e,!0)};function e(e){i&&Qh(e)&&("focusin"===e.type?Ph:Yh)(i)}}),[i,o,h]),d.useEffect((()=>{i&&(m||Ph(i))}),[m,i]),d.createElement(Vh.Provider,{value:d.useMemo((()=>({preserveTabOrder:o,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:u,afterInsideRef:f,portalNode:i,setFocusManagerState:s})),[o,i])},g&&i&&d.createElement(Bh,{"data-type":"outside",ref:l,onFocus:e=>{if(Qh(e,i)){var t;null==(t=u.current)||t.focus()}else{const e=Uh()||(null==a?void 0:a.refs.domReference.current);null==e||e.focus()}}}),g&&i&&d.createElement("span",{"aria-owns":i.id,style:_h}),i&&Se.createPortal(t,i),g&&i&&d.createElement(Bh,{"data-type":"outside",ref:c,onFocus:e=>{if(Qh(e,i)){var t;null==(t=f.current)||t.focus()}else{const t=Rh()||(null==a?void 0:a.refs.domReference.current);null==t||t.focus(),(null==a?void 0:a.closeOnFocusOut)&&(null==a||a.onOpenChange(!1,e.nativeEvent,"focus-out"))}}}))}const Gh=()=>d.useContext(Vh),qh="data-floating-ui-focusable";function $h(e){return e?e.hasAttribute(qh)?e:e.querySelector("["+qh+"]")||e:null}let Zh=[];function Kh(e){Zh=Zh.filter((e=>e.isConnected));let t=e;if(t&&"body"!==Xu(t)){if(!function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==ef.call(e,Xd)&&df(t,e)}(t,Lh())){const e=mf(t,Lh())[0];e&&(t=e)}Zh.push(t),Zh.length>20&&(Zh=Zh.slice(-20))}}function Xh(){return Zh.slice().reverse().find((e=>e.isConnected))}const Jh=d.forwardRef((function(e,t){return d.createElement("button",dh({},e,{type:"button",ref:t,tabIndex:-1,style:_h}))}));function em(e){const{context:t,children:n,disabled:r=!1,order:o=["content"],guards:i=!0,initialFocus:a=0,returnFocus:s=!0,restoreFocus:l=!1,modal:c=!0,visuallyHiddenDismiss:u=!1,closeOnFocusOut:f=!0}=e,{open:h,refs:m,nodeId:g,onOpenChange:p,events:M,dataRef:y,floatingId:N,elements:{domReference:x,floating:D}}=t,v="number"==typeof a&&a<0,w=zd(x)&&v,T="undefined"==typeof HTMLElement||!("inert"in HTMLElement.prototype)||i,b=vh(o),j=vh(a),E=vh(s),I=xh(),A=Gh(),O=d.useRef(null),k=d.useRef(null),z=d.useRef(!1),S=d.useRef(!1),L=d.useRef(-1),C=null!=A,R=$h(D),U=Kf((function(e){return void 0===e&&(e=R),e?mf(e,Lh()):[]})),Q=Kf((e=>{const t=U(e);return b.current.map((e=>x&&"reference"===e?x:R&&"floating"===e?R:t)).filter(Boolean).flat()}));function Y(e){return!r&&u&&c?d.createElement(Jh,{ref:"start"===e?O:k,onClick:e=>p(!1,e.nativeEvent)},"string"==typeof u?u:"Dismiss"):null}d.useEffect((()=>{if(r)return;if(!c)return;function e(e){if("Tab"===e.key){yd(R,Md(Ed(R)))&&0===U().length&&!w&&kd(e);const t=Q(),n=Ad(e);"reference"===b.current[0]&&n===x&&(kd(e),e.shiftKey?jh(t[t.length-1]):jh(t[1])),"floating"===b.current[1]&&n===R&&e.shiftKey&&(kd(e),jh(t[0]))}}const t=Ed(R);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[r,x,R,c,b,w,U,Q]),d.useEffect((()=>{if(!r&&D)return D.addEventListener("focusin",e),()=>{D.removeEventListener("focusin",e)};function e(e){const t=Ad(e),n=U().indexOf(t);-1!==n&&(L.current=n)}}),[r,D,U]),d.useEffect((()=>{if(!r&&f)return D&&rd(x)?(x.addEventListener("focusout",t),x.addEventListener("pointerdown",e),D.addEventListener("focusout",t),()=>{x.removeEventListener("focusout",t),x.removeEventListener("pointerdown",e),D.removeEventListener("focusout",t)}):void 0;function e(){S.current=!0,setTimeout((()=>{S.current=!1}))}function t(e){const t=e.relatedTarget;queueMicrotask((()=>{const n=!(yd(x,t)||yd(D,t)||yd(t,D)||yd(null==A?void 0:A.portalNode,t)||null!=t&&t.hasAttribute(Dh("focus-guard"))||I&&(Eh(I.nodesRef.current,g).find((e=>{var n,r;return yd(null==(n=e.context)?void 0:n.elements.floating,t)||yd(null==(r=e.context)?void 0:r.elements.domReference,t)}))||function(e,t){var n;let r=[],o=null==(n=e.find((e=>e.id===t)))?void 0:n.parentId;for(;o;){const t=e.find((e=>e.id===o));o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}(I.nodesRef.current,g).find((e=>{var n,r;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(r=e.context)?void 0:r.elements.domReference)===t}))));if(l&&n&&Md(Ed(R))===Ed(R).body){rd(R)&&R.focus();const e=L.current,t=U(),n=t[e]||t[t.length-1]||R;rd(n)&&n.focus()}!w&&c||!t||!n||S.current||t===Xh()||(z.current=!0,p(!1,e,"focus-out"))}))}}),[r,x,D,R,c,g,I,A,p,f,l,U,w]),d.useEffect((()=>{var e;if(r)return;const t=Array.from((null==A||null==(e=A.portalNode)?void 0:e.querySelectorAll("["+Dh("portal")+"]"))||[]);if(D){const e=[D,...t,O.current,k.current,b.current.includes("reference")||w?x:null].filter((e=>null!=e)),n=c||w?Sh(e,T,!T):Sh(e);return()=>{n()}}}),[r,x,D,c,b,A,w,T]),uh((()=>{if(r||!rd(R))return;const e=Md(Ed(R));queueMicrotask((()=>{const t=Q(R),n=j.current,r=("number"==typeof n?t[n]:n.current)||R,o=yd(R,e);v||o||!h||jh(r,{preventScroll:r===R})}))}),[r,h,R,v,Q,j]),uh((()=>{if(r||!R)return;let e=!1;const t=Ed(R),n=Md(t);let o=y.current.openEvent;function i(t){let{open:n,reason:r,event:i,nested:a}=t;n&&(o=i),"escape-key"===r&&m.domReference.current&&Kh(m.domReference.current),"hover"===r&&"mouseleave"===i.type&&(z.current=!0),"outside-press"===r&&(a?(z.current=!1,e=!0):z.current=!(Dd(i)||vd(i)))}Kh(n),M.on("openchange",i);const a=t.createElement("span");return a.setAttribute("tabindex","-1"),a.setAttribute("aria-hidden","true"),Object.assign(a.style,_h),C&&x&&x.insertAdjacentElement("afterend",a),()=>{M.off("openchange",i);const n=Md(t),r=yd(D,n)||I&&Eh(I.nodesRef.current,g).some((e=>{var t;return yd(null==(t=e.context)?void 0:t.elements.floating,n)}));(r||o&&["click","mousedown"].includes(o.type))&&m.domReference.current&&Kh(m.domReference.current);const s="boolean"==typeof E.current?Xh()||a:E.current.current||a;queueMicrotask((()=>{E.current&&!z.current&&rd(s)&&(s===n||n===t.body||r)&&s.focus({preventScroll:e}),a.remove()}))}}),[r,D,R,E,y,m,M,I,g,C,x]),d.useEffect((()=>{queueMicrotask((()=>{z.current=!1}))}),[r]),uh((()=>{if(!r&&A)return A.setFocusManagerState({modal:c,closeOnFocusOut:f,open:h,onOpenChange:p,refs:m}),()=>{A.setFocusManagerState(null)}}),[r,A,c,h,p,m,f]),uh((()=>{if(r)return;if(!R)return;if("function"!=typeof MutationObserver)return;if(v)return;const e=()=>{const e=R.getAttribute("tabindex"),t=U(),n=Md(Ed(D)),r=t.indexOf(n);-1!==r&&(L.current=r),b.current.includes("floating")||n!==m.domReference.current&&0===t.length?"0"!==e&&R.setAttribute("tabindex","0"):"-1"!==e&&R.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(R,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}}),[r,D,R,m,b,U,v]);const P=!r&&T&&(!c||!w)&&(C||c);return d.createElement(d.Fragment,null,P&&d.createElement(Bh,{"data-type":"inside",ref:null==A?void 0:A.beforeInsideRef,onFocus:e=>{if(c){const e=Q();jh("reference"===o[0]?e[0]:e[e.length-1])}else if(null!=A&&A.preserveTabOrder&&A.portalNode)if(z.current=!1,Qh(e,A.portalNode)){const e=Rh()||x;null==e||e.focus()}else{var t;null==(t=A.beforeOutsideRef.current)||t.focus()}}}),!w&&Y("start"),n,Y("end"),P&&d.createElement(Bh,{"data-type":"inside",ref:null==A?void 0:A.afterInsideRef,onFocus:e=>{if(c)jh(Q()[0]);else if(null!=A&&A.preserveTabOrder&&A.portalNode)if(f&&(z.current=!0),Qh(e,A.portalNode)){const e=Uh()||x;null==e||e.focus()}else{var t;null==(t=A.afterOutsideRef.current)||t.focus()}}}))}function tm(e){return rd(e.target)&&"BUTTON"===e.target.tagName}function nm(e){return Od(e)}function rm(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:i}}=e,{enabled:a=!0,event:s="click",toggle:l=!0,ignoreMouse:c=!1,keyboardHandlers:u=!0,stickIfOpen:f=!0}=t,h=d.useRef(),m=d.useRef(!1),g=d.useMemo((()=>({onPointerDown(e){h.current=e.pointerType},onMouseDown(e){const t=h.current;0===e.button&&"click"!==s&&(jd(t,!0)&&c||(!n||!l||o.current.openEvent&&f&&"mousedown"!==o.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=h.current;"mousedown"===s&&h.current?h.current=void 0:jd(t,!0)&&c||(!n||!l||o.current.openEvent&&f&&"click"!==o.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){h.current=void 0,e.defaultPrevented||!u||tm(e)||(" "!==e.key||nm(i)||(e.preventDefault(),m.current=!0),"Enter"===e.key&&r(!n||!l,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!u||tm(e)||nm(i)||" "===e.key&&m.current&&(m.current=!1,r(!n||!l,e.nativeEvent,"click"))}})),[o,i,s,c,u,r,n,f,l]);return d.useMemo((()=>a?{reference:g}:{}),[a,g])}const om={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},im={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},am=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function sm(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:a=!0,escapeKey:s=!0,outsidePress:l=!0,outsidePressEvent:c="pointerdown",referencePress:u=!1,referencePressEvent:f="pointerdown",ancestorScroll:h=!1,bubbles:m,capture:g}=t,p=xh(),M=Kf("function"==typeof l?l:()=>!1),y="function"==typeof l?M:l,N=d.useRef(!1),x=d.useRef(!1),{escapeKey:D,outsidePress:v}=am(m),{escapeKey:w,outsidePress:T}=am(g),b=d.useRef(!1),j=Kf((e=>{var t;if(!n||!a||!s||"Escape"!==e.key)return;if(b.current)return;const o=null==(t=i.current.floatingContext)?void 0:t.nodeId,l=p?Eh(p.nodesRef.current,o):[];if(!D&&(e.stopPropagation(),l.length>0)){let e=!0;if(l.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),E=Kf((e=>{var t;const n=()=>{var t;j(e),null==(t=Ad(e))||t.removeEventListener("keydown",n)};null==(t=Ad(e))||t.addEventListener("keydown",n)})),I=Kf((e=>{var t;const n=N.current;N.current=!1;const a=x.current;if(x.current=!1,"click"===c&&a)return;if(n)return;if("function"==typeof y&&!y(e))return;const s=Ad(e),l="["+Dh("inert")+"]",u=Ed(o.floating).querySelectorAll(l);let d=nd(s)?s:null;for(;d&&!ud(d);){const e=hd(d);if(ud(e)||!nd(e))break;d=e}if(u.length&&nd(s)&&!s.matches("html,body")&&!yd(s,o.floating)&&Array.from(u).every((e=>!yd(d,e))))return;if(rd(s)&&k){const t=s.clientWidth>0&&s.scrollWidth>s.clientWidth,n=s.clientHeight>0&&s.scrollHeight>s.clientHeight;let r=n&&e.offsetX>s.clientWidth;if(n&&"rtl"===dd(s).direction&&(r=e.offsetX<=s.offsetWidth-s.clientWidth),r||t&&e.offsetY>s.clientHeight)return}const f=null==(t=i.current.floatingContext)?void 0:t.nodeId,h=p&&Eh(p.nodesRef.current,f).some((t=>{var n;return Id(e,null==(n=t.context)?void 0:n.elements.floating)}));if(Id(e,o.floating)||Id(e,o.domReference)||h)return;const m=p?Eh(p.nodesRef.current,f):[];if(m.length>0){let e=!0;if(m.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}r(!1,e,"outside-press")})),A=Kf((e=>{var t;const n=()=>{var t;I(e),null==(t=Ad(e))||t.removeEventListener(c,n)};null==(t=Ad(e))||t.addEventListener(c,n)}));d.useEffect((()=>{if(!n||!a)return;i.current.__escapeKeyBubbles=D,i.current.__outsidePressBubbles=v;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function l(){window.clearTimeout(e),b.current=!0}function u(){e=window.setTimeout((()=>{b.current=!1}),cd()?5:0)}const d=Ed(o.floating);s&&(d.addEventListener("keydown",w?E:j,w),d.addEventListener("compositionstart",l),d.addEventListener("compositionend",u)),y&&d.addEventListener(c,T?A:I,T);let f=[];return h&&(nd(o.domReference)&&(f=gd(o.domReference)),nd(o.floating)&&(f=f.concat(gd(o.floating))),!nd(o.reference)&&o.reference&&o.reference.contextElement&&(f=f.concat(gd(o.reference.contextElement)))),f=f.filter((e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)})),f.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{s&&(d.removeEventListener("keydown",w?E:j,w),d.removeEventListener("compositionstart",l),d.removeEventListener("compositionend",u)),y&&d.removeEventListener(c,T?A:I,T),f.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[i,o,s,y,c,n,r,h,a,D,v,j,w,E,I,T,A]),d.useEffect((()=>{N.current=!1}),[y,c]);const O=d.useMemo((()=>({onKeyDown:j,[om[f]]:e=>{u&&r(!1,e.nativeEvent,"reference-press")}})),[j,r,u,f]),k=d.useMemo((()=>({onKeyDown:j,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[im[c]]:()=>{N.current=!0}})),[j,c]);return d.useMemo((()=>a?{reference:O,floating:k}:{}),[a,O,k])}function lm(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=gh(),i=d.useRef({}),[a]=d.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}())),s=null!=Nh(),[l,c]=d.useState(r.reference),u=Kf(((e,t,r)=>{i.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)})),f=d.useMemo((()=>({setPositionReference:c})),[]),h=d.useMemo((()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference})),[l,r.reference,r.floating]);return d.useMemo((()=>({dataRef:i,open:t,onOpenChange:u,elements:h,events:a,floatingId:o,refs:f})),[t,u,h,a,o,f])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,a]=d.useState(null),[s,l]=d.useState(null),c=(null==o?void 0:o.domReference)||i,u=d.useRef(null),f=xh();uh((()=>{c&&(u.current=c)}),[c]);const h=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,f]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=d.useState(r);_f(h,r)||m(r);const[g,p]=d.useState(null),[M,y]=d.useState(null),N=d.useCallback((e=>{e!==w.current&&(w.current=e,p(e))}),[]),x=d.useCallback((e=>{e!==T.current&&(T.current=e,y(e))}),[]),D=i||g,v=a||M,w=d.useRef(null),T=d.useRef(null),b=d.useRef(u),j=null!=l,E=Vf(l),I=Vf(o),A=Vf(c),O=d.useCallback((()=>{if(!w.current||!T.current)return;const e={placement:t,strategy:n,middleware:h};I.current&&(e.platform=I.current),Yf(w.current,T.current,e).then((e=>{const t={...e,isPositioned:!1!==A.current};k.current&&!_f(b.current,t)&&(b.current=t,Se.flushSync((()=>{f(t)})))}))}),[h,t,n,I,A]);Pf((()=>{!1===c&&b.current.isPositioned&&(b.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[c]);const k=d.useRef(!1);Pf((()=>(k.current=!0,()=>{k.current=!1})),[]),Pf((()=>{if(D&&(w.current=D),v&&(T.current=v),D&&v){if(E.current)return E.current(D,v,O);O()}}),[D,v,O,E,j]);const z=d.useMemo((()=>({reference:w,floating:T,setReference:N,setFloating:x})),[N,x]),S=d.useMemo((()=>({reference:D,floating:v})),[D,v]),L=d.useMemo((()=>{const e={position:n,left:0,top:0};if(!S.floating)return e;const t=Bf(S.floating,u.x),r=Bf(S.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...Ff(S.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,S.floating,u.x,u.y]);return d.useMemo((()=>({...u,update:O,refs:z,elements:S,floatingStyles:L})),[u,O,z,S,L])}({...e,elements:{...o,...s&&{reference:s}}}),m=d.useCallback((e=>{const t=nd(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),h.refs.setReference(t)}),[h.refs]),g=d.useCallback((e=>{(nd(e)||null===e)&&(u.current=e,a(e)),(nd(h.refs.reference.current)||null===h.refs.reference.current||null!==e&&!nd(e))&&h.refs.setReference(e)}),[h.refs]),p=d.useMemo((()=>({...h.refs,setReference:g,setPositionReference:m,domReference:u})),[h.refs,g,m]),M=d.useMemo((()=>({...h.elements,domReference:c})),[h.elements,c]),y=d.useMemo((()=>({...h,...r,refs:p,elements:M,nodeId:t})),[h,p,M,t,r]);return uh((()=>{r.dataRef.current.floatingContext=y;const e=null==f?void 0:f.nodesRef.current.find((e=>e.id===t));e&&(e.context=y)})),d.useMemo((()=>({...h,context:y,refs:p,elements:M})),[h,p,M,y])}const cm="active",um="selected";function dm(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[cm]:t,[um]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[qh]:""},...i,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var a;o&&[cm,um].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(a=r.get(n))||a.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}function fm(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),o=d.useCallback((t=>dm(t,e,"reference")),t),i=d.useCallback((t=>dm(t,e,"floating")),n),a=d.useCallback((t=>dm(t,e,"item")),r);return d.useMemo((()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:a})),[o,i,a])}let hm=!1;function mm(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function gm(e,t){return mm(t,e===Xf||e===Jf,e===eh||e===th)}function pm(e,t,n){return mm(t,e===Jf,n?e===eh:e===th)||"Enter"===e||" "===e||""===e}function Mm(e,t,n){return mm(t,n?e===th:e===eh,e===Xf)}function ym(e,t){const{open:n,onOpenChange:r,elements:o}=e,{listRef:i,activeIndex:a,onNavigate:s=()=>{},enabled:l=!0,selectedIndex:c=null,allowEscape:u=!1,loop:f=!1,nested:h=!1,rtl:m=!1,virtual:g=!1,focusItemOnOpen:p="auto",focusItemOnHover:M=!0,openOnArrowKeyDown:y=!0,disabledIndices:N,orientation:x="vertical",cols:D=1,scrollItemIntoView:v=!0,virtualItemRef:w,itemSizes:T,dense:b=!1}=t,j=vh($h(o.floating)),E=Nh(),I=xh(),A=Kf(s),O=zd(o.domReference),k=d.useRef(p),z=d.useRef(null!=c?c:-1),S=d.useRef(null),L=d.useRef(!0),C=d.useRef(A),R=d.useRef(!!o.floating),U=d.useRef(n),Q=d.useRef(!1),Y=d.useRef(!1),P=vh(N),_=vh(n),F=vh(v),B=vh(c),[V,W]=d.useState(),[H,G]=d.useState(),q=Kf((function(e,t,n){function r(e){g?(W(e.id),null==I||I.events.emit("virtualfocus",e),w&&(w.current=e)):jh(e,{preventScroll:!0,sync:!(!bd()||!wd())&&(hm||Q.current)})}void 0===n&&(n=!1);const o=e.current[t.current];o&&r(o),requestAnimationFrame((()=>{const i=e.current[t.current]||o;if(!i)return;o||r(i);const a=F.current;a&&Z&&(n||!L.current)&&(null==i.scrollIntoView||i.scrollIntoView("boolean"==typeof a?{block:"nearest",inline:"nearest"}:a))}))}));uh((()=>{document.createElement("div").focus({get preventScroll(){return hm=!0,!1}})}),[]),uh((()=>{l&&(n&&o.floating?k.current&&null!=c&&(Y.current=!0,z.current=c,A(c)):R.current&&(z.current=-1,C.current(null)))}),[l,n,o.floating,c,A]),uh((()=>{if(l&&n&&o.floating)if(null==a){if(Q.current=!1,null!=B.current)return;if(R.current&&(z.current=-1,q(i,z)),(!U.current||!R.current)&&k.current&&(null!=S.current||!0===k.current&&null==S.current)){let e=0;const t=()=>{null==i.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e++):(z.current=null==S.current||pm(S.current,x,m)||h?oh(i,P.current):ih(i,P.current),S.current=null,A(z.current))};t()}}else rh(i,a)||(z.current=a,q(i,z,Y.current),Y.current=!1)}),[l,n,o.floating,a,B,h,i,x,m,A,q,P]),uh((()=>{var e;if(!l||o.floating||!I||g||!R.current)return;const t=I.nodesRef.current,n=null==(e=t.find((e=>e.id===E)))||null==(e=e.context)?void 0:e.elements.floating,r=Md(Ed(o.floating)),i=t.some((e=>e.context&&yd(e.context.elements.floating,r)));n&&!i&&L.current&&n.focus({preventScroll:!0})}),[l,o.floating,I,E,g]),uh((()=>{if(l&&I&&g&&!E)return I.events.on("virtualfocus",e),()=>{I.events.off("virtualfocus",e)};function e(e){G(e.id),w&&(w.current=e)}}),[l,I,g,E,w]),uh((()=>{C.current=A,R.current=!!o.floating})),uh((()=>{n||(S.current=null)}),[n]),uh((()=>{U.current=n}),[n]);const $=null!=a,Z=d.useMemo((()=>{function e(e){if(!n)return;const t=i.current.indexOf(e);-1!==t&&A(t)}return{onFocus(t){let{currentTarget:n}=t;e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...M&&{onMouseMove(t){let{currentTarget:n}=t;e(n)},onPointerLeave(e){let{pointerType:t}=e;L.current&&"touch"!==t&&(z.current=-1,q(i,z),A(null),g||jh(j.current,{preventScroll:!0}))}}}}),[n,j,q,M,i,A,g]),K=Kf((e=>{if(L.current=!1,Q.current=!0,229===e.which)return;if(!_.current&&e.currentTarget===j.current)return;if(h&&Mm(e.key,x,m))return kd(e),r(!1,e.nativeEvent,"list-navigation"),void(rd(o.domReference)&&(g?null==I||I.events.emit("virtualfocus",o.domReference):o.domReference.focus()));const t=z.current,a=oh(i,N),s=ih(i,N);if(O||("Home"===e.key&&(kd(e),z.current=a,A(z.current)),"End"===e.key&&(kd(e),z.current=s,A(z.current))),D>1){const t=T||Array.from({length:i.current.length},(()=>({width:1,height:1}))),n=function(e,t,n){const r=[];let o=0;return e.forEach(((e,i)=>{let{width:a,height:s}=e,l=!1;for(n&&(o=0);!l;){const e=[];for(let n=0;n<a;n++)for(let r=0;r<s;r++)e.push(o+n+r*t);o%t+a<=t&&e.every((e=>null==r[e]))?(e.forEach((e=>{r[e]=i})),l=!0):o++}})),[...r]}(t,D,b),r=n.findIndex((e=>null!=e&&!ch(i.current,e,N))),o=n.reduce(((e,t,n)=>null==t||ch(i.current,t,N)?e:n),-1),l=n[function(e,t){let{event:n,orientation:r,loop:o,rtl:i,cols:a,disabledIndices:s,minIndex:l,maxIndex:c,prevIndex:u,stopEvent:d=!1}=t,f=u;if(n.key===Xf){if(d&&kd(n),-1===u)f=c;else if(f=ah(e,{startingIndex:f,amount:a,decrement:!0,disabledIndices:s}),o&&(u-a<l||f<0)){const e=u%a,t=c%a,n=c-(t-e);f=t===e?c:t>e?n:n-a}rh(e,f)&&(f=u)}if(n.key===Jf&&(d&&kd(n),-1===u?f=l:(f=ah(e,{startingIndex:u,amount:a,disabledIndices:s}),o&&u+a>c&&(f=ah(e,{startingIndex:u%a-a,amount:a,disabledIndices:s}))),rh(e,f)&&(f=u)),"both"===r){const t=Rd(u/a);n.key===(i?eh:th)&&(d&&kd(n),u%a!=a-1?(f=ah(e,{startingIndex:u,disabledIndices:s}),o&&nh(f,a,t)&&(f=ah(e,{startingIndex:u-u%a-1,disabledIndices:s}))):o&&(f=ah(e,{startingIndex:u-u%a-1,disabledIndices:s})),nh(f,a,t)&&(f=u)),n.key===(i?th:eh)&&(d&&kd(n),u%a!=0?(f=ah(e,{startingIndex:u,decrement:!0,disabledIndices:s}),o&&nh(f,a,t)&&(f=ah(e,{startingIndex:u+(a-u%a),decrement:!0,disabledIndices:s}))):o&&(f=ah(e,{startingIndex:u+(a-u%a),decrement:!0,disabledIndices:s})),nh(f,a,t)&&(f=u));const r=Rd(c/a)===t;rh(e,f)&&(f=o&&r?n.key===(i?th:eh)?c:ah(e,{startingIndex:u-u%a-1,disabledIndices:s}):u)}return f}({current:n.map((e=>null!=e?i.current[e]:null))},{event:e,orientation:x,loop:f,rtl:m,cols:D,disabledIndices:lh([...N||i.current.map(((e,t)=>ch(i.current,t)?t:void 0)),void 0],n),minIndex:r,maxIndex:o,prevIndex:sh(z.current>s?a:z.current,t,n,D,e.key===Jf?"bl":e.key===(m?eh:th)?"tr":"tl"),stopEvent:!0})];if(null!=l&&(z.current=l,A(z.current)),"both"===x)return}if(gm(e.key,x)){if(kd(e),n&&!g&&Md(e.currentTarget.ownerDocument)===e.currentTarget)return z.current=pm(e.key,x,m)?a:s,void A(z.current);pm(e.key,x,m)?z.current=f?t>=s?u&&t!==i.current.length?-1:a:ah(i,{startingIndex:t,disabledIndices:N}):Math.min(s,ah(i,{startingIndex:t,disabledIndices:N})):z.current=f?t<=a?u&&-1!==t?i.current.length:s:ah(i,{startingIndex:t,decrement:!0,disabledIndices:N}):Math.max(a,ah(i,{startingIndex:t,decrement:!0,disabledIndices:N})),rh(i,z.current)?A(null):A(z.current)}})),X=d.useMemo((()=>g&&n&&$&&{"aria-activedescendant":H||V}),[g,n,$,H,V]),J=d.useMemo((()=>({"aria-orientation":"both"===x?void 0:x,...!zd(o.domReference)&&X,onKeyDown:K,onPointerMove(){L.current=!0}})),[X,K,o.domReference,x]),ee=d.useMemo((()=>{function e(e){"auto"===p&&Dd(e.nativeEvent)&&(k.current=!0)}return{...X,onKeyDown(e){L.current=!1;const t=e.key.startsWith("Arrow"),o=["Home","End"].includes(e.key),a=t||o,s=function(e,t,n){return mm(t,n?e===eh:e===th,e===Jf)}(e.key,x,m),l=Mm(e.key,x,m),u=gm(e.key,x),d=(h?s:u)||"Enter"===e.key||""===e.key.trim();if(g&&n){const t=null==I?void 0:I.nodesRef.current.find((e=>null==e.parentId)),n=I&&t?function(e,t){let n,r=-1;return function t(o,i){i>r&&(n=o,r=i),Eh(e,o).forEach((e=>{t(e.id,i+1)}))}(t,0),e.find((e=>e.id===n))}(I.nodesRef.current,t.id):null;if(a&&n&&w){const t=new KeyboardEvent("keydown",{key:e.key,bubbles:!0});if(s||l){var f,p;const r=(null==(f=n.context)?void 0:f.elements.domReference)===e.currentTarget,o=l&&!r?null==(p=n.context)?void 0:p.elements.domReference:s?i.current.find((e=>(null==e?void 0:e.id)===V)):null;o&&(kd(e),o.dispatchEvent(t),G(void 0))}var M;if((u||o)&&n.context&&n.context.open&&n.parentId&&e.currentTarget!==n.context.elements.domReference)return kd(e),void(null==(M=n.context.elements.domReference)||M.dispatchEvent(t))}return K(e)}(n||y||!t)&&(d&&(S.current=h&&u?null:e.key),h?s&&(kd(e),n?(z.current=oh(i,P.current),A(z.current)):r(!0,e.nativeEvent,"list-navigation")):u&&(null!=c&&(z.current=c),kd(e),!n&&y?r(!0,e.nativeEvent,"list-navigation"):K(e),n&&A(z.current)))},onFocus(){n&&!g&&A(null)},onPointerDown:function(e){k.current=p,"auto"===p&&vd(e.nativeEvent)&&(k.current=!0)},onMouseDown:e,onClick:e}}),[V,X,K,P,p,i,h,A,r,n,y,x,m,c,I,g,w]);return d.useMemo((()=>l?{reference:ee,floating:J,item:Z}:{}),[l,ee,J,Z])}const Nm=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function xm(e,t){var n;void 0===t&&(t={});const{open:r,floatingId:o}=e,{enabled:i=!0,role:a="dialog"}=t,s=null!=(n=Nm.get(a))?n:a,l=gh(),c=null!=Nh(),u=d.useMemo((()=>"tooltip"===s||"label"===a?{["aria-"+("label"===a?"labelledby":"describedby")]:r?o:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":"alertdialog"===s?"dialog":s,"aria-controls":r?o:void 0,..."listbox"===s&&{role:"combobox"},..."menu"===s&&{id:l},..."menu"===s&&c&&{role:"menuitem"},..."select"===a&&{"aria-autocomplete":"none"},..."combobox"===a&&{"aria-autocomplete":"list"}}),[s,o,c,r,l,a]),f=d.useMemo((()=>{const e={id:o,...s&&{role:s}};return"tooltip"===s||"label"===a?e:{...e,..."menu"===s&&{"aria-labelledby":l}}}),[s,o,l,a]),h=d.useCallback((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:o+"-option"}};switch(a){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}}),[o,a]);return d.useMemo((()=>i?{reference:u,floating:f,item:h}:{}),[i,u,f,h])}const Dm=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,((e,t)=>(t?"-":"")+e.toLowerCase()));function vm(e,t){return"function"==typeof e?e(t):e}function wm(e,t){void 0===t&&(t={});const{initial:n={opacity:0},open:r,close:o,common:i,duration:a=250}=t,s=e.placement,l=s.split("-")[0],c=d.useMemo((()=>({side:l,placement:s})),[l,s]),u="number"==typeof a,f=(u?a:a.open)||0,h=(u?a:a.close)||0,[m,g]=d.useState((()=>({...vm(i,c),...vm(n,c)}))),{isMounted:p,status:M}=function(e,t){void 0===t&&(t={});const{open:n,elements:{floating:r}}=e,{duration:o=250}=t,i=("number"==typeof o?o:o.close)||0,[a,s]=d.useState("unmounted"),l=function(e,t){const[n,r]=d.useState(e);return e&&!n&&r(!0),d.useEffect((()=>{if(!e&&n){const e=setTimeout((()=>r(!1)),t);return()=>clearTimeout(e)}}),[e,n,t]),n}(n,i);return l||"close"!==a||s("unmounted"),uh((()=>{if(r){if(n){s("initial");const e=requestAnimationFrame((()=>{s("open")}));return()=>{cancelAnimationFrame(e)}}s("close")}}),[n,r]),{isMounted:l,status:a}}(e,{duration:a}),y=vh(n),N=vh(r),x=vh(o),D=vh(i);return uh((()=>{const e=vm(y.current,c),t=vm(x.current,c),n=vm(D.current,c),r=vm(N.current,c)||Object.keys(e).reduce(((e,t)=>(e[t]="",e)),{});if("initial"===M&&g((t=>({transitionProperty:t.transitionProperty,...n,...e}))),"open"===M&&g({transitionProperty:Object.keys(r).map(Dm).join(","),transitionDuration:f+"ms",...n,...r}),"close"===M){const r=t||e;g({transitionProperty:Object.keys(r).map(Dm).join(","),transitionDuration:h+"ms",...n,...r})}}),[h,x,y,N,D,f,M,c]),{isMounted:p,styles:m}}function Tm(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let e=0,a=i-1;e<i;a=e++){const[i,s]=t[e]||[0,0],[l,c]=t[a]||[0,0];s>=r!=c>=r&&n<=(l-i)*(r-s)/(c-s)+i&&(o=!o)}return o}function bm(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,a=null,s=null,l=performance.now();const c=e=>{let{x:n,y:c,placement:u,elements:d,onClose:f,nodeId:h,tree:m}=e;return function(e){function g(){clearTimeout(o),f()}if(clearTimeout(o),!d.domReference||!d.floating||null==u||null==n||null==c)return;const{clientX:p,clientY:M}=e,y=[p,M],N=Ad(e),x="mouseleave"===e.type,D=yd(d.floating,N),v=yd(d.domReference,N),w=d.domReference.getBoundingClientRect(),T=d.floating.getBoundingClientRect(),b=u.split("-")[0],j=n>T.right-T.width/2,E=c>T.bottom-T.height/2,I=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(y,w),A=T.width>w.width,O=T.height>w.height,k=(A?w:T).left,z=(A?w:T).right,S=(O?w:T).top,L=(O?w:T).bottom;if(D&&(i=!0,!x))return;if(v&&(i=!1),v&&!x)return void(i=!0);if(x&&nd(e.relatedTarget)&&yd(d.floating,e.relatedTarget))return;if(m&&Eh(m.nodesRef.current,h).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===b&&c>=w.bottom-1||"bottom"===b&&c<=w.top+1||"left"===b&&n>=w.right-1||"right"===b&&n<=w.left+1)return g();let C=[];switch(b){case"top":C=[[k,w.top+1],[k,T.bottom-1],[z,T.bottom-1],[z,w.top+1]];break;case"bottom":C=[[k,T.top+1],[k,w.bottom-1],[z,w.bottom-1],[z,T.top+1]];break;case"left":C=[[T.right-1,L],[T.right-1,S],[w.left+1,S],[w.left+1,L]];break;case"right":C=[[w.right-1,L],[w.right-1,S],[T.left+1,S],[T.left+1,L]]}if(!Tm([p,M],C)){if(i&&!I)return g();if(!x&&r){const t=function(e,t){const n=performance.now(),r=n-l;if(null===a||null===s||0===r)return a=e,s=t,l=n,null;const o=e-a,i=t-s,c=Math.sqrt(o*o+i*i);return a=e,s=t,l=n,c/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return g()}Tm([p,M],function(e){let[n,r]=e;switch(b){case"top":return[[A?n+t/2:j?n+4*t:n-4*t,r+t+1],[A?n-t/2:j?n+4*t:n-4*t,r+t+1],[T.left,j||A?T.bottom-t:T.top],[T.right,j?A?T.bottom-t:T.top:T.bottom-t]];case"bottom":return[[A?n+t/2:j?n+4*t:n-4*t,r-t],[A?n-t/2:j?n+4*t:n-4*t,r-t],[T.left,j||A?T.top+t:T.bottom],[T.right,j?A?T.top+t:T.bottom:T.top+t]];case"left":{const e=[n+t+1,O?r+t/2:E?r+4*t:r-4*t],o=[n+t+1,O?r-t/2:E?r+4*t:r-4*t];return[[E||O?T.right-t:T.left,T.top],[E?O?T.right-t:T.left:T.right-t,T.bottom],e,o]}case"right":return[[n-t,O?r+t/2:E?r+4*t:r-4*t],[n-t,O?r-t/2:E?r+4*t:r-4*t],[E||O?T.left+t:T.right,T.top],[E?O?T.left+t:T.right:T.left+t,T.bottom]]}}([n,c]))?!i&&r&&(o=window.setTimeout(g,40)):g()}}};return c.__options={blockPointerEvents:n},c}let jm=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t};const Em={sm:{icon:"[&>svg]:size-4",searchIcon:"[&>svg]:size-4",selectButton:"px-2.5 py-2 rounded text-xs font-medium leading-4 min-h-[2rem]",multiSelect:"pl-2 pr-2 py-1.5",displaySelected:"text-xs font-normal",dropdown:"rounded-md",dropdownItemsWrapper:"p-1.5",searchbarWrapper:"p-3 flex items-center gap-0.5",searchbar:"font-medium text-sm",searchbarIcon:"size-4",label:"text-sm font-medium"},md:{icon:"[&>svg]:size-5",searchIcon:"[&>svg]:size-5",selectButton:"px-3.5 py-2.5 rounded-md text-sm font-medium leading-4 min-h-[2.5rem]",multiSelect:"pl-2 pr-2.5 py-2",displaySelected:"text-sm font-normal",dropdown:"rounded-lg",dropdownItemsWrapper:"p-2",searchbarWrapper:"p-2.5 flex items-center gap-1",searchbar:"font-medium text-sm",searchbarIcon:"size-5",label:"text-sm font-medium"},lg:{icon:"[&>svg]:size-6",searchIcon:"[&>svg]:size-5",selectButton:"px-4 py-3 rounded-lg text-sm font-medium leading-5 min-h-[3rem]",multiSelect:"pl-2.5 pr-3 py-2.5",displaySelected:"text-base font-normal",dropdown:"rounded-lg",dropdownItemsWrapper:"p-2",searchbarWrapper:"p-2.5 flex items-center gap-1",searchbar:"font-medium text-sm",searchbarIcon:"size-5",label:"text-base font-medium"}},Im="group-disabled:text-field-color-disabled",Am={sm:"w-[calc(100%+0.75rem)] translate-x-[-0.375rem]",md:"w-[calc(100%+1rem)] translate-x-[-0.5rem]",lg:"w-[calc(100%+1rem)] translate-x-[-0.5rem]"},Om={sm:"py-1.5 px-2 text-xs font-normal",md:"p-2 text-sm font-normal",lg:"p-2 text-base font-normal"},km=e=>"string"==typeof e?e:"object"==typeof e&&"textContent"in e?e.textContent?.toString().toLowerCase()||"":"object"==typeof e&&"children"in e?km(e.children):"",zm=(0,d.forwardRef)((({label:e="",size:t="sm",className:n="",type:r="pill",variant:o="neutral",icon:i=null,disabled:a=!1,onClose:s=()=>{},closable:l=!1,onMouseDown:c=()=>{},disableHover:d=!1},f)=>{const h={neutral:"bg-badge-background-gray text-badge-color-gray border-badge-border-gray",red:"bg-badge-background-red text-badge-color-red border-badge-border-red",yellow:"bg-badge-background-yellow text-badge-color-yellow border-badge-border-yellow",green:"bg-badge-background-green text-badge-color-green border-badge-border-green",blue:"bg-badge-background-sky text-badge-color-sky border-badge-border-sky",inverse:"bg-background-inverse text-text-inverse border-background-inverse",disabled:"bg-badge-background-disabled text-badge-color-disabled border-badge-border-disabled disabled cursor-not-allowed"};let m="",g="group relative justify-center flex items-center cursor-pointer";const p={xxs:"[&>svg]:size-3",xs:"[&>svg]:size-3",sm:"[&>svg]:size-3",md:"[&>svg]:size-4",lg:"[&>svg]:size-5"};return a?(m=h.disabled,g+=" cursor-not-allowed disabled"):m=h[o],e?(0,u.jsxs)("span",{className:me("font-medium border-badge-border-gray flex items-center justify-center border border-solid box-border max-w-full transition-colors duration-150 ease-in-out",{xxs:"py-0.5 px-0.5 text-xs h-4",xs:"py-0.5 px-1 text-xs h-5",sm:"py-1 px-1.5 text-xs h-6",md:"py-1 px-1.5 text-sm h-7",lg:"py-1 px-1.5 text-base h-8"}[t],{pill:"rounded-full",rounded:"rounded"}[r],"gap-0.5",m,!d&&{neutral:"hover:bg-badge-hover-gray",red:"hover:bg-badge-hover-red",yellow:"hover:bg-badge-hover-yellow",green:"hover:bg-badge-hover-green",blue:"hover:bg-badge-hover-sky",inverse:"hover:bg-badge-hover-inverse",disabled:"hover:bg-badge-hover-disabled"}[o],n),ref:f,children:[i?(0,u.jsx)("span",{className:me("justify-center flex items-center",p[t]),children:i}):null,(0,u.jsx)("span",{className:"px-1 truncate inline-block",children:e}),l&&(0,u.jsxs)("span",{className:me(g,p[t]),onMouseDown:c,role:"button",tabIndex:0,...!a&&{onClick:s},children:[(0,u.jsx)("span",{className:"sr-only",children:`Remove ${e}`}),(0,u.jsx)(M,{}),(0,u.jsx)("span",{className:"absolute -inset-1"})]})]}):null}));zm.displayName="Badge";const Sm=p("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),Lm=({variant:e="primary",size:t="md",icon:n=null,className:r=""})=>{const o={primary:"text-brand-primary-600",secondary:"text-background-primary"}[e],i={sm:"[&>svg]:size-4",md:"[&>svg]:size-5",lg:"[&>svg]:size-6",xl:"[&>svg]:size-8"}[t];return(0,u.jsx)("span",{className:me("flex",i,o,r),children:n||(0,u.jsx)(Sm,{className:"animate-spin shrink-0"})})},Cm=(0,d.createContext)({}),Rm=()=>(0,d.useContext)(Cm);function Um({children:e,icon:t=null,placeholder:n="Select an option",optionIcon:r=null,render:o,label:i,className:a,...s}){const{sizeValue:l,getReferenceProps:c,getValues:f,selectId:h,refs:m,isOpen:g,multiple:p,combobox:M,setSelected:y,onChange:N,isControlled:x,disabled:D,by:v}=Rm(),w={sm:"xs",md:"sm",lg:"md"}[l],T=(0,d.useCallback)((()=>{if(t)return t;const e="text-field-placeholder group-disabled:text-icon-disabled";return M?(0,u.jsx)(qu,{className:e}):(0,u.jsx)($u,{className:e})}),[t]),b=(0,d.useCallback)((()=>{const t=f();if(!t)return null;if(p)return t.map(((e,t)=>(0,u.jsx)(zm,{className:"cursor-default",icon:r,type:"rounded",size:w,onMouseDown:j(e),label:"function"==typeof o?o(e):e.toString(),closable:!0,disabled:D},t)));let n="string"==typeof t?t:"";if("function"==typeof o&&(n=o(t)),"function"==typeof e&&"function"!=typeof o){const r={value:t,...p?{onClose:j(t)}:{}};n=e(r)}return((0,d.isValidElement)(e)||"string"==typeof e)&&"function"!=typeof o&&(n=e),(0,u.jsx)("span",{className:me("truncate",Em[l].displaySelected,Im),children:n})}),[f,D]),j=e=>t=>{t?.preventDefault(),t?.stopPropagation();const n=[...f()??[]],r=n.findIndex((t=>null!==t&&null!==e&&"object"==typeof t?t[v]===e[v]:t===e));-1!==r&&(n.splice(r,1),x||y(n),"function"==typeof N&&N(n))};return(0,u.jsxs)("div",{className:"w-full flex flex-col items-start gap-1.5 [&_*]:box-border box-border",children:[!!i&&(0,u.jsx)("label",{className:me(Em[l]?.label,"text-field-label"),htmlFor:h,children:i}),(0,u.jsxs)("button",{id:h,ref:m.setReference,className:me("flex items-center justify-between w-full box-border transition-[outline,background-color,color,box-shadow] duration-200 bg-white","outline outline-1 outline-field-border border-none cursor-pointer",!g&&"focus:ring-2 focus:ring-offset-2 focus:outline-focus-border focus:ring-focus [&:hover:not(:focus):not(:disabled)]:outline-border-strong",Em[l].selectButton,p&&Em[l].multiSelect,"group disabled:outline-field-border-disabled [&:hover:has(:disabled)]:outline-field-border-disabled disabled:cursor-default",a),tabIndex:0,disabled:D,...s,...c(),children:[(0,u.jsxs)("div",{className:me("flex-1 grid items-center justify-start gap-1.5 overflow-hidden",f()&&"flex flex-wrap"),children:[b(),(p?!f()?.length:!f())&&(0,u.jsx)("div",{className:me("[grid-area:1/1/2/3] text-field-input px-1",Em[l].displaySelected,Im),children:n})]}),(0,u.jsx)("div",{className:me("flex items-center [&>svg]:shrink-0",Em[l].icon),children:T()})]})]})}function Qm({label:e,children:t,className:n,...r}){const{index:o,totalGroups:i}=r,{sizeValue:a}=Rm();return(0,u.jsxs)(d.Fragment,{children:[(0,u.jsxs)("div",{className:"flex flex-col",role:"group","aria-label":e,children:[(0,u.jsx)("div",{className:me("p-2 font-normal text-text-tertiary",{sm:"text-xs",md:"text-xs",lg:"text-sm"}[a],n),id:`group-${e?.toLowerCase().replace(/\s+/g,"-")}`,children:e}),(0,u.jsx)("div",{className:"flex flex-col",role:"presentation","aria-labelledby":`group-${e?.toLowerCase().replace(/\s+/g,"-")}`,children:t})]}),o<i&&!!(t&&d.Children.count(t)>0)&&(0,u.jsx)("hr",{className:me("h-px my-2 w-full border-border-subtle border-b border-t-0 border-solid",Am[a])})]})}function Ym({children:e,className:t}){const{isOpen:n,context:r,refs:o,combobox:i,floatingStyles:a,getFloatingProps:s,sizeValue:l,setSearchKeyword:c,setActiveIndex:f,setSelectedIndex:h,value:m,selected:g,getValues:p,searchKeyword:M,listContentRef:y,by:N,searchPlaceholder:x,activeIndex:D,searchFn:v,debounceDelay:w}=Rm(),T=(0,d.useMemo)((()=>{const t=p();let n=-1;if(t){let r=d.Children.toArray(e);r.length>0&&(0,d.isValidElement)(r[0])&&r[0].type===Qm&&(r=d.Children.toArray(e).map((e=>(0,d.isValidElement)(e)?d.Children.toArray(e.props.children):[])).flat()),n=r.findIndex((e=>{if(!(0,d.isValidElement)(e))return!1;const n=e.props.value;return"object"==typeof n&&"object"==typeof t?n[N]===t[N]:n===t}))}return n}),[m,g,e,N]);(0,d.useLayoutEffect)((()=>{n||(f(T),h(T))}),[T,n]),(0,d.useLayoutEffect)((()=>{n&&(i&&[-1,null].includes(D)||f(-1))}),[M,n]);const b=(0,d.useMemo)((()=>{let t=0,n=0;d.Children.forEach(e,(e=>{(0,d.isValidElement)(e)&&e.type===Qm&&d.Children.toArray(e.props.children).some((e=>{if(!(0,d.isValidElement)(e))return!1;if(M&&!v){const t=km(e.props.children)?.toLowerCase(),n=M.toLowerCase();return t.includes(n)}return!0}))&&t++})),n=Math.max(0,t-1);let r=0,o=0;const i=e=>{if(!(0,d.isValidElement)(e))return null;if(e.type===Qm){const t=d.Children.map(e.props.children,i);if(!t?.some((e=>null!==e)))return null;const r={...e.props,children:t,index:o,totalGroups:n};return o++,(0,d.cloneElement)(e,r)}if(M&&!v){const t=km(e.props?.children)?.toLowerCase(),n=M.toLowerCase();if(!t?.includes(n))return null}return(0,d.cloneElement)(e,{...e.props,index:r++})};return d.Children.map(e,i)}),[M,m,g,e,v]),j=d.Children.count(b);(0,d.useEffect)((()=>{y.current=[];let t=d.Children.toArray(e);t&&(0,d.isValidElement)(t[0])&&t[0].type===Qm&&(t=d.Children.toArray(t).map((e=>(0,d.isValidElement)(e)?e.props.children:null)).filter(Boolean)),d.Children.forEach(t,(e=>{if(!(0,d.isValidElement)(e))return;const t=km(e.props?.children)?.toLowerCase();if(M&&!v){const e=M.toLowerCase();if(!t?.includes(e))return}y.current.push(t)}))}),[M,v]);const[E,I]=(0,d.useState)(!1),A=(0,d.useCallback)((async()=>{if(v&&"function"==typeof v&&!E){I(!0);try{await v(M)}catch(e){console.error(e)}finally{I(!1)}}}),[M]),O=((e,t=500)=>{const n=(0,d.useRef)(null);return(0,d.useCallback)(((...r)=>{n.current&&clearTimeout(n.current),n.current=setTimeout((()=>e(...r)),t)}),[e,t])})(A,w);return(0,d.useEffect)((()=>{"function"==typeof v&&O()}),[O]),(0,u.jsx)(u.Fragment,{children:n&&(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(em,{context:r,modal:!1,visuallyHiddenDismiss:!0,children:(0,u.jsxs)("div",{ref:o.setFloating,className:me("box-border [&_*]:box-border w-full bg-white outline-none shadow-lg outline outline-1 outline-border-subtle",i&&"grid grid-cols-1 grid-rows-[auto_1fr] divide-y divide-x-0 divide-solid divide-border-subtle",Em[l].dropdown,!i&&"h-auto",i?"overflow-hidden":"overflow-y-auto overflow-x-hidden",t),style:{...a,zIndex:1},...s(),children:[i&&(0,u.jsxs)("div",{className:me(Em[l].searchbarWrapper),children:[E?(0,u.jsx)(Lm,{className:Em[l].searchbarIcon}):(0,u.jsx)(Zu,{className:me("text-icon-secondary shrink-0",Em[l].searchbarIcon)}),(0,u.jsx)("input",{className:me("px-1 w-full placeholder:text-field-placeholder border-0 focus:outline-none focus:shadow-none",Em[l].searchbar),type:"search",name:"keyword",placeholder:x,onChange:e=>c(e.target.value),value:M,autoComplete:"off"})]}),(0,u.jsxs)("div",{className:me("overflow-y-auto overflow-x-hidden",!i&&"w-full h-full",Em[l].dropdownItemsWrapper),children:[!!j&&b,!j&&(0,u.jsx)("div",{className:me("p-2 text-center font-medium text-field-placeholder",Om[l]),children:"No items found"})]})]})})})})}function Pm({children:e,root:t,id:n}){return(0,u.jsx)(Hh,{id:n,root:t,children:e})}function _m({value:e,selected:t,children:n,className:r,...o}){const{sizeValue:i,getItemProps:a,onKeyDownItem:s,onClickItem:l,activeIndex:c,selectedIndex:f,updateListRef:h,getValues:m,by:g,multiple:p}=Rm(),{index:M}=o,y=(0,d.useRef)(M),N=(0,d.useMemo)((()=>{if(!p)return!1;const t=m();return!!t&&t.some((t=>null!==t&&null!==e&&"object"==typeof t?t[g]===e[g]:t===e))}),[e,m]),x=(0,d.useMemo)((()=>"boolean"==typeof t?t:p?N:M===f),[N,f,t]);return(0,u.jsxs)("div",{className:me("w-full flex items-center justify-between text-text-primary hover:bg-button-tertiary-hover rounded-md transition-all duration-150 cursor-pointer focus:outline-none focus-within:outline-none outline-none",Om[i],M===c&&"bg-button-tertiary-hover",r),ref:e=>{h(M,e)},role:"option",tabIndex:M===c?0:-1,"aria-selected":x&&M===c,...a({onClick(){l(y.current,e)},onKeyDown(t){s(t,y.current,e)}}),children:[(0,u.jsx)("span",{className:"w-full truncate",children:n}),x&&(0,u.jsx)(ye,{className:me("text-icon-on-color-disabled",{sm:"size-4",md:"size-4",lg:"size-5"}[i])})]})}const Fm=({id:e,size:t="md",value:n,defaultValue:r,onChange:o,by:i="id",children:a,multiple:s=!1,combobox:l=!1,disabled:c=!1,searchPlaceholder:f="Search...",searchFn:h,debounceDelay:m=500})=>{const g=(0,d.useMemo)((()=>e||`select-${jm()}`),[e]),p=(0,d.useMemo)((()=>typeof n<"u"),[n]),[M,y]=(0,d.useState)(r),[N,x]=(0,d.useState)(""),D=(0,d.useCallback)((()=>p?n:M),[p,n,M]),[v,w]=(0,d.useState)(!1),[T,b]=(0,d.useState)(null),[j,E]=(0,d.useState)(null),I={sm:l?256:172,md:l?256:216,lg:l?256:216},{refs:A,floatingStyles:O,context:k}=lm({strategy:"fixed",placement:"bottom-start",open:v,onOpenChange:w,whileElementsMounted:Sf,middleware:[Hf(5),qf({padding:10}),(W={apply({rects:e,elements:n,availableHeight:r}){Object.assign(n.floating.style,{maxHeight:`min(${r}px, ${I[t]}px)`,maxWidth:`${e.reference.width}px`})},padding:10},{...Uf(W),options:[W,undefined]})]}),z=(0,d.useRef)([]),S=(0,d.useRef)([]),L=(0,d.useRef)(!1),C=rm(k,{event:"mousedown"}),R=sm(k),U=xm(k,{role:"listbox"}),Q=ym(k,{listRef:z,activeIndex:T,selectedIndex:j,onNavigate:b,loop:!0}),Y=function(e,t){var n;const{open:r,dataRef:o}=e,{listRef:i,activeIndex:a,onMatch:s,onTypingChange:l,enabled:c=!0,findMatch:u=null,resetMs:f=750,ignoreKeys:h=[],selectedIndex:m=null}=t,g=d.useRef(),p=d.useRef(""),M=d.useRef(null!=(n=null!=m?m:a)?n:-1),y=d.useRef(null),N=Kf(s),x=Kf(l),D=vh(u),v=vh(h);uh((()=>{r&&(clearTimeout(g.current),y.current=null,p.current="")}),[r]),uh((()=>{var e;r&&""===p.current&&(M.current=null!=(e=null!=m?m:a)?e:-1)}),[r,m,a]);const w=Kf((e=>{e?o.current.typing||(o.current.typing=e,x(e)):o.current.typing&&(o.current.typing=e,x(e))})),T=Kf((e=>{function t(e,t,n){const r=D.current?D.current(t,n):t.find((e=>0===(null==e?void 0:e.toLocaleLowerCase().indexOf(n.toLocaleLowerCase()))));return r?e.indexOf(r):-1}const n=i.current;if(p.current.length>0&&" "!==p.current[0]&&(-1===t(n,n,p.current)?w(!1):" "===e.key&&kd(e)),null==n||v.current.includes(e.key)||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;r&&" "!==e.key&&(kd(e),w(!0)),n.every((e=>{var t,n;return!e||(null==(t=e[0])?void 0:t.toLocaleLowerCase())!==(null==(n=e[1])?void 0:n.toLocaleLowerCase())}))&&p.current===e.key&&(p.current="",M.current=y.current),p.current+=e.key,clearTimeout(g.current),g.current=setTimeout((()=>{p.current="",M.current=y.current,w(!1)}),f);const o=M.current,a=t(n,[...n.slice((o||0)+1),...n.slice(0,(o||0)+1)],p.current);-1!==a?(N(a),y.current=a):" "!==e.key&&(p.current="",w(!1))})),b=d.useMemo((()=>({onKeyDown:T})),[T]),j=d.useMemo((()=>({onKeyDown:T,onKeyUp(e){" "===e.key&&w(!1)}})),[T,w]);return d.useMemo((()=>c?{reference:b,floating:j}:{}),[c,b,j])}(k,{listRef:S,activeIndex:T,selectedIndex:j,onMatch:v?b:E,onTypingChange(e){L.current=e}}),{getReferenceProps:P,getFloatingProps:_,getItemProps:F}=fm([R,U,Q,C,...l?[]:[Y]]),B=(e,t)=>{if(s)return((e,t)=>{const n=[...D()??[]];-1===n.findIndex((e=>null!==e&&null!==t&&"object"==typeof e?e[i]===t[i]:e===t))&&(n.push(t),p||y(n),E(e),A.reference.current.focus(),w(!1),x(""),"function"==typeof o&&o(n))})(e,t);E(e),p||y(t),A.reference.current.focus(),w(!1),x(""),"function"==typeof o&&o(t)},V=(0,d.useCallback)(((e,t)=>{z.current[e]=t}),[]);var W;return(0,u.jsx)(Cm.Provider,{value:{selectedIndex:j,setSelectedIndex:E,activeIndex:T,setActiveIndex:b,selected:M,setSelected:y,handleSelect:B,combobox:l,sizeValue:t,multiple:s,onChange:o,isTypingRef:L,getItemProps:F,onClickItem:(e,t)=>{B(e,t)},onKeyDownItem:(e,t,n)=>{"Enter"===e.key&&(e.preventDefault(),B(t,n))," "===e.key&&!L.current&&(e.preventDefault(),B(t,n))},getValues:D,selectId:g,getReferenceProps:P,isOpen:v,value:n,updateListRef:V,refs:A,listContentRef:S,by:i,getFloatingProps:_,floatingStyles:O,context:k,searchKeyword:N,setSearchKeyword:x,disabled:c,isControlled:p,searchPlaceholder:f,searchFn:h,debounceDelay:m},children:a})};Fm.displayName="Select";const Bm=Object.assign(Fm,{Portal:Pm,Button:Um,Options:Ym,Option:_m,OptionGroup:Qm});Pm.displayName="Select.Portal",Um.displayName="Select.Button",Ym.displayName="Select.Options",_m.displayName="Select.Option",Qm.displayName="Select.OptionGroup";const Vm=({variant:e="rectangular",className:t,...n})=>{const r={circular:"rounded-full bg-gray-200 ",rectangular:"rounded-md bg-gray-200"}[e],o={circular:"size-10",rectangular:"w-96 h-3"}[e];return(0,u.jsx)("div",{className:me(r,"animate-pulse",o,t),...n})},Wm=p("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]),Hm=(0,d.forwardRef)((({children:e=null,tag:t="label",size:n="sm",className:r="",variant:o="neutral",required:i=!1,...a},s)=>{if(!e)return null;let l="";return i&&(l="after:content-['*'] after:text-field-required after:ml-0.5"),(0,u.jsx)(t,{ref:s,className:me("font-medium text-field-label flex items-center gap-0.5",{xs:"text-xs [&>*]:text-xs [&>svg]:h-3 [&>svg]:w-3",sm:"text-sm [&>*]:text-sm [&>svg]:h-4 [&>svg]:w-4",md:"text-base [&>*]:text-base [&>svg]:h-5 [&>svg]:w-5"}[n],{neutral:"text-field-label [&>*]:text-field-label",help:"text-field-helper [&>*]:text-field-helper",error:"text-support-error [&>*]:text-support-error",disabled:"text-field-color-disabled disabled cursor-not-allowed [&>*]:text-field-color-disabled"}[o],l,{neutral:"",help:"font-normal",error:"font-normal",disabled:""}?.[o],r),...a,children:e})}));Hm.displayName="Label";const Gm=(0,d.forwardRef)((({id:e,type:t="text",defaultValue:n="",value:r,size:o="sm",className:i="",disabled:a=!1,onChange:s=()=>{},error:l=!1,onError:c=()=>{},prefix:f=null,suffix:h=null,label:m="",...g},p)=>{const y=(0,d.useRef)(null),N=(0,d.useMemo)((()=>e||`input-${t}-${jm()}`),[e]),x=(0,d.useMemo)((()=>typeof r<"u"),[r]),[D,v]=(0,d.useState)(n),[w,T]=(0,d.useState)(null),b=(0,d.useCallback)((()=>x?r:D),[x,r,D]),j=e=>{if(a)return;let n;"file"===t?(n=e.target.files,n&&n.length>0?T(n[0].name):T(null)):n=e.target.value,!x&&"file"!==t&&v(n),"function"==typeof s&&s(n)},E=()=>{T(null),y.current&&(y.current.value=""),s(null)},I="bg-field-secondary-background font-normal placeholder-text-tertiary text-text-primary w-full outline outline-1 outline-border-subtle border-none transition-[color,box-shadow,outline] duration-200",A={xs:"px-2 py-1 rounded",sm:"p-3 py-2 rounded",md:"p-3.5 py-2.5 rounded-md",lg:"p-4 py-3 rounded-lg"},O={xs:"text-xs font-medium",sm:"text-sm font-medium",md:"text-sm font-medium",lg:"text-base font-medium"},k={xs:"text-xs",sm:"text-xs",md:"text-sm",lg:"text-base"},z={sm:f?"pl-8":"",md:f?"pl-9":"",lg:f?"pl-10":""},S={sm:h?"pr-8":"",md:h?"pr-9":"",lg:h?"pr-10":""},L=a?"hover:outline-border-disabled":"hover:outline-border-strong",C="focus:outline-focus-border focus:ring-2 focus:ring-toggle-on focus:ring-offset-2",R=l?"focus:outline-focus-error-border focus:ring-field-color-error outline-focus-error-border":"",U=l?"focus:outline-focus-error-border focus:ring-field-color-error outline-focus-error-border":"",Q=a?"outline-border-disabled bg-field-background-disabled cursor-not-allowed text-text-disabled":"",Y=a?"outline-border-disabled cursor-not-allowed text-text-disabled file:text-text-tertiary":"",P="font-normal placeholder-text-tertiary text-text-primary pointer-events-none absolute inset-y-0 flex flex-1 items-center [&>svg]:h-4 [&>svg]:w-4",_=a?"font-normal placeholder-text-tertiary text-icon-disabled pointer-events-none absolute inset-y-0 flex flex-1 items-center":"font-normal placeholder-text-tertiary text-field-placeholder pointer-events-none absolute inset-y-0 flex flex-1 items-center",F={xs:"[&>svg]:size-4",sm:"[&>svg]:size-4",md:"[&>svg]:size-5",lg:"[&>svg]:size-6"},B=(0,d.useMemo)((()=>m?(0,u.jsx)(Hm,{className:me(O[o]),htmlFor:N,...g?.required&&{required:!0},children:m}):null),[m,o,N]),V=w?"file:border-0 file:bg-transparent pr-10":"text-text-tertiary file:border-0 file:bg-transparent pr-10";return"file"===t?(0,u.jsxs)("div",{className:"flex flex-col items-start gap-1.5 [&_*]:box-border box-border",children:[B,(0,u.jsxs)("div",{className:me("w-full relative flex focus-within:z-10",i),children:[(0,u.jsx)("input",{ref:Ie(y,p),id:N,type:"file",className:me(I,Y,A[o],k[o],C,L,U,V),disabled:a,onChange:j,onInvalid:c,...g}),(0,u.jsx)("div",{className:me(_,"right-0 pr-3",F[o]),children:(0,u.jsx)(Wm,{})})]})]}):(0,u.jsxs)("div",{className:"flex flex-col items-start gap-1.5 [&_*]:box-border box-border",children:[B,(0,u.jsxs)("div",{className:me("w-full relative flex focus-within:z-10",i),children:[f?(0,u.jsx)("div",{className:me(P,"left-0 pl-3",k[o]),children:f}):null,(0,u.jsx)("input",{ref:Ie(y,p),id:N,type:t,className:me(I,Q,A[o],k[o],z[o],S[o],C,L,R),disabled:a,onChange:j,onInvalid:c,value:b(),...g}),"file"===t?w?(0,u.jsx)("div",{className:me(_,"right-0 pr-3 cursor-pointer z-20 pointer-events-auto",F[o]),onClick:E,role:"button",tabIndex:0,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&E()},children:(0,u.jsx)(M,{})}):(0,u.jsx)("div",{className:me(_,"right-0 pr-3",F[o]),children:(0,u.jsx)(Wm,{})}):h?(0,u.jsx)("div",{className:me(P,"right-0 pr-3",k[o]),children:h}):null]})]})}));Gm.displayName="Input";const qm=(0,d.createContext)({}),$m=()=>(0,d.useContext)(qm),Zm=({size:e="md",children:t,className:n})=>(0,u.jsx)(qm.Provider,{value:{size:e},children:(0,u.jsx)("div",{className:me("flex flex-col bg-background-primary p-2",n),children:t})});Zm.displayName="Menu";const Km=({heading:e,arrow:t=!1,showArrowOnHover:n=!1,open:r=!0,onClick:o,children:i,className:a})=>{const[s,l]=(0,d.useState)(r),[c,f]=(0,d.useState)(!1),{size:h}=$m(),m={sm:"text-xs",md:"text-sm"}[h??"md"],g={sm:"size-4",md:"size-5"}[h??"md"],p=()=>{l(!s),o&&o(!s)};return(0,u.jsxs)("div",{children:[!!e&&(0,u.jsxs)("div",{role:"button",tabIndex:0,onClick:p,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&p()},onMouseEnter:()=>n&&f(!0),onMouseLeave:()=>n&&f(!1),className:me("text-text-primary bg-transparent cursor-pointer flex justify-between items-center gap-1",m,e?"p-1":"p-0",a),"aria-expanded":s,children:[(0,u.jsx)("span",{className:"text-text-tertiary",children:e}),t&&(0,u.jsx)(fl.span,{className:"flex items-center text-border-strong",initial:"hidden",animate:n?s||c?"visible":"hidden":"visible",exit:"hidden",variants:{visible:{opacity:1},hidden:{opacity:0}},transition:{duration:.15},children:(0,u.jsx)(fl.span,{className:"inline-flex p-1",variants:{open:{rotate:180},closed:{rotate:0}},animate:s?"open":"closed",transition:{duration:.15},children:(0,u.jsx)($u,{className:me("shrink-0",g)})})})]}),(0,u.jsx)(Ge,{initial:!1,children:s&&(0,u.jsx)(fl.ul,{role:"menu",variants:{open:{height:"auto",opacity:1},closed:{height:0,opacity:0}},initial:"closed",animate:"open",exit:"closed",transition:{duration:.3,ease:"easeInOut"},className:"overflow flex gap-0.5 flex-col m-0 bg-white rounded p-0",children:i})})]})};Km.displayName="Menu.List";const Xm=({disabled:e=!1,active:t,onClick:n,children:r,className:o})=>{const{size:i}=$m(),a={sm:"[&>svg]:size-4 [&>svg]:m-1 [&>*:not(svg)]:mx-1 [&>*:not(svg)]:my-0.5 text-sm",md:"[&>svg]:size-5 [&>svg]:m-1.5 [&>*:not(svg)]:m-1 text-base"}[i??"md"];return(0,u.jsx)("li",{role:"menuitem",tabIndex:0,onClick:n,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&n?.()},className:me("flex p-1 gap-1 items-center bg-transparent border-none rounded text-text-secondary cursor-pointer m-0",a,"hover:bg-background-secondary hover:text-text-primary",e?"text-text-disabled hover:text-text-disabled cursor-not-allowed hover:bg-transparent":"",t?"text-icon-primary [&>svg]:text-icon-interactive bg-background-secondary":"","transition-colors duration-300 ease-in-out",o),children:r})};Xm.displayName="Menu.Item";const Jm=({variant:e="solid",className:t})=>{const n={solid:"border-solid",dashed:"border-dashed",dotted:"border-dotted",double:"border-double",hidden:"border-hidden",none:"border-none"}[e];return(0,u.jsx)("li",{className:"m-0 p-0 list-none",role:"separator","aria-hidden":"true",children:(0,u.jsx)("hr",{className:me("w-full border-0 border-t border-border-subtle",n,t)})})};Jm.displayName="Menu.Separator",Zm.List=Km,Zm.Item=Xm,Zm.Separator=Jm;const eg=(0,d.createContext)({}),tg=()=>(0,d.useContext)(eg),ng=({placement:e="bottom",offset:t=10,boundary:n="clippingAncestors",children:r,className:o})=>{const[i,a]=(0,d.useState)(!1),{refs:s,floatingStyles:l,context:c}=lm({open:i,onOpenChange:a,placement:e,strategy:"fixed",middleware:[Hf(t),qf({boundary:n}),Gf({boundary:n})],whileElementsMounted:Sf}),f=rm(c),h=sm(c),m=xm(c,{role:"menu"}),{getReferenceProps:g,getFloatingProps:p}=fm([f,h,m]),{isMounted:M,styles:y}=wm(c,{duration:150,initial:{opacity:0,scale:.95},open:{opacity:1,scale:1},close:{opacity:0,scale:.95}}),N=()=>a((e=>!e));return(0,u.jsx)(eg.Provider,{value:{refs:s,handleClose:()=>a(!1),isMounted:M,styles:y,floatingStyles:l,getFloatingProps:p},children:(0,u.jsxs)("div",{className:me("relative inline-block",o),children:[d.Children.map(r,(e=>d.isValidElement(e)&&"DropdownMenu.Trigger"===e?.type?.displayName?(0,d.cloneElement)(e,{ref:s.setReference,onClick:N,...g()}):null)),d.Children.toArray(r).filter((e=>d.isValidElement(e)&&["DropdownMenu.Portal","DropdownMenu.ContentWrapper"].includes(e.type.displayName||""))).map((e=>e))]})})};ng.displayName="DropdownMenu";const rg=({children:e,className:t})=>{const{refs:n,floatingStyles:r,getFloatingProps:o,isMounted:i,styles:a}=tg();return i&&(0,u.jsx)("div",{ref:n.setFloating,className:t,style:{...r,...a},...o(),children:d.Children.map(e,(e=>"DropdownMenu.Content"===e?.type?.displayName?e:null))})};rg.displayName="DropdownMenu.ContentWrapper";const og=({children:e,root:t,id:n})=>(0,u.jsx)(Hh,{id:n,root:t,children:e});og.displayName="DropdownMenu.Portal";const ig=d.forwardRef((({children:e,className:t,...n},r)=>(0,d.isValidElement)(e)?d.cloneElement(e,{className:me(t,e.props.className),ref:r,...n}):(0,u.jsx)("div",{ref:r,className:me("cursor-pointer",t),role:"button",tabIndex:0,...n,children:e})));ig.displayName="DropdownMenu.Trigger";const ag=({children:e,className:t,...n})=>(0,u.jsx)("div",{className:me("border border-solid border-border-subtle rounded-md shadow-lg overflow-hidden",t),children:(0,u.jsx)(Zm,{...n,children:e})});ag.displayName="DropdownMenu.Content";const sg=e=>(0,u.jsx)(Zm.List,{...e});sg.displayName="DropdownMenu.List";const lg=({children:e,as:t=Zm.Item,...n})=>{const{handleClose:r}=tg();return e?t===d.Fragment&&(0,d.isValidElement)(e)?(0,d.cloneElement)(e,{onClick:ge(e.props?.onClick,r)}):(0,u.jsx)(t,{...n,className:me("px-2",n.className),onClick:ge(n.onClick,r),children:e}):null};lg.displayName="DropdownMenu.Item";const cg=e=>(0,u.jsx)(Zm.Separator,{...e});cg.displayName="DropdownMenu.Separator",ng.Trigger=ig,ng.Content=ag,ng.List=sg,ng.Item=lg,ng.Separator=cg,ng.Portal=og,ng.ContentWrapper=rg;const ug=p("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),dg=p("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),fg=(0,d.createContext)(void 0);function hg(){const e=(0,d.useContext)(fg);if(void 0===e)throw new Error("useDayPicker() must be used within a custom component.");return e}var mg,gg,pg,Mg;!function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"}(mg||(mg={})),function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"}(gg||(gg={})),function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"}(pg||(pg={})),function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"}(Mg||(Mg={}));const yg={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Ng(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const xg={date:Ng({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Ng({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Ng({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Dg={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function vg(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const wg={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:vg({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:vg({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:vg({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:vg({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:vg({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function Tg(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const a=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e){for(let t=0;t<e.length;t++)if(e[t].test(a))return t}(s):function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t].test(a))return t}(s);let c;return c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c,{value:c,rest:t.slice(a.length)}}}const bg={ordinalNumber:(jg={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(jg.matchPattern);if(!n)return null;const r=n[0],o=e.match(jg.parsePattern);if(!o)return null;let i=jg.valueCallback?jg.valueCallback(o[0]):o[0];return i=t.valueCallback?t.valueCallback(i):i,{value:i,rest:e.slice(r.length)}}),era:Tg({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Tg({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:Tg({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Tg({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Tg({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};var jg;const Eg={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=yg[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:xg,formatRelative:(e,t,n,r)=>Dg[e],localize:wg,match:bg,options:{weekStartsOn:0,firstWeekContainsDate:1}},Ig=(Symbol.for("constructDateFrom"),{}),Ag={};function Og(e,t){try{const n=(Ig[e]||=new Intl.DateTimeFormat("en-GB",{timeZone:e,hour:"numeric",timeZoneName:"longOffset"}).format)(t).split("GMT")[1]||"";return n in Ag?Ag[n]:zg(n,n.split(":"))}catch{if(e in Ag)return Ag[e];const t=e?.match(kg);return t?zg(e,t.slice(1)):NaN}}const kg=/([+-]\d\d):?(\d\d)?/;function zg(e,t){const n=+t[0],r=+(t[1]||0);return Ag[e]=n>0?60*n+r:60*n-r}class Sg extends Date{constructor(...e){super(),e.length>1&&"string"==typeof e[e.length-1]&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(Og(this.timeZone,this))?this.setTime(NaN):e.length?"number"==typeof e[0]&&(1===e.length||2===e.length&&"number"!=typeof e[1])?this.setTime(e[0]):"string"==typeof e[0]?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),Rg(this),Cg(this)):this.setTime(Date.now())}static tz(e,...t){return t.length?new Sg(...t,e):new Sg(Date.now(),e)}withTimeZone(e){return new Sg(+this,e)}getTimezoneOffset(){return-Og(this.timeZone,this)}setTime(e){return Date.prototype.setTime.apply(this,arguments),Cg(this),+this}[Symbol.for("constructDateFrom")](e){return new Sg(+new Date(e),this.timeZone)}}const Lg=/^(get|set)(?!UTC)/;function Cg(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function Rg(e){const t=Og(e.timeZone,e),n=new Date(+e);n.setUTCHours(n.getUTCHours()-1);const r=-new Date(+e).getTimezoneOffset(),o=r- -new Date(+n).getTimezoneOffset(),i=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();o&&i&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+o);const a=r-t;a&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+a);const s=Og(e.timeZone,e),l=-new Date(+e).getTimezoneOffset()-s-a;if(s!==t&&l){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+l);const t=s-Og(e.timeZone,e);t&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+t),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+t))}}Object.getOwnPropertyNames(Date.prototype).forEach((e=>{if(!Lg.test(e))return;const t=e.replace(Lg,"$1UTC");Sg.prototype[t]&&(e.startsWith("get")?Sg.prototype[e]=function(){return this.internal[t]()}:(Sg.prototype[e]=function(){var e;return Date.prototype[t].apply(this.internal,arguments),e=this,Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),Rg(e),+this},Sg.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Cg(this),+this}))}));class Ug extends Sg{static tz(e,...t){return t.length?new Ug(...t,e):new Ug(Date.now(),e)}toISOString(){const[e,t,n]=this.tzComponents(),r=`${e}${t}:${n}`;return this.internal.toISOString().slice(0,-1)+r}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[e,t,n,r]=this.internal.toUTCString().split(" ");return`${e?.slice(0,-1)} ${n} ${t} ${r}`}toTimeString(){const e=this.internal.toUTCString().split(" ")[4],[t,n,r]=this.tzComponents();return`${e} GMT${t}${n}${r} (${o=this.timeZone,i=this,new Intl.DateTimeFormat("en-GB",{timeZone:o,timeZoneName:"long"}).format(i).slice(12)})`;var o,i}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){const e=this.getTimezoneOffset();return[e>0?"-":"+",String(Math.floor(Math.abs(e)/60)).padStart(2,"0"),String(Math.abs(e)%60).padStart(2,"0")]}withTimeZone(e){return new Ug(+this,e)}[Symbol.for("constructDateFrom")](e){return new Ug(+new Date(e),this.timeZone)}}Math.pow(10,8);const Qg=6048e5,Yg=Symbol.for("constructDateFrom");function Pg(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&Yg in e?e[Yg](t):e instanceof Date?new e.constructor(t):new Date(t)}function _g(e,t){return Pg(t||e,e)}function Fg(e,t,n){const r=_g(e,n?.in);return isNaN(t)?Pg(n?.in||e,NaN):t?(r.setDate(r.getDate()+t),r):r}function Bg(e,t,n){const r=_g(e,n?.in);if(isNaN(t))return Pg(n?.in||e,NaN);if(!t)return r;const o=r.getDate(),i=Pg(n?.in||e,r.getTime());return i.setMonth(r.getMonth()+t+1,0),o>=i.getDate()?i:(r.setFullYear(i.getFullYear(),i.getMonth(),o),r)}function Vg(e){const t=_g(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Wg(e,...t){const n=Pg.bind(null,e||t.find((e=>"object"==typeof e)));return t.map(n)}function Hg(e,t){const n=_g(e,t?.in);return n.setHours(0,0,0,0),n}function Gg(e,t,n){const[r,o]=Wg(n?.in,e,t),i=Hg(r),a=Hg(o),s=+i-Vg(i),l=+a-Vg(a);return Math.round((s-l)/864e5)}let qg={};function $g(){return qg}function Zg(e,t){const n=$g(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=_g(e,t?.in),i=o.getDay(),a=6+(i<r?-7:0)-(i-r);return o.setDate(o.getDate()+a),o.setHours(23,59,59,999),o}function Kg(e,t){const n=_g(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Xg(e,t){const n=_g(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Jg(e,t){const n=$g(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=_g(e,t?.in),i=o.getDay(),a=(i<r?7:0)+i-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function ep(e,t){return Jg(e,{...t,weekStartsOn:1})}function tp(e,t){const n=_g(e,t?.in),r=n.getFullYear(),o=Pg(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const i=ep(o),a=Pg(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=ep(a);return n.getTime()>=i.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function np(e,t){const n=_g(e,t?.in),r=+ep(n)-+function(e,t){const n=tp(e,t),r=Pg(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),ep(r)}(n);return Math.round(r/Qg)+1}function rp(e,t){const n=_g(e,t?.in),r=n.getFullYear(),o=$g(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=Pg(t?.in||e,0);a.setFullYear(r+1,0,i),a.setHours(0,0,0,0);const s=Jg(a,t),l=Pg(t?.in||e,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const c=Jg(l,t);return+n>=+s?r+1:+n>=+c?r:r-1}function op(e,t){const n=_g(e,t?.in),r=+Jg(n,t)-+function(e,t){const n=$g(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=rp(e,t),i=Pg(t?.in||e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),Jg(i,t)}(n,t);return Math.round(r/Qg)+1}function ip(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const ap={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return ip("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):ip(n+1,2)},d:(e,t)=>ip(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>ip(e.getHours()%12||12,t.length),H:(e,t)=>ip(e.getHours(),t.length),m:(e,t)=>ip(e.getMinutes(),t.length),s:(e,t)=>ip(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return ip(Math.trunc(r*Math.pow(10,n-3)),t.length)}},sp={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return ap.y(e,t)},Y:function(e,t,n,r){const o=rp(e,r),i=o>0?o:1-o;return"YY"===t?ip(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):ip(i,t.length)},R:function(e,t){return ip(tp(e),t.length)},u:function(e,t){return ip(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return ip(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return ip(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return ap.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return ip(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=op(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):ip(o,t.length)},I:function(e,t,n){const r=np(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):ip(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):ap.d(e,t)},D:function(e,t,n){const r=function(e,t){const n=_g(e,t?.in);return Gg(n,Xg(n))+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):ip(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return ip(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return ip(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return ip(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return ap.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):ap.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):ip(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):ip(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):ap.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):ap.s(e,t)},S:function(e,t){return ap.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return cp(r);case"XXXX":case"XX":return up(r);default:return up(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return cp(r);case"xxxx":case"xx":return up(r);default:return up(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+lp(r,":");default:return"GMT"+up(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+lp(r,":");default:return"GMT"+up(r,":")}},t:function(e,t,n){return ip(Math.trunc(+e/1e3),t.length)},T:function(e,t,n){return ip(+e,t.length)}};function lp(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return 0===i?n+String(o):n+String(o)+t+ip(i,2)}function cp(e,t){return e%60==0?(e>0?"-":"+")+ip(Math.abs(e)/60,2):up(e,t)}function up(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+ip(Math.trunc(r/60),2)+t+ip(r%60,2)}const dp=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},fp=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},hp={p:fp,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return dp(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",dp(r,t)).replace("{{time}}",fp(o,t))}},mp=/^D+$/,gp=/^Y+$/,pp=["D","DD","YY","YYYY"];function Mp(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}const yp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Np=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,xp=/^'([^]*?)'?$/,Dp=/''/g,vp=/[a-zA-Z]/;function wp(e,t,n){const r=$g(),o=n?.locale??r.locale??Eg,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=_g(e,n?.in);if(!function(e){return!(!Mp(e)&&"number"!=typeof e||isNaN(+_g(e)))}(s))throw new RangeError("Invalid time value");let l=t.match(Np).map((e=>{const t=e[0];return"p"===t||"P"===t?(0,hp[t])(e,o.formatLong):e})).join("").match(yp).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:Tp(e)};if(sp[t])return{isToken:!0,value:e};if(t.match(vp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));o.localize.preprocessor&&(l=o.localize.preprocessor(s,l));const c={firstWeekContainsDate:i,weekStartsOn:a,locale:o};return l.map((r=>{if(!r.isToken)return r.value;const i=r.value;return(!n?.useAdditionalWeekYearTokens&&function(e){return gp.test(e)}(i)||!n?.useAdditionalDayOfYearTokens&&function(e){return mp.test(e)}(i))&&function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),pp.includes(e))throw new RangeError(r)}(i,t,String(e)),(0,sp[i[0]])(s,i,o.localize,c)})).join("")}function Tp(e){const t=e.match(xp);return t?t[1].replace(Dp,"'"):e}function bp(e,t){return+_g(e)>+_g(t)}function jp(e,t){return+_g(e)<+_g(t)}function Ep(e,t,n){const r=_g(e,n?.in),o=r.getFullYear(),i=r.getDate(),a=Pg(n?.in||e,0);a.setFullYear(o,t,15),a.setHours(0,0,0,0);const s=function(e,t){const n=_g(e,t?.in),r=n.getFullYear(),o=n.getMonth(),i=Pg(n,0);return i.setFullYear(r,o+1,0),i.setHours(0,0,0,0),i.getDate()}(a);return r.setMonth(t,Math.min(i,s)),r}function Ip(e,t){const n=_g(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function Ap(e,t){const n=t.startOfMonth(e),r=n.getDay();return 1===r?n:0===r?t.addDays(n,-6):t.addDays(n,-1*(r-1))}class Op{constructor(e,t){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?Ug.tz(this.options.timeZone):new this.Date,this.newDate=(e,t,n)=>this.overrides?.newDate?this.overrides.newDate(e,t,n):this.options.timeZone?new Ug(e,t,n,this.options.timeZone):new Date(e,t,n),this.addDays=(e,t)=>this.overrides?.addDays?this.overrides.addDays(e,t):Fg(e,t),this.addMonths=(e,t)=>this.overrides?.addMonths?this.overrides.addMonths(e,t):Bg(e,t),this.addWeeks=(e,t)=>this.overrides?.addWeeks?this.overrides.addWeeks(e,t):function(e,t,n){return Fg(e,7*t,n)}(e,t),this.addYears=(e,t)=>this.overrides?.addYears?this.overrides.addYears(e,t):function(e,t,n){return Bg(e,12*t,n)}(e,t),this.differenceInCalendarDays=(e,t)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(e,t):Gg(e,t),this.differenceInCalendarMonths=(e,t)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(e,t):function(e,t,n){const[r,o]=Wg(n?.in,e,t);return 12*(r.getFullYear()-o.getFullYear())+(r.getMonth()-o.getMonth())}(e,t),this.eachMonthOfInterval=e=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(e):function(e,t){const{start:n,end:r}=function(e,t){const[n,r]=Wg(e,t.start,t.end);return{start:n,end:r}}(t?.in,e);let o=+n>+r;const i=o?+n:+r,a=o?r:n;a.setHours(0,0,0,0),a.setDate(1);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,o=!o);const l=[];for(;+a<=i;)l.push(Pg(n,a)),a.setMonth(a.getMonth()+s);return o?l.reverse():l}(e),this.endOfBroadcastWeek=e=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(e,this):function(e,t){const n=Ap(e,t),r=function(e,t){const n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,o=t.addDays(e,1-r),i=t.addDays(o,34);return t.getMonth(e)===t.getMonth(i)?5:4}(e,t);return t.addDays(n,7*r-1)}(e,this),this.endOfISOWeek=e=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(e):function(e,t){return Zg(e,{...t,weekStartsOn:1})}(e),this.endOfMonth=e=>this.overrides?.endOfMonth?this.overrides.endOfMonth(e):Kg(e),this.endOfWeek=e=>this.overrides?.endOfWeek?this.overrides.endOfWeek(e,this.options):Zg(e,this.options),this.endOfYear=e=>this.overrides?.endOfYear?this.overrides.endOfYear(e):function(e,t){const n=_g(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}(e),this.format=(e,t)=>{const n=this.overrides?.format?this.overrides.format(e,t,this.options):wp(e,t,this.options);return this.options.numerals&&"latn"!==this.options.numerals?this.replaceDigits(n):n},this.getISOWeek=e=>this.overrides?.getISOWeek?this.overrides.getISOWeek(e):np(e),this.getMonth=e=>this.overrides?.getMonth?this.overrides.getMonth(e,this.options):function(e,t){return _g(e,t?.in).getMonth()}(e,this.options),this.getYear=e=>this.overrides?.getYear?this.overrides.getYear(e,this.options):function(e,t){return _g(e,t?.in).getFullYear()}(e,this.options),this.getWeek=e=>this.overrides?.getWeek?this.overrides.getWeek(e,this.options):op(e,this.options),this.isAfter=(e,t)=>this.overrides?.isAfter?this.overrides.isAfter(e,t):bp(e,t),this.isBefore=(e,t)=>this.overrides?.isBefore?this.overrides.isBefore(e,t):jp(e,t),this.isDate=e=>this.overrides?.isDate?this.overrides.isDate(e):Mp(e),this.isSameDay=(e,t)=>this.overrides?.isSameDay?this.overrides.isSameDay(e,t):function(e,t,n){const[r,o]=Wg(n?.in,e,t);return+Hg(r)==+Hg(o)}(e,t),this.isSameMonth=(e,t)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(e,t):function(e,t,n){const[r,o]=Wg(n?.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}(e,t),this.isSameYear=(e,t)=>this.overrides?.isSameYear?this.overrides.isSameYear(e,t):function(e,t,n){const[r,o]=Wg(n?.in,e,t);return r.getFullYear()===o.getFullYear()}(e,t),this.max=e=>this.overrides?.max?this.overrides.max(e):function(e,t){let n,r=t?.in;return e.forEach((e=>{r||"object"!=typeof e||(r=Pg.bind(null,e));const t=_g(e,r);(!n||n<t||isNaN(+t))&&(n=t)})),Pg(r,n||NaN)}(e),this.min=e=>this.overrides?.min?this.overrides.min(e):function(e,t){let n,r=t?.in;return e.forEach((e=>{r||"object"!=typeof e||(r=Pg.bind(null,e));const t=_g(e,r);(!n||n>t||isNaN(+t))&&(n=t)})),Pg(r,n||NaN)}(e),this.setMonth=(e,t)=>this.overrides?.setMonth?this.overrides.setMonth(e,t):Ep(e,t),this.setYear=(e,t)=>this.overrides?.setYear?this.overrides.setYear(e,t):function(e,t,n){const r=_g(e,n?.in);return isNaN(+r)?Pg(n?.in||e,NaN):(r.setFullYear(t),r)}(e,t),this.startOfBroadcastWeek=e=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(e,this):Ap(e,this),this.startOfDay=e=>this.overrides?.startOfDay?this.overrides.startOfDay(e):Hg(e),this.startOfISOWeek=e=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(e):ep(e),this.startOfMonth=e=>this.overrides?.startOfMonth?this.overrides.startOfMonth(e):Ip(e),this.startOfWeek=e=>this.overrides?.startOfWeek?this.overrides.startOfWeek(e,this.options):Jg(e,this.options),this.startOfYear=e=>this.overrides?.startOfYear?this.overrides.startOfYear(e):Xg(e),this.options={locale:Eg,...e},this.overrides=t}getDigitMap(){const{numerals:e="latn"}=this.options,t=new Intl.NumberFormat("en-US",{numberingSystem:e}),n={};for(let e=0;e<10;e++)n[e.toString()]=t.format(e);return n}replaceDigits(e){const t=this.getDigitMap();return e.replace(/\d/g,(e=>t[e]||e))}formatNumber(e){return this.replaceDigits(e.toString())}}const kp=new Op;function zp(e){return d.createElement("button",{...e})}function Sp(e){return d.createElement("span",{...e})}function Lp(e){const{size:t=24,orientation:n="left",className:r}=e;return d.createElement("svg",{className:r,width:t,height:t,viewBox:"0 0 24 24"},"up"===n&&d.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),"down"===n&&d.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),"left"===n&&d.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),"right"===n&&d.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function Cp(e){const{day:t,modifiers:n,...r}=e;return d.createElement("td",{...r})}function Rp(e){const{day:t,modifiers:n,...r}=e,o=d.useRef(null);return d.useEffect((()=>{n.focused&&o.current?.focus()}),[n.focused]),d.createElement("button",{ref:o,...r})}function Up(e){const{options:t,className:n,components:r,classNames:o,...i}=e,a=[o[mg.Dropdown],n].join(" "),s=t?.find((({value:e})=>e===i.value));return d.createElement("span",{"data-disabled":i.disabled,className:o[mg.DropdownRoot]},d.createElement(r.Select,{className:a,...i},t?.map((({value:e,label:t,disabled:n})=>d.createElement(r.Option,{key:e,value:e,disabled:n},t)))),d.createElement("span",{className:o[mg.CaptionLabel],"aria-hidden":!0},s?.label,d.createElement(r.Chevron,{orientation:"down",size:18,className:o[mg.Chevron]})))}function Qp(e){return d.createElement("div",{...e})}function Yp(e){return d.createElement("div",{...e})}function Pp(e){const{calendarMonth:t,displayIndex:n,...r}=e;return d.createElement("div",{...r},e.children)}function _p(e){const{calendarMonth:t,displayIndex:n,...r}=e;return d.createElement("div",{...r})}function Fp(e){return d.createElement("table",{...e})}function Bp(e){return d.createElement("div",{...e})}function Vp(e){const{components:t}=hg();return d.createElement(t.Dropdown,{...e})}function Wp(e){const{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:o,...i}=e,{components:a,classNames:s,labels:{labelPrevious:l,labelNext:c}}=hg(),u=(0,d.useCallback)((e=>{o&&n?.(e)}),[o,n]),f=(0,d.useCallback)((e=>{r&&t?.(e)}),[r,t]);return d.createElement("nav",{...i},d.createElement(a.PreviousMonthButton,{type:"button",className:s[mg.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":!r||void 0,"aria-label":l(r),onClick:f},d.createElement(a.Chevron,{disabled:!r||void 0,className:s[mg.Chevron],orientation:"left"})),d.createElement(a.NextMonthButton,{type:"button",className:s[mg.NextMonthButton],tabIndex:o?void 0:-1,"aria-disabled":!o||void 0,"aria-label":c(o),onClick:u},d.createElement(a.Chevron,{disabled:!o||void 0,orientation:"right",className:s[mg.Chevron]})))}function Hp(e){const{components:t}=hg();return d.createElement(t.Button,{...e})}function Gp(e){return d.createElement("option",{...e})}function qp(e){const{components:t}=hg();return d.createElement(t.Button,{...e})}function $p(e){const{rootRef:t,...n}=e;return d.createElement("div",{...n,ref:t})}function Zp(e){return d.createElement("select",{...e})}function Kp(e){const{week:t,...n}=e;return d.createElement("tr",{...n})}function Xp(e){return d.createElement("th",{...e})}function Jp(e){return d.createElement("thead",{"aria-hidden":!0},d.createElement("tr",{...e}))}function eM(e){const{week:t,...n}=e;return d.createElement("th",{...n})}function tM(e){return d.createElement("th",{...e})}function nM(e){return d.createElement("tbody",{...e})}function rM(e){const{components:t}=hg();return d.createElement(t.Dropdown,{...e})}function oM(){const e={};for(const t in mg)e[mg[t]]=`rdp-${mg[t]}`;for(const t in gg)e[gg[t]]=`rdp-${gg[t]}`;for(const t in pg)e[pg[t]]=`rdp-${pg[t]}`;for(const t in Mg)e[Mg[t]]=`rdp-${Mg[t]}`;return e}function iM(e,t,n){return(n??new Op(t)).format(e,"LLLL y")}const aM=iM;function sM(e,t,n){return(n??new Op(t)).format(e,"d")}function lM(e,t=kp){return t.format(e,"LLLL")}function cM(e){return e<10?`0${e.toLocaleString()}`:`${e.toLocaleString()}`}function uM(){return""}function dM(e,t,n){return(n??new Op(t)).format(e,"cccccc")}function fM(e,t=kp){return t.format(e,"yyyy")}const hM=fM;function mM(e,t,n){return(n??new Op(t)).format(e,"LLLL y")}const gM=mM;function pM(e,t,n,r){let o=(r??new Op(n)).format(e,"PPPP");return t?.today&&(o=`Today, ${o}`),o}function MM(e,t,n,r){let o=(r??new Op(n)).format(e,"PPPP");return t.today&&(o=`Today, ${o}`),t.selected&&(o=`${o}, selected`),o}const yM=MM;function NM(){return""}function xM(e){return"Choose the Month"}function DM(e){return"Go to the Next Month"}function vM(e){return"Go to the Previous Month"}function wM(e,t,n){return(n??new Op(t)).format(e,"cccc")}function TM(e,t){return`Week ${e}`}function bM(e){return"Week Number"}function jM(e){return"Choose the Year"}const EM=e=>e instanceof HTMLElement?e:null,IM=e=>[...e.querySelectorAll("[data-animated-month]")??[]],AM=e=>EM(e.querySelector("[data-animated-caption]")),OM=e=>EM(e.querySelector("[data-animated-weeks]"));function kM(e,t){const{month:n,defaultMonth:r,today:o=t.today(),numberOfMonths:i=1,endMonth:a,startMonth:s,timeZone:l}=e;let c=n||r||o;const{differenceInCalendarMonths:u,addMonths:d,startOfMonth:f}=t;return a&&u(a,c)<0&&(c=d(a,-1*(i-1))),s&&u(c,s)<0&&(c=s),c=l?new Ug(c,l):c,f(c)}class zM{constructor(e,t,n=kp){this.date=e,this.displayMonth=t,this.outside=Boolean(t&&!n.isSameMonth(e,t)),this.dateLib=n}isEqualTo(e){return this.dateLib.isSameDay(e.date,this.date)&&this.dateLib.isSameMonth(e.displayMonth,this.displayMonth)}}class SM{constructor(e,t){this.days=t,this.weekNumber=e}}class LM{constructor(e,t){this.date=e,this.weeks=t}}function CM(e,t){const[n,r]=(0,d.useState)(e);return[void 0===t?n:t,r]}var RM;function UM(e){return!e[gg.disabled]&&!e[gg.hidden]&&!e[gg.outside]}function QM(e,t,n=!1,r=kp){let{from:o,to:i}=e;const{differenceInCalendarDays:a,isSameDay:s}=r;return o&&i?(a(i,o)<0&&([o,i]=[i,o]),a(t,o)>=(n?1:0)&&a(i,t)>=(n?1:0)):!n&&i?s(i,t):!(n||!o)&&s(o,t)}function YM(e){return Boolean(e&&"object"==typeof e&&"before"in e&&"after"in e)}function PM(e){return Boolean(e&&"object"==typeof e&&"from"in e)}function _M(e){return Boolean(e&&"object"==typeof e&&"after"in e)}function FM(e){return Boolean(e&&"object"==typeof e&&"before"in e)}function BM(e){return Boolean(e&&"object"==typeof e&&"dayOfWeek"in e)}function VM(e,t){return Array.isArray(e)&&e.every(t.isDate)}function WM(e,t,n=kp){const r=Array.isArray(t)?t:[t],{isSameDay:o,differenceInCalendarDays:i,isAfter:a}=n;return r.some((t=>{if("boolean"==typeof t)return t;if(n.isDate(t))return o(e,t);if(VM(t,n))return t.includes(e);if(PM(t))return QM(t,e,!1,n);if(BM(t))return Array.isArray(t.dayOfWeek)?t.dayOfWeek.includes(e.getDay()):t.dayOfWeek===e.getDay();if(YM(t)){const n=i(t.before,e)>0,r=i(t.after,e)<0;return a(t.before,t.after)?r&&n:n||r}return _M(t)?i(e,t.after)>0:FM(t)?i(t.before,e)>0:"function"==typeof t&&t(e)}))}function HM(e,t,n,r,o,i,a,s=0){if(s>365)return;const l=function(e,t,n,r,o,i,a){const{ISOWeek:s,broadcastCalendar:l}=i,{addDays:c,addMonths:u,addWeeks:d,addYears:f,endOfBroadcastWeek:h,endOfISOWeek:m,endOfWeek:g,max:p,min:M,startOfBroadcastWeek:y,startOfISOWeek:N,startOfWeek:x}=a;let D={day:c,week:d,month:u,year:f,startOfWeek:e=>l?y(e,a):s?N(e):x(e),endOfWeek:e=>l?h(e,a):s?m(e):g(e)}[e](n,"after"===t?1:-1);return"before"===t&&r?D=p([r,D]):"after"===t&&o&&(D=M([o,D])),D}(e,t,n.date,r,o,i,a),c=Boolean(i.disabled&&WM(l,i.disabled,a)),u=Boolean(i.hidden&&WM(l,i.hidden,a)),d=new zM(l,l,a);return c||u?HM(e,t,d,r,o,i,a,s+1):d}function GM(e,t,n,r,o){const{autoFocus:i}=e,[a,s]=(0,d.useState)(),l=function(e,t,n,r){let o,i=-1;for(const a of e){const e=t(a);UM(e)&&(e[gg.focused]&&i<RM.FocusedModifier?(o=a,i=RM.FocusedModifier):r?.isEqualTo(a)&&i<RM.LastFocused?(o=a,i=RM.LastFocused):n(a.date)&&i<RM.Selected?(o=a,i=RM.Selected):e[gg.today]&&i<RM.Today&&(o=a,i=RM.Today))}return o||(o=e.find((e=>UM(t(e))))),o}(t.days,n,r||(()=>!1),a),[c,u]=(0,d.useState)(i?l:void 0);return{isFocusTarget:e=>Boolean(l?.isEqualTo(e)),setFocused:u,focused:c,blur:()=>{s(c),u(void 0)},moveFocus:(n,r)=>{if(!c)return;const i=HM(n,r,c,t.navStart,t.navEnd,e,o);i&&(t.goToDay(i),u(i))}}}function qM(e,t,n=kp){return QM(e,t.from,!1,n)||QM(e,t.to,!1,n)||QM(t,e.from,!1,n)||QM(t,e.to,!1,n)}function $M(e,t){const{disabled:n,excludeDisabled:r,selected:o,required:i,onSelect:a}=e,[s,l]=CM(o,a?o:void 0),c=a?o:s;return{selected:c,select:(o,s,u)=>{const{min:d,max:f}=e,h=o?function(e,t,n=0,r=0,o=!1,i=kp){const{from:a,to:s}=t||{},{isSameDay:l,isAfter:c,isBefore:u}=i;let d;if(a||s){if(a&&!s)d=l(a,e)?o?{from:a,to:void 0}:void 0:u(e,a)?{from:e,to:a}:{from:a,to:e};else if(a&&s)if(l(a,e)&&l(s,e))d=o?{from:a,to:s}:void 0;else if(l(a,e))d={from:a,to:n>0?void 0:e};else if(l(s,e))d={from:e,to:n>0?void 0:e};else if(u(e,a))d={from:e,to:s};else if(c(e,a))d={from:a,to:e};else{if(!c(e,s))throw new Error("Invalid range");d={from:a,to:e}}}else d={from:e,to:n>0?void 0:e};if(d?.from&&d?.to){const t=i.differenceInCalendarDays(d.to,d.from);(r>0&&t>r||n>1&&t<n)&&(d={from:e,to:void 0})}return d}(o,c,d,f,i,t):void 0;return r&&n&&h?.from&&h.to&&function(e,t,n=kp){const r=Array.isArray(t)?t:[t],o=r.filter((e=>"function"!=typeof e)).some((t=>"boolean"==typeof t?t:n.isDate(t)?QM(e,t,!1,n):VM(t,n)?t.some((t=>QM(e,t,!1,n))):PM(t)?!(!t.from||!t.to)&&qM(e,{from:t.from,to:t.to},n):BM(t)?function(e,t,n=kp){const r=Array.isArray(t)?t:[t];let o=e.from;const i=n.differenceInCalendarDays(e.to,e.from),a=Math.min(i,6);for(let e=0;e<=a;e++){if(r.includes(o.getDay()))return!0;o=n.addDays(o,1)}return!1}(e,t.dayOfWeek,n):YM(t)?n.isAfter(t.before,t.after)?qM(e,{from:n.addDays(t.after,1),to:n.addDays(t.before,-1)},n):WM(e.from,t,n)||WM(e.to,t,n):!(!_M(t)&&!FM(t))&&(WM(e.from,t,n)||WM(e.to,t,n))));if(o)return!0;const i=r.filter((e=>"function"==typeof e));if(i.length){let t=e.from;const r=n.differenceInCalendarDays(e.to,e.from);for(let e=0;e<=r;e++){if(i.some((e=>e(t))))return!0;t=n.addDays(t,1)}}return!1}({from:h.from,to:h.to},n,t)&&(h.from=o,h.to=void 0),a||l(h),a?.(h,o,s,u),h},isSelected:e=>c&&QM(c,e,!1,t)}}function ZM(r){const{components:o,formatters:i,labels:a,dateLib:s,locale:l,classNames:c}=(0,d.useMemo)((()=>{const o={...Eg,...r.locale};return{dateLib:new Op({locale:o,weekStartsOn:r.broadcastCalendar?1:r.weekStartsOn,firstWeekContainsDate:r.firstWeekContainsDate,useAdditionalWeekYearTokens:r.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:r.useAdditionalDayOfYearTokens,timeZone:r.timeZone,numerals:r.numerals},r.dateLib),components:(a=r.components,{...e,...a}),formatters:(i=r.formatters,i?.formatMonthCaption&&!i.formatCaption&&(i.formatCaption=i.formatMonthCaption),i?.formatYearCaption&&!i.formatYearDropdown&&(i.formatYearDropdown=i.formatYearCaption),{...t,...i}),labels:{...n,...r.labels},locale:o,classNames:{...oM(),...r.classNames}};var i,a}),[r.locale,r.broadcastCalendar,r.weekStartsOn,r.firstWeekContainsDate,r.useAdditionalWeekYearTokens,r.useAdditionalDayOfYearTokens,r.timeZone,r.numerals,r.dateLib,r.components,r.formatters,r.labels,r.classNames]),{captionLayout:u,mode:f,onDayBlur:h,onDayClick:m,onDayFocus:g,onDayKeyDown:p,onDayMouseEnter:M,onDayMouseLeave:y,onNextClick:N,onPrevClick:x,showWeekNumber:D,styles:v}=r,{formatCaption:w,formatDay:T,formatMonthDropdown:b,formatWeekNumber:j,formatWeekNumberHeader:E,formatWeekdayName:I,formatYearDropdown:A}=i,O=function(e,t){const[n,r]=function(e,t){let{startMonth:n,endMonth:r}=e;const{startOfYear:o,startOfDay:i,startOfMonth:a,endOfMonth:s,addYears:l,endOfYear:c,newDate:u,today:d}=t,{fromYear:f,toYear:h,fromMonth:m,toMonth:g}=e;!n&&m&&(n=m),!n&&f&&(n=t.newDate(f,0,1)),!r&&g&&(r=g),!r&&h&&(r=u(h,11,31));const p="dropdown"===e.captionLayout||"dropdown-years"===e.captionLayout;return n?n=a(n):f?n=u(f,0,1):!n&&p&&(n=o(l(e.today??d(),-100))),r?r=s(r):h?r=u(h,11,31):!r&&p&&(r=c(e.today??d())),[n?i(n):n,r?i(r):r]}(e,t),{startOfMonth:o,endOfMonth:i}=t,a=kM(e,t),[s,l]=CM(a,e.month?a:void 0);(0,d.useEffect)((()=>{const n=kM(e,t);l(n)}),[e.timeZone]);const c=function(e,t,n,r){const{numberOfMonths:o=1}=n,i=[];for(let n=0;n<o;n++){const o=r.addMonths(e,n);if(t&&o>t)break;i.push(o)}return i}(s,r,e,t),u=function(e,t,n,r){const o=e[0],i=e[e.length-1],{ISOWeek:a,fixedWeeks:s,broadcastCalendar:l}=n??{},{addDays:c,differenceInCalendarDays:u,differenceInCalendarMonths:d,endOfBroadcastWeek:f,endOfISOWeek:h,endOfMonth:m,endOfWeek:g,isAfter:p,startOfBroadcastWeek:M,startOfISOWeek:y,startOfWeek:N}=r,x=l?M(o,r):a?y(o):N(o),D=u(l?f(i,r):a?h(m(i)):g(m(i)),x),v=d(i,o)+1,w=[];for(let e=0;e<=D;e++){const n=c(x,e);if(t&&p(n,t))break;w.push(n)}const T=(l?35:42)*v;if(s&&w.length<T){const e=T-w.length;for(let t=0;t<e;t++){const e=c(w[w.length-1],1);w.push(e)}}return w}(c,e.endMonth?i(e.endMonth):void 0,e,t),f=function(e,t,n,r){const{addDays:o,endOfBroadcastWeek:i,endOfISOWeek:a,endOfMonth:s,endOfWeek:l,getISOWeek:c,getWeek:u,startOfBroadcastWeek:d,startOfISOWeek:f,startOfWeek:h}=r,m=e.reduce(((e,m)=>{const g=n.broadcastCalendar?d(m,r):n.ISOWeek?f(m):h(m),p=n.broadcastCalendar?i(m,r):n.ISOWeek?a(s(m)):l(s(m)),M=t.filter((e=>e>=g&&e<=p)),y=n.broadcastCalendar?35:42;if(n.fixedWeeks&&M.length<y){const e=t.filter((e=>{const t=y-M.length;return e>p&&e<=o(p,t)}));M.push(...e)}const N=M.reduce(((e,t)=>{const o=n.ISOWeek?c(t):u(t),i=e.find((e=>e.weekNumber===o)),a=new zM(t,m,r);return i?i.days.push(a):e.push(new SM(o,[a])),e}),[]),x=new LM(m,N);return e.push(x),e}),[]);return n.reverseMonths?m.reverse():m}(c,u,e,t),h=function(e){return e.reduce(((e,t)=>[...e,...t.weeks]),[])}(f),m=f.reduce(((e,t)=>[...e,...t.weeks.reduce(((e,t)=>[...e,...t.days]),[])]),[]),g=function(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:i}=n,{startOfMonth:a,addMonths:s,differenceInCalendarMonths:l}=r,c=o?i??1:1,u=a(e);return t&&l(u,t)<=0?void 0:s(u,-c)}(s,n,e,t),p=function(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:i=1}=n,{startOfMonth:a,addMonths:s,differenceInCalendarMonths:l}=r,c=o?i:1,u=a(e);return t&&l(t,e)<i?void 0:s(u,c)}(s,r,e,t),{disableNavigation:M,onMonthChange:y}=e,N=e=>{if(M)return;let t=o(e);n&&t<o(n)&&(t=o(n)),r&&t>o(r)&&(t=o(r)),l(t),y?.(t)};return{months:f,weeks:h,days:m,navStart:n,navEnd:r,previousMonth:g,nextMonth:p,goToMonth:N,goToDay:e=>{(e=>h.some((t=>t.days.some((t=>t.isEqualTo(e))))))(e)||N(e.date)}}}(r,s),{days:k,months:z,navStart:S,navEnd:L,previousMonth:C,nextMonth:R,goToMonth:U}=O,Q=function(e,t,n){const{disabled:r,hidden:o,modifiers:i,showOutsideDays:a,broadcastCalendar:s,today:l}=t,{isSameDay:c,isSameMonth:u,startOfMonth:d,isBefore:f,endOfMonth:h,isAfter:m}=n,g=t.startMonth&&d(t.startMonth),p=t.endMonth&&h(t.endMonth),M={[gg.focused]:[],[gg.outside]:[],[gg.disabled]:[],[gg.hidden]:[],[gg.today]:[]},y={};for(const t of e){const{date:e,displayMonth:d}=t,h=Boolean(d&&!u(e,d)),N=Boolean(g&&f(e,g)),x=Boolean(p&&m(e,p)),D=Boolean(r&&WM(e,r,n)),v=Boolean(o&&WM(e,o,n))||N||x||!s&&!a&&h||s&&!1===a&&h,w=c(e,l??n.today());h&&M.outside.push(t),D&&M.disabled.push(t),v&&M.hidden.push(t),w&&M.today.push(t),i&&Object.keys(i).forEach((r=>{const o=i?.[r];o&&WM(e,o,n)&&(y[r]?y[r].push(t):y[r]=[t])}))}return e=>{const t={[gg.focused]:!1,[gg.disabled]:!1,[gg.hidden]:!1,[gg.outside]:!1,[gg.today]:!1},n={};for(const n in M){const r=M[n];t[n]=r.some((t=>t===e))}for(const t in y)n[t]=y[t].some((t=>t===e));return{...t,...n}}}(k,r,s),{isSelected:Y,select:P,selected:_}=function(e,t){const n=function(e,t){const{selected:n,required:r,onSelect:o}=e,[i,a]=CM(n,o?n:void 0),s=o?n:i,{isSameDay:l}=t;return{selected:s,select:(e,t,n)=>{let i=e;return!r&&s&&s&&l(e,s)&&(i=void 0),o||a(i),o?.(i,e,t,n),i},isSelected:e=>!!s&&l(s,e)}}(e,t),r=function(e,t){const{selected:n,required:r,onSelect:o}=e,[i,a]=CM(n,o?n:void 0),s=o?n:i,{isSameDay:l}=t,c=e=>s?.some((t=>l(t,e)))??!1,{min:u,max:d}=e;return{selected:s,select:(e,t,n)=>{let i=[...s??[]];if(c(e)){if(s?.length===u)return;if(r&&1===s?.length)return;i=s?.filter((t=>!l(t,e)))}else i=s?.length===d?[e]:[...i,e];return o||a(i),o?.(i,e,t,n),i},isSelected:c}}(e,t),o=$M(e,t);switch(e.mode){case"single":return n;case"multiple":return r;case"range":return o;default:return}}(r,s)??{},{blur:F,focused:B,isFocusTarget:V,moveFocus:W,setFocused:H}=GM(r,O,Q,Y??(()=>!1),s),{labelDayButton:G,labelGridcell:q,labelGrid:$,labelMonthDropdown:Z,labelNav:K,labelWeekday:X,labelWeekNumber:J,labelWeekNumberHeader:ee,labelYearDropdown:te}=a,ne=(0,d.useMemo)((()=>function(e,t){const n=e.today(),r=t?e.startOfISOWeek(n):e.startOfWeek(n),o=[];for(let t=0;t<7;t++){const n=e.addDays(r,t);o.push(n)}return o}(s,r.ISOWeek)),[s,r.ISOWeek]),re=void 0!==f||void 0!==m,oe=(0,d.useCallback)((()=>{C&&(U(C),x?.(C))}),[C,U,x]),ie=(0,d.useCallback)((()=>{R&&(U(R),N?.(R))}),[U,R,N]),ae=(0,d.useCallback)(((e,t)=>n=>{n.preventDefault(),n.stopPropagation(),H(e),P?.(e.date,t,n),m?.(e.date,t,n)}),[P,m,H]),se=(0,d.useCallback)(((e,t)=>n=>{H(e),g?.(e.date,t,n)}),[g,H]),le=(0,d.useCallback)(((e,t)=>n=>{F(),h?.(e.date,t,n)}),[F,h]),ce=(0,d.useCallback)(((e,t)=>n=>{const o={ArrowLeft:["day","rtl"===r.dir?"after":"before"],ArrowRight:["day","rtl"===r.dir?"before":"after"],ArrowDown:["week","after"],ArrowUp:["week","before"],PageUp:[n.shiftKey?"year":"month","before"],PageDown:[n.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(o[n.key]){n.preventDefault(),n.stopPropagation();const[e,t]=o[n.key];W(e,t)}p?.(e.date,t,n)}),[W,p,r.dir]),ue=(0,d.useCallback)(((e,t)=>n=>{M?.(e.date,t,n)}),[M]),de=(0,d.useCallback)(((e,t)=>n=>{y?.(e.date,t,n)}),[y]),fe=(0,d.useCallback)((e=>t=>{const n=Number(t.target.value),r=s.setMonth(s.startOfMonth(e),n);U(r)}),[s,U]),he=(0,d.useCallback)((e=>t=>{const n=Number(t.target.value),r=s.setYear(s.startOfMonth(e),n);U(r)}),[s,U]),{className:me,style:ge}=(0,d.useMemo)((()=>({className:[c[mg.Root],r.className].filter(Boolean).join(" "),style:{...v?.[mg.Root],...r.style}})),[c,r.className,r.style,v]),pe=function(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0};return Object.entries(e).forEach((([e,n])=>{e.startsWith("data-")&&(t[e]=n)})),t}(r),Me=(0,d.useRef)(null);!function(e,t,{classNames:n,months:r,focused:o,dateLib:i}){const a=(0,d.useRef)(null),s=(0,d.useRef)(r),l=(0,d.useRef)(!1);(0,d.useLayoutEffect)((()=>{const c=s.current;if(s.current=r,!(t&&e.current&&e.current instanceof HTMLElement&&0!==r.length&&0!==c.length&&r.length===c.length))return;const u=i.isSameMonth(r[0].date,c[0].date),d=i.isAfter(r[0].date,c[0].date),f=d?n[Mg.caption_after_enter]:n[Mg.caption_before_enter],h=d?n[Mg.weeks_after_enter]:n[Mg.weeks_before_enter],m=a.current,g=e.current.cloneNode(!0);if(g instanceof HTMLElement?(IM(g).forEach((e=>{if(!(e instanceof HTMLElement))return;const t=EM(e.querySelector("[data-animated-month]"));t&&e.contains(t)&&e.removeChild(t);const n=AM(e);n&&n.classList.remove(f);const r=OM(e);r&&r.classList.remove(h)})),a.current=g):a.current=null,l.current||u||o)return;const p=m instanceof HTMLElement?IM(m):[],M=IM(e.current);if(M&&M.every((e=>e instanceof HTMLElement))&&p&&p.every((e=>e instanceof HTMLElement))){l.current=!0;const t=[];e.current.style.isolation="isolate";const r=(y=e.current,EM(y.querySelector("[data-animated-nav]")));r&&(r.style.zIndex="1"),M.forEach(((o,i)=>{const a=p[i];if(!a)return;o.style.position="relative",o.style.overflow="hidden";const s=AM(o);s&&s.classList.add(f);const c=OM(o);c&&c.classList.add(h);const u=()=>{l.current=!1,e.current&&(e.current.style.isolation=""),r&&(r.style.zIndex=""),s&&s.classList.remove(f),c&&c.classList.remove(h),o.style.position="",o.style.overflow="",o.contains(a)&&o.removeChild(a)};t.push(u),a.style.pointerEvents="none",a.style.position="absolute",a.style.overflow="hidden",a.setAttribute("aria-hidden","true");const m=(e=>EM(e.querySelector("[data-animated-weekdays]")))(a);m&&(m.style.opacity="0");const g=AM(a);g&&(g.classList.add(d?n[Mg.caption_before_exit]:n[Mg.caption_after_exit]),g.addEventListener("animationend",u));const M=OM(a);M&&M.classList.add(d?n[Mg.weeks_before_exit]:n[Mg.weeks_after_exit]),o.insertBefore(a,o.firstChild)}))}var y}))}(Me,Boolean(r.animate),{classNames:c,months:z,focused:B,dateLib:s});const ye={dayPickerProps:r,selected:_,select:P,isSelected:Y,months:z,nextMonth:R,previousMonth:C,goToMonth:U,getModifiers:Q,components:o,classNames:c,styles:v,labels:a,formatters:i};return d.createElement(fg.Provider,{value:ye},d.createElement(o.Root,{rootRef:r.animate?Me:void 0,className:me,style:ge,dir:r.dir,id:r.id,lang:r.lang,nonce:r.nonce,title:r.title,role:r.role,"aria-label":r["aria-label"],...pe},d.createElement(o.Months,{className:c[mg.Months],style:v?.[mg.Months]},!r.hideNavigation&&d.createElement(o.Nav,{"data-animated-nav":r.animate?"true":void 0,className:c[mg.Nav],style:v?.[mg.Nav],"aria-label":K(),onPreviousClick:oe,onNextClick:ie,previousMonth:C,nextMonth:R}),z.map(((e,t)=>{const n=function(e,t,n,r,o){const{startOfMonth:i,startOfYear:a,endOfYear:s,eachMonthOfInterval:l,getMonth:c}=o;return l({start:a(e),end:s(e)}).map((e=>{const a=r.formatMonthDropdown(e,o);return{value:c(e),label:a,disabled:t&&e<i(t)||n&&e>i(n)||!1}}))}(e.date,S,L,i,s),a=function(e,t,n,r){if(!e)return;if(!t)return;const{startOfYear:o,endOfYear:i,addYears:a,getYear:s,isBefore:l,isSameYear:c}=r,u=o(e),d=i(t),f=[];let h=u;for(;l(h,d)||c(h,d);)f.push(h),h=a(h,1);return f.map((e=>{const t=n.formatYearDropdown(e,r);return{value:s(e),label:t,disabled:!1}}))}(S,L,i,s);return d.createElement(o.Month,{"data-animated-month":r.animate?"true":void 0,className:c[mg.Month],style:v?.[mg.Month],key:t,displayIndex:t,calendarMonth:e},d.createElement(o.MonthCaption,{"data-animated-caption":r.animate?"true":void 0,className:c[mg.MonthCaption],style:v?.[mg.MonthCaption],calendarMonth:e,displayIndex:t},u?.startsWith("dropdown")?d.createElement(o.DropdownNav,{className:c[mg.Dropdowns],style:v?.[mg.Dropdowns]},"dropdown"===u||"dropdown-months"===u?d.createElement(o.MonthsDropdown,{className:c[mg.MonthsDropdown],"aria-label":Z(),classNames:c,components:o,disabled:Boolean(r.disableNavigation),onChange:fe(e.date),options:n,style:v?.[mg.Dropdown],value:s.getMonth(e.date)}):d.createElement("span",null,b(e.date,s)),"dropdown"===u||"dropdown-years"===u?d.createElement(o.YearsDropdown,{className:c[mg.YearsDropdown],"aria-label":te(s.options),classNames:c,components:o,disabled:Boolean(r.disableNavigation),onChange:he(e.date),options:a,style:v?.[mg.Dropdown],value:s.getYear(e.date)}):d.createElement("span",null,A(e.date,s)),d.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},w(e.date,s.options,s))):d.createElement(o.CaptionLabel,{className:c[mg.CaptionLabel],role:"status","aria-live":"polite"},w(e.date,s.options,s))),d.createElement(o.MonthGrid,{role:"grid","aria-multiselectable":"multiple"===f||"range"===f,"aria-label":$(e.date,s.options,s)||void 0,className:c[mg.MonthGrid],style:v?.[mg.MonthGrid]},!r.hideWeekdays&&d.createElement(o.Weekdays,{"data-animated-weekdays":r.animate?"true":void 0,className:c[mg.Weekdays],style:v?.[mg.Weekdays]},D&&d.createElement(o.WeekNumberHeader,{"aria-label":ee(s.options),className:c[mg.WeekNumberHeader],style:v?.[mg.WeekNumberHeader],scope:"col"},E()),ne.map(((e,t)=>d.createElement(o.Weekday,{"aria-label":X(e,s.options,s),className:c[mg.Weekday],key:t,style:v?.[mg.Weekday],scope:"col"},I(e,s.options,s))))),d.createElement(o.Weeks,{"data-animated-weeks":r.animate?"true":void 0,className:c[mg.Weeks],style:v?.[mg.Weeks]},e.weeks.map(((e,t)=>d.createElement(o.Week,{className:c[mg.Week],key:e.weekNumber,style:v?.[mg.Week],week:e},D&&d.createElement(o.WeekNumber,{week:e,style:v?.[mg.WeekNumber],"aria-label":J(e.weekNumber,{locale:l}),className:c[mg.WeekNumber],scope:"row",role:"rowheader"},j(e.weekNumber)),e.days.map((e=>{const{date:t}=e,n=Q(e);if(n[gg.focused]=!n.hidden&&Boolean(B?.isEqualTo(e)),n[pg.selected]=Y?.(t)||n.selected,PM(_)){const{from:e,to:r}=_;n[pg.range_start]=Boolean(e&&r&&s.isSameDay(t,e)),n[pg.range_end]=Boolean(e&&r&&s.isSameDay(t,r)),n[pg.range_middle]=QM(_,t,!0,s)}const i=function(e,t={},n={}){let r={...t?.[mg.Day]};return Object.entries(e).filter((([,e])=>!0===e)).forEach((([e])=>{r={...r,...n?.[e]}})),r}(n,v,r.modifiersStyles),a=function(e,t,n={}){return Object.entries(e).filter((([,e])=>!0===e)).reduce(((e,[r])=>(n[r]?e.push(n[r]):t[gg[r]]?e.push(t[gg[r]]):t[pg[r]]&&e.push(t[pg[r]]),e)),[t[mg.Day]])}(n,c,r.modifiersClassNames),l=re||n.hidden?void 0:q(t,n,s.options,s);return d.createElement(o.Day,{key:`${s.format(t,"yyyy-MM-dd")}_${s.format(e.displayMonth,"yyyy-MM")}`,day:e,modifiers:n,className:a.join(" "),style:i,role:"gridcell","aria-selected":n.selected||void 0,"aria-label":l,"data-day":s.format(t,"yyyy-MM-dd"),"data-month":e.outside?s.format(t,"yyyy-MM"):void 0,"data-selected":n.selected||void 0,"data-disabled":n.disabled||void 0,"data-hidden":n.hidden||void 0,"data-outside":e.outside||void 0,"data-focused":n.focused||void 0,"data-today":n.today||void 0},!n.hidden&&re?d.createElement(o.DayButton,{className:c[mg.DayButton],style:v?.[mg.DayButton],type:"button",day:e,modifiers:n,disabled:n.disabled||void 0,tabIndex:V(e)?0:-1,"aria-label":G(t,n,s.options,s),onClick:ae(e,n),onBlur:le(e,n),onFocus:se(e,n),onKeyDown:ce(e,n),onMouseEnter:ue(e,n),onMouseLeave:de(e,n)},T(t,s.options,s)):!n.hidden&&T(e.date,s.options,s))}))))))))}))),r.footer&&d.createElement(o.Footer,{className:c[mg.Footer],style:v?.[mg.Footer],role:"status","aria-live":"polite"},r.footer)))}function KM(e,t){return+_g(e)==+_g(t)}!function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"}(RM||(RM={}));const XM=()=>(0,u.jsx)("span",{className:"bg-icon-interactive h-1 w-1 absolute rounded-full inline-block bottom-0 left-1/2 right-1/2"}),JM=e=>wp(e,"E").slice(0,1),ey=(e,t=24)=>Array.from({length:t},((t,n)=>e+n)),ty=e=>"multiple"===e?[]:"range"===e?{from:void 0,to:void 0}:void 0,ny=({width:e,className:t,classNames:n,selectedDates:r,setSelectedDates:o,showOutsideDays:i=!0,mode:a="single",variant:s="normal",alignment:l="horizontal",numberOfMonths:c,disabled:f,...h})=>{const m=d.isValidElement(h.footer)||"function"==typeof h.footer,[g,p]=(0,d.useState)(!1),[M,y]=(0,d.useState)(!1),[N,x]=(0,d.useState)((new Date).getFullYear()),[D,v]=(0,d.useState)(N-N%24);void 0===r&&(r="multiple"===a?[]:"range"===a?{from:void 0,to:void 0}:void 0);const w=({weekdays:e})=>(0,u.jsx)("div",{className:"flex justify-between",children:e.map(((e,t)=>(0,u.jsx)("button",{className:"h-10 w-10 px-1.5 py-2 text-center text-text-secondary text-sm font-normal content-center bg-transparent border-none shrink-0",children:e},t)))}),T=e=>(0,u.jsx)("div",{className:"flex flex-col bsf-force-ui-month-weeks",children:e.children[1].props.children.map(((e,t)=>(0,u.jsx)("div",{className:"flex flex-row justify-between",children:e},t)))}),b=me("relative bg-background-primary shadow-datepicker-wrapper",e,"vertical"===l?"flex flex-col":"flex flex-row gap-3","normal"===s?"rounded-tr-md rounded-tl-md border border-solid border-border-subtle":"","presets"===s?"rounded-tr-md border border-solid border-border-subtle":"","dualdate"===s?"rounded-tr-md rounded-tl-md border border-solid border-border-subtle":"",m?"rounded-b-none":"rounded-bl-md rounded-br-md");return(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(ZM,{mode:a,selected:r,onSelect:(e,t)=>{if("range"===a){const n=r;if(!n?.from&&!n?.to||n?.from&&n?.to)return n.from&&KM(t,n?.from)||n.to&&KM(t,n?.to)?void o({from:void 0,to:void 0}):void o({from:t,to:void 0});if(n?.from&&!n?.to)return t<n.from?void o({from:t,to:n.from}):void o({from:n.from,to:t});o(e)}else"multiple"===a?r.some((e=>wp(e,"yyyy-MM-dd")===wp(t,"yyyy-MM-dd")))?o(r.filter((e=>wp(e,"yyyy-MM-dd")!==wp(t,"yyyy-MM-dd")))):o([...r,t]):"single"===a&&o(e)},hideNavigation:!0,captionLayout:"label",className:me(t),formatters:{formatWeekdayName:JM},classNames:{months:b,month:"flex flex-col p-2 gap-1 text-center w-full",caption:"relative flex justify-center items-center",table:"w-full border-separate border-spacing-0",head_row:"flex mb-1",head_cell:"text-muted-foreground rounded-md w-10 font-normal text-sm",row:"flex w-full mt-2",cell:"h-10 w-10 text-center text-sm p-0 relative",...n},numberOfMonths:c,showOutsideDays:!0,components:{MonthCaption:function(e){const{goToMonth:t,nextMonth:n,previousMonth:r}=hg(),o=wp(e.calendarMonth.date,"yyyy"),i=wp(e.calendarMonth.date,"MMMM"),a=new Date(e.calendarMonth.date);a.setDate(a.getDate()-a.getDay());const s=Array.from({length:7},((e,t)=>{const n=new Date(a);return n.setDate(a.getDate()+t),JM(n)}));let l;return l=M?`${D} - ${D+23}`:g?o:`${i} ${o}`,(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{className:"flex justify-between",children:[(0,u.jsx)(De,{variant:"ghost",onClick:()=>{if(M)v(D-24);else if(g){const n=new Date(N-1,e.calendarMonth.date.getMonth());x(n.getFullYear()),t(n)}else t(r)},className:"bg-background-primary border-none cursor-pointer","aria-label":"Previous Button",icon:(0,u.jsx)(ug,{className:"h-4 w-4 text-button-tertiary-color"})}),(0,u.jsx)(De,{variant:"ghost",onClick:()=>{c>1||(g?(y(!0),p(!1)):M?y(!1):p(!g))},children:l}),(0,u.jsx)(De,{variant:"ghost",onClick:()=>{if(M)v(D+24);else if(g){const n=new Date(N+1,e.calendarMonth.date.getMonth());x(n.getFullYear()),t(n)}else t(n)},className:"bg-background-primary border-none cursor-pointer","aria-label":"Next Button",icon:(0,u.jsx)(dg,{className:"h-4 w-4 text-button-tertiary-color"})})]}),M&&(0,u.jsx)("div",{className:"grid grid-cols-4 w-full",children:ey(D).map((n=>(0,u.jsxs)(De,{variant:"ghost",onClick:()=>(n=>{x(n),y(!1),p(!0),t(new Date(n,e.calendarMonth.date.getMonth()))})(n),className:me("h-10 w-full text-center font-normal relative",n===N&&n!==(new Date).getFullYear()&&"bg-background-brand text-text-on-color hover:bg-background-brand hover:text-black",n===(new Date).getFullYear()&&"font-semibold"),children:[n,n===(new Date).getFullYear()&&XM()]},n)))}),g&&!M&&(0,u.jsx)("div",{className:"grid grid-cols-4 gap-2 my-12",children:Array.from({length:12},((n,r)=>(0,u.jsxs)(De,{variant:"ghost",onClick:()=>{p(!1),t(new Date(N,r))},className:me("px-1.5 py-2 h-10 w-[4.375rem] text-center font-normal relative",r===e.calendarMonth.date.getMonth()&&r!==(new Date).getMonth()&&N===e.calendarMonth.date.getFullYear()&&e.calendarMonth.date.getFullYear()!==(new Date).getFullYear()&&"bg-background-brand text-text-on-color hover:bg-background-brand hover:text-black",r===(new Date).getMonth()&&(new Date).getFullYear()===N&&"font-semibold"),children:[wp(new Date(0,r),"MMM"),(new Date).getMonth()===r&&(new Date).getFullYear()===N&&XM()]},r)))}),!g&&!M&&(0,u.jsx)(w,{weekdays:s})]})},DayButton:({day:e,modifiers:t,...n})=>{const{selected:o,today:a,disabled:s,outside:l,range_middle:c,range_start:d,range_end:f}=t,h=d||f||c,m=new Date,g=r?.to,p=wp(e.displayMonth,"yyyy-MM")===wp(m,"yyyy-MM"),M=g&&wp(g,"yyyy-MM")===wp(e.date,"yyyy-MM"),y=Bg(m,-1,w),N=wp(e.date,"yyyy-MM")===wp(y,"yyyy-MM"),x=p||M||h,D=!i&&l,v=me("h-10 w-10 flex items-center justify-center transition text-text-secondary relative text-sm","border-none rounded",!o&&!h||l?"bg-transparent hover:bg-button-tertiary-hover":"bg-background-brand text-text-on-color",c&&x&&!l?"bg-brand-background-50 text-text-secondary rounded-none":"",s?"opacity-50 cursor-not-allowed text-text-disabled":"cursor-pointer",l&&!h||!x&&l||l&&!N||l?"bg-transparent opacity-50 text-text-disabled cursor-auto":"");var w;return(0,u.jsxs)("button",{className:me(v,a&&"font-semibold",D&&"opacity-0",d&&"fui-range-start",f&&"fui-range-end",c&&"fui-range-middle",{"[&:is([data-hover=true])]:bg-brand-background-50 [&:is([data-hover=true])]:rounded-none":!h&&!o}),disabled:s||l,onClick:e=>{"function"==typeof n.onClick&&n.onClick(e)},onMouseEnter:e=>{"function"==typeof n.onMouseEnter&&n.onMouseEnter(e),e.currentTarget.setAttribute("data-hover","true")},onMouseLeave:e=>{"function"==typeof n.onMouseLeave&&n.onMouseLeave(e),e.currentTarget.setAttribute("data-hover","false")},"aria-label":wp(e.date,"EEEE, MMMM do, yyyy"),"data-selected":o,"data-day":wp(e.date,"yyyy-MM-dd"),children:[n.children,a&&x&&(0,u.jsx)("span",{className:"absolute h-1 w-1 bg-background-brand rounded-full bottom-1"})]})},Day:e=>{const t=Object.entries(e).reduce(((e,[t,n])=>(t.startsWith("data-")&&(e[t]=n),e)),{});return(0,u.jsx)("div",{...t,className:me(e.className,"inline-flex"),children:e.children})},Weekdays:()=>(0,u.jsx)(u.Fragment,{}),Week:e=>(0,u.jsx)("div",{className:me("bsf-force-ui-month-week flex flex-row",e.className),children:e.children}),Months:e=>(0,u.jsx)(u.Fragment,{children:(0,u.jsx)("div",{className:me("bsf-force-ui-date-picker-month",b),children:e?.children?.map(((e,t)=>e?(0,u.jsx)(d.Fragment,{children:e.map(((e,t)=>(0,u.jsxs)(d.Fragment,{children:[t>0&&(0,u.jsx)("div",{className:"border border-solid border-border-subtle border-l-0"}),e]},t)))},t):null))})}),MonthGrid:e=>g||M?(0,u.jsx)(u.Fragment,{}):(0,u.jsx)(T,{...e})},..."range"===a?{required:!1}:{},...h,onDayMouseEnter:(e,t,n)=>{if("range"!==a)return;const o=r;if(o?.from&&o?.to||!o?.from&&!o?.to)return void Array.from(document.querySelectorAll("[data-hover]")).forEach((e=>{e.setAttribute("data-hover","false")}));const i=n.target,l=new Date(i.dataset.day),c=jp(l,o.from),u=bp(l,o.to);let d;switch(s){case"dualdate":case"presets":d=i.closest(".bsf-force-ui-date-picker-month");break;default:d=i.closest(".bsf-force-ui-month-weeks")}const f=Array.from(d.querySelectorAll("button"));u&&f.sort(((e,t)=>bp(new Date(e.dataset.day),new Date(t.dataset.day))?-1:1)),c&&f.sort(((e,t)=>jp(new Date(e.dataset.day),new Date(t.dataset.day))?1:-1));const h=f.indexOf(i),m=f.findIndex((e=>"true"===e.getAttribute("data-selected"))),g=[],p=Math.min(h,m),M=Math.max(h,m);for(let e=p;e<=M;e++)f[e]?.disabled||g.push(f[e]);f.forEach((e=>{e.setAttribute("data-hover",g.includes(e)?"true":"false")}))},disabled:f})})};function ry(e){return Hg(Date.now(),e)}function oy(e){return Pg(e,Date.now())}function iy(e){const t=oy(e?.in),n=t.getFullYear(),r=t.getMonth(),o=t.getDate(),i=oy(e?.in);return i.setFullYear(n,r,o-1),i.setHours(0,0,0,0),i}function ay(e,t,n){return Fg(e,-t,n)}const sy=({selectionType:e="single",variant:t="normal",presets:n=[],onCancel:r,onApply:o,onDateSelect:i,applyButtonText:a="Apply",cancelButtonText:s="Cancel",showOutsideDays:l=!0,isFooter:c=!0,selected:f,disabled:h,...m})=>{const[g,p]=(0,d.useState)((()=>{if(!f)return ty(e);const t="multiple"===e&&Array.isArray(f),n="single"===e&&f instanceof Date;return t||"range"===e&&"from"in f&&"to"in f||n?f:ty(e)})),M=e=>{p(e),i&&i(e)},y=[{label:"Today",range:{from:ry(),to:ry()}},{label:"Yesterday",range:{from:iy(),to:iy()}},{label:"This Week",range:{from:Jg(new Date,{weekStartsOn:1}),to:Zg(new Date,{weekStartsOn:1})}},{label:"Last 7 Days",range:{from:Hg(ay(new Date,6)),to:Hg(new Date)}},{label:"This Month",range:{from:Ip(new Date),to:Kg(new Date)}},{label:"Last 30 Days",range:{from:Hg(ay(new Date,29)),to:Hg(new Date)}}],N=n.length>0?n:y,x=()=>{p("multiple"===e?[]:{from:void 0,to:void 0}),r&&r()},D=()=>{o&&o(g)};return"normal"===t?(0,u.jsx)(ny,{...m,mode:e,variant:t,width:"w-[18.5rem]",selectedDates:g,showOutsideDays:l,setSelectedDates:M,footer:c&&(0,u.jsxs)("div",{className:"flex bg-background-primary justify-end p-2 gap-3 border border-solid border-border-subtle border-t-0 rounded-md rounded-tl-none rounded-tr-none",children:[(0,u.jsx)(De,{variant:"outline",onClick:x,children:s}),(0,u.jsx)(De,{onClick:D,children:a})]}),disabled:h}):"dualdate"===t?(0,u.jsx)(ny,{mode:e,numberOfMonths:2,alignment:"horizontal",selectedDates:g,setSelectedDates:M,showOutsideDays:l,variant:t,width:"w-auto",footer:(0,u.jsxs)("div",{className:"flex bg-background-primary justify-end p-2 gap-3 border border-solid border-border-subtle border-t-0 rounded-md rounded-tl-none rounded-tr-none",children:[(0,u.jsx)(De,{variant:"outline",onClick:x,children:s}),(0,u.jsx)(De,{onClick:D,children:a})]}),disabled:h,...m}):"presets"===t?(0,u.jsxs)("div",{className:"flex flex-row shadow-datepicker-wrapper",children:[(0,u.jsx)("div",{className:"flex flex-col gap-1 p-3 items-start border border-solid border-border-subtle border-r-0 rounded-tl-md rounded-bl-md bg-background-primary",children:N.map(((e,t)=>{const n=g&&"from"in g&&"to"in g&&g.from?.getTime()===e.range.from.getTime()&&g.to?.getTime()===e.range.to.getTime();return(0,u.jsx)(De,{onClick:()=>(e=>{p(e)})(e.range),variant:"ghost",className:me("text-left font-medium text-sm text-nowrap w-full",n&&"bg-brand-background-50"),children:e.label},t)}))}),(0,u.jsx)(ny,{...m,mode:e,selectedDates:g,setSelectedDates:M,variant:t,showOutsideDays:l,width:"w-auto",numberOfMonths:2,footer:(0,u.jsxs)("div",{className:"flex justify-end p-2 gap-3 border-l border-r border-t-0 border-b border-solid border-border-subtle bg-background-primary rounded-br-md",children:[(0,u.jsx)(De,{variant:"outline",onClick:x,children:s}),(0,u.jsx)(De,{onClick:D,children:a})]}),disabled:h})]}):void 0},ly=Qu("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),cy=window.wp.apiFetch;var uy=o.n(cy);let dy={data:""},fy=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,hy=/\/\*[^]*?\*\/| +/g,my=/\n+/g,gy=(e,t)=>{let n="",r="",o="";for(let i in e){let a=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+a+";":r+="f"==i[1]?gy(a,i):i+"{"+gy(a,"k"==i[1]?"":t)+"}":"object"==typeof a?r+=gy(a,t?t.replace(/([^,])+/g,(e=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=gy.p?gy.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},py={},My=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+My(e[n]);return t}return e};function yy(e){let t=this||{},n=e.call?e(t.p):e;return((e,t,n,r,o)=>{let i=My(e),a=py[i]||(py[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!py[a]){let t=i!==e?e:(e=>{let t,n,r=[{}];for(;t=fy.exec(e.replace(hy,""));)t[4]?r.shift():t[3]?(n=t[3].replace(my," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(my," ").trim();return r[0]})(e);py[a]=gy(o?{["@keyframes "+a]:t}:t,n?"":"."+a)}let s=n&&py.g?py.g:null;return n&&(py.g=py[a]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(py[a],t,r,s),a})(n.unshift?n.raw?((e,t,n)=>e.reduce(((e,r,o)=>{let i=t[o];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":gy(e,""):!1===e?"":e}return e+r+(null==i?"":i)}),""))(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,(e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||dy)(t.target),t.g,t.o,t.k)}yy.bind({g:1});let Ny,xy,Dy,vy=yy.bind({k:1});function wy(e,t){let n=this||{};return function(){let r=arguments;function o(i,a){let s=Object.assign({},i),l=s.className||o.className;n.p=Object.assign({theme:xy&&xy()},s),n.o=/ *go\d+/.test(l),s.className=yy.apply(n,r)+(l?" "+l:""),t&&(s.ref=a);let c=e;return e[0]&&(c=s.as||e,delete s.as),Dy&&c[0]&&Dy(s),Ny(c,s)}return t?t(o):o}}var Ty=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,by=(()=>{let e=0;return()=>(++e).toString()})(),jy=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Ey=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return{...e,toasts:e.toasts.map((e=>e.id===t.toast.id?{...e,...t.toast}:e))};case 2:let{toast:n}=t;return Ey(e,{type:e.toasts.find((e=>e.id===n.id))?1:0,toast:n});case 3:let{toastId:r}=t;return{...e,toasts:e.toasts.map((e=>e.id===r||void 0===r?{...e,dismissed:!0,visible:!1}:e))};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter((e=>e.id!==t.toastId))};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map((e=>({...e,pauseDuration:e.pauseDuration+o})))}}},Iy=[],Ay={toasts:[],pausedAt:void 0},Oy=e=>{Ay=Ey(Ay,e),Iy.forEach((e=>{e(Ay)}))},ky=e=>(t,n)=>{let r=((e,t="blank",n)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(null==n?void 0:n.id)||by()}))(t,e,n);return Oy({type:2,toast:r}),r.id},zy=(e,t)=>ky("blank")(e,t);zy.error=ky("error"),zy.success=ky("success"),zy.loading=ky("loading"),zy.custom=ky("custom"),zy.dismiss=e=>{Oy({type:3,toastId:e})},zy.remove=e=>Oy({type:4,toastId:e}),zy.promise=(e,t,n)=>{let r=zy.loading(t.loading,{...n,...null==n?void 0:n.loading});return"function"==typeof e&&(e=e()),e.then((e=>{let o=t.success?Ty(t.success,e):void 0;return o?zy.success(o,{id:r,...n,...null==n?void 0:n.success}):zy.dismiss(r),e})).catch((e=>{let o=t.error?Ty(t.error,e):void 0;o?zy.error(o,{id:r,...n,...null==n?void 0:n.error}):zy.dismiss(r)})),e},new Map;var Sy=vy`
from {
transform: scale(0) rotate(45deg);
opacity: 0;
}
to {
transform: scale(1) rotate(45deg);
opacity: 1;
}`,Ly=vy`
from {
transform: scale(0);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}`,Cy=vy`
from {
transform: scale(0) rotate(90deg);
opacity: 0;
}
to {
transform: scale(1) rotate(90deg);
opacity: 1;
}`,Ry=wy("div")`
width: 20px;
opacity: 0;
height: 20px;
border-radius: 10px;
background: ${e=>e.primary||"#ff4b4b"};
position: relative;
transform: rotate(45deg);
animation: ${Sy} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
forwards;
animation-delay: 100ms;
&:after,
&:before {
content: '';
animation: ${Ly} 0.15s ease-out forwards;
animation-delay: 150ms;
position: absolute;
border-radius: 3px;
opacity: 0;
background: ${e=>e.secondary||"#fff"};
bottom: 9px;
left: 4px;
height: 2px;
width: 12px;
}
&:before {
animation: ${Cy} 0.15s ease-out forwards;
animation-delay: 180ms;
transform: rotate(90deg);
}
`,Uy=vy`
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
`,Qy=wy("div")`
width: 12px;
height: 12px;
box-sizing: border-box;
border: 2px solid;
border-radius: 100%;
border-color: ${e=>e.secondary||"#e0e0e0"};
border-right-color: ${e=>e.primary||"#616161"};
animation: ${Uy} 1s linear infinite;
`,Yy=vy`
from {
transform: scale(0) rotate(45deg);
opacity: 0;
}
to {
transform: scale(1) rotate(45deg);
opacity: 1;
}`,Py=vy`
0% {
height: 0;
width: 0;
opacity: 0;
}
40% {
height: 0;
width: 6px;
opacity: 1;
}
100% {
opacity: 1;
height: 10px;
}`,_y=wy("div")`
width: 20px;
opacity: 0;
height: 20px;
border-radius: 10px;
background: ${e=>e.primary||"#61d345"};
position: relative;
transform: rotate(45deg);
animation: ${Yy} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
forwards;
animation-delay: 100ms;
&:after {
content: '';
box-sizing: border-box;
animation: ${Py} 0.2s ease-out forwards;
opacity: 0;
animation-delay: 200ms;
position: absolute;
border-right: 2px solid;
border-bottom: 2px solid;
border-color: ${e=>e.secondary||"#fff"};
bottom: 6px;
left: 6px;
height: 10px;
width: 6px;
}
`,Fy=wy("div")`
position: absolute;
`,By=wy("div")`
position: relative;
display: flex;
justify-content: center;
align-items: center;
min-width: 20px;
min-height: 20px;
`,Vy=vy`
from {
transform: scale(0.6);
opacity: 0.4;
}
to {
transform: scale(1);
opacity: 1;
}`,Wy=wy("div")`
position: relative;
transform: scale(0.6);
opacity: 0.4;
min-width: 20px;
animation: ${Vy} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
forwards;
`,Hy=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return void 0!==t?"string"==typeof t?d.createElement(Wy,null,t):t:"blank"===n?null:d.createElement(By,null,d.createElement(Qy,{...r}),"loading"!==n&&d.createElement(Fy,null,"error"===n?d.createElement(Ry,{...r}):d.createElement(_y,{...r})))},Gy=e=>`\n0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,qy=e=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;}\n`,$y=wy("div")`
display: flex;
align-items: center;
background: #fff;
color: #363636;
line-height: 1.3;
will-change: transform;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
max-width: 350px;
pointer-events: auto;
padding: 8px 10px;
border-radius: 8px;
`,Zy=wy("div")`
display: flex;
justify-content: center;
margin: 4px 10px;
color: inherit;
flex: 1 1 auto;
white-space: pre-line;
`;d.memo((({toast:e,position:t,style:n,children:r})=>{let o=e.height?((e,t)=>{let n=e.includes("top")?1:-1,[r,o]=jy()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[Gy(n),qy(n)];return{animation:t?`${vy(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${vy(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||t||"top-center",e.visible):{opacity:0},i=d.createElement(Hy,{toast:e}),a=d.createElement(Zy,{...e.ariaProps},Ty(e.message,e));return d.createElement($y,{className:e.className,style:{...o,...n,...e.style}},"function"==typeof r?r({icon:i,message:a}):d.createElement(d.Fragment,null,i,a))})),function(e){gy.p=void 0,Ny=e,xy=void 0,Dy=void 0}(d.createElement),yy`
z-index: 9999;
> * {
pointer-events: auto;
}
`,window.wp.editor,window.wp.data;const Ky=window.wp.url,Xy=e=>{const t=nN(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),Jy(n,t)||tN(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},Jy=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Jy(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find((({validator:e})=>e(i)))?.classGroupId},eN=/^\[(.+)\]$/,tN=e=>{if(eN.test(e)){const t=eN.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},nN=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const e in n)rN(n[e],r,e,t);return r},rN=(e,t,n,r)=>{e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return iN(e)?void rN(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{rN(o,oN(t,e),n,r)}))}else(""===e?t:oN(t,e)).classGroupId=n}))},oN=(e,t)=>{let n=e;return t.split("-").forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n},iN=e=>e.isThemeGetter,aN=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},sN=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,o=0,i=0;for(let a=0;a<e.length;a++){let s=e[a];if(0===r&&0===o){if(":"===s){t.push(e.slice(i,a)),i=a+1;continue}if("/"===s){n=a;continue}}"["===s?r++:"]"===s?r--:"("===s?o++:")"===s&&o--}const a=0===t.length?e:e.substring(i),s=lN(a);return{modifiers:t,hasImportantModifier:s!==a,baseClassName:s,maybePostfixModifierPosition:n&&n>i?n-i:void 0}};if(t){const e=t+":",n=r;r=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},lN=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,cN=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map((e=>[e,!0])));return e=>{if(e.length<=1)return e;const n=[];let r=[];return e.forEach((e=>{"["===e[0]||t[e]?(n.push(...r.sort(),e),r=[]):r.push(e)})),n.push(...r.sort()),n}},uN=/\s+/;function dN(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=fN(e))&&(r&&(r+=" "),r+=t);return r}const fN=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=fN(e[r]))&&(n&&(n+=" "),n+=t);return n};function hN(e,...t){let n,r,o,i=function(s){const l=t.reduce(((e,t)=>t(e)),e());return n=(e=>({cache:aN(e.cacheSize),parseClassName:sN(e),sortModifiers:cN(e),...Xy(e)}))(l),r=n.cache.get,o=n.cache.set,i=a,a(s)};function a(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,a=[],s=e.trim().split(uN);let l="";for(let e=s.length-1;e>=0;e-=1){const t=s[e],{isExternal:c,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:h}=n(t);if(c){l=t+(l.length>0?" "+l:l);continue}let m=!!h,g=r(m?f.substring(0,h):f);if(!g){if(!m){l=t+(l.length>0?" "+l:l);continue}if(g=r(f),!g){l=t+(l.length>0?" "+l:l);continue}m=!1}const p=i(u).join(":"),M=d?p+"!":p,y=M+g;if(a.includes(y))continue;a.push(y);const N=o(g,m);for(let e=0;e<N.length;++e){const t=N[e];a.push(M+t)}l=t+(l.length>0?" "+l:l)}return l})(e,n);return o(e,i),i}return function(){return i(dN.apply(null,arguments))}}const mN=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},gN=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,pN=/^\((?:(\w[\w-]*):)?(.+)\)$/i,MN=/^\d+\/\d+$/,yN=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,NN=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,xN=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,DN=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vN=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wN=e=>MN.test(e),TN=e=>!!e&&!Number.isNaN(Number(e)),bN=e=>!!e&&Number.isInteger(Number(e)),jN=e=>e.endsWith("%")&&TN(e.slice(0,-1)),EN=e=>yN.test(e),IN=()=>!0,AN=e=>NN.test(e)&&!xN.test(e),ON=()=>!1,kN=e=>DN.test(e),zN=e=>vN.test(e),SN=e=>!CN(e)&&!_N(e),LN=e=>qN(e,XN,ON),CN=e=>gN.test(e),RN=e=>qN(e,JN,AN),UN=e=>qN(e,ex,TN),QN=e=>qN(e,ZN,ON),YN=e=>qN(e,KN,zN),PN=e=>qN(e,nx,kN),_N=e=>pN.test(e),FN=e=>$N(e,JN),BN=e=>$N(e,tx),VN=e=>$N(e,ZN),WN=e=>$N(e,XN),HN=e=>$N(e,KN),GN=e=>$N(e,nx,!0),qN=(e,t,n)=>{const r=gN.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},$N=(e,t,n=!1)=>{const r=pN.exec(e);return!!r&&(r[1]?t(r[1]):n)},ZN=e=>"position"===e||"percentage"===e,KN=e=>"image"===e||"url"===e,XN=e=>"length"===e||"size"===e||"bg-size"===e,JN=e=>"length"===e,ex=e=>"number"===e,tx=e=>"family-name"===e,nx=e=>"shadow"===e,rx=hN((Symbol.toStringTag,()=>{const e=mN("color"),t=mN("font"),n=mN("text"),r=mN("font-weight"),o=mN("tracking"),i=mN("leading"),a=mN("breakpoint"),s=mN("container"),l=mN("spacing"),c=mN("radius"),u=mN("shadow"),d=mN("inset-shadow"),f=mN("text-shadow"),h=mN("drop-shadow"),m=mN("blur"),g=mN("perspective"),p=mN("aspect"),M=mN("ease"),y=mN("animate"),N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",_N,CN],x=()=>[_N,CN,l],D=()=>[wN,"full","auto",...x()],v=()=>[bN,"none","subgrid",_N,CN],w=()=>["auto",{span:["full",bN,_N,CN]},bN,_N,CN],T=()=>[bN,"auto",_N,CN],b=()=>["auto","min","max","fr",_N,CN],j=()=>["auto",...x()],E=()=>[wN,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],I=()=>[e,_N,CN],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",VN,QN,{position:[_N,CN]}],O=()=>["auto","cover","contain",WN,LN,{size:[_N,CN]}],k=()=>[jN,FN,RN],z=()=>["","none","full",c,_N,CN],S=()=>["",TN,FN,RN],L=()=>[TN,jN,VN,QN],C=()=>["","none",m,_N,CN],R=()=>["none",TN,_N,CN],U=()=>["none",TN,_N,CN],Q=()=>[TN,_N,CN],Y=()=>[wN,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[EN],breakpoint:[EN],color:[IN],container:[EN],"drop-shadow":[EN],ease:["in","out","in-out"],font:[SN],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[EN],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[EN],shadow:[EN],spacing:["px",TN],text:[EN],"text-shadow":[EN],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",wN,CN,_N,p]}],container:["container"],columns:[{columns:[TN,CN,_N,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:N()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{start:D()}],end:[{end:D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[bN,"auto",_N,CN]}],basis:[{basis:[wN,"full","auto",s,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[TN,wN,"auto","initial","none",CN]}],grow:[{grow:["",TN,_N,CN]}],shrink:[{shrink:["",TN,_N,CN]}],order:[{order:[bN,"first","last","none",_N,CN]}],"grid-cols":[{"grid-cols":v()}],"col-start-end":[{col:w()}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":v()}],"row-start-end":[{row:w()}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":b()}],"auto-rows":[{"auto-rows":b()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:E()}],w:[{w:[s,"screen",...E()]}],"min-w":[{"min-w":[s,"screen","none",...E()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...E()]}],h:[{h:["screen","lh",...E()]}],"min-h":[{"min-h":["screen","lh","none",...E()]}],"max-h":[{"max-h":["screen","lh",...E()]}],"font-size":[{text:["base",n,FN,RN]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,_N,UN]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",jN,CN]}],"font-family":[{font:[BN,CN,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,_N,CN]}],"line-clamp":[{"line-clamp":[TN,"none",_N,UN]}],leading:[{leading:[i,...x()]}],"list-image":[{"list-image":["none",_N,CN]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",_N,CN]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[TN,"from-font","auto",_N,RN]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[TN,"auto",_N,CN]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_N,CN]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",_N,CN]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:O()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},bN,_N,CN],radial:["",_N,CN],conic:[bN,_N,CN]},HN,YN]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:k()}],"gradient-via-pos":[{via:k()}],"gradient-to-pos":[{to:k()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:z()}],"rounded-s":[{"rounded-s":z()}],"rounded-e":[{"rounded-e":z()}],"rounded-t":[{"rounded-t":z()}],"rounded-r":[{"rounded-r":z()}],"rounded-b":[{"rounded-b":z()}],"rounded-l":[{"rounded-l":z()}],"rounded-ss":[{"rounded-ss":z()}],"rounded-se":[{"rounded-se":z()}],"rounded-ee":[{"rounded-ee":z()}],"rounded-es":[{"rounded-es":z()}],"rounded-tl":[{"rounded-tl":z()}],"rounded-tr":[{"rounded-tr":z()}],"rounded-br":[{"rounded-br":z()}],"rounded-bl":[{"rounded-bl":z()}],"border-w":[{border:S()}],"border-w-x":[{"border-x":S()}],"border-w-y":[{"border-y":S()}],"border-w-s":[{"border-s":S()}],"border-w-e":[{"border-e":S()}],"border-w-t":[{"border-t":S()}],"border-w-r":[{"border-r":S()}],"border-w-b":[{"border-b":S()}],"border-w-l":[{"border-l":S()}],"divide-x":[{"divide-x":S()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":S()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[TN,_N,CN]}],"outline-w":[{outline:["",TN,FN,RN]}],"outline-color":[{outline:I()}],shadow:[{shadow:["","none",u,GN,PN]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",d,GN,PN]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:S()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[TN,RN]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":S()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":["none",f,GN,PN]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[TN,_N,CN]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[TN]}],"mask-image-linear-from-pos":[{"mask-linear-from":L()}],"mask-image-linear-to-pos":[{"mask-linear-to":L()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":L()}],"mask-image-t-to-pos":[{"mask-t-to":L()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":L()}],"mask-image-r-to-pos":[{"mask-r-to":L()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":L()}],"mask-image-b-to-pos":[{"mask-b-to":L()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":L()}],"mask-image-l-to-pos":[{"mask-l-to":L()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":L()}],"mask-image-x-to-pos":[{"mask-x-to":L()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":L()}],"mask-image-y-to-pos":[{"mask-y-to":L()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[_N,CN]}],"mask-image-radial-from-pos":[{"mask-radial-from":L()}],"mask-image-radial-to-pos":[{"mask-radial-to":L()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[TN]}],"mask-image-conic-from-pos":[{"mask-conic-from":L()}],"mask-image-conic-to-pos":[{"mask-conic-to":L()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:A()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:O()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",_N,CN]}],filter:[{filter:["","none",_N,CN]}],blur:[{blur:C()}],brightness:[{brightness:[TN,_N,CN]}],contrast:[{contrast:[TN,_N,CN]}],"drop-shadow":[{"drop-shadow":["","none",h,GN,PN]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:["",TN,_N,CN]}],"hue-rotate":[{"hue-rotate":[TN,_N,CN]}],invert:[{invert:["",TN,_N,CN]}],saturate:[{saturate:[TN,_N,CN]}],sepia:[{sepia:["",TN,_N,CN]}],"backdrop-filter":[{"backdrop-filter":["","none",_N,CN]}],"backdrop-blur":[{"backdrop-blur":C()}],"backdrop-brightness":[{"backdrop-brightness":[TN,_N,CN]}],"backdrop-contrast":[{"backdrop-contrast":[TN,_N,CN]}],"backdrop-grayscale":[{"backdrop-grayscale":["",TN,_N,CN]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[TN,_N,CN]}],"backdrop-invert":[{"backdrop-invert":["",TN,_N,CN]}],"backdrop-opacity":[{"backdrop-opacity":[TN,_N,CN]}],"backdrop-saturate":[{"backdrop-saturate":[TN,_N,CN]}],"backdrop-sepia":[{"backdrop-sepia":["",TN,_N,CN]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",_N,CN]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[TN,"initial",_N,CN]}],ease:[{ease:["linear","initial",M,_N,CN]}],delay:[{delay:[TN,_N,CN]}],animate:[{animate:["none",y,_N,CN]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,_N,CN]}],"perspective-origin":[{"perspective-origin":N()}],rotate:[{rotate:R()}],"rotate-x":[{"rotate-x":R()}],"rotate-y":[{"rotate-y":R()}],"rotate-z":[{"rotate-z":R()}],scale:[{scale:U()}],"scale-x":[{"scale-x":U()}],"scale-y":[{"scale-y":U()}],"scale-z":[{"scale-z":U()}],"scale-3d":["scale-3d"],skew:[{skew:Q()}],"skew-x":[{"skew-x":Q()}],"skew-y":[{"skew-y":Q()}],transform:[{transform:[_N,CN,"","none","gpu","cpu"]}],"transform-origin":[{origin:N()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Y()}],"translate-x":[{"translate-x":Y()}],"translate-y":[{"translate-y":Y()}],"translate-z":[{"translate-z":Y()}],"translate-none":["translate-none"],accent:[{accent:I()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:I()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",_N,CN]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",_N,CN]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[TN,FN,RN,UN]}],stroke:[{stroke:["none",...I()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}));var ox=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"utm_medium";try{var r=new URL(e);return r.searchParams.set(n,t),r.toString()}catch(t){return console.error("Invalid URL:",t),e}},ix=function(){return rx(he.apply(void 0,arguments))},ax=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd";try{if(!e||isNaN(new Date(e).getTime()))throw new Error((0,zu.__)("Invalid Date","sureforms"));return wp(new Date(e),t)}catch(e){return(0,zu.__)("No Date","sureforms")}},sx=function(e){var t={month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hour12:!0};if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]){if(!e)return"-";try{return new Date(e.replace(" ","T")).toLocaleString("en-US",t)}catch(t){return e}}var n=new Date(e);return{shortFormat:n.toLocaleString("en-US",t),fullFormat:n.toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hour12:!0})}},lx=["placement","trigger","onApply","value","triggerPlaceholder"];function cx(){return cx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cx.apply(null,arguments)}function ux(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return dx(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dx(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const fx=function(e){var t,n,r,o=e.placement,i=void 0===o?"bottom-end":o,s=e.trigger,l=void 0===s?null:s,c=e.onApply,u=e.value,d=void 0===u?{from:null,to:null}:u,f=e.triggerPlaceholder,h=void 0===f?(0,zu.__)("mm/dd/yyyy - mm/dd/yyyy","sureforms"):f,m=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,lx),g=null!==(t={"bottom-start":"top-full -left-0.5 mt-2","bottom-end":"top-full -right-0.5 mt-2","top-start":"bottom-full -left-0.5 mb-2","top-end":"bottom-full -right-0.5 mb-2"}[i])&&void 0!==t?t:"bottom-end",p=ux((0,a.useState)(!1),2),M=p[0],y=p[1],N=ux((0,a.useState)(d),2),x=N[0],D=N[1],v=(0,a.useRef)();return(0,a.useEffect)((function(){M||D(d||{from:null,to:null})}),[M,d]),(0,a.useEffect)((function(){var e=function(e){var t=v.current;t&&!t.contains(e.target)&&y(!1)};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[M]),React.createElement("div",{className:"relative",ref:v},null===l?(r={show:M,setShow:y}.setShow,React.createElement(Gm,cx({type:"text",size:"sm",value:(n=d,n.from?n.to?"".concat(ax(n.from,"MM/dd/yyyy")," - ").concat(ax(n.to,"MM/dd/yyyy")):"".concat(ax(n.from,"MM/dd/yyyy")):""),suffix:React.createElement(ly,{className:"text-icon-secondary"}),onClick:function(){return r((function(e){return!e}))},placeholder:h,readOnly:!0,"aria-label":(0,zu.__)("Select Date Range","sureforms")},m))):"function"==typeof l?l({show:M,setShow:y}):l,M&&React.createElement("div",{className:ix("absolute z-10 rounded-md shadow-soft-shadow-md overflow-clip",g)},React.createElement(sy,{onCancel:function(){y(!1)},variant:"presets",selectionType:"range",onDateSelect:function(e){D({from:e.from,to:e.to})},selected:x,onApply:function(e){e.from&&e.to&&("function"==typeof c&&c(e),y(!1))},disabled:{after:new Date}})))};function hx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var mx=[{value:"",label:(0,zu.__)("All Status","sureforms")},{value:"read",label:(0,zu.__)("Read","sureforms")},{value:"unread",label:(0,zu.__)("Unread","sureforms")},{value:"trash",label:(0,zu.__)("Trash","sureforms")}];function gx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}(0,zu.__)("Entry ID","sureforms"),(0,zu.__)("Form Name","sureforms"),(0,zu.__)("Status","sureforms"),(0,zu.__)("First Field","sureforms"),(0,zu.__)("Date & Time","sureforms"),(0,zu.__)("Actions","sureforms");const px=function(e){var t,n,r=e.statusFilter,o=e.onStatusFilterChange,i=e.formFilter,s=e.onFormFilterChange,l=e.searchQuery,c=e.onSearchChange,u=e.dateRange,d=e.onDateRangeChange,f=e.formOptions,h=void 0===f?[]:f,m=e.isLoadingForms,g=void 0!==m&&m,p=e.selectedEntries,M=void 0===p?[]:p,y=e.onBulkDelete,N=e.onBulkExport,x=e.onMarkAsRead,D=e.onMarkAsUnread,v=e.onBulkRestore,w=e.onClearFilters,T=e.hasActiveFilters,b=void 0!==T&&T,j=e.hasUnreadSelected,E=void 0!==j&&j,I=e.hasReadSelected,A=void 0!==I&&I,O=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return gx(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gx(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,a.useState)(!1),2),k=O[0],z=O[1],S=(0,a.useRef)(null),L=(0,a.useMemo)((function(){return M.length>0}),[M]),C=[{label:L?(0,zu.__)("Export Selected","sureforms"):(0,zu.__)("Export All","sureforms"),onClick:N,icon:React.createElement(Yu,null)}];E&&C.push({label:(0,zu.__)("Mark as Read","sureforms"),onClick:x,icon:React.createElement(Pu,null)}),A&&C.push({label:(0,zu.__)("Mark as Unread","sureforms"),onClick:D,icon:React.createElement(_u,null)}),(0,a.useEffect)((function(){S.current&&(S.current.value=l)}),[l]);var R=(0,Lu.applyFilters)("srfm-pro.entry-details.render-resend-notification-modal");return React.createElement(a.Fragment,null,React.createElement("div",{className:"flex flex-wrap lg:flex-nowrap items-center justify-end gap-2 sm:gap-3 lg:gap-4 mt-4 lg:!mt-0"},b&&!L&&React.createElement(De,{variant:"outline",size:"sm",onClick:w,icon:React.createElement(Fu,{className:"w-4 h-4"}),iconPosition:"left",className:"min-w-fit",destructive:!0},(0,zu.__)("Clear Filters","sureforms")),!L&&React.createElement(React.Fragment,null,React.createElement("div",{className:"w-fit flex-1 lg:flex-initial min-w-24 sm:w-24"},React.createElement(Bm,{value:r,onChange:o,size:"sm"},React.createElement(Bm.Button,{placeholder:(0,zu.__)("Status","sureforms")},null===(t=mx.find((function(e){return e.value===r})))||void 0===t?void 0:t.label),React.createElement(Bm.Options,{className:"z-999999"},mx.map((function(e){return React.createElement(Bm.Option,{key:e.value,value:e.value},e.label)}))))),React.createElement("div",{className:"w-full min-w-32 lg:w-40"},g?React.createElement(Vm,{className:"h-8 w-full rounded-md"}):React.createElement(Bm,{value:i,onChange:s,size:"sm"},React.createElement(Bm.Button,{placeholder:(0,zu.__)("All Forms","sureforms")},(null===(n=h.find((function(e){return e.value===i})))||void 0===n?void 0:n.label)||(0,zu.__)("Untitled","sureforms")),React.createElement(Bm.Options,{className:"z-999999"},h.map((function(e){return React.createElement(Bm.Option,{key:e.value,value:e.value},e.label||(0,zu.__)("Untitled","sureforms"))})))))," ",React.createElement("div",{className:"w-full min-w-[11.25rem] lg:w-auto lg:min-w-[13.125rem]"},React.createElement(fx,{value:u,onApply:d})),React.createElement("div",{className:"w-full min-w-40 lg:w-auto"},React.createElement(Gm,{type:"search",placeholder:(0,zu.__)("Search entries…","sureforms"),ref:S,onChange:function(e){""===e&&c("")},onKeyDown:function(e){"Enter"===e.key&&c(e.target.value)},prefix:React.createElement(Bu,{className:"w-4 h-4 text-icon-secondary"})}))),L&&React.createElement(React.Fragment,null,!!R&&"all"!==i&&""!==i&&React.createElement(De,{variant:"outline",size:"sm",onClick:function(){R&&z(!0)},icon:React.createElement(Vu,{className:"w-4 h-4"}),iconPosition:"left",className:"min-w-fit"},(0,zu.__)("Resend Notifications","sureforms")),"trash"===r&&React.createElement(De,{variant:"outline",size:"sm",onClick:v,icon:React.createElement(Wu,{className:"w-4 h-4"}),iconPosition:"left",className:"min-w-fit"},(0,zu.__)("Restore","sureforms")),React.createElement(De,{variant:"outline",size:"sm",onClick:y,icon:React.createElement(Hu,{className:"w-4 h-4"}),iconPosition:"left",className:"min-w-fit",destructive:!0},(0,zu.__)("Delete","sureforms"))),React.createElement(ng,{placement:"bottom-end"},React.createElement(ng.Trigger,null,React.createElement(De,{variant:"outline",size:"sm",icon:React.createElement(Gu,{className:"w-4 h-4"}),className:"min-w-fit px-2"})),React.createElement(ng.Portal,{id:"srfm-dialog-root"},React.createElement(ng.ContentWrapper,null,React.createElement(ng.Content,{className:"w-48"},React.createElement(ng.List,null,C.map((function(e,t){return React.createElement(ng.Item,{key:t,onClick:e.onClick,className:"text-sm [&>svg]:size-4 font-normal text-text-secondary hover:bg-background-secondary hover:text-text-primary focus:bg-background-secondary focus:text-text-primary cursor-pointer"},e.icon,e.label)})))))))),!!R&&"all"!==i&&""!==i&&React.createElement(R,{open:k,setOpen:z,entryIds:M,formId:parseInt(i,10)}))},Mx=({variant:e="dark",placement:t="bottom",title:n="",content:r,arrow:o=!1,open:i,setOpen:a,children:s,className:l,tooltipPortalRoot:c,tooltipPortalId:f,boundary:h="clippingAncestors",strategy:m="fixed",offset:g=8,triggers:p=["hover","focus"],interactive:M=!1})=>{const y=(0,d.useMemo)((()=>"boolean"==typeof i&&"function"==typeof a),[i,a]),[N,x]=(0,d.useState)(!1),D=(0,d.useRef)(null),{refs:v,floatingStyles:w,context:T}=lm({open:y?i:N,onOpenChange:y?a:x,placement:t,strategy:m,middleware:[Hf(g),qf({boundary:h}),Gf({boundary:h}),(R={element:D},{...Wf(R),options:[R,undefined]})],whileElementsMounted:Sf}),b=rm(T,{enabled:!y&&p.includes("click")}),j=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:a}=e,{enabled:s=!0,delay:l=0,handleClose:c=null,mouseOnly:u=!1,restMs:f=0,move:h=!0}=t,m=xh(),g=Nh(),p=vh(c),M=vh(l),y=vh(n),N=d.useRef(),x=d.useRef(-1),D=d.useRef(),v=d.useRef(-1),w=d.useRef(!0),T=d.useRef(!1),b=d.useRef((()=>{})),j=d.useRef(!1),E=d.useCallback((()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[o]);d.useEffect((()=>{if(s)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(x.current),clearTimeout(v.current),w.current=!0,j.current=!1)}}),[s,i]),d.useEffect((()=>{if(!s)return;if(!p.current)return;if(!n)return;function e(e){E()&&r(!1,e,"hover")}const t=Ed(a.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[a.floating,n,r,s,p,E]);const I=d.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=Th(M.current,"close",N.current);o&&!D.current?(clearTimeout(x.current),x.current=window.setTimeout((()=>r(!1,e,n)),o)):t&&(clearTimeout(x.current),r(!1,e,n))}),[M,r]),A=Kf((()=>{b.current(),D.current=void 0})),O=Kf((()=>{if(T.current){const e=Ed(a.floating).body;e.style.pointerEvents="",e.removeAttribute(wh),T.current=!1}})),k=Kf((()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type)));d.useEffect((()=>{if(s&&nd(a.domReference)){var e;const r=a.domReference;return n&&r.addEventListener("mouseleave",l),null==(e=a.floating)||e.addEventListener("mouseleave",l),h&&r.addEventListener("mousemove",t,{once:!0}),r.addEventListener("mouseenter",t),r.addEventListener("mouseleave",i),()=>{var e;n&&r.removeEventListener("mouseleave",l),null==(e=a.floating)||e.removeEventListener("mouseleave",l),h&&r.removeEventListener("mousemove",t),r.removeEventListener("mouseenter",t),r.removeEventListener("mouseleave",i)}}function t(e){if(clearTimeout(x.current),w.current=!1,u&&!jd(N.current)||f>0&&!Th(M.current,"open"))return;const t=Th(M.current,"open",N.current);t?x.current=window.setTimeout((()=>{y.current||r(!0,e,"hover")}),t):n||r(!0,e,"hover")}function i(e){if(k())return;b.current();const t=Ed(a.floating);if(clearTimeout(v.current),j.current=!1,p.current&&o.current.floatingContext){n||clearTimeout(x.current),D.current=p.current({...o.current.floatingContext,tree:m,x:e.clientX,y:e.clientY,onClose(){O(),A(),k()||I(e,!0,"safe-polygon")}});const r=D.current;return t.addEventListener("mousemove",r),void(b.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==N.current||!yd(a.floating,e.relatedTarget))&&I(e)}function l(e){k()||o.current.floatingContext&&(null==p.current||p.current({...o.current.floatingContext,tree:m,x:e.clientX,y:e.clientY,onClose(){O(),A(),k()||I(e)}})(e))}}),[a,s,e,u,f,h,I,A,O,r,n,y,m,M,p,o,k]),uh((()=>{var e;if(s&&n&&null!=(e=p.current)&&e.__options.blockPointerEvents&&E()){T.current=!0;const e=a.floating;if(nd(a.domReference)&&e){var t;const n=Ed(a.floating).body;n.setAttribute(wh,"");const r=a.domReference,o=null==m||null==(t=m.nodesRef.current.find((e=>e.id===g)))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}}),[s,n,g,a,m,p,E]),uh((()=>{n||(N.current=void 0,j.current=!1,A(),O())}),[n,A,O]),d.useEffect((()=>()=>{A(),clearTimeout(x.current),clearTimeout(v.current),O()}),[s,a.domReference,A,O]);const z=d.useMemo((()=>{function e(e){N.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){w.current||y.current||r(!0,t,"hover")}u&&!jd(N.current)||n||0===f||j.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(v.current),"touch"===N.current?o():(j.current=!0,v.current=window.setTimeout(o,f)))}}}),[u,r,n,y,f]),S=d.useMemo((()=>({onMouseEnter(){clearTimeout(x.current)},onMouseLeave(e){k()||I(e.nativeEvent,!1)}})),[I,k]);return d.useMemo((()=>s?{reference:z,floating:S}:{}),[s,z,S])}(T,{move:!1,enabled:!y&&p.includes("hover"),...M&&{handleClose:bm()}}),E=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:i,elements:a}=e,{enabled:s=!0,visibleOnly:l=!0}=t,c=d.useRef(!1),u=d.useRef(),f=d.useRef(!0);d.useEffect((()=>{if(!s)return;const e=Ju(a.domReference);function t(){!n&&rd(a.domReference)&&a.domReference===Md(Ed(a.domReference))&&(c.current=!0)}function r(){f.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}}),[a.domReference,n,s]),d.useEffect((()=>{if(s)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(c.current=!0)}}),[o,s]),d.useEffect((()=>()=>{clearTimeout(u.current)}),[]);const h=d.useMemo((()=>({onPointerDown(e){vd(e.nativeEvent)||(f.current=!1)},onMouseLeave(){c.current=!1},onFocus(e){if(c.current)return;const t=Ad(e.nativeEvent);if(l&&nd(t))try{if(wd()&&bd())throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!f.current&&!Od(t))return}r(!0,e.nativeEvent,"focus")},onBlur(e){c.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=nd(t)&&t.hasAttribute(Dh("focus-guard"))&&"outside"===t.getAttribute("data-type");u.current=window.setTimeout((()=>{var e;const s=Md(a.domReference?a.domReference.ownerDocument:document);(t||s!==a.domReference)&&(yd(null==(e=i.current.floatingContext)?void 0:e.refs.floating.current,s)||yd(a.domReference,s)||o||r(!1,n,"focus"))}))}})),[i,a.domReference,r,l]);return d.useMemo((()=>s?{reference:h}:{}),[s,h])}(T,{enabled:!y&&p.includes("focus")}),I=sm(T),A=xm(T,{role:"tooltip"}),{getReferenceProps:O,getFloatingProps:k}=fm([b,j,E,I,A]),{isMounted:z,styles:S}=wm(T,{duration:150,initial:{opacity:0},open:{opacity:1},close:{opacity:0}}),L={light:"bg-tooltip-background-light text-text-primary",dark:"bg-tooltip-background-dark text-text-on-color"}[e],C="dark"===e?"text-tooltip-background-dark":"text-tooltip-background-light";var R;return(0,u.jsxs)(d.Fragment,{children:[(0,d.isValidElement)(s)&&(0,u.jsx)(d.Fragment,{children:(0,d.cloneElement)(s,{ref:Ie(s.ref,v.setReference),className:me(s.props.className),...O()})},"tooltip-reference"),(0,u.jsx)(Hh,{id:f,root:c,children:z&&(0,u.jsxs)("div",{className:me("absolute z-20 py-2 px-3 rounded-md text-xs leading-4 shadow-soft-shadow-lg",L,"max-w-80 w-fit",l),ref:v.setFloating,style:{...w,...S},...k(),children:[(0,u.jsxs)("div",{children:[!!n&&(0,u.jsx)("span",{className:"font-semibold",children:n},"tooltip-title"),!!r&&(0,u.jsx)("div",{className:"font-normal",children:r},"tooltip-content")]}),o&&(0,u.jsx)(ph,{ref:D,context:T,className:me("fill-current",C)})]})})]})};Mx.displayName="Tooltip";const yx={sm:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12"},md:{1:"md:grid-cols-1",2:"md:grid-cols-2",3:"md:grid-cols-3",4:"md:grid-cols-4",5:"md:grid-cols-5",6:"md:grid-cols-6",7:"md:grid-cols-7",8:"md:grid-cols-8",9:"md:grid-cols-9",10:"md:grid-cols-10",11:"md:grid-cols-11",12:"md:grid-cols-12"},lg:{1:"lg:grid-cols-1",2:"lg:grid-cols-2",3:"lg:grid-cols-3",4:"lg:grid-cols-4",5:"lg:grid-cols-5",6:"lg:grid-cols-6",7:"lg:grid-cols-7",8:"lg:grid-cols-8",9:"lg:grid-cols-9",10:"lg:grid-cols-10",11:"lg:grid-cols-11",12:"lg:grid-cols-12"}},Nx={sm:{xs:"gap-2",sm:"gap-4",md:"gap-5",lg:"gap-6",xl:"gap-6","2xl":"gap-8"},md:{xs:"md:gap-2",sm:"md:gap-4",md:"md:gap-5",lg:"md:gap-6",xl:"md:gap-6","2xl":"md:gap-8"},lg:{xs:"lg:gap-2",sm:"lg:gap-4",md:"lg:gap-5",lg:"lg:gap-6",xl:"lg:gap-6","2xl":"lg:gap-8"}},xx={sm:{xs:"gap-x-2",sm:"gap-x-4",md:"gap-x-5",lg:"gap-x-6",xl:"gap-x-6","2xl":"gap-x-8"},md:{xs:"md:gap-x-2",sm:"md:gap-x-4",md:"md:gap-x-5",lg:"md:gap-x-6",xl:"md:gap-x-6","2xl":"md:gap-x-8"},lg:{xs:"lg:gap-x-2",sm:"lg:gap-x-4",md:"lg:gap-x-5",lg:"lg:gap-x-6",xl:"lg:gap-x-6","2xl":"lg:gap-x-8"}},Dx={sm:{xs:"gap-y-2",sm:"gap-y-4",md:"gap-y-5",lg:"gap-y-6",xl:"gap-y-6","2xl":"gap-y-8"},md:{xs:"md:gap-y-2",sm:"md:gap-y-4",md:"md:gap-y-5",lg:"md:gap-y-6",xl:"md:gap-y-6","2xl":"md:gap-y-8"},lg:{xs:"lg:gap-y-2",sm:"lg:gap-y-4",md:"lg:gap-y-5",lg:"lg:gap-y-6",xl:"lg:gap-y-6","2xl":"lg:gap-y-8"}},vx={sm:{1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12"},md:{1:"md:col-span-1",2:"md:col-span-2",3:"md:col-span-3",4:"md:col-span-4",5:"md:col-span-5",6:"md:col-span-6",7:"md:col-span-7",8:"md:col-span-8",9:"md:col-span-9",10:"md:col-span-10",11:"md:col-span-11",12:"md:col-span-12"},lg:{1:"lg:col-span-1",2:"lg:col-span-2",3:"lg:col-span-3",4:"lg:col-span-4",5:"lg:col-span-5",6:"lg:col-span-6",7:"lg:col-span-7",8:"lg:col-span-8",9:"lg:col-span-9",10:"lg:col-span-10",11:"lg:col-span-11",12:"lg:col-span-12"}},wx={sm:{1:"col-start-1",2:"col-start-2",3:"col-start-3",4:"col-start-4",5:"col-start-5",6:"col-start-6",7:"col-start-7",8:"col-start-8",9:"col-start-9",10:"col-start-10",11:"col-start-11",12:"col-start-12"},md:{1:"md:col-start-1",2:"md:col-start-2",3:"md:col-start-3",4:"md:col-start-4",5:"md:col-start-5",6:"md:col-start-6",7:"md:col-start-7",8:"md:col-start-8",9:"md:col-start-9",10:"md:col-start-10",11:"md:col-start-11",12:"md:col-start-12"},lg:{1:"lg:col-start-1",2:"lg:col-start-2",3:"lg:col-start-3",4:"lg:col-start-4",5:"lg:col-start-5",6:"lg:col-start-6",7:"lg:col-start-7",8:"lg:col-start-8",9:"lg:col-start-9",10:"lg:col-start-10",11:"lg:col-start-11",12:"lg:col-start-12"}},Tx={sm:{row:"grid-flow-row",column:"grid-flow-col","row-dense":"grid-flow-row-dense","column-dense":"grid-flow-col-dense"},md:{row:"md:grid-flow-row",column:"md:grid-flow-col","row-dense":"md:grid-flow-row-dense","column-dense":"md:grid-flow-col-dense"},lg:{row:"lg:grid-flow-row",column:"lg:grid-flow-col","row-dense":"lg:grid-flow-row-dense","column-dense":"lg:grid-flow-col-dense"}},bx={sm:{normal:"justify-normal",start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly",stretch:"justify-stretch"},md:{normal:"md:justify-normal",start:"md:justify-start",end:"md:justify-end",center:"md:justify-center",between:"md:justify-between",around:"md:justify-around",evenly:"md:justify-evenly",stretch:"md:justify-stretch"},lg:{normal:"lg:justify-normal",start:"lg:justify-start",end:"lg:justify-end",center:"lg:justify-center",between:"lg:justify-between",around:"lg:justify-around",evenly:"lg:justify-evenly",stretch:"lg:justify-stretch"}},jx={sm:{start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},md:{start:"md:items-start",end:"md:items-end",center:"md:items-center",baseline:"md:items-baseline",stretch:"md:items-stretch"},lg:{start:"lg:items-start",end:"lg:items-end",center:"lg:items-center",baseline:"lg:items-baseline",stretch:"lg:items-stretch"}},Ex={sm:{start:"self-start",end:"self-end",center:"self-center",baseline:"self-baseline",stretch:"self-stretch"},md:{start:"md:self-start",end:"md:self-end",center:"md:self-center",baseline:"md:self-baseline",stretch:"md:self-stretch"},lg:{start:"lg:self-start",end:"lg:self-end",center:"lg:self-center",baseline:"lg:self-baseline",stretch:"lg:self-stretch"}},Ix={sm:{auto:"justify-self-auto",start:"justify-self-start",end:"justify-self-end",center:"justify-self-center",baseline:"justify-self-baseline",stretch:"justify-self-stretch"},md:{auto:"md:justify-self-auto",start:"md:justify-self-start",end:"md:justify-self-end",center:"md:justify-self-center",baseline:"md:justify-self-baseline",stretch:"md:justify-self-stretch"},lg:{auto:"lg:justify-self-auto",start:"lg:justify-self-start",end:"lg:justify-self-end",center:"lg:justify-self-center",baseline:"lg:justify-self-baseline",stretch:"lg:justify-self-stretch"}},Ax={sm:{row:"flex-row","row-reverse":"flex-row-reverse",column:"flex-col","column-reverse":"flex-col-reverse"},md:{row:"md:flex-row","row-reverse":"md:flex-row-reverse",column:"md:flex-col","column-reverse":"md:flex-col-reverse"},lg:{row:"lg:flex-row","row-reverse":"lg:flex-row-reverse",column:"lg:flex-col","column-reverse":"lg:flex-col-reverse"}},Ox={sm:{wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse",nowrap:"flex-nowrap"},md:{wrap:"md:flex-wrap","wrap-reverse":"md:flex-wrap-reverse",nowrap:"md:flex-nowrap"},lg:{wrap:"lg:flex-wrap","wrap-reverse":"lg:flex-wrap-reverse",nowrap:"lg:flex-nowrap"}},kx={sm:{1:"w-full",2:"w-1/2",3:"w-1/3",4:"w-1/4",5:"w-1/5",6:"w-1/6",7:"w-1/7",8:"w-1/8",9:"w-1/9",10:"w-1/10",11:"w-1/11",12:"w-1/12"},md:{1:"md:w-full",2:"md:w-1/2",3:"md:w-1/3",4:"md:w-1/4",5:"md:w-1/5",6:"md:w-1/6",7:"md:w-1/7",8:"md:w-1/8",9:"md:w-1/9",10:"md:w-1/10",11:"md:w-1/11",12:"md:w-1/12"},lg:{1:"lg:w-full",2:"lg:w-1/2",3:"lg:w-1/3",4:"lg:w-1/4",5:"lg:w-1/5",6:"lg:w-1/6",7:"lg:w-1/7",8:"lg:w-1/8",9:"lg:w-1/9",10:"lg:w-1/10",11:"lg:w-1/11",12:"lg:w-1/12"}},zx={sm:{1:"order-1",2:"order-2",3:"order-3",4:"order-4",5:"order-5",6:"order-6",7:"order-7",8:"order-8",9:"order-9",10:"order-10",11:"order-11",12:"order-12",first:"order-first",last:"order-last",none:"order-none"},md:{1:"md:order-1",2:"md:order-2",3:"md:order-3",4:"md:order-4",5:"md:order-5",6:"md:order-6",7:"md:order-7",8:"md:order-8",9:"md:order-9",10:"md:order-10",11:"md:order-11",12:"md:order-12",first:"md:order-first",last:"md:order-last",none:"md:order-none"},lg:{1:"lg:order-1",2:"lg:order-2",3:"lg:order-3",4:"lg:order-4",5:"lg:order-5",6:"lg:order-6",7:"lg:order-7",8:"lg:order-8",9:"lg:order-9",10:"lg:order-10",11:"lg:order-11",12:"lg:order-12",first:"lg:order-first",last:"lg:order-last",none:"lg:order-none"}},Sx={sm:{0:"grow-0",1:"grow"},md:{0:"md:grow-0",1:"md:grow"},lg:{0:"lg:grow-0",1:"lg:grow"}},Lx={sm:{0:"shrink-0",1:"shrink"},md:{0:"md:shrink-0",1:"md:shrink"},lg:{0:"lg:shrink-0",1:"lg:shrink"}},Cx=(e,t,n,r="sm")=>{const o=[];switch(typeof e){case"object":for(const[r,i]of Object.entries(e))t[r]&&o.push(t?.[r]?.[i]??t?.[r]?.[n?.[r]]??"");break;case"string":case"number":const i=r;o.push(t?.[i]?.[e]??t?.[i]?.[n?.[i]]??"");break;default:if(void 0===e)break;o.push(t?.[r]?.[n]??"")}return o.join(" ")},Rx=({className:e,cols:t,gap:n,gapX:r,gapY:o,align:i,justify:a,gridFlow:s,colsSubGrid:l=!1,rowsSubGrid:c=!1,autoRows:d=!1,autoCols:f=!1,children:h,...m})=>{const g=Cx(t,yx,1),p=Cx(n,Nx,"sm"),M=Cx(r,xx,""),y=Cx(o,Dx,""),N=Cx(i,jx,""),x=Cx(a,bx,""),D=Cx(s,Tx,"");return(0,u.jsx)("div",{className:me("grid",{"grid-cols-subgrid":l,"grid-rows-subgrid":c,"auto-cols-auto":f,"auto-rows-auto":d},g,p,M,y,N,x,D,e),...m,children:h})};Rx.Item=({className:e,children:t,colSpan:n,colStart:r,alignSelf:o,justifySelf:i,...a})=>{const s=Cx(n,vx,0),l=Cx(r,wx,0),c=Cx(o,Ex,""),d=Cx(i,Ix,"");return(0,u.jsx)("div",{className:me(s,l,c,d,e),...a,children:t})};const Ux=(0,d.createContext)({}),Qx=({containerType:e="flex",gap:t="sm",gapX:n,gapY:r,direction:o,justify:i,align:a,wrap:s,cols:l,className:c,children:d,...f})=>{if("grid"===e)return(0,u.jsx)(Ux.Provider,{value:{containerType:e},children:(0,u.jsx)(Rx,{className:c,gap:t,gapX:n,gapY:r,cols:l,children:d,align:a,justify:i,...f})});const h=Cx(s,Ox,""),m=Cx(t,Nx,"sm"),g=Cx(n,xx,""),p=Cx(r,Dx,""),M=Cx(o,Ax,""),y=Cx(i,bx,""),N=Cx(a,jx,""),x=me("flex",h,m,g,p,M,y,N,c);return(0,u.jsx)(Ux.Provider,{value:{containerType:e,cols:l},children:"flex"===e?(0,u.jsx)("div",{className:x,children:d}):(0,u.jsx)(Rx,{className:c,gap:t,gapX:n,gapY:r,cols:l,children:d,align:a,justify:i,...f})})},Yx=({grow:e,shrink:t,order:n,alignSelf:r,justifySelf:o,className:i,children:a,...s})=>{const{containerType:l,cols:c}=(0,d.useContext)(Ux);if("grid"===l)return(0,u.jsx)(Rx.Item,{className:i,alignSelf:r,justifySelf:o,children:a,...s});const f=Cx(r,Ex,""),h=Cx(o,Ix,""),m=Cx(e,Sx,0),g=Cx(t,Lx,0),p=Cx(n,zx,0),M=Cx(c,kx,1);return(0,u.jsx)("div",{className:me("box-border",m,g,p,f,h,M,i),children:a})};Qx.Item=Yx,Qx.displayName="Container",Yx.displayName="Container.Item";var Px=["title","content","placement","arrow","interactive","portalId","children"];function _x(){return _x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_x.apply(null,arguments)}const Fx=function(e){var t=e.title,n=e.content,r=e.placement,o=void 0===r?"bottom":r,i=e.arrow,a=void 0===i||i,s=e.interactive,l=void 0!==s&&s,c=e.portalId,u=void 0===c?"srfm-settings-container":c,d=e.children,f=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Px);return d?React.createElement(Mx,_x({title:t,content:n,placement:o,arrow:a,interactive:l,tooltipPortalId:u},f),d):null};function Bx(e){return Bx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bx(e)}var Vx=function(e){switch(null==e?void 0:e.toLowerCase()){case"unread":return"yellow";case"read":return"green";case"trash":return"red";default:return"neutral"}},Wx=function(e){switch(null==e?void 0:e.toLowerCase()){case"unread":return(0,zu.__)("Unread","sureforms");case"read":return(0,zu.__)("Read","sureforms");case"trash":return(0,zu.__)("Trash","sureforms");default:return e}},Hx=function(e){if(!e||"object"!==Bx(e))return"-";var t=Object.keys(e)[0];return t&&e[t]||"-"},Gx=function(e){if(!e)return"-";try{return new Date(e.replace(" ","T")).toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}catch(t){return e}};const qx=Qu("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),$x=Qu("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Zx=Qu("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),Kx=p("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),Xx=(0,d.forwardRef)((({id:e,label:t,defaultChecked:n=!1,checked:r,onChange:o,indeterminate:i,disabled:a,size:s="md",className:l,...c},f)=>{const h=(0,d.useMemo)((()=>e||`checkbox-${jm()}`),[e]),m=(0,d.useMemo)((()=>typeof r<"u"),[r]),[g,p]=(0,d.useState)(n||!1),M="primary",y={sm:{checkbox:"size-4 rounded gap-1",icon:"size-3",text:"text-sm",description:"text-sm",gap:"gap-0.5"},md:{checkbox:"size-5 rounded gap-1",icon:"size-4",text:"text-base",description:"text-sm",gap:"gap-1"}},N={primary:{checkbox:"border-border-strong hover:border-border-interactive checked:border-border-interactive bg-white checked:bg-toggle-on checked:hover:bg-toggle-on-hover checked:hover:border-toggle-on-hover focus:ring-2 focus:ring-offset-2 focus:ring-focus",icon:"text-white"}},x=(0,d.useCallback)((()=>m?r:g),[m,r,g]),D=(0,d.useCallback)((()=>(0,d.isValidElement)(t)?t:t?.heading||t?.description?(0,u.jsxs)("div",{className:y[s].gap,children:[t?.heading&&(0,u.jsx)(Hm,{className:me("text-text-primary font-medium leading-4 m-0",y[s].text,y[s].gap,a&&"text-text-disabled"),htmlFor:h,children:t?.heading}),t?.description&&(0,u.jsx)(Hm,{tag:"p",className:me("font-normal leading-5 m-0",y[s].description,a&&"text-text-disabled"),variant:"help",children:t?.description})]}):null),[t,s,a]);return(0,u.jsxs)("div",{className:me("inline-flex items-center justify-center gap-2",!!t&&"items-start",a&&"cursor-not-allowed"),children:[(0,u.jsxs)("label",{className:me("relative flex items-center justify-center rounded-full p-0.5",!a&&"cursor-pointer"),htmlFor:h,children:[(0,u.jsx)("input",{ref:f,id:h,type:"checkbox",className:me("peer relative cursor-pointer appearance-none transition-all m-0 before:content-[''] checked:before:content-[''] checked:before:hidden before:hidden !border-1.5 border-solid",N[M].checkbox,y[s].checkbox,a&&"cursor-not-allowed disabled:bg-white checked:disabled:bg-white disabled:border-border-disabled checked:disabled:border-border-disabled",l),checked:x(),onChange:e=>{if(a)return;const t=e.target.checked;m||p(t),"function"==typeof o&&o(t)},disabled:a,...c}),(0,u.jsx)("span",{className:me("pointer-events-none inline-flex items-center absolute top-2/4 not-rtl:left-2/4 rtl:right-2/4 -translate-y-2/4 -translate-x-2/4 text-white opacity-0 transition-opacity peer-checked:opacity-100",N[M].icon,a&&"cursor-not-allowed peer-disabled:text-border-disabled"),children:i?(0,u.jsx)(Kx,{className:me(y[s]?.icon)}):(0,u.jsx)(ye,{className:me(y[s]?.icon)})})]}),!!t&&D()]})}));Xx.displayName="Checkbox";const Jx=(0,d.createContext)(void 0),eD=()=>{const e=(0,d.useContext)(Jx);if(!e)throw new Error("Table components must be used within Table component");return e},tD=({children:e,className:t,checkboxSelection:n=!1,...r})=>{const o={checkboxSelection:n},i=d.Children.toArray(e).find((e=>d.isValidElement(e)&&e.type===sD)),a=d.Children.toArray(e).filter((e=>d.isValidElement(e)&&e.type!==sD));return(0,u.jsx)(Jx.Provider,{value:o,children:(0,u.jsxs)("div",{className:"flow-root border-0.5 border-solid border-border-subtle rounded-md divide-y-0.5 divide-x-0 divide-solid divide-border-subtle overflow-hidden",children:[(0,u.jsx)("div",{className:"overflow-x-auto w-full",children:(0,u.jsx)("div",{className:"relative",children:(0,u.jsx)("table",{className:me("table-fixed min-w-full border-collapse border-spacing-0",t),...r,children:a})})}),i]})})},nD=({children:e,className:t,selected:n,onChangeSelection:r,indeterminate:o,disabled:i,...a})=>{const{checkboxSelection:s}=eD();return(0,u.jsx)("thead",{className:me("bg-background-secondary border-x-0 border-t-0 border-b-0.5 border-solid border-border-subtle",t),...a,children:(0,u.jsxs)("tr",{children:[s&&(0,u.jsx)("th",{scope:"col",className:"relative px-5.5 w-11 overflow-hidden",children:(0,u.jsx)("div",{className:"absolute inset-0 grid grid-cols-1 place-content-center",children:(0,u.jsx)(Xx,{size:"sm",checked:n,indeterminate:o,disabled:i,onChange:e=>{"function"==typeof r&&r(e)},"aria-label":n?"Deselect all":"Select all"})})}),e]})})},rD=({children:e,className:t,...n})=>(0,u.jsx)("th",{scope:"col",className:me("p-3 text-left text-sm font-medium leading-5 text-text-primary",t),...n,children:e}),oD=({children:e,className:t,...n})=>(0,u.jsx)("tbody",{className:me("bg-background-primary divide-y-0.5 divide-x-0 divide-solid divide-border-subtle",t),...n,children:e}),iD=({children:e,selected:t,value:n,className:r,onChangeSelection:o,...i})=>{const{checkboxSelection:a}=eD();return(0,u.jsxs)("tr",{className:me("hover:bg-background-secondary",t&&"bg-background-secondary",r),...i,children:[a&&(0,u.jsx)("td",{className:"relative px-5.5 w-11 overflow-hidden",children:(0,u.jsx)("div",{className:"absolute inset-0 grid grid-cols-1 place-content-center",children:(0,u.jsx)(Xx,{size:"sm",checked:t,onChange:e=>{"function"==typeof o&&o(e,n)},"aria-label":"Select row"})})}),e]})},aD=({children:e,className:t,...n})=>(0,u.jsx)("td",{className:me("px-3 py-3.5 text-sm font-normal leading-5 text-text-secondary",t),...n,children:e}),sD=({children:e,className:t,...n})=>{const{checkboxSelection:r}=eD();return(0,u.jsx)("div",{className:me("px-3 py-3",r&&"px-4",t),...n,children:e})};tD.displayName="Table",nD.displayName="Table.Head",rD.displayName="Table.HeadCell",oD.displayName="Table.Body",iD.displayName="Table.Row",aD.displayName="Table.Cell",sD.displayName="Table.Footer",tD.Head=nD,tD.HeadCell=rD,tD.Body=oD,tD.Row=iD,tD.Cell=aD,tD.Footer=sD;const lD={400:"font-normal",500:"font-medium",600:"font-semibold",700:"font-bold"},cD={36:"text-4xl",30:"text-3xl",24:"text-2xl",20:"text-xl",18:"text-lg",16:"text-base",14:"text-sm",12:"text-xs"},uD={44:"leading-11",38:"leading-9.5",32:"leading-8",30:"leading-7.5",28:"leading-7",24:"leading-6",20:"leading-5",16:"leading-4"},dD={2:"tracking-2"},fD={brand600:"text-brand-primary-600",link:"text-link-primary",primary:"text-text-primary",secondary:"text-text-secondary",tertiary:"text-text-tertiary",disabled:"text-text-disabled",help:"text-field-helper",label:"text-field-label",info:"text-support-info",success:"text-support-success",warning:"text-support-warning",error:"text-support-error",inverse:"text-text-on-color"},hD=(0,d.forwardRef)((function({as:e,children:t,weight:n,size:r,lineHeight:o,letterSpacing:i,color:a="primary",className:s,...l},c){return(0,u.jsx)(e||"p",{ref:c,className:me("m-0 p-0",n?lD[n]:"",r?cD[r]:"",o?uD[o]:"",i?dD[i]:"",a?fD[a]:"",s),...l,children:t})})),mD={xs:{general:"text-xs min-w-6 h-6",ellipse:"text-xs min-w-6",icon:"size-4"},sm:{general:"text-xs min-w-8 h-8",ellipse:"text-xs min-w-8",icon:"size-4"},md:{general:"text-sm min-w-10 h-10",ellipse:"text-sm min-w-10",icon:"size-5"},lg:{general:"text-base min-w-12 h-12",ellipse:"text-base min-w-12",icon:"size-6"}},gD="group disabled:border-field-border-disabled opacity-50",pD=(0,d.createContext)({size:"sm",disabled:!1}),MD=()=>(0,d.useContext)(pD),yD=({size:e="sm",disabled:t=!1,children:n,className:r,...o})=>(0,u.jsx)(pD.Provider,{value:{size:e,disabled:t},children:(0,u.jsx)("nav",{role:"navigation","aria-label":"pagination",className:me("flex w-full justify-center box-border m-0",r),...o,children:n})});yD.displayName="Pagination";const ND=(0,d.forwardRef)((({className:e,...t},n)=>(0,u.jsx)("ul",{ref:n,className:me("m-0 p-0 w-full flex justify-center flex-row items-center gap-1","list-none",e),...t})));ND.displayName="Pagination.Content";const xD=(0,d.forwardRef)((({isActive:e=!1,className:t,children:n,...r},o)=>{const{disabled:i}=MD();return(0,u.jsx)("li",{ref:o,className:me("flex",i&&gD),children:(0,u.jsx)(DD,{isActive:e,disabled:i,className:t,...r,children:n})})}));xD.displayName="Pagination.Item";const DD=({isActive:e=!1,tag:t="a",children:n,className:r,...o})=>{const{size:i,disabled:a}=MD(),s=e=>e.preventDefault();return(0,u.jsx)(De,{tag:t,size:i,variant:"ghost",className:me("no-underline bg-transparent p-0 m-0 border-none","flex justify-center items-center rounded text-button-secondary","focus:outline focus:outline-1 focus:outline-border-subtle focus:bg-button-tertiary-hover",mD[i].general,!a&&e&&"text-button-primary active:text-button-primary bg-brand-background-50",a&&[gD,"group-disabled:text-field-color-disabled","focus:ring-transparent cursor-not-allowed"],r),disabled:a,...o,onClick:e=>ge(o.onClick||(()=>{}),a?s:()=>{})(e),children:(0,u.jsx)("span",{className:"px-1 flex",children:n})})},vD=e=>{const{size:t,disabled:n}=MD();return(0,u.jsx)("li",{className:me("flex",n&&gD),"aria-label":"Go to previous page",children:(0,u.jsx)(DD,{className:me("[&>span]:flex [&>span]:items-center"),...e,children:(0,u.jsx)(ug,{className:me(mD[t].icon)})})})};vD.displayName="Pagination.Previous";const wD=e=>{const{size:t,disabled:n}=MD();return(0,u.jsx)("li",{className:me("flex",n&&gD),"aria-label":"Go to next page",children:(0,u.jsx)(DD,{className:me("[&>span]:flex [&>span]:items-center"),...e,children:(0,u.jsx)(dg,{className:me(mD[t].icon)})})})};wD.displayName="Pagination.Next";const TD=e=>{const{size:t,disabled:n}=MD();return(0,u.jsx)("li",{className:me("flex",n&&gD),children:(0,u.jsx)("span",{className:me("flex justify-center",mD[t].ellipse,n&&gD),...e,children:"•••"})})};TD.displayName="Pagination.Ellipsis",yD.Content=ND,yD.Item=xD,yD.Previous=vD,yD.Next=wD,yD.Ellipsis=TD;var bD=[10,20,50,100];const jD=function(e){var t=e.currentPage,n=e.totalPages,r=e.perPage,o=e.onPageChange,i=e.onPerPageChange,a=e.onNextPage,s=e.onPreviousPage,l=e.perPageOptions,c=void 0===l?bD:l,u=e.className,d=void 0===u?"":u,f=e.responsive,h=void 0===f||f,m=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=2*n;if(r+5>=t)return Array.from({length:t},(function(e,t){return t+1}));var o=Math.max(e-n,1)>2,i=Math.min(e+n,t)<t-1,a=1,s=t,l=[];if(!o&&i){var c=3+r,u=Array.from({length:c},(function(e,t){return t+1}));l.push.apply(l,u.concat(["ellipsis",s]))}else if(o&&!i){var d=3+r,f=Array.from({length:d},(function(e,n){return t-d+n+1}));l.push.apply(l,[a,"ellipsis"].concat(f))}else if(o&&i){var h=Array.from({length:r+1},(function(t,r){return e-n+r}));l.push.apply(l,[a,"ellipsis"].concat(h,["ellipsis",s]))}return l}(t,n),g=function(){return React.createElement("div",{className:ix("flex items-center gap-3",h&&"w-full justify-center md:justify-start md:w-auto")},React.createElement(hD,{size:14,color:"secondary"},(0,zu.__)("Page","sureforms")," ",t," ",(0,zu.__)("out of","sureforms")," ",n),React.createElement("div",{className:"w-20"},React.createElement(Bm,{value:r,onChange:i,size:"sm"},React.createElement(Bm.Button,{render:function(e){return e}}),React.createElement(Bm.Options,{className:"z-999999"},c.map((function(e){return React.createElement(Bm.Option,{key:e,value:e},e)}))))))},p=function(){return React.createElement(yD,{className:"w-full md:!w-fit"},React.createElement(yD.Content,null,React.createElement(yD.Previous,{onClick:s,disabled:1===t,className:ix(1===t&&"opacity-50 text-text-tertiary cursor-not-allowed")}),m.map((function(e,n){return"ellipsis"===e?React.createElement(yD.Ellipsis,{key:"ellipsis-".concat(n)}):React.createElement(yD.Item,{key:e,isActive:t===e,onClick:function(){return o(e)}},e)})),React.createElement(yD.Next,{onClick:a,disabled:t===n,className:ix(t===n&&"opacity-50 text-text-tertiary cursor-not-allowed")})))};return React.createElement("div",{className:ix("flex items-center justify-between flex-wrap gap-4 w-full",d)},React.createElement(g,null),React.createElement(p,null))},ED=function(e){var t=e.data,n=void 0===t?[]:t,r=e.columns,o=void 0===r?[]:r,i=e.selectedItems,a=void 0===i?[]:i,s=e.onToggleAll,l=e.onChangeRowSelection,c=e.indeterminate,u=void 0!==c&&c,d=e.isLoading,f=void 0!==d&&d,h=e.onSort,m=e.getSortDirection,g=e.emptyMessage,p=void 0===g?(0,zu.__)("No entries found","sureforms"):g,M=e.children,y=void 0===M?null:M,N=e.paginationProps,x=void 0===N?null:N;return React.createElement(tD,{className:"rounded-md",checkboxSelection:!0},React.createElement(tD.Head,{selected:!!a.length,onChangeSelection:s,indeterminate:u},o.map((function(e,t){var n,r=e.sortable?null==m?void 0:m(null!==(n=null==e?void 0:e.sortBy)&&void 0!==n?n:e.key):null,o="asc"===r?qx:"desc"===r?$x:Zx,i=React.createElement(Qx,{align:"center",className:"gap-2",justify:"right"===e.align&&"end"},e.label,e.sortable&&React.createElement(o,{className:ix("w-4 h-4",r?"text-text-primary":"text-text-tertiary")}));return React.createElement(tD.HeadCell,{key:t,className:ix("whitespace-nowrap",null==e?void 0:e.headerClassName)},e.sortable?React.createElement("div",{role:"button",tabIndex:0,className:"cursor-pointer select-none",onClick:function(){var t;return null==h?void 0:h(null!==(t=null==e?void 0:e.sortBy)&&void 0!==t?t:e.key)},onKeyDown:function(t){var n;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),null==h||h(null!==(n=null==e?void 0:e.sortBy)&&void 0!==n?n:e.key))}},i):i)}))),React.createElement(tD.Body,null,f?Array.from({length:10},(function(e,t){return React.createElement(tD.Row,{key:t,className:"[&_div:has(label)]:invisible relative"},o.map((function(e,t){return React.createElement(tD.Cell,{key:t},React.createElement(Vm,{className:"absolute left-3.5 size-4 rounded-md"}),React.createElement(Vm,{variant:"rectangular",className:ix("h-4 rounded-md w-28","right"===e.align&&"ml-auto")}))})))})):0===n.length?React.createElement(tD.Row,{className:"[&_div:has(label)]:invisible"},React.createElement(tD.Cell,{colSpan:o.length},React.createElement("div",{className:"text-center py-8 text-text-secondary"},p))):n.map((function(e){return React.createElement(tD.Row,{key:e.id,selected:a.includes(e.id),onChangeSelection:l,className:"hover:bg-background-primary",value:e},o.map((function(t,n){return React.createElement(tD.Cell,{key:n,className:ix(null==t?void 0:t.columnsClassName)},t.render?t.render(e):e[t.key])})))}))),React.createElement(tD.Footer,{className:"flex flex-col md:flex-row md:justify-between"},f?React.createElement("div",{className:"w-full flex items-center justify-between"},React.createElement(Vm,{className:"h-8 w-24 rounded-md"}),React.createElement(Vm,{className:"h-8 w-32 rounded-md"})):x?React.createElement(jD,x):y))};function ID(){return ID=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ID.apply(null,arguments)}const AD=function(e){var t=e.data,n=void 0===t?[]:t,r=e.columns,o=e.selectedItems,i=void 0===o?[]:o,a=e.onToggleAll,s=e.onChangeRowSelection,l=e.indeterminate,c=void 0!==l&&l,u=e.isLoading,d=void 0!==u&&u,f=e.onSort,h=e.getSortDirection,m=e.emptyMessage,g=void 0===m?(0,zu.__)("No entries found","sureforms"):m,p=e.onEdit,M=e.onDelete,y=e.onRestore,N=e.paginationProps,x=[{label:(0,zu.__)("Entry ID","sureforms"),key:"entryId",sortable:!0,sortBy:"id",headerClassName:"w-[13%]",render:function(e){return React.createElement(De,{tag:"a",variant:"link",size:"md",className:"[&>span]:p-0 text-text-secondary font-normal hover:underline no-underline",href:"#/entry/".concat(e.id).concat("unread"===e.status?"?read=true":""),onClick:function(t){t.ctrlKey||t.metaKey||2===t.which||(t.preventDefault(),null==p||p(e))}},e.entryId)}},{label:(0,zu.__)("Form Name","sureforms"),key:"formName",headerClassName:"w-[27%]",render:function(e){return e.formPermalink?React.createElement(De,{className:"line-clamp-1 text-text-secondary font-normal no-underline hover:underline",tag:"a",variant:"link",size:"md",href:e.formPermalink,target:"_blank"},e.formName):React.createElement("span",{className:"line-clamp-1"},e.formName)}},{label:(0,zu.__)("Status","sureforms"),key:"status",sortable:!0,headerClassName:"w-[10%]",render:function(e){return React.createElement(zm,{className:"w-fit",variant:Vx(e.status),size:"xs",label:e.statusLabel})}},{label:(0,zu.__)("First Field","sureforms"),key:"firstField",headerClassName:"w-[23%]",render:function(e){return"string"==typeof(null==e?void 0:e.firstField)?React.createElement("span",{className:"line-clamp-1 break-all overflow-hidden"},e.firstField):Array.isArray(null==e?void 0:e.firstField)&&"string"==typeof(null==e?void 0:e.firstField[0])?React.createElement("span",{className:"line-clamp-1 break-all overflow-hidden"},(0,zu.__)("Upload","sureforms")):React.createElement("span",{className:"line-clamp-1 break-all overflow-hidden"}," ",(0,zu.__)("Repeater","sureforms")," ")}},{label:(0,zu.__)("Date & Time","sureforms"),key:"dateTime",sortable:!0,headerClassName:"w-[15%]",render:function(e){var t=sx(e.dateTime),n=t.shortFormat,r=t.fullFormat;return React.createElement(Mx,{content:React.createElement("span",null,r),placement:"top",variant:"dark",arrow:!0,interactive:!0,tooltipPortalId:"srfm-settings-container",className:"z-999999"},React.createElement("span",{className:"text-sm font-normal text-text-secondary"},n))}},{label:(0,zu.__)("Actions","sureforms"),key:"actions",align:"right",headerClassName:"w-[12%]",render:function(e){var t=[];return"trash"!==e.status&&t.push({content:(0,zu.__)("Preview","sureforms"),ariaLabel:(0,zu.__)("Preview","sureforms"),icon:React.createElement(Pu,null),onClick:function(){return null==p?void 0:p(e)},isPreview:!0}),"trash"===e.status?(t.push({content:(0,zu.__)("Restore","sureforms"),ariaLabel:(0,zu.__)("Restore","sureforms"),icon:React.createElement(Wu,null),onClick:function(){return null==y?void 0:y(e)}}),t.push({content:(0,zu.__)("Delete Permanently","sureforms"),ariaLabel:(0,zu.__)("Delete Permanently","sureforms"),icon:React.createElement(Hu,null),onClick:function(){return null==M?void 0:M(e)}})):t.push({content:(0,zu.__)("Move to Trash","sureforms"),ariaLabel:(0,zu.__)("Move to Trash","sureforms"),icon:React.createElement(Hu,null),onClick:function(){return null==M?void 0:M(e)}}),React.createElement(Qx,{align:"center",className:"gap-2",justify:"end"},t.map((function(t,n){return React.createElement(Fx,{key:n,placement:"top",content:t.content},React.createElement(De,ID({variant:"ghost","aria-label":t.ariaLabel,size:"xs",icon:t.icon},t.isPreview?{tag:"a",href:"#/entry/".concat(e.id).concat("unread"===e.status?"?read=true":"")}:{},{onClick:function(e){var n;t.isPreview&&(e.ctrlKey||e.metaKey||2===e.which)||null===(n=t.onClick)||void 0===n||n.call(t,e)}})))})))}}],D=r||x;return React.createElement(ED,{data:n,columns:D,selectedItems:i,onToggleAll:a,onChangeRowSelection:s,indeterminate:c,isLoading:d,onSort:f,getSortDirection:h,emptyMessage:g,paginationProps:N})};var OD=[(0,zu.__)("Track submission for all your forms","sureforms"),(0,zu.__)("View, filter, and analyze submissions in real time","sureforms"),(0,zu.__)("Export data for further processing","sureforms"),(0,zu.__)("Edit and manage your entries with ease","sureforms")],kD=function(){window.open(srfm_admin.site_url+"/wp-admin/edit.php?post_type=sureforms_form","_self")};const zD=function(){return React.createElement("div",{className:"flex items-center justify-center p-2 bg-background-secondary rounded-lg"},React.createElement("div",{className:"flex flex-col md:flex-row items-center gap-6 bg-background-primary rounded-md shadow-sm-blur-1 p-6 w-full border-0.5 border-solid border-border-subtle"},React.createElement("div",{className:"flex gap-4"},React.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQwIiBoZWlnaHQ9IjI0MCIgdmlld0JveD0iMCAwIDI0MCAyNDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSIyNDAiIGhlaWdodD0iMjQwIiByeD0iMTIiIGZpbGw9IiNGQ0YwRTEiLz4KPHBhdGggZD0iTTE0Mi42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QuMzY3NkMxOTAuMjUgNjQuNDY3OSAxOTAuMzQ2IDY0LjUzOTkgMTkwLjY2NCA2NC43NTk1IiBzdHJva2U9IiNENTQ0MDciIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+Cjwvc3ZnPgo=",alt:(0,zu.__)("No entries yet","sureforms"),className:"w-[320px] h-[320px]"})),React.createElement("div",{className:"flex flex-col gap-2 max-w-[884px]"},React.createElement(hD,{size:20,lineHeight:30,weight:600,letterSpacing:-.5,color:"primary"},(0,zu.__)("No entries? No worries! This page will be flooded soon!","sureforms")),React.createElement("div",{className:"flex flex-col"},React.createElement(hD,{size:16,lineHeight:24,weight:400,color:"secondary"},(0,zu.__)("Once you publish and share your form, this space will turn into a powerful insights hub where you can:","sureforms")),React.createElement("ul",{className:"flex flex-col list-disc list-inside leading-7 ml-2.5 mt-2 mb-0 mr-0"},OD.map((function(e,t){return React.createElement("li",{key:t,className:"m-0"},React.createElement(hD,{className:"inline-block",size:16,lineHeight:28,weight:400,color:"secondary"},e))})))),React.createElement(De,{className:"w-fit mt-2",variant:"primary",size:"md",onClick:kD},(0,zu.__)("Go to Forms","sureforms")))))},SD=(0,d.createContext)({}),LD=()=>(0,d.useContext)(SD),CD={open:{opacity:1},exit:{opacity:0}},RD={duration:.2},UD=({open:e,setOpen:t,children:n,trigger:r=null,className:o,exitOnClickOutside:i=!1,exitOnEsc:a=!0,design:s="simple",scrollLock:l=!0})=>{const c=void 0!==e&&void 0!==t,[f,h]=(0,d.useState)(!1),m=(0,d.useRef)(null),g=(0,d.useRef)(null),p=(0,d.useMemo)((()=>c?e:f),[e,f]),M=(0,d.useMemo)((()=>c?t:h),[h,h]),y=()=>{p||M(!0)},N=()=>{p&&M(!1)},x=(0,d.useCallback)((()=>(0,d.isValidElement)(r)?(0,d.cloneElement)(r,{onClick:ge(y,r?.props?.onClick)}):"function"==typeof r?r({onClick:y}):null),[r,y,N]),D=e=>{"Escape"===e.key&&a&&N()},v=e=>{i&&m.current&&!m.current.contains(e.target)&&N()};return(0,d.useEffect)((()=>(window.addEventListener("keydown",D),document.addEventListener("mousedown",v),()=>{window.removeEventListener("keydown",D),document.removeEventListener("mousedown",v)})),[p]),(0,d.useEffect)((()=>{if(!l)return;const e=document.querySelector("html");return p&&e&&(e.style.overflow="hidden"),()=>{e&&(e.style.overflow="")}}),[p]),(0,u.jsxs)(u.Fragment,{children:[x(),(0,u.jsx)(SD.Provider,{value:{open:p,setOpen:M,handleClose:N,design:s,dialogContainerRef:g,dialogRef:m},children:(0,u.jsx)("div",{ref:g,className:me("fixed z-999999 w-0 h-0 overflow-visible",o),children:n})})]})};UD.displayName="Dialog";const QD=({children:e,className:t})=>{const{open:n,handleClose:r,dialogRef:o}=LD();return(0,u.jsx)(Ge,{children:n&&(0,u.jsx)(fl.div,{className:"fixed inset-0 overflow-y-auto",initial:"exit",animate:"open",exit:"exit",variants:CD,role:"dialog",transition:RD,children:(0,u.jsx)("div",{className:"flex items-center justify-center min-h-full",children:(0,u.jsx)("div",{ref:o,className:me("flex flex-col gap-5 w-120 h-fit bg-background-primary border border-solid border-border-subtle rounded-xl shadow-soft-shadow-2xl my-5 overflow-hidden",t),children:"function"==typeof e?e({close:r}):e})})})})};QD.displayName="Dialog.Panel";const YD=({className:e,...t})=>{const{open:n,dialogContainerRef:r}=LD();return r?.current?(0,u.jsx)(u.Fragment,{children:(0,Se.createPortal)((0,u.jsx)(Ge,{children:n&&(0,u.jsx)(fl.div,{className:me("fixed inset-0 -z-10 bg-background-inverse/90",e),...t,initial:"exit",animate:"open",exit:"exit",variants:CD,transition:RD})}),r.current)}):null};YD.displayName="Dialog.Backdrop";const PD=({children:e,className:t,...n})=>(0,u.jsx)("div",{className:me("space-y-2 px-5 pt-5 pb-1",t),...n,children:e});PD.displayName="Dialog.Header";const _D=({children:e,as:t="h3",className:n,...r})=>(0,u.jsx)(t,{className:me("text-base font-semibold text-text-primary m-0 p-0",n),...r,children:e});_D.displayName="Dialog.Title";const FD=({children:e,as:t="p",className:n,...r})=>(0,u.jsx)(t,{className:me("text-sm font-normal text-text-secondary my-0 ml-0 mr-1 p-0",n),...r,children:e});FD.displayName="Dialog.Description";const BD=({className:e,...t})=>(0,u.jsx)("button",{className:me("bg-transparent inline-flex justify-center items-center border-0 p-1 m-0 cursor-pointer focus:outline-none outline-none shadow-none",e),"aria-label":"Close dialog",...t,children:(0,u.jsx)(M,{className:"size-4 text-text-primary shrink-0"})}),VD=({children:e,as:t=d.Fragment,...n})=>{const{handleClose:r}=LD();return e?t===d.Fragment?"function"==typeof e?e({close:r}):(0,d.cloneElement)(e,{onClick:r}):(0,u.jsx)(t,{...n,onClick:r,children:e}):(0,u.jsx)(BD,{onClick:r,...n})};VD.displayName="Dialog.CloseButton";const WD=({children:e,className:t,...n})=>(0,u.jsx)("div",{className:me("px-5",t),...n,children:e});WD.displayName="Dialog.Body";const HD=({children:e,className:t})=>{const{design:n,handleClose:r}=LD();return(0,u.jsx)("div",{className:me("p-4 flex justify-end gap-3",{"bg-background-secondary":"footer-divided"===n},t),children:e?"function"==typeof e?e({close:r}):e:null})};HD.displayName="Dialog.Footer",UD.Panel=QD,UD.Title=_D,UD.Description=FD,UD.CloseButton=VD,UD.Header=PD,UD.Body=WD,UD.Footer=HD,UD.Backdrop=YD;var GD=o(5556),qD=o.n(GD);function $D(e){return $D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$D(e)}function ZD(){ZD=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,n,r){return Object.defineProperty(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r})}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(t,n,r,o){var i=n&&n.prototype instanceof f?n:f,a=Object.create(i.prototype);return l(a,"_invoke",function(t,n,r){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=D(s,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(1===o)throw o=4,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=3;var c=u(t,n,r);if("normal"===c.type){if(o=r.done?4:2,c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=4,r.method="throw",r.arg=c.arg)}}}(t,r,new T(o||[])),!0),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d={};function f(){}function h(){}function m(){}var g={};l(g,i,(function(){return this}));var p=Object.getPrototypeOf,M=p&&p(p(b([])));M&&M!==n&&r.call(M,i)&&(g=M);var y=m.prototype=f.prototype=Object.create(g);function N(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==$D(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function D(t,n){var r=n.method,o=t.i[r];if(o===e)return n.delegate=null,"throw"===r&&t.i.return&&(n.method="return",n.arg=e,D(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var i=u(o,t.i,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,d;var a=i.arg;return a?a.done?(n[t.r]=a.value,n.next=t.n,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,d):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}function v(e){this.tryEntries.push(e)}function w(t){var n=t[4]||{};n.type="normal",n.arg=e,t[4]=n}function T(e){this.tryEntries=[[-1]],e.forEach(v,this),this.reset(!0)}function b(t){if(null!=t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError($D(t)+" is not iterable")}return h.prototype=m,l(y,"constructor",m),l(m,"constructor",h),h.displayName=l(m,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,l(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},t.awrap=function(e){return{__await:e}},N(x.prototype),l(x.prototype,a,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new x(c(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},N(y),l(y,s,"Generator"),l(y,i,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},t.values=b,T.prototype={constructor:T,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(w),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(e){a.type="throw",a.arg=t,n.next=e}for(var o=n.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return r("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,r(l),!0;if(s<c)return r(c),!1}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r[0]>-1&&r[0]<=this.prev&&this.prev<r[2]){var o=r;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[2]===e)return this.complete(n[4],n[3]),w(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[0]===e){var r=n[4];if("throw"===r.type){var o=r.arg;w(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={i:b(t),r:n,n:r},"next"===this.method&&(this.arg=e),d}},t}function KD(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function XD(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return JD(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?JD(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function JD(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ev=function(e){var t=e.isOpen,n=e.title,r=e.description,o=e.onConfirm,i=void 0===o?function(){}:o,s=e.onCancel,l=void 0===s?function(){}:s,c=e.confirmButtonText,u=void 0===c?(0,zu.__)("Confirm","sureforms"):c,d=e.cancelButtonText,f=void 0===d?(0,zu.__)("Cancel","sureforms"):d,h=e.destructiveConfirmButton,m=void 0===h||h,g=e.requireConfirmation,p=void 0!==g&&g,M=e.verificationText,y=void 0===M?(0,zu.__)("delete","sureforms"):M,N=e.afterOpenBody,x=void 0===N?null:N,D=e.beforeClosingBody,v=void 0===D?null:D,w=y||(0,zu.__)("delete","sureforms"),T=XD((0,a.useState)(""),2),b=T[0],j=T[1],E=XD((0,a.useState)(""),2),I=E[0],A=E[1],O=XD((0,a.useState)(!1),2),k=O[0],z=O[1],S=(0,a.useRef)(!0);(0,a.useEffect)((function(){return S.current=!0,function(){S.current=!1}}),[]);var L=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){KD(i,r,o,a,s,"next",e)}function s(e){KD(i,r,o,a,s,"throw",e)}a(void 0)}))}}(ZD().mark((function e(){return ZD().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"==typeof i){e.next=2;break}return e.abrupt("return");case 2:if(!p||C(!0)){e.next=4;break}return e.abrupt("return");case 4:return z(!0),e.prev=5,e.next=8,i();case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(5),console.error("Confirmation dialog error:",e.t0);case 13:return e.prev=13,S.current&&z(!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[5,10,13,16]])})));return function(){return e.apply(this,arguments)}}(),C=function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return b.toLowerCase()!==w.toLowerCase()?(t&&(null===(e=document.querySelector('input[name="delete-confirmation-text"]'))||void 0===e||e.focus()),A((0,zu.sprintf)((0,zu.__)('Please type "%s" in the input box',"sureforms"),w)),!1):(A(""),!0)};return(0,a.useLayoutEffect)((function(){!t&&p&&(j(""),A(""))}),[t]),React.createElement(UD,{design:"simple",exitOnEsc:!0,scrollLock:!0,setOpen:l,open:t},React.createElement(UD.Backdrop,null),React.createElement(UD.Panel,{className:"gap-0"},React.createElement(UD.Header,null,React.createElement("div",{className:"flex items-center justify-between"},React.createElement(UD.Title,null,n),React.createElement(UD.CloseButton,{onClick:l})),React.createElement(UD.Description,null,r)),p?React.createElement(UD.Body,{className:"mt-3 space-y-3"},x,React.createElement(Hm,{className:"text-text-secondary font-normal",tag:"p",variant:"neutral",size:"sm"},(0,zu.sprintf)((0,zu.__)('To confirm, type "%s" in the box below:',"sureforms"),w)),React.createElement("div",null,React.createElement(Gm,{ref:function(e){e&&e.focus()},name:"delete-confirmation-text",size:"md",type:"text",placeholder:(0,zu.sprintf)((0,zu.__)('Type "%s"',"sureforms"),w),className:"w-full",value:b,onChange:function(e){j(e),p&&I&&A("")},error:I,autoComplete:"off"})),v):null,React.createElement(UD.Footer,null,React.createElement(De,{variant:"outline",onClick:function(){"function"==typeof l&&l()}},f),React.createElement(De,{variant:"primary",onClick:L,icon:k?React.createElement(Lm,{className:"text-background-primary"}):null,iconPosition:"left",loading:k,destructive:m},u))))};ev.propTypes={isOpen:qD().bool.isRequired,title:qD().string.isRequired,description:qD().oneOfType([qD().string,qD().element]).isRequired,onConfirm:qD().func,onCancel:qD().func,confirmButtonText:qD().string,cancelButtonText:qD().string,destructiveConfirmButton:qD().bool,requireConfirmation:qD().bool,verificationText:qD().string};const tv=ev;function nv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return rv(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rv(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ov(e,t){if(e){if("string"==typeof e)return iv(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?iv(e,t):void 0}}function iv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function av(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return sv(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sv(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function lv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return cv(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cv(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var uv=class extends Vl{constructor(e,t){super(),this.options=t,this.#f=e,this.#w=null,this.#T=Gl(),this.bindMethods(),this.setOptions(t)}#f;#b=void 0;#j=void 0;#E=void 0;#I;#A;#T;#w;#O;#k;#z;#S;#L;#C;#R=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#b.addObserver(this),dv(this.#b,this.options)?this.#U():this.updateResult(),this.#Q())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return fv(this.#b,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return fv(this.#b,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#Y(),this.#P(),this.#b.removeObserver(this)}setOptions(e){const t=this.options,n=this.#b;if(this.options=this.#f.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof Tl(this.options.enabled,this.#b))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#_(),this.#b.setOptions(this.options),t._defaulted&&!zl(this.options,t)&&this.#f.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#b,observer:this});const r=this.hasListeners();r&&hv(this.#b,n,this.options,t)&&this.#U(),this.updateResult(),!r||this.#b===n&&Tl(this.options.enabled,this.#b)===Tl(t.enabled,this.#b)&&wl(this.options.staleTime,this.#b)===wl(t.staleTime,this.#b)||this.#F();const o=this.#B();!r||this.#b===n&&Tl(this.options.enabled,this.#b)===Tl(t.enabled,this.#b)&&o===this.#C||this.#V(o)}getOptimisticResult(e){const t=this.#f.getQueryCache().build(this.#f,e),n=this.createResult(t,e);return r=n,!zl(this.getCurrentResult(),r)&&(this.#E=n,this.#A=this.options,this.#I=this.#b.state),n;var r}getCurrentResult(){return this.#E}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),"promise"===n&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#T.status||this.#T.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,n))})}trackProp(e){this.#R.add(e)}getCurrentQuery(){return this.#b}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#f.defaultQueryOptions(e),n=this.#f.getQueryCache().build(this.#f,t);return n.fetch().then((()=>this.createResult(n,t)))}fetch(e){return this.#U({...e,cancelRefetch:e.cancelRefetch??!0}).then((()=>(this.updateResult(),this.#E)))}#U(e){this.#_();let t=this.#b.fetch(this.options,e);return e?.throwOnError||(t=t.catch(xl)),t}#F(){this.#Y();const e=wl(this.options.staleTime,this.#b);if(Nl||this.#E.isStale||!Dl(e))return;const t=vl(this.#E.dataUpdatedAt,e)+1;this.#S=yl.setTimeout((()=>{this.#E.isStale||this.updateResult()}),t)}#B(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#b):this.options.refetchInterval)??!1}#V(e){this.#P(),this.#C=e,!Nl&&!1!==Tl(this.options.enabled,this.#b)&&Dl(this.#C)&&0!==this.#C&&(this.#L=yl.setInterval((()=>{(this.options.refetchIntervalInBackground||Wl.isFocused())&&this.#U()}),this.#C))}#Q(){this.#F(),this.#V(this.#B())}#Y(){this.#S&&(yl.clearTimeout(this.#S),this.#S=void 0)}#P(){this.#L&&(yl.clearInterval(this.#L),this.#L=void 0)}createResult(e,t){const n=this.#b,r=this.options,o=this.#E,i=this.#I,a=this.#A,s=e!==n?e.state:this.#j,{state:l}=e;let c,u={...l},d=!1;if(t._optimisticResults){const o=this.hasListeners(),i=!o&&dv(e,t),a=o&&hv(e,n,t,r);(i||a)&&(u={...u,...ec(l.data,e.options)}),"isRestoring"===t._optimisticResults&&(u.fetchStatus="idle")}let{error:f,errorUpdatedAt:h,status:m}=u;c=u.data;let g=!1;if(void 0!==t.placeholderData&&void 0===c&&"pending"===m){let e;o?.isPlaceholderData&&t.placeholderData===a?.placeholderData?(e=o.data,g=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#z?.state.data,this.#z):t.placeholderData,void 0!==e&&(m="success",c=Rl(o?.data,e,t),d=!0)}if(t.select&&void 0!==c&&!g)if(o&&c===i?.data&&t.select===this.#O)c=this.#k;else try{this.#O=t.select,c=t.select(c),c=Rl(o?.data,c,t),this.#k=c,this.#w=null}catch(e){this.#w=e}this.#w&&(f=this.#w,c=this.#k,h=Date.now(),m="error");const p="fetching"===u.fetchStatus,M="pending"===m,y="error"===m,N=M&&p,x=void 0!==c,D={status:m,fetchStatus:u.fetchStatus,isPending:M,isSuccess:"success"===m,isError:y,isInitialLoading:N,isLoading:N,data:c,dataUpdatedAt:u.dataUpdatedAt,error:f,errorUpdatedAt:h,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>s.dataUpdateCount||u.errorUpdateCount>s.errorUpdateCount,isFetching:p,isRefetching:p&&!M,isLoadingError:y&&!x,isPaused:"paused"===u.fetchStatus,isPlaceholderData:d,isRefetchError:y&&x,isStale:mv(e,t),refetch:this.refetch,promise:this.#T,isEnabled:!1!==Tl(t.enabled,e)};if(this.options.experimental_prefetchInRender){const t=e=>{"error"===D.status?e.reject(D.error):void 0!==D.data&&e.resolve(D.data)},r=()=>{const e=this.#T=D.promise=Gl();t(e)},o=this.#T;switch(o.status){case"pending":e.queryHash===n.queryHash&&t(o);break;case"fulfilled":"error"!==D.status&&D.data===o.value||r();break;case"rejected":"error"===D.status&&D.error===o.reason||r()}}return D}updateResult(){const e=this.#E,t=this.createResult(this.#b,this.options);this.#I=this.#b.state,this.#A=this.options,void 0!==this.#I.data&&(this.#z=this.#b),zl(t,e)||(this.#E=t,this.#W({listeners:(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,n="function"==typeof t?t():t;if("all"===n||!n&&!this.#R.size)return!0;const r=new Set(n??this.#R);return this.options.throwOnError&&r.add("error"),Object.keys(this.#E).some((t=>{const n=t;return this.#E[n]!==e[n]&&r.has(n)}))})()}))}#_(){const e=this.#f.getQueryCache().build(this.#f,this.options);if(e===this.#b)return;const t=this.#b;this.#b=e,this.#j=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#Q()}#W(e){Bl.batch((()=>{e.listeners&&this.listeners.forEach((e=>{e(this.#E)})),this.#f.getQueryCache().notify({query:this.#b,type:"observerResultsUpdated"})}))}};function dv(e,t){return function(e,t){return!1!==Tl(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&fv(e,t,t.refetchOnMount)}function fv(e,t,n){if(!1!==Tl(t.enabled,e)&&"static"!==wl(t.staleTime,e)){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&mv(e,t)}return!1}function hv(e,t,n,r){return(e!==t||!1===Tl(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&mv(e,n)}function mv(e,t){return!1!==Tl(t.enabled,e)&&e.isStaleByTime(wl(t.staleTime,e))}var gv=d.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),pv=d.createContext(!1),Mv=(pv.Provider,(e,t,n)=>t.fetchOptimistic(e).catch((()=>{n.clearReset()})));function yv(e,t){return function(e,t,n){const r=d.useContext(pv),o=d.useContext(gv),i=fc(n),a=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(a),a._optimisticResults=r?"isRestoring":"optimistic",(e=>{if(e.suspense){const t=1e3,n=e=>"static"===e?e:Math.max(e??t,t),r=e.staleTime;e.staleTime="function"==typeof r?(...e)=>n(r(...e)):n(r),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,t))}})(a),((e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))})(a,o),(e=>{d.useEffect((()=>{e.clearReset()}),[e])})(o);const s=!i.getQueryCache().get(a.queryHash),[l]=d.useState((()=>new t(i,a))),c=l.getOptimisticResult(a),u=!r&&!1!==e.subscribed;if(d.useSyncExternalStore(d.useCallback((e=>{const t=u?l.subscribe(Bl.batchCalls(e)):xl;return l.updateResult(),t}),[l,u]),(()=>l.getCurrentResult()),(()=>l.getCurrentResult())),d.useEffect((()=>{l.setOptions(a)}),[a,l]),((e,t)=>e?.suspense&&t.isPending)(a,c))throw Mv(a,l,o);if((({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&void 0===e.data||_l(n,[e.error,r])))({result:c,errorResetBoundary:o,throwOnError:a.throwOnError,query:i.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw c.error;if(i.getDefaultOptions().queries?._experimental_afterQuery?.(a,c),a.experimental_prefetchInRender&&!Nl&&((e,t)=>e.isLoading&&e.isFetching&&!t)(c,r)){const e=s?Mv(a,l,o):i.getQueryCache().get(a.queryHash)?.promise;e?.catch(xl).finally((()=>{l.updateResult()}))}return a.notifyOnChangeProps?c:l.trackResult(c)}(e,uv,t)}var Nv=class extends Vl{#f;#E=void 0;#H;#G;constructor(e,t){super(),this.#f=e,this.setOptions(t),this.bindMethods(),this.#q()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#f.defaultMutationOptions(e),zl(this.options,t)||this.#f.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#H,observer:this}),t?.mutationKey&&this.options.mutationKey&&Il(t.mutationKey)!==Il(this.options.mutationKey)?this.reset():"pending"===this.#H?.state.status&&this.#H.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#H?.removeObserver(this)}onMutationUpdate(e){this.#q(),this.#W(e)}getCurrentResult(){return this.#E}reset(){this.#H?.removeObserver(this),this.#H=void 0,this.#q(),this.#W()}mutate(e,t){return this.#G=t,this.#H?.removeObserver(this),this.#H=this.#f.getMutationCache().build(this.#f,this.options),this.#H.addObserver(this),this.#H.execute(e)}#q(){const e=this.#H?.state??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};this.#E={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#W(e){Bl.batch((()=>{if(this.#G&&this.hasListeners()){const t=this.#E.variables,n=this.#E.context,r={client:this.#f,meta:this.options.meta,mutationKey:this.options.mutationKey};"success"===e?.type?(this.#G.onSuccess?.(e.data,t,n,r),this.#G.onSettled?.(e.data,null,t,n,r)):"error"===e?.type&&(this.#G.onError?.(e.error,t,n,r),this.#G.onSettled?.(void 0,e.error,t,n,r))}this.listeners.forEach((e=>{e(this.#E)}))}))}};function xv(e,t){const n=fc(t),[r]=d.useState((()=>new Nv(n,e)));d.useEffect((()=>{r.setOptions(e)}),[r,e]);const o=d.useSyncExternalStore(d.useCallback((e=>r.subscribe(Bl.batchCalls(e))),[r]),(()=>r.getCurrentResult()),(()=>r.getCurrentResult())),i=d.useCallback(((e,t)=>{r.mutate(e,t).catch(xl)}),[r]);if(o.error&&_l(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}var Dv=function(){var e;return(null===(e=srfm_admin)||void 0===e?void 0:e.global_settings_nonce)||""},vv=function(){return uy()({path:"/sureforms/v1/form-data",method:"GET",headers:{"Content-Type":"application/json","X-WP-Nonce":Dv()}})},wv=function(e){var t=e.entry_ids,n=e.action;return uy()({path:"/sureforms/v1/entries/read-status",method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":Dv()},data:{entry_ids:t,action:n}})},Tv=function(e){var t=e.entry_ids,n=e.action;return uy()({path:"/sureforms/v1/entries/trash",method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":Dv()},data:{entry_ids:t,action:n}})},bv=function(e){var t=e.entry_ids;return uy()({path:"/sureforms/v1/entries/delete",method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":Dv()},data:{entry_ids:t}})},jv=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return uy()({path:"/sureforms/v1/entries/export",method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":Dv()},data:{entry_ids:e.entry_ids||[],form_id:e.form_id||0,status:e.status||"all",search:e.search||"",date_from:e.date_from||"",date_to:e.date_to||""}})};function Ev(e){return Ev="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ev(e)}function Iv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Av(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ev(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ev(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ev(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ov(e){return function(e){if(Array.isArray(e))return kv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return kv(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kv(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var zv={all:["entries"],lists:function(){return[].concat(Ov(zv.all),["list"])},list:function(e){return[].concat(Ov(zv.lists()),[e])},details:function(){return[].concat(Ov(zv.all),["detail"])},detail:function(e){return[].concat(Ov(zv.details()),[+e])}},Sv={all:["forms"],list:function(){return[].concat(Ov(Sv.all),["list"])}},Lv={all:["entry-logs"],lists:function(){return[].concat(Ov(Lv.all),["list"])},list:function(e,t){return[].concat(Ov(Lv.lists()),[+e,t])}},Cv=function(){var e=fc();return xv({mutationFn:wv,onSuccess:function(t,n){var r,o;if(e.invalidateQueries({queryKey:zv.lists()}),(null==n||null===(r=n.entry_ids)||void 0===r?void 0:r.length)>0&&n.entry_ids.forEach((function(t){e.invalidateQueries({queryKey:zv.detail(t)})})),null==n||!n.skipToast){var i=(null==n?void 0:n.action)||"",a=(null==n||null===(o=n.entry_ids)||void 0===o?void 0:o.length)||1,s="";if(1===a){var l=n.entry_ids[0];s=(0,zu.sprintf)((0,zu.__)("Entry#%1$s marked as %2$s.","sureforms"),l,i)}else s=(0,zu.sprintf)((0,zu._n)("%1$s entry marked as %2$s.","%1$s entries marked as %2$s.",a,"sureforms"),a,i);c.success(s),"function"==typeof(null==n?void 0:n.onSuccess)&&n.onSuccess()}},onError:function(e){var t=(null==e?void 0:e.message)||(0,zu.__)("An error occurred while updating read status. Please try again.","sureforms");c.error(t)}})};const Rv=function(e){var t=e.handleClearFilters;return React.createElement("div",{className:"p-6"},React.createElement(Qx,{className:"flex items-center justify-center p-8 bg-background-primary rounded-lg"},React.createElement("div",{className:"text-center max-w-md"},React.createElement(hD,{size:18,lineHeight:28,weight:600,color:"primary",className:"mb-2"},(0,zu.__)("No results found","sureforms")),React.createElement(hD,{size:16,lineHeight:24,weight:400,color:"secondary",className:"mb-4"},(0,zu.__)("We couldn't find any records matching your filters. Try adjusting the filters or resetting them to see all results.","sureforms")),React.createElement(De,{variant:"outline",size:"sm",onClick:t},(0,zu.__)("Clear Filter","sureforms")))))};function Uv(e){return Uv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Uv(e)}function Qv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qv(Object(n),!0).forEach((function(t){Pv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pv(e,t,n){return(t=function(e){var t=function(e){if("object"!=Uv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Uv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Uv(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Fv=function(){var e,t,n=ru(),r=yv({queryKey:Sv.list(),queryFn:vv,staleTime:6e5}),o=r.data,i=void 0===o?{}:o,s=r.isLoading,l=function(){var e=nv(ku(),2),t=e[0],n=e[1],r=nv((0,a.useState)(t.get("status")||""),2),o=r[0],i=r[1],s=nv((0,a.useState)(t.get("form")||""),2),l=s[0],c=s[1],u=nv((0,a.useState)(t.get("search")||""),2),d=u[0],f=u[1],h=nv((0,a.useState)((function(){var e=t.get("date_from"),n=t.get("date_to");return e&&n?{from:new Date(e),to:new Date(n)}:{from:null,to:null}})),2),m=h[0],g=h[1];(0,a.useEffect)((function(){var e=new URLSearchParams(t);o&&"all"!==o?e.set("status",o):e.delete("status"),l&&"all"!==l?e.set("form",l):e.delete("form"),d?e.set("search",d):e.delete("search"),null!=m&&m.from?(e.set("date_from",m.from.toISOString().split("T")[0]),null!=m&&m.to?e.set("date_to",m.to.toISOString().split("T")[0]):e.set("date_to",m.from.toISOString().split("T")[0])):(e.delete("date_from"),e.delete("date_to")),n(e,{replace:!0})}),[o,l,d,m,t,n]);var p=(0,a.useCallback)((function(e){i(e)}),[]),M=(0,a.useCallback)((function(e){c(e)}),[]),y=(0,a.useCallback)((function(e){f(e)}),[]),N=(0,a.useCallback)((function(e){g(e)}),[]);return{statusFilter:o,setStatusFilter:p,formFilter:l,setFormFilter:M,searchQuery:d,setSearchQuery:y,dateRange:m,setDateRange:N,resetFilters:function(){i(""),c(""),f(""),g({from:null,to:null})}}}(),u=l.statusFilter,d=l.setStatusFilter,f=l.formFilter,h=l.setFormFilter,m=l.searchQuery,g=l.setSearchQuery,p=l.dateRange,M=l.setDateRange,y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=av(ku(),2),r=n[0],o=n[1],i=(0,a.useRef)(!1),s=av((0,a.useState)((function(){var t=r.get("page");return t?parseInt(t,10):e})),2),l=s[0],c=s[1],u=av((0,a.useState)(t),2),d=u[0],f=u[1];(0,a.useEffect)((function(){var e=localStorage.getItem("sureforms_entries_per_page");if(e){var t=parseInt(e,10);if(t>0&&t<=1e3)return void f(t)}var n=r.get("per_page");n&&f(parseInt(n,10))}),[r]),(0,a.useEffect)((function(){if(i.current)i.current=!1;else{var e=new URLSearchParams(r);l>1?e.set("page",l.toString()):e.delete("page"),d!==t?e.set("per_page",d.toString()):e.delete("per_page"),o(e,{replace:!0})}}),[l,d,t,r,o]);var h=(0,a.useCallback)((function(e){c(e)}),[]),m=(0,a.useCallback)((function(e){i.current=!0,c(e)}),[]),g=(0,a.useCallback)((function(e){c((function(t){return Math.min(e,t+1)}))}),[]),p=(0,a.useCallback)((function(){c((function(e){return Math.max(1,e-1)}))}),[]),M=(0,a.useCallback)((function(e){f(e),localStorage.setItem("sureforms_entries_per_page",e.toString()),c(1)}),[]);return{currentPage:l,entriesPerPage:d,goToPage:h,silentGoToPage:m,nextPage:g,previousPage:p,changeEntriesPerPage:M}}(1,10),N=y.currentPage,x=y.entriesPerPage,D=y.goToPage,v=y.silentGoToPage,w=y.nextPage,T=y.previousPage,b=y.changeEntriesPerPage,j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=lv(ku(),2),r=n[0],o=n[1],i=lv((0,a.useState)(r.get("sortBy")||e),2),s=i[0],l=i[1],c=lv((0,a.useState)(r.get("order")||t),2),u=c[0],d=c[1],f={id:"id",status:"status",dateTime:"created_at"};(0,a.useEffect)((function(){var e=new URLSearchParams(r);s?e.set("sortBy",s):e.delete("sortBy"),u?e.set("order",u):e.delete("order"),o(e,{replace:!0})}),[s,u,r,o]);var h=(0,a.useCallback)((function(e){var t=f[e];t&&(s===t?d((function(e){return"DESC"===e?"ASC":"DESC"})):(l(t),d("DESC")))}),[s]),m=(0,a.useCallback)((function(e){return s===f[e]?u.toLowerCase():null}),[s,u]);return{sortBy:s,order:u,handleSort:h,getSortDirection:m}}(),E=j.sortBy,I=j.order,A=j.handleSort,O=j.getSortDirection,k=(0,a.useMemo)((function(){if(!p||!p.from)return{date_from:"",date_to:""};var e=function(e){var t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),r=String(e.getDate()).padStart(2,"0");return"".concat(t,"-").concat(n,"-").concat(r)},t=new Date(p.from),n=p.to?new Date(p.to):t;return{date_from:"".concat(e(t)," 00:00:00"),date_to:"".concat(e(n)," 23:59:59")}}),[p]),z=(t={form_id:"all"===f?0:parseInt(f,10),status:u,search:m,date_from:k.date_from,date_to:k.date_to,orderby:E,order:I,per_page:x,page:N},yv({queryKey:zv.list(t),queryFn:function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={form_id:e.form_id||0,status:e.status||"all",search:e.search||"",date_from:e.date_from||"",date_to:e.date_to||"",orderby:e.orderby||"created_at",order:e.order||"DESC",per_page:e.per_page||20,page:e.page||1};return uy()({path:(0,Ky.addQueryArgs)("/sureforms/v1/entries/list",t),method:"GET",headers:{"Content-Type":"application/json","X-WP-Nonce":Dv()}})}(t)},keepPreviousData:!0,staleTime:3e5})),S=z.data,L=z.isLoading,C=z.error,R=z.isError,U=(null==S?void 0:S.entries)||[],Q=(null==S?void 0:S.total_pages)||1,Y=(0,a.useMemo)((function(){return U.map((function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{id:parseInt(e.ID,10),entryId:"".concat((0,zu.__)("Entry","sureforms")," #").concat(e.ID),formId:parseInt(e.form_id,10),formPermalink:e.form_permalink,formName:t[e.form_id]||"".concat((0,zu.__)("Form","sureforms")," #").concat(e.form_id),status:e.status,statusLabel:Wx(e.status),firstField:Hx(e.form_data),dateTime:Gx(e.created_at),rawData:e}}(e,i)}))}),[U,i]);(0,a.useEffect)((function(){N<=1||Y.length>0||L||N>Q&&0===(null==Y?void 0:Y.length)&&D(Q)}),[Y,L]);var P=(0,a.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[{value:"",label:(0,zu.__)("All Forms","sureforms")}];return Object.entries(e).forEach((function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return hx(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hx(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],o=n[1];t.push({value:r,label:o})})),t}(i)}),[i]),_=(0,a.useMemo)((function(){return""!==u&&"all"!==u||""!==f&&"all"!==f||""!==m.trim()||null!==(null==p?void 0:p.from)&&null!==(null==p?void 0:p.to)}),[u,f,m,p]),F=function(){var e=fc();return xv({mutationFn:bv,onSuccess:function(t,n){var r;e.invalidateQueries({queryKey:zv.lists()}),e.invalidateQueries({queryKey:zv.details()});var o=(null==n||null===(r=n.entry_ids)||void 0===r?void 0:r.length)||1,i="";if(1===o){var a=n.entry_ids[0];i=(0,zu.sprintf)((0,zu.__)("Entry#%s deleted permanently.","sureforms"),a)}else i=(0,zu.sprintf)((0,zu._n)("%s entry deleted permanently.","%s entries deleted permanently.",o,"sureforms"),o);c.success(i)},onError:function(e){var t=(null==e?void 0:e.message)||(0,zu.__)("An error occurred. Please try again.","sureforms");c.error(t)}})}(),B=F.mutate,V=F.isPending,W=function(){var e=fc();return xv({mutationFn:Tv,onSuccess:function(t,n){var r;e.invalidateQueries({queryKey:zv.lists()}),e.invalidateQueries({queryKey:zv.details()});var o=(null==n?void 0:n.action)||"",i=(null==n||null===(r=n.entry_ids)||void 0===r?void 0:r.length)||1,a="";if(1===i){var s=n.entry_ids[0];a="trash"===o?(0,zu.sprintf)((0,zu.__)("Entry#%s moved to trash.","sureforms"),s):(0,zu.sprintf)((0,zu.__)("Entry#%s restored successfully.","sureforms"),s)}else a="trash"===o?(0,zu.sprintf)((0,zu._n)("%1$s entry moved to trash.","%1$s entries moved to trash.",i,"sureforms"),i):(0,zu.sprintf)((0,zu._n)("%1$s entry restored successfully.","%1$s entries restored successfully.",i,"sureforms"),i);c.success(a)},onError:function(e){var t=(null==e?void 0:e.message)||(0,zu.__)("An error occurred. Please try again.","sureforms");c.error(t)}})}(),H=W.mutate,G=Cv().mutate,q=xv({mutationFn:jv,onSuccess:function(e){e.success&&e.download_url&&(window.location.href=e.download_url)},onError:function(e){var t=(null==e?void 0:e.message)||(0,zu.__)("An error occurred during export. Please try again.","sureforms");c.error(t)}}),$=q.mutate,Z=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _v(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_v(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,a.useState)({open:!1,title:"",description:"",confirmLabel:"",onConfirm:null,isLoading:!1,destructive:!0}),2),K=Z[0],X=Z[1],J=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||ov(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,a.useState)([]),2),n=t[0],r=t[1],o=(0,a.useMemo)((function(){return n.length>0&&n.length<e.length}),[n,e.length]);return{selectedEntries:n,handleChangeRowCheckbox:function(e,t){r(e?function(e){return[].concat(function(e){return function(e){if(Array.isArray(e))return iv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ov(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e),[t.id])}:function(e){return e.filter((function(e){return e!==t.id}))})},handleToggleAll:function(t){r(t?e.map((function(e){return e.id})):[])},clearSelection:function(){r([])},indeterminate:o}}(Y),ee=J.selectedEntries,te=J.handleChangeRowCheckbox,ne=J.handleToggleAll,re=J.clearSelection,oe=J.indeterminate,ie=(0,a.useMemo)((function(){return null==ee?void 0:ee.some((function(e){var t=Y.find((function(t){return parseInt(t.id)===parseInt(e)}));return t&&"unread"===t.status}))}),[ee,Y]),ae=(0,a.useMemo)((function(){return null==ee?void 0:ee.some((function(e){var t=Y.find((function(t){return parseInt(t.id)===parseInt(e)}));return t&&"read"===t.status}))}),[ee,Y]);(0,a.useEffect)((function(){R&&c.error((null==C?void 0:C.message)||(0,zu.__)("An error occurred while fetching entries.","sureforms"))}),[C]);var se,le=function(){var e=ee.every((function(e){var t;return"trash"===(null===(t=Y.find((function(t){return t.id===e})))||void 0===t?void 0:t.status)}));e?B({entry_ids:ee},{onSuccess:function(){re(),X((function(e){return Yv(Yv({},e),{},{open:!1})}))}}):H({entry_ids:ee,action:"trash"},{onSuccess:function(){re(),X((function(e){return Yv(Yv({},e),{},{open:!1})}))}})},ce=function(){H({entry_ids:ee,action:"restore"},{onSuccess:function(){re(),X((function(e){return Yv(Yv({},e),{},{open:!1})}))}})},ue=function(){d(""),h(""),g(""),M({from:null,to:null}),D(1)};return _||0!==Y.length||L||null==S||!S.emptyTrash?React.createElement("div",{className:ix("px-8 pb-8 bg-background-secondary min-h-screen",!(null!==(e=window.srfm_admin)&&void 0!==e&&null!==(e=e.notices)&&void 0!==e&&e.length)&&"pt-8")},React.createElement("div",{className:"mx-auto"},React.createElement("div",{className:"bg-white rounded-xl border-0.5 border-solid border-border-subtle shadow-sm p-4 space-y-2"},React.createElement("div",{className:"p-1"},React.createElement("div",{className:"flex flex-col lg:flex-row lg:justify-between lg:items-center gap-4 xl:gap-5"},React.createElement(Su,null),React.createElement(px,{statusFilter:u,onStatusFilterChange:function(e){d(e),D(1)},formFilter:f,onFormFilterChange:function(e){h(e),D(1)},searchQuery:m,onSearchChange:function(e){g(e),D(1)},dateRange:p,onDateRangeChange:function(e){M(e),D(1)},formOptions:P,isLoadingForms:s,selectedEntries:ee,onBulkDelete:function(){if(0!==ee.length){var e=ee.every((function(e){var t;return"trash"===(null===(t=Y.find((function(t){return t.id===e})))||void 0===t?void 0:t.status)}));X({open:!0,title:e?(0,zu._n)("Delete Entry","Delete Entries",ee.length,"sureforms"):(0,zu._n)("Move Entry to Trash?","Move Entries to Trash?",ee.length,"sureforms"),description:e?(0,zu.sprintf)((0,zu._n)("Are you sure you want to permanently delete %s entry? This action cannot be undone.","Are you sure you want to permanently delete %s entries? This action cannot be undone.",ee.length,"sureforms"),ee.length):(0,zu.sprintf)((0,zu._n)("%s entry will be moved to trash and can be restored later.","%s entries will be moved to trash and can be restored later.",ee.length,"sureforms"),ee.length),confirmLabel:e?(0,zu.__)("Delete Permanently","sureforms"):(0,zu.__)("Move to Trash","sureforms"),onConfirm:le,isLoading:V,destructive:!0,enableVerification:e,verificationText:"delete"})}},onBulkExport:function(){$({entry_ids:ee,form_id:"all"===f?0:parseInt(f,10),status:u,search:m,date_from:k.date_from,date_to:k.date_to},{onSuccess:function(){re(),c.success((0,zu.__)("Entries exported successfully.","sureforms"))}})},onMarkAsRead:function(){0!==ee.length&&G({entry_ids:ee,action:"read"},{onSuccess:function(){re(),v(1)}})},onMarkAsUnread:function(){0!==ee.length&&G({entry_ids:ee,action:"unread"},{onSuccess:function(){re(),v(1)}})},onBulkRestore:function(){0!==ee.length&&X({open:!0,title:(0,zu._n)("Restore Entry","Restore Entries",ee.length,"sureforms"),description:(0,zu.sprintf)((0,zu._n)("%s entry will be restored from trash.","%s entries will be restored from trash.",ee.length,"sureforms"),ee.length),confirmLabel:(0,zu.__)("Restore","sureforms"),onConfirm:ce,isLoading:!1,destructive:!1})},onClearFilters:ue,hasActiveFilters:_,hasUnreadSelected:ie,hasReadSelected:ae}))),_&&0===Y.length&&!L?React.createElement(Rv,{handleClearFilters:ue}):React.createElement(AD,{data:Y,selectedItems:ee,onToggleAll:ne,onChangeRowSelection:te,indeterminate:oe,isLoading:L,onSort:A,getSortDirection:O,onEdit:function(e){"unread"===e.status?n("/entry/".concat(e.id,"?read=true")):n("/entry/".concat(e.id))},onDelete:function(e){"trash"===e.status?X({open:!0,title:(0,zu.__)("Delete Entry","sureforms"),description:(0,zu.__)("Are you sure you want to permanently delete this entry? This action cannot be undone.","sureforms"),confirmLabel:(0,zu.__)("Delete Permanently","sureforms"),onConfirm:function(){return function(e){B({entry_ids:[e.id]}),X((function(e){return Yv(Yv({},e),{},{open:!1})}))}(e)},isLoading:V,destructive:!0,enableVerification:!0,verificationText:"delete"}):X({open:!0,title:(0,zu.__)("Move Entry to Trash?","sureforms"),description:(0,zu.__)("This entry will be moved to trash and can be restored later.","sureforms"),confirmLabel:(0,zu.__)("Move to Trash","sureforms"),onConfirm:function(){return function(e){H({entry_ids:[e.id],action:"trash"}),X((function(e){return Yv(Yv({},e),{},{open:!1})}))}(e)},isLoading:!1,destructive:!0,enableVerification:!1,verificationText:""})},onRestore:function(e){H({entry_ids:[e.id],action:"restore"})},paginationProps:{currentPage:N,totalPages:Q,perPage:x,onPageChange:D,onPerPageChange:b,onNextPage:function(){return w(Q)},onPreviousPage:T}}))),React.createElement(tv,{isOpen:K.open,onCancel:function(){return X((function(e){return Yv(Yv({},e),{},{open:!1})}))},onConfirm:K.onConfirm,title:K.title,description:K.description,confirmButtonText:K.confirmLabel,destructiveConfirmButton:null==K?void 0:K.destructive,requireConfirmation:null==K?void 0:K.enableVerification,verificationText:null==K?void 0:K.verificationText})):React.createElement("div",{className:ix("px-8 pb-8 bg-background-secondary min-h-screen",!(null!==(se=window.srfm_admin)&&void 0!==se&&null!==(se=se.notices)&&void 0!==se&&se.length)&&"pt-8")},React.createElement("div",{className:"mx-auto"},React.createElement("div",{className:"bg-white rounded-lg border-0.5 border-solid border-border-subtle shadow-sm p-4 space-y-2"},React.createElement(zD,null))))},Bv=Qu("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]),Vv=function(e){var t,n,r=e.heading,o=e.content,i=e.placement,a=e.utmMedium,s=void 0===a?"":a,l=e.children;return React.createElement(Fx,{className:"z-999999 max-w-[268px]",content:React.createElement("div",{className:"tooltip-content space-y-1"},React.createElement("div",{className:"tooltip-text space-y-1"},React.createElement("p",{className:"text-text-inverse text-xs font-semibold"},r),React.createElement("p",{className:"text-text-inverse text-xs"},o)),React.createElement("a",{className:"block w-fit tooltip-link text-link-inverse text-xs font-semibold no-underline hover:no-underline",target:"_blank",href:ox((null===(t=srfm_admin)||void 0===t?void 0:t.pricing_page_url)||(null===(n=srfm_admin)||void 0===n?void 0:n.sureforms_pricing_page),s),rel:"noreferrer"},(0,zu.__)("Upgrade","sureforms"))),placement:i,interactive:!0},l)};function Wv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Hv=function(e){var t=e.onClick,n=e.disabled,r=React.createElement(De,{variant:"outline",size:"xs",icon:React.createElement(Bv,{className:"w-4 h-4"}),iconPosition:"left",onClick:t,disabled:n},(0,zu.__)("Edit Entry","sureforms"));return n?React.createElement(Vv,{heading:(0,zu.__)("Unlock Edit Form Entires","sureforms"),content:(0,zu.__)("With the SureForms Starter plan, you can easily edit your entries to suit your needs.","sureforms"),placement:"top",utmMedium:"edit_entry"},r):r};const Gv=function(e){var t=e.entry,n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Wv(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wv(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,a.useState)(!1),2),r=n[0],o=n[1],i=(0,Lu.applyFilters)("srfm-pro.entry-details.render-edit-entry-modal");return React.createElement(React.Fragment,null,React.createElement(Hv,{onClick:function(){i&&o(!0)},disabled:!i}),!!i&&React.createElement(i,{open:r,setOpen:o,entry:t}))},{entries:qv,setPrototypeOf:$v,isFrozen:Zv,getPrototypeOf:Kv,getOwnPropertyDescriptor:Xv}=Object;let{freeze:Jv,seal:ew,create:tw}=Object,{apply:nw,construct:rw}="undefined"!=typeof Reflect&&Reflect;Jv||(Jv=function(e){return e}),ew||(ew=function(e){return e}),nw||(nw=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)}),rw||(rw=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const ow=Nw(Array.prototype.forEach),iw=Nw(Array.prototype.lastIndexOf),aw=Nw(Array.prototype.pop),sw=Nw(Array.prototype.push),lw=Nw(Array.prototype.splice),cw=Nw(String.prototype.toLowerCase),uw=Nw(String.prototype.toString),dw=Nw(String.prototype.match),fw=Nw(String.prototype.replace),hw=Nw(String.prototype.indexOf),mw=Nw(String.prototype.trim),gw=Nw(Object.prototype.hasOwnProperty),pw=Nw(RegExp.prototype.test),Mw=(yw=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return rw(yw,t)});var yw;function Nw(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return nw(e,t,r)}}function xw(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:cw;$v&&$v(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(Zv(t)||(t[r]=e),o=e)}e[o]=!0}return e}function Dw(e){for(let t=0;t<e.length;t++)gw(e,t)||(e[t]=null);return e}function vw(e){const t=tw(null);for(const[n,r]of qv(e))gw(e,n)&&(Array.isArray(r)?t[n]=Dw(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=vw(r):t[n]=r);return t}function ww(e,t){for(;null!==e;){const n=Xv(e,t);if(n){if(n.get)return Nw(n.get);if("function"==typeof n.value)return Nw(n.value)}e=Kv(e)}return function(){return null}}const Tw=Jv(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),bw=Jv(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),jw=Jv(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Ew=Jv(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Iw=Jv(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Aw=Jv(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ow=Jv(["#text"]),kw=Jv(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),zw=Jv(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Sw=Jv(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Lw=Jv(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Cw=ew(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Rw=ew(/<%[\w\W]*|[\w\W]*%>/gm),Uw=ew(/\$\{[\w\W]*/gm),Qw=ew(/^data-[\-\w.\u00B7-\uFFFF]+$/),Yw=ew(/^aria-[\-\w]+$/),Pw=ew(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),_w=ew(/^(?:\w+script|data):/i),Fw=ew(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Bw=ew(/^html$/i),Vw=ew(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ww=Object.freeze({__proto__:null,ARIA_ATTR:Yw,ATTR_WHITESPACE:Fw,CUSTOM_ELEMENT:Vw,DATA_ATTR:Qw,DOCTYPE_NAME:Bw,ERB_EXPR:Rw,IS_ALLOWED_URI:Pw,IS_SCRIPT_OR_DATA:_w,MUSTACHE_EXPR:Cw,TMPLIT_EXPR:Uw});const Hw=function(){return"undefined"==typeof window?null:window};var Gw=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Hw();const n=t=>e(t);if(n.version="3.3.0",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const o=r,i=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:f,DOMParser:h,trustedTypes:m}=t,g=c.prototype,p=ww(g,"cloneNode"),M=ww(g,"remove"),y=ww(g,"nextSibling"),N=ww(g,"childNodes"),x=ww(g,"parentNode");if("function"==typeof s){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let D,v="";const{implementation:w,createNodeIterator:T,createDocumentFragment:b,getElementsByTagName:j}=r,{importNode:E}=o;let I={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof qv&&"function"==typeof x&&w&&void 0!==w.createHTMLDocument;const{MUSTACHE_EXPR:A,ERB_EXPR:O,TMPLIT_EXPR:k,DATA_ATTR:z,ARIA_ATTR:S,IS_SCRIPT_OR_DATA:L,ATTR_WHITESPACE:C,CUSTOM_ELEMENT:R}=Ww;let{IS_ALLOWED_URI:U}=Ww,Q=null;const Y=xw({},[...Tw,...bw,...jw,...Iw,...Ow]);let P=null;const _=xw({},[...kw,...zw,...Sw,...Lw]);let F=Object.seal(tw(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),B=null,V=null;const W=Object.seal(tw(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let H=!0,G=!0,q=!1,$=!0,Z=!1,K=!0,X=!1,J=!1,ee=!1,te=!1,ne=!1,re=!1,oe=!0,ie=!1,ae=!0,se=!1,le={},ce=null;const ue=xw({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let de=null;const fe=xw({},["audio","video","img","source","image","track"]);let he=null;const me=xw({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ge="http://www.w3.org/1998/Math/MathML",pe="http://www.w3.org/2000/svg",Me="http://www.w3.org/1999/xhtml";let ye=Me,Ne=!1,xe=null;const De=xw({},[ge,pe,Me],uw);let ve=xw({},["mi","mo","mn","ms","mtext"]),we=xw({},["annotation-xml"]);const Te=xw({},["title","style","font","a","script"]);let be=null;const je=["application/xhtml+xml","text/html"];let Ee=null,Ie=null;const Ae=r.createElement("form"),Oe=function(e){return e instanceof RegExp||e instanceof Function},ke=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ie||Ie!==e){if(e&&"object"==typeof e||(e={}),e=vw(e),be=-1===je.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ee="application/xhtml+xml"===be?uw:cw,Q=gw(e,"ALLOWED_TAGS")?xw({},e.ALLOWED_TAGS,Ee):Y,P=gw(e,"ALLOWED_ATTR")?xw({},e.ALLOWED_ATTR,Ee):_,xe=gw(e,"ALLOWED_NAMESPACES")?xw({},e.ALLOWED_NAMESPACES,uw):De,he=gw(e,"ADD_URI_SAFE_ATTR")?xw(vw(me),e.ADD_URI_SAFE_ATTR,Ee):me,de=gw(e,"ADD_DATA_URI_TAGS")?xw(vw(fe),e.ADD_DATA_URI_TAGS,Ee):fe,ce=gw(e,"FORBID_CONTENTS")?xw({},e.FORBID_CONTENTS,Ee):ue,B=gw(e,"FORBID_TAGS")?xw({},e.FORBID_TAGS,Ee):vw({}),V=gw(e,"FORBID_ATTR")?xw({},e.FORBID_ATTR,Ee):vw({}),le=!!gw(e,"USE_PROFILES")&&e.USE_PROFILES,H=!1!==e.ALLOW_ARIA_ATTR,G=!1!==e.ALLOW_DATA_ATTR,q=e.ALLOW_UNKNOWN_PROTOCOLS||!1,$=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Z=e.SAFE_FOR_TEMPLATES||!1,K=!1!==e.SAFE_FOR_XML,X=e.WHOLE_DOCUMENT||!1,te=e.RETURN_DOM||!1,ne=e.RETURN_DOM_FRAGMENT||!1,re=e.RETURN_TRUSTED_TYPE||!1,ee=e.FORCE_BODY||!1,oe=!1!==e.SANITIZE_DOM,ie=e.SANITIZE_NAMED_PROPS||!1,ae=!1!==e.KEEP_CONTENT,se=e.IN_PLACE||!1,U=e.ALLOWED_URI_REGEXP||Pw,ye=e.NAMESPACE||Me,ve=e.MATHML_TEXT_INTEGRATION_POINTS||ve,we=e.HTML_INTEGRATION_POINTS||we,F=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Oe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(F.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Oe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(F.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(F.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Z&&(G=!1),ne&&(te=!0),le&&(Q=xw({},Ow),P=[],!0===le.html&&(xw(Q,Tw),xw(P,kw)),!0===le.svg&&(xw(Q,bw),xw(P,zw),xw(P,Lw)),!0===le.svgFilters&&(xw(Q,jw),xw(P,zw),xw(P,Lw)),!0===le.mathMl&&(xw(Q,Iw),xw(P,Sw),xw(P,Lw))),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?W.tagCheck=e.ADD_TAGS:(Q===Y&&(Q=vw(Q)),xw(Q,e.ADD_TAGS,Ee))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?W.attributeCheck=e.ADD_ATTR:(P===_&&(P=vw(P)),xw(P,e.ADD_ATTR,Ee))),e.ADD_URI_SAFE_ATTR&&xw(he,e.ADD_URI_SAFE_ATTR,Ee),e.FORBID_CONTENTS&&(ce===ue&&(ce=vw(ce)),xw(ce,e.FORBID_CONTENTS,Ee)),ae&&(Q["#text"]=!0),X&&xw(Q,["html","head","body"]),Q.table&&(xw(Q,["tbody"]),delete B.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw Mw('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw Mw('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');D=e.TRUSTED_TYPES_POLICY,v=D.createHTML("")}else void 0===D&&(D=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(m,i)),null!==D&&"string"==typeof v&&(v=D.createHTML(""));Jv&&Jv(e),Ie=e}},ze=xw({},[...bw,...jw,...Ew]),Se=xw({},[...Iw,...Aw]),Le=function(e){sw(n.removed,{element:e});try{x(e).removeChild(e)}catch(t){M(e)}},Ce=function(e,t){try{sw(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){sw(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(te||ne)try{Le(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Re=function(e){let t=null,n=null;if(ee)e="<remove></remove>"+e;else{const t=dw(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===be&&ye===Me&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=D?D.createHTML(e):e;if(ye===Me)try{t=(new h).parseFromString(o,be)}catch(e){}if(!t||!t.documentElement){t=w.createDocument(ye,"template",null);try{t.documentElement.innerHTML=Ne?v:o}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),ye===Me?j.call(t,X?"html":"body")[0]:X?t.documentElement:i},Ue=function(e){return T.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Qe=function(e){return e instanceof f&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Ye=function(e){return"function"==typeof l&&e instanceof l};function Pe(e,t,r){ow(e,(e=>{e.call(n,t,r,Ie)}))}const _e=function(e){let t=null;if(Pe(I.beforeSanitizeElements,e,null),Qe(e))return Le(e),!0;const r=Ee(e.nodeName);if(Pe(I.uponSanitizeElement,e,{tagName:r,allowedTags:Q}),K&&e.hasChildNodes()&&!Ye(e.firstElementChild)&&pw(/<[/\w!]/g,e.innerHTML)&&pw(/<[/\w!]/g,e.textContent))return Le(e),!0;if(7===e.nodeType)return Le(e),!0;if(K&&8===e.nodeType&&pw(/<[/\w]/g,e.data))return Le(e),!0;if(!(W.tagCheck instanceof Function&&W.tagCheck(r))&&(!Q[r]||B[r])){if(!B[r]&&Be(r)){if(F.tagNameCheck instanceof RegExp&&pw(F.tagNameCheck,r))return!1;if(F.tagNameCheck instanceof Function&&F.tagNameCheck(r))return!1}if(ae&&!ce[r]){const t=x(e)||e.parentNode,n=N(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const o=p(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,y(e))}}return Le(e),!0}return e instanceof c&&!function(e){let t=x(e);t&&t.tagName||(t={namespaceURI:ye,tagName:"template"});const n=cw(e.tagName),r=cw(t.tagName);return!!xe[e.namespaceURI]&&(e.namespaceURI===pe?t.namespaceURI===Me?"svg"===n:t.namespaceURI===ge?"svg"===n&&("annotation-xml"===r||ve[r]):Boolean(ze[n]):e.namespaceURI===ge?t.namespaceURI===Me?"math"===n:t.namespaceURI===pe?"math"===n&&we[r]:Boolean(Se[n]):e.namespaceURI===Me?!(t.namespaceURI===pe&&!we[r])&&!(t.namespaceURI===ge&&!ve[r])&&!Se[n]&&(Te[n]||!ze[n]):!("application/xhtml+xml"!==be||!xe[e.namespaceURI]))}(e)?(Le(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!pw(/<\/no(script|embed|frames)/i,e.innerHTML)?(Z&&3===e.nodeType&&(t=e.textContent,ow([A,O,k],(e=>{t=fw(t,e," ")})),e.textContent!==t&&(sw(n.removed,{element:e.cloneNode()}),e.textContent=t)),Pe(I.afterSanitizeElements,e,null),!1):(Le(e),!0)},Fe=function(e,t,n){if(oe&&("id"===t||"name"===t)&&(n in r||n in Ae))return!1;if(G&&!V[t]&&pw(z,t));else if(H&&pw(S,t));else if(W.attributeCheck instanceof Function&&W.attributeCheck(t,e));else if(!P[t]||V[t]){if(!(Be(e)&&(F.tagNameCheck instanceof RegExp&&pw(F.tagNameCheck,e)||F.tagNameCheck instanceof Function&&F.tagNameCheck(e))&&(F.attributeNameCheck instanceof RegExp&&pw(F.attributeNameCheck,t)||F.attributeNameCheck instanceof Function&&F.attributeNameCheck(t,e))||"is"===t&&F.allowCustomizedBuiltInElements&&(F.tagNameCheck instanceof RegExp&&pw(F.tagNameCheck,n)||F.tagNameCheck instanceof Function&&F.tagNameCheck(n))))return!1}else if(he[t]);else if(pw(U,fw(n,C,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==hw(n,"data:")||!de[e])if(q&&!pw(L,fw(n,C,"")));else if(n)return!1;return!0},Be=function(e){return"annotation-xml"!==e&&dw(e,R)},Ve=function(e){Pe(I.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Qe(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:P,forceKeepAttr:void 0};let o=t.length;for(;o--;){const i=t[o],{name:a,namespaceURI:s,value:l}=i,c=Ee(a),u=l;let d="value"===a?u:mw(u);if(r.attrName=c,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,Pe(I.uponSanitizeAttribute,e,r),d=r.attrValue,!ie||"id"!==c&&"name"!==c||(Ce(a,e),d="user-content-"+d),K&&pw(/((--!?|])>)|<\/(style|title|textarea)/i,d)){Ce(a,e);continue}if("attributename"===c&&dw(d,"href")){Ce(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Ce(a,e);continue}if(!$&&pw(/\/>/i,d)){Ce(a,e);continue}Z&&ow([A,O,k],(e=>{d=fw(d,e," ")}));const f=Ee(e.nodeName);if(Fe(f,c,d)){if(D&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(s);else switch(m.getAttributeType(f,c)){case"TrustedHTML":d=D.createHTML(d);break;case"TrustedScriptURL":d=D.createScriptURL(d)}if(d!==u)try{s?e.setAttributeNS(s,a,d):e.setAttribute(a,d),Qe(e)?Le(e):aw(n.removed)}catch(t){Ce(a,e)}}else Ce(a,e)}Pe(I.afterSanitizeAttributes,e,null)},We=function e(t){let n=null;const r=Ue(t);for(Pe(I.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Pe(I.uponSanitizeShadowNode,n,null),_e(n),Ve(n),n.content instanceof a&&e(n.content);Pe(I.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,s=null,c=null;if(Ne=!e,Ne&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Ye(e)){if("function"!=typeof e.toString)throw Mw("toString is not a function");if("string"!=typeof(e=e.toString()))throw Mw("dirty is not a string, aborting")}if(!n.isSupported)return e;if(J||ke(t),n.removed=[],"string"==typeof e&&(se=!1),se){if(e.nodeName){const t=Ee(e.nodeName);if(!Q[t]||B[t])throw Mw("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)r=Re("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),1===i.nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!te&&!Z&&!X&&-1===e.indexOf("<"))return D&&re?D.createHTML(e):e;if(r=Re(e),!r)return te?null:re?v:""}r&&ee&&Le(r.firstChild);const u=Ue(se?e:r);for(;s=u.nextNode();)_e(s),Ve(s),s.content instanceof a&&We(s.content);if(se)return e;if(te){if(ne)for(c=b.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(P.shadowroot||P.shadowrootmode)&&(c=E.call(o,c,!0)),c}let d=X?r.outerHTML:r.innerHTML;return X&&Q["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&pw(Bw,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),Z&&ow([A,O,k],(e=>{d=fw(d,e," ")})),D&&re?D.createHTML(d):d},n.setConfig=function(){ke(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),J=!0},n.clearConfig=function(){Ie=null,J=!1},n.isValidAttribute=function(e,t,n){Ie||ke({});const r=Ee(e),o=Ee(t);return Fe(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&sw(I[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=iw(I[e],t);return-1===n?void 0:lw(I[e],n,1)[0]}return aw(I[e])},n.removeHooks=function(e){I[e]=[]},n.removeAllHooks=function(){I={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),qw=o(50442);const $w=qw.default||qw;function Zw(e){return Zw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zw(e)}function Kw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kw(Object(n),!0).forEach((function(t){Jw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jw(e,t,n){return(t=function(e){var t=function(e){if("object"!=Zw(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Zw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Zw(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eT=function(e){var t=(0,Lu.applyFilters)("srfm-pro.entry-details.render-pro-fields");if("function"==typeof t)return t(e);var n=e.value,r=e.label;if(Array.isArray(null==e?void 0:e.value))return{label:r,value:(0,zu.sprintf)((0,zu._n)("%d item","%d items",n.length,"sureforms"),n.length)};var o=n;return"string"==typeof n&&n.match(/&[a-zA-Z0-9#]+;/)&&(o=function(e){if(!e)return"";var t=document.createElement("textarea");t.innerHTML=e;var n=t.value;return(n.includes("<")||n.includes(">")||n.includes("&"))&&(t.innerHTML=n,n=t.value),n}(n)),Xw(Xw({},e),{},{label:r,value:o||"-"})},tT=function(e){var t,n=e.field;return Array.isArray(n)?n.map((function(e,t){return React.createElement(tT,{key:"".concat(n.label,"-").concat(t),field:e})})):React.createElement(React.Fragment,null,React.createElement("div",{className:"p-3 relative bg-background-primary rounded-md shadow-sm"},React.createElement("div",{className:"flex gap-4"},(null==n?void 0:n.label)&&React.createElement("div",{className:"w-40 flex-shrink-0"},React.createElement("span",{className:"text-sm font-semibold text-text-primary"},n.label)),Array.isArray(n.value)&&(0,a.isValidElement)(n.value[0])&&React.createElement("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 2xl:grid-cols-6 place-content-center gap-2"},n.value),!Array.isArray(n.value)&&React.createElement("div",{className:"flex-1"},"string"==typeof(null==n?void 0:n.value)&&n.value.match(/<[^>]+>/g)?React.createElement("span",{className:"text-sm font-medium text-text-secondary [overflow-wrap:anywhere]"},$w(Gw.sanitize(n.value))):React.createElement("span",{className:"text-sm font-medium text-text-secondary [overflow-wrap:anywhere]"},null!==(t=null==n?void 0:n.value)&&void 0!==t?t:"-")))),Array.isArray(n.value)&&!(0,a.isValidElement)(n.value[0])&&n.value.map((function(e,t){return React.createElement(tT,{key:"".concat(n.label,"-").concat(t),field:e})})))};const nT=function(e){var t=e.entryData,n=((null==t?void 0:t.formData)||[]).map(eT).filter(Boolean);return React.createElement("div",{className:"bg-background-primary border-0.5 border-solid border-border-subtle rounded-lg shadow-sm"},React.createElement("div",{className:"pb-0 px-4 pt-4"},React.createElement("div",{className:"flex items-center justify-between"},React.createElement("h3",{className:"text-base font-semibold text-text-primary"},(0,zu.__)("Entry Data","sureforms")),React.createElement(Gv,{entry:t}))),React.createElement("div",{className:"p-4 space-y-1 relative before:content-[''] before:block before:absolute before:inset-3 before:bg-background-secondary before:rounded-lg"},n.map((function(e,t){return React.createElement(tT,{key:t,field:e})}))))},rT=function(e){var t,n,r,o,i=e.entryData,a=Cv(),s=ru(),l=[{id:"entry",label:(0,zu.__)("Entry:","sureforms"),value:null!=i&&i.id?"#".concat(i.id):"-"},{id:"form-name",label:(0,zu.__)("Form Name:","sureforms"),value:(null==i?void 0:i.formName)||"-"},{id:"user-ip",label:(0,zu.__)("User IP:","sureforms"),value:(null==i||null===(t=i.submissionInfo)||void 0===t?void 0:t.userIp)||"-"},{id:"url",label:(0,zu.__)("URL:","sureforms"),value:(null==i?void 0:i.formPermalink)||"-",render:function(e){return React.createElement(De,{variant:"link",tag:"a",href:e,className:"no-underline hover:underline",target:"_blank",rel:"noopener noreferrer"},e)}},{id:"browser",label:(0,zu.__)("Browser:","sureforms"),value:(null==i||null===(n=i.submissionInfo)||void 0===n?void 0:n.browserName)||"-"},{id:"device",label:(0,zu.__)("Device:","sureforms"),value:(null==i||null===(r=i.submissionInfo)||void 0===r?void 0:r.deviceName)||"-"},{id:"user",label:(0,zu.__)("User:","sureforms"),value:(null==i||null===(o=i.user)||void 0===o?void 0:o.displayName)||"-",render:function(e){var t;return null!=i&&null!==(t=i.user)&&void 0!==t&&t.profileUrl?React.createElement(De,{variant:"link",tag:"a",href:i.user.profileUrl,target:"_blank",className:"no-underline hover:underline",rel:"noopener noreferrer"},e):e}},{id:"status",label:(0,zu.__)("Status:","sureforms"),value:i.status.toLowerCase(),render:function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},{id:"created_at",label:(0,zu.__)("Submitted On:","sureforms"),value:sx(null==i?void 0:i.createdAt,!0)||"-"}],c=function(){null!=i&&i.id&&a.mutate({entry_ids:[i.id],action:"unread",onSuccess:function(){return setTimeout((function(){window.history.state&&window.history.state.idx>0?s(-1):s("/")}),100)}})};return React.createElement("div",{className:"bg-background-primary border-0.5 border-solid border-border-subtle rounded-lg shadow-sm"},React.createElement("div",{className:"pb-0 px-4 pt-4"},React.createElement("h3",{className:"text-sm font-semibold text-text-primary"},(0,zu.__)("Submission Info","sureforms"))),React.createElement("div",{className:"p-4 space-y-1 relative before:content-[''] before:block before:absolute before:inset-3 before:bg-background-secondary before:rounded-lg"},l.map((function(e,t){return React.createElement("div",{key:t,className:"flex items-center py-3 px-3 relative bg-background-primary rounded-md shadow-sm"},React.createElement("div",{className:"w-32 flex-shrink-0"},React.createElement("span",{className:"text-sm font-medium text-text-primary"},e.label)),React.createElement("div",{className:"flex-1 flex items-center justify-between"},React.createElement("span",{className:"text-sm font-normal text-text-secondary"},"function"==typeof(null==e?void 0:e.render)?e.render(e.value):e.value),"status"===e.id&&"read"===e.value&&React.createElement(De,{variant:"link",size:"xs",onClick:c,disabled:a.isLoading,className:"text-link-primary hover:text-link-primary-hover ml-2"},a.isLoading?(0,zu.__)("Updating…","sureforms"):(0,zu.__)("Mark as Unread","sureforms"))))}))))},oT=Qu("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),iT=Qu("FileSearch",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"ms7g94"}],["path",{d:"m9 18-1.5-1.5",key:"1j6qii"}],["circle",{cx:"5",cy:"14",r:"3",key:"ufru5t"}]]);var aT=function(){return React.createElement(Vv,{heading:(0,zu.__)("Unlock Add Note","sureforms"),content:(0,zu.__)("With the SureForms Starter plan, enhance your submitted form entries by adding personalized notes for better clarity and tracking.","sureforms"),placement:"top-start",utmMedium:"add_note"},React.createElement(De,{variant:"link",size:"xs",icon:React.createElement(oT,{className:"w-4 h-4"}),iconPosition:"left",className:"text-link-primary hover:text-link-primary-hover",disabled:!0},(0,zu.__)("Add Note","sureforms")))};const sT=function(e){var t=e.entryId,n=e.onConfirmation,r=(0,Lu.applyFilters)("srfm-pro.entry-details.render-notes-section");return r?React.createElement(r,{entryId:t,onConfirmation:n}):React.createElement("div",{className:"bg-background-primary border-0.5 border-solid border-border-subtle rounded-lg shadow-sm"},React.createElement("div",{className:"pb-0 px-4 pt-4"},React.createElement("div",{className:"flex items-center justify-between"},React.createElement("h3",{className:"text-base font-semibold text-text-primary"},(0,zu.__)("Notes","sureforms")),React.createElement(aT,null))),React.createElement("div",{className:"p-4 space-y-1 relative before:content-[''] before:block before:absolute before:inset-3 before:bg-background-secondary before:rounded-lg"},React.createElement("div",{className:"relative flex items-center justify-center py-6 px-1 gap-2.5"},React.createElement(iT,{className:"text-icon-secondary size-4"}),React.createElement(hD,{color:"secondary",size:12,weight:400},(0,zu.__)("Add an internal note.","sureforms")))))},lT=function(e){var t=e.pdfLinks,n=(0,Lu.applyFilters)("srfm-pro.entry-details.render-pdf-attachments-component");return n?React.createElement(n,{pdfLinks:t}):null},cT=Qu("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),uT=Qu("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);function dT(e){return dT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dT(e)}function fT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fT(Object(n),!0).forEach((function(t){mT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mT(e,t,n){return(t=function(e){var t=function(e){if("object"!=dT(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=dT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==dT(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const pT=function(e){var t=e.entryId,n=e.onConfirmation,r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return gT(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gT(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,a.useState)({page:1,per_page:3}),2),o=r[0],i=r[1],s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{page:1,per_page:3};return yv({queryKey:Lv.list(e,t),queryFn:function(){return function(e){var t=e.id,n=e.page,r=void 0===n?1:n,o=e.per_page,i={page:r,per_page:void 0===o?3:o};return uy()({path:(0,Ky.addQueryArgs)("/sureforms/v1/entry/".concat(t,"/logs"),i),method:"GET",headers:{"Content-Type":"application/json","X-WP-Nonce":Dv()}})}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Iv(Object(n),!0).forEach((function(t){Av(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e},t))},enabled:!!e,staleTime:3e5})}(t,o),l=s.data,c=s.isLoading,u=(null==l?void 0:l.logs)||[],d=(null==l?void 0:l.total_pages)||1,f=o.page;(0,a.useEffect)((function(){c||0===u.length&&f>1&&i((function(e){return hT(hT({},e),{},{page:e.page-1})}))}),[u.length,f,c]);var h=(0,Lu.applyFilters)("srfm-pro.entry-details.render-delete-log-button");return React.createElement(React.Fragment,null,React.createElement("div",{className:"bg-background-primary border-0.5 border-solid border-border-subtle rounded-lg shadow-sm"},React.createElement("div",{className:"pb-0 px-4 pt-4"},React.createElement("h3",{className:"text-base font-semibold text-text-primary"},(0,zu.__)("Entry Logs","sureforms"))),React.createElement("div",{className:"p-4 space-y-1 relative before:content-[''] before:block before:absolute before:inset-3 before:bg-background-secondary before:rounded-lg"},c?React.createElement("div",{className:"relative text-center py-4 text-text-secondary"},(0,zu.__)("Loading logs…","sureforms")):0===u.length?React.createElement("div",{className:"relative text-center py-4 text-text-secondary text-xs font-normal"},(0,zu.__)("No logs available.","sureforms")):u.map((function(e){return React.createElement("div",{key:e.id,className:"bg-background-primary rounded-md p-3 relative shadow-sm flex items-start justify-between gap-3"},React.createElement("div",{className:"flex-1 space-y-2"},React.createElement("div",{className:"text-sm font-semibold text-text-secondary"},e.title," ",e.timestamp&&"at ".concat(function(e){if(!e)return"";var t=new Date(e),n=t.getFullYear(),r=String(t.getMonth()+1).padStart(2,"0"),o=String(t.getDate()).padStart(2,"0"),i=String(t.getHours()).padStart(2,"0"),a=String(t.getMinutes()).padStart(2,"0"),s=String(t.getSeconds()).padStart(2,"0");return"".concat(n,"-").concat(r,"-").concat(o," ").concat(i,":").concat(a,":").concat(s)}(e.timestamp))),e.messages&&e.messages.map((function(e,t){return React.createElement(hD,{key:t,size:14,weight:400,color:"primary",className:"[overflow-wrap:anywhere]"},$w(Gw.sanitize(e)))}))),!!h&&React.createElement(h,{entryId:t,log:e,onConfirmation:n}))}))),React.createElement("div",{className:"w-full flex items-center justify-end pb-3 pr-3 pl-3"},React.createElement("div",{className:"flex items-center gap-2"},React.createElement(De,{variant:"ghost",size:"xs",icon:React.createElement(cT,null),iconPosition:"left",onClick:function(){i((function(e){return hT(hT({},e),{},{page:Math.max(1,e.page-1)})}))},disabled:1===f||c},(0,zu.__)("Previous","sureforms")),React.createElement(De,{variant:"ghost",size:"xs",icon:React.createElement(uT,null),iconPosition:"right",onClick:function(){i((function(e){return hT(hT({},e),{},{page:Math.min(d,e.page+1)})}))},disabled:f===d||c},(0,zu.__)("Next","sureforms"))))))},MT=function(){var e;return React.createElement("div",{className:ix("px-8 pb-8 bg-background-secondary min-h-screen space-y-6",!(null!==(e=window.srfm_admin)&&void 0!==e&&null!==(e=e.notices)&&void 0!==e&&e.length)&&"pt-8")},React.createElement("div",{className:"flex items-center gap-3 mx-auto max-w-[1500px]"},React.createElement(Vm,{className:"w-8 h-8 rounded-md"}),React.createElement(Vm,{className:"h-8 w-48"})),React.createElement("div",{className:"mx-auto max-w-[1500px]"},React.createElement("div",{className:"space-y-6"},React.createElement("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6"},React.createElement("div",{className:"lg:col-span-2 space-y-6"},React.createElement("div",{className:"bg-background-primary border-0.5 border-solid border-border-subtle rounded-lg shadow-sm"},React.createElement("div",{className:"pb-0 px-4 pt-4"},React.createElement("div",{className:"flex items-center justify-between"},React.createElement(Vm,{className:"h-5 w-32"}),React.createElement(Vm,{className:"w-24 h-8 rounded-md"}))),React.createElement("div",{className:"p-4 space-y-1 relative before:content-[''] before:block before:absolute before:inset-3 before:bg-background-secondary before:rounded-lg"},Array.from({length:5}).map((function(e,t){return React.createElement("div",{key:t,className:"p-3 relative bg-background-primary rounded-md shadow-sm"},React.createElement("div",{className:"flex gap-4"},React.createElement(Vm,{className:"w-40 h-4"}),React.createElement(Vm,{className:"flex-1 h-4"})))})))),React.createElement("div",{className:"bg-background-primary border-0.5 border-solid border-border-subtle rounded-lg shadow-sm"},React.createElement("div",{className:"pb-0 px-4 pt-4"},React.createElement(Vm,{className:"h-5 w-40 mb-4"})),React.createElement("div",{className:"p-4 space-y-4"},Array.from({length:4}).map((function(e,t){return React.createElement("div",{key:t,className:"flex gap-4"},React.createElement(Vm,{className:"w-32 h-4"}),React.createElement(Vm,{className:"flex-1 h-4"}))}))))),React.createElement("div",{className:"space-y-4"},React.createElement("div",{className:"bg-background-primary border-0.5 border-solid border-border-subtle rounded-lg shadow-sm"},React.createElement("div",{className:"pb-0 px-4 pt-4"},React.createElement(Vm,{className:"h-5 w-24 mb-4"})),React.createElement("div",{className:"p-4"},React.createElement(Vm,{className:"w-full h-20 rounded-md"}))),React.createElement("div",{className:"bg-background-primary border-0.5 border-solid border-border-subtle rounded-lg shadow-sm"},React.createElement("div",{className:"pb-0 px-4 pt-4"},React.createElement(Vm,{className:"h-5 w-28 mb-4"})),React.createElement("div",{className:"p-4 space-y-3"},Array.from({length:3}).map((function(e,t){return React.createElement("div",{key:t,className:"flex gap-3"},React.createElement(Vm,{className:"w-8 h-8 rounded-full"}),React.createElement("div",{className:"flex-1 space-y-1"},React.createElement(Vm,{className:"h-4 w-3/4"}),React.createElement(Vm,{className:"h-3 w-1/2"})))})))),React.createElement("div",{className:"ml-0.5"},React.createElement(Vm,{className:"w-full h-10 rounded-md"})))))))},yT=function(e){var t=e.previousEntryId,n=e.nextEntryId,r=ru(),o=function(){t&&r("/entry/".concat(t),{replace:!0})},i=function(){n&&r("/entry/".concat(n),{replace:!0})},a=function(e,t){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t())};return t||n?React.createElement("div",{className:"flex justify-end gap-2"},React.createElement(De,{variant:"outline",size:"sm",icon:React.createElement(cT,{className:"w-4 h-4"}),iconPosition:"left",onClick:o,onKeyDown:function(e){return a(e,o)},disabled:!t,"aria-label":(0,zu.__)("Previous entry","sureforms"),"aria-disabled":!t,className:"text-text-primary hover:text-text-primary outline-0 disabled:opacity-50 disabled:cursor-not-allowed border-0.5 border-solid border-badge-color-disabled shadow-sm"},(0,zu.__)("Previous","sureforms")),React.createElement(De,{variant:"outline",size:"sm",icon:React.createElement(uT,{className:"w-4 h-4"}),iconPosition:"right",onClick:i,onKeyDown:function(e){return a(e,i)},disabled:!n,"aria-label":(0,zu.__)("Next entry","sureforms"),"aria-disabled":!n,className:"text-text-primary hover:text-text-primary outline-0 disabled:opacity-50 disabled:cursor-not-allowed border-0.5 border-solid border-badge-color-disabled shadow-sm"},(0,zu.__)("Next","sureforms"))):null};function NT(e){return NT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},NT(e)}function xT(){xT=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,n,r){return Object.defineProperty(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r})}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(t,n,r,o){var i=n&&n.prototype instanceof f?n:f,a=Object.create(i.prototype);return l(a,"_invoke",function(t,n,r){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=D(s,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(1===o)throw o=4,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=3;var c=u(t,n,r);if("normal"===c.type){if(o=r.done?4:2,c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=4,r.method="throw",r.arg=c.arg)}}}(t,r,new T(o||[])),!0),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d={};function f(){}function h(){}function m(){}var g={};l(g,i,(function(){return this}));var p=Object.getPrototypeOf,M=p&&p(p(b([])));M&&M!==n&&r.call(M,i)&&(g=M);var y=m.prototype=f.prototype=Object.create(g);function N(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==NT(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function D(t,n){var r=n.method,o=t.i[r];if(o===e)return n.delegate=null,"throw"===r&&t.i.return&&(n.method="return",n.arg=e,D(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var i=u(o,t.i,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,d;var a=i.arg;return a?a.done?(n[t.r]=a.value,n.next=t.n,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,d):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}function v(e){this.tryEntries.push(e)}function w(t){var n=t[4]||{};n.type="normal",n.arg=e,t[4]=n}function T(e){this.tryEntries=[[-1]],e.forEach(v,this),this.reset(!0)}function b(t){if(null!=t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(NT(t)+" is not iterable")}return h.prototype=m,l(y,"constructor",m),l(m,"constructor",h),h.displayName=l(m,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,l(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},t.awrap=function(e){return{__await:e}},N(x.prototype),l(x.prototype,a,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new x(c(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},N(y),l(y,s,"Generator"),l(y,i,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},t.values=b,T.prototype={constructor:T,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(w),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(e){a.type="throw",a.arg=t,n.next=e}for(var o=n.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return r("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,r(l),!0;if(s<c)return r(c),!1}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r[0]>-1&&r[0]<=this.prev&&this.prev<r[2]){var o=r;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[2]===e)return this.complete(n[4],n[3]),w(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[0]===e){var r=n[4];if("throw"===r.type){var o=r.arg;w(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={i:b(t),r:n,n:r},"next"===this.method&&(this.arg=e),d}},t}function DT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DT(Object(n),!0).forEach((function(t){wT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wT(e,t,n){return(t=function(e){var t=function(e){if("object"!=NT(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=NT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==NT(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TT(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function bT(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return jT(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jT(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ET=function(e){var t=e.handleSendEmail,n=e.isDisabled;return void 0===n||n?React.createElement(Vv,{heading:(0,zu.__)("Unlock Resend Email Notification","sureforms"),content:(0,zu.__)("With the SureForms Starter plan, you can effortlessly resend email notifications, ensuring your important updates reach their recipients with ease.","sureforms"),utmMedium:"entry_resend_email_notification",placement:"top"},React.createElement(De,{variant:"primary",size:"md",onClick:t,disabled:!0},(0,zu.__)("Resend Notification","sureforms"))):React.createElement(De,{variant:"primary",size:"md",onClick:t},(0,zu.__)("Resend Notification","sureforms"))};const IT=function(){var e,t,n=iu().id,r=ru(),o=bT(ku(),2),i=o[0],s=o[1],l=Cv().mutate,c=bT((0,a.useState)({open:!1,title:"",description:"",confirmLabel:"",onConfirm:null,isLoading:!1,destructive:!0}),2),u=c[0],d=c[1],f=bT((0,a.useState)(!1),2),h=f[0],m=f[1],g=(t=n,yv({queryKey:zv.detail(t),queryFn:function(){return function(e){return uy()({path:"/sureforms/v1/entry/".concat(e,"/details"),method:"GET",headers:{"Content-Type":"application/json","X-WP-Nonce":Dv()}})}(t)},enabled:!!t,staleTime:0,refetchOnWindowFocus:!0})),p=g.data,M=g.isLoading,y=(0,a.useMemo)((function(){return(e=p)?{id:e.id,formId:e.form_id,formName:e.form_name,formPermalink:e.form_permalink,status:e.status,statusLabel:Wx(e.status),createdAt:e.created_at,formData:e.form_data||[],formContent:e.form_content||[],submissionInfo:{userIp:(null===(t=e.submission_info)||void 0===t?void 0:t.user_ip)||"-",browserName:(null===(n=e.submission_info)||void 0===n?void 0:n.browser_name)||"-",deviceName:(null===(r=e.submission_info)||void 0===r?void 0:r.device_name)||"-"},user:e.user?{id:e.user.id,displayName:e.user.display_name,profileUrl:e.user.profile_url}:null,pdfLinks:(null===(o=e.extras)||void 0===o?void 0:o.pdf_links)||null,navigation:{previousEntryId:(null===(i=e.navigation)||void 0===i?void 0:i.previous_entry_id)||null,nextEntryId:(null===(a=e.navigation)||void 0===a?void 0:a.next_entry_id)||null},rawData:e}:null;var e,t,n,r,o,i,a}),[p]),N=(0,a.useMemo)((function(){var e,t;return{previousEntryId:null==y||null===(e=y.navigation)||void 0===e?void 0:e.previousEntryId,nextEntryId:null==y||null===(t=y.navigation)||void 0===t?void 0:t.nextEntryId}}),[null==y?void 0:y.navigation]),x=(0,Lu.applyFilters)("srfm-pro.entry-details.render-resend-notification-modal");(0,a.useEffect)((function(){y&&"unread"===y.status&&l({entry_ids:[n],action:"read",skipToast:!0},{onSuccess:function(){i.get("read")&&(i.delete("read"),s(i,{replace:!0}))}})}),[n,y,l,i,s]);var D=function(e){var t;d({open:!0,title:e.title,description:e.description,confirmLabel:e.confirmLabel,onConfirm:(t=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){TT(i,r,o,a,s,"next",e)}function s(e){TT(i,r,o,a,s,"throw",e)}a(void 0)}))}}(xT().mark((function t(){return xT().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.onConfirm();case 3:d((function(e){return vT(vT({},e),{},{open:!1})})),t.next=9;break;case 6:t.prev=6,t.t0=t.catch(0),console.error("Confirmation action failed:",t.t0);case 9:case"end":return t.stop()}}),t,null,[[0,6]])}))),function(){return t.apply(this,arguments)}),isLoading:e.isLoading||!1,destructive:!1!==e.destructive})};return M?React.createElement(MT,null):React.createElement(React.Fragment,null,React.createElement("div",{className:ix("px-8 pb-8 bg-background-secondary min-h-screen space-y-6",!(null!==(e=window.srfm_admin)&&void 0!==e&&null!==(e=e.notices)&&void 0!==e&&e.length)&&"pt-8")},React.createElement("div",{className:"flex items-center justify-between mx-auto max-w-[1500px]"},React.createElement("div",{className:"flex items-center gap-3"},React.createElement(De,{onClick:function(){window.history.state&&window.history.state.idx>0?r(-1):r("/")},variant:"ghost",size:"md",className:"p-1",icon:React.createElement(cT,null)}),React.createElement(hD,{size:24,color:"primary",weight:600},(0,zu.sprintf)((0,zu.__)("Entry #%s","sureforms"),n))),React.createElement(yT,N)),React.createElement("div",{className:"mx-auto max-w-[1500px]"},React.createElement("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6"},React.createElement("div",{className:"lg:col-span-2 space-y-6"},React.createElement(nT,{entryData:y}),React.createElement(rT,{entryData:y})),React.createElement("div",{className:"space-y-4"},React.createElement(sT,{entryId:n,onConfirmation:D}),React.createElement(lT,{pdfLinks:null==y?void 0:y.pdfLinks}),React.createElement(pT,{entryId:n,onConfirmation:D}),React.createElement("div",{className:"ml-0.5"},React.createElement(ET,{handleSendEmail:function(){x&&m(!0)},isDisabled:!x})))))),React.createElement(tv,{isOpen:u.open,onCancel:function(){return d((function(e){return vT(vT({},e),{},{open:!1})}))},onConfirm:u.onConfirm,title:u.title,description:u.description,confirmButtonText:u.confirmLabel,destructiveConfirmButton:u.destructive}),!!x&&(null==y?void 0:y.formId)&&React.createElement(x,{open:h,setOpen:m,entryIds:[parseInt(n,10)],formId:y.formId}))};var AT=["className"];function OT(){return OT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},OT.apply(null,arguments)}const kT=function(e){var t,n=e.className,r=void 0===n?"block":n,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,AT);return React.createElement("a",{href:null===(t=srfm_admin)||void 0===t?void 0:t.sureforms_dashboard_url},React.createElement("svg",OT({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r},o),React.createElement("path",{d:"M24 0H0V24H24V0Z",fill:"#D54407"}),React.createElement("path",{d:"M6.8501 5.14209H17.1358V8.57068H8.56439L6.8501 10.285V8.57068V5.14209Z",fill:"white"}),React.createElement("path",{d:"M6.8501 10.2866H15.4215V13.7152H8.56439L6.8501 15.4294V13.7152V10.2866Z",fill:"white"}),React.createElement("path",{d:"M6.8501 15.4272H11.9929V18.8558H6.8501V15.4272Z",fill:"white"})))};function zT(e){return zT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zT(e)}var ST=["selector"];function LT(){LT=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,n,r){return Object.defineProperty(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r})}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(t,n,r,o){var i=n&&n.prototype instanceof f?n:f,a=Object.create(i.prototype);return l(a,"_invoke",function(t,n,r){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=D(s,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(1===o)throw o=4,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=3;var c=u(t,n,r);if("normal"===c.type){if(o=r.done?4:2,c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=4,r.method="throw",r.arg=c.arg)}}}(t,r,new T(o||[])),!0),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d={};function f(){}function h(){}function m(){}var g={};l(g,i,(function(){return this}));var p=Object.getPrototypeOf,M=p&&p(p(b([])));M&&M!==n&&r.call(M,i)&&(g=M);var y=m.prototype=f.prototype=Object.create(g);function N(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==zT(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function D(t,n){var r=n.method,o=t.i[r];if(o===e)return n.delegate=null,"throw"===r&&t.i.return&&(n.method="return",n.arg=e,D(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var i=u(o,t.i,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,d;var a=i.arg;return a?a.done?(n[t.r]=a.value,n.next=t.n,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,d):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}function v(e){this.tryEntries.push(e)}function w(t){var n=t[4]||{};n.type="normal",n.arg=e,t[4]=n}function T(e){this.tryEntries=[[-1]],e.forEach(v,this),this.reset(!0)}function b(t){if(null!=t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(zT(t)+" is not iterable")}return h.prototype=m,l(y,"constructor",m),l(m,"constructor",h),h.displayName=l(m,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,l(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},t.awrap=function(e){return{__await:e}},N(x.prototype),l(x.prototype,a,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new x(c(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},N(y),l(y,s,"Generator"),l(y,i,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},t.values=b,T.prototype={constructor:T,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(w),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(e){a.type="throw",a.arg=t,n.next=e}for(var o=n.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],c=i[2];if(-1===i[0])return r("end"),!1;if(!l&&!c)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,r(l),!0;if(s<c)return r(c),!1}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r[0]>-1&&r[0]<=this.prev&&this.prev<r[2]){var o=r;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[2]===e)return this.complete(n[4],n[3]),w(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n[0]===e){var r=n[4];if("throw"===r.type){var o=r.arg;w(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={i:b(t),r:n,n:r},"next"===this.method&&(this.arg=e),d}},t}function CT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function RT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function UT(e,t,n){return(t=function(e){var t=function(e){if("object"!=zT(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=zT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zT(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QT(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function YT(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){QT(i,r,o,a,s,"next",e)}function s(e){QT(i,r,o,a,s,"throw",e)}a(void 0)}))}}var PT=function(){return PT=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},PT.apply(this,arguments)},_T=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},FT=function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},BT={rssFeedURL:"",selector:"",uniqueKey:"",loaderIcon:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid">\n\t<circle cx="50" cy="50" fill="none" stroke="#9f9f9f" stroke-width="10" r="35" stroke-dasharray="164.93361431346415 56.97787143782138">\n\t\t<animateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="1s" values="0 50 50;360 50 50" keyTimes="0;1"></animateTransform>\n\t</circle>\n\t</svg>',viewAll:{link:"",label:"View All"},triggerButton:{label:"",icon:'<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.61703 13.1998C8.04294 13.1503 7.46192 13.125 6.875 13.125H6.25C4.17893 13.125 2.5 11.4461 2.5 9.375C2.5 7.30393 4.17893 5.625 6.25 5.625H6.875C7.46192 5.625 8.04294 5.59972 8.61703 5.55018M8.61703 13.1998C8.82774 14.0012 9.1031 14.7764 9.43719 15.5195C9.64341 15.9782 9.48685 16.5273 9.05134 16.7787L8.50441 17.0945C8.04492 17.3598 7.45466 17.1921 7.23201 16.7106C6.70983 15.5811 6.30451 14.3866 6.03155 13.1425M8.61703 13.1998C8.29598 11.9787 8.125 10.6968 8.125 9.375C8.125 8.05316 8.29598 6.77125 8.61703 5.55018M8.61703 13.1998C11.25 13.427 13.737 14.1643 15.9789 15.3124M8.61703 5.55018C11.25 5.323 13.737 4.58569 15.9789 3.43757M15.9789 3.43757C15.8808 3.12162 15.7751 2.80903 15.662 2.5M15.9789 3.43757C16.4247 4.87356 16.7131 6.37885 16.8238 7.93326M15.9789 15.3124C15.8808 15.6284 15.7751 15.941 15.662 16.25M15.9789 15.3124C16.4247 13.8764 16.7131 12.3711 16.8238 10.8167M16.8238 7.93326C17.237 8.2772 17.5 8.79539 17.5 9.375C17.5 9.95461 17.237 10.4728 16.8238 10.8167M16.8238 7.93326C16.8578 8.40942 16.875 8.8902 16.875 9.375C16.875 9.8598 16.8578 10.3406 16.8238 10.8167" stroke="#94A3B8" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',beforeBtn:"",afterBtn:"",className:"",onClick:function(){}},notification:{setLastPostUnixTime:null,getLastPostUnixTime:null},flyout:{title:"What's New?",innerContent:{titleLink:!0,additionalClasses:[]},excerpt:{wordLimit:500,moreSymbol:"…",readMore:{label:"Read More",className:""}},className:"",closeOnEsc:!0,closeOnOverlayClick:!0,closeBtnIcon:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 18L18 6M6 6L18 18" stroke="#94A3B8" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>',formatDate:null,onOpen:function(){},onClose:function(){},onReady:function(){}}},VT=function(){function e(e){this.rssFeedURLs=[],this.lastPostUnixTime=0,this.multiLastPostUnixTime={},this.notificationsCount=0,this.multiNotificationCount={},this.hasNewFeeds=!1,this.multiHasNewFeeds={},this.validateArgs(e),this.parseDefaults(e),this.setElement(),this.getElement()?(this.setID(),this.setRSSFeedURLs(),WT.setInstanceID(this.getID()),this.RSS_Fetch_Instance=new HT(this),this.RSS_View_Instance=new GT(this),this.setNotificationsCount(),this.setTriggers()):console.warn("WNR: Cannot find element with",this.getArgs().selector)}return e.prototype.validateArgs=function(e){["rssFeedURL","selector","uniqueKey"].forEach((function(t){if(!e[t])throw new Error("".concat(t," is a required argument. It cannot be empty or undefined."));if("rssFeedURL"===t){var n=e[t];Array.isArray(n)&&n.forEach((function(e){if(!(null==e?void 0:e.key))throw new Error('The parameter "key" is required for "'.concat(t,'" parameter in multi-feed mode.'));if(e.key.includes(" "))throw new Error('The parameter "key" cannot have spaces for "'.concat(t,'" parameter in multi-feed mode. Ref Key: "').concat(e.key,'"'))}))}}))},e.prototype.parseDefaults=function(e){var t,n;this.args=PT(PT(PT({},BT),e),{viewAll:PT(PT({},BT.viewAll),null==e?void 0:e.viewAll),triggerButton:PT(PT({},BT.triggerButton),null==e?void 0:e.triggerButton),flyout:PT(PT(PT({},BT.flyout),null==e?void 0:e.flyout),{innerContent:PT(PT({},BT.flyout.innerContent),null===(t=null==e?void 0:e.flyout)||void 0===t?void 0:t.innerContent),excerpt:PT(PT({},BT.flyout.excerpt),null===(n=null==e?void 0:e.flyout)||void 0===n?void 0:n.excerpt)})})},e.prototype.getArgs=function(){return this.args},e.prototype.setElement=function(){this.element=document.querySelector(this.args.selector)},e.prototype.getElement=function(){return this.element},e.prototype.setID=function(){var e=[this.getArgs().selector,this.getArgs().uniqueKey],t=this.getArgs().rssFeedURL;Array.isArray(t)?t.forEach((function(t){e.push(t.key)})):e.push(t),this.ID=btoa(e.join("-")).slice(-12).replace(/=/g,"")+"-"+this.getArgs().uniqueKey},e.prototype.isMultiFeedRSS=function(){return"string"!=typeof this.getArgs().rssFeedURL},e.prototype.setRSSFeedURLs=function(){var e=this,t=this.getArgs().rssFeedURL;this.isMultiFeedRSS()?Array.isArray(t)&&t.forEach((function(t){e.rssFeedURLs.push(t)})):this.rssFeedURLs.push({key:null,label:"",url:t.toString()})},e.prototype.getRSSFeedURLs=function(){return this.rssFeedURLs},e.prototype.getID=function(){return this.ID},e.prototype.setNotificationsCount=function(){return _T(this,void 0,void 0,(function(){var e=this;return FT(this,(function(t){switch(t.label){case 0:return[4,Promise.all(this.getRSSFeedURLs().map((function(t){return _T(e,[t],void 0,(function(e){var t,n=e.key;return FT(this,(function(e){switch(e.label){case 0:return t=0,"function"!=typeof this.getArgs().notification.getLastPostUnixTime?[3,2]:[4,this.getArgs().notification.getLastPostUnixTime(n,this)];case 1:return t=e.sent(),[3,3];case 2:t=WT.getLastPostUnixTime(n),e.label=3;case 3:return this.isMultiFeedRSS()?this.multiLastPostUnixTime[n]=+t:this.lastPostUnixTime=+t,[2]}}))}))})))];case 1:return t.sent(),[4,this.RSS_Fetch_Instance.fetchData().then((function(t){Object.keys(t).forEach((function(n){var r=t[n];if(r.length){e.multiNotificationCount[n]=0;var o=+r[0].date,i=e.isMultiFeedRSS()?e.multiLastPostUnixTime[n]:e.lastPostUnixTime;o>i&&(r.forEach((function(t){t.date>i&&(e.isMultiFeedRSS()&&(e.multiNotificationCount[n]++,e.multiHasNewFeeds[n]=!0),e.notificationsCount++,e.hasNewFeeds=!0)})),e.RSS_View_Instance.setNotification(e.notificationsCount))}}))})).catch(console.error)];case 2:return t.sent(),[2]}}))}))},e.prototype.getNotificationsCount=function(){return this.notificationsCount},e.prototype.setTriggers=function(){var e=this,t=document.getElementById(this.RSS_View_Instance.getTriggerButtonID()),n=document.getElementById(this.RSS_View_Instance.getFlyoutID()),r=n.querySelector(".whats-new-rss-flyout-inner-content"),o=document.getElementById(this.RSS_View_Instance.getFlyoutCloseBtnID()),i=document.getElementById(this.RSS_View_Instance.getFlyoutMultiFeedNavID()),a=function(t){e.RSS_Fetch_Instance.fetchData().then((function(o){r.innerHTML="";var i=o[t];if(i.length){var a=+i[0].date,s=e.isMultiFeedRSS()?e.multiLastPostUnixTime[t]:e.lastPostUnixTime;i.forEach((function(n){var o=!!s&&n.date>s,i=e.getArgs().flyout.innerContent.titleLink?'<a href="'.concat(n.postLink,'" target="_blank">\n\t\t\t\t\t\t\t\t<h2>').concat(n.title,"</h2>\n\t\t\t\t\t\t\t</a>"):"<h2>".concat(n.title,"</h2>"),a='\n\t\t\t\t\t\t\t\t<div class="rss-content-header">\n\t\t\t\t\t\t\t\t\t<p>'.concat(e.RSS_View_Instance.formatDate(new Date(n.date)),"</p>\n\t\t\t\t\t\t\t\t\t").concat(i,"\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t").concat(e.RSS_View_Instance.createExcerpt(n.description,n.postLink,e.getArgs().flyout.excerpt),"\n\t\t\t\t\t\t\t\t").concat(e.RSS_View_Instance.listChildrenPosts(n.children),"\n\t\t\t\t\t\t\t"),l=e.getArgs().flyout.innerContent.additionalClasses;t&&l.push("`inner-content-item-feed-key-${key}`"),r.innerHTML+=e.RSS_View_Instance.innerContentWrapper(a,o,l.join(" "))})),e.getArgs().viewAll.link&&(r.innerHTML+=e.RSS_View_Instance.innerContentWrapper('\n\t\t\t\t\t\t\t<a href="'.concat(e.getArgs().viewAll.link,'" class="button view-all">').concat(e.getArgs().viewAll.label,"</a>\n\t\t\t\t\t\t\t"))),e.RSS_View_Instance.setIsLoading(!1),n.classList.add("ready"),e.getArgs().flyout.onReady(e),n.focus(),e.isMultiFeedRSS()||(e.lastPostUnixTime=a,e.hasNewFeeds&&("function"==typeof e.getArgs().notification.setLastPostUnixTime?e.getArgs().notification.setLastPostUnixTime(a,t):WT.setLastPostUnixTime(a,t)))}})).catch(console.error)};t.addEventListener("click",(function(t){if(t.preventDefault(),e.getArgs().triggerButton.onClick(e),e.RSS_View_Instance.setIsLoading(!0),n.classList.remove("closed"),n.classList.add("open"),n.removeAttribute("style"),document.body.classList.add("whats-new-rss-is-active"),e.getArgs().flyout.onOpen(e),e.isMultiFeedRSS()){var r=i.querySelectorAll("button");r.forEach((function(t){e.RSS_View_Instance.setMultiFeedTabNotificationCount(t.dataset.feedKey,e.multiNotificationCount[t.dataset.feedKey]),t.addEventListener("click",(function(n){n.preventDefault();var o=t.dataset.feedKey;e.multiNotificationCount[o]=0,e.RSS_Fetch_Instance.fetchData().then((function(t){var n=t[o][0].date;e.multiLastPostUnixTime[o]=n,!0===e.multiHasNewFeeds[o]&&("function"==typeof e.getArgs().notification.setLastPostUnixTime?e.getArgs().notification.setLastPostUnixTime(n,o):WT.setLastPostUnixTime(n,o)),e.multiHasNewFeeds[o]=!1})).catch(console.error),r.forEach((function(e){e.classList.remove("selected");var t=e.dataset.feedKey,n=".inner-content-item-feed-key-".concat(t);document.querySelectorAll(n).forEach((function(e){o!==t?e.classList.add("hidden"):e.classList.remove("hidden")}))})),t.classList.add("selected"),a(o)}))})),r[0].click()}else a(null)}));var s=function(){n.classList.add("closed"),n.classList.remove("open"),n.classList.remove("ready"),document.body.classList.remove("whats-new-rss-is-active"),e.isMultiFeedRSS()?e.RSS_View_Instance.setNotification(Object.values(e.multiNotificationCount).filter(Boolean).length):(e.hasNewFeeds=!1,e.RSS_View_Instance.setNotification(!1)),r.innerHTML="",e.getArgs().flyout.onClose(e),t.focus()};this.getArgs().flyout.closeOnEsc&&document.addEventListener("keydown",(function(e){"Escape"===e.key&&n.classList.contains("open")&&s()})),this.getArgs().flyout.closeOnOverlayClick&&n.querySelector(".whats-new-rss-flyout-overlay").addEventListener("click",s),o.addEventListener("click",s)},e}(),WT=function(){function e(){}return e.setInstanceID=function(e){this.instanceID||(this.instanceID=e)},e.prefixer=function(e,t){if(void 0===t&&(t=""),!this.instanceID)throw new Error("Instance ID not set.");return t?"".concat(this.keys[e],"-").concat(this.instanceID,"-").concat(t):"".concat(this.keys[e],"-").concat(this.instanceID)},e._setDataExpiry=function(e){void 0===e&&(e="");var t=(new Date).getTime()+864e5;sessionStorage.setItem(this.prefixer("SESSION_DATA_EXPIRY",e),JSON.stringify(t))},e._isDataExpired=function(e){void 0===e&&(e="");var t=this.prefixer("SESSION_DATA_EXPIRY",e),n=window.sessionStorage.getItem(t);if(!n)return!0;var r=JSON.parse(n);return(new Date).getTime()>r&&(window.sessionStorage.removeItem(t),!0)},e.setSessionData=function(e,t){return void 0===t&&(t=""),this._setDataExpiry(t),window.sessionStorage.setItem(this.prefixer("SESSION",t),e)},e.getSessionData=function(e){return void 0===e&&(e=""),this._isDataExpired(e)?"{}":window.sessionStorage.getItem(this.prefixer("SESSION",e))},e.setLastPostUnixTime=function(e,t){return void 0===t&&(t=""),window.localStorage.setItem(this.prefixer("LAST_LATEST_POST",t),e.toString())},e.getLastPostUnixTime=function(e){return void 0===e&&(e=""),+window.localStorage.getItem(this.prefixer("LAST_LATEST_POST",e))},e.keys={SESSION_DATA_EXPIRY:"whats-new-cache-expiry",LAST_LATEST_POST:"whats-new-last-unixtime",SESSION:"whats-new-cache"},e}(),HT=function(){function e(e){var t=this;this.data={},this.RSS=e,this.RSS.getRSSFeedURLs().forEach((function(e){var n=JSON.parse(WT.getSessionData(e.key));n&&n.length&&(t.data[e.key]=n)}))}return e.prototype.fetchData=function(){return _T(this,void 0,void 0,(function(){var e,t=this;return FT(this,(function(n){switch(n.label){case 0:return Object.keys(this.data).length?[2,this.data]:(e=this.RSS.getRSSFeedURLs().map((function(e){return _T(t,void 0,void 0,(function(){var t,n,r=this;return FT(this,(function(o){switch(o.label){case 0:return this.data[e.key]=[],[4,fetch(e.url)];case 1:return[4,o.sent().text()];case 2:return t=(t=o.sent()).replace(/»/g,"&raquo;"),n=new DOMParser,n.parseFromString(t,"text/xml").querySelectorAll("item").forEach((function(t){var n,o=t.querySelector("title").textContent,i=t.querySelector("link").textContent,a=t.querySelector("content\\:encoded, encoded"),s=a?a.textContent:"",l=t.querySelector("pubDate").innerHTML;r.data[e.key].push({title:o,date:l?+new Date(l):null,postLink:i,description:s.replace(/<a\b((?:(?!target=)[^>])*)>/g,'<a$1 target="_blank">').replace(/<p>\s*<\/p>/g,""),children:JSON.parse((null===(n=t.querySelector("children"))||void 0===n?void 0:n.innerHTML)||"{}")})})),WT.setSessionData(JSON.stringify(this.data[e.key]),e.key),[2]}}))}))})),[4,Promise.all(e)]);case 1:return n.sent(),[2,this.data]}}))}))},e}(),GT=function(){function e(e){this.RSS=e,this.createTriggerButton(),this.createFlyOut()}return e.prototype.getTriggerButtonID=function(){return"whats-new-rss-btn-".concat(this.RSS.getID())},e.prototype.getFlyoutID=function(){return"whats-new-rss-flyout-".concat(this.RSS.getID())},e.prototype.getFlyoutCloseBtnID=function(){return"whats-new-rss-flyout-close-".concat(this.RSS.getID())},e.prototype.getFlyoutMultiFeedNavID=function(){return"whats-new-rss-flyout-multi-feed-nav-".concat(this.RSS.getID())},e.prototype.setIsLoading=function(e){void 0===e&&(e=!1);var t=document.getElementById(this.getFlyoutID());e?t.classList.add("is-loading"):t.classList.remove("is-loading")},e.prototype.setNotification=function(e){var t=document.querySelector("#".concat(this.getTriggerButtonID()," .whats-new-rss-notification-badge"));e?(this.RSS.isMultiFeedRSS()?(t.innerHTML="",t.classList.add("is-multi-feed")):t.innerHTML=e>9?"9+":e.toString(),t.classList.remove("hide")):t.classList.add("hide")},e.prototype.createTriggerButton=function(){var e,t=this.RSS.getArgs().triggerButton.label;e=t?"\n\t\t\t".concat(this.RSS.getArgs().triggerButton.beforeBtn,'\n\t\t\t<a class="whats-new-rss-trigger-button has-label" id="').concat(this.getTriggerButtonID(),'">\n\t\t\t\t<div class="icon-badge">\n\t\t\t\t\t').concat(this.RSS.getArgs().triggerButton.icon,'\n\t\t\t\t\t<div class="whats-new-rss-notification-badge hide">0</div>\n\t\t\t\t</div>\n\t\t\t\t').concat(t,"\n\t\t\t</a>\n\t\t\t").concat(this.RSS.getArgs().triggerButton.afterBtn,"\n\t\t\t"):"\n\t\t\t".concat(this.RSS.getArgs().triggerButton.beforeBtn,'\n\t\t\t<a class="whats-new-rss-trigger-button" id="').concat(this.getTriggerButtonID(),'">\n\t\t\t\t').concat(this.RSS.getArgs().triggerButton.icon,'\n\t\t\t\t<div class="whats-new-rss-notification-badge hide">0</div>\n\t\t\t</a>\n\t\t\t').concat(this.RSS.getArgs().triggerButton.afterBtn,"\n\t\t\t"),this.RSS.getElement().innerHTML+=e},e.prototype.createFlyOut=function(){var e=["whats-new-rss-flyout","closed"];this.RSS.getArgs().flyout.className&&e.push(this.RSS.getArgs().flyout.className);var t=[];this.RSS.isMultiFeedRSS()&&(t.push('<nav id="'.concat(this.getFlyoutMultiFeedNavID(),'" class="whats-new-rss-multi-feed-nav">')),this.RSS.getRSSFeedURLs().forEach((function(e){t.push('<button type="button" data-feed-key="'.concat(e.key,'">\n\t\t\t\t\t\t').concat(e.label,'\n\t\t\t\t\t\t<div class="new-notification-count"></div>\n\t\t\t\t\t</button>\n\t\t\t\t\t'))})),t.push("</nav>"));var n=document.createElement("div");n.setAttribute("id",this.getFlyoutID()),n.setAttribute("class",e.join(" ")),n.setAttribute("role","dialog"),n.setAttribute("style","visibility: hidden;"),n.innerHTML='\n\t\t<div class="whats-new-rss-flyout-contents">\n\n\t\t\t<div class="whats-new-rss-flyout-inner-header">\n\n\t\t\t\t<div class="whats-new-rss-flyout-inner-header__title-icon-wrapper">\n\t\t\t\t\t<h3>'.concat(this.RSS.getArgs().flyout.title,'</h3>\n\n\t\t\t\t\t<span class="whats-new-rss-flyout-inner-header__loading-icon">\n\t\t\t\t\t').concat(this.RSS.getArgs().loaderIcon,'\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\n\t\t\t\t<button type="button" id="').concat(this.getFlyoutCloseBtnID(),'">').concat(this.RSS.getArgs().flyout.closeBtnIcon,"</button>\n\t\t\t</div>\n\n\t\t\t").concat(t.join(""),'\n\n\t\t\t<div class="whats-new-rss-flyout-inner-content">\n\t\t\t\t<div class="skeleton-container">\n\t\t\t\t\t<div class="skeleton-row whats-new-rss-flyout-inner-content-item"></div>\n\t\t\t\t\t<div class="skeleton-row whats-new-rss-flyout-inner-content-item"></div>\n\t\t\t\t\t<div class="skeleton-row whats-new-rss-flyout-inner-content-item"></div>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t</div>\n\n\t\t<div class="whats-new-rss-flyout-overlay"></div>\n\t\t'),document.body.appendChild(n)},e.prototype.setMultiFeedTabNotificationCount=function(e,t){void 0===t&&(t=0);var n=document.querySelector("#".concat(this.getFlyoutMultiFeedNavID(),' button[data-feed-key="').concat(e,'"]'));if(n){var r=n.querySelector(".new-notification-count");if(t){var o=t>9?"9+":t;r.innerHTML=o.toString()}else r.innerHTML=""}},e.prototype.innerContentWrapper=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n="");var r=["whats-new-rss-flyout-inner-content-item"];return t&&r.push("rss-new-post"),n&&r.push(n),'\n\t\t<div class="'.concat(r.join(" "),'">\n\t\t\t').concat(t?'<small class="new-post-badge">New ✨</small>':"","\n\t\t\t").concat(e,"\n\t\t</div>\n\t\t")},e.prototype.createExcerpt=function(e,t,n){var r=n.wordLimit,o=n.moreSymbol,i=n.readMore;if(!r)return e;var a=e.replace(/<[^>]*>/g,"").split(/\s+/),s=a.slice(0,r).join(" ");return o&&(s+=o),r>a.length?e:t&&(null==i?void 0:i.label)?"<p>".concat(s,' <a href="').concat(t,'" target="_blank" class="').concat(i.className,'">').concat(i.label,"</a></p>"):"<p>".concat(s,"</p>")},e.prototype.listChildrenPosts=function(e){var t=this,n=Object.values(e);if(!n.length)return"";var r=document.createElement("details"),o=document.createElement("summary"),i=document.createElement("div");return n.forEach((function(e){var n=(new DOMParser).parseFromString(e.post_content,"text/html"),r=document.createElement("div");r.classList.add("sub-version-item"),r.innerHTML='\n\t\t\t\t<div class="sub-version-header">\n\t\t\t\t\t<h4 class="sub-version-title">'.concat(e.post_title,'</h4>\n\t\t\t\t\t<span class="sub-version-date">').concat(t.formatDate(new Date(e.post_date)),'</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="sub-version-content">').concat(n.documentElement.textContent,"</div>\n\t\t\t"),i.appendChild(r)})),o.innerHTML='<p class="text-see-more">See More</p><p class="text-see-less">See Less</p>',r.appendChild(o),r.appendChild(i),i.classList.add("sub-version-items-wrapper"),r.classList.add("whats-new-rss-sub-version-details"),r.outerHTML},e.prototype.formatDate=function(e){if("function"==typeof this.RSS.getArgs().flyout.formatDate)return this.RSS.getArgs().flyout.formatDate(e);var t=new Date,n=e.getTime(),r=t.getTime()-n,o=36e5,i=24*o,a=7*i,s=30*i;if(r<6e4)return"Just now";if(r<o){var l=Math.floor(r/6e4);return"".concat(l," minute").concat(l>1?"s":""," ago")}if(r<i){var c=Math.floor(r/o);return"".concat(c," hour").concat(c>1?"s":""," ago")}if(r<a){var u=Math.floor(r/i);return"".concat(u," day").concat(u>1?"s":""," ago")}if(r<s){var d=Math.floor(r/a);return"".concat(d," week").concat(d>1?"s":""," ago")}var f=Math.floor(r/s);return"".concat(f," month").concat(f>1?"s":""," ago")},e}();function qT(){return $T.apply(this,arguments)}function $T(){return($T=YT(LT().mark((function e(){return LT().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",'.whats-new-rss-is-active{overflow:hidden}.whats-new-rss-trigger-button{display:flex;align-items:center;position:relative;width:auto;padding:5px;cursor:pointer}.whats-new-rss-trigger-button.has-label{align-items:end;gap:10px}.whats-new-rss-trigger-button.has-label .icon-badge{position:relative;line-height:1}.whats-new-rss-trigger-button.has-label .icon-badge .whats-new-rss-notification-badge{top:-12px;right:-10px}.whats-new-rss-trigger-button .whats-new-rss-notification-badge{position:absolute;top:-8px;right:-5px;width:20px;font-size:10px;line-height:20px;text-align:center;border-radius:10px;color:#fff;background:red;transition:transform .2s ease-in-out}.whats-new-rss-trigger-button .whats-new-rss-notification-badge.is-multi-feed{top:-2px;right:-2px;font-size:0;width:10px;height:10px}.whats-new-rss-trigger-button .whats-new-rss-notification-badge.hide{display:none}.whats-new-rss-trigger-button:hover .whats-new-rss-notification-badge{transform:scale(1.2)}.whats-new-rss-flyout{position:fixed;top:0;right:0;bottom:0;width:100%;z-index:99999;transition:visibility .3s ease-in-out;font-family:Arial,Helvetica,sans-serif}.whats-new-rss-flyout .lightbox-trigger,.whats-new-rss-flyout.hidden{display:none}.whats-new-rss-flyout.is-loading .whats-new-rss-flyout-inner-header__loading-icon{display:block;margin:auto}.whats-new-rss-flyout.is-loading .whats-new-rss-flyout-inner-header__loading-icon svg{display:block;background:0 0;width:25px;height:25px}.whats-new-rss-flyout .whats-new-rss-flyout-contents{position:fixed;display:flex;right:0;width:30%;height:100%;flex-direction:column;background-color:#fff;transition:transform .3s ease-in-out;z-index:9999}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px 16px 24px;border-bottom:1px solid #ccc}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header button{border:none;background:0 0;font-size:30px;cursor:pointer;color:#94a3b8;padding:0;margin:0;box-shadow:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header .whats-new-rss-flyout-inner-header__title-icon-wrapper{display:flex;gap:10px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header .whats-new-rss-flyout-inner-header__title-icon-wrapper h3{margin:0;padding:0;color:#0f172a;font-weight:600;font-size:16px;line-height:24px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav{display:flex;padding:0 30px;border-bottom:1px solid #ccc;gap:2em;overflow:auto;white-space:nowrap}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button{position:relative;background:0 0;color:inherit;padding:15px 0;border-bottom:2px solid transparent}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button:focus,.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button:hover{border-color:inherit}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button.selected{border-color:#5d5d5d}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-multi-feed-nav button .new-notification-count{position:absolute;top:0;right:-10px;width:20px;font-size:10px;line-height:20px;text-align:center;border-radius:10px;color:#fff;background:red}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content{flex:1;overflow-y:auto}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .skeleton-container{margin:30px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item{border-bottom:1px solid #d8dfe9;padding:30px 24px;color:#475569;font-weight:400;font-size:14px;line-height:20px;display:flex;flex-direction:column;gap:13px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item>*{margin:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item.skeleton-row{height:25vh;margin:40px 0;background:linear-gradient(90deg,#eee 25%,#ddd 50%,#eee 75%);background-size:200% 100%;animation:shimmer 1.5s infinite}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item.rss-new-post{position:relative}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item.rss-new-post .new-post-badge{background:#ff3d3d;border-radius:5px;position:absolute;right:45px;padding:0 5px;color:#fff}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item .rss-content-header{display:flex;flex-direction:column;gap:15px;padding:0 0 8px 0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item .rss-content-header p{color:#94a3b8;margin:0;padding:0;font-weight:600;font-size:14px;line-height:16px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item .rss-content-header h2{margin:0;color:#0f172a;font-weight:700;line-height:28px;font-size:20px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h2{font-weight:700;font-size:18px;line-height:24px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h3{font-weight:700;font-size:16px;line-height:22px;margin-top:12px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h4{font-weight:700;font-size:15px;line-height:20px;margin-top:12px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h5{font-weight:700;font-size:14px;line-height:18px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item h6{font-weight:700;font-size:13px;line-height:16px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item p{padding:0;font-size:14px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item p:last-child{margin-bottom:0;padding-bottom:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item a{color:#1170ff;text-decoration:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item figure{margin:10px 0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item figure.wp-block-embed.is-type-video{position:relative;width:100%;height:0;padding-bottom:56.25%}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item figure iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item img{box-sizing:border-box;height:auto;max-width:100%;vertical-align:bottom}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item video{vertical-align:middle;width:100%}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item strong{font-weight:600}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ol,.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ul{padding-inline-start:20px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ol li,.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ul li{margin-bottom:5px}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ul{list-style-type:disc}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item ol{list-style-type:decimal}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details{line-height:20px;font-size:.9em;margin:10px 0;background:#f9fafb}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary{display:flex;justify-content:space-between;cursor:pointer;padding:20px 15px;height:1em;line-height:20px;font-weight:800}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary::after{content:"⌃";font-size:20px;transform:rotateX(180deg);font-weight:800}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary .text-see-more{display:block}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details summary .text-see-less{display:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary{border-bottom:1px solid #e2e8f0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary::after{transform:rotateX(45deg)}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary .text-see-more{display:none}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details[open] summary .text-see-less{display:block}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details .sub-version-item{position:relative;padding:1em;border-bottom:1px solid #e2e8f0}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details .sub-version-item .sub-version-header{display:flex;justify-content:space-between}.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-sub-version-details .sub-version-item .sub-version-content{margin-top:1em}.whats-new-rss-flyout .whats-new-rss-flyout-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.5);transition:all .3s ease-in-out}.whats-new-rss-flyout.closed{visibility:hidden}.whats-new-rss-flyout.closed .whats-new-rss-flyout-overlay{opacity:0;visibility:hidden}.whats-new-rss-flyout.closed .whats-new-rss-flyout-contents{transform:translateX(100%)}.whats-new-rss-flyout .whats-new-rss-flyout-inner-header__loading-icon{display:none}@keyframes shimmer{0%{background-position:-200% 0}100%{background-position:200% 0}}@media screen and (max-width:1024px){.whats-new-rss-flyout .whats-new-rss-flyout-contents{width:40%}}@media screen and (max-width:768px){.whats-new-rss-flyout .whats-new-rss-flyout-contents{width:85%}}');case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ZT(){return(ZT=YT(LT().mark((function e(){var t,n;return LT().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t="whats-new-rss-styles",document.getElementById(t)){e.next=8;break}return(n=document.createElement("style")).id=t,e.next=6,qT();case 6:n.innerHTML=e.sent,document.head.appendChild(n);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const KT=function(e){var t=e.selector,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,ST),r=(0,d.useRef)(null);return(0,d.useEffect)((function(){return function(){ZT.apply(this,arguments)}(),r.current||(r.current=function(e){return new VT(e)}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RT(Object(n),!0).forEach((function(t){UT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({selector:t},n))),function(){r.current&&"function"==typeof r.current.destroy&&r.current.destroy()}}),[t].concat(function(e){return function(e){if(Array.isArray(e))return CT(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return CT(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?CT(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Object.values(n)))),r.current},XT=({children:e,gap:t="lg",className:n,...r})=>(0,u.jsx)("div",{className:me("w-full box-border flex items-center justify-between bg-background-primary p-5 min-h-16",pe(t),n),...r,children:e});XT.displayName="Topbar";const JT=({gap:e="sm",children:t,className:n})=>(0,u.jsx)("div",{className:me("flex items-center",pe(e),n),children:t});JT.displayName="Topbar.Left";const eb=({gap:e="md",children:t,align:n="center",className:r})=>{const o={left:"justify-start",center:"justify-center",right:"justify-end"}[n];return(0,u.jsx)("div",{className:me("flex items-center grow",pe(e),o,r),children:t})};eb.displayName="Topbar.Middle";const tb=({gap:e="sm",children:t,className:n})=>(0,u.jsx)("div",{className:me("flex items-center",pe(e),n),children:t});tb.displayName="Topbar.Right";const nb=({children:e,className:t})=>(0,u.jsx)("div",{className:me("flex items-center [&>svg]:block h-full",t),children:e});nb.displayName="Topbar.Item",XT.Left=JT,XT.Middle=eb,XT.Right=tb,XT.Item=nb;const rb=(0,d.createContext)({}),ob=rb.Provider,ib=()=>(0,d.useContext)(rb),ab=(e,t,n)=>{if(!e||!t)return{open:()=>({}),closed:()=>({})};const r=e?.getBoundingClientRect(),o=t?.getBoundingClientRect(),i=n?r?.x-o?.x+r?.width/2:o?.width-(o?.right-r?.x)+r?.width/2,a=r?.y-o?.y+r?.height/2;return{open:(e=1e3)=>({clipPath:`circle(${2*e+200}px at ${i}px ${a}px)`,background:"rgb(255, 255, 255, 1)",transition:{type:"spring",stiffness:20,restDelta:2,background:{duration:0}}}),closed:{clipPath:`circle(${r?.width/2}px at ${i}px ${a}px)`,background:"rgb(255, 255, 255, 0)",transition:{delay:.5,type:"spring",stiffness:400,damping:40,background:{duration:0,delay:1e3}}}}},sb=e=>(0,u.jsx)(fl.path,{className:"stroke-icon-primary",fill:"transparent",strokeWidth:"3",strokeLinecap:"round",...e}),lb=({className:e})=>{const{toggleOpen:t,setTriggerRef:n}=ib();return(0,u.jsx)(De,{ref:n,className:me("relative z-[1] rounded-full hover:shadow-sm focus:[box-shadow:none] pointer-events-auto bg-background-primary",e),variant:"ghost",size:"xs",onClick:t,"aria-label":"Toggle menu",icon:(0,u.jsxs)(fl.svg,{className:"shrink-0 stroke-icon-primary",width:"23",height:"23",variants:{open:{viewBox:"0 0 20 20"},closed:{viewBox:"0 0 23 18"}},children:[(0,u.jsx)(sb,{variants:{closed:{d:"M 2 2.5 L 20 2.5"},open:{d:"M 3 16.5 L 17 2.5"}}}),(0,u.jsx)(sb,{d:"M 2 9.423 L 20 9.423",variants:{closed:{opacity:1},open:{opacity:0}},transition:{duration:.1}}),(0,u.jsx)(sb,{variants:{closed:{d:"M 2 16.346 L 20 16.346"},open:{d:"M 3 2.5 L 17 16.346"}}})]})})},cb={open:{transition:{staggerChildren:.07,delayChildren:.2}},closed:{transition:{staggerChildren:.05,staggerDirection:-1}}},ub=({tag:e="a",active:t,icon:n,iconPosition:r="left",className:o,children:i,...a})=>{let s=null,l=null;const c=n&&(0,d.isValidElement)(n)?(0,d.cloneElement)(n,{key:"left-icon",className:me("size-5",t?"text-brand-800":"text-icon-secondary",n.props?.className??"")}):null;switch(r){case"left":s=c;break;case"right":l=c;break;default:s=null,l=null}return(0,u.jsx)(fb,{children:(0,u.jsxs)(e,{className:me("w-full no-underline hover:no-underline text-text-primary text-lg font-medium flex items-center gap-2 px-2.5 py-1.5 rounded-md hover:bg-background-secondary hover:text-text-primary focus:outline-none focus:shadow-none transition ease-in-out duration-150",t?"text-text-primary bg-background-secondary":"text-text-secondary",o),...a,children:[!!s&&s,(0,u.jsx)("span",{className:"contents",children:i}),!!l&&l]})})},db={open:{y:0,opacity:1,transition:{y:{stiffness:1e3,velocity:-100}}},closed:{y:50,opacity:0,transition:{y:{stiffness:1e3}}}},fb=({children:e})=>(0,u.jsx)(fl.li,{className:"m-0 p-0 flex items-center justify-start w-full",variants:db,whileHover:{scale:1.05},whileTap:{scale:.95},children:e}),hb=({children:e,className:t})=>{const{triggerRef:n,triggerOnRight:r,triggerOnLeft:o}=ib(),[i,a]=(0,d.useState)(null);return n?(0,u.jsxs)(fl.div,{ref:a,className:me("absolute top-0 bottom-0 w-80 h-screen",r?"right-0":"left-0",t),children:[i&&(0,u.jsx)(fl.div,{className:me("bg-background-primary shadow-lg absolute top-0 bottom-0 w-80 border-y-0 border-l-0 border-r border-solid border-border-subtle",r?"right-0":"left-0"),variants:ab(n,i,o??!1)}),(0,u.jsx)(fl.ul,{variants:cb,className:me("relative mt-14 mb-0 w-full px-5 pb-5 pt-2 flex flex-col items-start justify-start gap-0.5",t),children:e})]}):null},mb=({className:e,children:t})=>{const[n,r]=function(...e){const t=(0,d.useRef)(0),[n,r]=(0,d.useState)(e[t.current]);return[n,(0,d.useCallback)((n=>{t.current="number"!=typeof n?((e,t,n)=>{const r=t-0;return((n-0)%r+r)%r+0})(0,e.length,t.current+1):n,r(e[t.current])}),[e.length,...e])]}(!1,!0),[o,i]=(0,d.useState)(null),a=(0,d.useRef)(null),{height:s}=(e=>{const t=(0,d.useRef)({width:0,height:0});return(0,d.useEffect)((()=>{e.current&&(t.current.width=e.current.offsetWidth,t.current.height=e.current.offsetHeight)}),[]),t.current})(a),{isRight:l=!1,isLeft:c=!0}=(e=>{if(!e)return{error:"Element not found."};const t=e.getBoundingClientRect(),n=window.innerWidth,r=n/2,o=t.right<r,i=t.left>r;return{isLeft:o,isRight:i,isCenter:!o&&!i,elementRect:{left:t.left,right:t.right,width:t.width},viewport:{width:n,center:r}}})(o);return(0,u.jsx)(ob,{value:{isOpen:n,toggleOpen:r,setTriggerRef:e=>{(0,d.startTransition)((()=>{i(e)}))},triggerRef:o,triggerOnRight:l,triggerOnLeft:c},children:(0,u.jsx)("div",{className:me("size-6 z-[1]",e),children:(0,u.jsx)(fl.nav,{className:"h-full",initial:!1,animate:n?"open":"closed",custom:s,variants:{open:{pointerEvents:"auto"},closed:{pointerEvents:"none"}},ref:a,children:t})})})};mb.displayName="HamburgerMenu",lb.displayName="HamburgerMenu.Toggle",hb.displayName="HamburgerMenu.Options",ub.displayName="HamburgerMenu.Option",mb.Options=hb,mb.Option=ub,mb.Toggle=lb;const gb=Qu("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]),pb=Qu("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]),Mb=Qu("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);function yb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Nb(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nb(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var xb="srfm_upgrade_notice_seen";const Db=function(e){var t=e.onClose,n=yb((0,a.useState)(!0),2),r=n[0],o=n[1],i=yb((0,a.useState)(!1),2),s=i[0],l=i[1];return(0,a.useEffect)((function(){var e,t;e=xb,2===(t="; ".concat(document.cookie).split("; ".concat(e,"="))).length&&t.pop().split(";").shift()||l(!0)}),[]),s&&r?React.createElement(Qx,{className:"relative bg-brand-background-hover-100 p-2 text-xs text-center w-full gap-1",align:"center"},React.createElement("p",{className:"text-text-primary w-full mx-7 lg:mx-0"},React.createElement("span",{className:" font-semibold text-xs"},(0,zu.__)("Ready to go beyond free plan?","sureforms"))," ",React.createElement(De,{tag:"a",variant:"link",className:"p-0 [&>span]:p-0 underline underline-offset-2 font-normal",size:"xs",onClick:function(){var e,t;return window.open(ox((null===(e=srfm_admin)||void 0===e?void 0:e.pricing_page_url)||(null===(t=srfm_admin)||void 0===t?void 0:t.sureforms_pricing_page),"dashboard-upgrade-notice-cta"),"_blank","noreferrer")}},(0,zu.__)("Upgrade now","sureforms"))," ",React.createElement("span",{className:"font-normal text-xs"},(0,zu.__)("and unlock the full power of SureForms!","sureforms"))),React.createElement(Qx.Item,{className:"absolute right-2 inset-y-0 inline-flex items-center"},React.createElement(De,{variant:"ghost",size:"xs",className:"p-1 hover:bg-transparent",icon:React.createElement(Fu,{className:"size-4"}),onClick:function(){var e,n;o(!1),e=xb,(n=new Date).setTime(n.getTime()+864e6),document.cookie="".concat(e,"=").concat("true","; expires=").concat(n.toUTCString(),"; path=/"),"function"==typeof t&&t()}}))):null};function vb(){return vb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vb.apply(null,arguments)}const wb=function(e){var t;return React.createElement("a",{href:null===(t=srfm_admin)||void 0===t?void 0:t.sureforms_dashboard_url,className:"inline-flex"},React.createElement("svg",vb({width:"120",height:"20",viewBox:"0 0 120 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),React.createElement("g",{clipPath:"url(#clip0_22722_181577)"},React.createElement("mask",{id:"mask0_22722_181577",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"120",height:"20"},React.createElement("path",{d:"M120 0H0V20H120V0Z",fill:"white"})),React.createElement("g",{mask:"url(#mask0_22722_181577)"},React.createElement("path",{d:"M20 0H0V20H20V0Z",fill:"#D54407"}),React.createElement("path",{d:"M5.71436 4.2854H14.2858V7.14256H7.14294L5.71436 8.57112V7.14256V4.2854Z",fill:"white"}),React.createElement("path",{d:"M5.71436 4.2854H14.2858V7.14256H7.14294L5.71436 8.57112V7.14256V4.2854Z",fill:"white"}),React.createElement("path",{d:"M5.71436 8.57129H12.8572V11.4284H7.14294L5.71436 12.857V11.4284V8.57129Z",fill:"white"}),React.createElement("path",{d:"M5.71436 8.57129H12.8572V11.4284H7.14294L5.71436 12.857V11.4284V8.57129Z",fill:"white"}),React.createElement("path",{d:"M5.71436 12.8572H10.0001V15.7143H5.71436V12.8572Z",fill:"white"}),React.createElement("path",{d:"M5.71436 12.8572H10.0001V15.7143H5.71436V12.8572Z",fill:"white"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.6665 13.8361L27.4936 12.6205C27.8732 13.0586 28.3781 13.4272 29.0083 13.7265C29.6384 14.0258 30.3009 14.1754 30.9956 14.1754C31.7905 14.1754 32.41 14.0039 32.8539 13.6608C33.3051 13.3177 33.5308 12.8688 33.5308 12.3139C33.5308 11.9635 33.409 11.6678 33.1655 11.4269C32.922 11.186 32.6069 10.9998 32.2202 10.8684C31.8334 10.7371 31.4073 10.6166 30.9419 10.5071C30.4764 10.3976 30.0073 10.2698 29.5347 10.1238C29.0692 9.97782 28.6431 9.79894 28.2564 9.58725C27.8696 9.3755 27.5545 9.07619 27.311 8.68932C27.0675 8.29507 26.9458 7.82788 26.9458 7.28763C26.9458 6.39694 27.2967 5.65602 27.9986 5.06469C28.7004 4.46606 29.6636 4.16675 30.8882 4.16675C32.5066 4.16675 33.8172 4.69237 34.8198 5.74362L34.0571 6.90438C33.7276 6.49557 33.2836 6.16704 32.7251 5.91882C32.1736 5.66332 31.5613 5.53556 30.8882 5.53556C30.1792 5.53556 29.6098 5.69982 29.1801 6.02833C28.7505 6.34957 28.5356 6.75469 28.5356 7.24382C28.5356 7.55775 28.6574 7.82419 28.9009 8.04325C29.1443 8.25494 29.4559 8.42282 29.8354 8.54694C30.2221 8.66375 30.6483 8.77688 31.1138 8.88644C31.5864 8.98863 32.0554 9.11638 32.5209 9.26969C32.9936 9.42301 33.4197 9.61275 33.7993 9.83913C34.186 10.0581 34.5011 10.3757 34.7446 10.7918C34.9881 11.2079 35.1098 11.7007 35.1098 12.2701C35.1098 13.2191 34.7446 14.0039 34.0141 14.6244C33.2908 15.2377 32.2703 15.5443 30.9526 15.5443C29.1694 15.5443 27.7408 14.9749 26.6665 13.8361ZM36.9153 12.0839V4.44051H38.5589V11.5693C38.5589 12.4745 38.763 13.1133 39.1712 13.4856C39.5794 13.8506 40.1738 14.0331 40.9544 14.0331C41.5703 14.0331 42.1647 13.8761 42.7376 13.5623C43.3104 13.2483 43.7581 12.8614 44.0803 12.4015V4.44051H45.7346V15.2706H44.0803V13.7484C43.6363 14.2594 43.0813 14.6865 42.4153 15.0296C41.7493 15.3727 41.0439 15.5443 40.2991 15.5443C38.0433 15.5443 36.9153 14.3908 36.9153 12.0839ZM48.1524 15.2706H49.796V7.60519C50.0395 7.15988 50.4584 6.762 51.0529 6.41163C51.6473 6.05388 52.1987 5.87502 52.7071 5.87502C52.8718 5.87502 53.0831 5.88962 53.3409 5.91882V4.18865C52.6534 4.18865 52.0053 4.37116 51.3966 4.73617C50.7878 5.09389 50.2544 5.57206 49.796 6.17069V4.44051H48.1524V15.2706ZM53.9111 9.83913C53.9111 8.80244 54.1331 7.85344 54.5771 6.992C55.0283 6.12324 55.6549 5.437 56.457 4.93329C57.2591 4.42226 58.1578 4.16675 59.1533 4.16675C60.1988 4.16675 61.1119 4.42591 61.8925 4.94424C62.6731 5.46255 63.2606 6.15974 63.6543 7.03575C64.0549 7.9045 64.2556 8.88638 64.2556 9.98144V10.4085H55.6728C55.7373 11.4744 56.1096 12.365 56.79 13.0804C57.4775 13.7959 58.3726 14.1536 59.4755 14.1536C60.0986 14.1536 60.6966 14.0331 61.2694 13.7922C61.8496 13.5513 62.3544 13.2083 62.7843 12.7629L63.5681 13.8579C62.4439 14.9821 61.0368 15.5443 59.3466 15.5443C57.7568 15.5443 56.4534 15.015 55.4365 13.9565C54.4196 12.8979 53.9111 11.5255 53.9111 9.83913ZM55.6513 9.14925H62.6231C62.6162 8.73313 62.5406 8.32063 62.3974 7.91182C62.2613 7.503 62.0573 7.11969 61.7851 6.762C61.5129 6.40432 61.1477 6.11594 60.6894 5.89693C60.2311 5.67062 59.7118 5.55746 59.1318 5.55746C58.5875 5.55746 58.0934 5.66696 57.6494 5.88597C57.2054 6.10498 56.8437 6.39338 56.5644 6.75107C56.2923 7.1015 56.0774 7.48475 55.9199 7.90082C55.7623 8.30969 55.6728 8.72582 55.6513 9.14925Z",fill:"#030712"}),React.createElement("path",{d:"M68.2325 15.6356H65.9331V4.63989H73.5762V6.70057H68.2325V9.00851H73.4625V11.0692H68.2325V15.6356Z",fill:"#030712"}),React.createElement("path",{d:"M80.3168 15.8336C77.0462 15.8336 74.6655 13.4597 74.6655 10.1462C74.6655 6.83263 77.0462 4.45874 80.3168 4.45874C83.5712 4.45874 85.9518 6.83263 85.9518 10.1462C85.9518 13.4597 83.5712 15.8336 80.3168 15.8336ZM80.3168 13.7564C82.3087 13.7564 83.5874 12.1904 83.5874 10.1462C83.5874 8.08551 82.3087 6.53588 80.3168 6.53588C78.3087 6.53588 77.0299 8.08551 77.0299 10.1462C77.0299 12.1904 78.3087 13.7564 80.3168 13.7564Z",fill:"#030712"}),React.createElement("path",{d:"M96.3254 15.6356H93.6698L91.5486 11.7286H89.8648V15.6356H87.5654V4.63989H92.6173C94.8679 4.63989 96.2604 6.14006 96.2604 8.18426C96.2604 10.113 95.0461 11.1681 93.8804 11.4483L96.3254 15.6356ZM92.2936 9.66789C93.2004 9.66789 93.8967 9.10739 93.8967 8.16776C93.8967 7.26107 93.2004 6.70057 92.2936 6.70057H89.8648V9.66789H92.2936Z",fill:"#030712"}),React.createElement("path",{d:"M109.678 15.6356H107.362V7.70614L104.318 15.6356H103.314L100.27 7.70614V15.6356H97.9707V4.63989H101.193L103.816 11.5143L106.439 4.63989H109.678V15.6356Z",fill:"#030712"}),React.createElement("path",{d:"M115.676 15.8335C113.588 15.8335 112.098 15.1246 111.078 14.086L112.341 12.2562C113.102 13.0639 114.284 13.7563 115.774 13.7563C117.053 13.7563 117.652 13.1793 117.652 12.5364C117.652 10.6241 111.434 11.9594 111.434 7.82163C111.434 5.99175 112.989 4.4751 115.531 4.4751C117.247 4.4751 118.672 5.00263 119.741 6.00823L118.462 7.75569C117.588 6.93138 116.421 6.55225 115.32 6.55225C114.349 6.55225 113.798 6.98088 113.798 7.64025C113.798 9.37125 120 8.20075 120 12.3056C120 14.3168 118.575 15.8335 115.676 15.8335Z",fill:"#030712"}))),React.createElement("defs",null,React.createElement("clipPath",{id:"clip0_22722_181577"},React.createElement("rect",{width:"120",height:"20",fill:"white"})))))},Tb=p("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),bb={sm:{text:"text-sm",separator:"text-sm",separatorIconSize:16},md:{text:"text-base",separator:"text-base",separatorIconSize:18}},jb=(0,d.createContext)({sizes:bb.sm}),Eb=({children:e,size:t="sm"})=>{const n=bb[t]||bb.sm;return(0,u.jsx)(jb.Provider,{value:{sizes:n},children:(0,u.jsx)("nav",{className:"flex m-0","aria-label":"Breadcrumb",children:(0,u.jsx)("ul",{className:"m-0 inline-flex items-center space-x-1 md:space-x-1",children:e})})})};Eb.displayName="Breadcrumb";const Ib=({children:e})=>(0,u.jsx)(u.Fragment,{children:e});Ib.displayName="Breadcrumb.List";const Ab=({children:e})=>(0,u.jsx)("li",{className:"m-0 inline-flex items-center gap-2",children:e});Ab.displayName="Breadcrumb.Item";const Ob=({href:e,children:t,className:n,as:r="a",...o})=>{const{sizes:i}=(0,d.useContext)(jb);return(0,u.jsx)(r,{href:e,className:me(i.text,"px-1 font-medium no-underline text-text-tertiary hover:text-text-primary hover:underline","focus:outline-none focus:ring-1 focus:ring-border-interactive focus:border-border-interactive focus:rounded-sm","transition-all duration-200",n),...o,children:t})};Ob.displayName="Breadcrumb.Link";const kb=({type:e})=>{const{sizes:t}=(0,d.useContext)(jb),n={slash:(0,u.jsx)("span",{className:me("mx-1",t.separator),children:"/"}),arrow:(0,u.jsx)(dg,{size:t.separatorIconSize})};return(0,u.jsx)("li",{role:"separator",className:"flex items-center text-text-tertiary mx-2 p-0 list-none","aria-hidden":"true",children:n[e]||n.arrow})};kb.displayName="Breadcrumb.Separator";const zb=()=>{const{sizes:e}=(0,d.useContext)(jb);return(0,u.jsx)(Tb,{className:"mt-[2px] cursor-pointer text-text-tertiary hover:text-text-primary",size:e.separatorIconSize+4})};zb.displayName="Breadcrumb.Ellipsis";const Sb=({children:e})=>{const{sizes:t}=(0,d.useContext)(jb);return(0,u.jsx)("span",{className:me(t.text,"font-medium text-text-primary"),children:e})};Sb.displayName="Breadcrumb.Page",Eb.List=Ib,Eb.Item=Ab,Eb.Link=Ob,Eb.Separator=kb,Eb.Ellipsis=zb,Eb.Page=Sb;const Lb=function(e){var t=e.options;return React.createElement(Eb,null,React.createElement(Eb.List,null,t.map((function(e,t){switch(e.type){case"separator":return React.createElement(Eb.Separator,{key:t});case"ellipsis":return React.createElement(Eb.Item,{key:t},React.createElement(Eb.Ellipsis,null));case"page":return React.createElement(Eb.Item,{key:t},React.createElement(Eb.Page,null,e.text));default:return React.createElement(Eb.Item,{key:t},React.createElement(Eb.Link,null==e?void 0:e.linkProps,e.text))}}))))};function Cb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Rb(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rb(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ub=srfm_admin,Qb=Ub.site_url,Yb=void 0===Qb?"":Qb,Pb=Ub.is_pro_active,_b=void 0!==Pb&&Pb,Fb=[{slug:"sureforms_menu",text:(0,zu.__)("Dashboard","sureforms"),link:"".concat(Yb,"/wp-admin/admin.php?page=sureforms_menu")},{slug:"sureforms_forms",text:(0,zu.__)("Forms","sureforms"),link:"".concat(Yb,"/wp-admin/admin.php?page=sureforms_forms")},{slug:"sureforms_entries",text:(0,zu.__)("Entries","sureforms"),link:"".concat(Yb,"/wp-admin/admin.php?page=sureforms_entries")},{slug:"sureforms_payments",text:(0,zu.__)("Payments","sureforms"),link:"".concat(Yb,"/wp-admin/admin.php?page=sureforms_payments")},{slug:"sureforms_form_settings",text:(0,zu.__)("Settings","sureforms"),link:"".concat(Yb,"/wp-admin/admin.php?page=sureforms_form_settings&tab=general-settings")}],Bb=function(e){var t=e.title,n=e.icon,r=e.onClick,o=e.children;return React.createElement(XT.Item,{className:"p-1 gap-2"},React.createElement(Fx,{title:t,placement:"bottom",className:"z-999999",portalId:"srfm-dashboard-container",variant:"dark"},o||React.createElement(De,{size:"xs",variant:"ghost",className:"p-0 focus:[box-shadow:none] [box-shadow:none] text-text-primary",onClick:r,icon:n})))};const Vb=function(e){var t,n,r,o,i,s,l=e.breadCrumb,c=Cb((0,a.useState)(null),2),u=c[0],d=c[1],f=Cb((0,a.useState)((null===(t=srfm_admin)||void 0===t?void 0:t.is_license_active)||!1),2),h=f[0],m=f[1],g=(null===(n=srfm_admin)||void 0===n?void 0:n.is_first_form_created)||!1;return(0,a.useEffect)((function(){var e=new URLSearchParams(window.location.search),t=e.get("page");t||(t=e.get("post_type")),d(Fb.find((function(e){return e.slug===t})))}),[]),KT({uniqueKey:"sureforms",rssFeedURL:"https://sureforms.com/whats-new/feed/",selector:"#srfm_whats_new",icon:(0,a.renderToString)(React.createElement(gb,{className:"size-4 m-1"})),flyout:{title:(0,zu.__)("What's New?","sureforms")},triggerButton:{icon:(0,a.renderToString)(React.createElement(gb,{className:"size-4 m-1 text-text-primary"}))}}),(0,a.useEffect)((function(){window.addEventListener("srfm_license_status_updated",(function(e){null!=e&&e.detail&&m(e.detail.is_license_active)}))}),[]),React.createElement("div",{className:"top-8 z-[1]"},!_b&&!h&&"sureforms_menu"===(null==u?void 0:u.slug)&&g&&(null===(r=srfm_admin)||void 0===r?void 0:r.check_three_days_threshold)&&React.createElement(Db,null),React.createElement(XT,{className:"py-0 px-4 min-h-0 h-14 gap-4 shadow-sm bg-background-primary/75 backdrop-blur-[5px]"},React.createElement(XT.Left,{className:"gap-3"},React.createElement(XT.Item,{className:"w-auto h-auto lg:hidden"},React.createElement(mb,null,React.createElement(mb.Toggle,{className:"size-6"}),React.createElement(mb.Options,null,Fb.map((function(e){return React.createElement(mb.Option,{key:e.slug,active:(null==u?void 0:u.slug)===e.slug,href:e.link,iconPosition:"left",rel:"noopener noreferrer",tag:"a",target:"_self"},e.text)})),!_b&&!h&&React.createElement(mb.Option,{href:Fb[0].link,iconPosition:"left",rel:"noopener noreferrer",tag:"a",target:"_blank",className:"text-link-primary gap-1"},(0,zu.__)("Upgrade SureForms","sureforms")," ",React.createElement(pb,{className:"!size-5"}))))),React.createElement(XT.Item,null,l?React.createElement(wb,null):React.createElement(kT,null)),l&&!(null==l||!l.length)&&React.createElement(XT.Item,{className:"[&_li]:m-0 -ml-1"},React.createElement(Lb,{options:l}))),React.createElement(XT.Middle,{align:"left",className:"h-full hidden lg:flex"},React.createElement(XT.Item,null,!l&&React.createElement("nav",{className:"flex items-center gap-4 h-full"},Fb.map((function(e){return React.createElement("a",{className:ix("h-full text-text-secondary text-sm font-medium no-underline px-1 content-center relative focus:outline-none hover:text-text-primary focus:[box-shadow:none]",(null==u?void 0:u.slug)===(null==e?void 0:e.slug)&&'text-text-primary before:content-[""] before:absolute before:h-px before:bg-border-interactive before:bottom-0 before:inset-x-0'),href:e.link,key:e.slug},e.text)})))),!_b&&!h&&React.createElement(XT.Item,null,React.createElement(De,{icon:React.createElement(pb,{className:"!size-5"}),iconPosition:"right",variant:"link",size:"sm",className:"h-full text-link-primary text-sm font-semibold no-underline hover:no-underline hover:text-link-primary-hover px-1 content-center [box-shadow:none] focus:[box-shadow:none] focus:outline-none",onClick:function(){var e,t;return window.open(ox((null===(e=srfm_admin)||void 0===e?void 0:e.pricing_page_url)||(null===(t=srfm_admin)||void 0===t?void 0:t.sureforms_pricing_page),"dashboard-header-cta"),"_blank","noreferrer")}},(0,zu.__)("Upgrade SureForms","sureforms")))),React.createElement(XT.Right,null,React.createElement(XT.Item,{className:"flex gap-3 items-center"},React.createElement(Hm,{size:"xs",variant:"neutral",className:"text-text-tertiary"},null===(o=srfm_admin)||void 0===o?void 0:o.plugin_version),React.createElement(zm,{label:(0,zu.__)("Core","sureforms"),className:"text-text-tertiary",size:"xs",type:"rounded",variant:"neutral"}),_b&&React.createElement(React.Fragment,null,React.createElement("span",{className:"text-text-tertiary"},"|"),React.createElement(Hm,{size:"xs",variant:"neutral",className:"text-text-tertiary"},null===(i=srfm_admin)||void 0===i?void 0:i.pro_plugin_version),React.createElement(zm,{label:null===(s=srfm_admin)||void 0===s?void 0:s.pro_plugin_name.split(" ")[1],size:"xs",variant:"inverse",type:"rounded"}))),(_b||h)&&React.createElement(XT.Item,null,React.createElement(De,{variant:"ghost",className:"p-0 hover:bg-transparent focus:[box-shadow:none] [box-shadow:none]",onClick:function(){h||window.open("".concat(Yb,"/wp-admin/admin.php?page=sureforms_form_settings&tab=account-settings"),"_self","noopener noreferrer")},icon:React.createElement(zm,{label:h?(0,zu.__)("Activated","sureforms"):(0,zu.__)("Unlicensed","sureforms"),size:"xs",variant:h?"green":"red"})})),React.createElement(Bb,{title:(0,zu.__)("Knowledge Base","sureforms"),icon:React.createElement(Mb,{className:"size-4"}),onClick:function(){return window.open("https://sureforms.com/docs/","_blank","noopener noreferrer")}}),React.createElement(Bb,{title:(0,zu.__)("What’s New","sureforms")},React.createElement("div",{id:"srfm_whats_new",className:"[&>a]:p-0.5 [&>a]:pl-0"})))))},Wb=({design:e="inline",theme:t="light",variant:n="neutral",className:r="",title:o="",content:i="",icon:a=null,onClose:s,action:l={label:"",onClick:()=>{},type:"link"}})=>{const c=()=>{"function"==typeof s&&s()},d={neutral:"ring-alert-border-neutral bg-alert-background-neutral",custom:"ring-alert-border-neutral bg-alert-background-neutral",info:"ring-alert-border-info bg-alert-background-info",success:"ring-alert-border-green bg-alert-background-green",warning:"ring-alert-border-warning bg-alert-background-warning",error:"ring-alert-border-danger bg-alert-background-danger"},f="bg-background-inverse ring-background-inverse",h={light:"text-icon-secondary",dark:"text-icon-inverse"},m=()=>{l?.onClick?.(c)};return"stack"===e?(0,u.jsx)("div",{className:me("flex items-center justify-start p-4 gap-2 relative ring-1 rounded-md shadow-lg","dark"===t?f:d?.[n],r),children:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:"self-start flex items-center justify-center [&_svg]:size-5 shrink-0",children:Te({variant:n,icon:a,theme:t})}),(0,u.jsxs)("div",{className:"flex flex-col items-start justify-start gap-0.5 mr-7",children:[je({title:o,theme:t}),Ee({content:i,theme:t}),l?.label&&"function"==typeof l?.onClick&&(0,u.jsx)("div",{className:"mt-2.5",children:be({actionLabel:l?.label,actionType:l?.type??"button",onAction:m,theme:t})})]}),(0,u.jsx)("div",{className:"absolute right-4 top-4 [&_svg]:size-5",children:(0,u.jsx)("button",{className:me("bg-transparent m-0 p-0 border-none focus:outline-none active:outline-none cursor-pointer",h[t]??h.light),onClick:()=>c(),"aria-label":"Close alert",children:(0,u.jsx)(M,{})})})]})}):(0,u.jsxs)("div",{className:me("flex items-center justify-between p-3 gap-2 relative ring-1 rounded-lg shadow-lg","dark"===t?f:d?.[n],r),children:[(0,u.jsxs)("div",{className:"flex items-center justify-start gap-2",children:[(0,u.jsx)("div",{className:"self-start flex items-center justify-center [&_svg]:size-5 shrink-0",children:Te({variant:n,icon:a,theme:t})}),(0,u.jsxs)("p",{className:"content-start space-x-1 my-0 mr-10 px-1",children:[je({title:o,theme:t,inline:!0}),Ee({content:i,theme:t,inline:!0})]})]}),(0,u.jsxs)("div",{className:"flex h-full justify-start gap-4 [&_svg]:size-4",children:[l?.label&&"function"==typeof l?.onClick&&(0,u.jsx)("div",{className:"self-center flex h-5",children:be({actionLabel:l?.label,actionType:l?.type??"button",onAction:m,theme:t})}),"function"==typeof s&&(0,u.jsx)("button",{className:me("self-start bg-transparent m-0 border-none p-0.5 focus:outline-none active:outline-none cursor-pointer size-5",h[t]??h.light),onClick:()=>c(),"aria-label":"Close alert",children:(0,u.jsx)(M,{})})]})]})},Hb=Qu("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),Gb=Qu("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),qb=Qu("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]),$b=Qu("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);var Zb=function(e){switch(e){case"error":return React.createElement(Hb,{className:"!size-6"});case"warning":return React.createElement(Gb,{className:"!size-6"});case"success":return React.createElement(qb,{className:"!size-6"});default:return React.createElement($b,{className:"!size-6"})}},Kb=function(e){switch(e){case"error":return"shadow-none bg-alert-background-danger";case"warning":return"shadow-none bg-alert-background-warning";case"success":return"shadow-none bg-alert-background-success";default:return"shadow-none bg-alert-background-info"}},Xb=function(e){var t=e.variant,n=void 0===t?"info":t,r=e.message,o=e.title,i=e.actions,a=void 0===i?[]:i,s=React.createElement("span",{className:"flex flex-col gap-3.5"},React.createElement("span",null,r,a.length>0&&a.map((function(e,t){return React.createElement("span",{key:t}," ",React.createElement(De,{onClick:function(){e.url&&("_blank"===e.target?window.open(e.url,"_blank","noopener,noreferrer"):window.location.href=e.url),e.onClick&&e.onClick()},variant:"link",size:"xs",className:"inline-flex text-link-primary p-0 [&>span]:p-0"},e.label))}))));return React.createElement(Wb,{content:s,icon:Zb(n),title:o||null,variant:n,className:Kb(n)})};const Jb=function(e){var t,n=e.currentPage,r=void 0===n?"all":n,o=(null===(t=window.srfm_admin)||void 0===t?void 0:t.notices)||[];if(!o||0===o.length)return null;var i=o.filter((function(e){return!(e.pages&&!e.pages.includes("all"))||e.pages.includes(r)}));return 0===i.length?null:React.createElement("div",{className:"flex flex-col gap-4"},i.map((function(e){return React.createElement(Xb,{key:e.id,variant:e.variant||"info",message:e.message,title:e.title,actions:e.actions||[]})})))};var ej=function(e){var t=e.className;return React.createElement("div",{className:ix("z-50 relative",t)},React.createElement(Vb,null))};const tj=function(){var e;return React.createElement(React.Fragment,null,React.createElement(ej,null),(null===(e=window.srfm_admin)||void 0===e||null===(e=e.notices)||void 0===e?void 0:e.length)>0&&React.createElement("div",{className:"px-8 py-4"},React.createElement(Jb,{currentPage:"sureforms_entries"})),React.createElement(pu,null))};var nj=function(e){var t=e.className,n=iu().id;return React.createElement("div",{className:ix("z-50 relative",t)},React.createElement(Vb,{breadCrumb:[{type:"separator"},{text:(0,zu.__)("Entries","sureforms"),linkProps:{as:Iu,to:"/"}},{type:"separator"},{text:(0,zu.sprintf)((0,zu.__)("Entry #%s","sureforms"),n||""),type:"page"}]}))};const rj=function(){return React.createElement(React.Fragment,null,React.createElement(nj,null),React.createElement(pu,null))};var oj=function(){return React.createElement(bu,{basename:"/",future:{v7_startTransition:!0,v7_relativeSplatPath:!0}},React.createElement(Nu,null,React.createElement(Mu,{path:"/",element:React.createElement(tj,null)},React.createElement(Mu,{index:!0,element:React.createElement(Fv,null)})),React.createElement(Mu,{path:"/entry/:id",element:React.createElement(rj,null)},React.createElement(Mu,{index:!0,element:React.createElement(IT,null)}))))},ij=new class{#$;#N;#m;#Z;#K;#X;#J;#ee;constructor(e={}){this.#$=e.queryCache||new rc,this.#N=e.mutationCache||new ic,this.#m=e.defaultOptions||{},this.#Z=new Map,this.#K=new Map,this.#X=0}mount(){this.#X++,1===this.#X&&(this.#J=Wl.subscribe((async e=>{e&&(await this.resumePausedMutations(),this.#$.onFocus())})),this.#ee=Hl.subscribe((async e=>{e&&(await this.resumePausedMutations(),this.#$.onOnline())})))}unmount(){this.#X--,0===this.#X&&(this.#J?.(),this.#J=void 0,this.#ee?.(),this.#ee=void 0)}isFetching(e){return this.#$.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#N.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#$.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#$.build(this,t),r=n.state.data;return void 0===r?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(wl(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#$.findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=this.#$.get(r.queryHash),i=o?.state.data,a=function(e,t){return"function"==typeof e?e(t):e}(t,i);if(void 0!==a)return this.#$.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Bl.batch((()=>this.#$.findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#$.get(t.queryHash)?.state}removeQueries(e){const t=this.#$;Bl.batch((()=>{t.findAll(e).forEach((e=>{t.remove(e)}))}))}resetQueries(e,t){const n=this.#$;return Bl.batch((()=>(n.findAll(e).forEach((e=>{e.reset()})),this.refetchQueries({type:"active",...e},t))))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Bl.batch((()=>this.#$.findAll(e).map((e=>e.cancel(n)))));return Promise.all(r).then(xl).catch(xl)}invalidateQueries(e,t={}){return Bl.batch((()=>(this.#$.findAll(e).forEach((e=>{e.invalidate()})),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Bl.batch((()=>this.#$.findAll(e).filter((e=>!e.isDisabled()&&!e.isStatic())).map((e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(xl)),"paused"===e.state.fetchStatus?Promise.resolve():t}))));return Promise.all(r).then(xl)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=this.#$.build(this,t);return n.isStaleByTime(wl(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(xl).catch(xl)}fetchInfiniteQuery(e){return e.behavior=sc(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(xl).catch(xl)}ensureInfiniteQueryData(e){return e.behavior=sc(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Hl.isOnline()?this.#N.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#$}getMutationCache(){return this.#N}getDefaultOptions(){return this.#m}setDefaultOptions(e){this.#m=e}setQueryDefaults(e,t){this.#Z.set(Il(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#Z.values()],n={};return t.forEach((t=>{Al(e,t.queryKey)&&Object.assign(n,t.defaultOptions)})),n}setMutationDefaults(e,t){this.#K.set(Il(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#K.values()],n={};return t.forEach((t=>{Al(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)})),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#m.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=El(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Yl&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#m.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#$.clear(),this.#N.clear()}}({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnMount:!0,retry:1,staleTime:3e5}}});window.srfm_query_client=ij,window.srfm_toast=c,i()((function(){var e=document.getElementById("srfm-entries-root"),t=(0,a.createRoot)(e);t&&t.render(React.createElement(hc,{client:ij},React.createElement(oj,null),React.createElement(gl,{className:"z-999999"})))}))})()})();