/home/nbcgowuy/kdosheleads.com/wp-content/plugins/dokan-lite/assets/js/utilities.js
/*! For license information please see utilities.js.LICENSE.txt */
(()=>{"use strict";var e={116:(e,t,n)=>{n.d(t,{F:()=>i});var o=n(1635),r=n(7482);function a(e){return e.toUpperCase()}function i(e,t){return void 0===t&&(t={}),(0,r.W)(e,(0,o.Cl)({delimiter:"_",transform:a},t))}},165:(e,t,n)=>{n.d(t,{xQ:()=>i});var o=n(1635),r=n(5642);function a(e,t){return 0===t?e.toLowerCase():(0,r.l3)(e,t)}function i(e,t){return void 0===t&&(t={}),(0,r.fL)(e,(0,o.Cl)({transform:a},t))}},655:(e,t,n)=>{n.d(t,{$g:()=>o,Ih:()=>a,ZV:()=>r});const o=(e="",t="",n=null,o="",r="",a="")=>window.accounting?window?.dokanFrontend?.currency||window?.dokanAdminDashboard?.currency?(t||(t=window?.dokanFrontend?.currency.symbol||window?.dokanAdminDashboard?.currency.symbol),n||(n=window?.dokanFrontend?.currency.precision||window?.dokanAdminDashboard?.currency.precision),o||(o=window?.dokanFrontend?.currency.thousand||window?.dokanAdminDashboard?.currency.thousand),r||(r=window?.dokanFrontend?.currency.decimal||window?.dokanAdminDashboard?.currency.decimal),a||(a=window?.dokanFrontend?.currency.format||window?.dokanAdminDashboard?.currency.format),window.accounting.formatMoney(e,t,n,o,r,a)):(console.warn("Dokan Currency Data Not Found"),e):(console.warn("Woocommerce Accounting Library Not Found"),e),r=e=>""===e?e:window.accounting?window?.dokanFrontend?.currency||window?.dokanAdminDashboard?.currency?window.accounting.formatNumber(e,window?.dokanFrontend?.currency.precision||window?.dokanAdminDashboard?.currency.precision,window?.dokanFrontend?.currency.thousand||window?.dokanAdminDashboard?.currency.thousand,window?.dokanFrontend?.currency.decimal||window?.dokanAdminDashboard?.currency.decimal):(console.warn("Dokan Currency Data Not Found"),e):(console.warn("Woocommerce Accounting Library Not Found"),e),a=e=>""===e?e:window.accounting.unformat(e,window?.dokanFrontend?.currency.decimal||window?.dokanAdminDashboard?.currency.decimal)},1635:(e,t,n)=>{n.d(t,{Cl:()=>o});var o=function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError},2847:(e,t,n)=>{n.d(t,{p:()=>ae});const{entries:o,setPrototypeOf:r,isFrozen:a,getPrototypeOf:i,getOwnPropertyDescriptor:l}=Object;let{freeze:c,seal:s,create:u}=Object,{apply:d,construct:m}="undefined"!=typeof Reflect&&Reflect;c||(c=function(e){return e}),s||(s=function(e){return e}),d||(d=function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];return e.apply(t,o)}),m||(m=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return new e(...n)});const f=k(Array.prototype.forEach),p=k(Array.prototype.lastIndexOf),h=k(Array.prototype.pop),g=k(Array.prototype.push),y=k(Array.prototype.splice),T=k(String.prototype.toLowerCase),b=k(String.prototype.toString),A=k(String.prototype.match),w=k(String.prototype.replace),E=k(String.prototype.indexOf),_=k(String.prototype.trim),S=k(Object.prototype.hasOwnProperty),C=k(RegExp.prototype.test),v=(N=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return m(N,t)});var N;function k(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return d(e,t,o)}}function D(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:T;r&&r(e,null);let o=t.length;for(;o--;){let r=t[o];if("string"==typeof r){const e=n(r);e!==r&&(a(t)||(t[o]=e),r=e)}e[r]=!0}return e}function L(e){for(let t=0;t<e.length;t++)S(e,t)||(e[t]=null);return e}function R(e){const t=u(null);for(const[n,r]of o(e))S(e,n)&&(Array.isArray(r)?t[n]=L(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=R(r):t[n]=r);return t}function O(e,t){for(;null!==e;){const n=l(e,t);if(n){if(n.get)return k(n.get);if("function"==typeof n.value)return k(n.value)}e=i(e)}return function(){return null}}const x=c(["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"]),M=c(["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"]),I=c(["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"]),F=c(["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"]),U=c(["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"]),P=c(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),z=c(["#text"]),H=c(["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"]),W=c(["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"]),G=c(["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"]),j=c(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),B=s(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Y=s(/<%[\w\W]*|[\w\W]*%>/gm),$=s(/\$\{[\w\W]*/gm),X=s(/^data-[\-\w.\u00B7-\uFFFF]+$/),q=s(/^aria-[\-\w]+$/),Z=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),V=s(/^(?:\w+script|data):/i),K=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Q=s(/^html$/i),J=s(/^[a-z][.\w]*(-[.\w]+)+$/i);var ee=Object.freeze({__proto__:null,ARIA_ATTR:q,ATTR_WHITESPACE:K,CUSTOM_ELEMENT:J,DATA_ATTR:X,DOCTYPE_NAME:Q,ERB_EXPR:Y,IS_ALLOWED_URI:Z,IS_SCRIPT_OR_DATA:V,MUSTACHE_EXPR:B,TMPLIT_EXPR:$});const te=function(){return"undefined"==typeof window?null:window};var ne=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te();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 a=r,i=a.currentScript,{DocumentFragment:l,HTMLTemplateElement:s,Node:d,Element:m,NodeFilter:N,NamedNodeMap:k=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:L,DOMParser:B,trustedTypes:Y}=t,$=m.prototype,X=O($,"cloneNode"),q=O($,"remove"),V=O($,"nextSibling"),K=O($,"childNodes"),J=O($,"parentNode");if("function"==typeof s){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let ne,oe="";const{implementation:re,createNodeIterator:ae,createDocumentFragment:ie,getElementsByTagName:le}=r,{importNode:ce}=a;let se={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof o&&"function"==typeof J&&re&&void 0!==re.createHTMLDocument;const{MUSTACHE_EXPR:ue,ERB_EXPR:de,TMPLIT_EXPR:me,DATA_ATTR:fe,ARIA_ATTR:pe,IS_SCRIPT_OR_DATA:he,ATTR_WHITESPACE:ge,CUSTOM_ELEMENT:ye}=ee;let{IS_ALLOWED_URI:Te}=ee,be=null;const Ae=D({},[...x,...M,...I,...U,...z]);let we=null;const Ee=D({},[...H,...W,...G,...j]);let _e=Object.seal(u(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}})),Se=null,Ce=null;const ve=Object.seal(u(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ne=!0,ke=!0,De=!1,Le=!0,Re=!1,Oe=!0,xe=!1,Me=!1,Ie=!1,Fe=!1,Ue=!1,Pe=!1,ze=!0,He=!1,We=!0,Ge=!1,je={},Be=null;const Ye=D({},["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 $e=null;const Xe=D({},["audio","video","img","source","image","track"]);let qe=null;const Ze=D({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ve="http://www.w3.org/1998/Math/MathML",Ke="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml";let Je=Qe,et=!1,tt=null;const nt=D({},[Ve,Ke,Qe],b);let ot=D({},["mi","mo","mn","ms","mtext"]),rt=D({},["annotation-xml"]);const at=D({},["title","style","font","a","script"]);let it=null;const lt=["application/xhtml+xml","text/html"];let ct=null,st=null;const ut=r.createElement("form"),dt=function(e){return e instanceof RegExp||e instanceof Function},mt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!st||st!==e){if(e&&"object"==typeof e||(e={}),e=R(e),it=-1===lt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ct="application/xhtml+xml"===it?b:T,be=S(e,"ALLOWED_TAGS")?D({},e.ALLOWED_TAGS,ct):Ae,we=S(e,"ALLOWED_ATTR")?D({},e.ALLOWED_ATTR,ct):Ee,tt=S(e,"ALLOWED_NAMESPACES")?D({},e.ALLOWED_NAMESPACES,b):nt,qe=S(e,"ADD_URI_SAFE_ATTR")?D(R(Ze),e.ADD_URI_SAFE_ATTR,ct):Ze,$e=S(e,"ADD_DATA_URI_TAGS")?D(R(Xe),e.ADD_DATA_URI_TAGS,ct):Xe,Be=S(e,"FORBID_CONTENTS")?D({},e.FORBID_CONTENTS,ct):Ye,Se=S(e,"FORBID_TAGS")?D({},e.FORBID_TAGS,ct):R({}),Ce=S(e,"FORBID_ATTR")?D({},e.FORBID_ATTR,ct):R({}),je=!!S(e,"USE_PROFILES")&&e.USE_PROFILES,Ne=!1!==e.ALLOW_ARIA_ATTR,ke=!1!==e.ALLOW_DATA_ATTR,De=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Le=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Re=e.SAFE_FOR_TEMPLATES||!1,Oe=!1!==e.SAFE_FOR_XML,xe=e.WHOLE_DOCUMENT||!1,Fe=e.RETURN_DOM||!1,Ue=e.RETURN_DOM_FRAGMENT||!1,Pe=e.RETURN_TRUSTED_TYPE||!1,Ie=e.FORCE_BODY||!1,ze=!1!==e.SANITIZE_DOM,He=e.SANITIZE_NAMED_PROPS||!1,We=!1!==e.KEEP_CONTENT,Ge=e.IN_PLACE||!1,Te=e.ALLOWED_URI_REGEXP||Z,Je=e.NAMESPACE||Qe,ot=e.MATHML_TEXT_INTEGRATION_POINTS||ot,rt=e.HTML_INTEGRATION_POINTS||rt,_e=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&dt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(_e.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&dt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(_e.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(_e.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Re&&(ke=!1),Ue&&(Fe=!0),je&&(be=D({},z),we=[],!0===je.html&&(D(be,x),D(we,H)),!0===je.svg&&(D(be,M),D(we,W),D(we,j)),!0===je.svgFilters&&(D(be,I),D(we,W),D(we,j)),!0===je.mathMl&&(D(be,U),D(we,G),D(we,j))),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?ve.tagCheck=e.ADD_TAGS:(be===Ae&&(be=R(be)),D(be,e.ADD_TAGS,ct))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?ve.attributeCheck=e.ADD_ATTR:(we===Ee&&(we=R(we)),D(we,e.ADD_ATTR,ct))),e.ADD_URI_SAFE_ATTR&&D(qe,e.ADD_URI_SAFE_ATTR,ct),e.FORBID_CONTENTS&&(Be===Ye&&(Be=R(Be)),D(Be,e.FORBID_CONTENTS,ct)),We&&(be["#text"]=!0),xe&&D(be,["html","head","body"]),be.table&&(D(be,["tbody"]),delete Se.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw v('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw v('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ne=e.TRUSTED_TYPES_POLICY,oe=ne.createHTML("")}else void 0===ne&&(ne=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(Y,i)),null!==ne&&"string"==typeof oe&&(oe=ne.createHTML(""));c&&c(e),st=e}},ft=D({},[...M,...I,...F]),pt=D({},[...U,...P]),ht=function(e){g(n.removed,{element:e});try{J(e).removeChild(e)}catch(t){q(e)}},gt=function(e,t){try{g(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){g(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Fe||Ue)try{ht(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},yt=function(e){let t=null,n=null;if(Ie)e="<remove></remove>"+e;else{const t=A(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===it&&Je===Qe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=ne?ne.createHTML(e):e;if(Je===Qe)try{t=(new B).parseFromString(o,it)}catch(e){}if(!t||!t.documentElement){t=re.createDocument(Je,"template",null);try{t.documentElement.innerHTML=et?oe:o}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),Je===Qe?le.call(t,xe?"html":"body")[0]:xe?t.documentElement:a},Tt=function(e){return ae.call(e.ownerDocument||e,e,N.SHOW_ELEMENT|N.SHOW_COMMENT|N.SHOW_TEXT|N.SHOW_PROCESSING_INSTRUCTION|N.SHOW_CDATA_SECTION,null)},bt=function(e){return e instanceof L&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof k)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},At=function(e){return"function"==typeof d&&e instanceof d};function wt(e,t,o){f(e,e=>{e.call(n,t,o,st)})}const Et=function(e){let t=null;if(wt(se.beforeSanitizeElements,e,null),bt(e))return ht(e),!0;const o=ct(e.nodeName);if(wt(se.uponSanitizeElement,e,{tagName:o,allowedTags:be}),Oe&&e.hasChildNodes()&&!At(e.firstElementChild)&&C(/<[/\w!]/g,e.innerHTML)&&C(/<[/\w!]/g,e.textContent))return ht(e),!0;if(7===e.nodeType)return ht(e),!0;if(Oe&&8===e.nodeType&&C(/<[/\w]/g,e.data))return ht(e),!0;if(!(ve.tagCheck instanceof Function&&ve.tagCheck(o))&&(!be[o]||Se[o])){if(!Se[o]&&St(o)){if(_e.tagNameCheck instanceof RegExp&&C(_e.tagNameCheck,o))return!1;if(_e.tagNameCheck instanceof Function&&_e.tagNameCheck(o))return!1}if(We&&!Be[o]){const t=J(e)||e.parentNode,n=K(e)||e.childNodes;if(n&&t)for(let o=n.length-1;o>=0;--o){const r=X(n[o],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,V(e))}}return ht(e),!0}return e instanceof m&&!function(e){let t=J(e);t&&t.tagName||(t={namespaceURI:Je,tagName:"template"});const n=T(e.tagName),o=T(t.tagName);return!!tt[e.namespaceURI]&&(e.namespaceURI===Ke?t.namespaceURI===Qe?"svg"===n:t.namespaceURI===Ve?"svg"===n&&("annotation-xml"===o||ot[o]):Boolean(ft[n]):e.namespaceURI===Ve?t.namespaceURI===Qe?"math"===n:t.namespaceURI===Ke?"math"===n&&rt[o]:Boolean(pt[n]):e.namespaceURI===Qe?!(t.namespaceURI===Ke&&!rt[o])&&!(t.namespaceURI===Ve&&!ot[o])&&!pt[n]&&(at[n]||!ft[n]):!("application/xhtml+xml"!==it||!tt[e.namespaceURI]))}(e)?(ht(e),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!C(/<\/no(script|embed|frames)/i,e.innerHTML)?(Re&&3===e.nodeType&&(t=e.textContent,f([ue,de,me],e=>{t=w(t,e," ")}),e.textContent!==t&&(g(n.removed,{element:e.cloneNode()}),e.textContent=t)),wt(se.afterSanitizeElements,e,null),!1):(ht(e),!0)},_t=function(e,t,n){if(ze&&("id"===t||"name"===t)&&(n in r||n in ut))return!1;if(ke&&!Ce[t]&&C(fe,t));else if(Ne&&C(pe,t));else if(ve.attributeCheck instanceof Function&&ve.attributeCheck(t,e));else if(!we[t]||Ce[t]){if(!(St(e)&&(_e.tagNameCheck instanceof RegExp&&C(_e.tagNameCheck,e)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(e))&&(_e.attributeNameCheck instanceof RegExp&&C(_e.attributeNameCheck,t)||_e.attributeNameCheck instanceof Function&&_e.attributeNameCheck(t,e))||"is"===t&&_e.allowCustomizedBuiltInElements&&(_e.tagNameCheck instanceof RegExp&&C(_e.tagNameCheck,n)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(n))))return!1}else if(qe[t]);else if(C(Te,w(n,ge,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==E(n,"data:")||!$e[e])if(De&&!C(he,w(n,ge,"")));else if(n)return!1;return!0},St=function(e){return"annotation-xml"!==e&&A(e,ye)},Ct=function(e){wt(se.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||bt(e))return;const o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:we,forceKeepAttr:void 0};let r=t.length;for(;r--;){const a=t[r],{name:i,namespaceURI:l,value:c}=a,s=ct(i),u=c;let d="value"===i?u:_(u);if(o.attrName=s,o.attrValue=d,o.keepAttr=!0,o.forceKeepAttr=void 0,wt(se.uponSanitizeAttribute,e,o),d=o.attrValue,!He||"id"!==s&&"name"!==s||(gt(i,e),d="user-content-"+d),Oe&&C(/((--!?|])>)|<\/(style|title|textarea)/i,d)){gt(i,e);continue}if("attributename"===s&&A(d,"href")){gt(i,e);continue}if(o.forceKeepAttr)continue;if(!o.keepAttr){gt(i,e);continue}if(!Le&&C(/\/>/i,d)){gt(i,e);continue}Re&&f([ue,de,me],e=>{d=w(d,e," ")});const m=ct(e.nodeName);if(_t(m,s,d)){if(ne&&"object"==typeof Y&&"function"==typeof Y.getAttributeType)if(l);else switch(Y.getAttributeType(m,s)){case"TrustedHTML":d=ne.createHTML(d);break;case"TrustedScriptURL":d=ne.createScriptURL(d)}if(d!==u)try{l?e.setAttributeNS(l,i,d):e.setAttribute(i,d),bt(e)?ht(e):h(n.removed)}catch(t){gt(i,e)}}else gt(i,e)}wt(se.afterSanitizeAttributes,e,null)},vt=function e(t){let n=null;const o=Tt(t);for(wt(se.beforeSanitizeShadowDOM,t,null);n=o.nextNode();)wt(se.uponSanitizeShadowNode,n,null),Et(n),Ct(n),n.content instanceof l&&e(n.content);wt(se.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,r=null,i=null,c=null;if(et=!e,et&&(e="\x3c!--\x3e"),"string"!=typeof e&&!At(e)){if("function"!=typeof e.toString)throw v("toString is not a function");if("string"!=typeof(e=e.toString()))throw v("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Me||mt(t),n.removed=[],"string"==typeof e&&(Ge=!1),Ge){if(e.nodeName){const t=ct(e.nodeName);if(!be[t]||Se[t])throw v("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof d)o=yt("\x3c!----\x3e"),r=o.ownerDocument.importNode(e,!0),1===r.nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?o=r:o.appendChild(r);else{if(!Fe&&!Re&&!xe&&-1===e.indexOf("<"))return ne&&Pe?ne.createHTML(e):e;if(o=yt(e),!o)return Fe?null:Pe?oe:""}o&&Ie&&ht(o.firstChild);const s=Tt(Ge?e:o);for(;i=s.nextNode();)Et(i),Ct(i),i.content instanceof l&&vt(i.content);if(Ge)return e;if(Fe){if(Ue)for(c=ie.call(o.ownerDocument);o.firstChild;)c.appendChild(o.firstChild);else c=o;return(we.shadowroot||we.shadowrootmode)&&(c=ce.call(a,c,!0)),c}let u=xe?o.outerHTML:o.innerHTML;return xe&&be["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&C(Q,o.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+u),Re&&f([ue,de,me],e=>{u=w(u,e," ")}),ne&&Pe?ne.createHTML(u):u},n.setConfig=function(){mt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Me=!0},n.clearConfig=function(){st=null,Me=!1},n.isValidAttribute=function(e,t,n){st||mt({});const o=ct(e),r=ct(t);return _t(o,r,n)},n.addHook=function(e,t){"function"==typeof t&&g(se[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=p(se[e],t);return-1===n?void 0:y(se[e],n,1)[0]}return h(se[e])},n.removeHooks=function(e){se[e]=[]},n.removeAllHooks=function(){se={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();const oe=["a","b","em","i","strong","p","br","h1","h2","h3","h4","h5","h6","img","video","ul","li","ol","u","blockquote","span"],re=["target","href","rel","name","download","class","style","src","alt"],ae=(e,t)=>{const n=t?.tags||oe,o=t?.attr||re;return ne.sanitize(e,{ALLOWED_TAGS:n,ALLOWED_ATTR:o})}},2924:(e,t,n)=>{function o(e,t=60){const n=e?.substr(0,t);return n?.length>=t?`${n}...`:n}n.d(t,{x:()=>o})},3550:(e,t,n)=>{n.d(t,{o:()=>l});var o=n(1635),r=n(7482),a=n(9760);function i(e,t){var n=e.toLowerCase();return 0===t?(0,a.R)(n):n}function l(e,t){return void 0===t&&(t={}),(0,r.W)(e,(0,o.Cl)({delimiter:" ",transform:i},t))}},3964:(e,t,n)=>{n.d(t,{y:()=>a});var o=n(1635),r=n(5098);function a(e,t){return void 0===t&&(t={}),(0,r.a)(e,(0,o.Cl)({delimiter:"/"},t))}},5023:(e,t,n)=>{n.d(t,{L:()=>a});var o=n(1635),r=n(5098);function a(e,t){return void 0===t&&(t={}),(0,r.a)(e,(0,o.Cl)({delimiter:"_"},t))}},5098:(e,t,n)=>{n.d(t,{a:()=>a});var o=n(1635),r=n(7482);function a(e,t){return void 0===t&&(t={}),(0,r.W)(e,(0,o.Cl)({delimiter:"."},t))}},5642:(e,t,n)=>{n.d(t,{fL:()=>i,l3:()=>a});var o=n(1635),r=n(7482);function a(e,t){var n=e.charAt(0),o=e.substr(1).toLowerCase();return t>0&&n>="0"&&n<="9"?"_"+n+o:""+n.toUpperCase()+o}function i(e,t){return void 0===t&&(t={}),(0,r.W)(e,(0,o.Cl)({delimiter:"",transform:a},t))}},7374:e=>{e.exports=window.wc.date},7404:(e,t,n)=>{n.d(t,{D:()=>l});var o=n(1635),r=n(7482),a=n(9760);function i(e){return(0,a.R)(e.toLowerCase())}function l(e,t){return void 0===t&&(t={}),(0,r.W)(e,(0,o.Cl)({delimiter:" ",transform:i},t))}},7482:(e,t,n)=>{function o(e){return e.toLowerCase()}n.d(t,{W:()=>i});var r=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],a=/[^A-Z0-9]+/gi;function i(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,i=void 0===n?r:n,c=t.stripRegexp,s=void 0===c?a:c,u=t.transform,d=void 0===u?o:u,m=t.delimiter,f=void 0===m?" ":m,p=l(l(e,i,"$1\0$2"),s,"\0"),h=0,g=p.length;"\0"===p.charAt(h);)h++;for(;"\0"===p.charAt(g-1);)g--;return p.slice(h,g).split("\0").map(d).join(f)}function l(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce(function(e,t){return e.replace(t,n)},e)}},7710:(e,t,n)=>{n.d(t,{De:()=>r.D,FU:()=>a.F,LW:()=>f.L,W7:()=>c.W,a_:()=>i.a,fL:()=>u.fL,kW:()=>s.c,o3:()=>m.o,uG:()=>l.u,xQ:()=>o.xQ,yj:()=>d.y});var o=n(165),r=n(7404),a=n(116),i=n(5098),l=n(8674),c=n(7482),s=n(9728),u=n(5642),d=n(3964),m=n(3550),f=n(5023)},8674:(e,t,n)=>{n.d(t,{u:()=>a});var o=n(1635),r=n(7404);function a(e,t){return void 0===t&&(t={}),(0,r.D)(e,(0,o.Cl)({delimiter:"-"},t))}},9579:(e,t,n)=>{n.d(t,{$:()=>r,g:()=>o});const o=(e,t=!1)=>{e=e.replace(/^#/,"");const n=parseInt(e.substring(0,2),16),o=parseInt(e.substring(2,4),16),r=parseInt(e.substring(4,6),16),a=Math.max(n,o,r),i=Math.min(n,o,r),l=a-i;let c;const s=(a+i)/2;let u;if(0===l)c=u=0;else{switch(u=s<128?l/(a+i)*100:l/(510-a-i)*100,a){case n:c=(o-r)/l%6;break;case o:c=(r-n)/l+2;break;case r:c=(n-o)/l+4}c*=60,c<0&&(c+=360)}return t?[Math.round(c),Math.round(u),Math.round(s)]:`hsl(${Math.round(c)}, ${Math.round(u)}%, ${Math.round(s)}%)`},r=e=>{const t=o(e,!0),[n,r]=t,a={},i={50:95,100:90,200:80,300:70,400:60,500:50,600:40,700:30,800:20,900:10};for(const[e,t]of Object.entries(i))a[e]=`hsl(${n}, ${r}%, ${t}%)`;return a}},9728:(e,t,n)=>{n.d(t,{c:()=>a});var o=n(1635),r=n(5098);function a(e,t){return void 0===t&&(t={}),(0,r.a)(e,(0,o.Cl)({delimiter:"-"},t))}},9760:(e,t,n)=>{function o(e){return e.charAt(0).toUpperCase()+e.substr(1)}n.d(t,{R:()=>o})}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};n.r(o),n.d(o,{camelCase:()=>r.xQ,capitalCase:()=>r.De,constantCase:()=>r.FU,dotCase:()=>r.a_,formatNumber:()=>a.ZV,formatPrice:()=>a.$g,generateColorVariants:()=>c.$,headerCase:()=>r.uG,hexToHsl:()=>c.g,kebabCase:()=>r.kW,noCase:()=>r.W7,pascalCase:()=>r.fL,pathCase:()=>r.yj,sanitizeHTML:()=>u.p,sentenceCase:()=>r.o3,snakeCase:()=>r.LW,truncate:()=>s.x,unformatNumber:()=>a.Ih});var r=n(7710),a=n(655),i=n(7374),l={};for(const e in i)["default","camelCase","capitalCase","constantCase","dotCase","headerCase","kebabCase","noCase","pascalCase","pathCase","sentenceCase","snakeCase","formatNumber","formatPrice","unformatNumber"].indexOf(e)<0&&(l[e]=()=>i[e]);n.d(o,l);var c=n(9579),s=n(2924),u=n(2847);(window.dokan=window.dokan||{}).utilities=o})();