@webalternatif/js-core 1.6.6 → 1.6.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.mouse=e():t.mouse=e()}(this,()=>(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{default:()=>an});var n={};t.r(n),t.d(n,{debounce:()=>m,equals:()=>s,flatten:()=>v,getScrollbarWidth:()=>g,noop:()=>p,sizeOf:()=>d,strParseFloat:()=>h,throttle:()=>y});var r={};t.r(r),t.d(r,{clone:()=>P,each:()=>A,extend:()=>O,foreach:()=>j,map:()=>C,merge:()=>T,reduce:()=>x});var o={};t.r(o),t.d(o,{dec2hex:()=>N,floorTo:()=>L,hex2dec:()=>R,max:()=>_,min:()=>I,plancher:()=>k,round:()=>M});var i={};t.r(i),t.d(i,{arrayDiff:()=>F,arrayUnique:()=>B,array_diff:()=>W,array_unique:()=>q,inArray:()=>X,indexOf:()=>Y,lastIndexOf:()=>U,range:()=>z});var a={};t.r(a),t.d(a,{isArray:()=>nt,isArrayLike:()=>et,isBool:()=>Q,isBoolean:()=>K,isDate:()=>rt,isDocument:()=>pt,isDomElement:()=>dt,isEvent:()=>ot,isEventSupported:()=>ct,isFloat:()=>ut,isFunction:()=>Z,isInt:()=>at,isInteger:()=>it,isObject:()=>G,isPlainObject:()=>J,isScalar:()=>lt,isString:()=>H,isTouchDevice:()=>ft,isUndefined:()=>tt,isWindow:()=>st});var u={};t.r(u),t.d(u,{addUrlParam:()=>Xt,br2nl:()=>St,camelCase:()=>$t,compareMixAlphaDigits:()=>Kt,decodeHtml:()=>Yt,escapeRegex:()=>zt,f:()=>Ht,format:()=>Vt,formatSize:()=>Jt,hex2rgb:()=>Dt,hextorgb:()=>Nt,hilite:()=>Zt,htmlquotes:()=>Ut,htmlsimplequotes:()=>Bt,insert:()=>Ot,insertTag:()=>Ct,lcfirst:()=>jt,ltrim:()=>mt,nl2br:()=>Et,noAccent:()=>wt,numberFormat:()=>Mt,pad:()=>kt,parse_url:()=>Rt,repeat:()=>qt,reverse:()=>Pt,rgb2hex:()=>It,rgbtohex:()=>_t,rtrim:()=>gt,stripMultipleSpaces:()=>bt,stripTags:()=>Ft,substringIndex:()=>xt,thousandSeparator:()=>Tt,toCssClassName:()=>Gt,toPrice:()=>Lt,toUrl:()=>Wt,trim:()=>yt,ucfirst:()=>At});var l={};function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}t.r(l),t.d(l,{rand:()=>ie,randAlpha:()=>te,randAlphaCs:()=>ee,randAlphaNum:()=>ne,randAlphaNumCs:()=>re,randNum:()=>oe,uniqid:()=>ae});var f,s=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(e.length<2)return!1;var r=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new WeakMap;if(t===e)return!0;if(Number.isNaN(t)&&Number.isNaN(e))return!0;if(c(t)!==c(e)||null===t||null===e)return!1;if(nt(t)||G(t)){if(n.has(t))return n.get(t)===e;n.set(t,e)}if(nt(t)||nt(e))return!(!nt(t)||!nt(e))&&t.length===e.length&&t.every(function(t,o){return r(t,e[o],n)});if(G(t)){if(Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;if(t instanceof Date)return t.getTime()===e.getTime();if(t instanceof RegExp)return t.toString()===e.toString();var o=Object.keys(t),i=Object.keys(e);return o.length===i.length&&o.every(function(o){return r(t[o],e[o],n)})}return!1},o=e[0];return e.slice(1).every(function(t){return r(o,t)})},p=function(){},d=function(t){return C(t,p).length},v=function(t){return G(t)||nt(t)?[].concat.apply([],C(t,function(t,e){return v(e)})):t},h=function(t){if(!t)return 0;var e=parseFloat((t+"").replace(/\s/g,"").replace(",","."));return Number.isNaN(e)?0:e},y=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=null,a=0;return function(){for(var u=this,l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];var s=Date.now();a||n||(a=s);var p=e-(s-a);p<=0||p>e?(a=s,t.apply(o||this,c)):!i&&r&&(i=setTimeout(function(){i=null,a=n?Date.now():0,t.apply(o||u,c)},p))}},m=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=null,i=0;return function(){for(var a=this,u=arguments.length,l=new Array(u),c=0;c<u;c++)l[c]=arguments[c];var f=Date.now();n&&(i||(i=f,t.apply(r||this,l))),clearTimeout(o),o=null,o=setTimeout(function(){i=f,clearTimeout(o),o=null,t.apply(r||a,l)},e)}},g=(f=null,function(){if(null===f){var t=document.createElement("div");t.style.visibility="hidden",t.style.width="100px",t.style.msOverflowStyle="scrollbar",document.body.appendChild(t);var e=t.offsetWidth;t.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",t.appendChild(n);var r=n.offsetWidth;t.remove(),f=e-r}return f});function b(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,e)||S(t,e)||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 w(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=S(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function S(t,e){if(t){if("string"==typeof t)return E(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(t,e):void 0}}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var A=function(t,e,n){if(J(t)){var r=-1;for(var o in t)if(t.hasOwnProperty(o)&&!1===e.call(null!=n?n:t[o],o,t[o],t,++r))return}else{if(H(t)){for(var i=t.split(""),a=0;a<i.length;a++)if(!1===e.call(null!=n?n:i[a],a,i[a],t,a))return t;return t}if(t instanceof Map){var u,l=0,c=w(t.entries());try{for(c.s();!(u=c.n()).done;){var f=b(u.value,2),s=f[0],p=f[1];if(!1===e.call(null!=n?n:p,s,p,t,l++))return t}}catch(t){c.e(t)}finally{c.f()}}else if(t instanceof Set){var d,v=0,h=w(t.values());try{for(h.s();!(d=h.n()).done;){var y=d.value;if(!1===e.call(null!=n?n:y,v,y,t,v))return t;v++}}catch(t){h.e(t)}finally{h.f()}}else if(et(t))for(var m=Array.from(t),g=0;g<m.length;g++)if(!1===e.call(n||m[g],g,m[g],m,g))return t}return t},j=function(t,e,n){return A(t,function(t,r,o,i){return e.apply(n||r,[r,t,o,i])},n)},C=function(t,e,n){var r=[];return A(t,function(t,o,i,a){var u=e.call(n,t,o,i,a);null!==u&&r.push(u)}),r},x=function(t,e,n){var r=!tt(n);if(!d(t)&&!r)throw new Error("Nothing to reduce and no initial value");var o=r?n:C(t,function(t,e,n,r){return 0===r?e:null})[0];return A(t,function(t,n,i,a){(0!==a||r)&&(o=e(o,n,t,a,i))}),o},O=function(){for(var t=!1,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if(K(n[0])&&(t=n.shift()),n.length<2||tt(n[0])||null===n[0])return n[0];var o=n[0];return G(o)||(n[0]=o={}),j(n.slice(1),function(e){if(G(e))for(var n in e)t&&J(e[n])?o[n]=O(!0,{},o[n],e[n]):o[n]=e[n]}),o},P=function(t){if(!G(t)&&!nt(t)||st(t))return t;var e=G(t)?{}:[];return A(t,function(t,n){G(n)?e[t]=P(n):e[t]=n}),e},T=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=C(t,function(t,e){return e});A(e,function(t,e){n.push(e)});for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return o.length?T.apply(void 0,[n].concat(o)):n},M=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.round(t*Math.pow(10,e))/Math.pow(10,e)},L=function(t,e){if(e<=0)throw new Error("Precision must be greater than 0");return M(Math.floor(t/e)*e,6)},k=L,I=function(t,e){return D(t,e=Z(e)?e:function(t,e){return t<e?-1:1})},_=function(t,e){return D(t,e=Z(e)?e:function(t,e){return t>e?-1:1})};function D(t,e){var n;return A(t,function(t,r,o,i){n=0===i||e.call(null,n,r)>0?r:n}),n}var N=function(t){return t.toString(16)},R=function(t){t=Pt(t+"").toUpperCase();var e=0;return A(t,function(t,n){var r="0123456789ABCDEF".indexOf(n);if(-1===r)return e=0,!1;e+=r*Math.pow(2,4*t)}),e},X=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!1;return A(e,function(e,i){if(e>=n)if(r){if(i===t)return o=!0,!1}else{if(G(t)&&G(i))return o=s(i,t),!1;if(nt(t)&&G(i))return o=s(i,t),!1;if(i==t)return o=!0,!1}}),o},Y=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=H(t)?C(t,function(t,e){return e}):t;for(n=n<0?Math.ceil(n)+r.length:Math.floor(n);n<r.length;n++)if(n in r&&r[n]===e)return n;return-1},U=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=H(t)?C(t,function(t,e){return e}):t;for(n=n<0?r.length+Math.ceil(n):Math.floor(n);n>=0;n--)if(n in r&&r[n]===e)return n;return-1},B=function(t){return t.filter(function(t,e,n){return e===Y(n,t)})},q=B,F=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.filter(function(t){return!X(t,e,0,n)})},W=F,z=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t=M(t),n=M(n);var r=[];if(tt(e)||t<1||0===n||t<Math.abs(n))return r;var o=t*n;if(H(e)){e=e.charCodeAt(0);for(var i=0;n>0?i<o:i>o;i+=n)r.push(String.fromCharCode(e+i))}else if(it(e))for(var a=0;n>0?a<o:a>o;a+=n)r.push(e+a);return r};function $(t){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$(t)}var V,H=function(t){return"string"==typeof t||"[object String]"===Object.prototype.toString.call(t)},G=function(t){return!!t&&!nt(t)&&"object"===$(t)},Z=function(t){return!!t&&"function"==typeof t},J=function(t){return!1!==G(t)&&(void 0===t.constructor||!1!==G(t.constructor.prototype)&&!1!==t.constructor.prototype.hasOwnProperty("isPrototypeOf"))},K=function(t){return!0===t||!1===t},Q=K,tt=function(t){return void 0===t},et=function(t){return!!t&&!H(t)&&!Z(t)&&at(t.length)&&Number.isFinite(t.length)},nt=function(t){return Array.isArray(t)},rt=function(t){return!!t&&"[object Date]"===Object.prototype.toString.call(t)},ot=function(t){return G(t)&&(!!t.preventDefault||/\[object Event\]/.test(t.constructor.toString()))},it=function(t){return/^[-+]?\d+$/.test(t+"")},at=it,ut=function(t){return/^[-+]?\d+(\.\d+)?$/.test(t+"")},lt=function(t){var e=$(t);return null===t||X(e,["string","number","bigint","symbol","boolean"])},ct=(V={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(t){var e=document.createElement(V[t]||"div"),n=(t="on"+t)in e;return e=null,n}),ft=function(){return ct("touchstart")},st=function(t){return!!t&&t===t.window},pt=function(t){return!!t&&9===t.nodeType},dt=function(t){return G(t)&&1===t.nodeType&&!J(t)};function vt(t){return function(t){if(Array.isArray(t))return ht(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return ht(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ht(t,e):void 0}}(t)||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 ht(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var yt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return mt(gt(t,e),e)},mt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return t.replace(new RegExp("^".concat(e,"+"),"g"),"")},gt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return t.replace(new RegExp("".concat(e,"+$"),"g"),"")},bt=function(t){return t.trim().replace(/ +/g," ")},wt=function(t){return t.replace(/[àäâ]/g,"a").replace(/[èéêë]/g,"e").replace(/[îïí]/g,"i").replace(/[öô]/g,"o").replace(/[üù]/g,"u").replace(/ç/g,"c").replace(/ÿ/g,"y").replace(/[ÀÄÂ]/g,"A").replace(/[ÈÉÊË]/g,"E").replace(/[ÎÏÍ]/g,"I").replace(/[ÖÔ]/g,"O").replace(/[ÜÙ]/g,"U").replace(/Ç/g,"C").replace(/Ÿ/g,"Y")},St=function(t){return t.split(/<br\s*\/*>/).join("\n")},Et=function(t){return t.split("\n").join("<br>")},At=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},jt=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},Ct=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o="<".concat(e,">"),i="</".concat(e,">");return["br","hr","img","link","input"].includes(e)&&(o="<".concat(e,"/>"),i=""),t.slice(0,n)+o+t.slice(n,n+r)+i+t.slice(n+r)},xt=function(t,e,n){var r=(t+"").split(e);return n>0?r.splice(n,r.length-n):n<0&&r.splice(0,r.length+n),r.join(e)},Ot=function(t,e,n){return n>=t.length?t:vt(t).reduce(function(t,r,o){return o>0&&o%n===0?t+e+r:t+r},"")},Pt=function(t){for(var e=[],n=0;n<t.length;n++)e.unshift(t[n]);return e.join("")},Tt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(tt(t)||null===t)return t;if(t=(t+"").replace(",","."),Math.abs(t)>=1e3){var r=Math[t>=1e3?"floor":"ceil"](t)+"",o=Pt(Ot(Pt(r),Pt(e),3));return t.indexOf(".")>0?o+n+xt(t,".",-1):o}return(t+"").replace(".",n)},Mt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:".";if(t=t?t+"":"0",t=M(parseFloat(t.replace(",",".")),e)+"",0===e)return Tt(t,r,o);var i=t.lastIndexOf(".");if(-1===i)return!0===n&&(t+=o+qt("0",e)),Tt(t,r,o);var a=t.slice(i+1).length;return Tt(e>a?t+"0".repeat(e-a):t.slice(0,i+1+e),r,o)},Lt=Mt,kt=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" ",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"left";return tt(e)||t.length>=e||!X(r,["left","right"])?t:"left"===r?n.repeat(Math.ceil(e/n.length)).slice(0,e-t.length)+t:t+n.repeat(Math.ceil(e/n.length)).slice(0,e-t.length)},It=function(t,e,n){return nt(t)?It.apply(void 0,vt(t)):it(t)&&it(e)&&it(n)?[kt(N(parseInt(t)),2,"0").toUpperCase(),kt(N(parseInt(e)),2,"0").toUpperCase(),kt(N(parseInt(n)),2,"0").toUpperCase()].join(""):""},_t=It,Dt=function(t){if(!H(t)||!t.length)return[];(t=t.slice(-6).toUpperCase()).length<6&&(t=C(t.slice(-3),function(t,e){return e+""+e}).join(""));for(var e=0;e<t.length;e++)if(-1==="0123456789ABCDEF".indexOf(t[e]))return[];return C(Ot(t,",",2).split(","),function(t,e){return R(e)})},Nt=Dt,Rt=function(t){for(var e=["source","scheme","authority","userInfo","user","pass","host","port","relative","path","directory","file","query","fragment"],n=/^(?:([^:\/?#]+):)?(?:\/\/()(?:(?:()(?:([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?()(?:(()(?:(?:[^?#\/]*\/)*)()(?:[^?#]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(t),r={},o=14;o--;)n[o]&&(r[e[o]]=n[o]);return delete r.source,r},Xt=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(J(e))return A(e,function(e,n){t=Xt(t,e,n)}),t;var r,o=Rt(t),i="";(r=t.indexOf("#"))>-1&&(i=t.slice(r),t=t.slice(0,r));var a=encodeURIComponent(e),u=null===n?"":encodeURIComponent(n);if(!o.query)return t+"?"+a+"="+u+i;for(var l=o.query.split("&"),c=!1,f=0;f<l.length;f++)if(l[f].startsWith(a+"=")){l[f]=a+"="+u,c=!0;break}return c||l.push(a+"="+u),o.scheme&&o.host?o.scheme+"://"+o.host+(o.path||"")+"?"+l.join("&")+i:(o.host||"")+o.path+"?"+l.join("&")+i},Yt=function(t){return H(t)?t.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#039;/g,"'"):""},Ut=function(t){return H(t)?t.replace(/"/g,"&quot;").replace(/'/g,"&#039;"):""},Bt=function(t){return H(t)?t.replace(/'/g,"&#039;"):""},qt=function(t,e){return H(t)&&ut(e)?new Array(Math.floor(e)+1).join(t):""},Ft=function(t,e){if(H(e)){for(var n=new RegExp("<".concat(e,"[^>]*>(.*?)</").concat(e,">|<").concat(e,"[^>]*/>"),"ig");n.test(t);)t=t.replace(n,"$1");return t}return t.replace(/(<([^>]+)>)/gi,"")},Wt=function(t){return yt(wt(t).toLowerCase().replace(/[^a-z0-9]/g,"-").replace(/-{2,}/g,"-"),"-")},zt=function(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&").replace(/[\n\t]/g," ")},$t=function(t){if(!t)return"";var e="",n=!1,r=!1,o=!1;t=yt(t),t=yt(t,"_"),t=yt(t,"-");var i=function(t){return t===t.toUpperCase()&&t!==t.toLowerCase()},a=function(t){return"-"===t||"_"===t||" "===t};return C(t,function(t,u){return r=a(e),o=i(e),e=u,a(u)?null:(r?(u=u.toUpperCase(),n=!0):i(u)?((0===t||o&&!n)&&(u=u.toLowerCase()),n=!1):n=!1,u)}).join("")},Vt=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return n.length&&A(n,function(e,n){if(H(n)){var r={};r[e]=n,n=r}A(n,function(e,n){t=t.replace(new RegExp("\\{"+e+"\\}","gm"),function(t){return tt(n)?t:n})})}),t},Ht=Vt,Gt=function(t){return t.replace(/[^a-z0-9_-]/gi,function(t){var e=t.charCodeAt(0);return 32===e?"-":"__"+("000"+e.toString(16)).slice(-4)})},Zt=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"strong";t=Yt(t);var r,o,i=wt(t).toLowerCase().replace(/[[\]]+/g,""),a="";if(nt(e)||(e=[e]),A(e,function(t,e){e.length&&(e=Yt(e),r=wt(e).toLowerCase().replace(/[[\]]+/g,""),o=new RegExp(zt(r),"g"),a=i.replace(o,"[".concat(r,"]")),i=a)}),!a.length)return t;var u=0,l="",c="end";return A(a,function(e,r){var o=t.charAt(u);"["===r&&"end"===c?(l+="<".concat(n,">"),c="start"):"]"===r&&"start"===c?(l+="</".concat(n,">"),c="end"):(u+=1,l+=o)}),l.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(new RegExp("&lt;".concat(n,"&gt;"),"g"),"<".concat(n,">")).replace(new RegExp("&lt;/".concat(n,"&gt;"),"g"),"</".concat(n,">")).replace(new RegExp("&lt;br&gt;","g"),"<br>")},Jt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",",n=-1,r=0;do{t/=1024,n++}while(t>999);it(t)||(r=1);var o=C(["k","M","G","T","P","E"],function(t,e){return e+"B"});return Mt(Math.max(t,0),r,!0,"",e)+" "+o[n]},Kt=function(t,e){if(t===e)return 0;if(it(t)&&it(e))return Math.sign(t-e);for(var n="",r=0;r<Math.min(t.length,e.length)&&t.charAt(r)===e.charAt(r)&&!it(t);r++)n+=t.charAt(r);t=t.slice(n.length),e=e.slice(n.length);var o="",i=null;A(t,function(t,e){if(o)return e>="0"&&e<="9"&&(o+=e,!0);i=t,e>="0"&&e<="9"&&(o+=e)});var a="",u=null;return A(e,function(t,e){if(a)return e>="0"&&e<="9"&&(a+=e,!0);u=t,e>="0"&&e<="9"&&(a+=e)}),o.length&&a.length&&i===u&&t.substring(0,i)===e.substring(0,u)?Math.sign(o-a):t>e?1:-1};j(Object.keys(u),function(t){var e=u[t],n=String.prototype,r=n[t];n[t]=function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return r&&n.length===r.length?r.apply(this,n):e.apply(void 0,[this].concat(n))}});var Qt,te=function(t){return ie("abcdefghijklmnopqrstuvwxyz".split(""),t)},ee=function(t){return ie("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),t)},ne=function(t){return ie("0123456789abcdefghijklmnopqrstuvwxyz".split(""),t)},re=function(t){return ie("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),t)},oe=function(t){return ie("0123456789".split(""),t)},ie=function(t,e){for(var n="",r=0;r<e;r++)n+=t[Math.floor(1e3*Math.random())%t.length];return n},ae=(Qt=0,function(){return Qt++,"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").concat(Date.now().toString(36),"_").concat(Qt.toString(36),"_").concat(ne(5))});function ue(t){return ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ue(t)}function le(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ce(r.key),r)}}function ce(t){var e=function(t){if("object"!=ue(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=ue(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ue(e)?e:e+""}function fe(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var se=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return e=t,n=[{key:"getPosition",value:function(e,n){e=fe(t,this,pe).call(this,e);var r={left:0,top:0};if(n instanceof Element){var o=n.getBoundingClientRect();r={left:window.scrollX+o.left,top:window.scrollY+o.top}}return{x:e.pageX-r.left,y:e.pageY-r.top}}},{key:"getViewportPosition",value:function(e){return{x:(e=fe(t,this,pe).call(this,e)).clientX,y:e.clientY}}},{key:"getElement",value:function(e){return e=fe(t,this,pe).call(this,e),window.document.elementFromPoint(e.clientX,e.clientY)}}],null&&le(e.prototype,null),n&&le(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n}();function pe(t){var e,n,r,o,i,a,u,l=null!==(e=null!==(n=null==t||null===(r=t.detail)||void 0===r?void 0:r.originalEvent)&&void 0!==n?n:null==t?void 0:t.originalEvent)&&void 0!==e?e:t;if(!l)return null;var c=null!==(o=null!==(i=null===(a=l.changedTouches)||void 0===a?void 0:a[0])&&void 0!==i?i:null===(u=l.touches)||void 0===u?void 0:u[0])&&void 0!==o?o:l,f="number"==typeof c.clientX?c.clientX:0,s="number"==typeof c.clientY?c.clientY:0;return{clientX:f,clientY:s,pageX:"number"==typeof c.pageX?c.pageX:f+("undefined"!=typeof window?window.scrollX:0),pageY:"number"==typeof c.pageY?c.pageY:s+("undefined"!=typeof window?window.scrollY:0)}}const de=se;function ve(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=me(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function he(t){return function(t){if(Array.isArray(t))return ge(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||me(t)||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 ye(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,e)||me(t,e)||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 me(t,e){if(t){if("string"==typeof t)return ge(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ge(t,e):void 0}}function ge(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.mouse=se);var be=new Map,we=["longtap","dbltap"],Se=new Set;function Ee(t,e){var n={_immediateStopped:!1,_propagationStopped:!1,originalEvent:t,currentTarget:e,stopPropagation:function(){n._propagationStopped=!0,t.stopPropagation.apply(t,arguments)},stopImmediatePropagation:function(){n._immediateStopped=!0,n._propagationStopped=!0,t.stopImmediatePropagation.apply(t,arguments)}};return new Proxy(n,{get:function(e,n,r){if(n in e)return Reflect.get(e,n,r);var o=t[n];return Z(o)?o.bind(t):o}})}function Ae(t){return function(t){if(Array.isArray(t))return je(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return je(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?je(t,e):void 0}}(t)||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 je(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var Ce=["animationIterationCount","aspectRatio","borderImageSlice","columnCount","flexGrow","flexShrink","fontWeight","gridArea","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineHeight","opacity","order","orphans","scale","widows","zIndex","zoom","fillOpacity","floodOpacity","stopOpacity","strokeMiterlimit","strokeOpacity"],xe={children:function(t,e){return e?this.find(t,":scope > ".concat(e)):Array.from(t.children)},child:function(t,e){return this.first(this.children(t,e))},find:function(t,e){if(void 0===e&&(e=t,t=document),e instanceof Element&&(e=[e]),et(e))return C(Array.from(e),function(e,n){return n instanceof Element&&(t===n||t.contains(n))?n:null});try{return Array.from(t.querySelectorAll(e))}catch(t){return[]}},findOne:function(t,e){var n;return null!==(n=this.find(t,e)[0])&&void 0!==n?n:null},findByData:function(t,e,n){if(void 0===n)return this.find(t,"[data-".concat(e,"]"));var r=CSS.escape(n+"");return this.find(t,"[data-".concat(e,'="').concat(r,'"]'))},findOneByData:function(t,e,n){var r;return null!==(r=this.findByData(t,e,n)[0])&&void 0!==r?r:null},addClass:function(t,e){if(!e)return t;var n=e.split(" ").map(function(t){return t.trim()}).filter(Boolean);return(t instanceof Element?[t]:Array.from(t)).forEach(function(t){var e;t instanceof Element&&(e=t.classList).add.apply(e,Ae(n))}),t},removeClass:function(t,e){if(!e)return t;var n=e.split(" ").map(function(t){return t.trim()}).filter(Boolean);return(t instanceof Element?[t]:Array.from(t)).forEach(function(t){var e;t instanceof Element&&(e=t.classList).remove.apply(e,Ae(n))}),t},toggleClass:function(t,e,n){return j(e.split(" ").map(function(t){return t.trim()}).filter(Boolean),function(e){return t.classList.toggle(e,n)}),t},hasClass:function(t,e){if(!e)return!1;var n=!0;return j(e.split(" ").map(function(t){return t.trim()}).filter(Boolean),function(e){if(!X(e,Array.from(t.classList)))return n=!1,!1}),n},append:function(t){for(var e=this,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return j(r,function(n){H(n)&&(n=e.create(n)),n&&t.append(n)}),t},prepend:function(t){for(var e=this,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return j([].concat(r).reverse(),function(n){H(n)&&(n=e.create(n)),n&&t.prepend(n)}),t},remove:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];n.forEach(function(e){e instanceof Element?e.remove():e instanceof NodeList||nt(e)?Array.from(e).forEach(function(t){return t.remove()}):t.find(e).forEach(function(t){return t.remove()})})},closest:function(t,e){if(e instanceof Element){if(t===e)return t;for(var n=t.parentElement;n;){if(n===e)return n;n=n.parentElement}return null}return void 0===e?t:t.closest(e)},next:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t.nextElementSibling;return e?n&&n.matches(e)?n:null:n},prev:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t.previousElementSibling;return e?n&&n.matches(e)?n:null:n},nextAll:function(t,e){for(var n=[],r=t.nextElementSibling;r;)(void 0===e||r.matches(e))&&n.push(r),r=r.nextElementSibling;return n},prevAll:function(t,e){for(var n=[],r=t.previousElementSibling;r;)(void 0===e||r.matches(e))&&n.push(r),r=r.previousElementSibling;return n},index:function(t,e){return this.prevAll(t,e).length},nextUntil:function(t,e){var n=!1,r=[];e instanceof Element&&(n=!0);for(var o=t.nextElementSibling;o&&!(n?o===e:o.matches(e));)r.push(o),o=o.nextElementSibling;return r},prevUntil:function(t,e){var n=!1,r=[];e instanceof Element&&(n=!0);for(var o=t.previousElementSibling;o&&!(n?o===e:o.matches(e));)r.push(o),o=o.previousElementSibling;return r},wrap:function(t,e){return e.isConnected||t.parentNode.insertBefore(e,t),this.append(e,t),t},attr:function(t,e,n){return void 0===n?t.getAttribute(e):(null===n?t.removeAttribute(e):t.setAttribute(e,n),t)},prop:function(t,e,n){return void 0===n?t[e]:(t[e]=n,t)},html:function(t,e){return void 0===e?t.innerHTML:(t.innerHTML=e,t)},text:function(t,e){return void 0===e?t.innerText:(t.innerText=e,t)},hide:function(t){if(void 0===this.data(t,"__display__")){var e;e=Z(window.getComputedStyle)?window.getComputedStyle(t).display:t.style.display,this.data(t,"__display__",e)}return t.style.display="none",t},show:function(t){var e=this.data(t,"__display__");return void 0===e?t.style.removeProperty("display"):(t.style.display=e,this.removeData(t,"__display__")),t},toggle:function(t){return"none"===this.css(t,"display")?this.show(t):this.hide(t)},data:function(t,e,n){var r=this;if(void 0===e&&void 0===n)return t.dataset;if(J(e))return A(e,function(e,n){return r.data(t,e,n)}),t;var o=/^data-/.test(e+""),i=$t(o?(e+"").replace(/^data-/,""):e+"");return void 0===n?t.dataset[i]:null===n?(delete t.dataset[i],t):(t.dataset[i]=n,t)},removeData:function(t,e){return this.data(t,e,null)},css:function(t,e,n){var r=this;if(H(e)){var o=e.startsWith("--")?e:$t(e);if(void 0===n){if(window.getComputedStyle){var i=window.getComputedStyle(t,null);return i.getPropertyValue(e)||i[$t(e)]||""}return t.style[$t(e)]||""}o.startsWith("--")?t.style.setProperty(o,String(n)):("number"!=typeof n||X(o,Ce)||(n+="px"),t.style[o]=n)}else A(e,function(e,n){r.css(t,e,n)});return t},closestFind:function(t,e,n){var r=this.closest(t,e);return r?this.find(r,n):[]},closestFindOne:function(t,e,n){var r=this.closest(t,e);return r?this.findOne(r,n):null},first:function(t){var e;return t instanceof Element?t:null!==(e=Array.from(t)[0])&&void 0!==e?e:null},last:function(t){var e;if(t instanceof Element)return t;var n=Array.from(t);return null!==(e=n[n.length-1])&&void 0!==e?e:null},create:function(t){if(!H(t))return null;if(/^[A-Za-z][A-Za-z0-9-]*$/.test(t))return document.createElement(t);var e=document.createElement("template");e.innerHTML=t.trim();var n=e.content;return 1===n.childElementCount&&1===n.children.length?n.firstElementChild:n.cloneNode(!0)},eq:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t=Array.from(t),Math.abs(e)>=t.length?null:(e<0&&(e=t.length+e),t[e])},after:function(t,e){return t.parentElement?(H(e)&&(e=this.create(e)),t.parentElement.insertBefore(e,t.nextElementSibling)):null},before:function(t,e){return t.parentElement?(H(e)&&(e=this.create(e)),t.parentElement.insertBefore(e,t)):null},empty:function(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t},not:function(t,e){var n=t instanceof Element?[t]:Array.from(t),r=H(e);return n.filter(function(t){return r?!t.matches(e):t!==e})},collide:function(t,e){var n=t.getBoundingClientRect(),r=e.getBoundingClientRect();return n.x<r.x+r.width&&n.x+n.width>r.x&&n.y<r.y+r.height&&n.y+n.height>r.y},matches:function(t,e){return!!t&&(e instanceof Element?e===t:t.matches(e))},replaceChild:function(t,e,n){return t.replaceChild(e,n)},replaceChildren:function(t){for(var e=this,n=[],r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return j(o,function(t){H(t)&&(t=e.create(t)),n.push(t)}),t.replaceChildren.apply(t,n),t},offset:function(t){if(st(t))return{top:t.scrollY,left:t.scrollX};if(pt(t))return{top:t.documentElement.scrollTop,left:t.documentElement.scrollLeft};var e=t.getBoundingClientRect(),n=this.offset(window);return{top:e.top+n.top,left:e.left+n.left}},isEditable:function(t){var e;return 3===(null===(e=t)||void 0===e?void 0:e.nodeType)&&(t=t.parentElement),t instanceof HTMLElement&&(X(t.tagName,["INPUT","TEXTAREA","SELECT"])||t.isContentEditable||!!this.closest(t,'[contenteditable="true"]'))},isInDOM:function(t){return t instanceof Node&&t.getRootNode({composed:!0})===document},on:function(t,e,n,r,o){return Z(n)&&(o=r,r=n,n=null),j(e.split(" "),function(e){var i=ye(e.split("."),2),a=i[0],u=i[1],l=function(e){if(!e.cancelBubble){var n,r=function(t,e){for(var n=[],r=3===t.nodeType?t.parentNode:t;r&&(n.push(r),r!==e);)r=r.parentNode;return n}(e.target,t),o=he(be.get(t)),i=ve(r);try{for(i.s();!(n=i.n()).done;){var a,u=n.value,l=!1,c=ve(o);try{for(c.s();!(a=c.n()).done;){var f=a.value;if(f.event===e.type){if(f.selector){if(!u.matches(f.selector))continue}else if(u!==t)continue;var s=Ee(e,u);if(f.handler.call(u,s),s._immediateStopped)return;s._propagationStopped&&(l=!0)}}}catch(t){c.e(t)}finally{c.f()}if(l)return}}catch(t){i.e(t)}finally{i.f()}}},c=be.get(t);c||(c=[],be.set(t,c)),X(a,we)&&function(t){var e,n,r,o,i,a,u;null!=Se&&Se.has(t)||("longtap"===t&&(r=null,o=0,i=0,a=null,u=function(){clearTimeout(r),r=null},document.addEventListener("touchstart",function(t){a=t.target;var e=de.getViewportPosition(t);o=e.x,i=e.y,r=setTimeout(function(){a.dispatchEvent(new CustomEvent("longtap",{bubbles:!0,cancelable:!0,detail:{originalEvent:t}})),r=null},800)},{passive:!0}),document.addEventListener("touchmove",function(t){var e=de.getViewportPosition(t);Math.hypot(e.x-o,e.y-i)>40&&(clearTimeout(r),r=null)},{passive:!0}),document.addEventListener("touchend",u),document.addEventListener("touchcancel",u)),"dbltap"===t&&(e=0,n=null,document.addEventListener("touchstart",function(t){var r=t.target;if(Date.now()-e>300)e=Date.now(),n=de.getViewportPosition(t);else{var o=de.getViewportPosition(t);Math.hypot(o.x-n.x,o.y-n.y)<=40&&(t.preventDefault(),r.dispatchEvent(new CustomEvent("dbltap",{bubbles:!0,cancelable:!0,detail:{originalEvent:t}}))),e=Date.now(),n=o}},{passive:!1})),Se.add(t))}(a);var f=C(c,function(t,e){return e.event});X(a,f)||t.addEventListener(a,l,o),c.push({event:a,handler:r,selector:n,listener:l,namespace:u,options:o})}),t},off:function(t,e,n,r,o){Z(n)&&(o=r,r=n,n=null);var i=be.get(t);if(!i)return t;var a=e?e.split(" "):[void 0];return j(a,function(e){var a=ye(void 0===e?[void 0,void 0]:e.split("."),2),u=a[0],l=a[1],c=void 0!==(u=u||void 0),f=void 0!==l;j(he(i).reverse(),function(e){if((!c&&!f||c&&!f&&e.event===u||!c&&f&&e.namespace===l||c&&f&&e.event===u&&e.namespace===l)&&(void 0===u||e.event===u)&&(void 0===r||e.handler===r)&&(void 0===n||e.selector===n)&&(void 0===l||e.namespace===l)&&(void 0===o||e.options===o)){var a=i.indexOf(e);-1!==a&&i.splice(a,1),C(i,function(t,e){return e.event===u?e:null})[0]||t.removeEventListener(e.event,e.listener,e.options)}})}),t}};function Oe(t){return Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oe(t)}function Pe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Te(r.key),r)}}function Te(t){var e=function(t){if("object"!=Oe(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Oe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Oe(e)?e:e+""}function Me(t,e){return t.get(Le(t,e))}function Le(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.dom=xe);var ke=new WeakMap,Ie=new(function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e,n){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,n)}(this,ke,{})},e=[{key:"addListener",value:function(t,e,n){var r=this;if(!Z(e))throw new Error("Callback must be a function.");if(!H(t))throw new Error("Events name must be a string separated by comma.");for(var o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];var u={callback:e,context:n,args:i};return A(t.split(","),function(t,e){if(!e)return!0;e=e.trim(),r.hasListener(e)?Me(ke,r)[e].push(u):Me(ke,r)[e]=[u]}),this}},{key:"addListenerOnce",value:function(t,e,n){for(var r=this,o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];return A(t.split(","),function(t,o){if(!(o=o.trim()))return!0;var a=function(){for(var t=arguments.length,u=new Array(t),l=0;l<t;l++)u[l]=arguments[l];e.apply(n,[o].concat(i).concat(u.slice(1))),r.removeListener(o,a)};r.addListener(o,a,n)}),this}},{key:"dispatch",value:function(t){for(var e=this,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];if(!H(t))throw new Error("Events name must be a string seperated by comma.");return A(t.split(","),function(t,n){return!(n=n.trim())||(e.hasListener(n)?void A(Me(ke,e)[n],function(t,e){e.callback.apply(e.context,[n].concat(e.args).concat(r))}):(console.warn("No listeners found for event: ".concat(n)),!0))}),this}},{key:"hasListener",value:function(t,e,n){return tt(e)?!tt(Me(ke,this)[t]):!!C(Me(ke,this)[t],function(t,r){return r.callback===e&&r.context===n||null}).length}},{key:"removeListener",value:function(t,e,n){var r=this;return this.hasListener(t,e,n)&&(tt(e)?Me(ke,this)[t].splice(0):A(Me(ke,this)[t],function(e){return Me(ke,r)[t].splice(e,1),delete Me(ke,r)[t],!1})),this}},{key:"getListeners",value:function(t){return t?Me(ke,this)[t]||[]:Me(ke,this)}},{key:"reset",value:function(){var t,e;e={},(t=ke).set(Le(t,this),e)}}],e&&Pe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}());function _e(t){return _e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_e(t)}function De(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ne(r.key),r)}}function Ne(t){var e=function(t){if("object"!=_e(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=_e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==_e(e)?e:e+""}function Re(t,e,n){Xe(t,e),e.set(t,n)}function Xe(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ye(t,e){return t.get(Be(t,e))}function Ue(t,e,n){return t.set(Be(t,e),n),n}function Be(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.eventDispatcher=Ie);var qe=new WeakMap,Fe=new WeakMap,We=new WeakSet,ze=function(){return t=function t(e,n){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Xe(this,r=We),r.add(this),Re(this,qe,void 0),Re(this,Fe,void 0),Be(We,this,$e).call(this,e),this.setLang(n)},e=[{key:"translate",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"core";if(e=void 0===e?this.getLang():e,void 0!==Ye(Fe,this)[n]&&void 0!==Ye(Fe,this)[n][e]&&void 0!==Ye(Fe,this)[n][e][t]){var r=Ye(Fe,this)[n][e][t];return Be(We,this,He).call(this,r)}return"en"!==e?this.translate(t,"en",n):t}},{key:"translateFrom",value:function(t,e,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"core";if(!t)return t;var i=null===(r=Ye(Fe,this))||void 0===r?void 0:r[o];if(!i)return t;var a=null==i?void 0:i[e],u=null==i?void 0:i[n];if(!a||!u)return t;var l=Be(We,this,Ve).call(this,a,t);if(!l)return t;var c=u[l],f=Be(We,this,He).call(this,c);return null!=f?f:t}},{key:"_",value:function(){return this.translate.apply(this,arguments)}},{key:"getLang",value:function(){return Ye(qe,this)}},{key:"setLang",value:function(t){t||("undefined"!=typeof navigator&&navigator.language?t=navigator.language:"undefined"!=typeof process&&process.env&&(t=process.env.LANG||process.env.LC_ALL||process.env.LC_MESSAGES)),Ue(qe,this,(t||"en").trim().toLowerCase().slice(0,2))}}],e&&De(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();function $e(t){var e={},n={};A(t,function(t,r){A(r,function(r,o){J(o)?(void 0===e[t]&&(e[t]={}),e[t][r]=o):(void 0===n[t]&&(n[t]={}),n[t][r]=o)})}),Ue(Fe,this,O(!0,e,{core:O({},e.core||{},n)}))}function Ve(t,e){for(var n in t)if(Be(We,this,He).call(this,t[n])===e)return n;return null}function He(t){return Z(t)?t():t}function Ge(t){return Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ge(t)}function Ze(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Je(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ze(Object(n),!0).forEach(function(e){Ke(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Ke(t,e,n){return(e=function(t){var e=function(t){if("object"!=Ge(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Ge(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ge(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Qe(t){return Qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qe(t)}function tn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,en(r.key),r)}}function en(t){var e=function(t){if("object"!=Qe(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Qe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Qe(e)?e:e+""}function nn(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.Translator=ze),Je(Je(Je(Je(Je(Je(Je({},u),i),r),a),l),o),n);var rn=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return e=t,n=[{key:"getPosition",value:function(e,n){e=nn(t,this,on).call(this,e);var r={left:0,top:0};if(n instanceof Element){var o=n.getBoundingClientRect();r={left:window.scrollX+o.left,top:window.scrollY+o.top}}return{x:e.pageX-r.left,y:e.pageY-r.top}}},{key:"getViewportPosition",value:function(e){return{x:(e=nn(t,this,on).call(this,e)).clientX,y:e.clientY}}},{key:"getElement",value:function(e){return e=nn(t,this,on).call(this,e),window.document.elementFromPoint(e.clientX,e.clientY)}}],null&&tn(e.prototype,null),n&&tn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n}();function on(t){var e,n,r,o,i,a,u,l=null!==(e=null!==(n=null==t||null===(r=t.detail)||void 0===r?void 0:r.originalEvent)&&void 0!==n?n:null==t?void 0:t.originalEvent)&&void 0!==e?e:t;if(!l)return null;var c=null!==(o=null!==(i=null===(a=l.changedTouches)||void 0===a?void 0:a[0])&&void 0!==i?i:null===(u=l.touches)||void 0===u?void 0:u[0])&&void 0!==o?o:l,f="number"==typeof c.clientX?c.clientX:0,s="number"==typeof c.clientY?c.clientY:0;return{clientX:f,clientY:s,pageX:"number"==typeof c.pageX?c.pageX:f+("undefined"!=typeof window?window.scrollX:0),pageY:"number"==typeof c.pageY?c.pageY:s+("undefined"!=typeof window?window.scrollY:0)}}const an=rn;return"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.mouse=rn),e})());
1
+ !function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.mouse=n():t.mouse=n()}(this,()=>(()=>{"use strict";var t={d:(n,e)=>{for(var r in e)t.o(e,r)&&!t.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:e[r]})},o:(t,n)=>Object.prototype.hasOwnProperty.call(t,n),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>ue});var e={};t.r(e),t.d(e,{debounce:()=>m,equals:()=>s,flatten:()=>v,getScrollbarWidth:()=>g,noop:()=>p,sizeOf:()=>d,strParseFloat:()=>h,throttle:()=>y});var r={};t.r(r),t.d(r,{clone:()=>P,each:()=>A,extend:()=>O,foreach:()=>j,map:()=>C,merge:()=>T,reduce:()=>x});var o={};t.r(o),t.d(o,{dec2hex:()=>N,floorTo:()=>L,hex2dec:()=>R,max:()=>_,min:()=>I,plancher:()=>k,round:()=>M});var i={};t.r(i),t.d(i,{arrayDiff:()=>F,arrayUnique:()=>B,array_diff:()=>W,array_unique:()=>q,inArray:()=>X,indexOf:()=>Y,lastIndexOf:()=>U,range:()=>z});var a={};t.r(a),t.d(a,{isArray:()=>et,isArrayLike:()=>nt,isBool:()=>Q,isBoolean:()=>K,isDate:()=>rt,isDocument:()=>pt,isDomElement:()=>dt,isEvent:()=>ot,isEventSupported:()=>ct,isFloat:()=>ut,isFunction:()=>Z,isInt:()=>at,isInteger:()=>it,isObject:()=>G,isPlainObject:()=>J,isScalar:()=>lt,isString:()=>H,isTouchDevice:()=>ft,isUndefined:()=>tt,isWindow:()=>st});var u={};t.r(u),t.d(u,{addUrlParam:()=>Xt,br2nl:()=>St,camelCase:()=>$t,compareMixAlphaDigits:()=>Kt,decodeHtml:()=>Yt,escapeRegex:()=>zt,f:()=>Ht,format:()=>Vt,formatSize:()=>Jt,hex2rgb:()=>Dt,hextorgb:()=>Nt,hilite:()=>Zt,htmlquotes:()=>Ut,htmlsimplequotes:()=>Bt,insert:()=>Ot,insertTag:()=>Ct,lcfirst:()=>jt,ltrim:()=>mt,nl2br:()=>Et,noAccent:()=>wt,numberFormat:()=>Mt,pad:()=>kt,parse_url:()=>Rt,repeat:()=>qt,reverse:()=>Pt,rgb2hex:()=>It,rgbtohex:()=>_t,rtrim:()=>gt,stripMultipleSpaces:()=>bt,stripTags:()=>Ft,substringIndex:()=>xt,thousandSeparator:()=>Tt,toCssClassName:()=>Gt,toPrice:()=>Lt,toUrl:()=>Wt,trim:()=>yt,ucfirst:()=>At});var l={};function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}t.r(l),t.d(l,{rand:()=>an,randAlpha:()=>tn,randAlphaCs:()=>nn,randAlphaNum:()=>en,randAlphaNumCs:()=>rn,randNum:()=>on,uniqid:()=>un});var f,s=function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];if(n.length<2)return!1;var r=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new WeakMap;if(t===n)return!0;if(Number.isNaN(t)&&Number.isNaN(n))return!0;if(c(t)!==c(n)||null===t||null===n)return!1;if(et(t)||G(t)){if(e.has(t))return e.get(t)===n;e.set(t,n)}if(et(t)||et(n))return!(!et(t)||!et(n))&&t.length===n.length&&t.every(function(t,o){return r(t,n[o],e)});if(G(t)){if(Object.getPrototypeOf(t)!==Object.getPrototypeOf(n))return!1;if(t instanceof Date)return t.getTime()===n.getTime();if(t instanceof RegExp)return t.toString()===n.toString();var o=Object.keys(t),i=Object.keys(n);return o.length===i.length&&o.every(function(o){return r(t[o],n[o],e)})}return!1},o=n[0];return n.slice(1).every(function(t){return r(o,t)})},p=function(){},d=function(t){return C(t,p).length},v=function(t){return G(t)||et(t)?[].concat.apply([],C(t,function(t,n){return v(n)})):t},h=function(t){if(!t)return 0;var n=parseFloat((t+"").replace(/\s/g,"").replace(",","."));return Number.isNaN(n)?0:n},y=function(t,n){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=null,a=0;return function(){for(var u=this,l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];var s=Date.now();a||e||(a=s);var p=n-(s-a);p<=0||p>n?(a=s,t.apply(o||this,c)):!i&&r&&(i=setTimeout(function(){i=null,a=e?Date.now():0,t.apply(o||u,c)},p))}},m=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=null,i=0;return function(){for(var a=this,u=arguments.length,l=new Array(u),c=0;c<u;c++)l[c]=arguments[c];var f=Date.now();e&&(i||(i=f,t.apply(r||this,l))),clearTimeout(o),o=null,o=setTimeout(function(){i=f,clearTimeout(o),o=null,t.apply(r||a,l)},n)}},g=(f=null,function(){if(null===f){var t=document.createElement("div");t.style.visibility="hidden",t.style.width="100px",t.style.msOverflowStyle="scrollbar",document.body.appendChild(t);var n=t.offsetWidth;t.style.overflow="scroll";var e=document.createElement("div");e.style.width="100%",t.appendChild(e);var r=e.offsetWidth;t.remove(),f=n-r}return f});function b(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;l=!1}else for(;!(l=(r=i.call(e)).done)&&(u.push(r.value),u.length!==n);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,n)||S(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.")}()}function w(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=S(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==e.return||e.return()}finally{if(u)throw i}}}}function S(t,n){if(t){if("string"==typeof t)return E(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?E(t,n):void 0}}function E(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}var A=function(t,n,e){if(J(t)){var r=-1;for(var o in t)if(t.hasOwnProperty(o)&&!1===n.call(null!=e?e:t[o],o,t[o],t,++r))return}else{if(H(t)){for(var i=t.split(""),a=0;a<i.length;a++)if(!1===n.call(null!=e?e:i[a],a,i[a],t,a))return t;return t}if(t instanceof Map){var u,l=0,c=w(t.entries());try{for(c.s();!(u=c.n()).done;){var f=b(u.value,2),s=f[0],p=f[1];if(!1===n.call(null!=e?e:p,s,p,t,l++))return t}}catch(t){c.e(t)}finally{c.f()}}else if(t instanceof Set){var d,v=0,h=w(t.values());try{for(h.s();!(d=h.n()).done;){var y=d.value;if(!1===n.call(null!=e?e:y,v,y,t,v))return t;v++}}catch(t){h.e(t)}finally{h.f()}}else if(nt(t))for(var m=Array.from(t),g=0;g<m.length;g++)if(!1===n.call(e||m[g],g,m[g],m,g))return t}return t},j=function(t,n,e){return A(t,function(t,r,o,i){return n.apply(e||r,[r,t,o,i])},e)},C=function(t,n,e){var r=[];return A(t,function(t,o,i,a){var u=n.call(e,t,o,i,a);null!==u&&r.push(u)}),r},x=function(t,n,e){var r=!tt(e);if(!d(t)&&!r)throw new Error("Nothing to reduce and no initial value");var o=r?e:C(t,function(t,n,e,r){return 0===r?n:null})[0];return A(t,function(t,e,i,a){(0!==a||r)&&(o=n(o,e,t,a,i))}),o},O=function(){for(var t=!1,n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];if(K(e[0])&&(t=e.shift()),e.length<2||tt(e[0])||null===e[0])return e[0];var o=e[0];return G(o)||(e[0]=o={}),j(e.slice(1),function(n){if(G(n))for(var e in n)t&&J(n[e])?o[e]=O(!0,{},o[e],n[e]):o[e]=n[e]}),o},P=function(t){if(!G(t)&&!et(t)||st(t))return t;var n=G(t)?{}:[];return A(t,function(t,e){G(e)?n[t]=P(e):n[t]=e}),n},T=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=C(t,function(t,n){return n});A(n,function(t,n){e.push(n)});for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return o.length?T.apply(void 0,[e].concat(o)):e},M=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.round(t*Math.pow(10,n))/Math.pow(10,n)},L=function(t,n){if(n<=0)throw new Error("Precision must be greater than 0");return M(Math.floor(t/n)*n,6)},k=L,I=function(t,n){return D(t,n=Z(n)?n:function(t,n){return t<n?-1:1})},_=function(t,n){return D(t,n=Z(n)?n:function(t,n){return t>n?-1:1})};function D(t,n){var e;return A(t,function(t,r,o,i){e=0===i||n.call(null,e,r)>0?r:e}),e}var N=function(t){return t.toString(16)},R=function(t){t=Pt(t+"").toUpperCase();var n=0;return A(t,function(t,e){var r="0123456789ABCDEF".indexOf(e);if(-1===r)return n=0,!1;n+=r*Math.pow(2,4*t)}),n},X=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!1;return A(n,function(n,i){if(n>=e)if(r){if(i===t)return o=!0,!1}else{if(G(t)&&G(i))return o=s(i,t),!1;if(et(t)&&G(i))return o=s(i,t),!1;if(i==t)return o=!0,!1}}),o},Y=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=H(t)?C(t,function(t,n){return n}):t;for(e=e<0?Math.ceil(e)+r.length:Math.floor(e);e<r.length;e++)if(e in r&&r[e]===n)return e;return-1},U=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=H(t)?C(t,function(t,n){return n}):t;for(e=e<0?r.length+Math.ceil(e):Math.floor(e);e>=0;e--)if(e in r&&r[e]===n)return e;return-1},B=function(t){return t.filter(function(t,n,e){return n===Y(e,t)})},q=B,F=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.filter(function(t){return!X(t,n,0,e)})},W=F,z=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t=M(t),e=M(e);var r=[];if(tt(n)||t<1||0===e||t<Math.abs(e))return r;var o=t*e;if(H(n)){n=n.charCodeAt(0);for(var i=0;e>0?i<o:i>o;i+=e)r.push(String.fromCharCode(n+i))}else if(it(n))for(var a=0;e>0?a<o:a>o;a+=e)r.push(n+a);return r};function $(t){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$(t)}var V,H=function(t){return"string"==typeof t||"[object String]"===Object.prototype.toString.call(t)},G=function(t){return!!t&&!et(t)&&"object"===$(t)},Z=function(t){return!!t&&"function"==typeof t},J=function(t){return!1!==G(t)&&(void 0===t.constructor||!1!==G(t.constructor.prototype)&&!1!==t.constructor.prototype.hasOwnProperty("isPrototypeOf"))},K=function(t){return!0===t||!1===t},Q=K,tt=function(t){return void 0===t},nt=function(t){return!!t&&!H(t)&&!Z(t)&&at(t.length)&&Number.isFinite(t.length)},et=function(t){return Array.isArray(t)},rt=function(t){return!!t&&"[object Date]"===Object.prototype.toString.call(t)},ot=function(t){return G(t)&&(!!t.preventDefault||/\[object Event\]/.test(t.constructor.toString()))},it=function(t){return/^[-+]?\d+$/.test(t+"")},at=it,ut=function(t){return/^[-+]?\d+(\.\d+)?$/.test(t+"")},lt=function(t){var n=$(t);return null===t||X(n,["string","number","bigint","symbol","boolean"])},ct=(V={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(t){var n=document.createElement(V[t]||"div"),e=(t="on"+t)in n;return n=null,e}),ft=function(){return ct("touchstart")},st=function(t){return!!t&&t===t.window},pt=function(t){return!!t&&9===t.nodeType},dt=function(t){return G(t)&&1===t.nodeType&&!J(t)};function vt(t){return function(t){if(Array.isArray(t))return ht(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return ht(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?ht(t,n):void 0}}(t)||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 ht(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}var yt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return mt(gt(t,n),n)},mt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return t.replace(new RegExp("^".concat(n,"+"),"g"),"")},gt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return t.replace(new RegExp("".concat(n,"+$"),"g"),"")},bt=function(t){return t.trim().replace(/ +/g," ")},wt=function(t){return t.replace(/[àäâ]/g,"a").replace(/[èéêë]/g,"e").replace(/[îïí]/g,"i").replace(/[öô]/g,"o").replace(/[üù]/g,"u").replace(/ç/g,"c").replace(/ÿ/g,"y").replace(/[ÀÄÂ]/g,"A").replace(/[ÈÉÊË]/g,"E").replace(/[ÎÏÍ]/g,"I").replace(/[ÖÔ]/g,"O").replace(/[ÜÙ]/g,"U").replace(/Ç/g,"C").replace(/Ÿ/g,"Y")},St=function(t){return t.split(/<br\s*\/*>/).join("\n")},Et=function(t){return t.split("\n").join("<br>")},At=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},jt=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},Ct=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o="<".concat(n,">"),i="</".concat(n,">");return["br","hr","img","link","input"].includes(n)&&(o="<".concat(n,"/>"),i=""),t.slice(0,e)+o+t.slice(e,e+r)+i+t.slice(e+r)},xt=function(t,n,e){var r=(t+"").split(n);return e>0?r.splice(e,r.length-e):e<0&&r.splice(0,r.length+e),r.join(n)},Ot=function(t,n,e){return e>=t.length?t:vt(t).reduce(function(t,r,o){return o>0&&o%e===0?t+n+r:t+r},"")},Pt=function(t){for(var n=[],e=0;e<t.length;e++)n.unshift(t[e]);return n.join("")},Tt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(tt(t)||null===t)return t;if(t=(t+"").replace(",","."),Math.abs(t)>=1e3){var r=Math[t>=1e3?"floor":"ceil"](t)+"",o=Pt(Ot(Pt(r),Pt(n),3));return t.indexOf(".")>0?o+e+xt(t,".",-1):o}return(t+"").replace(".",e)},Mt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:".";if(t=t?t+"":"0",t=M(parseFloat(t.replace(",",".")),n)+"",0===n)return Tt(t,r,o);var i=t.lastIndexOf(".");if(-1===i)return!0===e&&(t+=o+qt("0",n)),Tt(t,r,o);var a=t.slice(i+1).length;return Tt(n>a?t+"0".repeat(n-a):t.slice(0,i+1+n),r,o)},Lt=Mt,kt=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" ",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"left";return tt(n)||t.length>=n||!X(r,["left","right"])?t:"left"===r?e.repeat(Math.ceil(n/e.length)).slice(0,n-t.length)+t:t+e.repeat(Math.ceil(n/e.length)).slice(0,n-t.length)},It=function(t,n,e){return et(t)?It.apply(void 0,vt(t)):it(t)&&it(n)&&it(e)?[kt(N(parseInt(t)),2,"0").toUpperCase(),kt(N(parseInt(n)),2,"0").toUpperCase(),kt(N(parseInt(e)),2,"0").toUpperCase()].join(""):""},_t=It,Dt=function(t){if(!H(t)||!t.length)return[];(t=t.slice(-6).toUpperCase()).length<6&&(t=C(t.slice(-3),function(t,n){return n+""+n}).join(""));for(var n=0;n<t.length;n++)if(-1==="0123456789ABCDEF".indexOf(t[n]))return[];return C(Ot(t,",",2).split(","),function(t,n){return R(n)})},Nt=Dt,Rt=function(t){for(var n=["source","scheme","authority","userInfo","user","pass","host","port","relative","path","directory","file","query","fragment"],e=/^(?:([^:\/?#]+):)?(?:\/\/()(?:(?:()(?:([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?()(?:(()(?:(?:[^?#\/]*\/)*)()(?:[^?#]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(t),r={},o=14;o--;)e[o]&&(r[n[o]]=e[o]);return delete r.source,r},Xt=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(J(n))return A(n,function(n,e){t=Xt(t,n,e)}),t;var r,o=Rt(t),i="";(r=t.indexOf("#"))>-1&&(i=t.slice(r),t=t.slice(0,r));var a=encodeURIComponent(n),u=null===e?"":encodeURIComponent(e);if(!o.query)return t+"?"+a+"="+u+i;for(var l=o.query.split("&"),c=!1,f=0;f<l.length;f++)if(l[f].startsWith(a+"=")){l[f]=a+"="+u,c=!0;break}return c||l.push(a+"="+u),o.scheme&&o.host?o.scheme+"://"+o.host+(o.path||"")+"?"+l.join("&")+i:(o.host||"")+o.path+"?"+l.join("&")+i},Yt=function(t){return H(t)?t.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#039;/g,"'"):""},Ut=function(t){return H(t)?t.replace(/"/g,"&quot;").replace(/'/g,"&#039;"):""},Bt=function(t){return H(t)?t.replace(/'/g,"&#039;"):""},qt=function(t,n){return H(t)&&ut(n)?new Array(Math.floor(n)+1).join(t):""},Ft=function(t,n){if(H(n)){for(var e=new RegExp("<".concat(n,"[^>]*>(.*?)</").concat(n,">|<").concat(n,"[^>]*/>"),"ig");e.test(t);)t=t.replace(e,"$1");return t}return t.replace(/(<([^>]+)>)/gi,"")},Wt=function(t){return yt(wt(t).toLowerCase().replace(/[^a-z0-9]/g,"-").replace(/-{2,}/g,"-"),"-")},zt=function(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&").replace(/[\n\t]/g," ")},$t=function(t){if(!t)return"";var n="",e=!1,r=!1,o=!1;t=yt(t),t=yt(t,"_"),t=yt(t,"-");var i=function(t){return t===t.toUpperCase()&&t!==t.toLowerCase()},a=function(t){return"-"===t||"_"===t||" "===t};return C(t,function(t,u){return r=a(n),o=i(n),n=u,a(u)?null:(r?(u=u.toUpperCase(),e=!0):i(u)?((0===t||o&&!e)&&(u=u.toLowerCase()),e=!1):e=!1,u)}).join("")},Vt=function(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];return e.length&&A(e,function(n,e){if(H(e)){var r={};r[n]=e,e=r}A(e,function(n,e){t=t.replace(new RegExp("\\{"+n+"\\}","gm"),function(t){return tt(e)?t:e})})}),t},Ht=Vt,Gt=function(t){return t.replace(/[^a-z0-9_-]/gi,function(t){var n=t.charCodeAt(0);return 32===n?"-":"__"+("000"+n.toString(16)).slice(-4)})},Zt=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"strong";t=Yt(t);var r,o,i=wt(t).toLowerCase().replace(/[[\]]+/g,""),a="";if(et(n)||(n=[n]),A(n,function(t,n){n.length&&(n=Yt(n),r=wt(n).toLowerCase().replace(/[[\]]+/g,""),o=new RegExp(zt(r),"g"),a=i.replace(o,"[".concat(r,"]")),i=a)}),!a.length)return t;var u=0,l="",c="end";return A(a,function(n,r){var o=t.charAt(u);"["===r&&"end"===c?(l+="<".concat(e,">"),c="start"):"]"===r&&"start"===c?(l+="</".concat(e,">"),c="end"):(u+=1,l+=o)}),l.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(new RegExp("&lt;".concat(e,"&gt;"),"g"),"<".concat(e,">")).replace(new RegExp("&lt;/".concat(e,"&gt;"),"g"),"</".concat(e,">")).replace(new RegExp("&lt;br&gt;","g"),"<br>")},Jt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",",e=-1,r=0;do{t/=1024,e++}while(t>999);it(t)||(r=1);var o=C(["k","M","G","T","P","E"],function(t,n){return n+"B"});return Mt(Math.max(t,0),r,!0,"",n)+" "+o[e]},Kt=function(t,n){if(t===n)return 0;if(it(t)&&it(n))return Math.sign(t-n);for(var e="",r=0;r<Math.min(t.length,n.length)&&t.charAt(r)===n.charAt(r)&&!it(t);r++)e+=t.charAt(r);t=t.slice(e.length),n=n.slice(e.length);var o="",i=null;A(t,function(t,n){if(o)return n>="0"&&n<="9"&&(o+=n,!0);i=t,n>="0"&&n<="9"&&(o+=n)});var a="",u=null;return A(n,function(t,n){if(a)return n>="0"&&n<="9"&&(a+=n,!0);u=t,n>="0"&&n<="9"&&(a+=n)}),o.length&&a.length&&i===u&&t.substring(0,i)===n.substring(0,u)?Math.sign(o-a):t>n?1:-1};j(Object.keys(u),function(t){var n=u[t],e=String.prototype,r=e[t];e[t]=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return r&&e.length===r.length?r.apply(this,e):n.apply(void 0,[this].concat(e))}});var Qt,tn=function(t){return an("abcdefghijklmnopqrstuvwxyz".split(""),t)},nn=function(t){return an("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),t)},en=function(t){return an("0123456789abcdefghijklmnopqrstuvwxyz".split(""),t)},rn=function(t){return an("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),t)},on=function(t){return an("0123456789".split(""),t)},an=function(t,n){for(var e="",r=0;r<n;r++)e+=t[Math.floor(1e3*Math.random())%t.length];return e},un=(Qt=0,function(){return Qt++,"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").concat(Date.now().toString(36),"_").concat(Qt.toString(36),"_").concat(en(5))});function ln(t){return ln="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ln(t)}function cn(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,fn(r.key),r)}}function fn(t){var n=function(t){if("object"!=ln(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=ln(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ln(n)?n:n+""}function sn(t,n,e){if("function"==typeof t?t===n:t.has(n))return arguments.length<3?n:e;throw new TypeError("Private element is not present on this object")}var pn=function(){function t(){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t)}return n=t,e=[{key:"getPosition",value:function(n,e){var r;n=sn(t,this,dn).call(this,n);var o={left:0,top:0};if(!(e instanceof Element)&&(null===(r=e)||void 0===r?void 0:r[0])instanceof Element&&(e=e[0]),e instanceof Element){var i=e.getBoundingClientRect();o={left:window.scrollX+i.left,top:window.scrollY+i.top}}return{x:n.pageX-o.left,y:n.pageY-o.top}}},{key:"getViewportPosition",value:function(n){return{x:(n=sn(t,this,dn).call(this,n)).clientX,y:n.clientY}}},{key:"getElement",value:function(n){return n=sn(t,this,dn).call(this,n),window.document.elementFromPoint(n.clientX,n.clientY)}}],null&&cn(n.prototype,null),e&&cn(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,e}();function dn(t){var n,e,r,o,i,a,u,l=null!==(n=null!==(e=null==t||null===(r=t.detail)||void 0===r?void 0:r.originalEvent)&&void 0!==e?e:null==t?void 0:t.originalEvent)&&void 0!==n?n:t;if(!l)return null;var c=null!==(o=null!==(i=null===(a=l.changedTouches)||void 0===a?void 0:a[0])&&void 0!==i?i:null===(u=l.touches)||void 0===u?void 0:u[0])&&void 0!==o?o:l,f="number"==typeof c.clientX?c.clientX:0,s="number"==typeof c.clientY?c.clientY:0;return{clientX:f,clientY:s,pageX:"number"==typeof c.pageX?c.pageX:f+("undefined"!=typeof window?window.scrollX:0),pageY:"number"==typeof c.pageY?c.pageY:s+("undefined"!=typeof window?window.scrollY:0)}}const vn=pn;function hn(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=gn(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==e.return||e.return()}finally{if(u)throw i}}}}function yn(t){return function(t){if(Array.isArray(t))return bn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||gn(t)||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 mn(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;l=!1}else for(;!(l=(r=i.call(e)).done)&&(u.push(r.value),u.length!==n);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,n)||gn(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.")}()}function gn(t,n){if(t){if("string"==typeof t)return bn(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?bn(t,n):void 0}}function bn(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.mouse=pn);var wn=new Map,Sn=["longtap","dbltap"],En=new Set;function An(t,n){var e={_immediateStopped:!1,_propagationStopped:!1,originalEvent:t,currentTarget:n,stopPropagation:function(){e._propagationStopped=!0,t.stopPropagation.apply(t,arguments)},stopImmediatePropagation:function(){e._immediateStopped=!0,e._propagationStopped=!0,t.stopImmediatePropagation.apply(t,arguments)}};return new Proxy(e,{get:function(n,e,r){if(e in n)return Reflect.get(n,e,r);var o=t[e];return Z(o)?o.bind(t):o}})}function jn(t){return function(t){if(Array.isArray(t))return Cn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return Cn(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Cn(t,n):void 0}}(t)||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 Cn(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}var xn=["animationIterationCount","aspectRatio","borderImageSlice","columnCount","flexGrow","flexShrink","fontWeight","gridArea","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineHeight","opacity","order","orphans","scale","widows","zIndex","zoom","fillOpacity","floodOpacity","stopOpacity","strokeMiterlimit","strokeOpacity"],On={children:function(t,n){return n?this.find(t,":scope > ".concat(n)):Array.from(t.children)},child:function(t,n){return this.first(this.children(t,n))},find:function(t,n){if(void 0===n&&(n=t,t=document),n instanceof Element&&(n=[n]),nt(n))return C(Array.from(n),function(n,e){return e instanceof Element&&(t===e||t.contains(e))?e:null});try{return Array.from(t.querySelectorAll(n))}catch(t){return[]}},findOne:function(t,n){var e;return null!==(e=this.find(t,n)[0])&&void 0!==e?e:null},findByData:function(t,n,e){if(void 0===e)return this.find(t,"[data-".concat(n,"]"));var r=CSS.escape(e+"");return this.find(t,"[data-".concat(n,'="').concat(r,'"]'))},findOneByData:function(t,n,e){var r;return null!==(r=this.findByData(t,n,e)[0])&&void 0!==r?r:null},addClass:function(t,n){if(!n)return t;var e=n.split(" ").map(function(t){return t.trim()}).filter(Boolean);return(t instanceof Element?[t]:Array.from(t)).forEach(function(t){var n;t instanceof Element&&(n=t.classList).add.apply(n,jn(e))}),t},removeClass:function(t,n){if(!n)return t;var e=n.split(" ").map(function(t){return t.trim()}).filter(Boolean);return(t instanceof Element?[t]:Array.from(t)).forEach(function(t){var n;t instanceof Element&&(n=t.classList).remove.apply(n,jn(e))}),t},toggleClass:function(t,n,e){return j(n.split(" ").map(function(t){return t.trim()}).filter(Boolean),function(n){return t.classList.toggle(n,e)}),t},hasClass:function(t,n){if(!n)return!1;var e=!0;return j(n.split(" ").map(function(t){return t.trim()}).filter(Boolean),function(n){if(!X(n,Array.from(t.classList)))return e=!1,!1}),e},append:function(t){for(var n=this,e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];return j(r,function(e){H(e)&&(e=n.create(e)),e&&t.append(e)}),t},prepend:function(t){for(var n=this,e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];return j([].concat(r).reverse(),function(e){H(e)&&(e=n.create(e)),e&&t.prepend(e)}),t},remove:function(){for(var t=this,n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];e.forEach(function(n){n instanceof Element?n.remove():n instanceof NodeList||et(n)?Array.from(n).forEach(function(t){return t.remove()}):t.find(n).forEach(function(t){return t.remove()})})},closest:function(t,n){if(n instanceof Element){if(t===n)return t;for(var e=t.parentElement;e;){if(e===n)return e;e=e.parentElement}return null}return void 0===n?t:t.closest(n)},next:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=t.nextElementSibling;return n?e&&e.matches(n)?e:null:e},prev:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=t.previousElementSibling;return n?e&&e.matches(n)?e:null:e},nextAll:function(t,n){for(var e=[],r=t.nextElementSibling;r;)(void 0===n||r.matches(n))&&e.push(r),r=r.nextElementSibling;return e},prevAll:function(t,n){for(var e=[],r=t.previousElementSibling;r;)(void 0===n||r.matches(n))&&e.push(r),r=r.previousElementSibling;return e},index:function(t,n){return this.prevAll(t,n).length},nextUntil:function(t,n){var e=!1,r=[];n instanceof Element&&(e=!0);for(var o=t.nextElementSibling;o&&!(e?o===n:o.matches(n));)r.push(o),o=o.nextElementSibling;return r},prevUntil:function(t,n){var e=!1,r=[];n instanceof Element&&(e=!0);for(var o=t.previousElementSibling;o&&!(e?o===n:o.matches(n));)r.push(o),o=o.previousElementSibling;return r},wrap:function(t,n){return n.isConnected||t.parentNode.insertBefore(n,t),this.append(n,t),t},attr:function(t,n,e){return void 0===e?t.getAttribute(n):(null===e?t.removeAttribute(n):t.setAttribute(n,e),t)},prop:function(t,n,e){return void 0===e?t[n]:(t[n]=e,t)},html:function(t,n){return void 0===n?t.innerHTML:(t.innerHTML=n,t)},text:function(t,n){return void 0===n?t.innerText:(t.innerText=n,t)},hide:function(t){if(void 0===this.data(t,"__display__")){var n;n=Z(window.getComputedStyle)?window.getComputedStyle(t).display:t.style.display,this.data(t,"__display__",n)}return t.style.display="none",t},show:function(t){var n=this.data(t,"__display__");return void 0===n?t.style.removeProperty("display"):(t.style.display=n,this.removeData(t,"__display__")),t},toggle:function(t){return"none"===this.css(t,"display")?this.show(t):this.hide(t)},data:function(t,n,e){var r=this;if(void 0===n&&void 0===e)return t.dataset;if(J(n))return A(n,function(n,e){return r.data(t,n,e)}),t;var o=/^data-/.test(n+""),i=$t(o?(n+"").replace(/^data-/,""):n+"");return void 0===e?t.dataset[i]:null===e?(delete t.dataset[i],t):(t.dataset[i]=e,t)},removeData:function(t,n){return this.data(t,n,null)},css:function(t,n,e){var r=this;if(H(n)){var o=n.startsWith("--")?n:$t(n);if(void 0===e){if(window.getComputedStyle){var i=window.getComputedStyle(t,null);return i.getPropertyValue(n)||i[$t(n)]||""}return t.style[$t(n)]||""}o.startsWith("--")?t.style.setProperty(o,String(e)):("number"!=typeof e||X(o,xn)||(e+="px"),t.style[o]=e)}else A(n,function(n,e){r.css(t,n,e)});return t},closestFind:function(t,n,e){var r=this.closest(t,n);return r?this.find(r,e):[]},closestFindOne:function(t,n,e){var r=this.closest(t,n);return r?this.findOne(r,e):null},first:function(t){var n;return t instanceof Element?t:null!==(n=Array.from(t)[0])&&void 0!==n?n:null},last:function(t){var n;if(t instanceof Element)return t;var e=Array.from(t);return null!==(n=e[e.length-1])&&void 0!==n?n:null},create:function(t){if(!H(t))return null;if(/^[A-Za-z][A-Za-z0-9-]*$/.test(t))return document.createElement(t);var n=document.createElement("template");n.innerHTML=t.trim();var e=n.content;return 1===e.childElementCount&&1===e.children.length?e.firstElementChild:e.cloneNode(!0)},eq:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t=Array.from(t),Math.abs(n)>=t.length?null:(n<0&&(n=t.length+n),t[n])},after:function(t,n){return t.parentElement?(H(n)&&(n=this.create(n)),t.parentElement.insertBefore(n,t.nextElementSibling)):null},before:function(t,n){return t.parentElement?(H(n)&&(n=this.create(n)),t.parentElement.insertBefore(n,t)):null},empty:function(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t},not:function(t,n){var e=t instanceof Element?[t]:Array.from(t),r=H(n);return e.filter(function(t){return r?!t.matches(n):t!==n})},collide:function(t,n){var e=t.getBoundingClientRect(),r=n.getBoundingClientRect();return e.x<r.x+r.width&&e.x+e.width>r.x&&e.y<r.y+r.height&&e.y+e.height>r.y},matches:function(t,n){return!!t&&(n instanceof Element?n===t:t.matches(n))},replaceChild:function(t,n,e){return t.replaceChild(n,e)},replaceChildren:function(t){for(var n=this,e=[],r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return j(o,function(t){H(t)&&(t=n.create(t)),e.push(t)}),t.replaceChildren.apply(t,e),t},offset:function(t){if(st(t))return{top:t.scrollY,left:t.scrollX};if(pt(t))return{top:t.documentElement.scrollTop,left:t.documentElement.scrollLeft};var n=t.getBoundingClientRect(),e=this.offset(window);return{top:n.top+e.top,left:n.left+e.left}},isEditable:function(t){var n;return 3===(null===(n=t)||void 0===n?void 0:n.nodeType)&&(t=t.parentElement),t instanceof HTMLElement&&(X(t.tagName,["INPUT","TEXTAREA","SELECT"])||t.isContentEditable||!!this.closest(t,'[contenteditable="true"]'))},isInDOM:function(t){return t instanceof Node&&t.getRootNode({composed:!0})===document},on:function t(n,e,r,o,i){return H(n)?(j(Pn.find(n),function(n){t(n,e,r,o,i)}),n):(Z(r)&&(i=o,o=r,r=null),j(e.split(" "),function(t){var e=mn(t.split("."),2),a=e[0],u=e[1],l=function(t){if(!t.cancelBubble){var e,r=function(t,n){for(var e=[],r=3===t.nodeType?t.parentNode:t;r&&(e.push(r),r!==n);)r=r.parentNode;return e}(t.target,n),o=yn(wn.get(n)),i=hn(r);try{for(i.s();!(e=i.n()).done;){var a,u=e.value,l=!1,c=hn(o);try{for(c.s();!(a=c.n()).done;){var f=a.value;if(f.event===t.type){if(f.selector){if(!u.matches(f.selector))continue}else if(u!==n)continue;var s=An(t,u);if(f.handler.call(u,s),s._immediateStopped)return;s._propagationStopped&&(l=!0)}}}catch(t){c.e(t)}finally{c.f()}if(l)return}}catch(t){i.e(t)}finally{i.f()}}},c=wn.get(n);c||(c=[],wn.set(n,c)),X(a,Sn)&&function(t){var n,e,r,o,i,a,u;null!=En&&En.has(t)||("longtap"===t&&(r=null,o=0,i=0,a=null,u=function(){clearTimeout(r),r=null},document.addEventListener("touchstart",function(t){a=t.target;var n=vn.getViewportPosition(t);o=n.x,i=n.y,r=setTimeout(function(){a.dispatchEvent(new CustomEvent("longtap",{bubbles:!0,cancelable:!0,detail:{originalEvent:t}})),r=null},800)},{passive:!0}),document.addEventListener("touchmove",function(t){var n=vn.getViewportPosition(t);Math.hypot(n.x-o,n.y-i)>40&&(clearTimeout(r),r=null)},{passive:!0}),document.addEventListener("touchend",u),document.addEventListener("touchcancel",u)),"dbltap"===t&&(n=0,e=null,document.addEventListener("touchstart",function(t){var r=t.target;if(Date.now()-n>300)n=Date.now(),e=vn.getViewportPosition(t);else{var o=vn.getViewportPosition(t);Math.hypot(o.x-e.x,o.y-e.y)<=40&&(t.preventDefault(),r.dispatchEvent(new CustomEvent("dbltap",{bubbles:!0,cancelable:!0,detail:{originalEvent:t}}))),n=Date.now(),e=o}},{passive:!1})),En.add(t))}(a);var f=C(c,function(t,n){return n.event});X(a,f)||n.addEventListener(a,l,i),c.push({event:a,handler:o,selector:r,listener:l,namespace:u,options:i})}),n)},off:function t(n,e,r,o,i){if(H(n))return j(Pn.find(n),function(n){t(n,e,r,o,i)}),n;Z(r)&&(i=o,o=r,r=null);var a=wn.get(n);if(!a)return n;var u=e?e.split(" "):[void 0];return j(u,function(t){var e=mn(void 0===t?[void 0,void 0]:t.split("."),2),u=e[0],l=e[1],c=void 0!==(u=u||void 0),f=void 0!==l;j(yn(a).reverse(),function(t){if((!c&&!f||c&&!f&&t.event===u||!c&&f&&t.namespace===l||c&&f&&t.event===u&&t.namespace===l)&&(void 0===u||t.event===u)&&(void 0===o||t.handler===o)&&(void 0===r||t.selector===r)&&(void 0===l||t.namespace===l)&&(void 0===i||t.options===i)){var e=a.indexOf(t);-1!==e&&a.splice(e,1),C(a,function(t,n){return n.event===u?n:null})[0]||n.removeEventListener(t.event,t.listener,t.options)}})}),n}};const Pn=On;function Tn(t){return Tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tn(t)}function Mn(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ln(r.key),r)}}function Ln(t){var n=function(t){if("object"!=Tn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=Tn(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Tn(n)?n:n+""}function kn(t,n){return t.get(In(t,n))}function In(t,n,e){if("function"==typeof t?t===n:t.has(n))return arguments.length<3?n:e;throw new TypeError("Private element is not present on this object")}"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.dom=On);var _n=new WeakMap,Dn=new(function(){return t=function t(){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,n,e){(function(t,n){if(n.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,n),n.set(t,e)}(this,_n,{})},n=[{key:"addListener",value:function(t,n,e){var r=this;if(!Z(n))throw new Error("Callback must be a function.");if(!H(t))throw new Error("Events name must be a string separated by comma.");for(var o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];var u={callback:n,context:e,args:i};return A(t.split(","),function(t,n){if(!n)return!0;n=n.trim(),r.hasListener(n)?kn(_n,r)[n].push(u):kn(_n,r)[n]=[u]}),this}},{key:"addListenerOnce",value:function(t,n,e){for(var r=this,o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];return A(t.split(","),function(t,o){if(!(o=o.trim()))return!0;var a=function(){for(var t=arguments.length,u=new Array(t),l=0;l<t;l++)u[l]=arguments[l];n.apply(e,[o].concat(i).concat(u.slice(1))),r.removeListener(o,a)};r.addListener(o,a,e)}),this}},{key:"dispatch",value:function(t){for(var n=this,e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];if(!H(t))throw new Error("Events name must be a string seperated by comma.");return A(t.split(","),function(t,e){return!(e=e.trim())||(n.hasListener(e)?void A(kn(_n,n)[e],function(t,n){n.callback.apply(n.context,[e].concat(n.args).concat(r))}):(console.warn("No listeners found for event: ".concat(e)),!0))}),this}},{key:"hasListener",value:function(t,n,e){return tt(n)?!tt(kn(_n,this)[t]):!!C(kn(_n,this)[t],function(t,r){return r.callback===n&&r.context===e||null}).length}},{key:"removeListener",value:function(t,n,e){var r=this;return this.hasListener(t,n,e)&&(tt(n)?kn(_n,this)[t].splice(0):A(kn(_n,this)[t],function(n){return kn(_n,r)[t].splice(n,1),delete kn(_n,r)[t],!1})),this}},{key:"getListeners",value:function(t){return t?kn(_n,this)[t]||[]:kn(_n,this)}},{key:"reset",value:function(){var t,n;n={},(t=_n).set(In(t,this),n)}}],n&&Mn(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}());function Nn(t){return Nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nn(t)}function Rn(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Xn(r.key),r)}}function Xn(t){var n=function(t){if("object"!=Nn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=Nn(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Nn(n)?n:n+""}function Yn(t,n,e){Un(t,n),n.set(t,e)}function Un(t,n){if(n.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Bn(t,n){return t.get(Fn(t,n))}function qn(t,n,e){return t.set(Fn(t,n),e),e}function Fn(t,n,e){if("function"==typeof t?t===n:t.has(n))return arguments.length<3?n:e;throw new TypeError("Private element is not present on this object")}"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.eventDispatcher=Dn);var Wn=new WeakMap,zn=new WeakMap,$n=new WeakSet,Vn=function(){return t=function t(n,e){var r;!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),Un(this,r=$n),r.add(this),Yn(this,Wn,void 0),Yn(this,zn,void 0),Fn($n,this,Hn).call(this,n),this.setLang(e)},n=[{key:"translate",value:function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"core";if(n=void 0===n?this.getLang():n,void 0!==Bn(zn,this)[e]&&void 0!==Bn(zn,this)[e][n]&&void 0!==Bn(zn,this)[e][n][t]){var r=Bn(zn,this)[e][n][t];return Fn($n,this,Zn).call(this,r)}return"en"!==n?this.translate(t,"en",e):t}},{key:"translateFrom",value:function(t,n,e){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"core";if(!t)return t;var i=null===(r=Bn(zn,this))||void 0===r?void 0:r[o];if(!i)return t;var a=null==i?void 0:i[n],u=null==i?void 0:i[e];if(!a||!u)return t;var l=Fn($n,this,Gn).call(this,a,t);if(!l)return t;var c=u[l],f=Fn($n,this,Zn).call(this,c);return null!=f?f:t}},{key:"_",value:function(){return this.translate.apply(this,arguments)}},{key:"getLang",value:function(){return Bn(Wn,this)}},{key:"setLang",value:function(t){t||("undefined"!=typeof navigator&&navigator.language?t=navigator.language:"undefined"!=typeof process&&process.env&&(t=process.env.LANG||process.env.LC_ALL||process.env.LC_MESSAGES)),qn(Wn,this,(t||"en").trim().toLowerCase().slice(0,2))}}],n&&Rn(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}();function Hn(t){var n={},e={};A(t,function(t,r){A(r,function(r,o){J(o)?(void 0===n[t]&&(n[t]={}),n[t][r]=o):(void 0===e[t]&&(e[t]={}),e[t][r]=o)})}),qn(zn,this,O(!0,n,{core:O({},n.core||{},e)}))}function Gn(t,n){for(var e in t)if(Fn($n,this,Zn).call(this,t[e])===n)return e;return null}function Zn(t){return Z(t)?t():t}function Jn(t){return Jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jn(t)}function Kn(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),e.push.apply(e,r)}return e}function Qn(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?Kn(Object(e),!0).forEach(function(n){te(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Kn(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function te(t,n,e){return(n=function(t){var n=function(t){if("object"!=Jn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=Jn(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Jn(n)?n:n+""}(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function ne(t){return ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ne(t)}function ee(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,re(r.key),r)}}function re(t){var n=function(t){if("object"!=ne(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=ne(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ne(n)?n:n+""}function oe(t,n,e){if("function"==typeof t?t===n:t.has(n))return arguments.length<3?n:e;throw new TypeError("Private element is not present on this object")}"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.Translator=Vn),Qn(Qn(Qn(Qn(Qn(Qn(Qn({},u),i),r),a),l),o),e);var ie=function(){function t(){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t)}return n=t,e=[{key:"getPosition",value:function(n,e){var r;n=oe(t,this,ae).call(this,n);var o={left:0,top:0};if(!(e instanceof Element)&&(null===(r=e)||void 0===r?void 0:r[0])instanceof Element&&(e=e[0]),e instanceof Element){var i=e.getBoundingClientRect();o={left:window.scrollX+i.left,top:window.scrollY+i.top}}return{x:n.pageX-o.left,y:n.pageY-o.top}}},{key:"getViewportPosition",value:function(n){return{x:(n=oe(t,this,ae).call(this,n)).clientX,y:n.clientY}}},{key:"getElement",value:function(n){return n=oe(t,this,ae).call(this,n),window.document.elementFromPoint(n.clientX,n.clientY)}}],null&&ee(n.prototype,null),e&&ee(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,e}();function ae(t){var n,e,r,o,i,a,u,l=null!==(n=null!==(e=null==t||null===(r=t.detail)||void 0===r?void 0:r.originalEvent)&&void 0!==e?e:null==t?void 0:t.originalEvent)&&void 0!==n?n:t;if(!l)return null;var c=null!==(o=null!==(i=null===(a=l.changedTouches)||void 0===a?void 0:a[0])&&void 0!==i?i:null===(u=l.touches)||void 0===u?void 0:u[0])&&void 0!==o?o:l,f="number"==typeof c.clientX?c.clientX:0,s="number"==typeof c.clientY?c.clientY:0;return{clientX:f,clientY:s,pageX:"number"==typeof c.pageX?c.pageX:f+("undefined"!=typeof window?window.scrollX:0),pageY:"number"==typeof c.pageY?c.pageY:s+("undefined"!=typeof window?window.scrollY:0)}}const ue=ie;return"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.mouse=ie),n})());