(()=>{"use strict";function e(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 t(t,n){return function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(t,n)||function(t,n){if(t){if("string"==typeof t)return e(t,n);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}(t,n)||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.")}()}const n=Object.entries,r=Object.setPrototypeOf,o=Object.isFrozen,i=Object.getPrototypeOf,a=Object.getOwnPropertyDescriptor;let l=Object.freeze,s=Object.seal,c=Object.create,f="undefined"!=typeof Reflect&&Reflect,u=f.apply,d=f.construct;l||(l=function(e){return e}),s||(s=function(e){return e}),u||(u=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)}),d||(d=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 p=j(Array.prototype.forEach),m=j(Array.prototype.lastIndexOf),h=j(Array.prototype.pop),g=j(Array.prototype.push),y=j(Array.prototype.splice),v=Array.isArray,_=j(String.prototype.toLowerCase),b=j(String.prototype.toString),w=j(String.prototype.match),T=j(String.prototype.replace),S=j(String.prototype.indexOf),E=j(String.prototype.trim),k=j(Number.prototype.toString),A=j(Boolean.prototype.toString),N="undefined"==typeof BigInt?null:j(BigInt.prototype.toString),C="undefined"==typeof Symbol?null:j(Symbol.prototype.toString),x=j(Object.prototype.hasOwnProperty),O=j(Object.prototype.toString),D=j(RegExp.prototype.test),I=(R=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d(R,t)});var R;function j(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 u(e,t,r)}}function L(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_;if(r&&r(e,null),!v(t))return e;let i=t.length;for(;i--;){let r=t[i];if("string"==typeof r){const e=n(r);e!==r&&(o(t)||(t[i]=e),r=e)}e[r]=!0}return e}function M(e){for(let t=0;t<e.length;t++){x(e,t)||(e[t]=null)}return e}function P(e){const r=c(null);for(const i of n(e)){var o=t(i,2);const n=o[0],a=o[1];x(e,n)&&(v(a)?r[n]=M(a):a&&"object"==typeof a&&a.constructor===Object?r[n]=P(a):r[n]=a)}return r}function z(e,t){for(;null!==e;){const n=a(e,t);if(n){if(n.get)return j(n.get);if("function"==typeof n.value)return j(n.value)}e=i(e)}return function(){return null}}const F=l(["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"]),U=l(["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"]),H=l(["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"]),B=l(["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"]),Q=l(["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"]),G=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),W=l(["#text"]),V=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","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"]),Y=l(["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","dominant-baseline","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-orientation","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"]),q=l(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","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"]),J=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),X=s(/{{[\w\W]*|^[\w\W]*}}/g),$=s(/<%[\w\W]*|^[\w\W]*%>/g),Z=s(/\${[\w\W]*/g),K=s(/^data-[\-\w.\u00B7-\uFFFF]+$/),ee=s(/^aria-[\-\w]+$/),te=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ne=s(/^(?:\w+script|data):/i),re=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),oe=s(/^html$/i),ie=s(/^[a-z][.\w]*(-[.\w]+)+$/i),ae=s(/<[/\w!]/g),le=s(/<[/\w]/g),se=s(/<\/no(script|embed|frames)/i),ce=s(/\/>/i),fe=1,ue=3,de=7,pe=8,me=9,he=11,ge=function(){return"undefined"==typeof window?null:window},ye=function(e,t,n,r){return x(e,t)&&v(e[t])?L(r.base?P(r.base):{},e[t],r.transform):n};var ve=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ge();const r=t=>e(t);if(r.version="3.4.12",r.removed=[],!t||!t.document||t.document.nodeType!==me||!t.Element)return r.isSupported=!1,r;let o=t.document;const i=o,a=i.currentScript;t.DocumentFragment;const f=t.HTMLTemplateElement,u=t.Node,d=t.Element,R=t.NodeFilter,j=t.NamedNodeMap;void 0===j&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const M=t.DOMParser,ve=t.trustedTypes,_e=d.prototype,be=z(_e,"cloneNode"),we=z(_e,"remove"),Te=z(_e,"nextSibling"),Se=z(_e,"childNodes"),Ee=z(_e,"parentNode"),ke=z(_e,"shadowRoot"),Ae=z(_e,"attributes"),Ne=u&&u.prototype?z(u.prototype,"nodeType"):null,Ce=u&&u.prototype?z(u.prototype,"nodeName"):null;if("function"==typeof f){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let xe,Oe,De="",Ie=!1,Re=0;const je=function(){if(Re>0)throw I('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},Le=function(e){je(),Re++;try{return xe.createHTML(e)}finally{Re--}},Me=function(){return Ie||(Oe=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}}(ve,a),Ie=!0),Oe},Pe=o,ze=Pe.implementation,Fe=Pe.createNodeIterator,Ue=Pe.createDocumentFragment,He=Pe.getElementsByTagName,Be=i.importNode;let Qe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof n&&"function"==typeof Ee&&ze&&void 0!==ze.createHTMLDocument;const Ge=X,We=$,Ve=Z,Ye=K,qe=ee,Je=ne,Xe=re,$e=ie;let Ze=te,Ke=null;const et=L({},[...F,...U,...H,...Q,...W]);let tt=null;const nt=L({},[...V,...Y,...q,...J]);let rt=Object.seal(c(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}})),ot=null,it=null;const at=Object.seal(c(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let lt=!0,st=!0,ct=!1,ft=!0,ut=!1,dt=!0,pt=!1,mt=!1,ht=null,gt=null,yt=!1,vt=!1,_t=!1,bt=!1,wt=!0,Tt=!1;const St="user-content-";let Et=!0,kt=!1,At={},Nt=null;const Ct=L({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let xt=null;const Ot=L({},["audio","video","img","source","image","track"]);let Dt=null;const It=L({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Rt="http://www.w3.org/1998/Math/MathML",jt="http://www.w3.org/2000/svg",Lt="http://www.w3.org/1999/xhtml";let Mt=Lt,Pt=!1,zt=null;const Ft=L({},[Rt,jt,Lt],b),Ut=l(["mi","mo","mn","ms","mtext"]);let Ht=L({},Ut);const Bt=l(["annotation-xml"]);let Qt=L({},Bt);const Gt=L({},["title","style","font","a","script"]);let Wt=null;const Vt=["application/xhtml+xml","text/html"];let Yt=null,qt=null;const Jt=o.createElement("form"),Xt=function(e){return e instanceof RegExp||e instanceof Function},$t=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(qt&&qt===e)return;e&&"object"==typeof e||(e={}),e=P(e),Wt=-1===Vt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Yt="application/xhtml+xml"===Wt?b:_,Ke=ye(e,"ALLOWED_TAGS",et,{transform:Yt}),tt=ye(e,"ALLOWED_ATTR",nt,{transform:Yt}),zt=ye(e,"ALLOWED_NAMESPACES",Ft,{transform:b}),Dt=ye(e,"ADD_URI_SAFE_ATTR",It,{transform:Yt,base:It}),xt=ye(e,"ADD_DATA_URI_TAGS",Ot,{transform:Yt,base:Ot}),Nt=ye(e,"FORBID_CONTENTS",Ct,{transform:Yt}),ot=ye(e,"FORBID_TAGS",P({}),{transform:Yt}),it=ye(e,"FORBID_ATTR",P({}),{transform:Yt}),At=!!x(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?P(e.USE_PROFILES):e.USE_PROFILES),lt=!1!==e.ALLOW_ARIA_ATTR,st=!1!==e.ALLOW_DATA_ATTR,ct=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ft=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,ut=e.SAFE_FOR_TEMPLATES||!1,dt=!1!==e.SAFE_FOR_XML,pt=e.WHOLE_DOCUMENT||!1,vt=e.RETURN_DOM||!1,_t=e.RETURN_DOM_FRAGMENT||!1,bt=e.RETURN_TRUSTED_TYPE||!1,yt=e.FORCE_BODY||!1,wt=!1!==e.SANITIZE_DOM,Tt=e.SANITIZE_NAMED_PROPS||!1,Et=!1!==e.KEEP_CONTENT,kt=e.IN_PLACE||!1,Ze=function(e){try{return D(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:te,Mt="string"==typeof e.NAMESPACE?e.NAMESPACE:Lt,Ht=x(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?P(e.MATHML_TEXT_INTEGRATION_POINTS):L({},Ut),Qt=x(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?P(e.HTML_INTEGRATION_POINTS):L({},Bt);const t=x(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?P(e.CUSTOM_ELEMENT_HANDLING):c(null);if(rt=c(null),x(t,"tagNameCheck")&&Xt(t.tagNameCheck)&&(rt.tagNameCheck=t.tagNameCheck),x(t,"attributeNameCheck")&&Xt(t.attributeNameCheck)&&(rt.attributeNameCheck=t.attributeNameCheck),x(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(rt.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),s(rt),ut&&(st=!1),_t&&(vt=!0),At&&(Ke=L({},W),tt=c(null),!0===At.html&&(L(Ke,F),L(tt,V)),!0===At.svg&&(L(Ke,U),L(tt,Y),L(tt,J)),!0===At.svgFilters&&(L(Ke,H),L(tt,Y),L(tt,J)),!0===At.mathMl&&(L(Ke,Q),L(tt,q),L(tt,J))),at.tagCheck=null,at.attributeCheck=null,x(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?at.tagCheck=e.ADD_TAGS:v(e.ADD_TAGS)&&(Ke===et&&(Ke=P(Ke)),L(Ke,e.ADD_TAGS,Yt))),x(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?at.attributeCheck=e.ADD_ATTR:v(e.ADD_ATTR)&&(tt===nt&&(tt=P(tt)),L(tt,e.ADD_ATTR,Yt))),x(e,"ADD_URI_SAFE_ATTR")&&v(e.ADD_URI_SAFE_ATTR)&&L(Dt,e.ADD_URI_SAFE_ATTR,Yt),x(e,"FORBID_CONTENTS")&&v(e.FORBID_CONTENTS)&&(Nt===Ct&&(Nt=P(Nt)),L(Nt,e.FORBID_CONTENTS,Yt)),x(e,"ADD_FORBID_CONTENTS")&&v(e.ADD_FORBID_CONTENTS)&&(Nt===Ct&&(Nt=P(Nt)),L(Nt,e.ADD_FORBID_CONTENTS,Yt)),Et&&(Ke["#text"]=!0),pt&&L(Ke,["html","head","body"]),Ke.table&&(L(Ke,["tbody"]),delete ot.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw I('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw I('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=xe;xe=e.TRUSTED_TYPES_POLICY;try{De=Le("")}catch(e){throw xe=t,e}}else null===e.TRUSTED_TYPES_POLICY?(xe=void 0,De=""):(void 0===xe&&(xe=Me()),xe&&"string"==typeof De&&(De=Le("")));l&&l(e),qt=e},Zt=L({},[...U,...H,...B]),Kt=L({},[...Q,...G]),en=function(e){let t=Ee(e);t&&t.tagName||(t={namespaceURI:Mt,tagName:"template"});const n=_(e.tagName),r=_(t.tagName);return!!zt[e.namespaceURI]&&(e.namespaceURI===jt?function(e,t,n){return t.namespaceURI===Lt?"svg"===e:t.namespaceURI===Rt?"svg"===e&&("annotation-xml"===n||Ht[n]):Boolean(Zt[e])}(n,t,r):e.namespaceURI===Rt?function(e,t,n){return t.namespaceURI===Lt?"math"===e:t.namespaceURI===jt?"math"===e&&Qt[n]:Boolean(Kt[e])}(n,t,r):e.namespaceURI===Lt?function(e,t,n){return!(t.namespaceURI===jt&&!Qt[n])&&!(t.namespaceURI===Rt&&!Ht[n])&&!Kt[e]&&(Gt[e]||!Zt[e])}(n,t,r):!("application/xhtml+xml"!==Wt||!zt[e.namespaceURI]))},tn=function(e){g(r.removed,{element:e});try{Ee(e).removeChild(e)}catch(t){if(we(e),!Ee(e))throw I("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},nn=function(e){an(e);const t=Se(e);if(t){const e=[];p(t,t=>{g(e,t)}),p(e,e=>{try{we(e)}catch(e){}})}const n=Ae(e);if(n)for(let t=n.length-1;t>=0;--t){const r=n[t],o=r&&r.name;if("string"==typeof o)try{e.removeAttribute(o)}catch(e){}}},rn=function(e,t){try{g(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){g(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(vt||_t)try{tn(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},on=function(e){const t=Ae(e);if(t)for(let n=t.length-1;n>=0;--n){const r=t[n],o=r&&r.name;if("string"==typeof o&&!tt[Yt(o)])try{e.removeAttribute(o)}catch(e){}}},an=function(e){const t=[e];for(;t.length>0;){const e=t.pop();(Ne?Ne(e):e.nodeType)===fe&&on(e);const n=Se(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},ln=function(e){let t=null,n=null;if(yt)e="<remove></remove>"+e;else{const t=w(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Wt&&Mt===Lt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=xe?Le(e):e;if(Mt===Lt)try{t=(new M).parseFromString(r,Wt)}catch(e){}if(!t||!t.documentElement){t=ze.createDocument(Mt,"template",null);try{t.documentElement.innerHTML=Pt?De:r}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),Mt===Lt?He.call(t,pt?"html":"body")[0]:pt?t.documentElement:i},sn=function(e){return Fe.call(e.ownerDocument||e,e,R.SHOW_ELEMENT|R.SHOW_COMMENT|R.SHOW_TEXT|R.SHOW_PROCESSING_INSTRUCTION|R.SHOW_CDATA_SECTION,null)},cn=function(e){return e=T(e,Ge," "),e=T(e,We," "),e=T(e,Ve," ")},fn=function(e){var t;e.normalize();const n=Fe.call(e.ownerDocument||e,e,R.SHOW_TEXT|R.SHOW_COMMENT|R.SHOW_CDATA_SECTION|R.SHOW_PROCESSING_INSTRUCTION,null);let r=n.nextNode();for(;r;)r.data=cn(r.data),r=n.nextNode();const o=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");o&&p(o,e=>{dn(e.content)&&fn(e.content)})},un=function(e){const t=Ce?Ce(e):null;return"string"==typeof t&&("form"===Yt(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==Ae(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==Ne(e)||e.childNodes!==Se(e)))},dn=function(e){if(!Ne||"object"!=typeof e||null===e)return!1;try{return Ne(e)===he}catch(e){return!1}},pn=function(e){if(!Ne||"object"!=typeof e||null===e)return!1;try{return"number"==typeof Ne(e)}catch(e){return!1}};function mn(e,t,n){0!==e.length&&p(e,e=>{e.call(r,t,n,qt)})}const hn=function(e,t){if(mn(Qe.beforeSanitizeElements,e,null),e!==t&&null===Ee(e))return!0;if(un(e))return tn(e),!0;const n=Yt(Ce?Ce(e):e.nodeName);if(mn(Qe.uponSanitizeElement,e,{tagName:n,allowedTags:Ke}),e!==t&&null===Ee(e))return!0;if(function(e,t){return!!(dt&&e.hasChildNodes()&&!pn(e.firstElementChild)&&D(ae,e.textContent)&&D(ae,e.innerHTML))||!(!dt||e.namespaceURI!==Lt||"style"!==t||!pn(e.firstElementChild))||e.nodeType===de||!(!dt||e.nodeType!==pe||!D(le,e.data))}(e,n))return tn(e),!0;if(ot[n]||!(at.tagCheck instanceof Function&&at.tagCheck(n))&&!Ke[n]){const t=function(e,t){if(!ot[t]&&vn(t)){if(rt.tagNameCheck instanceof RegExp&&D(rt.tagNameCheck,t))return!1;if(rt.tagNameCheck instanceof Function&&rt.tagNameCheck(t))return!1}if(Et&&!Nt[t]){const t=Ee(e),n=Se(e);if(n&&t)for(let r=n.length-1;r>=0;--r){const o=kt?n[r]:be(n[r],!0);t.insertBefore(o,Te(e))}}return tn(e),!0}(e,n);return!1===t&&mn(Qe.afterSanitizeElements,e,null),t}if((Ne?Ne(e):e.nodeType)===fe&&!en(e))return tn(e),!0;if(("noscript"===n||"noembed"===n||"noframes"===n)&&D(se,e.innerHTML))return tn(e),!0;if(ut&&e.nodeType===ue){const t=cn(e.textContent);e.textContent!==t&&(g(r.removed,{element:e.cloneNode()}),e.textContent=t)}return mn(Qe.afterSanitizeElements,e,null),!1},gn=function(e,t,n){if(it[t])return!1;if(dt&&"patchsrc"===t)return!1;if(dt&&"for"===t&&"label"!==e&&"output"!==e)return!1;if(wt&&("id"===t||"name"===t)&&(n in o||n in Jt))return!1;const r=tt[t]||at.attributeCheck instanceof Function&&at.attributeCheck(t,e);if(st&&D(Ye,t));else if(lt&&D(qe,t));else if(r)if(Dt[t]);else if(D(Ze,T(n,Xe,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==S(n,"data:")||!xt[e]){if(ct&&!D(Je,T(n,Xe,"")));else if(n)return!1}else;else if(!(vn(e)&&(rt.tagNameCheck instanceof RegExp&&D(rt.tagNameCheck,e)||rt.tagNameCheck instanceof Function&&rt.tagNameCheck(e))&&(rt.attributeNameCheck instanceof RegExp&&D(rt.attributeNameCheck,t)||rt.attributeNameCheck instanceof Function&&rt.attributeNameCheck(t,e))||"is"===t&&rt.allowCustomizedBuiltInElements&&(rt.tagNameCheck instanceof RegExp&&D(rt.tagNameCheck,n)||rt.tagNameCheck instanceof Function&&rt.tagNameCheck(n))))return!1;return!0},yn=L({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),vn=function(e){return!yn[_(e)]&&D($e,e)},_n=function(e,t,n,r){if(xe&&"object"==typeof ve&&"function"==typeof ve.getAttributeType&&!n)switch(ve.getAttributeType(e,t)){case"TrustedHTML":return Le(r);case"TrustedScriptURL":return function(e){je(),Re++;try{return xe.createScriptURL(e)}finally{Re--}}(r)}return r},bn=function(e,t,n,o){try{n?e.setAttributeNS(n,t,o):e.setAttribute(t,o),un(e)?tn(e):h(r.removed)}catch(n){rn(t,e)}},wn=function(e){mn(Qe.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||un(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:tt,forceKeepAttr:void 0};let r=t.length;const o=Yt(e.nodeName);for(;r--;){const i=t[r],a=i.name,l=i.namespaceURI,s=i.value,c=Yt(a),f=s;let u="value"===a?f:E(f);n.attrName=c,n.attrValue=u,n.keepAttr=!0,n.forceKeepAttr=void 0,mn(Qe.uponSanitizeAttribute,e,n),u=n.attrValue,!Tt||"id"!==c&&"name"!==c||0===S(u,St)||(rn(a,e),u=St+u),dt&&D(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)?rn(a,e):"attributename"===c&&w(u,"href")?rn(a,e):n.forceKeepAttr||(n.keepAttr&&(ft||!D(ce,u))?(ut&&(u=cn(u)),gn(o,c,u)?(u=_n(o,c,l,u),u!==f&&bn(e,a,l,u)):rn(a,e)):rn(a,e))}mn(Qe.afterSanitizeAttributes,e,null)},Tn=function(e){let t=null;const n=sn(e);for(mn(Qe.beforeSanitizeShadowDOM,e,null);t=n.nextNode();){mn(Qe.uponSanitizeShadowNode,t,null),hn(t,e),wn(t),dn(t.content)&&Tn(t.content);if((Ne?Ne(t):t.nodeType)===fe){const e=ke(t);dn(e)&&(Sn(e),Tn(e))}}mn(Qe.afterSanitizeShadowDOM,e,null)},Sn=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const e=t.pop();if(e.shadow){Tn(e.shadow);continue}const n=e.node,r=(Ne?Ne(n):n.nodeType)===fe,o=Se(n);if(o)for(let e=o.length-1;e>=0;--e)t.push({node:o[e],shadow:null});if(r){const e=Ce?Ce(n):null;if("string"==typeof e&&"template"===Yt(e)){const e=n.content;dn(e)&&t.push({node:e,shadow:null})}}if(r){const e=ke(n);dn(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,a=null,l=null;if(Pt=!e,Pt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!pn(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return k(e);case"boolean":return A(e);case"bigint":return N?N(e):"0";case"symbol":return C?C(e):"Symbol()";case"undefined":default:return O(e);case"function":case"object":{if(null===e)return O(e);const t=e,n=z(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:O(e)}return O(e)}}}(e)))throw I("dirty is not a string, aborting");if(!r.isSupported)return e;mt?(Ke=ht,tt=gt):$t(t),(Qe.uponSanitizeElement.length>0||Qe.uponSanitizeAttribute.length>0)&&(Ke=P(Ke)),Qe.uponSanitizeAttribute.length>0&&(tt=P(tt)),r.removed=[];const s=kt&&"string"!=typeof e&&pn(e);if(s){!function(e){if(!dt)return;const t=[e];for(;t.length>0;){const e=t.pop(),n=Ne?Ne(e):e.nodeType;if(n===de||n===pe&&D(le,e.data)){try{we(e)}catch(e){}continue}if(n===fe){const t=e,n=Yt(Ce?Ce(e):e.nodeName);try{t.hasAttribute&&t.hasAttribute("patchsrc")&&t.removeAttribute("patchsrc"),t.hasAttribute&&t.hasAttribute("for")&&"label"!==n&&"output"!==n&&t.removeAttribute("for")}catch(e){}}const r=Se(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}}(e);const t=Ce?Ce(e):e.nodeName;if("string"==typeof t){const n=Yt(t);if(!Ke[n]||ot[n])throw nn(e),I("root node is forbidden and cannot be sanitized in-place")}if(un(e))throw nn(e),I("root node is clobbered and cannot be sanitized in-place");try{Sn(e)}catch(t){throw nn(e),t}}else if(pn(e))n=ln("\x3c!----\x3e"),o=n.ownerDocument.importNode(e,!0),o.nodeType===fe&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o),Sn(o);else{if(!vt&&!ut&&!pt&&-1===e.indexOf("<"))return xe&&bt?Le(e):e;if(n=ln(e),!n)return vt?null:bt?De:""}n&&yt&&tn(n.firstChild);const c=s?e:n,f=sn(c);try{for(;a=f.nextNode();)hn(a,c),wn(a),dn(a.content)&&Tn(a.content)}catch(t){throw s&&(nn(e),p(r.removed,e=>{e.element&&an(e.element)})),t}if(s)return p(r.removed,e=>{e.element&&an(e.element)}),ut&&fn(e),e;if(vt){if(ut&&fn(n),_t)for(l=Ue.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(tt.shadowroot||tt.shadowrootmode)&&(l=Be.call(i,l,!0)),l}let u=pt?n.outerHTML:n.innerHTML;return pt&&Ke["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&D(oe,n.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+u),ut&&(u=cn(u)),xe&&bt?Le(u):u},r.setConfig=function(){$t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),mt=!0,ht=Ke,gt=tt},r.clearConfig=function(){qt=null,mt=!1,ht=null,gt=null,xe=Oe,De=""},r.isValidAttribute=function(e,t,n){qt||$t({});const r=Yt(e),o=Yt(t);return gn(r,o,n)},r.addHook=function(e,t){"function"==typeof t&&x(Qe,e)&&g(Qe[e],t)},r.removeHook=function(e,t){if(x(Qe,e)){if(void 0!==t){const n=m(Qe[e],t);return-1===n?void 0:y(Qe[e],n,1)[0]}return h(Qe[e])}},r.removeHooks=function(e){x(Qe,e)&&(Qe[e]=[])},r.removeAllHooks=function(){Qe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}();function _e(e){return null==e?"":ve.sanitize(String(e))}function be(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 we(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?be(Object(n),!0).forEach(function(t){Te(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):be(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Te(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Se(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Se(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Se(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Se(e){return Se="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},Se(e)}jQuery(document).ready(function(){window.fluentFormrecaptchaSuccessCallback=function(e){if(window.innerWidth<768&&/iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream){var t=jQuery(".g-recaptcha").filter(function(t,n){return grecaptcha.getResponse(t)==e});t.length&&jQuery("html, body").animate({scrollTop:t.first().offset().top-jQuery(window).height()/2},0)}},window.ffValidationError=function(){var e=function(){};return(e.prototype=Object.create(Error.prototype)).constructor=e,e}(),window.ff_helper={numericVal:function(e){if(e.hasClass("ff_numeric")){var t=JSON.parse(e.attr("data-formatter"));return currency(e.val(),t).value}return e.val()||0},formatCurrency:function(e,t){if(e.hasClass("ff_numeric")){var n=JSON.parse(e.attr("data-formatter"));return currency(t,n).format()}return t}},function(e,t){e||(e={}),e.stepAnimationDuration=parseInt(e.stepAnimationDuration);var n={};window.fluentFormApp=function(r){var i=r.attr("data-form_instance");i=i?i.replace(/[^a-zA-Z0-9_-]/g,""):"";var a=window["fluent_form_"+i],l=a&&"object"===Se(a)?a:null;if(!l)return console.log("No Fluent form JS vars found!"),!1;if(n[i])return n[i];e.ajaxUrl||(e.ajaxUrl=l.ajaxUrl||window.ajaxurl);var s,c,f,u,d,p,m,h,g,y,v,_,b,w,T,S,E,k,A,N,C,x,O,D,I,R=l.form_id_selector,j="."+i;return s=o,c={},f=!1,u=function(){return t("body").find("form"+j)},p=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"next";r.trigger("update_slider",{goBackToStep:e,animDuration:t,isScrollTop:n,actionType:o})},m=function(e){try{var n=e.find(":input").filter(function(e,n){return"repeater_container"===t(n).attr("data-type")?!t(n).closest(".ff-repeater-container").hasClass("ff_excluded")&&(t(this).closest(".has-conditions").hasClass("ff_excluded")&&t(this).val(""),!0):!t(n).closest(".has-conditions").hasClass("ff_excluded")});T(n);var r=n.serializeArray(),o=r.map(function(e){return e.name});n=n.filter(function(){return!t(this).closest(".ff-el-input--content").find("table").length});var i={};n.each(function(){var n=t(this).attr("name");o.includes(n)||(t(this).is(":checkbox")||t(this).is(":radio"))&&(i[n]||e.find('input[name="'+n+'"]:checked').length||(r.push({name:n,value:""}),i[n]=!0))});var a={data:t.param(t.map(r,function(e){return{name:e.name,value:e.value}})),action:"fluentform_submit",form_id:e.data("form_id")};if(t.each(e.find("[type=file]"),function(e,n){var r={},o=n.name+"[]";r[o]=[],t(n).closest("div").find(".ff-uploaded-list").find(".ff-upload-preview[data-src]").each(function(e,n){r[o][e]=t(this).data("src")}),t.each(r,function(e,n){if(n.length){var r={};r[e]=n,a.data+="&"+t.param(r)}})}),e.find(".ff_uploading").length){var s=t("<div/>",{class:"error text-danger"}),f=t("<span/>",{class:"error-clear",html:"&times;",click:function(e){return t(j+"_errors").html("")}}),u=t("<span/>",{class:"error-text",text:(y="file_upload_in_progress",v="File upload in progress. Please wait...",_="fluentform_submission_messages_"+l.id,window[_]&&window[_][y]?window[_][y]:v)});return t(j+"_errors").html(s.append(u,f)).show()}if(e.find(".ff-el-recaptcha.g-recaptcha").length){var d=e.find(".ff-el-recaptcha.g-recaptcha").data("g-recaptcha_widget_id");void 0!==d&&(a.data+="&"+t.param({"g-recaptcha-response":grecaptcha.getResponse(d)}))}if(e.find(".ff-el-hcaptcha.h-captcha").length){var p=e.find(".ff-el-hcaptcha.h-captcha").data("h-captcha_widget_id");void 0!==p&&(a.data+="&"+t.param({"h-captcha-response":hcaptcha.getResponse(p)}))}if(e.find(".ff-el-turnstile.cf-turnstile").length){var m=e.find(".ff-el-turnstile.cf-turnstile").data("cf-turnstile_widget_id");void 0!==m&&(a.data+="&"+t.param({"cf-turnstile-response":turnstile.getResponse(m)}))}t(j+"_success").remove(),t(j+"_errors").html(""),e.find(".error").html(""),e.parent().find(".ff-errors-in-stack").hide(),function(e,t){var n=[],r=c;return e.hasClass("ff_has_v3_recptcha")&&(r.ff_v3_recptcha=function(e,t){var n=jQuery.Deferred(),r=e.data("recptcha_key");return grecaptcha.execute(r,{action:"submit"}).then(function(e){t.data+="&"+jQuery.param({"g-recaptcha-response":e}),n.resolve()}),n.promise()}),jQuery.each(r,function(r,o){n.push(o(e,t))}),jQuery.when.apply(jQuery,n)}(e,a).then(function(){g(e),h(e,a)})}catch(t){if(!(t instanceof ffValidationError))throw t;e.trigger("fluentform_validation_failed",{form:e,response:t.messages}),S(t.messages),b(350)}var y,v,_},h=function(n,r){var o,i,a,s=(o="t="+Date.now(),i=e.ajaxUrl,i+=(i.split("?")[1]?"&":"?")+o);f||(f=!0,t.post(s,r).then(function(r){if(!r||!r.data||!r.data.result)return n.trigger("fluentform_submission_failed",{form:n,response:r}),void S(r);if(a=r,r.data.append_data&&D(r.data.append_data),r.data.nextAction)n.trigger("fluentform_next_action_"+r.data.nextAction,{form:n,response:r});else{n.triggerHandler("fluentform_submission_success",{form:n,config:l,response:r}),jQuery(document.body).trigger("fluentform_submission_success",{form:n,config:l,response:r});var o=new CustomEvent("fluentform_submission_success",{detail:{form:n[0],config:l,response:r}});if(document.dispatchEvent(o),"redirectUrl"in r.data.result)return r.data.result.message&&(t("<div/>",{id:R+"_success",class:"ff-message-success",role:"status","aria-live":"polite"}).html(_e(r.data.result.message)).insertAfter(n).focus(),n.find(".ff-el-is-error").removeClass("ff-el-is-error")),setTimeout(function(){y(n)},500),void(location.href=r.data.result.redirectUrl);var i=R+"_success",s="#"+i;t(s).length&&t(s).slideUp("fast"),t("<div/>",{id:i,class:"ff-message-success",role:"status","aria-live":"polite"}).html(_e(r.data.result.message)).insertAfter(n).focus(),n.find(".ff-el-is-error").removeClass("ff-el-is-error"),"hide_form"==r.data.result.action?(n.hide().addClass("ff_force_hide"),n[0].reset()):(jQuery(document.body).trigger("fluentform_reset",[n,l]),n[0].reset());var c=t(s);c.length&&!w(c[0])&&t("html, body").animate({scrollTop:c.offset().top-(t("#wpadminbar")?32:0)-20},e.stepAnimationDuration)}}).fail(function(t){n.trigger("fluentform_submission_failed",{form:n,response:t});var r=new CustomEvent("fluentform_submission_failed",{detail:{form:n[0],response:t,config:l}});if(document.dispatchEvent(r),t&&t.responseJSON&&(t.responseJSON.data||t.responseJSON.errors)){if(a=t,t.responseJSON.append_data&&D(t.responseJSON.append_data),S(t.responseJSON.errors||t.responseJSON.data),b(350),n.find(".fluentform-step").length){var o=n.find(".error").not(":empty:first").closest(".fluentform-step");if(o.length){var i=o.index();p(i,e.stepAnimationDuration,!1)}}y(n)}else S(t.responseText)}).always(function(e){var t;if(f=!1,null===(t=a)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.result)||void 0===t||!t.hasOwnProperty("redirectUrl")){if(y(n),window.grecaptcha){var r=n.find(".ff-el-recaptcha.g-recaptcha").data("g-recaptcha_widget_id");void 0!==r&&grecaptcha.reset(r)}if(window.hcaptcha){var o=n.find(".ff-el-hcaptcha.h-captcha").data("h-captcha_widget_id");void 0!==o&&hcaptcha.reset(o)}if(window.turnstile){var i=n.find(".ff-el-turnstile.cf-turnstile").data("cf-turnstile_widget_id");void 0!==i&&turnstile.reset(i)}}}))},v=function(){"yes"!=r.attr("data-ff_reinit")&&(t(document).on("submit",j,function(e){e.preventDefault(),window.ff_sumitting_form||(window.ff_sumitting_form=!0,setTimeout(function(){window.ff_sumitting_form=!1},1500),m(t(this)))}),t(document).on("reset",j,function(n){!function(n){t(".ff-step-body",r).length&&p(0,e.stepAnimationDuration,!1),n.find(".ff-el-repeat .ff-t-cell").each(function(){t(this).find("input").not(":first").remove()}),n.find(".ff-el-repeat .ff-el-repeat-buttons-list").find(".ff-el-repeat-buttons").not(":first").remove();var o=n.find("input[type=checkbox],input[type=radio]");o.length&&o.each(function(e,n){(n=t(n)).prop("defaultChecked")?n.closest(".ff-el-form-check").addClass("ff_item_selected"):n.closest(".ff-el-form-check.ff_item_selected").removeClass("ff_item_selected")}),n.find("input[type=file]").closest("div").find(".ff-uploaded-list").html("").end().closest("div").find(".ff-upload-progress").addClass("ff-hidden").find(".ff-el-progress-bar").css("width","0%");var i=n.find('input[type="range"]');i.length&&i.each(function(e,n){(n=t(n)).val(n.data("calc_value")).change()}),t.each(l.conditionals,function(e,n){t.each(n.conditions,function(e,t){_(N(t.field))})})}(t(this))}),t(document).on("keydown",j+' input[type="radio"], '+j+' input[type="checkbox"]',function(e){if("Enter"===e.key)return e.preventDefault(),"radio"===t(this).attr("type")?t(this).prop("checked",!0):"checkbox"===t(this).attr("type")&&t(this).prop("checked",!t(this).prop("checked")),t(this).trigger("change"),e.stopPropagation(),!1}))},_=function(e){var n=e.prop("type");null!=n&&("checkbox"==n||"radio"==n?e.each(function(e,n){var r=t(this);r.prop("checked",r.prop("defaultChecked"))}):n.startsWith("select")?e.find("option").each(function(e,n){var r=t(this);r.prop("selected",r.prop("defaultSelected"))}):e.val(e.prop("defaultValue")),e.trigger("change"))},b=function(e){var n=l.settings.layout.errorMessagePlacement;if(n&&"stackToBottom"!=n){var o=r.find(".ff-el-is-error").first();o.length&&!w(o[0])&&t("html, body").delay(e).animate({scrollTop:o.offset().top-(t("#wpadminbar")?32:0)-20},e)}},w=function(e){if(!e)return!0;var n=e.getBoundingClientRect();return n.top>=0&&n.left>=0&&n.bottom<=t(window).height()&&n.right<=t(window).width()},S=function(e){if(r.parent().find(".ff-errors-in-stack").empty(),e)if("string"!=typeof e){var n=l.settings.layout.errorMessagePlacement;if(!n||"stackToBottom"==n)return E(e),!1;r.find(".error").empty(),r.find(".ff-el-group").removeClass("ff-el-is-error"),t.each(e,function(e,n){"string"==typeof n&&(n=[n]),t.each(n,function(t,n){k(e,n)})})}else E({error:[e]})},E=function(e){var n=u(),r=n.parent().find(".ff-errors-in-stack");e&&(t.isEmptyObject(e)||(t.each(e,function(e,o){"string"==typeof o&&(o=[o]),t.each(o,function(o,i){var a=t("<div/>",{class:"error text-danger"}),l=t("<span/>",{class:"error-clear",html:"&times;"}),s=t("<span/>",{class:"error-text","data-name":N(e).attr("name"),html:i});a.attr("role","alert"),a.append(s,l),t(document.body).trigger("fluentform_error_in_stack",{form:n,element:N(e),message:s}),r.append(a).show()});var i=N(e);if(i){var a=i.attr("name");i.attr("aria-invalid","true");var l=t("[name='"+a+"']",n).first();l&&l.closest(".ff-el-group").addClass("ff-el-is-error")}}),w(r[0])||t("html, body").animate({scrollTop:r.offset().top-100},350),r.on("click",".error-clear",function(){t(this).closest("div").remove(),r.hide()}).on("click",".error-text",function(){var e=t("[name='".concat(t(this).data("name"),"']"),n).first();t("html, body").animate({scrollTop:e.offset()&&e.offset().top-100},350,function(t){return e.focus()})})))},k=function(e,n){var o,i;(o=N(e)).length?(o.attr("aria-invalid","true"),(i=t("<div/>",{class:"error text-danger"})).attr("role","alert"),o.closest(".ff-el-group").addClass("ff-el-is-error"),o.closest(".ff-el-input--content").length?(o.closest(".ff-el-input--content").find("div.error").remove(),t(document.body).trigger("fluentform_error_below_element",{form:r,element:o,message:n}),o.closest(".ff-el-input--content").append(i.html(_e(n)))):(o.find("div.error").remove(),o.append(i.text(n)))):E([n])},A=function(){r.find(".ff-el-group,.ff_repeater_table, .ff_repeater_container").on("change","input,select,textarea",function(){if(!window.ff_disable_error_clear){t(this).attr("aria-invalid","false");var e=l.settings.layout.errorMessagePlacement;if(e||"stackToBottom"!=e){var n=t(this).closest(".ff-el-group");n.hasClass("ff-el-is-error")&&n.removeClass("ff-el-is-error").find(".error.text-danger").remove()}}})},N=function(e){var n=u(),r=t("[data-name='"+e+"']",n);return(r=r.length?r:t("[name='"+e+"']",n)).length?r:t("[name='"+e+"[]']",n)},C=function(){r.find(".ff-el-recaptcha.g-recaptcha").length&&window.grecaptcha&&"function"==typeof window.grecaptcha.ready&&window.grecaptcha.ready(function(){r.find(".ff-el-recaptcha.g-recaptcha").each(function(){x("g-recaptcha",t(this),grecaptcha.render)})}),r.find(".ff-el-turnstile.cf-turnstile").length&&window.turnstile&&"function"==typeof window.turnstile.ready&&window.turnstile.ready(function(){r.find(".ff-el-turnstile.cf-turnstile").each(function(){x("cf-turnstile",t(this),turnstile.render)})}),r.find(".ff-el-hcaptcha.h-captcha").length&&window.hcaptcha&&r.find(".ff-el-hcaptcha.h-captcha").each(function(){x("h-captcha",t(this),hcaptcha.render)})},x=function(e,t,n){var r=t.data("sitekey"),o=t.attr("id"),i="data-".concat(e,"_widget_id");try{var a=t.attr(i);if("g-recaptcha"===e||"h-captcha"===e){if(a&&t.find("iframe").length>0)return}else if("cf-turnstile"===e){var l=t.find('input[name="cf-turnstile-response"]');if(l.length&&l.val())return;var s=t.attr(i);s&&window.turnstile&&turnstile.remove(s)}var c=o;"cf-turnstile"===e&&(c="#"+o),a=n(c,{sitekey:r}),t.attr(i,a)}catch(t){console.error("Error rendering ".concat(e,":"),t)}},O=function(e,t,n){var r="data-".concat(e,"_widget_id"),o=t.attr(r);if(o)try{return n(o),!0}catch(n){console.error("Error resetting ".concat(e,":"),n),t.removeAttr(r).removeData("".concat(e,"-rendered"))}return!1},D=function(e){jQuery.each(e,function(e,n){if(n){var o=r.find("input[name="+e+"]");o.length?o.attr("value",n):t("<input>").attr({type:"hidden",name:e,value:n}).appendTo(r)}})},I={initFormHandlers:function(){v(),d(),A(),r.removeClass("ff-form-loading").addClass("ff-form-loaded"),r.on("show_element_error",function(e,t){k(t.element,t.message)})},registerFormSubmissionHandler:v,maybeInlineForm:d=function(){r.hasClass("ff-form-inline")&&r.find("button.ff-btn-submit").css("height","50px")},reinitExtras:function(){r.find(".ff-el-recaptcha.g-recaptcha").length&&window.grecaptcha&&"function"==typeof window.grecaptcha.ready&&window.grecaptcha.ready(function(){r.find(".ff-el-recaptcha.g-recaptcha").each(function(){var e=t(this);O("g-recaptcha",e,grecaptcha.reset)||x("g-recaptcha",e,grecaptcha.render)})}),r.find(".ff-el-turnstile.cf-turnstile").length&&window.turnstile&&"function"==typeof window.turnstile.ready&&window.turnstile.ready(function(){r.find(".ff-el-turnstile.cf-turnstile").each(function(){var e=t(this);O("cf-turnstile",e,turnstile.reset)||x("cf-turnstile",e,turnstile.render)})}),r.find(".ff-el-hcaptcha.h-captcha").length&&window.hcaptcha&&r.find(".ff-el-hcaptcha.h-captcha").each(function(){var e=t(this);O("h-captcha",e,hcaptcha.reset)||x("h-captcha",e,hcaptcha.render)})},initTriggers:function(){r=u(),jQuery(document.body).trigger("fluentform_init",[r,l]),jQuery(document.body).trigger("fluentform_init_"+l.id,[r,l]),r.trigger("fluentform_init_single",[this,l]),r.find("input.ff-el-form-control").on("keypress",function(e){return 13!==e.which}),r.data("is_initialized","yes"),r.find("input.ff-read-only").each(function(){t(this).attr({tabindex:"-1",readonly:"readonly"})}),r.find(".ff-el-tooltip").on("mouseenter",function(e){var n=t(this).data("content"),o=t(".ff-el-pop-content");o.length||(t("<div/>",{class:"ff-el-pop-content"}).appendTo(document.body),o=t(".ff-el-pop-content")),o.html(_e(n));var i=r.innerWidth()-20;o.css("max-width",i);var a=t(this).offset().left,l=o.outerWidth(),s=o.outerHeight(),c=a-l/2+10;c<15&&(c=15),o.css("top",t(this).offset().top-s-5),o.css("left",c)}),r.find(".ff-el-tooltip").on("mouseleave",function(){t(".ff-el-pop-content").remove()}),t(document).on("lity:open",function(){var e;null===(e=window.turnstile)||void 0===e||e.remove(),C()}),r.one("focus",'input, select, textarea, input[type="checkbox"], input[type="radio"]',function(){r.trigger("fluentform_first_interaction")}),r.on("fluentform_first_interaction",function(){C()}),r.on("ff_to_next_page ff_to_prev_page",function(e){C()}),C()},validate:T=function(e){e.length||(e=t("form.frm-fluent-form").find(":input").not(":button").filter(function(e,n){return!t(n).closest(".has-conditions").hasClass("ff_excluded")})),e.each(function(e,n){t(n).closest(".ff-el-group").removeClass("ff-el-is-error").find(".error").remove()}),s().validate(e,l.rules)},showErrorMessages:S,scrollToFirstError:b,settings:l,formSelector:j,sendData:h,addGlobalValidator:function(e,t){c[e]=t},config:l,showFormSubmissionProgress:g=function(e){e.addClass("ff_submitting"),e.find(".ff-btn-submit").addClass("disabled").addClass("ff-working").prop("disabled",!0)},addFieldValidationRule:function(e,t,n){l.rules[e]||(l.rules[e]={}),l.rules[e][t]=n},removeFieldValidationRule:function(e,t){e in l.rules&&t in l.rules[e]&&delete l.rules[e][t]},hideFormSubmissionProgress:y=function(e){e.removeClass("ff_submitting"),e.find(".ff-btn-submit").removeClass("disabled").removeClass("ff-working").attr("disabled",!1),r.parent().find(".ff_msg_temp").remove()}},n[i]=I,I};var r={init:function(){var e=this;setTimeout(function(){e.initMultiSelect()},100),this.initMask(),this.initNumericFormat(),this.initCheckableActive(),this.maybeInitSpamTokenProtection(),this.maybeHandleCleanTalkSubmitTime(),this.initOtherOptionHandlers()},maybeInitSpamTokenProtection:function(){var e=this;jQuery("form.frm-fluent-form").each(function(t,n){var r=jQuery(n),o=r.find(".fluent-form-token-field");if(0!==o.length&&!r.hasClass("ff_tokenizing")&&!r.hasClass("ff_tokenized")){var i=function(){r.hasClass("ff_tokenized")||r.hasClass("ff_tokenizing")||(r.addClass("ff_tokenizing"),e.generateAndSetToken(r,o))};r.one("ff_to_next_page ff_to_prev_page",function(e){i()}),r.on("fluentform_first_interaction",function(){i()})}})},generateAndSetToken:function(t,n){var r,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=t.data("form_id"),a=e.ajaxUrl+"?t="+Date.now(),l=this;jQuery.post(a,{action:"fluentform_generate_protection_token",form_id:i,nonce:null===(r=e)||void 0===r?void 0:r.token_nonce}).done(function(e){e.success&&e.data.token?(n.val(e.data.token),t.addClass("ff_tokenized")):(n.val(null),console.error("Token generation failed for form ID:",i))}).fail(function(e,r,a){console.error("Error generating token for form ID:",i,a),o&&setTimeout(function(){l.generateAndSetToken(t,n,!1)},1e3)}).always(function(){t.removeClass("ff_tokenizing")})},maybeHandleCleanTalkSubmitTime:function(){var e;null!==(e=window.fluentFormVars)&&void 0!==e&&e.has_cleantalk&&jQuery("form.frm-fluent-form").each(function(e,t){var n=jQuery(t).find(".ff_ct_form_load_time");n.length&&n.val(Math.floor(Date.now()/1e3))})},initOtherOptionHandlers:function(){jQuery(document).on("change",'.ff-other-option input[type="checkbox"]',function(){var e=jQuery(this),t=e.closest(".ff-el-input--content").find(".ff-other-input-wrapper");if(t.length)if(e.is(":checked")){t.show();var n=t.find(".ff-el-form-control");""===n.val().trim()&&setTimeout(function(){n.focus()},50)}else t.hide(),t.find(".ff-el-form-control").val("")}),jQuery(document).on("change",'.ff-other-option input[type="radio"]',function(){var e=jQuery(this),t=e.closest(".ff-el-input--content"),n=t.find(".ff-other-input-wrapper");n.length||(n=e.closest("label").next(".ff-other-input-wrapper")),e.is(":checked")&&(t.find(".ff-other-input-wrapper").hide(),n.length&&(n.show(),n.find(".ff-el-form-control").focus()))}),jQuery(document).on("change",'.ff-el-input--content input[type="radio"]',function(){var e=jQuery(this);if(!e.closest(".ff-other-option").length){var t=e.closest(".ff-el-input--content");t.find(".ff-other-input-wrapper").hide(),t.find(".ff-other-input-wrapper .ff-el-form-control").val("")}})},initMultiSelect:function(){t.isFunction(window.Choices)&&t(".ff_has_multi_select").length&&t(".ff_has_multi_select").each(function(e,n){var r=we(we({},{removeItemButton:!0,silent:!0,shouldSort:!1,searchEnabled:!0,searchResultLimit:50,searchFloor:1,searchChoices:!0,fuseOptions:{threshold:.1,distance:200,ignoreLocation:!0,tokenize:!0,matchAllTokens:!1}}),window.fluentFormVars.choice_js_vars),o=t(n).attr("data-max_selected_options");parseInt(o)&&(r.maxItemCount=parseInt(o),r.maxItemText=function(e){return(1===e?window.fluentFormVars.choice_js_vars.maxItemTextSingular:window.fluentFormVars.choice_js_vars.maxItemTextPlural).replace("%%maxItemCount%%",e)}),r.callbackOnCreateTemplates=function(){t(this.passedElement.element);return{option:function(e){var t=Choices.defaults.templates.option.call(this,e);return e.customProperties&&(t.dataset.calc_value=e.customProperties),t}}},t(n).data("choicesjs",new Choices(n,r))})},initMask:function(){if(null!=jQuery.fn.mask){var e={clearIfNotMatch:window.fluentFormVars.input_mask_vars.clearIfNotMatch,translation:{"*":{pattern:/[0-9a-zA-Z]/},0:{pattern:/\d/},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/}}};jQuery("input[data-mask]").each(function(t,n){var r=(n=jQuery(n)).attr("data-mask"),o=e;n.attr("data-mask-reverse")&&(o.reverse=!0),n.attr("data-clear-if-not-match")&&(o.clearIfNotMatch=!0),r&&n.mask(r,o)})}},initCheckableActive:function(){t(document).on("change",".ff-el-form-check input[type=radio]",function(){t(this).is(":checked")&&(t(this).closest(".ff-el-input--content").find(".ff-el-form-check").removeClass("ff_item_selected"),t(this).closest(".ff-el-form-check").addClass("ff_item_selected"))}),t(document).on("change",".ff-el-form-check input[type=checkbox]",function(){t(this).is(":checked")?t(this).closest(".ff-el-form-check").addClass("ff_item_selected"):t(this).closest(".ff-el-form-check").removeClass("ff_item_selected")})},initNumericFormat:function(){var e=t("form.frm-fluent-form .ff_numeric");t.each(e,function(e,n){var r=t(n),o=JSON.parse(r.attr("data-formatter"));r.val()&&r.val(window.ff_helper.formatCurrency(r,r.val())),r.on("blur change",function(){var e=currency(t(this).val(),o).format();t(this).val(e)})})}},o=function(){return new function(){this.errors={},this.validate=function(e,n){var r,o,i=this,a=!0;e.each(function(e,l){r=t(l),o=r.prop("name").replace("[]",""),"repeater_item"!==r.data("type")&&"repeater_container"!==r.data("type")||(o=r.attr("data-name"),n[o]=n[r.data("error_index")]),n[o]&&t.each(n[o],function(e,t){e in i&&(i[e](r,t)||(a=!1,o in i.errors||(i.errors[o]={}),i.errors[o][e]=t.message))})}),!a&&this.throwValidationException()},this.throwValidationException=function(){var e=new ffValidationError("Validation Error!");throw e.messages=this.errors,e},this.required=function(e,n){if(!n.value)return!0;var r=e.prop("type");if("checkbox"==r||"radio"==r){if(e.parents(".ff-el-group").attr("data-name")&&!n.per_row)return e.parents(".ff-el-group").find("input:checked").length;var o=e.closest("form"),i=o.find('[name="'+e.prop("name")+'"]:checked'),a=e.prop("name").replace("[]","");return i.length&&i.val()==="__ff_other_".concat(a,"__")?o.find('[name="'.concat(a,'__ff_other_input__"]')).val():i.length}if(r.startsWith("select")){var l=e.find(":selected");return!(!l.length||!l.val().length)}return"file"==r?e.closest("div").find(".ff-uploaded-list").find(".ff-upload-preview[data-src]").length:"false"==e.attr("is-changed")?"":String(t.trim(e.val())).length},this.url=function(e,t){var n=e.val();if(!t.value||!n.length)return!0;return/^(ftp|http|https):\/\/[^ "]+$/.test(n)},this.email=function(e,t){var n=e.val();if(!t.value||!n.length)return!0;return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(n.toLowerCase())},this.numeric=function(e,n){var r=window.ff_helper.numericVal(e);return r=r.toString(),!n.value||!r||t.isNumeric(r)},this.min=function(e,t){if(!e.val())return!0;var n=window.ff_helper.numericVal(e);return n=n.toString(),!t.value||!n.length||(this.numeric(e,t)?Number(n)>=Number(t.value):void 0)},this.max=function(e,t){if(!e.val())return!0;var n=window.ff_helper.numericVal(e);return n=n.toString(),!t.value||!n.length||(this.numeric(e,t)?Number(n)<=Number(t.value):void 0)},this.digits=function(e,t){if(!e.val())return!0;var n=window.ff_helper.numericVal(e);return n=n.toString(),!t.value||!n.length||this.numeric(e,t)&&n.length==t.value},this.max_file_size=function(){return!0},this.max_file_count=function(){return!0},this.allowed_file_types=function(){return!0},this.allowed_image_types=function(){return!0},this.force_failed=function(){return!1},this.valid_phone_number=function(e,t){if(!e.val())return!0;if(e&&e[0]){var n;if(!(n=void 0!==window.intlTelInputGlobals?window.intlTelInputGlobals.getInstance(e[0]):e.data("iti")))return!0;if(e.hasClass("ff_el_with_extended_validation"))return!!("yes"===e.data("strict_validation")&&"function"==typeof n.isValidNumberPrecise?n.isValidNumberPrecise():n.isValidNumber())&&(e.val(n.getNumber()),!0);var r=n.getSelectedCountryData(),o=e.val();return!e.attr("data-original_val")&&o&&r&&r.dialCode&&(e.val("+"+r.dialCode+o),e.attr("data-original_val",o)),!0}}}},i=t("form.frm-fluent-form");function a(e){var t=fluentFormApp(e);if(t)t.initFormHandlers(),t.initTriggers();else var n=0,r=setInterval(function(){(t=fluentFormApp(e))&&(clearInterval(r),t.initFormHandlers(),t.initTriggers()),++n>10&&(clearInterval(r),console.log("Form could not be loaded"))},1e3)}function l(){t(".ff_has_multi_select").each(function(){var e=t(this).data("choicesjs");if(e&&e.passedElement){e.passedElement.element.addEventListener("showDropdown",function(){var e=this.closest(".choices");if(e){var t=e.querySelector(".choices__list--dropdown");if(t){t.style.maxHeight="300px",t.style.overflowY="auto";var n=t.querySelector('.choices__list[role="listbox"]')||t.querySelector(".choices__list:not(.choices__list--dropdown)");n&&(n.style.maxHeight="280px",n.style.overflowY="auto",n.style.webkitOverflowScrolling="touch",n.style.touchAction="pan-y")}}},{passive:!0});var n=e.passedElement.element.closest(".choices");n&&(n.addEventListener("focus",function(t){n.classList.contains("is-open")||e.showDropdown()},!0),n.addEventListener("keydown",function(t){"Tab"===t.key&&n.classList.contains("is-open")&&e.hideDropdown()}))}})}t.each(i,function(e,n){a(t(n))}),t(document).on("ff_reinit",function(e,n){var o=t(n),i=fluentFormApp(o);if(!i)return!1;i.reinitExtras(),a(o),r.init(),o.attr("data-ff_reinit","yes")}),r.init(),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",function(){setTimeout(l,100)}):setTimeout(l,100)}(window.fluentFormVars,jQuery),jQuery(".fluentform").on("submit",".ff-form-loading",function(e){var t;e.preventDefault(),jQuery(this).parent().find(".ff_msg_temp").remove(),jQuery("<div/>",{class:"error text-danger ff_msg_temp"}).html(_e((null===(t=window.fluentform_submission_messages_global)||void 0===t?void 0:t.javascript_handler_failed)||"Javascript handler could not be loaded. Form submission has been failed. Reload the page and try again")).insertAfter(jQuery(this))})})})();