/*! For license information please see settings.js.LICENSE.txt */ (()=>{var e={2926:function(e,t,n){!function(e,t){"use strict";function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function o(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var o,r,a=[],d=!0,i=!1;try{for(n=n.call(e);!(d=(o=n.next()).done)&&(a.push(o.value),!t||a.length!==t);d=!0);}catch(e){i=!0,r=e}finally{try{d||null==n.return||n.return()}finally{if(i)throw r}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.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)?s(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 s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:v;if(null===e||g(t=e)&&"function"==typeof t.elements&&"function"==typeof t.createToken&&"function"==typeof t.createPaymentMethod&&"function"==typeof t.confirmCardPayment)return e;throw new Error(n)},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v;if(function(e){return g(e)&&"function"==typeof e.then}(e))return{tag:"async",stripePromise:Promise.resolve(e).then((function(e){return E(e,t)}))};var n=E(e,t);return null===n?{tag:"empty"}:{tag:"sync",stripe:n}},C=function(e){e&&e._registerWrapper&&e.registerAppInfo&&(e._registerWrapper({name:"react-stripe-js",version:"3.7.0"}),e.registerAppInfo({name:"react-stripe-js",version:"3.7.0",url:"https://stripe.com/docs/stripe-js/react"}))},x=t.createContext(null);x.displayName="ElementsContext";var k=function(e,t){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t," in an provider."));return e},T=function(e){var n=e.stripe,o=e.options,r=e.children,a=t.useMemo((function(){return S(n)}),[n]),d=i(t.useState((function(){return{stripe:"sync"===a.tag?a.stripe:null,elements:"sync"===a.tag?a.stripe.elements(o):null}})),2),s=d[0],c=d[1];t.useEffect((function(){var e=!0,t=function(e){c((function(t){return t.stripe?t:{stripe:e,elements:e.elements(o)}}))};return"async"!==a.tag||s.stripe?"sync"!==a.tag||s.stripe||t(a.stripe):a.stripePromise.then((function(n){n&&e&&t(n)})),function(){e=!1}}),[a,s,o]);var l=f(n);t.useEffect((function(){null!==l&&l!==n&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")}),[l,n]);var u=f(o);return t.useEffect((function(){if(s.elements){var e=w(o,u,["clientSecret","fonts"]);e&&s.elements.update(e)}}),[o,u,s.elements]),t.useEffect((function(){C(s.stripe)}),[s.stripe]),t.createElement(x.Provider,{value:s},r)};T.propTypes={stripe:y.any,options:y.object};var N=function(e){var n=t.useContext(x);return k(n,e)},A=function(e){return(0,e.children)(N("mounts "))};A.propTypes={children:y.func.isRequired};var R=["on","session"],O=t.createContext(null);O.displayName="CheckoutSdkContext";var I=function(e,t){if(!e)throw new Error("Could not find CheckoutProvider context; You need to wrap the part of your app that ".concat(t," in an provider."));return e},P=t.createContext(null);P.displayName="CheckoutContext";var M=function(e){var n=e.stripe,o=e.options,r=e.children,a=t.useMemo((function(){return S(n,"Invalid prop `stripe` supplied to `CheckoutProvider`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.")}),[n]),s=i(t.useState(null),2),c=s[0],l=s[1],u=i(t.useState((function(){return{stripe:"sync"===a.tag?a.stripe:null,checkoutSdk:null}})),2),m=u[0],p=u[1],h=function(e,t){p((function(n){return n.stripe&&n.checkoutSdk?n:{stripe:e,checkoutSdk:t}}))},y=t.useRef(!1);t.useEffect((function(){var e=!0;return"async"!==a.tag||m.stripe?"sync"===a.tag&&a.stripe&&!y.current&&(y.current=!0,a.stripe.initCheckout(o).then((function(e){e&&(h(a.stripe,e),e.on("change",l))}))):a.stripePromise.then((function(t){t&&e&&!y.current&&(y.current=!0,t.initCheckout(o).then((function(e){e&&(h(t,e),e.on("change",l))})))})),function(){e=!1}}),[a,m,o,l]);var _=f(n);t.useEffect((function(){null!==_&&_!==n&&console.warn("Unsupported prop change on CheckoutProvider: You cannot change the `stripe` prop after setting it.")}),[_,n]);var g=f(o),$=f(m.checkoutSdk);t.useEffect((function(){var e,t;if(m.checkoutSdk){var n=null==g||null===(e=g.elementsOptions)||void 0===e?void 0:e.appearance,r=null==o||null===(t=o.elementsOptions)||void 0===t?void 0:t.appearance,a=!b(r,n),d=!$&&m.checkoutSdk;r&&(a||d)&&m.checkoutSdk.changeAppearance(r)}}),[o,g,m.checkoutSdk,$]),t.useEffect((function(){C(m.stripe)}),[m.stripe]);var w=t.useMemo((function(){return function(e,t){if(!e)return null;e.on,e.session;var n=d(e,R);return t?Object.assign(t,n):Object.assign(e.session(),n)}(m.checkoutSdk,c)}),[m.checkoutSdk,c]);return m.checkoutSdk?t.createElement(O.Provider,{value:m},t.createElement(P.Provider,{value:w},r)):null};M.propTypes={stripe:y.any,options:y.shape({fetchClientSecret:y.func.isRequired,elementsOptions:y.object}).isRequired};var L=function(e){var n=t.useContext(O),o=t.useContext(x);if(n&&o)throw new Error("You cannot wrap the part of your app that ".concat(e," in both and providers."));return n?I(n,e):k(o,e)},j=["mode"],D=function(e,n){var o,r="".concat((o=e).charAt(0).toUpperCase()+o.slice(1),"Element"),a=n?function(e){L("mounts <".concat(r,">"));var n=e.id,o=e.className;return t.createElement("div",{id:n,className:o})}:function(n){var o,a=n.id,s=n.className,c=n.options,l=void 0===c?{}:c,u=n.onBlur,m=n.onFocus,p=n.onReady,h=n.onChange,y=n.onEscape,g=n.onClick,$=n.onLoadError,b=n.onLoaderStart,v=n.onNetworksChange,E=n.onConfirm,S=n.onCancel,C=n.onShippingAddressChange,x=n.onShippingRateChange,k=L("mounts <".concat(r,">")),T="elements"in k?k.elements:null,N="checkoutSdk"in k?k.checkoutSdk:null,A=i(t.useState(null),2),R=A[0],O=A[1],I=t.useRef(null),P=t.useRef(null);_(R,"blur",u),_(R,"focus",m),_(R,"escape",y),_(R,"click",g),_(R,"loaderror",$),_(R,"loaderstart",b),_(R,"networkschange",v),_(R,"confirm",E),_(R,"cancel",S),_(R,"shippingaddresschange",C),_(R,"shippingratechange",x),_(R,"change",h),p&&(o="expressCheckout"===e?p:function(){p(R)}),_(R,"ready",o),t.useLayoutEffect((function(){if(null===I.current&&null!==P.current&&(T||N)){var t=null;if(N)switch(e){case"payment":t=N.createPaymentElement(l);break;case"address":if(!("mode"in l))throw new Error("You must supply options.mode. mode must be 'billing' or 'shipping'.");var n=l.mode,o=d(l,j);if("shipping"===n)t=N.createShippingAddressElement(o);else{if("billing"!==n)throw new Error("Invalid options.mode. mode must be 'billing' or 'shipping'.");t=N.createBillingAddressElement(o)}break;case"expressCheckout":t=N.createExpressCheckoutElement(l);break;case"currencySelector":t=N.createCurrencySelectorElement();break;default:throw new Error("Invalid Element type ".concat(r,". You must use either the , , , or ."))}else T&&(t=T.create(e,l));I.current=t,O(t),t&&t.mount(P.current)}}),[T,N,l]);var M=f(l);return t.useEffect((function(){if(I.current){var e=w(l,M,["paymentRequest"]);e&&"update"in I.current&&I.current.update(e)}}),[l,M]),t.useLayoutEffect((function(){return function(){if(I.current&&"function"==typeof I.current.destroy)try{I.current.destroy(),I.current=null}catch(e){}}}),[]),t.createElement("div",{id:a,className:s,ref:P})};return a.propTypes={id:y.string,className:y.string,onChange:y.func,onBlur:y.func,onFocus:y.func,onReady:y.func,onEscape:y.func,onClick:y.func,onLoadError:y.func,onLoaderStart:y.func,onNetworksChange:y.func,onConfirm:y.func,onCancel:y.func,onShippingAddressChange:y.func,onShippingRateChange:y.func,options:y.object},a.displayName=r,a.__elementType=e,a},F="undefined"==typeof window,B=t.createContext(null);B.displayName="EmbeddedCheckoutProviderContext";var U=function(){var e=t.useContext(B);if(!e)throw new Error(" must be used within ");return e},z=F?function(e){var n=e.id,o=e.className;return U(),t.createElement("div",{id:n,className:o})}:function(e){var n=e.id,o=e.className,r=U().embeddedCheckout,a=t.useRef(!1),d=t.useRef(null);return t.useLayoutEffect((function(){return!a.current&&r&&null!==d.current&&(r.mount(d.current),a.current=!0),function(){if(a.current&&r)try{r.unmount(),a.current=!1}catch(e){}}}),[r]),t.createElement("div",{ref:d,id:n,className:o})},H=D("auBankAccount",F),W=D("card",F),q=D("cardNumber",F),G=D("cardExpiry",F),V=D("cardCvc",F),Y=D("fpxBank",F),K=D("iban",F),Z=D("idealBank",F),J=D("p24Bank",F),Q=D("epsBank",F),X=D("payment",F),ee=D("expressCheckout",F),te=D("currencySelector",F),ne=D("paymentRequestButton",F),oe=D("linkAuthentication",F),re=D("address",F),ae=D("shippingAddress",F),de=D("paymentMethodMessaging",F),ie=D("affirmMessage",F),se=D("afterpayClearpayMessage",F);e.AddressElement=re,e.AffirmMessageElement=ie,e.AfterpayClearpayMessageElement=se,e.AuBankAccountElement=H,e.CardCvcElement=V,e.CardElement=W,e.CardExpiryElement=G,e.CardNumberElement=q,e.CheckoutProvider=M,e.CurrencySelectorElement=te,e.Elements=T,e.ElementsConsumer=A,e.EmbeddedCheckout=z,e.EmbeddedCheckoutProvider=function(e){var n=e.stripe,o=e.options,r=e.children,a=t.useMemo((function(){return S(n,"Invalid prop `stripe` supplied to `EmbeddedCheckoutProvider`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.")}),[n]),d=t.useRef(null),s=t.useRef(null),c=i(t.useState({embeddedCheckout:null}),2),l=c[0],u=c[1];t.useEffect((function(){if(!s.current&&!d.current){var e=function(e){s.current||d.current||(s.current=e,d.current=s.current.initEmbeddedCheckout(o).then((function(e){u({embeddedCheckout:e})})))};"async"!==a.tag||s.current||!o.clientSecret&&!o.fetchClientSecret?"sync"!==a.tag||s.current||!o.clientSecret&&!o.fetchClientSecret||e(a.stripe):a.stripePromise.then((function(t){t&&e(t)}))}}),[a,o,l,s]),t.useEffect((function(){return function(){l.embeddedCheckout?(d.current=null,l.embeddedCheckout.destroy()):d.current&&d.current.then((function(){d.current=null,l.embeddedCheckout&&l.embeddedCheckout.destroy()}))}}),[l.embeddedCheckout]),t.useEffect((function(){C(s)}),[s]);var m=f(n);t.useEffect((function(){null!==m&&m!==n&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the `stripe` prop after setting it.")}),[m,n]);var p=f(o);return t.useEffect((function(){null!=p&&(null!=o?(void 0===o.clientSecret&&void 0===o.fetchClientSecret&&console.warn("Invalid props passed to EmbeddedCheckoutProvider: You must provide one of either `options.fetchClientSecret` or `options.clientSecret`."),null!=p.clientSecret&&o.clientSecret!==p.clientSecret&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the client secret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead."),null!=p.fetchClientSecret&&o.fetchClientSecret!==p.fetchClientSecret&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change fetchClientSecret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead."),null!=p.onComplete&&o.onComplete!==p.onComplete&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onComplete option after setting it."),null!=p.onShippingDetailsChange&&o.onShippingDetailsChange!==p.onShippingDetailsChange&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onShippingDetailsChange option after setting it."),null!=p.onLineItemsChange&&o.onLineItemsChange!==p.onLineItemsChange&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onLineItemsChange option after setting it.")):console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot unset options after setting them."))}),[p,o]),t.createElement(B.Provider,{value:l},r)},e.EpsBankElement=Q,e.ExpressCheckoutElement=ee,e.FpxBankElement=Y,e.IbanElement=K,e.IdealBankElement=Z,e.LinkAuthenticationElement=oe,e.P24BankElement=J,e.PaymentElement=X,e.PaymentMethodMessagingElement=de,e.PaymentRequestButtonElement=ne,e.ShippingAddressElement=ae,e.useCheckout=function(){!function(e){var n=t.useContext(O);I(n,e)}("calls useCheckout()");var e=t.useContext(P);if(!e)throw new Error("Could not find Checkout Context; You need to wrap the part of your app that calls useCheckout() in an provider.");return e},e.useElements=function(){return N("calls useElements()").elements},e.useStripe=function(){return L("calls useStripe()").stripe}}(t,n(1609))},2838:function(e){e.exports=function(){"use strict";function e(t){return e="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},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(e,o,r){return n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,n,o){var r=[null];r.push.apply(r,n);var a=new(Function.bind.apply(e,r));return o&&t(a,o.prototype),a},n.apply(null,arguments)}function o(e){return function(e){if(Array.isArray(e))return r(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 r(e,t);var n=Object.prototype.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)?r(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 r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n1?n-1:0),r=1;r/gm),q=u(/\${[\w\W]*}/gm),G=u(/^data-[\-\w.\u00B7-\uFFFF]/),V=u(/^aria-[\-\w]+$/),Y=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),K=u(/^(?:\w+script|data):/i),Z=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),J=u(/^html$/i),Q=u(/^[a-z][.\w]*(-[.\w]+)+$/i),X=function(){return"undefined"==typeof window?null:window};return function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X(),r=function(e){return t(e)};if(r.version="2.5.6",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;var a=n.document,d=n.document,i=n.DocumentFragment,s=n.HTMLTemplateElement,c=n.Node,u=n.Element,m=n.NodeFilter,p=n.NamedNodeMap,h=void 0===p?n.NamedNodeMap||n.MozNamedAttrMap:p,y=n.HTMLFormElement,_=n.DOMParser,T=n.trustedTypes,ee=u.prototype,te=R(ee,"cloneNode"),ne=R(ee,"nextSibling"),oe=R(ee,"childNodes"),re=R(ee,"parentNode");if("function"==typeof s){var ae=d.createElement("template");ae.content&&ae.content.ownerDocument&&(d=ae.content.ownerDocument)}var de=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var o=null,r="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(r)&&(o=n.currentScript.getAttribute(r));var a="dompurify"+(o?"#"+o:"");try{return t.createPolicy(a,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}}(T,a),ie=de?de.createHTML(""):"",se=d,ce=se.implementation,le=se.createNodeIterator,ue=se.createDocumentFragment,me=se.getElementsByTagName,pe=a.importNode,he={};try{he=A(d).documentMode?d.documentMode:{}}catch(e){}var ye={};r.isSupported="function"==typeof re&&ce&&void 0!==ce.createHTMLDocument&&9!==he;var _e,fe,ge=H,$e=W,be=q,we=G,ve=V,Ee=K,Se=Z,Ce=Q,xe=Y,ke=null,Te=N({},[].concat(o(O),o(I),o(P),o(L),o(D))),Ne=null,Ae=N({},[].concat(o(F),o(B),o(U),o(z))),Re=Object.seal(Object.create(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}})),Oe=null,Ie=null,Pe=!0,Me=!0,Le=!1,je=!0,De=!1,Fe=!0,Be=!1,Ue=!1,ze=!1,He=!1,We=!1,qe=!1,Ge=!0,Ve=!1,Ye=!0,Ke=!1,Ze={},Je=null,Qe=N({},["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"]),Xe=null,et=N({},["audio","video","img","source","image","track"]),tt=null,nt=N({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ot="http://www.w3.org/1998/Math/MathML",rt="http://www.w3.org/2000/svg",at="http://www.w3.org/1999/xhtml",dt=at,it=!1,st=null,ct=N({},[ot,rt,at],w),lt=["application/xhtml+xml","text/html"],ut=null,mt=d.createElement("form"),pt=function(e){return e instanceof RegExp||e instanceof Function},ht=function(t){ut&&ut===t||(t&&"object"===e(t)||(t={}),t=A(t),_e=_e=-1===lt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,fe="application/xhtml+xml"===_e?w:b,ke="ALLOWED_TAGS"in t?N({},t.ALLOWED_TAGS,fe):Te,Ne="ALLOWED_ATTR"in t?N({},t.ALLOWED_ATTR,fe):Ae,st="ALLOWED_NAMESPACES"in t?N({},t.ALLOWED_NAMESPACES,w):ct,tt="ADD_URI_SAFE_ATTR"in t?N(A(nt),t.ADD_URI_SAFE_ATTR,fe):nt,Xe="ADD_DATA_URI_TAGS"in t?N(A(et),t.ADD_DATA_URI_TAGS,fe):et,Je="FORBID_CONTENTS"in t?N({},t.FORBID_CONTENTS,fe):Qe,Oe="FORBID_TAGS"in t?N({},t.FORBID_TAGS,fe):{},Ie="FORBID_ATTR"in t?N({},t.FORBID_ATTR,fe):{},Ze="USE_PROFILES"in t&&t.USE_PROFILES,Pe=!1!==t.ALLOW_ARIA_ATTR,Me=!1!==t.ALLOW_DATA_ATTR,Le=t.ALLOW_UNKNOWN_PROTOCOLS||!1,je=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,De=t.SAFE_FOR_TEMPLATES||!1,Fe=!1!==t.SAFE_FOR_XML,Be=t.WHOLE_DOCUMENT||!1,He=t.RETURN_DOM||!1,We=t.RETURN_DOM_FRAGMENT||!1,qe=t.RETURN_TRUSTED_TYPE||!1,ze=t.FORCE_BODY||!1,Ge=!1!==t.SANITIZE_DOM,Ve=t.SANITIZE_NAMED_PROPS||!1,Ye=!1!==t.KEEP_CONTENT,Ke=t.IN_PLACE||!1,xe=t.ALLOWED_URI_REGEXP||xe,dt=t.NAMESPACE||at,Re=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Re.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Re.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Re.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),De&&(Me=!1),We&&(He=!0),Ze&&(ke=N({},o(D)),Ne=[],!0===Ze.html&&(N(ke,O),N(Ne,F)),!0===Ze.svg&&(N(ke,I),N(Ne,B),N(Ne,z)),!0===Ze.svgFilters&&(N(ke,P),N(Ne,B),N(Ne,z)),!0===Ze.mathMl&&(N(ke,L),N(Ne,U),N(Ne,z))),t.ADD_TAGS&&(ke===Te&&(ke=A(ke)),N(ke,t.ADD_TAGS,fe)),t.ADD_ATTR&&(Ne===Ae&&(Ne=A(Ne)),N(Ne,t.ADD_ATTR,fe)),t.ADD_URI_SAFE_ATTR&&N(tt,t.ADD_URI_SAFE_ATTR,fe),t.FORBID_CONTENTS&&(Je===Qe&&(Je=A(Je)),N(Je,t.FORBID_CONTENTS,fe)),Ye&&(ke["#text"]=!0),Be&&N(ke,["html","head","body"]),ke.table&&(N(ke,["tbody"]),delete Oe.tbody),l&&l(t),ut=t)},yt=N({},["mi","mo","mn","ms","mtext"]),_t=N({},["foreignobject","annotation-xml"]),ft=N({},["title","style","font","a","script"]),gt=N({},I);N(gt,P),N(gt,M);var $t=N({},L);N($t,j);var bt=function(e){$(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},wt=function(e,t){try{$(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){$(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ne[e])if(He||We)try{bt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},vt=function(e){var t,n;if(ze)e=""+e;else{var o=v(e,/^[\r\n\t ]+/);n=o&&o[0]}"application/xhtml+xml"===_e&&dt===at&&(e=''+e+"");var r=de?de.createHTML(e):e;if(dt===at)try{t=(new _).parseFromString(r,_e)}catch(e){}if(!t||!t.documentElement){t=ce.createDocument(dt,"template",null);try{t.documentElement.innerHTML=it?ie:r}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(d.createTextNode(n),a.childNodes[0]||null),dt===at?me.call(t,Be?"html":"body")[0]:Be?t.documentElement:a},Et=function(e){return le.call(e.ownerDocument||e,e,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null,!1)},St=function(e){return e instanceof y&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof h)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Ct=function(t){return"object"===e(c)?t instanceof c:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},xt=function(e,t,n){ye[e]&&f(ye[e],(function(e){e.call(r,t,n,ut)}))},kt=function(e){var t;if(xt("beforeSanitizeElements",e,null),St(e))return bt(e),!0;if(x(/[\u0080-\uFFFF]/,e.nodeName))return bt(e),!0;var n=fe(e.nodeName);if(xt("uponSanitizeElement",e,{tagName:n,allowedTags:ke}),e.hasChildNodes()&&!Ct(e.firstElementChild)&&(!Ct(e.content)||!Ct(e.content.firstElementChild))&&x(/<[/\w]/g,e.innerHTML)&&x(/<[/\w]/g,e.textContent))return bt(e),!0;if("select"===n&&x(/