Socket
Socket
Sign inDemoInstall

@danielgindi/dom-utils

Package Overview
Dependencies
0
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.5 to 1.0.6

4

dist/lib.cjs.min.js
/*!
* @danielgindi/dom-utils 1.0.5
* @danielgindi/dom-utils 1.0.6
* git://github.com/danielgindi/dom-utils.git
*/
"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e){this.wrapped=e}function n(e){var n,r;function o(n,r){try{var a=e[n](r),l=a.value,c=l instanceof t;Promise.resolve(c?l.wrapped:l).then((function(e){c?o("return"===n?"return":"next",e):i(a.done?"return":"normal",e)}),(function(e){o("throw",e)}))}catch(e){i("throw",e)}}function i(e,t){switch(e){case"return":n.resolve({value:t,done:!0});break;case"throw":n.reject(t);break;default:n.resolve({value:t,done:!1})}(n=n.next)?o(n.key,n.arg):r=null}this._invoke=function(e,t){return new Promise((function(i,a){var l={key:e,arg:t,resolve:i,reject:a,next:null};r?r=r.next=l:(n=r=l,o(e,t))}))},"function"!=typeof e.return&&(this.return=void 0)}function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=i(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},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 a,l=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,a=e},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw a}}}}Object.defineProperty(exports,"__esModule",{value:!0}),n.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},n.prototype.next=function(e){return this._invoke("next",e)},n.prototype.throw=function(e){return this._invoke("throw",e)},n.prototype.return=function(e){return this._invoke("return",e)};var c,u,f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s=function(e){return e&&e.Math==Math&&e},d=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof f&&f)||function(){return this}()||Function("return this")(),p={},h=function(e){try{return!!e()}catch(e){return!0}},v=!h((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),g={},y={}.propertyIsEnumerable,m=Object.getOwnPropertyDescriptor,b=m&&!y.call({1:2},1),x=(g.f=b?function(e){var t=m(this,e);return!!t&&t.enumerable}:y,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),S={}.toString,w=function(e){return S.call(e).slice(8,-1)},E=w,O="".split,j=h((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==E(e)?O.call(e,""):Object(e)}:Object,T=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},C=j,_=T,A=function(e){return C(_(e))},I=function(e){return"function"==typeof e},N=I,F=function(e){return"object"==typeof e?null!==e:N(e)},R=d,P=I,L=function(e){return P(e)?e:void 0},M=function(e,t){return arguments.length<2?L(R[e]):R[e]&&R[e][t]},k=d,W=M("navigator","userAgent")||"",$=k.process,z=k.Deno,D=$&&$.versions||z&&z.version,B=D&&D.v8;B?u=(c=B.split("."))[0]<4?1:c[0]+c[1]:W&&(!(c=W.match(/Edge\/(\d+)/))||c[1]>=74)&&(c=W.match(/Chrome\/(\d+)/))&&(u=c[1]);var H=u&&+u,U=H,Y=h,q=!!Object.getOwnPropertySymbols&&!Y((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&U&&U<41})),X=q&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,G=I,K=M,V=X?function(e){return"symbol"==typeof e}:function(e){var t=K("Symbol");return G(t)&&Object(e)instanceof t},J=function(e){try{return String(e)}catch(e){return"Object"}},Q=I,Z=J,ee=function(e){if(Q(e))return e;throw TypeError(Z(e)+" is not a function")},te=ee,ne=function(e,t){var n=e[t];return null==n?void 0:te(n)},re=I,oe=F,ie={exports:{}},ae=d,le=function(e,t){try{Object.defineProperty(ae,e,{value:t,configurable:!0,writable:!0})}catch(n){ae[e]=t}return t},ce=le,ue=d["__core-js_shared__"]||ce("__core-js_shared__",{}),fe=ue;(ie.exports=function(e,t){return fe[e]||(fe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.18.2",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"}),ie.exports;var se=T,de=function(e){return Object(se(e))},pe=de,he={}.hasOwnProperty,ve=Object.hasOwn||function(e,t){return he.call(pe(e),t)},ge=0,ye=Math.random(),me=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++ge+ye).toString(36)},be=d,xe=ie.exports,Se=ve,we=me,Ee=q,Oe=X,je=xe("wks"),Te=be.Symbol,Ce=Oe?Te:Te&&Te.withoutSetter||we,_e=function(e){return Se(je,e)&&(Ee||"string"==typeof je[e])||(Ee&&Se(Te,e)?je[e]=Te[e]:je[e]=Ce("Symbol."+e)),je[e]},Ae=F,Ie=V,Ne=ne,Fe=_e("toPrimitive"),Re=function(e,t){if(!Ae(e)||Ie(e))return e;var n,r=Ne(e,Fe);if(r){if(void 0===t&&(t="default"),n=r.call(e,t),!Ae(n)||Ie(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&re(n=e.toString)&&!oe(r=n.call(e)))return r;if(re(n=e.valueOf)&&!oe(r=n.call(e)))return r;if("string"!==t&&re(n=e.toString)&&!oe(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}(e,t)},Pe=V,Le=function(e){var t=Re(e,"string");return Pe(t)?t:String(t)},Me=F,ke=d.document,We=Me(ke)&&Me(ke.createElement),$e=function(e){return We?ke.createElement(e):{}},ze=$e,De=!v&&!h((function(){return 7!=Object.defineProperty(ze("div"),"a",{get:function(){return 7}}).a})),Be=v,He=g,Ue=x,Ye=A,qe=Le,Xe=ve,Ge=De,Ke=Object.getOwnPropertyDescriptor,Ve=(p.f=Be?Ke:function(e,t){if(e=Ye(e),t=qe(t),Ge)try{return Ke(e,t)}catch(e){}if(Xe(e,t))return Ue(!He.f.call(e,t),e[t])},{}),Je=F,Qe=function(e){if(Je(e))return e;throw TypeError(String(e)+" is not an object")},Ze=v,et=De,tt=Qe,nt=Le,rt=Object.defineProperty,ot=(Ve.f=Ze?rt:function(e,t,n){if(tt(e),t=nt(t),tt(n),et)try{return rt(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Ve),it=x,at=v?function(e,t,n){return ot.f(e,t,it(1,n))}:function(e,t,n){return e[t]=n,e},lt={exports:{}},ct=I,ut=ue,ft=Function.toString;ct(ut.inspectSource)||(ut.inspectSource=function(e){return ft.call(e)});var st,dt,pt,ht=ut.inspectSource,vt=I,gt=ht,yt=d.WeakMap,mt=vt(yt)&&/native code/.test(gt(yt)),bt=ie.exports,xt=me,St=bt("keys"),wt=function(e){return St[e]||(St[e]=xt(e))},Et={},Ot=mt,jt=F,Tt=at,Ct=ve,_t=ue,At=wt,It=Et,Nt=d.WeakMap;if(Ot||_t.state){var Ft=_t.state||(_t.state=new Nt),Rt=Ft.get,Pt=Ft.has,Lt=Ft.set;st=function(e,t){if(Pt.call(Ft,e))throw new TypeError("Object already initialized");return t.facade=e,Lt.call(Ft,e,t),t},dt=function(e){return Rt.call(Ft,e)||{}},pt=function(e){return Pt.call(Ft,e)}}else{var Mt=At("state");It[Mt]=!0,st=function(e,t){if(Ct(e,Mt))throw new TypeError("Object already initialized");return t.facade=e,Tt(e,Mt,t),t},dt=function(e){return Ct(e,Mt)?e[Mt]:{}},pt=function(e){return Ct(e,Mt)}}var kt={set:st,get:dt,has:pt,enforce:function(e){return pt(e)?dt(e):st(e,{})},getterFor:function(e){return function(t){var n;if(!jt(t)||(n=dt(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},Wt=v,$t=ve,zt=Function.prototype,Dt=Wt&&Object.getOwnPropertyDescriptor,Bt=$t(zt,"name"),Ht={EXISTS:Bt,PROPER:Bt&&"something"===function(){}.name,CONFIGURABLE:Bt&&(!Wt||Wt&&Dt(zt,"name").configurable)},Ut=d,Yt=I,qt=ve,Xt=at,Gt=le,Kt=ht,Vt=Ht.CONFIGURABLE,Jt=kt.get,Qt=kt.enforce,Zt=String(String).split("String");(lt.exports=function(e,t,n,r){var o,i=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,l=!!r&&!!r.noTargetGet,c=r&&void 0!==r.name?r.name:t;Yt(n)&&("Symbol("===String(c).slice(0,7)&&(c="["+String(c).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!qt(n,"name")||Vt&&n.name!==c)&&Xt(n,"name",c),(o=Qt(n)).source||(o.source=Zt.join("string"==typeof c?c:""))),e!==Ut?(i?!l&&e[t]&&(a=!0):delete e[t],a?e[t]=n:Xt(e,t,n)):a?e[t]=n:Gt(t,n)})(Function.prototype,"toString",(function(){return Yt(this)&&Jt(this).source||Kt(this)})),lt.exports;var en={},tn=Math.ceil,nn=Math.floor,rn=function(e){var t=+e;return t!=t||0===t?0:(t>0?nn:tn)(t)},on=rn,an=Math.max,ln=Math.min,cn=rn,un=Math.min,fn=function(e){return e>0?un(cn(e),9007199254740991):0},sn=fn,dn=function(e){return sn(e.length)},pn=A,hn=dn,vn=function(e){return function(t,n,r){var o,i=pn(t),a=hn(i),l=function(e,t){var n=on(e);return n<0?an(n+t,0):ln(n,t)}(r,a);if(e&&n!=n){for(;a>l;)if((o=i[l++])!=o)return!0}else for(;a>l;l++)if((e||l in i)&&i[l]===n)return e||l||0;return!e&&-1}},gn={includes:vn(!0),indexOf:vn(!1)},yn=ve,mn=A,bn=gn.indexOf,xn=Et,Sn=function(e,t){var n,r=mn(e),o=0,i=[];for(n in r)!yn(xn,n)&&yn(r,n)&&i.push(n);for(;t.length>o;)yn(r,n=t[o++])&&(~bn(i,n)||i.push(n));return i},wn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],En=Sn,On=wn.concat("length","prototype"),jn=(en.f=Object.getOwnPropertyNames||function(e){return En(e,On)},{}),Tn=(jn.f=Object.getOwnPropertySymbols,en),Cn=jn,_n=Qe,An=M("Reflect","ownKeys")||function(e){var t=Tn.f(_n(e)),n=Cn.f;return n?t.concat(n(e)):t},In=ve,Nn=An,Fn=p,Rn=Ve,Pn=h,Ln=I,Mn=/#|\.prototype\./,kn=function(e,t){var n=$n[Wn(e)];return n==Dn||n!=zn&&(Ln(t)?Pn(t):!!t)},Wn=kn.normalize=function(e){return String(e).replace(Mn,".").toLowerCase()},$n=kn.data={},zn=kn.NATIVE="N",Dn=kn.POLYFILL="P",Bn=kn,Hn=d,Un=p.f,Yn=at,qn=lt.exports,Xn=le,Gn=function(e,t){for(var n=Nn(t),r=Rn.f,o=Fn.f,i=0;i<n.length;i++){var a=n[i];In(e,a)||r(e,a,o(t,a))}},Kn=Bn,Vn=function(e,t){var n,r,o,i,a,l=e.target,c=e.global,u=e.stat;if(n=c?Hn:u?Hn[l]||Xn(l,{}):(Hn[l]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Un(n,r))&&a.value:n[r],!Kn(c?r:l+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Gn(i,o)}(e.sham||o&&o.sham)&&Yn(i,"sham",!0),qn(n,r,i,e)}},Jn=Sn,Qn=wn,Zn=Object.keys||function(e){return Jn(e,Qn)},er=v,tr=Zn,nr=A,rr=g.f,or=function(e){return function(t){for(var n,r=nr(t),o=tr(r),i=o.length,a=0,l=[];i>a;)n=o[a++],er&&!rr.call(r,n)||l.push(e?[n,r[n]]:r[n]);return l}},ir=[or(!0),or(!1)][0];Vn({target:"Object",stat:!0},{entries:function(e){return ir(e)}});var ar={};ar[_e("toStringTag")]="z";var lr,cr="[object z]"===String(ar),ur=I,fr=w,sr=_e("toStringTag"),dr="Arguments"==fr(function(){return arguments}()),pr=cr?fr:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),sr))?n:dr?fr(t):"Object"==(r=fr(t))&&ur(t.callee)?"Arguments":r},hr=pr,vr=function(e){if("Symbol"===hr(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)},gr=F,yr=w,mr=_e("match"),br=function(e){var t;return gr(e)&&(void 0!==(t=e[mr])?!!t:"RegExp"==yr(e))},xr=br,Sr=_e("match"),wr=Vn,Er=p.f,Or=fn,jr=vr,Tr=function(e){if(xr(e))throw TypeError("The method doesn't accept regular expressions");return e},Cr=T,_r="".endsWith,Ar=Math.min,Ir=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[Sr]=!1,"/./"[e](t)}catch(e){}}return!1}("endsWith");wr({target:"String",proto:!0,forced:!(!Ir&&(lr=Er(String.prototype,"endsWith"),lr&&!lr.writable)||Ir)},{endsWith:function(e){var t=jr(Cr(this));Tr(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:Ar(Or(n),r),i=jr(e);return _r?_r.call(t,i,o):t.slice(o-i.length,o)===i}});var Nr,Fr=Qe,Rr={},Pr=h,Lr=d.RegExp,Mr=(Rr.UNSUPPORTED_Y=Pr((function(){var e=Lr("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Rr.BROKEN_CARET=Pr((function(){var e=Lr("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),Ve),kr=Qe,Wr=Zn,$r=v?Object.defineProperties:function(e,t){kr(e);for(var n,r=Wr(t),o=r.length,i=0;o>i;)Mr.f(e,n=r[i++],t[n]);return e},zr=M("document","documentElement"),Dr=Qe,Br=$r,Hr=wn,Ur=Et,Yr=zr,qr=$e,Xr=wt("IE_PROTO"),Gr=function(){},Kr=function(e){return"<script>"+e+"<\/script>"},Vr=function(e){e.write(Kr("")),e.close();var t=e.parentWindow.Object;return e=null,t},Jr=function(){try{Nr=new ActiveXObject("htmlfile")}catch(e){}var e,t;Jr="undefined"!=typeof document?document.domain&&Nr?Vr(Nr):((t=qr("iframe")).style.display="none",Yr.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Kr("document.F=Object")),e.close(),e.F):Vr(Nr);for(var n=Hr.length;n--;)delete Jr.prototype[Hr[n]];return Jr()};Ur[Xr]=!0;var Qr,Zr,eo=Object.create||function(e,t){var n;return null!==e?(Gr.prototype=Dr(e),n=new Gr,Gr.prototype=null,n[Xr]=e):n=Jr(),void 0===t?n:Br(n,t)},to=h,no=d.RegExp,ro=to((function(){var e=no(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),oo=h,io=d.RegExp,ao=oo((function(){var e=io("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),lo=vr,co=function(){var e=Fr(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},uo=Rr,fo=ie.exports,so=eo,po=kt.get,ho=ro,vo=ao,go=RegExp.prototype.exec,yo=fo("native-string-replace",String.prototype.replace),mo=go,bo=(Qr=/a/,Zr=/b*/g,go.call(Qr,"a"),go.call(Zr,"a"),0!==Qr.lastIndex||0!==Zr.lastIndex),xo=uo.UNSUPPORTED_Y||uo.BROKEN_CARET,So=void 0!==/()??/.exec("")[1];(bo||So||xo||ho||vo)&&(mo=function(e){var t,n,r,o,i,a,l,c=this,u=po(c),f=lo(e),s=u.raw;if(s)return s.lastIndex=c.lastIndex,t=mo.call(s,f),c.lastIndex=s.lastIndex,t;var d=u.groups,p=xo&&c.sticky,h=co.call(c),v=c.source,g=0,y=f;if(p&&(-1===(h=h.replace("y","")).indexOf("g")&&(h+="g"),y=f.slice(c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==f.charAt(c.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),So&&(n=new RegExp("^"+v+"$(?!\\s)",h)),bo&&(r=c.lastIndex),o=go.call(p?n:c,y),p?o?(o.input=o.input.slice(g),o[0]=o[0].slice(g),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:bo&&o&&(c.lastIndex=c.global?o.index+o[0].length:r),So&&o&&o.length>1&&yo.call(o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=so(null),i=0;i<d.length;i++)a[(l=d[i])[0]]=o[l[1]];return o});var wo=mo;Vn({target:"RegExp",proto:!0,forced:/./.exec!==wo},{exec:wo});var Eo=lt.exports,Oo=wo,jo=h,To=_e,Co=at,_o=To("species"),Ao=RegExp.prototype,Io=function(e,t,n,r){var o=To(e),i=!jo((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!jo((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[_o]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var l=/./[o],c=t(o,""[e],(function(e,t,n,r,o){var a=t.exec;return a===Oo||a===Ao.exec?i&&!o?{done:!0,value:l.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}));Eo(String.prototype,e,c[0]),Eo(Ao,o,c[1])}r&&Co(Ao[o],"sham",!0)},No=h,Fo=I,Ro=pr,Po=ht,Lo=[],Mo=M("Reflect","construct"),ko=/^\s*(?:class|function)\b/,Wo=ko.exec,$o=!ko.exec((function(){})),zo=function(e){if(!Fo(e))return!1;try{return Mo(Object,Lo,e),!0}catch(e){return!1}},Do=!Mo||No((function(){var e;return zo(zo.call)||!zo(Object)||!zo((function(){e=!0}))||e}))?function(e){if(!Fo(e))return!1;switch(Ro(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return $o||!!Wo.call(ko,Po(e))}:zo,Bo=Do,Ho=J,Uo=Qe,Yo=_e("species"),qo=rn,Xo=vr,Go=T,Ko=function(e){return function(t,n){var r,o,i=Xo(Go(t)),a=qo(n),l=i.length;return a<0||a>=l?e?"":void 0:(r=i.charCodeAt(a))<55296||r>56319||a+1===l||(o=i.charCodeAt(a+1))<56320||o>57343?e?i.charAt(a):r:e?i.slice(a,a+2):o-56320+(r-55296<<10)+65536}},Vo=(Ko(!1),Ko(!0)),Jo=function(e,t,n){return t+(n?Vo(e,t).length:1)},Qo=Qe,Zo=I,ei=w,ti=wo,ni=function(e,t){var n=e.exec;if(Zo(n)){var r=n.call(e,t);return null!==r&&Qo(r),r}if("RegExp"===ei(e))return ti.call(e,t);throw TypeError("RegExp#exec called on incompatible receiver")},ri=Io,oi=br,ii=Qe,ai=T,li=function(e,t){var n,r=Uo(e).constructor;return void 0===r||null==(n=Uo(r)[Yo])?t:function(e){if(Bo(e))return e;throw TypeError(Ho(e)+" is not a constructor")}(n)},ci=Jo,ui=fn,fi=vr,si=ne,di=ni,pi=wo,hi=h,vi=Rr.UNSUPPORTED_Y,gi=[].push,yi=Math.min;ri("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=fi(ai(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!oi(e))return t.call(r,e,o);for(var i,a,l,c=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,s=new RegExp(e.source,u+"g");(i=pi.call(s,r))&&!((a=s.lastIndex)>f&&(c.push(r.slice(f,i.index)),i.length>1&&i.index<r.length&&gi.apply(c,i.slice(1)),l=i[0].length,f=a,c.length>=o));)s.lastIndex===i.index&&s.lastIndex++;return f===r.length?!l&&s.test("")||c.push(""):c.push(r.slice(f)),c.length>o?c.slice(0,o):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=ai(this),i=null==t?void 0:si(t,e);return i?i.call(t,o,n):r.call(fi(o),t,n)},function(e,o){var i=ii(this),a=fi(e),l=n(r,i,a,o,r!==t);if(l.done)return l.value;var c=li(i,RegExp),u=i.unicode,f=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(vi?"g":"y"),s=new c(vi?"^(?:"+i.source+")":i,f),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===di(s,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){s.lastIndex=vi?0:h;var g,y=di(s,vi?a.slice(h):a);if(null===y||(g=yi(ui(s.lastIndex+(vi?h:0)),a.length))===p)h=ci(a,h,u);else{if(v.push(a.slice(p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(v.push(y[m]),v.length===d)return v;h=p=g}}return v.push(a.slice(p)),v}]}),!!hi((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),vi);var mi=ee,bi=w,xi=Array.isArray||function(e){return"Array"==bi(e)},Si=Do,wi=F,Ei=_e("species"),Oi=j,ji=de,Ti=dn,Ci=function(e,t){return new(function(e){var t;return xi(e)&&(t=e.constructor,(Si(t)&&(t===Array||xi(t.prototype))||wi(t)&&null===(t=t[Ei]))&&(t=void 0)),void 0===t?Array:t}(e))(0===t?0:t)},_i=[].push,Ai=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,l=5==e||i;return function(c,u,f,s){for(var d,p,h=ji(c),v=Oi(h),g=function(e,t,n){if(mi(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}(u,f,3),y=Ti(v),m=0,b=s||Ci,x=t?b(c,y):n||a?b(c,0):void 0;y>m;m++)if((l||m in v)&&(p=g(d=v[m],m,h),e))if(t)x[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:_i.call(x,d)}else switch(e){case 4:return!1;case 7:_i.call(x,d)}return i?-1:r||o?o:x}},Ii={forEach:Ai(0),map:Ai(1),filter:Ai(2),some:Ai(3),every:Ai(4),find:Ai(5),findIndex:Ai(6),filterReject:Ai(7)},Ni=h,Fi=H,Ri=_e("species"),Pi=function(e){return Fi>=51||!Ni((function(){var t=[];return(t.constructor={})[Ri]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Li=Ii.map;Vn({target:"Array",proto:!0,forced:!Pi("map")},{map:function(e){return Li(this,e,arguments.length>1?arguments[1]:void 0)}});var Mi=Ii.filter;Vn({target:"Array",proto:!0,forced:!Pi("filter")},{filter:function(e){return Mi(this,e,arguments.length>1?arguments[1]:void 0)}});var ki=Qe,Wi=fn,$i=vr,zi=T,Di=ne,Bi=Jo,Hi=ni;Io("match",(function(e,t,n){return[function(t){var n=zi(this),r=null==t?void 0:Di(t,e);return r?r.call(t,n):new RegExp(t)[e]($i(n))},function(e){var r=ki(this),o=$i(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return Hi(r,o);var a=r.unicode;r.lastIndex=0;for(var l,c=[],u=0;null!==(l=Hi(r,o));){var f=$i(l[0]);c[u]=f,""===f&&(r.lastIndex=Bi(o,Wi(r.lastIndex),a)),u++}return 0===u?null:c}]}));var Ui,Yi=T,qi=vr,Xi="[\t\n\v\f\r                 \u2028\u2029\ufeff]",Gi=RegExp("^"+Xi+Xi+"*"),Ki=RegExp(Xi+Xi+"*$"),Vi=function(e){return function(t){var n=qi(Yi(t));return 1&e&&(n=n.replace(Gi,"")),2&e&&(n=n.replace(Ki,"")),n}},Ji={start:Vi(1),end:Vi(2),trim:Vi(3)},Qi=Ht.PROPER,Zi=Ji.trim;Vn({target:"String",proto:!0,forced:(Ui="trim",h((function(){return!!"\t\n\v\f\r                 \u2028\u2029\ufeff".trim()||"​…᠎"!=="​…᠎".trim()||Qi&&"\t\n\v\f\r                 \u2028\u2029\ufeff".trim.name!==Ui})))},{trim:function(){return Zi(this)}});var ea=function(e,t){for(var n=0,r=Object.entries(t);n<r.length;n++){var i=o(r[n],2),a=i[0],l=i[1];e.style[a]=null==l?"":String(l)}},ta=function(e,t,n,r,o){return function(){var i,a,l,c,u=arguments.length<=0?void 0:arguments[0];if(e?(i=arguments.length<=1?void 0:arguments[1],a=!!(arguments.length<=2?void 0:arguments[2]),l=!!(arguments.length<=3?void 0:arguments[3]),c=!!(arguments.length<=4?void 0:arguments[4])):(a=!!(arguments.length<=1?void 0:arguments[1]),l=!!(arguments.length<=2?void 0:arguments[2]),c=!!(arguments.length<=3?void 0:arguments[3])),u===window)return u.document.documentElement["client".concat(n)];if(9===u.nodeType){var f=u.documentElement,s=u.body;return Math.max(s["scroll".concat(n)],f["scroll".concat(n)],s["offset".concat(n)],f["offset".concat(n)],f["client".concat(n)])}var d,p,h=!1,v=!1;if(!e&&"getBoundingClientRect"in u&&(d=u.getBoundingClientRect()[t],h=!0,v=!0),(void 0===d||c||h!==a||v!==l)&&(p=e?getComputedStyle(u,i):getComputedStyle(u)),void 0===d){var g=p[t];"auto"===g?(d=u["client".concat(n)],h=!0):d=parseFloat(g),"border-box"===p.boxSizing&&(h=!0,v=!0)}if(a!==h){var y=parseFloat(p["padding-".concat(r)]||0)+parseFloat(p["padding-".concat(o)]||0);a?d+=y:d-=y}if(l!==v){var m=parseFloat(p["border-".concat(r,"-width")]||0)+parseFloat(p["border-".concat(o,"-width")]||0);l?d+=m:d-=m}if(d<0&&(d=0),c){var b=parseFloat(p["margin-".concat(r)]||0)+parseFloat(p["margin-".concat(o)]||0);d+=b}return d}},na=function(e,t,n,r){return function(t,o){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(t!==window&&9!==t.nodeType){var c=getComputedStyle(t),u=!1;if("border-box"===c.boxSizing&&(u=!0),i=!!i,a=!!a,(l=!!l)&&(o-=(parseFloat(c["margin-".concat(n)])||0)+(parseFloat(c["margin-".concat(r)])||0)),i!==u){var f=parseFloat(c["padding-".concat(n)]||0)+parseFloat(c["padding-".concat(r)]||0);i?o-=f:o+=f}if(a!==u){var s=(parseFloat(c["border-".concat(n,"-width")])||0)+(parseFloat(c["border-".concat(r,"-width")])||0);a?o-=s:o+=s}o<0&&(o=0),t.style[e]=o+"px"}}},ra=ta(!1,"width","Width","left","right"),oa=ta(!1,"height","Height","top","bottom"),ia=ta(!0,"width","Width","left","right"),aa=ta(!0,"height","Height","top","bottom"),la=na("width",0,"left","right"),ca=na("height",0,"top","bottom"),ua=function(e){if(e){var t=e.endsWith("ms");return parseFloat(e)*(t?1:1e3)}},fa=function(e){return/^-?(0?\.)?\d+m?s$/.test(e)},sa=function(e){var t=e.split(/\s+/),n=t[0],r=t[1],o=t[2],i=t[3];return fa(o)?{delay:ua(o),duration:ua(r),name:n}:{delay:ua(i),duration:ua(r),name:n,timingFunction:o}},da=Object.freeze({__proto__:null,getCssProps:function(e,t){var n,r=getComputedStyle(e),o={},i=l(t);try{for(i.s();!(n=i.n()).done;){var a=n.value,c=r[a];("width"===a||"height"===a)&&"auto"===c&&e instanceof HTMLElement&&(c=e["offset"+a.substr(0,1).toUpperCase()+a.substr(1)],"border-box"!==r.boxSizing&&("width"===a?(c-=parseFloat(r.paddingLeft||0),c-=parseFloat(r.paddingRight||0),c-=parseFloat(r.borderLeftWidth||0),c-=parseFloat(r.borderRightWidth||0)):(c-=parseFloat(r.paddingTop||0),c-=parseFloat(r.paddingBottom||0),c-=parseFloat(r.borderTopWidth||0),c-=parseFloat(r.borderBottomWidth||0)),c<0&&(c=0)),c+="px"),o[a]=c}}catch(e){i.e(e)}finally{i.f()}return o},setCssProps:ea,getElementWidth:ra,getElementHeight:oa,setElementWidth:la,setElementHeight:ca,getPseudoElementWidth:ia,getPseudoElementHeight:aa,getElementOffset:function(e){if(!e.getClientRects().length)return{top:0,left:0};var t=e.getBoundingClientRect(),n=e.ownerDocument.defaultView;return{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}},anchoredPosition:function(e,t,n,r,o){var i,a,l,c;if(r||(r={width:ra(e,!0,!0),height:ra(e,!0,!0)}),"start"!==t&&"end"!==t||(null==o&&(o="rtl"===getComputedStyle(e).direction),t="start"===t?o?"right":"left":o?"left":"right"),"right"===t)i=r.width,l=0;else if("center"===t)l=i=r.width/2;else if("left"===t)i=0,l=r.width;else if(t&&"string"==typeof t&&"%"===t.charAt(t.length-1)){var u=(parseFloat(t)||0)/100;i=r.width*u,l=r.width*-u,null==o&&(o="rtl"===getComputedStyle(e).direction),o&&(i=r.width-i,l=r.width-i)}else l=-(i=parseFloat(t)||0);if("bottom"===n)a=r.height,c=0;else if("center"===n)c=a=r.height/2;else if("top"===n)a=0,c=r.height;else if(n&&"string"==typeof n&&"%"===n.charAt(n.length-1)){var f=(parseFloat(n)||0)/100;a=r.height*f,c=r.height*-f}else c=-(a=parseFloat(n)||0);return{left:i,top:a,right:l,bottom:c,xSpec:t,ySpec:n}},parseTransition:function(e){return e.match(/([^,()]|\([^)]*\))+/g).map((function(e){return e.trim()})).filter((function(e){return e.length>0})).map(sa)},parseSingleTransition:sa,isTimeString:fa,timeToMs:ua}),pa=function(e,t){for(var n=0,r=Object.entries(t);n<r.length;n++){var i=o(r[n],2),a=i[0],l=i[1];null!=l&&("innerHTML"===a?e.innerHTML=String(l):"css"===a&&"style"in e?ea(e,l):"readOnly"===a||"tabIndex"===a||"textContent"===a?e[a]=l:e.setAttribute(a,String(l)))}},ha=Object.freeze({__proto__:null,createElement:function(t,n,r){var o=document.createElement(t);if(n&&"object"===e(n)&&pa(o,n),r)if(r instanceof Node)o.appendChild(r);else if(Array.isArray(r)){var i,a=l(r);try{for(a.s();!(i=a.n()).done;){var c=i.value;o.appendChild(c)}}catch(e){a.e(e)}finally{a.f()}}return o},setElementAttrs:pa,closestUntil:function(e,t,n){if("closest"in e&&!n)return e.closest(t);var r=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(r.call(e,t))return e;if(n&&e===n)return null;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null},prev:function(e,t){if(!e)return null;var n=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(n.call(e,t))return e;e=e.previousElementSibling||e.previousSibling}while(null!==e&&1===e.nodeType);return null},next:function(e,t){if(!e)return null;var n=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(n.call(e,t))return e;e=e.nextElementSibling||e.nextSibling}while(null!==e&&1===e.nodeType);return null}}),va=de,ga=Math.floor,ya="".replace,ma=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ba=/\$([$&'`]|\d{1,2})/g,xa=Io,Sa=h,wa=Qe,Ea=I,Oa=rn,ja=fn,Ta=vr,Ca=T,_a=Jo,Aa=ne,Ia=function(e,t,n,r,o,i){var a=n+e.length,l=r.length,c=ba;return void 0!==o&&(o=va(o),c=ma),ya.call(i,c,(function(i,c){var u;switch(c.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(a);case"<":u=o[c.slice(1,-1)];break;default:var f=+c;if(0===f)return i;if(f>l){var s=ga(f/10);return 0===s?i:s<=l?void 0===r[s-1]?c.charAt(1):r[s-1]+c.charAt(1):i}u=r[f-1]}return void 0===u?"":u}))},Na=ni,Fa=_e("replace"),Ra=Math.max,Pa=Math.min,La="$0"==="a".replace(/./,"$0"),Ma=!!/./[Fa]&&""===/./[Fa]("a","$0");xa("replace",(function(e,t,n){var r=Ma?"$":"$0";return[function(e,n){var r=Ca(this),o=null==e?void 0:Aa(e,Fa);return o?o.call(e,r,n):t.call(Ta(r),e,n)},function(e,o){var i=wa(this),a=Ta(e);if("string"==typeof o&&-1===o.indexOf(r)&&-1===o.indexOf("$<")){var l=n(t,i,a,o);if(l.done)return l.value}var c=Ea(o);c||(o=Ta(o));var u=i.global;if(u){var f=i.unicode;i.lastIndex=0}for(var s=[];;){var d=Na(i,a);if(null===d)break;if(s.push(d),!u)break;""===Ta(d[0])&&(i.lastIndex=_a(a,ja(i.lastIndex),f))}for(var p,h="",v=0,g=0;g<s.length;g++){d=s[g];for(var y=Ta(d[0]),m=Ra(Pa(Oa(d.index),a.length),0),b=[],x=1;x<d.length;x++)b.push(void 0===(p=d[x])?p:String(p));var S=d.groups;if(c){var w=[y].concat(b,m,a);void 0!==S&&w.push(S);var E=Ta(o.apply(void 0,w))}else E=Ia(y,a,m,b,S,o);m>=v&&(h+=a.slice(v,m)+E,v=m+y.length)}return h+a.slice(v)}]}),!!Sa((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!La||Ma);var ka=null,Wa=function(){try{document.createElement("div").querySelector(":scope > div"),ka=!0}catch(e){ka=!1}},$a=Object.freeze({__proto__:null,getRootNode:function(e){if(!e)return null;if("getRootNode"in e)return e.getRootNode();for(;e.parentNode;)e=e.parentNode;return e},closest:function(e,t){if("closest"in e)return e.closest(t);var n=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(n.call(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null},remove:function(e){e&&("remove"in e&&e.remove(),e.parentNode&&e.parentNode.removeChild(e))},before:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(0!==n.length)if("before"in e)e.before.apply(e,n);else if(1===n.length){var o=n[0],i=o instanceof Node;o=i?o:document.createTextNode(String(o)),e.parentNode.insertBefore(o,e)}else{var a,c=document.createDocumentFragment(),u=l(n);try{for(u.s();!(a=u.n()).done;){var f=a.value,s=f instanceof Node;c.appendChild(s?f:document.createTextNode(String(f)))}}catch(e){u.e(e)}finally{u.f()}e.parentNode.insertBefore(c,e)}},after:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(0!==n.length)if("after"in e)e.after.apply(e,n);else if(1===n.length){var o=n[0],i=o instanceof Node;o=i?o:document.createTextNode(String(o)),e.nextSibling?e.parentNode.insertBefore(o,e.nextSibling):e.parentNode.appendChild(o)}else{var a,c=document.createDocumentFragment(),u=l(n);try{for(u.s();!(a=u.n()).done;){var f=a.value,s=f instanceof Node;c.appendChild(s?f:document.createTextNode(String(f)))}}catch(e){u.e(e)}finally{u.f()}e.nextSibling?e.parentNode.insertBefore(c,e.nextSibling):e.parentNode.appendChild(c)}},prepend:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(0!==n.length)if("prepend"in e)e.prepend.apply(e,n);else if(1===n.length){var o=n[0],i=o instanceof Node;o=i?o:document.createTextNode(String(o)),e.firstChild?e.insertBefore(o,e.firstChild):e.appendChild(o)}else{var a,c=document.createDocumentFragment(),u=l(n);try{for(u.s();!(a=u.n()).done;){var f=a.value,s=f instanceof Node;c.appendChild(s?f:document.createTextNode(String(f)))}}catch(e){u.e(e)}finally{u.f()}e.firstChild?e.insertBefore(c,e.firstChild):e.appendChild(c)}},append:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(0!==n.length)if("append"in e)e.append.apply(e,n);else if(1===n.length){var o=n[0],i=o instanceof Node;o=i?o:document.createTextNode(String(o)),e.appendChild(o)}else{var a,c=document.createDocumentFragment(),u=l(n);try{for(u.s();!(a=u.n()).done;){var f=a.value,s=f instanceof Node;c.appendChild(s?f:document.createTextNode(String(f)))}}catch(e){u.e(e)}finally{u.f()}e.appendChild(c)}},scopedSelector:function(e,t){if(null===ka&&Wa(),!0===ka)return e.querySelector(t.replace(/((?:^|,)\s*)/g,"$1:scope "));var n=e.id,r="ID_"+Date.now();e.id=r,t=t.replace(/((?:^|,)\s*)/g,"$1#"+r);try{return e.querySelector(t)}finally{this.id=n}},scopedSelectorAll:function(e,t){if(null===ka&&Wa(),!0===ka)return e.querySelectorAll(t.replace(/((?:^|,)\s*)/g,"$1:scope "));var n=e.id,r="ID_"+Date.now();e.id=r,t=t.replace(/((?:^|,)\s*)/g,"$1#"+r);try{return e.querySelectorAll(t)}finally{this.id=n}},toggleClass:function(e,t,n){var r=e.classList;return void 0===n?r.contains(t)?(r.remove(t),!1):(r.add(t),!0):n?(r.add(t),!0):(r.remove(t),!1)}}),za=v,Da=Ht.EXISTS,Ba=Ve.f,Ha=Function.prototype,Ua=Ha.toString,Ya=/^\s*function ([^ (]*)/;za&&!Da&&Ba(Ha,"name",{configurable:!0,get:function(){try{return Ua.call(this).match(Ya)[1]}catch(e){return""}}});var qa=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._events=[]}var n,o;return n=t,(o=[{key:"add",value:function(t,n,r,o){var i=n.split("."),a=i[0],l=i[1];t.addEventListener(a,r,o||!1);var c=!0===o||"object"===e(o)&&!0===o.capture;return this._events.push({el:t,name:a,namespace:l,handler:r,useCapture:c}),this}},{key:"remove",value:function(t,n,r,o){var i=n?n.split("."):"",a=i[0],c=i[1],u=!0===o||"object"===e(o)&&!0===o.capture,f=[],s=[];if(t||a||c||r||void 0!==o){var d,p=l(this._events);try{for(p.s();!(d=p.n()).done;){var h=d.value;t&&h.el!==t||a&&h.name!==a||c&&h.namespace!==c||r&&h.handler!==r||void 0!==o&&h.useCapture!==u?f.push(h):s.push(h)}}catch(e){p.e(e)}finally{p.f()}}else s=this._events;this._events=f;var v,g=l(s);try{for(g.s();!(v=g.n()).done;){var y=v.value;y.el.removeEventListener(y.name,y.handler,y.useCapture)}}catch(e){g.e(e)}finally{g.f()}return this}}])&&r(n.prototype,o),t}(),Xa=Object.freeze({__proto__:null,default:qa}),Ga=Vn,Ka=Math.hypot,Va=Math.abs,Ja=Math.sqrt;Ga({target:"Math",stat:!0,forced:!!Ka&&Ka(1/0,NaN)!==1/0},{hypot:function(e,t){for(var n,r,o=0,i=0,a=arguments.length,l=0;i<a;)l<(n=Va(arguments[i++]))?(o=o*(r=l/n)*r+1,l=n):o+=n>0?(r=n/l)*r:n;return l===1/0?1/0:l*Ja(o)}});var Qa,Za=Object.freeze({__proto__:null,bindTouchTap:function(e,t){var n=null,r=null,o=function(t){if(null===n){var o=t.changedTouches[0];n=o.identifier,r=o?{x:o.pageX,y:o.pageY}:{x:t.pageX,y:t.pageY},e.addEventListener("touchend",i),e.addEventListener("touchcancel",a)}},i=function(e){if(null!==n){var o=null;if(e.changedTouches){if(null!=n){var i,a=l(e.changedTouches);try{for(a.s();!(i=a.n()).done;){var c=i.value;if(c.identifier===n){o=c;break}}}catch(e){a.e(e)}finally{a.f()}}o||(o=e.changedTouches[0])}var u=o?{x:o.pageX,y:o.pageY}:{x:e.pageX,y:e.pageY},f=r;if(n=null,r=null,null!==t.distance){var s=t.distance||1;if(Math.hypot(Math.abs(u.x-f.x),Math.abs(u.y-f.y))>=s)return!1}t.handler&&t.handler(e)}},a=function t(){n=null,r=null,e.removeEventListener("touchend",i),e.removeEventListener("touchcancel",t)};return e.addEventListener("touchstart",o),{unbind:function(){e.removeEventListener("touchstart",o),e.removeEventListener("touchend",i),e.removeEventListener("touchcancel",a)}}}}),el=v,tl=h,nl=Zn,rl=jn,ol=g,il=de,al=j,ll=Object.assign,cl=Object.defineProperty,ul=!ll||tl((function(){if(el&&1!==ll({b:1},ll(cl({},"a",{enumerable:!0,get:function(){cl(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=ll({},e)[n]||nl(ll({},t)).join("")!=r}))?function(e,t){for(var n=il(e),r=arguments.length,o=1,i=rl.f,a=ol.f;r>o;)for(var l,c=al(arguments[o++]),u=i?nl(c).concat(i(c)):nl(c),f=u.length,s=0;f>s;)l=u[s++],el&&!a.call(c,l)||(n[l]=c[l]);return n}:ll;Vn({target:"Object",stat:!0,forced:Object.assign!==ul},{assign:ul});var fl=function(){var e=document.createElement("div");e.dir="rtl",Object.assign(e.style,{direction:"rtl",fontSize:"14px",width:"1px",height:"1px",position:"absolute",top:"-1000px",overflow:"scroll"}),e.textContent="A",document.body.appendChild(e);var t="reverse";return e.scrollLeft>0?t="default":(e.scrollLeft=1,0===e.scrollLeft&&(t="negative")),e.parentNode.removeChild(e),t};function sl(e,t,n){if(void 0===n&&(n="rtl"===getComputedStyle(e).direction),!0===n&&void 0===Qa&&(Qa=fl()),!n)return t;switch(Qa){case"negative":return t-e.scrollWidth+e.clientWidth;case"reverse":return e.scrollWidth-t-e.clientWidth;default:return t}}function dl(e,t){if(void 0===t&&(t="rtl"===getComputedStyle(e).direction),!0===t&&void 0===Qa&&(Qa=fl()),!t)return e.scrollLeft;switch(Qa){case"negative":return e.scrollLeft+e.scrollWidth-e.clientWidth;case"reverse":return e.scrollWidth-e.scrollLeft-e.clientWidth;default:return e.scrollLeft}}function pl(e,t,n){return void 0===n&&(n="rtl"===getComputedStyle(e).direction),sl(e,n?e.scrollWidth-e.clientWidth-t:t,n)}var hl=Object.freeze({__proto__:null,calculateNativeScrollLeftForLeft:sl,getScrollLeft:dl,setScrollLeft:function(e,t,n){e.scrollLeft=sl(e,t,n)},calculateNativeScrollLeftForHorz:pl,getScrollHorz:function(e,t){return void 0===t&&(t="rtl"===getComputedStyle(e).direction),t?e.scrollWidth-e.clientWidth-dl(e,t):dl(e,t)},setScrollHorz:function(e,t,n){e.scrollLeft=pl(e,t,n)}});exports.Css=da,exports.Dom=ha,exports.DomCompat=$a,exports.DomEventsSink=Xa,exports.ScrollHelper=hl,exports.Touches=Za;
"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e){this.wrapped=e}function n(e){var n,r;function o(n,r){try{var a=e[n](r),l=a.value,c=l instanceof t;Promise.resolve(c?l.wrapped:l).then((function(e){c?o("return"===n?"return":"next",e):i(a.done?"return":"normal",e)}),(function(e){o("throw",e)}))}catch(e){i("throw",e)}}function i(e,t){switch(e){case"return":n.resolve({value:t,done:!0});break;case"throw":n.reject(t);break;default:n.resolve({value:t,done:!1})}(n=n.next)?o(n.key,n.arg):r=null}this._invoke=function(e,t){return new Promise((function(i,a){var l={key:e,arg:t,resolve:i,reject:a,next:null};r?r=r.next=l:(n=r=l,o(e,t))}))},"function"!=typeof e.return&&(this.return=void 0)}function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=i(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},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 a,l=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,a=e},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw a}}}}Object.defineProperty(exports,"__esModule",{value:!0}),n.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},n.prototype.next=function(e){return this._invoke("next",e)},n.prototype.throw=function(e){return this._invoke("throw",e)},n.prototype.return=function(e){return this._invoke("return",e)};var c,u,f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s=function(e){return e&&e.Math==Math&&e},d=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof f&&f)||function(){return this}()||Function("return this")(),p={},h=function(e){try{return!!e()}catch(e){return!0}},v=!h((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),g={},y={}.propertyIsEnumerable,m=Object.getOwnPropertyDescriptor,b=m&&!y.call({1:2},1),x=(g.f=b?function(e){var t=m(this,e);return!!t&&t.enumerable}:y,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),S={}.toString,w=function(e){return S.call(e).slice(8,-1)},E=w,O="".split,j=h((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==E(e)?O.call(e,""):Object(e)}:Object,C=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},T=j,_=C,A=function(e){return T(_(e))},N=function(e){return"function"==typeof e},I=N,F=function(e){return"object"==typeof e?null!==e:I(e)},R=d,P=N,L=function(e){return P(e)?e:void 0},M=function(e,t){return arguments.length<2?L(R[e]):R[e]&&R[e][t]},k=d,W=M("navigator","userAgent")||"",$=k.process,z=k.Deno,D=$&&$.versions||z&&z.version,B=D&&D.v8;B?u=(c=B.split("."))[0]<4?1:c[0]+c[1]:W&&(!(c=W.match(/Edge\/(\d+)/))||c[1]>=74)&&(c=W.match(/Chrome\/(\d+)/))&&(u=c[1]);var H=u&&+u,U=H,Y=h,q=!!Object.getOwnPropertySymbols&&!Y((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&U&&U<41})),X=q&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,G=N,K=M,V=X?function(e){return"symbol"==typeof e}:function(e){var t=K("Symbol");return G(t)&&Object(e)instanceof t},J=function(e){try{return String(e)}catch(e){return"Object"}},Q=N,Z=J,ee=function(e){if(Q(e))return e;throw TypeError(Z(e)+" is not a function")},te=ee,ne=function(e,t){var n=e[t];return null==n?void 0:te(n)},re=N,oe=F,ie={exports:{}},ae=d,le=function(e,t){try{Object.defineProperty(ae,e,{value:t,configurable:!0,writable:!0})}catch(n){ae[e]=t}return t},ce=le,ue=d["__core-js_shared__"]||ce("__core-js_shared__",{}),fe=ue;(ie.exports=function(e,t){return fe[e]||(fe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.18.2",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"}),ie.exports;var se=C,de=function(e){return Object(se(e))},pe=de,he={}.hasOwnProperty,ve=Object.hasOwn||function(e,t){return he.call(pe(e),t)},ge=0,ye=Math.random(),me=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++ge+ye).toString(36)},be=d,xe=ie.exports,Se=ve,we=me,Ee=q,Oe=X,je=xe("wks"),Ce=be.Symbol,Te=Oe?Ce:Ce&&Ce.withoutSetter||we,_e=function(e){return Se(je,e)&&(Ee||"string"==typeof je[e])||(Ee&&Se(Ce,e)?je[e]=Ce[e]:je[e]=Te("Symbol."+e)),je[e]},Ae=F,Ne=V,Ie=ne,Fe=_e("toPrimitive"),Re=function(e,t){if(!Ae(e)||Ne(e))return e;var n,r=Ie(e,Fe);if(r){if(void 0===t&&(t="default"),n=r.call(e,t),!Ae(n)||Ne(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&re(n=e.toString)&&!oe(r=n.call(e)))return r;if(re(n=e.valueOf)&&!oe(r=n.call(e)))return r;if("string"!==t&&re(n=e.toString)&&!oe(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}(e,t)},Pe=V,Le=function(e){var t=Re(e,"string");return Pe(t)?t:String(t)},Me=F,ke=d.document,We=Me(ke)&&Me(ke.createElement),$e=function(e){return We?ke.createElement(e):{}},ze=$e,De=!v&&!h((function(){return 7!=Object.defineProperty(ze("div"),"a",{get:function(){return 7}}).a})),Be=v,He=g,Ue=x,Ye=A,qe=Le,Xe=ve,Ge=De,Ke=Object.getOwnPropertyDescriptor,Ve=(p.f=Be?Ke:function(e,t){if(e=Ye(e),t=qe(t),Ge)try{return Ke(e,t)}catch(e){}if(Xe(e,t))return Ue(!He.f.call(e,t),e[t])},{}),Je=F,Qe=function(e){if(Je(e))return e;throw TypeError(String(e)+" is not an object")},Ze=v,et=De,tt=Qe,nt=Le,rt=Object.defineProperty,ot=(Ve.f=Ze?rt:function(e,t,n){if(tt(e),t=nt(t),tt(n),et)try{return rt(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Ve),it=x,at=v?function(e,t,n){return ot.f(e,t,it(1,n))}:function(e,t,n){return e[t]=n,e},lt={exports:{}},ct=N,ut=ue,ft=Function.toString;ct(ut.inspectSource)||(ut.inspectSource=function(e){return ft.call(e)});var st,dt,pt,ht=ut.inspectSource,vt=N,gt=ht,yt=d.WeakMap,mt=vt(yt)&&/native code/.test(gt(yt)),bt=ie.exports,xt=me,St=bt("keys"),wt=function(e){return St[e]||(St[e]=xt(e))},Et={},Ot=mt,jt=F,Ct=at,Tt=ve,_t=ue,At=wt,Nt=Et,It=d.WeakMap;if(Ot||_t.state){var Ft=_t.state||(_t.state=new It),Rt=Ft.get,Pt=Ft.has,Lt=Ft.set;st=function(e,t){if(Pt.call(Ft,e))throw new TypeError("Object already initialized");return t.facade=e,Lt.call(Ft,e,t),t},dt=function(e){return Rt.call(Ft,e)||{}},pt=function(e){return Pt.call(Ft,e)}}else{var Mt=At("state");Nt[Mt]=!0,st=function(e,t){if(Tt(e,Mt))throw new TypeError("Object already initialized");return t.facade=e,Ct(e,Mt,t),t},dt=function(e){return Tt(e,Mt)?e[Mt]:{}},pt=function(e){return Tt(e,Mt)}}var kt={set:st,get:dt,has:pt,enforce:function(e){return pt(e)?dt(e):st(e,{})},getterFor:function(e){return function(t){var n;if(!jt(t)||(n=dt(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},Wt=v,$t=ve,zt=Function.prototype,Dt=Wt&&Object.getOwnPropertyDescriptor,Bt=$t(zt,"name"),Ht={EXISTS:Bt,PROPER:Bt&&"something"===function(){}.name,CONFIGURABLE:Bt&&(!Wt||Wt&&Dt(zt,"name").configurable)},Ut=d,Yt=N,qt=ve,Xt=at,Gt=le,Kt=ht,Vt=Ht.CONFIGURABLE,Jt=kt.get,Qt=kt.enforce,Zt=String(String).split("String");(lt.exports=function(e,t,n,r){var o,i=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,l=!!r&&!!r.noTargetGet,c=r&&void 0!==r.name?r.name:t;Yt(n)&&("Symbol("===String(c).slice(0,7)&&(c="["+String(c).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!qt(n,"name")||Vt&&n.name!==c)&&Xt(n,"name",c),(o=Qt(n)).source||(o.source=Zt.join("string"==typeof c?c:""))),e!==Ut?(i?!l&&e[t]&&(a=!0):delete e[t],a?e[t]=n:Xt(e,t,n)):a?e[t]=n:Gt(t,n)})(Function.prototype,"toString",(function(){return Yt(this)&&Jt(this).source||Kt(this)})),lt.exports;var en={},tn=Math.ceil,nn=Math.floor,rn=function(e){var t=+e;return t!=t||0===t?0:(t>0?nn:tn)(t)},on=rn,an=Math.max,ln=Math.min,cn=rn,un=Math.min,fn=function(e){return e>0?un(cn(e),9007199254740991):0},sn=fn,dn=function(e){return sn(e.length)},pn=A,hn=dn,vn=function(e){return function(t,n,r){var o,i=pn(t),a=hn(i),l=function(e,t){var n=on(e);return n<0?an(n+t,0):ln(n,t)}(r,a);if(e&&n!=n){for(;a>l;)if((o=i[l++])!=o)return!0}else for(;a>l;l++)if((e||l in i)&&i[l]===n)return e||l||0;return!e&&-1}},gn={includes:vn(!0),indexOf:vn(!1)},yn=ve,mn=A,bn=gn.indexOf,xn=Et,Sn=function(e,t){var n,r=mn(e),o=0,i=[];for(n in r)!yn(xn,n)&&yn(r,n)&&i.push(n);for(;t.length>o;)yn(r,n=t[o++])&&(~bn(i,n)||i.push(n));return i},wn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],En=Sn,On=wn.concat("length","prototype"),jn=(en.f=Object.getOwnPropertyNames||function(e){return En(e,On)},{}),Cn=(jn.f=Object.getOwnPropertySymbols,en),Tn=jn,_n=Qe,An=M("Reflect","ownKeys")||function(e){var t=Cn.f(_n(e)),n=Tn.f;return n?t.concat(n(e)):t},Nn=ve,In=An,Fn=p,Rn=Ve,Pn=h,Ln=N,Mn=/#|\.prototype\./,kn=function(e,t){var n=$n[Wn(e)];return n==Dn||n!=zn&&(Ln(t)?Pn(t):!!t)},Wn=kn.normalize=function(e){return String(e).replace(Mn,".").toLowerCase()},$n=kn.data={},zn=kn.NATIVE="N",Dn=kn.POLYFILL="P",Bn=kn,Hn=d,Un=p.f,Yn=at,qn=lt.exports,Xn=le,Gn=function(e,t){for(var n=In(t),r=Rn.f,o=Fn.f,i=0;i<n.length;i++){var a=n[i];Nn(e,a)||r(e,a,o(t,a))}},Kn=Bn,Vn=function(e,t){var n,r,o,i,a,l=e.target,c=e.global,u=e.stat;if(n=c?Hn:u?Hn[l]||Xn(l,{}):(Hn[l]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Un(n,r))&&a.value:n[r],!Kn(c?r:l+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Gn(i,o)}(e.sham||o&&o.sham)&&Yn(i,"sham",!0),qn(n,r,i,e)}},Jn=Sn,Qn=wn,Zn=Object.keys||function(e){return Jn(e,Qn)},er=v,tr=Zn,nr=A,rr=g.f,or=function(e){return function(t){for(var n,r=nr(t),o=tr(r),i=o.length,a=0,l=[];i>a;)n=o[a++],er&&!rr.call(r,n)||l.push(e?[n,r[n]]:r[n]);return l}},ir=[or(!0),or(!1)][0];Vn({target:"Object",stat:!0},{entries:function(e){return ir(e)}});var ar={};ar[_e("toStringTag")]="z";var lr,cr="[object z]"===String(ar),ur=N,fr=w,sr=_e("toStringTag"),dr="Arguments"==fr(function(){return arguments}()),pr=cr?fr:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),sr))?n:dr?fr(t):"Object"==(r=fr(t))&&ur(t.callee)?"Arguments":r},hr=pr,vr=function(e){if("Symbol"===hr(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)},gr=F,yr=w,mr=_e("match"),br=function(e){var t;return gr(e)&&(void 0!==(t=e[mr])?!!t:"RegExp"==yr(e))},xr=br,Sr=_e("match"),wr=Vn,Er=p.f,Or=fn,jr=vr,Cr=function(e){if(xr(e))throw TypeError("The method doesn't accept regular expressions");return e},Tr=C,_r="".endsWith,Ar=Math.min,Nr=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[Sr]=!1,"/./"[e](t)}catch(e){}}return!1}("endsWith");wr({target:"String",proto:!0,forced:!(!Nr&&(lr=Er(String.prototype,"endsWith"),lr&&!lr.writable)||Nr)},{endsWith:function(e){var t=jr(Tr(this));Cr(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:Ar(Or(n),r),i=jr(e);return _r?_r.call(t,i,o):t.slice(o-i.length,o)===i}});var Ir,Fr=Qe,Rr={},Pr=h,Lr=d.RegExp,Mr=(Rr.UNSUPPORTED_Y=Pr((function(){var e=Lr("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Rr.BROKEN_CARET=Pr((function(){var e=Lr("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),Ve),kr=Qe,Wr=Zn,$r=v?Object.defineProperties:function(e,t){kr(e);for(var n,r=Wr(t),o=r.length,i=0;o>i;)Mr.f(e,n=r[i++],t[n]);return e},zr=M("document","documentElement"),Dr=Qe,Br=$r,Hr=wn,Ur=Et,Yr=zr,qr=$e,Xr=wt("IE_PROTO"),Gr=function(){},Kr=function(e){return"<script>"+e+"<\/script>"},Vr=function(e){e.write(Kr("")),e.close();var t=e.parentWindow.Object;return e=null,t},Jr=function(){try{Ir=new ActiveXObject("htmlfile")}catch(e){}var e,t;Jr="undefined"!=typeof document?document.domain&&Ir?Vr(Ir):((t=qr("iframe")).style.display="none",Yr.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Kr("document.F=Object")),e.close(),e.F):Vr(Ir);for(var n=Hr.length;n--;)delete Jr.prototype[Hr[n]];return Jr()};Ur[Xr]=!0;var Qr,Zr,eo=Object.create||function(e,t){var n;return null!==e?(Gr.prototype=Dr(e),n=new Gr,Gr.prototype=null,n[Xr]=e):n=Jr(),void 0===t?n:Br(n,t)},to=h,no=d.RegExp,ro=to((function(){var e=no(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),oo=h,io=d.RegExp,ao=oo((function(){var e=io("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),lo=vr,co=function(){var e=Fr(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},uo=Rr,fo=ie.exports,so=eo,po=kt.get,ho=ro,vo=ao,go=RegExp.prototype.exec,yo=fo("native-string-replace",String.prototype.replace),mo=go,bo=(Qr=/a/,Zr=/b*/g,go.call(Qr,"a"),go.call(Zr,"a"),0!==Qr.lastIndex||0!==Zr.lastIndex),xo=uo.UNSUPPORTED_Y||uo.BROKEN_CARET,So=void 0!==/()??/.exec("")[1];(bo||So||xo||ho||vo)&&(mo=function(e){var t,n,r,o,i,a,l,c=this,u=po(c),f=lo(e),s=u.raw;if(s)return s.lastIndex=c.lastIndex,t=mo.call(s,f),c.lastIndex=s.lastIndex,t;var d=u.groups,p=xo&&c.sticky,h=co.call(c),v=c.source,g=0,y=f;if(p&&(-1===(h=h.replace("y","")).indexOf("g")&&(h+="g"),y=f.slice(c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==f.charAt(c.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),So&&(n=new RegExp("^"+v+"$(?!\\s)",h)),bo&&(r=c.lastIndex),o=go.call(p?n:c,y),p?o?(o.input=o.input.slice(g),o[0]=o[0].slice(g),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:bo&&o&&(c.lastIndex=c.global?o.index+o[0].length:r),So&&o&&o.length>1&&yo.call(o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=so(null),i=0;i<d.length;i++)a[(l=d[i])[0]]=o[l[1]];return o});var wo=mo;Vn({target:"RegExp",proto:!0,forced:/./.exec!==wo},{exec:wo});var Eo=lt.exports,Oo=wo,jo=h,Co=_e,To=at,_o=Co("species"),Ao=RegExp.prototype,No=function(e,t,n,r){var o=Co(e),i=!jo((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!jo((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[_o]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var l=/./[o],c=t(o,""[e],(function(e,t,n,r,o){var a=t.exec;return a===Oo||a===Ao.exec?i&&!o?{done:!0,value:l.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}));Eo(String.prototype,e,c[0]),Eo(Ao,o,c[1])}r&&To(Ao[o],"sham",!0)},Io=h,Fo=N,Ro=pr,Po=ht,Lo=[],Mo=M("Reflect","construct"),ko=/^\s*(?:class|function)\b/,Wo=ko.exec,$o=!ko.exec((function(){})),zo=function(e){if(!Fo(e))return!1;try{return Mo(Object,Lo,e),!0}catch(e){return!1}},Do=!Mo||Io((function(){var e;return zo(zo.call)||!zo(Object)||!zo((function(){e=!0}))||e}))?function(e){if(!Fo(e))return!1;switch(Ro(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return $o||!!Wo.call(ko,Po(e))}:zo,Bo=Do,Ho=J,Uo=Qe,Yo=_e("species"),qo=rn,Xo=vr,Go=C,Ko=function(e){return function(t,n){var r,o,i=Xo(Go(t)),a=qo(n),l=i.length;return a<0||a>=l?e?"":void 0:(r=i.charCodeAt(a))<55296||r>56319||a+1===l||(o=i.charCodeAt(a+1))<56320||o>57343?e?i.charAt(a):r:e?i.slice(a,a+2):o-56320+(r-55296<<10)+65536}},Vo=(Ko(!1),Ko(!0)),Jo=function(e,t,n){return t+(n?Vo(e,t).length:1)},Qo=Qe,Zo=N,ei=w,ti=wo,ni=function(e,t){var n=e.exec;if(Zo(n)){var r=n.call(e,t);return null!==r&&Qo(r),r}if("RegExp"===ei(e))return ti.call(e,t);throw TypeError("RegExp#exec called on incompatible receiver")},ri=No,oi=br,ii=Qe,ai=C,li=function(e,t){var n,r=Uo(e).constructor;return void 0===r||null==(n=Uo(r)[Yo])?t:function(e){if(Bo(e))return e;throw TypeError(Ho(e)+" is not a constructor")}(n)},ci=Jo,ui=fn,fi=vr,si=ne,di=ni,pi=wo,hi=h,vi=Rr.UNSUPPORTED_Y,gi=[].push,yi=Math.min;ri("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=fi(ai(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!oi(e))return t.call(r,e,o);for(var i,a,l,c=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,s=new RegExp(e.source,u+"g");(i=pi.call(s,r))&&!((a=s.lastIndex)>f&&(c.push(r.slice(f,i.index)),i.length>1&&i.index<r.length&&gi.apply(c,i.slice(1)),l=i[0].length,f=a,c.length>=o));)s.lastIndex===i.index&&s.lastIndex++;return f===r.length?!l&&s.test("")||c.push(""):c.push(r.slice(f)),c.length>o?c.slice(0,o):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=ai(this),i=null==t?void 0:si(t,e);return i?i.call(t,o,n):r.call(fi(o),t,n)},function(e,o){var i=ii(this),a=fi(e),l=n(r,i,a,o,r!==t);if(l.done)return l.value;var c=li(i,RegExp),u=i.unicode,f=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(vi?"g":"y"),s=new c(vi?"^(?:"+i.source+")":i,f),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===di(s,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){s.lastIndex=vi?0:h;var g,y=di(s,vi?a.slice(h):a);if(null===y||(g=yi(ui(s.lastIndex+(vi?h:0)),a.length))===p)h=ci(a,h,u);else{if(v.push(a.slice(p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(v.push(y[m]),v.length===d)return v;h=p=g}}return v.push(a.slice(p)),v}]}),!!hi((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),vi);var mi=ee,bi=w,xi=Array.isArray||function(e){return"Array"==bi(e)},Si=Do,wi=F,Ei=_e("species"),Oi=j,ji=de,Ci=dn,Ti=function(e,t){return new(function(e){var t;return xi(e)&&(t=e.constructor,(Si(t)&&(t===Array||xi(t.prototype))||wi(t)&&null===(t=t[Ei]))&&(t=void 0)),void 0===t?Array:t}(e))(0===t?0:t)},_i=[].push,Ai=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,l=5==e||i;return function(c,u,f,s){for(var d,p,h=ji(c),v=Oi(h),g=function(e,t,n){if(mi(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}(u,f,3),y=Ci(v),m=0,b=s||Ti,x=t?b(c,y):n||a?b(c,0):void 0;y>m;m++)if((l||m in v)&&(p=g(d=v[m],m,h),e))if(t)x[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:_i.call(x,d)}else switch(e){case 4:return!1;case 7:_i.call(x,d)}return i?-1:r||o?o:x}},Ni={forEach:Ai(0),map:Ai(1),filter:Ai(2),some:Ai(3),every:Ai(4),find:Ai(5),findIndex:Ai(6),filterReject:Ai(7)},Ii=h,Fi=H,Ri=_e("species"),Pi=function(e){return Fi>=51||!Ii((function(){var t=[];return(t.constructor={})[Ri]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Li=Ni.map;Vn({target:"Array",proto:!0,forced:!Pi("map")},{map:function(e){return Li(this,e,arguments.length>1?arguments[1]:void 0)}});var Mi=Ni.filter;Vn({target:"Array",proto:!0,forced:!Pi("filter")},{filter:function(e){return Mi(this,e,arguments.length>1?arguments[1]:void 0)}});var ki=Qe,Wi=fn,$i=vr,zi=C,Di=ne,Bi=Jo,Hi=ni;No("match",(function(e,t,n){return[function(t){var n=zi(this),r=null==t?void 0:Di(t,e);return r?r.call(t,n):new RegExp(t)[e]($i(n))},function(e){var r=ki(this),o=$i(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return Hi(r,o);var a=r.unicode;r.lastIndex=0;for(var l,c=[],u=0;null!==(l=Hi(r,o));){var f=$i(l[0]);c[u]=f,""===f&&(r.lastIndex=Bi(o,Wi(r.lastIndex),a)),u++}return 0===u?null:c}]}));var Ui,Yi=C,qi=vr,Xi="[\t\n\v\f\r                 \u2028\u2029\ufeff]",Gi=RegExp("^"+Xi+Xi+"*"),Ki=RegExp(Xi+Xi+"*$"),Vi=function(e){return function(t){var n=qi(Yi(t));return 1&e&&(n=n.replace(Gi,"")),2&e&&(n=n.replace(Ki,"")),n}},Ji={start:Vi(1),end:Vi(2),trim:Vi(3)},Qi=Ht.PROPER,Zi=Ji.trim;Vn({target:"String",proto:!0,forced:(Ui="trim",h((function(){return!!"\t\n\v\f\r                 \u2028\u2029\ufeff".trim()||"​…᠎"!=="​…᠎".trim()||Qi&&"\t\n\v\f\r                 \u2028\u2029\ufeff".trim.name!==Ui})))},{trim:function(){return Zi(this)}});var ea=function(e,t){for(var n=0,r=Object.entries(t);n<r.length;n++){var i=o(r[n],2),a=i[0],l=i[1];e.style[a]=null==l?"":String(l)}},ta=function(e,t,n,r,o){return function(){var i,a,l,c,u=arguments.length<=0?void 0:arguments[0];if(e?(i=arguments.length<=1?void 0:arguments[1],a=!!(arguments.length<=2?void 0:arguments[2]),l=!!(arguments.length<=3?void 0:arguments[3]),c=!!(arguments.length<=4?void 0:arguments[4])):(a=!!(arguments.length<=1?void 0:arguments[1]),l=!!(arguments.length<=2?void 0:arguments[2]),c=!!(arguments.length<=3?void 0:arguments[3])),u===window)return u.document.documentElement["client".concat(n)];if(9===u.nodeType){var f=u.documentElement,s=u.body;return Math.max(s["scroll".concat(n)],f["scroll".concat(n)],s["offset".concat(n)],f["offset".concat(n)],f["client".concat(n)])}var d,p,h=!1,v=!1;if(!e&&"getBoundingClientRect"in u&&(d=u.getBoundingClientRect()[t],h=!0,v=!0),(void 0===d||c||h!==a||v!==l)&&(p=e?getComputedStyle(u,i):getComputedStyle(u)),void 0===d){var g=p[t];"auto"===g?(d=u["client".concat(n)],h=!0):d=parseFloat(g),"border-box"===p.boxSizing&&(h=!0,v=!0)}if(a!==h){var y=parseFloat(p["padding-".concat(r)]||0)+parseFloat(p["padding-".concat(o)]||0);a?d+=y:d-=y}if(l!==v){var m=parseFloat(p["border-".concat(r,"-width")]||0)+parseFloat(p["border-".concat(o,"-width")]||0);l?d+=m:d-=m}if(d<0&&(d=0),c){var b=parseFloat(p["margin-".concat(r)]||0)+parseFloat(p["margin-".concat(o)]||0);d+=b}return d}},na=function(e,t,n,r){return function(t,o){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(t!==window&&9!==t.nodeType){var c=getComputedStyle(t),u=!1;if("border-box"===c.boxSizing&&(u=!0),i=!!i,a=!!a,(l=!!l)&&(o-=(parseFloat(c["margin-".concat(n)])||0)+(parseFloat(c["margin-".concat(r)])||0)),i!==u){var f=parseFloat(c["padding-".concat(n)]||0)+parseFloat(c["padding-".concat(r)]||0);i?o-=f:o+=f}if(a!==u){var s=(parseFloat(c["border-".concat(n,"-width")])||0)+(parseFloat(c["border-".concat(r,"-width")])||0);a?o-=s:o+=s}o<0&&(o=0),t.style[e]=o+"px"}}},ra=ta(!1,"width","Width","left","right"),oa=ta(!1,"height","Height","top","bottom"),ia=ta(!0,"width","Width","left","right"),aa=ta(!0,"height","Height","top","bottom"),la=na("width",0,"left","right"),ca=na("height",0,"top","bottom"),ua=function(e){if(e){var t=e.endsWith("ms");return parseFloat(e)*(t?1:1e3)}},fa=function(e){return/^-?(0?\.)?\d+m?s$/.test(e)},sa=function(e){var t=e.split(/\s+/),n=t[0],r=t[1],o=t[2],i=t[3];return fa(o)?{delay:ua(o),duration:ua(r),name:n}:{delay:ua(i),duration:ua(r),name:n,timingFunction:o}},da=Object.freeze({__proto__:null,getCssProps:function(e,t){var n,r=getComputedStyle(e),o={},i=l(t);try{for(i.s();!(n=i.n()).done;){var a=n.value,c=r[a];("width"===a||"height"===a)&&"auto"===c&&e instanceof HTMLElement&&(c=e["offset"+a.substr(0,1).toUpperCase()+a.substr(1)],"border-box"!==r.boxSizing&&("width"===a?(c-=parseFloat(r.paddingLeft||0),c-=parseFloat(r.paddingRight||0),c-=parseFloat(r.borderLeftWidth||0),c-=parseFloat(r.borderRightWidth||0)):(c-=parseFloat(r.paddingTop||0),c-=parseFloat(r.paddingBottom||0),c-=parseFloat(r.borderTopWidth||0),c-=parseFloat(r.borderBottomWidth||0)),c<0&&(c=0)),c+="px"),o[a]=c}}catch(e){i.e(e)}finally{i.f()}return o},setCssProps:ea,getElementWidth:ra,getElementHeight:oa,setElementWidth:la,setElementHeight:ca,getPseudoElementWidth:ia,getPseudoElementHeight:aa,getElementOffset:function(e){if(!e.getClientRects().length)return{top:0,left:0};var t=e.getBoundingClientRect(),n=e.ownerDocument.defaultView;return{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}},anchoredPosition:function(e,t,n,r,o){var i,a,l,c;if(r||(r={width:ra(e,!0,!0),height:ra(e,!0,!0)}),"start"!==t&&"end"!==t||(null==o&&(o="rtl"===getComputedStyle(e).direction),t="start"===t?o?"right":"left":o?"left":"right"),"right"===t)i=r.width,l=0;else if("center"===t)l=i=r.width/2;else if("left"===t)i=0,l=r.width;else if(t&&"string"==typeof t&&"%"===t.charAt(t.length-1)){var u=(parseFloat(t)||0)/100;i=r.width*u,l=r.width*-u,null==o&&(o="rtl"===getComputedStyle(e).direction),o&&(i=r.width-i,l=r.width-i)}else l=-(i=parseFloat(t)||0);if("bottom"===n)a=r.height,c=0;else if("center"===n)c=a=r.height/2;else if("top"===n)a=0,c=r.height;else if(n&&"string"==typeof n&&"%"===n.charAt(n.length-1)){var f=(parseFloat(n)||0)/100;a=r.height*f,c=r.height*-f}else c=-(a=parseFloat(n)||0);return{left:i,top:a,right:l,bottom:c,xSpec:t,ySpec:n}},parseTransition:function(e){return e.match(/([^,()]|\([^)]*\))+/g).map((function(e){return e.trim()})).filter((function(e){return e.length>0})).map(sa)},parseSingleTransition:sa,isTimeString:fa,timeToMs:ua}),pa=function(e,t){for(var n=0,r=Object.entries(t);n<r.length;n++){var i=o(r[n],2),a=i[0],l=i[1];null!=l&&("innerHTML"===a?e.innerHTML=String(l):"css"===a&&"style"in e?ea(e,l):a in e&&"style"!==a?e[a]=l:e.setAttribute(a,String(l)))}},ha=Object.freeze({__proto__:null,createElement:function(t,n,r){var o=document.createElement(t);if(n&&"object"===e(n)&&pa(o,n),r)if(r instanceof Node)o.appendChild(r);else if(Array.isArray(r)){var i,a=l(r);try{for(a.s();!(i=a.n()).done;){var c=i.value;o.appendChild(c)}}catch(e){a.e(e)}finally{a.f()}}return o},setElementAttrs:pa,closestUntil:function(e,t,n){if("closest"in e&&!n)return e.closest(t);var r=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(r.call(e,t))return e;if(n&&e===n)return null;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null},prev:function(e,t){if(!e)return null;var n=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(n.call(e,t))return e;e=e.previousElementSibling||e.previousSibling}while(null!==e&&1===e.nodeType);return null},next:function(e,t){if(!e)return null;var n=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(n.call(e,t))return e;e=e.nextElementSibling||e.nextSibling}while(null!==e&&1===e.nodeType);return null},unwrapChildren:function(e){for(var t=e.parentNode;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}}),va=de,ga=Math.floor,ya="".replace,ma=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ba=/\$([$&'`]|\d{1,2})/g,xa=No,Sa=h,wa=Qe,Ea=N,Oa=rn,ja=fn,Ca=vr,Ta=C,_a=Jo,Aa=ne,Na=function(e,t,n,r,o,i){var a=n+e.length,l=r.length,c=ba;return void 0!==o&&(o=va(o),c=ma),ya.call(i,c,(function(i,c){var u;switch(c.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(a);case"<":u=o[c.slice(1,-1)];break;default:var f=+c;if(0===f)return i;if(f>l){var s=ga(f/10);return 0===s?i:s<=l?void 0===r[s-1]?c.charAt(1):r[s-1]+c.charAt(1):i}u=r[f-1]}return void 0===u?"":u}))},Ia=ni,Fa=_e("replace"),Ra=Math.max,Pa=Math.min,La="$0"==="a".replace(/./,"$0"),Ma=!!/./[Fa]&&""===/./[Fa]("a","$0");xa("replace",(function(e,t,n){var r=Ma?"$":"$0";return[function(e,n){var r=Ta(this),o=null==e?void 0:Aa(e,Fa);return o?o.call(e,r,n):t.call(Ca(r),e,n)},function(e,o){var i=wa(this),a=Ca(e);if("string"==typeof o&&-1===o.indexOf(r)&&-1===o.indexOf("$<")){var l=n(t,i,a,o);if(l.done)return l.value}var c=Ea(o);c||(o=Ca(o));var u=i.global;if(u){var f=i.unicode;i.lastIndex=0}for(var s=[];;){var d=Ia(i,a);if(null===d)break;if(s.push(d),!u)break;""===Ca(d[0])&&(i.lastIndex=_a(a,ja(i.lastIndex),f))}for(var p,h="",v=0,g=0;g<s.length;g++){d=s[g];for(var y=Ca(d[0]),m=Ra(Pa(Oa(d.index),a.length),0),b=[],x=1;x<d.length;x++)b.push(void 0===(p=d[x])?p:String(p));var S=d.groups;if(c){var w=[y].concat(b,m,a);void 0!==S&&w.push(S);var E=Ca(o.apply(void 0,w))}else E=Na(y,a,m,b,S,o);m>=v&&(h+=a.slice(v,m)+E,v=m+y.length)}return h+a.slice(v)}]}),!!Sa((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!La||Ma);var ka=null,Wa=function(){try{document.createElement("div").querySelector(":scope > div"),ka=!0}catch(e){ka=!1}},$a=Object.freeze({__proto__:null,getRootNode:function(e){if(!e)return null;if("getRootNode"in e)return e.getRootNode();for(;e.parentNode;)e=e.parentNode;return e},closest:function(e,t){if("closest"in e)return e.closest(t);var n=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(n.call(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null},remove:function(e){e&&("remove"in e&&e.remove(),e.parentNode&&e.parentNode.removeChild(e))},before:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(0!==n.length)if("before"in e)e.before.apply(e,n);else if(1===n.length){var o=n[0],i=o instanceof Node;o=i?o:document.createTextNode(String(o)),e.parentNode.insertBefore(o,e)}else{var a,c=document.createDocumentFragment(),u=l(n);try{for(u.s();!(a=u.n()).done;){var f=a.value,s=f instanceof Node;c.appendChild(s?f:document.createTextNode(String(f)))}}catch(e){u.e(e)}finally{u.f()}e.parentNode.insertBefore(c,e)}},after:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(0!==n.length)if("after"in e)e.after.apply(e,n);else if(1===n.length){var o=n[0],i=o instanceof Node;o=i?o:document.createTextNode(String(o)),e.nextSibling?e.parentNode.insertBefore(o,e.nextSibling):e.parentNode.appendChild(o)}else{var a,c=document.createDocumentFragment(),u=l(n);try{for(u.s();!(a=u.n()).done;){var f=a.value,s=f instanceof Node;c.appendChild(s?f:document.createTextNode(String(f)))}}catch(e){u.e(e)}finally{u.f()}e.nextSibling?e.parentNode.insertBefore(c,e.nextSibling):e.parentNode.appendChild(c)}},prepend:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(0!==n.length)if("prepend"in e)e.prepend.apply(e,n);else if(1===n.length){var o=n[0],i=o instanceof Node;o=i?o:document.createTextNode(String(o)),e.firstChild?e.insertBefore(o,e.firstChild):e.appendChild(o)}else{var a,c=document.createDocumentFragment(),u=l(n);try{for(u.s();!(a=u.n()).done;){var f=a.value,s=f instanceof Node;c.appendChild(s?f:document.createTextNode(String(f)))}}catch(e){u.e(e)}finally{u.f()}e.firstChild?e.insertBefore(c,e.firstChild):e.appendChild(c)}},append:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(0!==n.length)if("append"in e)e.append.apply(e,n);else if(1===n.length){var o=n[0],i=o instanceof Node;o=i?o:document.createTextNode(String(o)),e.appendChild(o)}else{var a,c=document.createDocumentFragment(),u=l(n);try{for(u.s();!(a=u.n()).done;){var f=a.value,s=f instanceof Node;c.appendChild(s?f:document.createTextNode(String(f)))}}catch(e){u.e(e)}finally{u.f()}e.appendChild(c)}},scopedSelector:function(e,t){if(null===ka&&Wa(),!0===ka)return e.querySelector(t.replace(/((?:^|,)\s*)/g,"$1:scope "));var n=e.id,r="ID_"+Date.now();e.id=r,t=t.replace(/((?:^|,)\s*)/g,"$1#"+r);try{return e.querySelector(t)}finally{this.id=n}},scopedSelectorAll:function(e,t){if(null===ka&&Wa(),!0===ka)return e.querySelectorAll(t.replace(/((?:^|,)\s*)/g,"$1:scope "));var n=e.id,r="ID_"+Date.now();e.id=r,t=t.replace(/((?:^|,)\s*)/g,"$1#"+r);try{return e.querySelectorAll(t)}finally{this.id=n}},toggleClass:function(e,t,n){var r=e.classList;return void 0===n?r.contains(t)?(r.remove(t),!1):(r.add(t),!0):n?(r.add(t),!0):(r.remove(t),!1)}}),za=v,Da=Ht.EXISTS,Ba=Ve.f,Ha=Function.prototype,Ua=Ha.toString,Ya=/^\s*function ([^ (]*)/;za&&!Da&&Ba(Ha,"name",{configurable:!0,get:function(){try{return Ua.call(this).match(Ya)[1]}catch(e){return""}}});var qa=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._events=[]}var n,o;return n=t,(o=[{key:"add",value:function(t,n,r,o){var i=n.split("."),a=i[0],l=i[1];t.addEventListener(a,r,o||!1);var c=!0===o||"object"===e(o)&&!0===o.capture;return this._events.push({el:t,name:a,namespace:l,handler:r,useCapture:c}),this}},{key:"remove",value:function(t,n,r,o){var i=n?n.split("."):"",a=i[0],c=i[1],u=!0===o||"object"===e(o)&&!0===o.capture,f=[],s=[];if(t||a||c||r||void 0!==o){var d,p=l(this._events);try{for(p.s();!(d=p.n()).done;){var h=d.value;t&&h.el!==t||a&&h.name!==a||c&&h.namespace!==c||r&&h.handler!==r||void 0!==o&&h.useCapture!==u?f.push(h):s.push(h)}}catch(e){p.e(e)}finally{p.f()}}else s=this._events;this._events=f;var v,g=l(s);try{for(g.s();!(v=g.n()).done;){var y=v.value;y.el.removeEventListener(y.name,y.handler,y.useCapture)}}catch(e){g.e(e)}finally{g.f()}return this}}])&&r(n.prototype,o),t}(),Xa=Object.freeze({__proto__:null,default:qa}),Ga=Vn,Ka=Math.hypot,Va=Math.abs,Ja=Math.sqrt;Ga({target:"Math",stat:!0,forced:!!Ka&&Ka(1/0,NaN)!==1/0},{hypot:function(e,t){for(var n,r,o=0,i=0,a=arguments.length,l=0;i<a;)l<(n=Va(arguments[i++]))?(o=o*(r=l/n)*r+1,l=n):o+=n>0?(r=n/l)*r:n;return l===1/0?1/0:l*Ja(o)}});var Qa,Za=Object.freeze({__proto__:null,bindTouchTap:function(e,t){var n=null,r=null,o=function(t){if(null===n){var o=t.changedTouches[0];n=o.identifier,r=o?{x:o.pageX,y:o.pageY}:{x:t.pageX,y:t.pageY},e.addEventListener("touchend",i),e.addEventListener("touchcancel",a)}},i=function(e){if(null!==n){var o=null;if(e.changedTouches){if(null!=n){var i,a=l(e.changedTouches);try{for(a.s();!(i=a.n()).done;){var c=i.value;if(c.identifier===n){o=c;break}}}catch(e){a.e(e)}finally{a.f()}}o||(o=e.changedTouches[0])}var u=o?{x:o.pageX,y:o.pageY}:{x:e.pageX,y:e.pageY},f=r;if(n=null,r=null,null!==t.distance){var s=t.distance||1;if(Math.hypot(Math.abs(u.x-f.x),Math.abs(u.y-f.y))>=s)return!1}t.handler&&t.handler(e)}},a=function t(){n=null,r=null,e.removeEventListener("touchend",i),e.removeEventListener("touchcancel",t)};return e.addEventListener("touchstart",o),{unbind:function(){e.removeEventListener("touchstart",o),e.removeEventListener("touchend",i),e.removeEventListener("touchcancel",a)}}}}),el=v,tl=h,nl=Zn,rl=jn,ol=g,il=de,al=j,ll=Object.assign,cl=Object.defineProperty,ul=!ll||tl((function(){if(el&&1!==ll({b:1},ll(cl({},"a",{enumerable:!0,get:function(){cl(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=ll({},e)[n]||nl(ll({},t)).join("")!=r}))?function(e,t){for(var n=il(e),r=arguments.length,o=1,i=rl.f,a=ol.f;r>o;)for(var l,c=al(arguments[o++]),u=i?nl(c).concat(i(c)):nl(c),f=u.length,s=0;f>s;)l=u[s++],el&&!a.call(c,l)||(n[l]=c[l]);return n}:ll;Vn({target:"Object",stat:!0,forced:Object.assign!==ul},{assign:ul});var fl=function(){var e=document.createElement("div");e.dir="rtl",Object.assign(e.style,{direction:"rtl",fontSize:"14px",width:"1px",height:"1px",position:"absolute",top:"-1000px",overflow:"scroll"}),e.textContent="A",document.body.appendChild(e);var t="reverse";return e.scrollLeft>0?t="default":(e.scrollLeft=1,0===e.scrollLeft&&(t="negative")),e.parentNode.removeChild(e),t};function sl(e,t,n){if(void 0===n&&(n="rtl"===getComputedStyle(e).direction),!0===n&&void 0===Qa&&(Qa=fl()),!n)return t;switch(Qa){case"negative":return t-e.scrollWidth+e.clientWidth;case"reverse":return e.scrollWidth-t-e.clientWidth;default:return t}}function dl(e,t){if(void 0===t&&(t="rtl"===getComputedStyle(e).direction),!0===t&&void 0===Qa&&(Qa=fl()),!t)return e.scrollLeft;switch(Qa){case"negative":return e.scrollLeft+e.scrollWidth-e.clientWidth;case"reverse":return e.scrollWidth-e.scrollLeft-e.clientWidth;default:return e.scrollLeft}}function pl(e,t,n){return void 0===n&&(n="rtl"===getComputedStyle(e).direction),sl(e,n?e.scrollWidth-e.clientWidth-t:t,n)}var hl=Object.freeze({__proto__:null,calculateNativeScrollLeftForLeft:sl,getScrollLeft:dl,setScrollLeft:function(e,t,n){e.scrollLeft=sl(e,t,n)},calculateNativeScrollLeftForHorz:pl,getScrollHorz:function(e,t){return void 0===t&&(t="rtl"===getComputedStyle(e).direction),t?e.scrollWidth-e.clientWidth-dl(e,t):dl(e,t)},setScrollHorz:function(e,t,n){e.scrollLeft=pl(e,t,n)}});exports.Css=da,exports.Dom=ha,exports.DomCompat=$a,exports.DomEventsSink=Xa,exports.ScrollHelper=hl,exports.Touches=Za;
//# sourceMappingURL=lib.cjs.min.js.map
/*!
* @danielgindi/dom-utils 1.0.5
* @danielgindi/dom-utils 1.0.6
* git://github.com/danielgindi/dom-utils.git

@@ -468,3 +468,3 @@ */

setCssProps(el, value);
else if (key === 'readOnly' || key === 'tabIndex' || key === 'textContent')
else if (key in el && key !== 'style')
el[key] = value;

@@ -546,2 +546,9 @@ else el.setAttribute(key, String(value));

const unwrapChildren = function (el) {
let parent = el.parentNode;
while (el.firstChild)
parent.insertBefore(el.firstChild, el);
parent.removeChild(el);
};
var Dom = /*#__PURE__*/Object.freeze({

@@ -553,3 +560,4 @@ __proto__: null,

prev: prev,
next: next
next: next,
unwrapChildren: unwrapChildren
});

@@ -556,0 +564,0 @@

/*!
* @danielgindi/dom-utils 1.0.5
* @danielgindi/dom-utils 1.0.6
* git://github.com/danielgindi/dom-utils.git
*/
const e=function(e,t){for(let[n,r]of Object.entries(t))e.style[n]=null==r?"":String(r)},t=function(e,t,n,r,o){return(...l)=>{let i,s,d,a,c=l[0];if(e?(i=l[1],s=!!l[2],d=!!l[3],a=!!l[4]):(s=!!l[1],d=!!l[2],a=!!l[3]),c===window)return c.document.documentElement[`client${n}`];if(9===c.nodeType){const e=c.documentElement,t=c.body;return Math.max(t[`scroll${n}`],e[`scroll${n}`],t[`offset${n}`],e[`offset${n}`],e[`client${n}`])}{let l,p,u=!1,f=!1;if(!e&&"getBoundingClientRect"in c&&(l=c.getBoundingClientRect()[t],u=!0,f=!0),(void 0===l||a||u!==s||f!==d)&&(p=e?getComputedStyle(c,i):getComputedStyle(c)),void 0===l){let e=p[t];"auto"===e?(l=c[`client${n}`],u=!0):l=parseFloat(e),"border-box"===p.boxSizing&&(u=!0,f=!0)}if(s!==u){let e=parseFloat(p[`padding-${r}`]||0)+parseFloat(p[`padding-${o}`]||0);s?l+=e:l-=e}if(d!==f){let e=parseFloat(p[`border-${r}-width`]||0)+parseFloat(p[`border-${o}-width`]||0);d?l+=e:l-=e}return l<0&&(l=0),a&&(l+=parseFloat(p[`margin-${r}`]||0)+parseFloat(p[`margin-${o}`]||0)),l}}},n=(e,t,n,r)=>(t,o,l=!1,i=!1,s=!1)=>{if(t===window)return;if(9===t.nodeType)return;const d=getComputedStyle(t);let a=!1;if("border-box"===d.boxSizing&&(a=!0),l=!!l,i=!!i,(s=!!s)&&(o-=(parseFloat(d[`margin-${n}`])||0)+(parseFloat(d[`margin-${r}`])||0)),l!==a){let e=parseFloat(d[`padding-${n}`]||0)+parseFloat(d[`padding-${r}`]||0);l?o-=e:o+=e}if(i!==a){let e=(parseFloat(d[`border-${n}-width`])||0)+(parseFloat(d[`border-${r}-width`])||0);i?o-=e:o+=e}o<0&&(o=0),t.style[e]=o+"px"},r=t(!1,"width","Width","left","right"),o=t(!1,"height","Height","top","bottom"),l=t(!0,"width","Width","left","right"),i=t(!0,"height","Height","top","bottom"),s=n("width",0,"left","right"),d=n("height",0,"top","bottom"),a=e=>{if(!e)return;let t=e.endsWith("ms");return parseFloat(e)*(t?1:1e3)},c=e=>/^-?(0?\.)?\d+m?s$/.test(e),p=e=>{let t=e.split(/\s+/),n=t[0],r=t[1],o=t[2],l=t[3];return c(o)?{delay:a(o),duration:a(r),name:n}:{delay:a(l),duration:a(r),name:n,timingFunction:o}};var u=Object.freeze({__proto__:null,getCssProps:function(e,t){const n=getComputedStyle(e);let r={};for(let o of t){let t=n[o];("width"===o||"height"===o)&&"auto"===t&&e instanceof HTMLElement&&(t=e["offset"+o.substr(0,1).toUpperCase()+o.substr(1)],"border-box"!==n.boxSizing&&("width"===o?(t-=parseFloat(n.paddingLeft||0),t-=parseFloat(n.paddingRight||0),t-=parseFloat(n.borderLeftWidth||0),t-=parseFloat(n.borderRightWidth||0)):(t-=parseFloat(n.paddingTop||0),t-=parseFloat(n.paddingBottom||0),t-=parseFloat(n.borderTopWidth||0),t-=parseFloat(n.borderBottomWidth||0)),t<0&&(t=0)),t+="px"),r[o]=t}return r},setCssProps:e,getElementWidth:r,getElementHeight:o,setElementWidth:s,setElementHeight:d,getPseudoElementWidth:l,getPseudoElementHeight:i,getElementOffset:e=>{if(!e.getClientRects().length)return{top:0,left:0};let t=e.getBoundingClientRect(),n=e.ownerDocument.defaultView;return{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}},anchoredPosition:function(e,t,n,o,l){let i,s,d,a;if(o||(o={width:r(e,!0,!0),height:r(e,!0,!0)}),"start"!==t&&"end"!==t||(null==l&&(l="rtl"===getComputedStyle(e).direction),t="start"===t?l?"right":"left":l?"left":"right"),"right"===t)i=o.width,d=0;else if("center"===t)i=o.width/2,d=i;else if("left"===t)i=0,d=o.width;else if(t&&"string"==typeof t&&"%"===t.charAt(t.length-1)){let n=(parseFloat(t)||0)/100;i=o.width*n,d=o.width*-n,null==l&&(l="rtl"===getComputedStyle(e).direction),l&&(i=o.width-i,d=o.width-i)}else i=parseFloat(t)||0,d=-i;if("bottom"===n)s=o.height,a=0;else if("center"===n)s=o.height/2,a=s;else if("top"===n)s=0,a=o.height;else if(n&&"string"==typeof n&&"%"===n.charAt(n.length-1)){let e=(parseFloat(n)||0)/100;s=o.height*e,a=o.height*-e}else s=parseFloat(n)||0,a=-s;return{left:i,top:s,right:d,bottom:a,xSpec:t,ySpec:n}},parseTransition:e=>e.match(/([^,()]|\([^)]*\))+/g).map((e=>e.trim())).filter((e=>e.length>0)).map(p),parseSingleTransition:p,isTimeString:c,timeToMs:a});const f=function(t,n){for(let[r,o]of Object.entries(n))null!=o&&("innerHTML"===r?t.innerHTML=String(o):"css"===r&&"style"in t?e(t,o):"readOnly"===r||"tabIndex"===r||"textContent"===r?t[r]=o:t.setAttribute(r,String(o)))};var h=Object.freeze({__proto__:null,createElement:function(e,t,n){let r=document.createElement(e);if(t&&"object"==typeof t&&f(r,t),n)if(n instanceof Node)r.appendChild(n);else if(Array.isArray(n))for(let e of n)r.appendChild(e);return r},setElementAttrs:f,closestUntil:function(e,t,n){if("closest"in e&&!n)return e.closest(t);const r=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(r.call(e,t))return e;if(n&&e===n)return null;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null},prev:function(e,t){if(!e)return null;const n=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(n.call(e,t))return e;e=e.previousElementSibling||e.previousSibling}while(null!==e&&1===e.nodeType);return null},next:function(e,t){if(!e)return null;const n=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(n.call(e,t))return e;e=e.nextElementSibling||e.nextSibling}while(null!==e&&1===e.nodeType);return null}});let g=null;const m=()=>{try{document.createElement("div").querySelector(":scope > div"),g=!0}catch(e){g=!1}};var y=Object.freeze({__proto__:null,getRootNode:function(e){if(!e)return null;if("getRootNode"in e)return e.getRootNode();for(;e.parentNode;)e=e.parentNode;return e},closest:function(e,t){if("closest"in e)return e.closest(t);const n=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(n.call(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null},remove:function(e){e&&("remove"in e&&e.remove(),e.parentNode&&e.parentNode.removeChild(e))},before:function(e,...t){if(0!==t.length)if("before"in e)e.before(...t);else if(1===t.length){let n=t[0];n=n instanceof Node?n:document.createTextNode(String(n)),e.parentNode.insertBefore(n,e)}else{let n=document.createDocumentFragment();for(const e of t){const t=e instanceof Node;n.appendChild(t?e:document.createTextNode(String(e)))}e.parentNode.insertBefore(n,e)}},after:function(e,...t){if(0!==t.length)if("after"in e)e.after(...t);else if(1===t.length){let n=t[0];n=n instanceof Node?n:document.createTextNode(String(n)),e.nextSibling?e.parentNode.insertBefore(n,e.nextSibling):e.parentNode.appendChild(n)}else{let n=document.createDocumentFragment();for(const e of t){const t=e instanceof Node;n.appendChild(t?e:document.createTextNode(String(e)))}e.nextSibling?e.parentNode.insertBefore(n,e.nextSibling):e.parentNode.appendChild(n)}},prepend:function(e,...t){if(0!==t.length)if("prepend"in e)e.prepend(...t);else if(1===t.length){let n=t[0];n=n instanceof Node?n:document.createTextNode(String(n)),e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n)}else{let n=document.createDocumentFragment();for(const e of t){const t=e instanceof Node;n.appendChild(t?e:document.createTextNode(String(e)))}e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n)}},append:function(e,...t){if(0!==t.length)if("append"in e)e.append(...t);else if(1===t.length){let n=t[0];n=n instanceof Node?n:document.createTextNode(String(n)),e.appendChild(n)}else{let n=document.createDocumentFragment();for(const e of t){const t=e instanceof Node;n.appendChild(t?e:document.createTextNode(String(e)))}e.appendChild(n)}},scopedSelector:function(e,t){if(null===g&&m(),!0===g)return e.querySelector(t.replace(/((?:^|,)\s*)/g,"$1:scope "));{let n=e.id;const r="ID_"+Date.now();e.id=r,t=t.replace(/((?:^|,)\s*)/g,"$1#"+r);try{return e.querySelector(t)}finally{this.id=n}}},scopedSelectorAll:function(e,t){if(null===g&&m(),!0===g)return e.querySelectorAll(t.replace(/((?:^|,)\s*)/g,"$1:scope "));{let n=e.id;const r="ID_"+Date.now();e.id=r,t=t.replace(/((?:^|,)\s*)/g,"$1#"+r);try{return e.querySelectorAll(t)}finally{this.id=n}}},toggleClass:function(e,t,n){let r=e.classList;return void 0===n?r.contains(t)?(r.remove(t),!1):(r.add(t),!0):n?(r.add(t),!0):(r.remove(t),!1)}}),b=Object.freeze({__proto__:null,default:class{constructor(){this._events=[]}add(e,t,n,r){let o=t.split("."),l=o[0],i=o[1];e.addEventListener(l,n,r||!1);let s=!0===r||"object"==typeof r&&!0===r.capture;return this._events.push({el:e,name:l,namespace:i,handler:n,useCapture:s}),this}remove(e,t,n,r){let o=t?t.split("."):"",l=o[0],i=o[1],s=!0===r||"object"==typeof r&&!0===r.capture,d=[],a=[];if(e||l||i||n||void 0!==r)for(let t of this._events)e&&t.el!==e||l&&t.name!==l||i&&t.namespace!==i||n&&t.handler!==n||void 0!==r&&t.useCapture!==s?d.push(t):a.push(t);else a=this._events;this._events=d;for(let e of a)e.el.removeEventListener(e.name,e.handler,e.useCapture);return this}}}),v=Object.freeze({__proto__:null,bindTouchTap:function(e,t){let n=null,r=null;const o=t=>{if(null!==n)return;let o=t.changedTouches[0];n=o.identifier,r=o?{x:o.pageX,y:o.pageY}:{x:t.pageX,y:t.pageY},e.addEventListener("touchend",l),e.addEventListener("touchcancel",i)},l=e=>{if(null===n)return;let o=null;if(e.changedTouches){if(null!=n)for(let t of e.changedTouches)if(t.identifier===n){o=t;break}o||(o=e.changedTouches[0])}let l=o?{x:o.pageX,y:o.pageY}:{x:e.pageX,y:e.pageY},i=r;if(n=null,r=null,null!==t.distance){let e=t.distance||1;if(Math.hypot(Math.abs(l.x-i.x),Math.abs(l.y-i.y))>=e)return!1}t.handler&&t.handler(e)},i=()=>{n=null,r=null,e.removeEventListener("touchend",l),e.removeEventListener("touchcancel",i)};return e.addEventListener("touchstart",o),{unbind:()=>{e.removeEventListener("touchstart",o),e.removeEventListener("touchend",l),e.removeEventListener("touchcancel",i)}}}});let S;const C=()=>{const e=document.createElement("div");e.dir="rtl",Object.assign(e.style,{direction:"rtl",fontSize:"14px",width:"1px",height:"1px",position:"absolute",top:"-1000px",overflow:"scroll"}),e.textContent="A",document.body.appendChild(e);let t="reverse";return e.scrollLeft>0?t="default":(e.scrollLeft=1,0===e.scrollLeft&&(t="negative")),e.parentNode.removeChild(e),t};function E(e,t,n){if(void 0===n&&(n="rtl"===getComputedStyle(e).direction),!0===n&&void 0===S&&(S=C()),!n)return t;switch(S){case"negative":return t-e.scrollWidth+e.clientWidth;case"reverse":return e.scrollWidth-t-e.clientWidth;default:return t}}function x(e,t){if(void 0===t&&(t="rtl"===getComputedStyle(e).direction),!0===t&&void 0===S&&(S=C()),!t)return e.scrollLeft;switch(S){case"negative":return e.scrollLeft+e.scrollWidth-e.clientWidth;case"reverse":return e.scrollWidth-e.scrollLeft-e.clientWidth;default:return e.scrollLeft}}function w(e,t,n){return void 0===n&&(n="rtl"===getComputedStyle(e).direction),E(e,n?e.scrollWidth-e.clientWidth-t:t,n)}var N=Object.freeze({__proto__:null,calculateNativeScrollLeftForLeft:E,getScrollLeft:x,setScrollLeft:function(e,t,n){e.scrollLeft=E(e,t,n)},calculateNativeScrollLeftForHorz:w,getScrollHorz:function(e,t){return void 0===t&&(t="rtl"===getComputedStyle(e).direction),t?e.scrollWidth-e.clientWidth-x(e,t):x(e,t)},setScrollHorz:function(e,t,n){e.scrollLeft=w(e,t,n)}});export{u as Css,h as Dom,y as DomCompat,b as DomEventsSink,N as ScrollHelper,v as Touches};
const e=function(e,t){for(let[n,r]of Object.entries(t))e.style[n]=null==r?"":String(r)},t=function(e,t,n,r,o){return(...l)=>{let i,s,d,a,c=l[0];if(e?(i=l[1],s=!!l[2],d=!!l[3],a=!!l[4]):(s=!!l[1],d=!!l[2],a=!!l[3]),c===window)return c.document.documentElement[`client${n}`];if(9===c.nodeType){const e=c.documentElement,t=c.body;return Math.max(t[`scroll${n}`],e[`scroll${n}`],t[`offset${n}`],e[`offset${n}`],e[`client${n}`])}{let l,p,u=!1,f=!1;if(!e&&"getBoundingClientRect"in c&&(l=c.getBoundingClientRect()[t],u=!0,f=!0),(void 0===l||a||u!==s||f!==d)&&(p=e?getComputedStyle(c,i):getComputedStyle(c)),void 0===l){let e=p[t];"auto"===e?(l=c[`client${n}`],u=!0):l=parseFloat(e),"border-box"===p.boxSizing&&(u=!0,f=!0)}if(s!==u){let e=parseFloat(p[`padding-${r}`]||0)+parseFloat(p[`padding-${o}`]||0);s?l+=e:l-=e}if(d!==f){let e=parseFloat(p[`border-${r}-width`]||0)+parseFloat(p[`border-${o}-width`]||0);d?l+=e:l-=e}return l<0&&(l=0),a&&(l+=parseFloat(p[`margin-${r}`]||0)+parseFloat(p[`margin-${o}`]||0)),l}}},n=(e,t,n,r)=>(t,o,l=!1,i=!1,s=!1)=>{if(t===window)return;if(9===t.nodeType)return;const d=getComputedStyle(t);let a=!1;if("border-box"===d.boxSizing&&(a=!0),l=!!l,i=!!i,(s=!!s)&&(o-=(parseFloat(d[`margin-${n}`])||0)+(parseFloat(d[`margin-${r}`])||0)),l!==a){let e=parseFloat(d[`padding-${n}`]||0)+parseFloat(d[`padding-${r}`]||0);l?o-=e:o+=e}if(i!==a){let e=(parseFloat(d[`border-${n}-width`])||0)+(parseFloat(d[`border-${r}-width`])||0);i?o-=e:o+=e}o<0&&(o=0),t.style[e]=o+"px"},r=t(!1,"width","Width","left","right"),o=t(!1,"height","Height","top","bottom"),l=t(!0,"width","Width","left","right"),i=t(!0,"height","Height","top","bottom"),s=n("width",0,"left","right"),d=n("height",0,"top","bottom"),a=e=>{if(!e)return;let t=e.endsWith("ms");return parseFloat(e)*(t?1:1e3)},c=e=>/^-?(0?\.)?\d+m?s$/.test(e),p=e=>{let t=e.split(/\s+/),n=t[0],r=t[1],o=t[2],l=t[3];return c(o)?{delay:a(o),duration:a(r),name:n}:{delay:a(l),duration:a(r),name:n,timingFunction:o}};var u=Object.freeze({__proto__:null,getCssProps:function(e,t){const n=getComputedStyle(e);let r={};for(let o of t){let t=n[o];("width"===o||"height"===o)&&"auto"===t&&e instanceof HTMLElement&&(t=e["offset"+o.substr(0,1).toUpperCase()+o.substr(1)],"border-box"!==n.boxSizing&&("width"===o?(t-=parseFloat(n.paddingLeft||0),t-=parseFloat(n.paddingRight||0),t-=parseFloat(n.borderLeftWidth||0),t-=parseFloat(n.borderRightWidth||0)):(t-=parseFloat(n.paddingTop||0),t-=parseFloat(n.paddingBottom||0),t-=parseFloat(n.borderTopWidth||0),t-=parseFloat(n.borderBottomWidth||0)),t<0&&(t=0)),t+="px"),r[o]=t}return r},setCssProps:e,getElementWidth:r,getElementHeight:o,setElementWidth:s,setElementHeight:d,getPseudoElementWidth:l,getPseudoElementHeight:i,getElementOffset:e=>{if(!e.getClientRects().length)return{top:0,left:0};let t=e.getBoundingClientRect(),n=e.ownerDocument.defaultView;return{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}},anchoredPosition:function(e,t,n,o,l){let i,s,d,a;if(o||(o={width:r(e,!0,!0),height:r(e,!0,!0)}),"start"!==t&&"end"!==t||(null==l&&(l="rtl"===getComputedStyle(e).direction),t="start"===t?l?"right":"left":l?"left":"right"),"right"===t)i=o.width,d=0;else if("center"===t)i=o.width/2,d=i;else if("left"===t)i=0,d=o.width;else if(t&&"string"==typeof t&&"%"===t.charAt(t.length-1)){let n=(parseFloat(t)||0)/100;i=o.width*n,d=o.width*-n,null==l&&(l="rtl"===getComputedStyle(e).direction),l&&(i=o.width-i,d=o.width-i)}else i=parseFloat(t)||0,d=-i;if("bottom"===n)s=o.height,a=0;else if("center"===n)s=o.height/2,a=s;else if("top"===n)s=0,a=o.height;else if(n&&"string"==typeof n&&"%"===n.charAt(n.length-1)){let e=(parseFloat(n)||0)/100;s=o.height*e,a=o.height*-e}else s=parseFloat(n)||0,a=-s;return{left:i,top:s,right:d,bottom:a,xSpec:t,ySpec:n}},parseTransition:e=>e.match(/([^,()]|\([^)]*\))+/g).map((e=>e.trim())).filter((e=>e.length>0)).map(p),parseSingleTransition:p,isTimeString:c,timeToMs:a});const f=function(t,n){for(let[r,o]of Object.entries(n))null!=o&&("innerHTML"===r?t.innerHTML=String(o):"css"===r&&"style"in t?e(t,o):r in t&&"style"!==r?t[r]=o:t.setAttribute(r,String(o)))};var h=Object.freeze({__proto__:null,createElement:function(e,t,n){let r=document.createElement(e);if(t&&"object"==typeof t&&f(r,t),n)if(n instanceof Node)r.appendChild(n);else if(Array.isArray(n))for(let e of n)r.appendChild(e);return r},setElementAttrs:f,closestUntil:function(e,t,n){if("closest"in e&&!n)return e.closest(t);const r=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(r.call(e,t))return e;if(n&&e===n)return null;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null},prev:function(e,t){if(!e)return null;const n=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(n.call(e,t))return e;e=e.previousElementSibling||e.previousSibling}while(null!==e&&1===e.nodeType);return null},next:function(e,t){if(!e)return null;const n=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(n.call(e,t))return e;e=e.nextElementSibling||e.nextSibling}while(null!==e&&1===e.nodeType);return null},unwrapChildren:function(e){let t=e.parentNode;for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}});let g=null;const m=()=>{try{document.createElement("div").querySelector(":scope > div"),g=!0}catch(e){g=!1}};var y=Object.freeze({__proto__:null,getRootNode:function(e){if(!e)return null;if("getRootNode"in e)return e.getRootNode();for(;e.parentNode;)e=e.parentNode;return e},closest:function(e,t){if("closest"in e)return e.closest(t);const n=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(n.call(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null},remove:function(e){e&&("remove"in e&&e.remove(),e.parentNode&&e.parentNode.removeChild(e))},before:function(e,...t){if(0!==t.length)if("before"in e)e.before(...t);else if(1===t.length){let n=t[0];n=n instanceof Node?n:document.createTextNode(String(n)),e.parentNode.insertBefore(n,e)}else{let n=document.createDocumentFragment();for(const e of t){const t=e instanceof Node;n.appendChild(t?e:document.createTextNode(String(e)))}e.parentNode.insertBefore(n,e)}},after:function(e,...t){if(0!==t.length)if("after"in e)e.after(...t);else if(1===t.length){let n=t[0];n=n instanceof Node?n:document.createTextNode(String(n)),e.nextSibling?e.parentNode.insertBefore(n,e.nextSibling):e.parentNode.appendChild(n)}else{let n=document.createDocumentFragment();for(const e of t){const t=e instanceof Node;n.appendChild(t?e:document.createTextNode(String(e)))}e.nextSibling?e.parentNode.insertBefore(n,e.nextSibling):e.parentNode.appendChild(n)}},prepend:function(e,...t){if(0!==t.length)if("prepend"in e)e.prepend(...t);else if(1===t.length){let n=t[0];n=n instanceof Node?n:document.createTextNode(String(n)),e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n)}else{let n=document.createDocumentFragment();for(const e of t){const t=e instanceof Node;n.appendChild(t?e:document.createTextNode(String(e)))}e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n)}},append:function(e,...t){if(0!==t.length)if("append"in e)e.append(...t);else if(1===t.length){let n=t[0];n=n instanceof Node?n:document.createTextNode(String(n)),e.appendChild(n)}else{let n=document.createDocumentFragment();for(const e of t){const t=e instanceof Node;n.appendChild(t?e:document.createTextNode(String(e)))}e.appendChild(n)}},scopedSelector:function(e,t){if(null===g&&m(),!0===g)return e.querySelector(t.replace(/((?:^|,)\s*)/g,"$1:scope "));{let n=e.id;const r="ID_"+Date.now();e.id=r,t=t.replace(/((?:^|,)\s*)/g,"$1#"+r);try{return e.querySelector(t)}finally{this.id=n}}},scopedSelectorAll:function(e,t){if(null===g&&m(),!0===g)return e.querySelectorAll(t.replace(/((?:^|,)\s*)/g,"$1:scope "));{let n=e.id;const r="ID_"+Date.now();e.id=r,t=t.replace(/((?:^|,)\s*)/g,"$1#"+r);try{return e.querySelectorAll(t)}finally{this.id=n}}},toggleClass:function(e,t,n){let r=e.classList;return void 0===n?r.contains(t)?(r.remove(t),!1):(r.add(t),!0):n?(r.add(t),!0):(r.remove(t),!1)}}),v=Object.freeze({__proto__:null,default:class{constructor(){this._events=[]}add(e,t,n,r){let o=t.split("."),l=o[0],i=o[1];e.addEventListener(l,n,r||!1);let s=!0===r||"object"==typeof r&&!0===r.capture;return this._events.push({el:e,name:l,namespace:i,handler:n,useCapture:s}),this}remove(e,t,n,r){let o=t?t.split("."):"",l=o[0],i=o[1],s=!0===r||"object"==typeof r&&!0===r.capture,d=[],a=[];if(e||l||i||n||void 0!==r)for(let t of this._events)e&&t.el!==e||l&&t.name!==l||i&&t.namespace!==i||n&&t.handler!==n||void 0!==r&&t.useCapture!==s?d.push(t):a.push(t);else a=this._events;this._events=d;for(let e of a)e.el.removeEventListener(e.name,e.handler,e.useCapture);return this}}}),b=Object.freeze({__proto__:null,bindTouchTap:function(e,t){let n=null,r=null;const o=t=>{if(null!==n)return;let o=t.changedTouches[0];n=o.identifier,r=o?{x:o.pageX,y:o.pageY}:{x:t.pageX,y:t.pageY},e.addEventListener("touchend",l),e.addEventListener("touchcancel",i)},l=e=>{if(null===n)return;let o=null;if(e.changedTouches){if(null!=n)for(let t of e.changedTouches)if(t.identifier===n){o=t;break}o||(o=e.changedTouches[0])}let l=o?{x:o.pageX,y:o.pageY}:{x:e.pageX,y:e.pageY},i=r;if(n=null,r=null,null!==t.distance){let e=t.distance||1;if(Math.hypot(Math.abs(l.x-i.x),Math.abs(l.y-i.y))>=e)return!1}t.handler&&t.handler(e)},i=()=>{n=null,r=null,e.removeEventListener("touchend",l),e.removeEventListener("touchcancel",i)};return e.addEventListener("touchstart",o),{unbind:()=>{e.removeEventListener("touchstart",o),e.removeEventListener("touchend",l),e.removeEventListener("touchcancel",i)}}}});let S;const C=()=>{const e=document.createElement("div");e.dir="rtl",Object.assign(e.style,{direction:"rtl",fontSize:"14px",width:"1px",height:"1px",position:"absolute",top:"-1000px",overflow:"scroll"}),e.textContent="A",document.body.appendChild(e);let t="reverse";return e.scrollLeft>0?t="default":(e.scrollLeft=1,0===e.scrollLeft&&(t="negative")),e.parentNode.removeChild(e),t};function E(e,t,n){if(void 0===n&&(n="rtl"===getComputedStyle(e).direction),!0===n&&void 0===S&&(S=C()),!n)return t;switch(S){case"negative":return t-e.scrollWidth+e.clientWidth;case"reverse":return e.scrollWidth-t-e.clientWidth;default:return t}}function w(e,t){if(void 0===t&&(t="rtl"===getComputedStyle(e).direction),!0===t&&void 0===S&&(S=C()),!t)return e.scrollLeft;switch(S){case"negative":return e.scrollLeft+e.scrollWidth-e.clientWidth;case"reverse":return e.scrollWidth-e.scrollLeft-e.clientWidth;default:return e.scrollLeft}}function x(e,t,n){return void 0===n&&(n="rtl"===getComputedStyle(e).direction),E(e,n?e.scrollWidth-e.clientWidth-t:t,n)}var N=Object.freeze({__proto__:null,calculateNativeScrollLeftForLeft:E,getScrollLeft:w,setScrollLeft:function(e,t,n){e.scrollLeft=E(e,t,n)},calculateNativeScrollLeftForHorz:x,getScrollHorz:function(e,t){return void 0===t&&(t="rtl"===getComputedStyle(e).direction),t?e.scrollWidth-e.clientWidth-w(e,t):w(e,t)},setScrollHorz:function(e,t,n){e.scrollLeft=x(e,t,n)}});export{u as Css,h as Dom,y as DomCompat,v as DomEventsSink,N as ScrollHelper,b as Touches};
//# sourceMappingURL=lib.es6.min.js.map
/*!
* @danielgindi/dom-utils 1.0.5
* @danielgindi/dom-utils 1.0.6
* git://github.com/danielgindi/dom-utils.git
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).domutils={})}(this,(function(e){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e){this.wrapped=e}function r(e){var t,r;function o(t,r){try{var a=e[t](r),l=a.value,c=l instanceof n;Promise.resolve(c?l.wrapped:l).then((function(e){c?o("return"===t?"return":"next",e):i(a.done?"return":"normal",e)}),(function(e){o("throw",e)}))}catch(e){i("throw",e)}}function i(e,n){switch(e){case"return":t.resolve({value:n,done:!0});break;case"throw":t.reject(n);break;default:t.resolve({value:n,done:!1})}(t=t.next)?o(t.key,t.arg):r=null}this._invoke=function(e,n){return new Promise((function(i,a){var l={key:e,arg:n,resolve:i,reject:a,next:null};r?r=r.next=l:(t=r=l,o(e,n))}))},"function"!=typeof e.return&&(this.return=void 0)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=a(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},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,l=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,i=e},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw i}}}}r.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},r.prototype.next=function(e){return this._invoke("next",e)},r.prototype.throw=function(e){return this._invoke("throw",e)},r.prototype.return=function(e){return this._invoke("return",e)};var u,f,s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},d=function(e){return e&&e.Math==Math&&e},p=d("object"==typeof globalThis&&globalThis)||d("object"==typeof window&&window)||d("object"==typeof self&&self)||d("object"==typeof s&&s)||function(){return this}()||Function("return this")(),h={},v=function(e){try{return!!e()}catch(e){return!0}},g=!v((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),y={},m={}.propertyIsEnumerable,b=Object.getOwnPropertyDescriptor,x=b&&!m.call({1:2},1),S=(y.f=x?function(e){var t=b(this,e);return!!t&&t.enumerable}:m,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),w={}.toString,E=function(e){return w.call(e).slice(8,-1)},O=E,j="".split,T=v((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==O(e)?j.call(e,""):Object(e)}:Object,C=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},A=T,I=C,_=function(e){return A(I(e))},N=function(e){return"function"==typeof e},F=N,R=function(e){return"object"==typeof e?null!==e:F(e)},P=p,L=N,M=function(e){return L(e)?e:void 0},k=function(e,t){return arguments.length<2?M(P[e]):P[e]&&P[e][t]},W=p,$=k("navigator","userAgent")||"",D=W.process,z=W.Deno,B=D&&D.versions||z&&z.version,H=B&&B.v8;H?f=(u=H.split("."))[0]<4?1:u[0]+u[1]:$&&(!(u=$.match(/Edge\/(\d+)/))||u[1]>=74)&&(u=$.match(/Chrome\/(\d+)/))&&(f=u[1]);var U=f&&+f,Y=U,q=v,X=!!Object.getOwnPropertySymbols&&!q((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Y&&Y<41})),G=X&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,K=N,V=k,J=G?function(e){return"symbol"==typeof e}:function(e){var t=V("Symbol");return K(t)&&Object(e)instanceof t},Q=function(e){try{return String(e)}catch(e){return"Object"}},Z=N,ee=Q,te=function(e){if(Z(e))return e;throw TypeError(ee(e)+" is not a function")},ne=te,re=function(e,t){var n=e[t];return null==n?void 0:ne(n)},oe=N,ie=R,ae={exports:{}},le=p,ce=function(e,t){try{Object.defineProperty(le,e,{value:t,configurable:!0,writable:!0})}catch(n){le[e]=t}return t},ue=ce,fe="__core-js_shared__",se=p[fe]||ue(fe,{}),de=se;(ae.exports=function(e,t){return de[e]||(de[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.18.2",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"}),ae.exports;var pe=C,he=function(e){return Object(pe(e))},ve=he,ge={}.hasOwnProperty,ye=Object.hasOwn||function(e,t){return ge.call(ve(e),t)},me=0,be=Math.random(),xe=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++me+be).toString(36)},Se=p,we=ae.exports,Ee=ye,Oe=xe,je=X,Te=G,Ce=we("wks"),Ae=Se.Symbol,Ie=Te?Ae:Ae&&Ae.withoutSetter||Oe,_e=function(e){return Ee(Ce,e)&&(je||"string"==typeof Ce[e])||(je&&Ee(Ae,e)?Ce[e]=Ae[e]:Ce[e]=Ie("Symbol."+e)),Ce[e]},Ne=R,Fe=J,Re=re,Pe=_e("toPrimitive"),Le=function(e,t){if(!Ne(e)||Fe(e))return e;var n,r=Re(e,Pe);if(r){if(void 0===t&&(t="default"),n=r.call(e,t),!Ne(n)||Fe(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&oe(n=e.toString)&&!ie(r=n.call(e)))return r;if(oe(n=e.valueOf)&&!ie(r=n.call(e)))return r;if("string"!==t&&oe(n=e.toString)&&!ie(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}(e,t)},Me=J,ke=function(e){var t=Le(e,"string");return Me(t)?t:String(t)},We=R,$e=p.document,De=We($e)&&We($e.createElement),ze=function(e){return De?$e.createElement(e):{}},Be=ze,He=!g&&!v((function(){return 7!=Object.defineProperty(Be("div"),"a",{get:function(){return 7}}).a})),Ue=g,Ye=y,qe=S,Xe=_,Ge=ke,Ke=ye,Ve=He,Je=Object.getOwnPropertyDescriptor,Qe=(h.f=Ue?Je:function(e,t){if(e=Xe(e),t=Ge(t),Ve)try{return Je(e,t)}catch(e){}if(Ke(e,t))return qe(!Ye.f.call(e,t),e[t])},{}),Ze=R,et=function(e){if(Ze(e))return e;throw TypeError(String(e)+" is not an object")},tt=g,nt=He,rt=et,ot=ke,it=Object.defineProperty,at=(Qe.f=tt?it:function(e,t,n){if(rt(e),t=ot(t),rt(n),nt)try{return it(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Qe),lt=S,ct=g?function(e,t,n){return at.f(e,t,lt(1,n))}:function(e,t,n){return e[t]=n,e},ut={exports:{}},ft=N,st=se,dt=Function.toString;ft(st.inspectSource)||(st.inspectSource=function(e){return dt.call(e)});var pt,ht,vt,gt=st.inspectSource,yt=N,mt=gt,bt=p.WeakMap,xt=yt(bt)&&/native code/.test(mt(bt)),St=ae.exports,wt=xe,Et=St("keys"),Ot=function(e){return Et[e]||(Et[e]=wt(e))},jt={},Tt=xt,Ct=R,At=ct,It=ye,_t=se,Nt=Ot,Ft=jt,Rt="Object already initialized",Pt=p.WeakMap;if(Tt||_t.state){var Lt=_t.state||(_t.state=new Pt),Mt=Lt.get,kt=Lt.has,Wt=Lt.set;pt=function(e,t){if(kt.call(Lt,e))throw new TypeError(Rt);return t.facade=e,Wt.call(Lt,e,t),t},ht=function(e){return Mt.call(Lt,e)||{}},vt=function(e){return kt.call(Lt,e)}}else{var $t=Nt("state");Ft[$t]=!0,pt=function(e,t){if(It(e,$t))throw new TypeError(Rt);return t.facade=e,At(e,$t,t),t},ht=function(e){return It(e,$t)?e[$t]:{}},vt=function(e){return It(e,$t)}}var Dt={set:pt,get:ht,has:vt,enforce:function(e){return vt(e)?ht(e):pt(e,{})},getterFor:function(e){return function(t){var n;if(!Ct(t)||(n=ht(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},zt=g,Bt=ye,Ht=Function.prototype,Ut=zt&&Object.getOwnPropertyDescriptor,Yt=Bt(Ht,"name"),qt={EXISTS:Yt,PROPER:Yt&&"something"===function(){}.name,CONFIGURABLE:Yt&&(!zt||zt&&Ut(Ht,"name").configurable)},Xt=p,Gt=N,Kt=ye,Vt=ct,Jt=ce,Qt=gt,Zt=qt.CONFIGURABLE,en=Dt.get,tn=Dt.enforce,nn=String(String).split("String");(ut.exports=function(e,t,n,r){var o,i=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,l=!!r&&!!r.noTargetGet,c=r&&void 0!==r.name?r.name:t;Gt(n)&&("Symbol("===String(c).slice(0,7)&&(c="["+String(c).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Kt(n,"name")||Zt&&n.name!==c)&&Vt(n,"name",c),(o=tn(n)).source||(o.source=nn.join("string"==typeof c?c:""))),e!==Xt?(i?!l&&e[t]&&(a=!0):delete e[t],a?e[t]=n:Vt(e,t,n)):a?e[t]=n:Jt(t,n)})(Function.prototype,"toString",(function(){return Gt(this)&&en(this).source||Qt(this)})),ut.exports;var rn={},on=Math.ceil,an=Math.floor,ln=function(e){var t=+e;return t!=t||0===t?0:(t>0?an:on)(t)},cn=ln,un=Math.max,fn=Math.min,sn=ln,dn=Math.min,pn=function(e){return e>0?dn(sn(e),9007199254740991):0},hn=pn,vn=function(e){return hn(e.length)},gn=_,yn=vn,mn=function(e){return function(t,n,r){var o,i=gn(t),a=yn(i),l=function(e,t){var n=cn(e);return n<0?un(n+t,0):fn(n,t)}(r,a);if(e&&n!=n){for(;a>l;)if((o=i[l++])!=o)return!0}else for(;a>l;l++)if((e||l in i)&&i[l]===n)return e||l||0;return!e&&-1}},bn={includes:mn(!0),indexOf:mn(!1)},xn=ye,Sn=_,wn=bn.indexOf,En=jt,On=function(e,t){var n,r=Sn(e),o=0,i=[];for(n in r)!xn(En,n)&&xn(r,n)&&i.push(n);for(;t.length>o;)xn(r,n=t[o++])&&(~wn(i,n)||i.push(n));return i},jn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Tn=On,Cn=jn.concat("length","prototype"),An=(rn.f=Object.getOwnPropertyNames||function(e){return Tn(e,Cn)},{}),In=(An.f=Object.getOwnPropertySymbols,rn),_n=An,Nn=et,Fn=k("Reflect","ownKeys")||function(e){var t=In.f(Nn(e)),n=_n.f;return n?t.concat(n(e)):t},Rn=ye,Pn=Fn,Ln=h,Mn=Qe,kn=v,Wn=N,$n=/#|\.prototype\./,Dn=function(e,t){var n=Bn[zn(e)];return n==Un||n!=Hn&&(Wn(t)?kn(t):!!t)},zn=Dn.normalize=function(e){return String(e).replace($n,".").toLowerCase()},Bn=Dn.data={},Hn=Dn.NATIVE="N",Un=Dn.POLYFILL="P",Yn=Dn,qn=p,Xn=h.f,Gn=ct,Kn=ut.exports,Vn=ce,Jn=function(e,t){for(var n=Pn(t),r=Mn.f,o=Ln.f,i=0;i<n.length;i++){var a=n[i];Rn(e,a)||r(e,a,o(t,a))}},Qn=Yn,Zn=function(e,t){var n,r,o,i,a,l=e.target,c=e.global,u=e.stat;if(n=c?qn:u?qn[l]||Vn(l,{}):(qn[l]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Xn(n,r))&&a.value:n[r],!Qn(c?r:l+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Jn(i,o)}(e.sham||o&&o.sham)&&Gn(i,"sham",!0),Kn(n,r,i,e)}},er=On,tr=jn,nr=Object.keys||function(e){return er(e,tr)},rr=g,or=nr,ir=_,ar=y.f,lr=function(e){return function(t){for(var n,r=ir(t),o=or(r),i=o.length,a=0,l=[];i>a;)n=o[a++],rr&&!ar.call(r,n)||l.push(e?[n,r[n]]:r[n]);return l}},cr=[lr(!0),lr(!1)][0];Zn({target:"Object",stat:!0},{entries:function(e){return cr(e)}});var ur={};ur[_e("toStringTag")]="z";var fr,sr="[object z]"===String(ur),dr=N,pr=E,hr=_e("toStringTag"),vr="Arguments"==pr(function(){return arguments}()),gr=sr?pr:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),hr))?n:vr?pr(t):"Object"==(r=pr(t))&&dr(t.callee)?"Arguments":r},yr=gr,mr=function(e){if("Symbol"===yr(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)},br=R,xr=E,Sr=_e("match"),wr=function(e){var t;return br(e)&&(void 0!==(t=e[Sr])?!!t:"RegExp"==xr(e))},Er=wr,Or=_e("match"),jr=Zn,Tr=h.f,Cr=pn,Ar=mr,Ir=function(e){if(Er(e))throw TypeError("The method doesn't accept regular expressions");return e},_r=C,Nr="".endsWith,Fr=Math.min,Rr=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[Or]=!1,"/./"[e](t)}catch(e){}}return!1}("endsWith");jr({target:"String",proto:!0,forced:!(!Rr&&(fr=Tr(String.prototype,"endsWith"),fr&&!fr.writable)||Rr)},{endsWith:function(e){var t=Ar(_r(this));Ir(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:Fr(Cr(n),r),i=Ar(e);return Nr?Nr.call(t,i,o):t.slice(o-i.length,o)===i}});var Pr,Lr=et,Mr={},kr=v,Wr=p.RegExp,$r=(Mr.UNSUPPORTED_Y=kr((function(){var e=Wr("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Mr.BROKEN_CARET=kr((function(){var e=Wr("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),Qe),Dr=et,zr=nr,Br=g?Object.defineProperties:function(e,t){Dr(e);for(var n,r=zr(t),o=r.length,i=0;o>i;)$r.f(e,n=r[i++],t[n]);return e},Hr=k("document","documentElement"),Ur=et,Yr=Br,qr=jn,Xr=jt,Gr=Hr,Kr=ze,Vr=Ot("IE_PROTO"),Jr=function(){},Qr=function(e){return"<script>"+e+"<\/script>"},Zr=function(e){e.write(Qr("")),e.close();var t=e.parentWindow.Object;return e=null,t},eo=function(){try{Pr=new ActiveXObject("htmlfile")}catch(e){}var e,t;eo="undefined"!=typeof document?document.domain&&Pr?Zr(Pr):((t=Kr("iframe")).style.display="none",Gr.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Qr("document.F=Object")),e.close(),e.F):Zr(Pr);for(var n=qr.length;n--;)delete eo.prototype[qr[n]];return eo()};Xr[Vr]=!0;var to,no,ro=Object.create||function(e,t){var n;return null!==e?(Jr.prototype=Ur(e),n=new Jr,Jr.prototype=null,n[Vr]=e):n=eo(),void 0===t?n:Yr(n,t)},oo=v,io=p.RegExp,ao=oo((function(){var e=io(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),lo=v,co=p.RegExp,uo=lo((function(){var e=co("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),fo=mr,so=function(){var e=Lr(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},po=Mr,ho=ae.exports,vo=ro,go=Dt.get,yo=ao,mo=uo,bo=RegExp.prototype.exec,xo=ho("native-string-replace",String.prototype.replace),So=bo,wo=(to=/a/,no=/b*/g,bo.call(to,"a"),bo.call(no,"a"),0!==to.lastIndex||0!==no.lastIndex),Eo=po.UNSUPPORTED_Y||po.BROKEN_CARET,Oo=void 0!==/()??/.exec("")[1];(wo||Oo||Eo||yo||mo)&&(So=function(e){var t,n,r,o,i,a,l,c=this,u=go(c),f=fo(e),s=u.raw;if(s)return s.lastIndex=c.lastIndex,t=So.call(s,f),c.lastIndex=s.lastIndex,t;var d=u.groups,p=Eo&&c.sticky,h=so.call(c),v=c.source,g=0,y=f;if(p&&(-1===(h=h.replace("y","")).indexOf("g")&&(h+="g"),y=f.slice(c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==f.charAt(c.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),Oo&&(n=new RegExp("^"+v+"$(?!\\s)",h)),wo&&(r=c.lastIndex),o=bo.call(p?n:c,y),p?o?(o.input=o.input.slice(g),o[0]=o[0].slice(g),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:wo&&o&&(c.lastIndex=c.global?o.index+o[0].length:r),Oo&&o&&o.length>1&&xo.call(o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=vo(null),i=0;i<d.length;i++)a[(l=d[i])[0]]=o[l[1]];return o});var jo=So;Zn({target:"RegExp",proto:!0,forced:/./.exec!==jo},{exec:jo});var To=ut.exports,Co=jo,Ao=v,Io=_e,_o=ct,No=Io("species"),Fo=RegExp.prototype,Ro=function(e,t,n,r){var o=Io(e),i=!Ao((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Ao((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[No]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var l=/./[o],c=t(o,""[e],(function(e,t,n,r,o){var a=t.exec;return a===Co||a===Fo.exec?i&&!o?{done:!0,value:l.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}));To(String.prototype,e,c[0]),To(Fo,o,c[1])}r&&_o(Fo[o],"sham",!0)},Po=v,Lo=N,Mo=gr,ko=gt,Wo=[],$o=k("Reflect","construct"),Do=/^\s*(?:class|function)\b/,zo=Do.exec,Bo=!Do.exec((function(){})),Ho=function(e){if(!Lo(e))return!1;try{return $o(Object,Wo,e),!0}catch(e){return!1}},Uo=!$o||Po((function(){var e;return Ho(Ho.call)||!Ho(Object)||!Ho((function(){e=!0}))||e}))?function(e){if(!Lo(e))return!1;switch(Mo(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Bo||!!zo.call(Do,ko(e))}:Ho,Yo=Uo,qo=Q,Xo=et,Go=_e("species"),Ko=ln,Vo=mr,Jo=C,Qo=function(e){return function(t,n){var r,o,i=Vo(Jo(t)),a=Ko(n),l=i.length;return a<0||a>=l?e?"":void 0:(r=i.charCodeAt(a))<55296||r>56319||a+1===l||(o=i.charCodeAt(a+1))<56320||o>57343?e?i.charAt(a):r:e?i.slice(a,a+2):o-56320+(r-55296<<10)+65536}},Zo=(Qo(!1),Qo(!0)),ei=function(e,t,n){return t+(n?Zo(e,t).length:1)},ti=et,ni=N,ri=E,oi=jo,ii=function(e,t){var n=e.exec;if(ni(n)){var r=n.call(e,t);return null!==r&&ti(r),r}if("RegExp"===ri(e))return oi.call(e,t);throw TypeError("RegExp#exec called on incompatible receiver")},ai=Ro,li=wr,ci=et,ui=C,fi=function(e,t){var n,r=Xo(e).constructor;return void 0===r||null==(n=Xo(r)[Go])?t:function(e){if(Yo(e))return e;throw TypeError(qo(e)+" is not a constructor")}(n)},si=ei,di=pn,pi=mr,hi=re,vi=ii,gi=jo,yi=v,mi=Mr.UNSUPPORTED_Y,bi=[].push,xi=Math.min,Si=4294967295;ai("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=pi(ui(this)),o=void 0===n?Si:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!li(e))return t.call(r,e,o);for(var i,a,l,c=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,s=new RegExp(e.source,u+"g");(i=gi.call(s,r))&&!((a=s.lastIndex)>f&&(c.push(r.slice(f,i.index)),i.length>1&&i.index<r.length&&bi.apply(c,i.slice(1)),l=i[0].length,f=a,c.length>=o));)s.lastIndex===i.index&&s.lastIndex++;return f===r.length?!l&&s.test("")||c.push(""):c.push(r.slice(f)),c.length>o?c.slice(0,o):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=ui(this),i=null==t?void 0:hi(t,e);return i?i.call(t,o,n):r.call(pi(o),t,n)},function(e,o){var i=ci(this),a=pi(e),l=n(r,i,a,o,r!==t);if(l.done)return l.value;var c=fi(i,RegExp),u=i.unicode,f=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(mi?"g":"y"),s=new c(mi?"^(?:"+i.source+")":i,f),d=void 0===o?Si:o>>>0;if(0===d)return[];if(0===a.length)return null===vi(s,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){s.lastIndex=mi?0:h;var g,y=vi(s,mi?a.slice(h):a);if(null===y||(g=xi(di(s.lastIndex+(mi?h:0)),a.length))===p)h=si(a,h,u);else{if(v.push(a.slice(p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(v.push(y[m]),v.length===d)return v;h=p=g}}return v.push(a.slice(p)),v}]}),!!yi((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),mi);var wi=te,Ei=E,Oi=Array.isArray||function(e){return"Array"==Ei(e)},ji=Uo,Ti=R,Ci=_e("species"),Ai=T,Ii=he,_i=vn,Ni=function(e,t){return new(function(e){var t;return Oi(e)&&(t=e.constructor,(ji(t)&&(t===Array||Oi(t.prototype))||Ti(t)&&null===(t=t[Ci]))&&(t=void 0)),void 0===t?Array:t}(e))(0===t?0:t)},Fi=[].push,Ri=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,l=5==e||i;return function(c,u,f,s){for(var d,p,h=Ii(c),v=Ai(h),g=function(e,t,n){if(wi(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}(u,f,3),y=_i(v),m=0,b=s||Ni,x=t?b(c,y):n||a?b(c,0):void 0;y>m;m++)if((l||m in v)&&(p=g(d=v[m],m,h),e))if(t)x[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Fi.call(x,d)}else switch(e){case 4:return!1;case 7:Fi.call(x,d)}return i?-1:r||o?o:x}},Pi={forEach:Ri(0),map:Ri(1),filter:Ri(2),some:Ri(3),every:Ri(4),find:Ri(5),findIndex:Ri(6),filterReject:Ri(7)},Li=v,Mi=U,ki=_e("species"),Wi=function(e){return Mi>=51||!Li((function(){var t=[];return(t.constructor={})[ki]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},$i=Pi.map;Zn({target:"Array",proto:!0,forced:!Wi("map")},{map:function(e){return $i(this,e,arguments.length>1?arguments[1]:void 0)}});var Di=Pi.filter;Zn({target:"Array",proto:!0,forced:!Wi("filter")},{filter:function(e){return Di(this,e,arguments.length>1?arguments[1]:void 0)}});var zi=et,Bi=pn,Hi=mr,Ui=C,Yi=re,qi=ei,Xi=ii;Ro("match",(function(e,t,n){return[function(t){var n=Ui(this),r=null==t?void 0:Yi(t,e);return r?r.call(t,n):new RegExp(t)[e](Hi(n))},function(e){var r=zi(this),o=Hi(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return Xi(r,o);var a=r.unicode;r.lastIndex=0;for(var l,c=[],u=0;null!==(l=Xi(r,o));){var f=Hi(l[0]);c[u]=f,""===f&&(r.lastIndex=qi(o,Bi(r.lastIndex),a)),u++}return 0===u?null:c}]}));var Gi,Ki=C,Vi=mr,Ji="[\t\n\v\f\r                 \u2028\u2029\ufeff]",Qi=RegExp("^"+Ji+Ji+"*"),Zi=RegExp(Ji+Ji+"*$"),ea=function(e){return function(t){var n=Vi(Ki(t));return 1&e&&(n=n.replace(Qi,"")),2&e&&(n=n.replace(Zi,"")),n}},ta={start:ea(1),end:ea(2),trim:ea(3)},na=qt.PROPER,ra="\t\n\v\f\r                 \u2028\u2029\ufeff",oa=ta.trim;Zn({target:"String",proto:!0,forced:(Gi="trim",v((function(){return!!ra.trim()||"​…᠎"!=="​…᠎".trim()||na&&ra.trim.name!==Gi})))},{trim:function(){return oa(this)}});var ia=function(e,t){for(var n=0,r=Object.entries(t);n<r.length;n++){var o=i(r[n],2),a=o[0],l=o[1];e.style[a]=null==l?"":String(l)}},aa=function(e,t,n,r,o){return function(){var i,a,l,c,u=arguments.length<=0?void 0:arguments[0];if(e?(i=arguments.length<=1?void 0:arguments[1],a=!!(arguments.length<=2?void 0:arguments[2]),l=!!(arguments.length<=3?void 0:arguments[3]),c=!!(arguments.length<=4?void 0:arguments[4])):(a=!!(arguments.length<=1?void 0:arguments[1]),l=!!(arguments.length<=2?void 0:arguments[2]),c=!!(arguments.length<=3?void 0:arguments[3])),u===window)return u.document.documentElement["client".concat(n)];if(9===u.nodeType){var f=u.documentElement,s=u.body;return Math.max(s["scroll".concat(n)],f["scroll".concat(n)],s["offset".concat(n)],f["offset".concat(n)],f["client".concat(n)])}var d,p,h=!1,v=!1;if(!e&&"getBoundingClientRect"in u&&(d=u.getBoundingClientRect()[t],h=!0,v=!0),(void 0===d||c||h!==a||v!==l)&&(p=e?getComputedStyle(u,i):getComputedStyle(u)),void 0===d){var g=p[t];"auto"===g?(d=u["client".concat(n)],h=!0):d=parseFloat(g),"border-box"===p.boxSizing&&(h=!0,v=!0)}if(a!==h){var y=parseFloat(p["padding-".concat(r)]||0)+parseFloat(p["padding-".concat(o)]||0);a?d+=y:d-=y}if(l!==v){var m=parseFloat(p["border-".concat(r,"-width")]||0)+parseFloat(p["border-".concat(o,"-width")]||0);l?d+=m:d-=m}if(d<0&&(d=0),c){var b=parseFloat(p["margin-".concat(r)]||0)+parseFloat(p["margin-".concat(o)]||0);d+=b}return d}},la=function(e,t,n,r){return function(t,o){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(t!==window&&9!==t.nodeType){var c=getComputedStyle(t),u=!1;if("border-box"===c.boxSizing&&(u=!0),i=!!i,a=!!a,(l=!!l)&&(o-=(parseFloat(c["margin-".concat(n)])||0)+(parseFloat(c["margin-".concat(r)])||0)),i!==u){var f=parseFloat(c["padding-".concat(n)]||0)+parseFloat(c["padding-".concat(r)]||0);i?o-=f:o+=f}if(a!==u){var s=(parseFloat(c["border-".concat(n,"-width")])||0)+(parseFloat(c["border-".concat(r,"-width")])||0);a?o-=s:o+=s}o<0&&(o=0),t.style[e]=o+"px"}}},ca=aa(!1,"width","Width","left","right"),ua=aa(!1,"height","Height","top","bottom"),fa=aa(!0,"width","Width","left","right"),sa=aa(!0,"height","Height","top","bottom"),da=la("width",0,"left","right"),pa=la("height",0,"top","bottom"),ha=function(e){if(e){var t=e.endsWith("ms");return parseFloat(e)*(t?1:1e3)}},va=function(e){return/^-?(0?\.)?\d+m?s$/.test(e)},ga=function(e){var t=e.split(/\s+/),n=t[0],r=t[1],o=t[2],i=t[3];return va(o)?{delay:ha(o),duration:ha(r),name:n}:{delay:ha(i),duration:ha(r),name:n,timingFunction:o}},ya=Object.freeze({__proto__:null,getCssProps:function(e,t){var n,r=getComputedStyle(e),o={},i=c(t);try{for(i.s();!(n=i.n()).done;){var a=n.value,l=r[a];("width"===a||"height"===a)&&"auto"===l&&e instanceof HTMLElement&&(l=e["offset"+a.substr(0,1).toUpperCase()+a.substr(1)],"border-box"!==r.boxSizing&&("width"===a?(l-=parseFloat(r.paddingLeft||0),l-=parseFloat(r.paddingRight||0),l-=parseFloat(r.borderLeftWidth||0),l-=parseFloat(r.borderRightWidth||0)):(l-=parseFloat(r.paddingTop||0),l-=parseFloat(r.paddingBottom||0),l-=parseFloat(r.borderTopWidth||0),l-=parseFloat(r.borderBottomWidth||0)),l<0&&(l=0)),l+="px"),o[a]=l}}catch(e){i.e(e)}finally{i.f()}return o},setCssProps:ia,getElementWidth:ca,getElementHeight:ua,setElementWidth:da,setElementHeight:pa,getPseudoElementWidth:fa,getPseudoElementHeight:sa,getElementOffset:function(e){if(!e.getClientRects().length)return{top:0,left:0};var t=e.getBoundingClientRect(),n=e.ownerDocument.defaultView;return{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}},anchoredPosition:function(e,t,n,r,o){var i,a,l,c;if(r||(r={width:ca(e,!0,!0),height:ca(e,!0,!0)}),"start"!==t&&"end"!==t||(null==o&&(o="rtl"===getComputedStyle(e).direction),t="start"===t?o?"right":"left":o?"left":"right"),"right"===t)i=r.width,l=0;else if("center"===t)l=i=r.width/2;else if("left"===t)i=0,l=r.width;else if(t&&"string"==typeof t&&"%"===t.charAt(t.length-1)){var u=(parseFloat(t)||0)/100;i=r.width*u,l=r.width*-u,null==o&&(o="rtl"===getComputedStyle(e).direction),o&&(i=r.width-i,l=r.width-i)}else l=-(i=parseFloat(t)||0);if("bottom"===n)a=r.height,c=0;else if("center"===n)c=a=r.height/2;else if("top"===n)a=0,c=r.height;else if(n&&"string"==typeof n&&"%"===n.charAt(n.length-1)){var f=(parseFloat(n)||0)/100;a=r.height*f,c=r.height*-f}else c=-(a=parseFloat(n)||0);return{left:i,top:a,right:l,bottom:c,xSpec:t,ySpec:n}},parseTransition:function(e){return e.match(/([^,()]|\([^)]*\))+/g).map((function(e){return e.trim()})).filter((function(e){return e.length>0})).map(ga)},parseSingleTransition:ga,isTimeString:va,timeToMs:ha}),ma=function(e,t){for(var n=0,r=Object.entries(t);n<r.length;n++){var o=i(r[n],2),a=o[0],l=o[1];null!=l&&("innerHTML"===a?e.innerHTML=String(l):"css"===a&&"style"in e?ia(e,l):"readOnly"===a||"tabIndex"===a||"textContent"===a?e[a]=l:e.setAttribute(a,String(l)))}},ba=Object.freeze({__proto__:null,createElement:function(e,n,r){var o=document.createElement(e);if(n&&"object"===t(n)&&ma(o,n),r)if(r instanceof Node)o.appendChild(r);else if(Array.isArray(r)){var i,a=c(r);try{for(a.s();!(i=a.n()).done;){var l=i.value;o.appendChild(l)}}catch(e){a.e(e)}finally{a.f()}}return o},setElementAttrs:ma,closestUntil:function(e,t,n){if("closest"in e&&!n)return e.closest(t);var r=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(r.call(e,t))return e;if(n&&e===n)return null;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null},prev:function(e,t){if(!e)return null;var n=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(n.call(e,t))return e;e=e.previousElementSibling||e.previousSibling}while(null!==e&&1===e.nodeType);return null},next:function(e,t){if(!e)return null;var n=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(n.call(e,t))return e;e=e.nextElementSibling||e.nextSibling}while(null!==e&&1===e.nodeType);return null}}),xa=he,Sa=Math.floor,wa="".replace,Ea=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Oa=/\$([$&'`]|\d{1,2})/g,ja=Ro,Ta=v,Ca=et,Aa=N,Ia=ln,_a=pn,Na=mr,Fa=C,Ra=ei,Pa=re,La=function(e,t,n,r,o,i){var a=n+e.length,l=r.length,c=Oa;return void 0!==o&&(o=xa(o),c=Ea),wa.call(i,c,(function(i,c){var u;switch(c.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(a);case"<":u=o[c.slice(1,-1)];break;default:var f=+c;if(0===f)return i;if(f>l){var s=Sa(f/10);return 0===s?i:s<=l?void 0===r[s-1]?c.charAt(1):r[s-1]+c.charAt(1):i}u=r[f-1]}return void 0===u?"":u}))},Ma=ii,ka=_e("replace"),Wa=Math.max,$a=Math.min,Da="$0"==="a".replace(/./,"$0"),za=!!/./[ka]&&""===/./[ka]("a","$0");ja("replace",(function(e,t,n){var r=za?"$":"$0";return[function(e,n){var r=Fa(this),o=null==e?void 0:Pa(e,ka);return o?o.call(e,r,n):t.call(Na(r),e,n)},function(e,o){var i=Ca(this),a=Na(e);if("string"==typeof o&&-1===o.indexOf(r)&&-1===o.indexOf("$<")){var l=n(t,i,a,o);if(l.done)return l.value}var c=Aa(o);c||(o=Na(o));var u=i.global;if(u){var f=i.unicode;i.lastIndex=0}for(var s=[];;){var d=Ma(i,a);if(null===d)break;if(s.push(d),!u)break;""===Na(d[0])&&(i.lastIndex=Ra(a,_a(i.lastIndex),f))}for(var p,h="",v=0,g=0;g<s.length;g++){d=s[g];for(var y=Na(d[0]),m=Wa($a(Ia(d.index),a.length),0),b=[],x=1;x<d.length;x++)b.push(void 0===(p=d[x])?p:String(p));var S=d.groups;if(c){var w=[y].concat(b,m,a);void 0!==S&&w.push(S);var E=Na(o.apply(void 0,w))}else E=La(y,a,m,b,S,o);m>=v&&(h+=a.slice(v,m)+E,v=m+y.length)}return h+a.slice(v)}]}),!!Ta((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Da||za);var Ba=null,Ha=function(){try{document.createElement("div").querySelector(":scope > div"),Ba=!0}catch(e){Ba=!1}},Ua=Object.freeze({__proto__:null,getRootNode:function(e){if(!e)return null;if("getRootNode"in e)return e.getRootNode();for(;e.parentNode;)e=e.parentNode;return e},closest:function(e,t){if("closest"in e)return e.closest(t);var n=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(n.call(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null},remove:function(e){e&&("remove"in e&&e.remove(),e.parentNode&&e.parentNode.removeChild(e))},before:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(0!==n.length)if("before"in e)e.before.apply(e,n);else if(1===n.length){var o=n[0],i=o instanceof Node;o=i?o:document.createTextNode(String(o)),e.parentNode.insertBefore(o,e)}else{var a,l=document.createDocumentFragment(),u=c(n);try{for(u.s();!(a=u.n()).done;){var f=a.value,s=f instanceof Node;l.appendChild(s?f:document.createTextNode(String(f)))}}catch(e){u.e(e)}finally{u.f()}e.parentNode.insertBefore(l,e)}},after:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(0!==n.length)if("after"in e)e.after.apply(e,n);else if(1===n.length){var o=n[0],i=o instanceof Node;o=i?o:document.createTextNode(String(o)),e.nextSibling?e.parentNode.insertBefore(o,e.nextSibling):e.parentNode.appendChild(o)}else{var a,l=document.createDocumentFragment(),u=c(n);try{for(u.s();!(a=u.n()).done;){var f=a.value,s=f instanceof Node;l.appendChild(s?f:document.createTextNode(String(f)))}}catch(e){u.e(e)}finally{u.f()}e.nextSibling?e.parentNode.insertBefore(l,e.nextSibling):e.parentNode.appendChild(l)}},prepend:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(0!==n.length)if("prepend"in e)e.prepend.apply(e,n);else if(1===n.length){var o=n[0],i=o instanceof Node;o=i?o:document.createTextNode(String(o)),e.firstChild?e.insertBefore(o,e.firstChild):e.appendChild(o)}else{var a,l=document.createDocumentFragment(),u=c(n);try{for(u.s();!(a=u.n()).done;){var f=a.value,s=f instanceof Node;l.appendChild(s?f:document.createTextNode(String(f)))}}catch(e){u.e(e)}finally{u.f()}e.firstChild?e.insertBefore(l,e.firstChild):e.appendChild(l)}},append:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(0!==n.length)if("append"in e)e.append.apply(e,n);else if(1===n.length){var o=n[0],i=o instanceof Node;o=i?o:document.createTextNode(String(o)),e.appendChild(o)}else{var a,l=document.createDocumentFragment(),u=c(n);try{for(u.s();!(a=u.n()).done;){var f=a.value,s=f instanceof Node;l.appendChild(s?f:document.createTextNode(String(f)))}}catch(e){u.e(e)}finally{u.f()}e.appendChild(l)}},scopedSelector:function(e,t){if(null===Ba&&Ha(),!0===Ba)return e.querySelector(t.replace(/((?:^|,)\s*)/g,"$1:scope "));var n=e.id,r="ID_"+Date.now();e.id=r,t=t.replace(/((?:^|,)\s*)/g,"$1#"+r);try{return e.querySelector(t)}finally{this.id=n}},scopedSelectorAll:function(e,t){if(null===Ba&&Ha(),!0===Ba)return e.querySelectorAll(t.replace(/((?:^|,)\s*)/g,"$1:scope "));var n=e.id,r="ID_"+Date.now();e.id=r,t=t.replace(/((?:^|,)\s*)/g,"$1#"+r);try{return e.querySelectorAll(t)}finally{this.id=n}},toggleClass:function(e,t,n){var r=e.classList;return void 0===n?r.contains(t)?(r.remove(t),!1):(r.add(t),!0):n?(r.add(t),!0):(r.remove(t),!1)}}),Ya=g,qa=qt.EXISTS,Xa=Qe.f,Ga=Function.prototype,Ka=Ga.toString,Va=/^\s*function ([^ (]*)/;Ya&&!qa&&Xa(Ga,"name",{configurable:!0,get:function(){try{return Ka.call(this).match(Va)[1]}catch(e){return""}}});var Ja=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._events=[]}var n,r;return n=e,(r=[{key:"add",value:function(e,n,r,o){var i=n.split("."),a=i[0],l=i[1];e.addEventListener(a,r,o||!1);var c=!0===o||"object"===t(o)&&!0===o.capture;return this._events.push({el:e,name:a,namespace:l,handler:r,useCapture:c}),this}},{key:"remove",value:function(e,n,r,o){var i=n?n.split("."):"",a=i[0],l=i[1],u=!0===o||"object"===t(o)&&!0===o.capture,f=[],s=[];if(e||a||l||r||void 0!==o){var d,p=c(this._events);try{for(p.s();!(d=p.n()).done;){var h=d.value;e&&h.el!==e||a&&h.name!==a||l&&h.namespace!==l||r&&h.handler!==r||void 0!==o&&h.useCapture!==u?f.push(h):s.push(h)}}catch(e){p.e(e)}finally{p.f()}}else s=this._events;this._events=f;var v,g=c(s);try{for(g.s();!(v=g.n()).done;){var y=v.value;y.el.removeEventListener(y.name,y.handler,y.useCapture)}}catch(e){g.e(e)}finally{g.f()}return this}}])&&o(n.prototype,r),e}(),Qa=Object.freeze({__proto__:null,default:Ja}),Za=Zn,el=Math.hypot,tl=Math.abs,nl=Math.sqrt;Za({target:"Math",stat:!0,forced:!!el&&el(1/0,NaN)!==1/0},{hypot:function(e,t){for(var n,r,o=0,i=0,a=arguments.length,l=0;i<a;)l<(n=tl(arguments[i++]))?(o=o*(r=l/n)*r+1,l=n):o+=n>0?(r=n/l)*r:n;return l===1/0?1/0:l*nl(o)}});var rl,ol=Object.freeze({__proto__:null,bindTouchTap:function(e,t){var n=null,r=null,o=function(t){if(null===n){var o=t.changedTouches[0];n=o.identifier,r=o?{x:o.pageX,y:o.pageY}:{x:t.pageX,y:t.pageY},e.addEventListener("touchend",i),e.addEventListener("touchcancel",a)}},i=function(e){if(null!==n){var o=null;if(e.changedTouches){if(null!=n){var i,a=c(e.changedTouches);try{for(a.s();!(i=a.n()).done;){var l=i.value;if(l.identifier===n){o=l;break}}}catch(e){a.e(e)}finally{a.f()}}o||(o=e.changedTouches[0])}var u=o?{x:o.pageX,y:o.pageY}:{x:e.pageX,y:e.pageY},f=r;if(n=null,r=null,null!==t.distance){var s=t.distance||1;if(Math.hypot(Math.abs(u.x-f.x),Math.abs(u.y-f.y))>=s)return!1}t.handler&&t.handler(e)}},a=function t(){n=null,r=null,e.removeEventListener("touchend",i),e.removeEventListener("touchcancel",t)};return e.addEventListener("touchstart",o),{unbind:function(){e.removeEventListener("touchstart",o),e.removeEventListener("touchend",i),e.removeEventListener("touchcancel",a)}}}}),il=g,al=v,ll=nr,cl=An,ul=y,fl=he,sl=T,dl=Object.assign,pl=Object.defineProperty,hl=!dl||al((function(){if(il&&1!==dl({b:1},dl(pl({},"a",{enumerable:!0,get:function(){pl(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=dl({},e)[n]||ll(dl({},t)).join("")!=r}))?function(e,t){for(var n=fl(e),r=arguments.length,o=1,i=cl.f,a=ul.f;r>o;)for(var l,c=sl(arguments[o++]),u=i?ll(c).concat(i(c)):ll(c),f=u.length,s=0;f>s;)l=u[s++],il&&!a.call(c,l)||(n[l]=c[l]);return n}:dl;Zn({target:"Object",stat:!0,forced:Object.assign!==hl},{assign:hl});var vl=function(){var e=document.createElement("div");e.dir="rtl",Object.assign(e.style,{direction:"rtl",fontSize:"14px",width:"1px",height:"1px",position:"absolute",top:"-1000px",overflow:"scroll"}),e.textContent="A",document.body.appendChild(e);var t="reverse";return e.scrollLeft>0?t="default":(e.scrollLeft=1,0===e.scrollLeft&&(t="negative")),e.parentNode.removeChild(e),t};function gl(e,t,n){if(void 0===n&&(n="rtl"===getComputedStyle(e).direction),!0===n&&void 0===rl&&(rl=vl()),!n)return t;switch(rl){case"negative":return t-e.scrollWidth+e.clientWidth;case"reverse":return e.scrollWidth-t-e.clientWidth;default:return t}}function yl(e,t){if(void 0===t&&(t="rtl"===getComputedStyle(e).direction),!0===t&&void 0===rl&&(rl=vl()),!t)return e.scrollLeft;switch(rl){case"negative":return e.scrollLeft+e.scrollWidth-e.clientWidth;case"reverse":return e.scrollWidth-e.scrollLeft-e.clientWidth;default:return e.scrollLeft}}function ml(e,t,n){return void 0===n&&(n="rtl"===getComputedStyle(e).direction),gl(e,n?e.scrollWidth-e.clientWidth-t:t,n)}var bl=Object.freeze({__proto__:null,calculateNativeScrollLeftForLeft:gl,getScrollLeft:yl,setScrollLeft:function(e,t,n){e.scrollLeft=gl(e,t,n)},calculateNativeScrollLeftForHorz:ml,getScrollHorz:function(e,t){return void 0===t&&(t="rtl"===getComputedStyle(e).direction),t?e.scrollWidth-e.clientWidth-yl(e,t):yl(e,t)},setScrollHorz:function(e,t,n){e.scrollLeft=ml(e,t,n)}});e.Css=ya,e.Dom=ba,e.DomCompat=Ua,e.DomEventsSink=Qa,e.ScrollHelper=bl,e.Touches=ol,Object.defineProperty(e,"__esModule",{value:!0})}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).domutils={})}(this,(function(e){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e){this.wrapped=e}function r(e){var t,r;function o(t,r){try{var a=e[t](r),l=a.value,c=l instanceof n;Promise.resolve(c?l.wrapped:l).then((function(e){c?o("return"===t?"return":"next",e):i(a.done?"return":"normal",e)}),(function(e){o("throw",e)}))}catch(e){i("throw",e)}}function i(e,n){switch(e){case"return":t.resolve({value:n,done:!0});break;case"throw":t.reject(n);break;default:t.resolve({value:n,done:!1})}(t=t.next)?o(t.key,t.arg):r=null}this._invoke=function(e,n){return new Promise((function(i,a){var l={key:e,arg:n,resolve:i,reject:a,next:null};r?r=r.next=l:(t=r=l,o(e,n))}))},"function"!=typeof e.return&&(this.return=void 0)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=a(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},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,l=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,i=e},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw i}}}}r.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},r.prototype.next=function(e){return this._invoke("next",e)},r.prototype.throw=function(e){return this._invoke("throw",e)},r.prototype.return=function(e){return this._invoke("return",e)};var u,f,s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},d=function(e){return e&&e.Math==Math&&e},p=d("object"==typeof globalThis&&globalThis)||d("object"==typeof window&&window)||d("object"==typeof self&&self)||d("object"==typeof s&&s)||function(){return this}()||Function("return this")(),h={},v=function(e){try{return!!e()}catch(e){return!0}},g=!v((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),y={},m={}.propertyIsEnumerable,b=Object.getOwnPropertyDescriptor,x=b&&!m.call({1:2},1),S=(y.f=x?function(e){var t=b(this,e);return!!t&&t.enumerable}:m,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),w={}.toString,E=function(e){return w.call(e).slice(8,-1)},O=E,j="".split,T=v((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==O(e)?j.call(e,""):Object(e)}:Object,C=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},A=T,N=C,_=function(e){return A(N(e))},I=function(e){return"function"==typeof e},F=I,R=function(e){return"object"==typeof e?null!==e:F(e)},P=p,L=I,M=function(e){return L(e)?e:void 0},k=function(e,t){return arguments.length<2?M(P[e]):P[e]&&P[e][t]},W=p,$=k("navigator","userAgent")||"",D=W.process,z=W.Deno,B=D&&D.versions||z&&z.version,H=B&&B.v8;H?f=(u=H.split("."))[0]<4?1:u[0]+u[1]:$&&(!(u=$.match(/Edge\/(\d+)/))||u[1]>=74)&&(u=$.match(/Chrome\/(\d+)/))&&(f=u[1]);var U=f&&+f,Y=U,q=v,X=!!Object.getOwnPropertySymbols&&!q((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Y&&Y<41})),G=X&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,K=I,V=k,J=G?function(e){return"symbol"==typeof e}:function(e){var t=V("Symbol");return K(t)&&Object(e)instanceof t},Q=function(e){try{return String(e)}catch(e){return"Object"}},Z=I,ee=Q,te=function(e){if(Z(e))return e;throw TypeError(ee(e)+" is not a function")},ne=te,re=function(e,t){var n=e[t];return null==n?void 0:ne(n)},oe=I,ie=R,ae={exports:{}},le=p,ce=function(e,t){try{Object.defineProperty(le,e,{value:t,configurable:!0,writable:!0})}catch(n){le[e]=t}return t},ue=ce,fe="__core-js_shared__",se=p[fe]||ue(fe,{}),de=se;(ae.exports=function(e,t){return de[e]||(de[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.18.2",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"}),ae.exports;var pe=C,he=function(e){return Object(pe(e))},ve=he,ge={}.hasOwnProperty,ye=Object.hasOwn||function(e,t){return ge.call(ve(e),t)},me=0,be=Math.random(),xe=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++me+be).toString(36)},Se=p,we=ae.exports,Ee=ye,Oe=xe,je=X,Te=G,Ce=we("wks"),Ae=Se.Symbol,Ne=Te?Ae:Ae&&Ae.withoutSetter||Oe,_e=function(e){return Ee(Ce,e)&&(je||"string"==typeof Ce[e])||(je&&Ee(Ae,e)?Ce[e]=Ae[e]:Ce[e]=Ne("Symbol."+e)),Ce[e]},Ie=R,Fe=J,Re=re,Pe=_e("toPrimitive"),Le=function(e,t){if(!Ie(e)||Fe(e))return e;var n,r=Re(e,Pe);if(r){if(void 0===t&&(t="default"),n=r.call(e,t),!Ie(n)||Fe(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&oe(n=e.toString)&&!ie(r=n.call(e)))return r;if(oe(n=e.valueOf)&&!ie(r=n.call(e)))return r;if("string"!==t&&oe(n=e.toString)&&!ie(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}(e,t)},Me=J,ke=function(e){var t=Le(e,"string");return Me(t)?t:String(t)},We=R,$e=p.document,De=We($e)&&We($e.createElement),ze=function(e){return De?$e.createElement(e):{}},Be=ze,He=!g&&!v((function(){return 7!=Object.defineProperty(Be("div"),"a",{get:function(){return 7}}).a})),Ue=g,Ye=y,qe=S,Xe=_,Ge=ke,Ke=ye,Ve=He,Je=Object.getOwnPropertyDescriptor,Qe=(h.f=Ue?Je:function(e,t){if(e=Xe(e),t=Ge(t),Ve)try{return Je(e,t)}catch(e){}if(Ke(e,t))return qe(!Ye.f.call(e,t),e[t])},{}),Ze=R,et=function(e){if(Ze(e))return e;throw TypeError(String(e)+" is not an object")},tt=g,nt=He,rt=et,ot=ke,it=Object.defineProperty,at=(Qe.f=tt?it:function(e,t,n){if(rt(e),t=ot(t),rt(n),nt)try{return it(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Qe),lt=S,ct=g?function(e,t,n){return at.f(e,t,lt(1,n))}:function(e,t,n){return e[t]=n,e},ut={exports:{}},ft=I,st=se,dt=Function.toString;ft(st.inspectSource)||(st.inspectSource=function(e){return dt.call(e)});var pt,ht,vt,gt=st.inspectSource,yt=I,mt=gt,bt=p.WeakMap,xt=yt(bt)&&/native code/.test(mt(bt)),St=ae.exports,wt=xe,Et=St("keys"),Ot=function(e){return Et[e]||(Et[e]=wt(e))},jt={},Tt=xt,Ct=R,At=ct,Nt=ye,_t=se,It=Ot,Ft=jt,Rt="Object already initialized",Pt=p.WeakMap;if(Tt||_t.state){var Lt=_t.state||(_t.state=new Pt),Mt=Lt.get,kt=Lt.has,Wt=Lt.set;pt=function(e,t){if(kt.call(Lt,e))throw new TypeError(Rt);return t.facade=e,Wt.call(Lt,e,t),t},ht=function(e){return Mt.call(Lt,e)||{}},vt=function(e){return kt.call(Lt,e)}}else{var $t=It("state");Ft[$t]=!0,pt=function(e,t){if(Nt(e,$t))throw new TypeError(Rt);return t.facade=e,At(e,$t,t),t},ht=function(e){return Nt(e,$t)?e[$t]:{}},vt=function(e){return Nt(e,$t)}}var Dt={set:pt,get:ht,has:vt,enforce:function(e){return vt(e)?ht(e):pt(e,{})},getterFor:function(e){return function(t){var n;if(!Ct(t)||(n=ht(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},zt=g,Bt=ye,Ht=Function.prototype,Ut=zt&&Object.getOwnPropertyDescriptor,Yt=Bt(Ht,"name"),qt={EXISTS:Yt,PROPER:Yt&&"something"===function(){}.name,CONFIGURABLE:Yt&&(!zt||zt&&Ut(Ht,"name").configurable)},Xt=p,Gt=I,Kt=ye,Vt=ct,Jt=ce,Qt=gt,Zt=qt.CONFIGURABLE,en=Dt.get,tn=Dt.enforce,nn=String(String).split("String");(ut.exports=function(e,t,n,r){var o,i=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,l=!!r&&!!r.noTargetGet,c=r&&void 0!==r.name?r.name:t;Gt(n)&&("Symbol("===String(c).slice(0,7)&&(c="["+String(c).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Kt(n,"name")||Zt&&n.name!==c)&&Vt(n,"name",c),(o=tn(n)).source||(o.source=nn.join("string"==typeof c?c:""))),e!==Xt?(i?!l&&e[t]&&(a=!0):delete e[t],a?e[t]=n:Vt(e,t,n)):a?e[t]=n:Jt(t,n)})(Function.prototype,"toString",(function(){return Gt(this)&&en(this).source||Qt(this)})),ut.exports;var rn={},on=Math.ceil,an=Math.floor,ln=function(e){var t=+e;return t!=t||0===t?0:(t>0?an:on)(t)},cn=ln,un=Math.max,fn=Math.min,sn=ln,dn=Math.min,pn=function(e){return e>0?dn(sn(e),9007199254740991):0},hn=pn,vn=function(e){return hn(e.length)},gn=_,yn=vn,mn=function(e){return function(t,n,r){var o,i=gn(t),a=yn(i),l=function(e,t){var n=cn(e);return n<0?un(n+t,0):fn(n,t)}(r,a);if(e&&n!=n){for(;a>l;)if((o=i[l++])!=o)return!0}else for(;a>l;l++)if((e||l in i)&&i[l]===n)return e||l||0;return!e&&-1}},bn={includes:mn(!0),indexOf:mn(!1)},xn=ye,Sn=_,wn=bn.indexOf,En=jt,On=function(e,t){var n,r=Sn(e),o=0,i=[];for(n in r)!xn(En,n)&&xn(r,n)&&i.push(n);for(;t.length>o;)xn(r,n=t[o++])&&(~wn(i,n)||i.push(n));return i},jn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Tn=On,Cn=jn.concat("length","prototype"),An=(rn.f=Object.getOwnPropertyNames||function(e){return Tn(e,Cn)},{}),Nn=(An.f=Object.getOwnPropertySymbols,rn),_n=An,In=et,Fn=k("Reflect","ownKeys")||function(e){var t=Nn.f(In(e)),n=_n.f;return n?t.concat(n(e)):t},Rn=ye,Pn=Fn,Ln=h,Mn=Qe,kn=v,Wn=I,$n=/#|\.prototype\./,Dn=function(e,t){var n=Bn[zn(e)];return n==Un||n!=Hn&&(Wn(t)?kn(t):!!t)},zn=Dn.normalize=function(e){return String(e).replace($n,".").toLowerCase()},Bn=Dn.data={},Hn=Dn.NATIVE="N",Un=Dn.POLYFILL="P",Yn=Dn,qn=p,Xn=h.f,Gn=ct,Kn=ut.exports,Vn=ce,Jn=function(e,t){for(var n=Pn(t),r=Mn.f,o=Ln.f,i=0;i<n.length;i++){var a=n[i];Rn(e,a)||r(e,a,o(t,a))}},Qn=Yn,Zn=function(e,t){var n,r,o,i,a,l=e.target,c=e.global,u=e.stat;if(n=c?qn:u?qn[l]||Vn(l,{}):(qn[l]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Xn(n,r))&&a.value:n[r],!Qn(c?r:l+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Jn(i,o)}(e.sham||o&&o.sham)&&Gn(i,"sham",!0),Kn(n,r,i,e)}},er=On,tr=jn,nr=Object.keys||function(e){return er(e,tr)},rr=g,or=nr,ir=_,ar=y.f,lr=function(e){return function(t){for(var n,r=ir(t),o=or(r),i=o.length,a=0,l=[];i>a;)n=o[a++],rr&&!ar.call(r,n)||l.push(e?[n,r[n]]:r[n]);return l}},cr=[lr(!0),lr(!1)][0];Zn({target:"Object",stat:!0},{entries:function(e){return cr(e)}});var ur={};ur[_e("toStringTag")]="z";var fr,sr="[object z]"===String(ur),dr=I,pr=E,hr=_e("toStringTag"),vr="Arguments"==pr(function(){return arguments}()),gr=sr?pr:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),hr))?n:vr?pr(t):"Object"==(r=pr(t))&&dr(t.callee)?"Arguments":r},yr=gr,mr=function(e){if("Symbol"===yr(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)},br=R,xr=E,Sr=_e("match"),wr=function(e){var t;return br(e)&&(void 0!==(t=e[Sr])?!!t:"RegExp"==xr(e))},Er=wr,Or=_e("match"),jr=Zn,Tr=h.f,Cr=pn,Ar=mr,Nr=function(e){if(Er(e))throw TypeError("The method doesn't accept regular expressions");return e},_r=C,Ir="".endsWith,Fr=Math.min,Rr=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[Or]=!1,"/./"[e](t)}catch(e){}}return!1}("endsWith");jr({target:"String",proto:!0,forced:!(!Rr&&(fr=Tr(String.prototype,"endsWith"),fr&&!fr.writable)||Rr)},{endsWith:function(e){var t=Ar(_r(this));Nr(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:Fr(Cr(n),r),i=Ar(e);return Ir?Ir.call(t,i,o):t.slice(o-i.length,o)===i}});var Pr,Lr=et,Mr={},kr=v,Wr=p.RegExp,$r=(Mr.UNSUPPORTED_Y=kr((function(){var e=Wr("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Mr.BROKEN_CARET=kr((function(){var e=Wr("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),Qe),Dr=et,zr=nr,Br=g?Object.defineProperties:function(e,t){Dr(e);for(var n,r=zr(t),o=r.length,i=0;o>i;)$r.f(e,n=r[i++],t[n]);return e},Hr=k("document","documentElement"),Ur=et,Yr=Br,qr=jn,Xr=jt,Gr=Hr,Kr=ze,Vr=Ot("IE_PROTO"),Jr=function(){},Qr=function(e){return"<script>"+e+"<\/script>"},Zr=function(e){e.write(Qr("")),e.close();var t=e.parentWindow.Object;return e=null,t},eo=function(){try{Pr=new ActiveXObject("htmlfile")}catch(e){}var e,t;eo="undefined"!=typeof document?document.domain&&Pr?Zr(Pr):((t=Kr("iframe")).style.display="none",Gr.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Qr("document.F=Object")),e.close(),e.F):Zr(Pr);for(var n=qr.length;n--;)delete eo.prototype[qr[n]];return eo()};Xr[Vr]=!0;var to,no,ro=Object.create||function(e,t){var n;return null!==e?(Jr.prototype=Ur(e),n=new Jr,Jr.prototype=null,n[Vr]=e):n=eo(),void 0===t?n:Yr(n,t)},oo=v,io=p.RegExp,ao=oo((function(){var e=io(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),lo=v,co=p.RegExp,uo=lo((function(){var e=co("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),fo=mr,so=function(){var e=Lr(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},po=Mr,ho=ae.exports,vo=ro,go=Dt.get,yo=ao,mo=uo,bo=RegExp.prototype.exec,xo=ho("native-string-replace",String.prototype.replace),So=bo,wo=(to=/a/,no=/b*/g,bo.call(to,"a"),bo.call(no,"a"),0!==to.lastIndex||0!==no.lastIndex),Eo=po.UNSUPPORTED_Y||po.BROKEN_CARET,Oo=void 0!==/()??/.exec("")[1];(wo||Oo||Eo||yo||mo)&&(So=function(e){var t,n,r,o,i,a,l,c=this,u=go(c),f=fo(e),s=u.raw;if(s)return s.lastIndex=c.lastIndex,t=So.call(s,f),c.lastIndex=s.lastIndex,t;var d=u.groups,p=Eo&&c.sticky,h=so.call(c),v=c.source,g=0,y=f;if(p&&(-1===(h=h.replace("y","")).indexOf("g")&&(h+="g"),y=f.slice(c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==f.charAt(c.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),Oo&&(n=new RegExp("^"+v+"$(?!\\s)",h)),wo&&(r=c.lastIndex),o=bo.call(p?n:c,y),p?o?(o.input=o.input.slice(g),o[0]=o[0].slice(g),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:wo&&o&&(c.lastIndex=c.global?o.index+o[0].length:r),Oo&&o&&o.length>1&&xo.call(o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=vo(null),i=0;i<d.length;i++)a[(l=d[i])[0]]=o[l[1]];return o});var jo=So;Zn({target:"RegExp",proto:!0,forced:/./.exec!==jo},{exec:jo});var To=ut.exports,Co=jo,Ao=v,No=_e,_o=ct,Io=No("species"),Fo=RegExp.prototype,Ro=function(e,t,n,r){var o=No(e),i=!Ao((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Ao((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Io]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var l=/./[o],c=t(o,""[e],(function(e,t,n,r,o){var a=t.exec;return a===Co||a===Fo.exec?i&&!o?{done:!0,value:l.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}));To(String.prototype,e,c[0]),To(Fo,o,c[1])}r&&_o(Fo[o],"sham",!0)},Po=v,Lo=I,Mo=gr,ko=gt,Wo=[],$o=k("Reflect","construct"),Do=/^\s*(?:class|function)\b/,zo=Do.exec,Bo=!Do.exec((function(){})),Ho=function(e){if(!Lo(e))return!1;try{return $o(Object,Wo,e),!0}catch(e){return!1}},Uo=!$o||Po((function(){var e;return Ho(Ho.call)||!Ho(Object)||!Ho((function(){e=!0}))||e}))?function(e){if(!Lo(e))return!1;switch(Mo(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Bo||!!zo.call(Do,ko(e))}:Ho,Yo=Uo,qo=Q,Xo=et,Go=_e("species"),Ko=ln,Vo=mr,Jo=C,Qo=function(e){return function(t,n){var r,o,i=Vo(Jo(t)),a=Ko(n),l=i.length;return a<0||a>=l?e?"":void 0:(r=i.charCodeAt(a))<55296||r>56319||a+1===l||(o=i.charCodeAt(a+1))<56320||o>57343?e?i.charAt(a):r:e?i.slice(a,a+2):o-56320+(r-55296<<10)+65536}},Zo=(Qo(!1),Qo(!0)),ei=function(e,t,n){return t+(n?Zo(e,t).length:1)},ti=et,ni=I,ri=E,oi=jo,ii=function(e,t){var n=e.exec;if(ni(n)){var r=n.call(e,t);return null!==r&&ti(r),r}if("RegExp"===ri(e))return oi.call(e,t);throw TypeError("RegExp#exec called on incompatible receiver")},ai=Ro,li=wr,ci=et,ui=C,fi=function(e,t){var n,r=Xo(e).constructor;return void 0===r||null==(n=Xo(r)[Go])?t:function(e){if(Yo(e))return e;throw TypeError(qo(e)+" is not a constructor")}(n)},si=ei,di=pn,pi=mr,hi=re,vi=ii,gi=jo,yi=v,mi=Mr.UNSUPPORTED_Y,bi=[].push,xi=Math.min,Si=4294967295;ai("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=pi(ui(this)),o=void 0===n?Si:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!li(e))return t.call(r,e,o);for(var i,a,l,c=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,s=new RegExp(e.source,u+"g");(i=gi.call(s,r))&&!((a=s.lastIndex)>f&&(c.push(r.slice(f,i.index)),i.length>1&&i.index<r.length&&bi.apply(c,i.slice(1)),l=i[0].length,f=a,c.length>=o));)s.lastIndex===i.index&&s.lastIndex++;return f===r.length?!l&&s.test("")||c.push(""):c.push(r.slice(f)),c.length>o?c.slice(0,o):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=ui(this),i=null==t?void 0:hi(t,e);return i?i.call(t,o,n):r.call(pi(o),t,n)},function(e,o){var i=ci(this),a=pi(e),l=n(r,i,a,o,r!==t);if(l.done)return l.value;var c=fi(i,RegExp),u=i.unicode,f=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(mi?"g":"y"),s=new c(mi?"^(?:"+i.source+")":i,f),d=void 0===o?Si:o>>>0;if(0===d)return[];if(0===a.length)return null===vi(s,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){s.lastIndex=mi?0:h;var g,y=vi(s,mi?a.slice(h):a);if(null===y||(g=xi(di(s.lastIndex+(mi?h:0)),a.length))===p)h=si(a,h,u);else{if(v.push(a.slice(p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(v.push(y[m]),v.length===d)return v;h=p=g}}return v.push(a.slice(p)),v}]}),!!yi((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),mi);var wi=te,Ei=E,Oi=Array.isArray||function(e){return"Array"==Ei(e)},ji=Uo,Ti=R,Ci=_e("species"),Ai=T,Ni=he,_i=vn,Ii=function(e,t){return new(function(e){var t;return Oi(e)&&(t=e.constructor,(ji(t)&&(t===Array||Oi(t.prototype))||Ti(t)&&null===(t=t[Ci]))&&(t=void 0)),void 0===t?Array:t}(e))(0===t?0:t)},Fi=[].push,Ri=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,l=5==e||i;return function(c,u,f,s){for(var d,p,h=Ni(c),v=Ai(h),g=function(e,t,n){if(wi(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}(u,f,3),y=_i(v),m=0,b=s||Ii,x=t?b(c,y):n||a?b(c,0):void 0;y>m;m++)if((l||m in v)&&(p=g(d=v[m],m,h),e))if(t)x[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Fi.call(x,d)}else switch(e){case 4:return!1;case 7:Fi.call(x,d)}return i?-1:r||o?o:x}},Pi={forEach:Ri(0),map:Ri(1),filter:Ri(2),some:Ri(3),every:Ri(4),find:Ri(5),findIndex:Ri(6),filterReject:Ri(7)},Li=v,Mi=U,ki=_e("species"),Wi=function(e){return Mi>=51||!Li((function(){var t=[];return(t.constructor={})[ki]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},$i=Pi.map;Zn({target:"Array",proto:!0,forced:!Wi("map")},{map:function(e){return $i(this,e,arguments.length>1?arguments[1]:void 0)}});var Di=Pi.filter;Zn({target:"Array",proto:!0,forced:!Wi("filter")},{filter:function(e){return Di(this,e,arguments.length>1?arguments[1]:void 0)}});var zi=et,Bi=pn,Hi=mr,Ui=C,Yi=re,qi=ei,Xi=ii;Ro("match",(function(e,t,n){return[function(t){var n=Ui(this),r=null==t?void 0:Yi(t,e);return r?r.call(t,n):new RegExp(t)[e](Hi(n))},function(e){var r=zi(this),o=Hi(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return Xi(r,o);var a=r.unicode;r.lastIndex=0;for(var l,c=[],u=0;null!==(l=Xi(r,o));){var f=Hi(l[0]);c[u]=f,""===f&&(r.lastIndex=qi(o,Bi(r.lastIndex),a)),u++}return 0===u?null:c}]}));var Gi,Ki=C,Vi=mr,Ji="[\t\n\v\f\r                 \u2028\u2029\ufeff]",Qi=RegExp("^"+Ji+Ji+"*"),Zi=RegExp(Ji+Ji+"*$"),ea=function(e){return function(t){var n=Vi(Ki(t));return 1&e&&(n=n.replace(Qi,"")),2&e&&(n=n.replace(Zi,"")),n}},ta={start:ea(1),end:ea(2),trim:ea(3)},na=qt.PROPER,ra="\t\n\v\f\r                 \u2028\u2029\ufeff",oa=ta.trim;Zn({target:"String",proto:!0,forced:(Gi="trim",v((function(){return!!ra.trim()||"​…᠎"!=="​…᠎".trim()||na&&ra.trim.name!==Gi})))},{trim:function(){return oa(this)}});var ia=function(e,t){for(var n=0,r=Object.entries(t);n<r.length;n++){var o=i(r[n],2),a=o[0],l=o[1];e.style[a]=null==l?"":String(l)}},aa=function(e,t,n,r,o){return function(){var i,a,l,c,u=arguments.length<=0?void 0:arguments[0];if(e?(i=arguments.length<=1?void 0:arguments[1],a=!!(arguments.length<=2?void 0:arguments[2]),l=!!(arguments.length<=3?void 0:arguments[3]),c=!!(arguments.length<=4?void 0:arguments[4])):(a=!!(arguments.length<=1?void 0:arguments[1]),l=!!(arguments.length<=2?void 0:arguments[2]),c=!!(arguments.length<=3?void 0:arguments[3])),u===window)return u.document.documentElement["client".concat(n)];if(9===u.nodeType){var f=u.documentElement,s=u.body;return Math.max(s["scroll".concat(n)],f["scroll".concat(n)],s["offset".concat(n)],f["offset".concat(n)],f["client".concat(n)])}var d,p,h=!1,v=!1;if(!e&&"getBoundingClientRect"in u&&(d=u.getBoundingClientRect()[t],h=!0,v=!0),(void 0===d||c||h!==a||v!==l)&&(p=e?getComputedStyle(u,i):getComputedStyle(u)),void 0===d){var g=p[t];"auto"===g?(d=u["client".concat(n)],h=!0):d=parseFloat(g),"border-box"===p.boxSizing&&(h=!0,v=!0)}if(a!==h){var y=parseFloat(p["padding-".concat(r)]||0)+parseFloat(p["padding-".concat(o)]||0);a?d+=y:d-=y}if(l!==v){var m=parseFloat(p["border-".concat(r,"-width")]||0)+parseFloat(p["border-".concat(o,"-width")]||0);l?d+=m:d-=m}if(d<0&&(d=0),c){var b=parseFloat(p["margin-".concat(r)]||0)+parseFloat(p["margin-".concat(o)]||0);d+=b}return d}},la=function(e,t,n,r){return function(t,o){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(t!==window&&9!==t.nodeType){var c=getComputedStyle(t),u=!1;if("border-box"===c.boxSizing&&(u=!0),i=!!i,a=!!a,(l=!!l)&&(o-=(parseFloat(c["margin-".concat(n)])||0)+(parseFloat(c["margin-".concat(r)])||0)),i!==u){var f=parseFloat(c["padding-".concat(n)]||0)+parseFloat(c["padding-".concat(r)]||0);i?o-=f:o+=f}if(a!==u){var s=(parseFloat(c["border-".concat(n,"-width")])||0)+(parseFloat(c["border-".concat(r,"-width")])||0);a?o-=s:o+=s}o<0&&(o=0),t.style[e]=o+"px"}}},ca=aa(!1,"width","Width","left","right"),ua=aa(!1,"height","Height","top","bottom"),fa=aa(!0,"width","Width","left","right"),sa=aa(!0,"height","Height","top","bottom"),da=la("width",0,"left","right"),pa=la("height",0,"top","bottom"),ha=function(e){if(e){var t=e.endsWith("ms");return parseFloat(e)*(t?1:1e3)}},va=function(e){return/^-?(0?\.)?\d+m?s$/.test(e)},ga=function(e){var t=e.split(/\s+/),n=t[0],r=t[1],o=t[2],i=t[3];return va(o)?{delay:ha(o),duration:ha(r),name:n}:{delay:ha(i),duration:ha(r),name:n,timingFunction:o}},ya=Object.freeze({__proto__:null,getCssProps:function(e,t){var n,r=getComputedStyle(e),o={},i=c(t);try{for(i.s();!(n=i.n()).done;){var a=n.value,l=r[a];("width"===a||"height"===a)&&"auto"===l&&e instanceof HTMLElement&&(l=e["offset"+a.substr(0,1).toUpperCase()+a.substr(1)],"border-box"!==r.boxSizing&&("width"===a?(l-=parseFloat(r.paddingLeft||0),l-=parseFloat(r.paddingRight||0),l-=parseFloat(r.borderLeftWidth||0),l-=parseFloat(r.borderRightWidth||0)):(l-=parseFloat(r.paddingTop||0),l-=parseFloat(r.paddingBottom||0),l-=parseFloat(r.borderTopWidth||0),l-=parseFloat(r.borderBottomWidth||0)),l<0&&(l=0)),l+="px"),o[a]=l}}catch(e){i.e(e)}finally{i.f()}return o},setCssProps:ia,getElementWidth:ca,getElementHeight:ua,setElementWidth:da,setElementHeight:pa,getPseudoElementWidth:fa,getPseudoElementHeight:sa,getElementOffset:function(e){if(!e.getClientRects().length)return{top:0,left:0};var t=e.getBoundingClientRect(),n=e.ownerDocument.defaultView;return{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}},anchoredPosition:function(e,t,n,r,o){var i,a,l,c;if(r||(r={width:ca(e,!0,!0),height:ca(e,!0,!0)}),"start"!==t&&"end"!==t||(null==o&&(o="rtl"===getComputedStyle(e).direction),t="start"===t?o?"right":"left":o?"left":"right"),"right"===t)i=r.width,l=0;else if("center"===t)l=i=r.width/2;else if("left"===t)i=0,l=r.width;else if(t&&"string"==typeof t&&"%"===t.charAt(t.length-1)){var u=(parseFloat(t)||0)/100;i=r.width*u,l=r.width*-u,null==o&&(o="rtl"===getComputedStyle(e).direction),o&&(i=r.width-i,l=r.width-i)}else l=-(i=parseFloat(t)||0);if("bottom"===n)a=r.height,c=0;else if("center"===n)c=a=r.height/2;else if("top"===n)a=0,c=r.height;else if(n&&"string"==typeof n&&"%"===n.charAt(n.length-1)){var f=(parseFloat(n)||0)/100;a=r.height*f,c=r.height*-f}else c=-(a=parseFloat(n)||0);return{left:i,top:a,right:l,bottom:c,xSpec:t,ySpec:n}},parseTransition:function(e){return e.match(/([^,()]|\([^)]*\))+/g).map((function(e){return e.trim()})).filter((function(e){return e.length>0})).map(ga)},parseSingleTransition:ga,isTimeString:va,timeToMs:ha}),ma=function(e,t){for(var n=0,r=Object.entries(t);n<r.length;n++){var o=i(r[n],2),a=o[0],l=o[1];null!=l&&("innerHTML"===a?e.innerHTML=String(l):"css"===a&&"style"in e?ia(e,l):a in e&&"style"!==a?e[a]=l:e.setAttribute(a,String(l)))}},ba=Object.freeze({__proto__:null,createElement:function(e,n,r){var o=document.createElement(e);if(n&&"object"===t(n)&&ma(o,n),r)if(r instanceof Node)o.appendChild(r);else if(Array.isArray(r)){var i,a=c(r);try{for(a.s();!(i=a.n()).done;){var l=i.value;o.appendChild(l)}}catch(e){a.e(e)}finally{a.f()}}return o},setElementAttrs:ma,closestUntil:function(e,t,n){if("closest"in e&&!n)return e.closest(t);var r=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(r.call(e,t))return e;if(n&&e===n)return null;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null},prev:function(e,t){if(!e)return null;var n=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(n.call(e,t))return e;e=e.previousElementSibling||e.previousSibling}while(null!==e&&1===e.nodeType);return null},next:function(e,t){if(!e)return null;var n=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(n.call(e,t))return e;e=e.nextElementSibling||e.nextSibling}while(null!==e&&1===e.nodeType);return null},unwrapChildren:function(e){for(var t=e.parentNode;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}}),xa=he,Sa=Math.floor,wa="".replace,Ea=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Oa=/\$([$&'`]|\d{1,2})/g,ja=Ro,Ta=v,Ca=et,Aa=I,Na=ln,_a=pn,Ia=mr,Fa=C,Ra=ei,Pa=re,La=function(e,t,n,r,o,i){var a=n+e.length,l=r.length,c=Oa;return void 0!==o&&(o=xa(o),c=Ea),wa.call(i,c,(function(i,c){var u;switch(c.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(a);case"<":u=o[c.slice(1,-1)];break;default:var f=+c;if(0===f)return i;if(f>l){var s=Sa(f/10);return 0===s?i:s<=l?void 0===r[s-1]?c.charAt(1):r[s-1]+c.charAt(1):i}u=r[f-1]}return void 0===u?"":u}))},Ma=ii,ka=_e("replace"),Wa=Math.max,$a=Math.min,Da="$0"==="a".replace(/./,"$0"),za=!!/./[ka]&&""===/./[ka]("a","$0");ja("replace",(function(e,t,n){var r=za?"$":"$0";return[function(e,n){var r=Fa(this),o=null==e?void 0:Pa(e,ka);return o?o.call(e,r,n):t.call(Ia(r),e,n)},function(e,o){var i=Ca(this),a=Ia(e);if("string"==typeof o&&-1===o.indexOf(r)&&-1===o.indexOf("$<")){var l=n(t,i,a,o);if(l.done)return l.value}var c=Aa(o);c||(o=Ia(o));var u=i.global;if(u){var f=i.unicode;i.lastIndex=0}for(var s=[];;){var d=Ma(i,a);if(null===d)break;if(s.push(d),!u)break;""===Ia(d[0])&&(i.lastIndex=Ra(a,_a(i.lastIndex),f))}for(var p,h="",v=0,g=0;g<s.length;g++){d=s[g];for(var y=Ia(d[0]),m=Wa($a(Na(d.index),a.length),0),b=[],x=1;x<d.length;x++)b.push(void 0===(p=d[x])?p:String(p));var S=d.groups;if(c){var w=[y].concat(b,m,a);void 0!==S&&w.push(S);var E=Ia(o.apply(void 0,w))}else E=La(y,a,m,b,S,o);m>=v&&(h+=a.slice(v,m)+E,v=m+y.length)}return h+a.slice(v)}]}),!!Ta((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Da||za);var Ba=null,Ha=function(){try{document.createElement("div").querySelector(":scope > div"),Ba=!0}catch(e){Ba=!1}},Ua=Object.freeze({__proto__:null,getRootNode:function(e){if(!e)return null;if("getRootNode"in e)return e.getRootNode();for(;e.parentNode;)e=e.parentNode;return e},closest:function(e,t){if("closest"in e)return e.closest(t);var n=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;do{if(n.call(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null},remove:function(e){e&&("remove"in e&&e.remove(),e.parentNode&&e.parentNode.removeChild(e))},before:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(0!==n.length)if("before"in e)e.before.apply(e,n);else if(1===n.length){var o=n[0],i=o instanceof Node;o=i?o:document.createTextNode(String(o)),e.parentNode.insertBefore(o,e)}else{var a,l=document.createDocumentFragment(),u=c(n);try{for(u.s();!(a=u.n()).done;){var f=a.value,s=f instanceof Node;l.appendChild(s?f:document.createTextNode(String(f)))}}catch(e){u.e(e)}finally{u.f()}e.parentNode.insertBefore(l,e)}},after:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(0!==n.length)if("after"in e)e.after.apply(e,n);else if(1===n.length){var o=n[0],i=o instanceof Node;o=i?o:document.createTextNode(String(o)),e.nextSibling?e.parentNode.insertBefore(o,e.nextSibling):e.parentNode.appendChild(o)}else{var a,l=document.createDocumentFragment(),u=c(n);try{for(u.s();!(a=u.n()).done;){var f=a.value,s=f instanceof Node;l.appendChild(s?f:document.createTextNode(String(f)))}}catch(e){u.e(e)}finally{u.f()}e.nextSibling?e.parentNode.insertBefore(l,e.nextSibling):e.parentNode.appendChild(l)}},prepend:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(0!==n.length)if("prepend"in e)e.prepend.apply(e,n);else if(1===n.length){var o=n[0],i=o instanceof Node;o=i?o:document.createTextNode(String(o)),e.firstChild?e.insertBefore(o,e.firstChild):e.appendChild(o)}else{var a,l=document.createDocumentFragment(),u=c(n);try{for(u.s();!(a=u.n()).done;){var f=a.value,s=f instanceof Node;l.appendChild(s?f:document.createTextNode(String(f)))}}catch(e){u.e(e)}finally{u.f()}e.firstChild?e.insertBefore(l,e.firstChild):e.appendChild(l)}},append:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(0!==n.length)if("append"in e)e.append.apply(e,n);else if(1===n.length){var o=n[0],i=o instanceof Node;o=i?o:document.createTextNode(String(o)),e.appendChild(o)}else{var a,l=document.createDocumentFragment(),u=c(n);try{for(u.s();!(a=u.n()).done;){var f=a.value,s=f instanceof Node;l.appendChild(s?f:document.createTextNode(String(f)))}}catch(e){u.e(e)}finally{u.f()}e.appendChild(l)}},scopedSelector:function(e,t){if(null===Ba&&Ha(),!0===Ba)return e.querySelector(t.replace(/((?:^|,)\s*)/g,"$1:scope "));var n=e.id,r="ID_"+Date.now();e.id=r,t=t.replace(/((?:^|,)\s*)/g,"$1#"+r);try{return e.querySelector(t)}finally{this.id=n}},scopedSelectorAll:function(e,t){if(null===Ba&&Ha(),!0===Ba)return e.querySelectorAll(t.replace(/((?:^|,)\s*)/g,"$1:scope "));var n=e.id,r="ID_"+Date.now();e.id=r,t=t.replace(/((?:^|,)\s*)/g,"$1#"+r);try{return e.querySelectorAll(t)}finally{this.id=n}},toggleClass:function(e,t,n){var r=e.classList;return void 0===n?r.contains(t)?(r.remove(t),!1):(r.add(t),!0):n?(r.add(t),!0):(r.remove(t),!1)}}),Ya=g,qa=qt.EXISTS,Xa=Qe.f,Ga=Function.prototype,Ka=Ga.toString,Va=/^\s*function ([^ (]*)/;Ya&&!qa&&Xa(Ga,"name",{configurable:!0,get:function(){try{return Ka.call(this).match(Va)[1]}catch(e){return""}}});var Ja=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._events=[]}var n,r;return n=e,(r=[{key:"add",value:function(e,n,r,o){var i=n.split("."),a=i[0],l=i[1];e.addEventListener(a,r,o||!1);var c=!0===o||"object"===t(o)&&!0===o.capture;return this._events.push({el:e,name:a,namespace:l,handler:r,useCapture:c}),this}},{key:"remove",value:function(e,n,r,o){var i=n?n.split("."):"",a=i[0],l=i[1],u=!0===o||"object"===t(o)&&!0===o.capture,f=[],s=[];if(e||a||l||r||void 0!==o){var d,p=c(this._events);try{for(p.s();!(d=p.n()).done;){var h=d.value;e&&h.el!==e||a&&h.name!==a||l&&h.namespace!==l||r&&h.handler!==r||void 0!==o&&h.useCapture!==u?f.push(h):s.push(h)}}catch(e){p.e(e)}finally{p.f()}}else s=this._events;this._events=f;var v,g=c(s);try{for(g.s();!(v=g.n()).done;){var y=v.value;y.el.removeEventListener(y.name,y.handler,y.useCapture)}}catch(e){g.e(e)}finally{g.f()}return this}}])&&o(n.prototype,r),e}(),Qa=Object.freeze({__proto__:null,default:Ja}),Za=Zn,el=Math.hypot,tl=Math.abs,nl=Math.sqrt;Za({target:"Math",stat:!0,forced:!!el&&el(1/0,NaN)!==1/0},{hypot:function(e,t){for(var n,r,o=0,i=0,a=arguments.length,l=0;i<a;)l<(n=tl(arguments[i++]))?(o=o*(r=l/n)*r+1,l=n):o+=n>0?(r=n/l)*r:n;return l===1/0?1/0:l*nl(o)}});var rl,ol=Object.freeze({__proto__:null,bindTouchTap:function(e,t){var n=null,r=null,o=function(t){if(null===n){var o=t.changedTouches[0];n=o.identifier,r=o?{x:o.pageX,y:o.pageY}:{x:t.pageX,y:t.pageY},e.addEventListener("touchend",i),e.addEventListener("touchcancel",a)}},i=function(e){if(null!==n){var o=null;if(e.changedTouches){if(null!=n){var i,a=c(e.changedTouches);try{for(a.s();!(i=a.n()).done;){var l=i.value;if(l.identifier===n){o=l;break}}}catch(e){a.e(e)}finally{a.f()}}o||(o=e.changedTouches[0])}var u=o?{x:o.pageX,y:o.pageY}:{x:e.pageX,y:e.pageY},f=r;if(n=null,r=null,null!==t.distance){var s=t.distance||1;if(Math.hypot(Math.abs(u.x-f.x),Math.abs(u.y-f.y))>=s)return!1}t.handler&&t.handler(e)}},a=function t(){n=null,r=null,e.removeEventListener("touchend",i),e.removeEventListener("touchcancel",t)};return e.addEventListener("touchstart",o),{unbind:function(){e.removeEventListener("touchstart",o),e.removeEventListener("touchend",i),e.removeEventListener("touchcancel",a)}}}}),il=g,al=v,ll=nr,cl=An,ul=y,fl=he,sl=T,dl=Object.assign,pl=Object.defineProperty,hl=!dl||al((function(){if(il&&1!==dl({b:1},dl(pl({},"a",{enumerable:!0,get:function(){pl(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=dl({},e)[n]||ll(dl({},t)).join("")!=r}))?function(e,t){for(var n=fl(e),r=arguments.length,o=1,i=cl.f,a=ul.f;r>o;)for(var l,c=sl(arguments[o++]),u=i?ll(c).concat(i(c)):ll(c),f=u.length,s=0;f>s;)l=u[s++],il&&!a.call(c,l)||(n[l]=c[l]);return n}:dl;Zn({target:"Object",stat:!0,forced:Object.assign!==hl},{assign:hl});var vl=function(){var e=document.createElement("div");e.dir="rtl",Object.assign(e.style,{direction:"rtl",fontSize:"14px",width:"1px",height:"1px",position:"absolute",top:"-1000px",overflow:"scroll"}),e.textContent="A",document.body.appendChild(e);var t="reverse";return e.scrollLeft>0?t="default":(e.scrollLeft=1,0===e.scrollLeft&&(t="negative")),e.parentNode.removeChild(e),t};function gl(e,t,n){if(void 0===n&&(n="rtl"===getComputedStyle(e).direction),!0===n&&void 0===rl&&(rl=vl()),!n)return t;switch(rl){case"negative":return t-e.scrollWidth+e.clientWidth;case"reverse":return e.scrollWidth-t-e.clientWidth;default:return t}}function yl(e,t){if(void 0===t&&(t="rtl"===getComputedStyle(e).direction),!0===t&&void 0===rl&&(rl=vl()),!t)return e.scrollLeft;switch(rl){case"negative":return e.scrollLeft+e.scrollWidth-e.clientWidth;case"reverse":return e.scrollWidth-e.scrollLeft-e.clientWidth;default:return e.scrollLeft}}function ml(e,t,n){return void 0===n&&(n="rtl"===getComputedStyle(e).direction),gl(e,n?e.scrollWidth-e.clientWidth-t:t,n)}var bl=Object.freeze({__proto__:null,calculateNativeScrollLeftForLeft:gl,getScrollLeft:yl,setScrollLeft:function(e,t,n){e.scrollLeft=gl(e,t,n)},calculateNativeScrollLeftForHorz:ml,getScrollHorz:function(e,t){return void 0===t&&(t="rtl"===getComputedStyle(e).direction),t?e.scrollWidth-e.clientWidth-yl(e,t):yl(e,t)},setScrollHorz:function(e,t,n){e.scrollLeft=ml(e,t,n)}});e.Css=ya,e.Dom=ba,e.DomCompat=Ua,e.DomEventsSink=Qa,e.ScrollHelper=bl,e.Touches=ol,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=lib.umd.min.js.map

@@ -41,3 +41,3 @@ import { setCssProps } from './Css.js';

setCssProps(el, value);
else if (key === 'readOnly' || key === 'tabIndex' || key === 'textContent')
else if (key in el && key !== 'style')
el[key] = value;

@@ -119,2 +119,9 @@ else el.setAttribute(key, String(value));

const unwrapChildren = function (el) {
let parent = el.parentNode;
while (el.firstChild)
parent.insertBefore(el.firstChild, el);
parent.removeChild(el);
};
export {

@@ -126,2 +133,3 @@ createElement,

next,
unwrapChildren,
};
{
"name": "@danielgindi/dom-utils",
"version": "1.0.5",
"version": "1.0.6",
"description": "A collection of dom utilities. So you can work natively with the dom without dom frameworks.",

@@ -5,0 +5,0 @@ "main": "dist/lib.cjs.min.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc