title-switcher 2.1.18 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).titleSwitcher=t()}}((function(){return function t(e,n,r){function i(o,a){if(!n[o]){if(!e[o]){var l="function"==typeof require&&require;if(!a&&l)return l(o,!0);if(s)return s(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[o]={exports:{}};e[o][0].call(u.exports,(function(t){return i(e[o][1][t]||t)}),u,u.exports,t,e,n,r)}return n[o].exports}for(var s="function"==typeof require&&require,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(t,e,n){"use strict";t("core-js/modules/esnext.weak-map.delete-all.js");var r,i,s,o,a,l,c,u,f,p,y=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},h=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};Object.defineProperty(n,"__esModule",{value:!0});class d{constructor(t="",e="typingEffect"){r.set(this,!1),i.set(this,"displayTitle"),s.set(this,0),o.set(this,200),a.set(this,400),l.set(this,!1),c.set(this,[]),u.set(this,""),f.set(this,void 0),p.set(this,void 0),y(this,i,"displayTitle","f"),y(this,f,"string"==typeof e?"function"==typeof this[e]?this[e]:this.typingEffect:e,"f"),y(this,u,t,"f"),y(this,c,[],"f");const n=t?document.querySelectorAll(t):[];n&&n[0]&&(y(this,u,n[0],"f"),y(this,c,n[0].children,"f"))}get active(){return h(this,r,"f")}get currentClass(){return h(this,i,"f")}get currentIndex(){return h(this,s,"f")}get delayEffect(){return h(this,o,"f")}get delaySwitch(){return h(this,a,"f")}get switchStyle(){return h(this,f,"f")}get titles(){return h(this,c,"f")}get typeSurface(){return h(this,p,"f")}startTitles({delaySwitch:t=400,delayEffect:e=200,isRandom:n=!1,immediatePause:d=!1}={}){const b="typeSurface";if(y(this,a,t,"f"),y(this,o,e,"f"),y(this,l,n,"f"),y(this,r,!d,"f"),h(this,s,"f")>=h(this,c,"f").length||"string"==typeof h(this,u,"f"))return y(this,r,!1,"f"),console.warn(`No titles found for '${h(this,u,"f")}'`),this;h(this,l,"f")&&y(this,s,Math.round(Math.random()*(h(this,c,"f").length-2))+1,"f");const g=h(this,c,"f")[h(this,s,"f")];g.classList?g.classList.add(h(this,i,"f")):g.className+=" "+h(this,i,"f");const m=h(this,c,"f")[0].cloneNode(!0);return m.classList?m.classList.add(b):m.className+=" "+b,m.classList?m.classList.remove(h(this,i,"f")):m.className=m.className.replace(new RegExp("(^|\\b)"+m.className.split(" ").join("|")+"(\\b|$)","gi")," "),h(this,u,"f").insertBefore(m,h(this,u,"f").firstChild),y(this,p,h(this,u,"f").querySelectorAll("."+b)[0],"f"),h(this,p,"f").innerHTML="",h(this,p,"f").style.display="block",Array.prototype.forEach.call(h(this,c,"f"),(function(t){t.style.display="none"})),this.switchTitle(g,h(this,f,"f"),this)}pause(){y(this,r,!1,"f")}resume(){h(this,r,"f")||(y(this,r,!0,"f"),this.switchTitle(h(this,c,"f")[h(this,s,"f")],h(this,f,"f"),this))}switchTitle(t,e,n,i=!1){let o=1;const a=h(n=n||this,c,"f").length;for(let e=1;e<a;++e)if(h(n,c,"f")[e]===t){o=e;break}if(!h(n,r,"f"))return y(n,s,o,"f"),n;const u=h(n,c,"f").length-1;let f=1;if(1===u)return e(t,i?()=>n:n.switchTitle,n,i);if(h(n,l,"f")){n.typeSurface.textContent.trim()||(o=-1);do{f=Math.round(Math.random()*(u-1))+1}while(f===o)}else n.typeSurface.textContent.trim()||(o=u),f=o<u?o+1:1;const p=h(n,c,"f")[f];return t.classList?t.classList.remove(n.currentClass):t.className=t.className.replace(new RegExp("(^|\\b)"+t.className.split(" ").join("|")+"(\\b|$)","gi")," "),p.classList?p.classList.add(n.currentClass):p.className+=" "+n.currentClass,e(p,i?()=>n:n.switchTitle,n,i)}}r=new WeakMap,i=new WeakMap,s=new WeakMap,o=new WeakMap,a=new WeakMap,l=new WeakMap,c=new WeakMap,u=new WeakMap,f=new WeakMap,p=new WeakMap,d.prototype.cursorBlink=(t,e)=>(e=e||void 0,t?(e.typeSurface.innerHTML=e.typeSurface.innerHTML.replace(/\||&nbsp;*(<\/span>)?$/,"$1").trim(),e.typeSurface.innerHTML=e.typeSurface.innerHTML+'<span style="display: inline-block;font-weight: normal; color: black; text-decoration: none">&#124;</span>'):e.typeSurface.innerHTML=e.typeSurface.innerHTML.replace(/\|(<\/span>)$/,"&nbsp;$1"),e);const b=t=>{let e=0;return Array.prototype.forEach.call(t.childNodes,(t=>{if(3===t.nodeType){const n=t.textContent||"";let r=0;for(;r<n.length;){if(/\s/.test(n[r]))for(;r<n.length&&/\s/.test(n[r]);)++r;else++r;++e}}else 1===t.nodeType&&(e+=b(t))})),e},g=(t,e)=>{let n="";const r=Array.prototype.slice.call(t.childNodes);for(let t=0;t<r.length&&e>0;++t){const i=r[t];if(3===i.nodeType){const t=i.textContent||"";let r=0,s="";for(;r<t.length&&e>0;){if(/\s/.test(t[r])){const e=r;for(;r<t.length&&/\s/.test(t[r]);)++r;s+=t.slice(e,r)}else s+=t[r],++r;--e}n+=s}else if(1===i.nodeType){const t=g(i,e);if(t.html){const e=i.cloneNode(!1);e.innerHTML=t.html,n+=e.outerHTML}e=t.remaining}}return{html:n,remaining:e}};d.prototype.typingEffect=(t,e,n,r=!1)=>{const i=(n=n||void 0).titles.length;let s=0;for(let e=1;e<i;++e)if(n.titles[e]===t){s=e;break}t=t||n.titles[s+1];let o=!0;n.typeSurface.hasAttribute("style")&&n.typeSurface.removeAttribute("style"),t.hasAttribute("style")&&n.typeSurface.setAttribute("style",t.getAttribute("style")),n.typeSurface.innerHTML="",n.typeSurface.style.display="block";for(let t=0;t<4;++t)setTimeout((()=>{n.cursorBlink(o,n),o=!o}),t*n.delaySwitch);return setTimeout((()=>{n.typeSurface.innerHTML="",n.cursorBlink(!0,n);const i=b(t);for(let s=0;s<i;++s)setTimeout((()=>{if(n.typeSurface.innerHTML=g(t,s+1).html+'<span style="font-weight: normal; color: black; text-decoration: none">&#124;</span>',t.textContent+"|"===n.typeSurface.textContent){n.typeSurface.innerHTML=t.innerHTML+'<span style="font-weight: normal; color: black; text-decoration: none">&#124;</span>';for(let i=0;i<8;++i)setTimeout((()=>{--i,n.cursorBlink(o,n),0===i&&e(t,r?()=>n:n.switchStyle,n,r)}),i*n.delaySwitch)}}),s*n.delayEffect)}),4*n.delaySwitch),n},n.default=d,"undefined"!=typeof window&&(window.TitleSwitcher=d)},{"core-js/modules/esnext.weak-map.delete-all.js":69}],2:[function(t,e,n){"use strict";var r=t("../internals/is-callable"),i=t("../internals/try-to-string"),s=TypeError;e.exports=function(t){if(r(t))return t;throw new s(i(t)+" is not a function")}},{"../internals/is-callable":32,"../internals/try-to-string":62}],3:[function(t,e,n){"use strict";var r=t("../internals/weak-map-helpers").has;e.exports=function(t){return r(t),t}},{"../internals/weak-map-helpers":67}],4:[function(t,e,n){"use strict";var r=t("../internals/is-object"),i=String,s=TypeError;e.exports=function(t){if(r(t))return t;throw new s(i(t)+" is not an object")}},{"../internals/is-object":35}],5:[function(t,e,n){"use strict";var r=t("../internals/to-indexed-object"),i=t("../internals/to-absolute-index"),s=t("../internals/length-of-array-like"),o=function(t){return function(e,n,o){var a=r(e),l=s(a);if(0===l)return!t&&-1;var c,u=i(o,l);if(t&&n!=n){for(;l>u;)if((c=a[u++])!=c)return!0}else for(;l>u;u++)if((t||u in a)&&a[u]===n)return t||u||0;return!t&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},{"../internals/length-of-array-like":38,"../internals/to-absolute-index":55,"../internals/to-indexed-object":56}],6:[function(t,e,n){"use strict";var r=t("../internals/function-uncurry-this"),i=r({}.toString),s=r("".slice);e.exports=function(t){return s(i(t),8,-1)}},{"../internals/function-uncurry-this":22}],7:[function(t,e,n){"use strict";var r=t("../internals/has-own-property"),i=t("../internals/own-keys"),s=t("../internals/object-get-own-property-descriptor"),o=t("../internals/object-define-property");e.exports=function(t,e,n){for(var a=i(e),l=o.f,c=s.f,u=0;u<a.length;u++){var f=a[u];r(t,f)||n&&r(n,f)||l(t,f,c(e,f))}}},{"../internals/has-own-property":26,"../internals/object-define-property":41,"../internals/object-get-own-property-descriptor":42,"../internals/own-keys":49}],8:[function(t,e,n){"use strict";var r=t("../internals/descriptors"),i=t("../internals/object-define-property"),s=t("../internals/create-property-descriptor");e.exports=r?function(t,e,n){return i.f(t,e,s(1,n))}:function(t,e,n){return t[e]=n,t}},{"../internals/create-property-descriptor":9,"../internals/descriptors":12,"../internals/object-define-property":41}],9:[function(t,e,n){"use strict";e.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},{}],10:[function(t,e,n){"use strict";var r=t("../internals/is-callable"),i=t("../internals/object-define-property"),s=t("../internals/make-built-in"),o=t("../internals/define-global-property");e.exports=function(t,e,n,a){a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:e;if(r(n)&&s(n,c,a),a.global)l?t[e]=n:o(e,n);else{try{a.unsafe?t[e]&&(l=!0):delete t[e]}catch(t){}l?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},{"../internals/define-global-property":11,"../internals/is-callable":32,"../internals/make-built-in":39,"../internals/object-define-property":41}],11:[function(t,e,n){"use strict";var r=t("../internals/global-this"),i=Object.defineProperty;e.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},{"../internals/global-this":25}],12:[function(t,e,n){"use strict";var r=t("../internals/fails");e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},{"../internals/fails":18}],13:[function(t,e,n){"use strict";var r=t("../internals/global-this"),i=t("../internals/is-object"),s=r.document,o=i(s)&&i(s.createElement);e.exports=function(t){return o?s.createElement(t):{}}},{"../internals/global-this":25,"../internals/is-object":35}],14:[function(t,e,n){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],15:[function(t,e,n){"use strict";var r=t("../internals/global-this").navigator,i=r&&r.userAgent;e.exports=i?String(i):""},{"../internals/global-this":25}],16:[function(t,e,n){"use strict";var r,i,s=t("../internals/global-this"),o=t("../internals/environment-user-agent"),a=s.process,l=s.Deno,c=a&&a.versions||l&&l.version,u=c&&c.v8;u&&(i=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(i=+r[1]),e.exports=i},{"../internals/environment-user-agent":15,"../internals/global-this":25}],17:[function(t,e,n){"use strict";var r=t("../internals/global-this"),i=t("../internals/object-get-own-property-descriptor").f,s=t("../internals/create-non-enumerable-property"),o=t("../internals/define-built-in"),a=t("../internals/define-global-property"),l=t("../internals/copy-constructor-properties"),c=t("../internals/is-forced");e.exports=function(t,e){var n,u,f,p,y,h=t.target,d=t.global,b=t.stat;if(n=d?r:b?r[h]||a(h,{}):r[h]&&r[h].prototype)for(u in e){if(p=e[u],f=t.dontCallGetSet?(y=i(n,u))&&y.value:n[u],!c(d?u:h+(b?".":"#")+u,t.forced)&&void 0!==f){if(typeof p==typeof f)continue;l(p,f)}(t.sham||f&&f.sham)&&s(p,"sham",!0),o(n,u,p,t)}}},{"../internals/copy-constructor-properties":7,"../internals/create-non-enumerable-property":8,"../internals/define-built-in":10,"../internals/define-global-property":11,"../internals/global-this":25,"../internals/is-forced":33,"../internals/object-get-own-property-descriptor":42}],18:[function(t,e,n){"use strict";e.exports=function(t){try{return!!t()}catch(t){return!0}}},{}],19:[function(t,e,n){"use strict";var r=t("../internals/fails");e.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},{"../internals/fails":18}],20:[function(t,e,n){"use strict";var r=t("../internals/function-bind-native"),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},{"../internals/function-bind-native":19}],21:[function(t,e,n){"use strict";var r=t("../internals/descriptors"),i=t("../internals/has-own-property"),s=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,a=i(s,"name"),l=a&&"something"===function(){}.name,c=a&&(!r||r&&o(s,"name").configurable);e.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},{"../internals/descriptors":12,"../internals/has-own-property":26}],22:[function(t,e,n){"use strict";var r=t("../internals/function-bind-native"),i=Function.prototype,s=i.call,o=r&&i.bind.bind(s,s);e.exports=r?o:function(t){return function(){return s.apply(t,arguments)}}},{"../internals/function-bind-native":19}],23:[function(t,e,n){"use strict";var r=t("../internals/global-this"),i=t("../internals/is-callable");e.exports=function(t,e){return arguments.length<2?(n=r[t],i(n)?n:void 0):r[t]&&r[t][e];var n}},{"../internals/global-this":25,"../internals/is-callable":32}],24:[function(t,e,n){"use strict";var r=t("../internals/a-callable"),i=t("../internals/is-null-or-undefined");e.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},{"../internals/a-callable":2,"../internals/is-null-or-undefined":34}],25:[function(t,e,n){(function(t){(function(){"use strict";var n=function(t){return t&&t.Math===Math&&t};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],26:[function(t,e,n){"use strict";var r=t("../internals/function-uncurry-this"),i=t("../internals/to-object"),s=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(t,e){return s(i(t),e)}},{"../internals/function-uncurry-this":22,"../internals/to-object":59}],27:[function(t,e,n){"use strict";e.exports={}},{}],28:[function(t,e,n){"use strict";var r=t("../internals/descriptors"),i=t("../internals/fails"),s=t("../internals/document-create-element");e.exports=!r&&!i((function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))},{"../internals/descriptors":12,"../internals/document-create-element":13,"../internals/fails":18}],29:[function(t,e,n){"use strict";var r=t("../internals/function-uncurry-this"),i=t("../internals/fails"),s=t("../internals/classof-raw"),o=Object,a=r("".split);e.exports=i((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"===s(t)?a(t,""):o(t)}:o},{"../internals/classof-raw":6,"../internals/fails":18,"../internals/function-uncurry-this":22}],30:[function(t,e,n){"use strict";var r=t("../internals/function-uncurry-this"),i=t("../internals/is-callable"),s=t("../internals/shared-store"),o=r(Function.toString);i(s.inspectSource)||(s.inspectSource=function(t){return o(t)}),e.exports=s.inspectSource},{"../internals/function-uncurry-this":22,"../internals/is-callable":32,"../internals/shared-store":52}],31:[function(t,e,n){"use strict";var r,i,s,o=t("../internals/weak-map-basic-detection"),a=t("../internals/global-this"),l=t("../internals/is-object"),c=t("../internals/create-non-enumerable-property"),u=t("../internals/has-own-property"),f=t("../internals/shared-store"),p=t("../internals/shared-key"),y=t("../internals/hidden-keys"),h="Object already initialized",d=a.TypeError,b=a.WeakMap;if(o||f.state){var g=f.state||(f.state=new b);g.get=g.get,g.has=g.has,g.set=g.set,r=function(t,e){if(g.has(t))throw new d(h);return e.facade=t,g.set(t,e),e},i=function(t){return g.get(t)||{}},s=function(t){return g.has(t)}}else{var m=p("state");y[m]=!0,r=function(t,e){if(u(t,m))throw new d(h);return e.facade=t,c(t,m,e),e},i=function(t){return u(t,m)?t[m]:{}},s=function(t){return u(t,m)}}e.exports={set:r,get:i,has:s,enforce:function(t){return s(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!l(e)||(n=i(e)).type!==t)throw new d("Incompatible receiver, "+t+" required");return n}}}},{"../internals/create-non-enumerable-property":8,"../internals/global-this":25,"../internals/has-own-property":26,"../internals/hidden-keys":27,"../internals/is-object":35,"../internals/shared-key":51,"../internals/shared-store":52,"../internals/weak-map-basic-detection":66}],32:[function(t,e,n){"use strict";var r="object"==typeof document&&document.all;e.exports=void 0===r&&void 0!==r?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},{}],33:[function(t,e,n){"use strict";var r=t("../internals/fails"),i=t("../internals/is-callable"),s=/#|\.prototype\./,o=function(t,e){var n=l[a(t)];return n===u||n!==c&&(i(e)?r(e):!!e)},a=o.normalize=function(t){return String(t).replace(s,".").toLowerCase()},l=o.data={},c=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},{"../internals/fails":18,"../internals/is-callable":32}],34:[function(t,e,n){"use strict";e.exports=function(t){return null==t}},{}],35:[function(t,e,n){"use strict";var r=t("../internals/is-callable");e.exports=function(t){return"object"==typeof t?null!==t:r(t)}},{"../internals/is-callable":32}],36:[function(t,e,n){"use strict";e.exports=!1},{}],37:[function(t,e,n){"use strict";var r=t("../internals/get-built-in"),i=t("../internals/is-callable"),s=t("../internals/object-is-prototype-of"),o=t("../internals/use-symbol-as-uid"),a=Object;e.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&s(e.prototype,a(t))}},{"../internals/get-built-in":23,"../internals/is-callable":32,"../internals/object-is-prototype-of":45,"../internals/use-symbol-as-uid":64}],38:[function(t,e,n){"use strict";var r=t("../internals/to-length");e.exports=function(t){return r(t.length)}},{"../internals/to-length":58}],39:[function(t,e,n){"use strict";var r=t("../internals/function-uncurry-this"),i=t("../internals/fails"),s=t("../internals/is-callable"),o=t("../internals/has-own-property"),a=t("../internals/descriptors"),l=t("../internals/function-name").CONFIGURABLE,c=t("../internals/inspect-source"),u=t("../internals/internal-state"),f=u.enforce,p=u.get,y=String,h=Object.defineProperty,d=r("".slice),b=r("".replace),g=r([].join),m=a&&!i((function(){return 8!==h((function(){}),"length",{value:8}).length})),v=String(String).split("String"),w=e.exports=function(t,e,n){"Symbol("===d(y(e),0,7)&&(e="["+b(y(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!o(t,"name")||l&&t.name!==e)&&(a?h(t,"name",{value:e,configurable:!0}):t.name=e),m&&n&&o(n,"arity")&&t.length!==n.arity&&h(t,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?a&&h(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=f(t);return o(r,"source")||(r.source=g(v,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return s(this)&&p(this).source||c(this)}),"toString")},{"../internals/descriptors":12,"../internals/fails":18,"../internals/function-name":21,"../internals/function-uncurry-this":22,"../internals/has-own-property":26,"../internals/inspect-source":30,"../internals/internal-state":31,"../internals/is-callable":32}],40:[function(t,e,n){"use strict";var r=Math.ceil,i=Math.floor;e.exports=Math.trunc||function(t){var e=+t;return(e>0?i:r)(e)}},{}],41:[function(t,e,n){"use strict";var r=t("../internals/descriptors"),i=t("../internals/ie8-dom-define"),s=t("../internals/v8-prototype-define-bug"),o=t("../internals/an-object"),a=t("../internals/to-property-key"),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f="enumerable",p="configurable",y="writable";n.f=r?s?function(t,e,n){if(o(t),e=a(e),o(n),"function"==typeof t&&"prototype"===e&&"value"in n&&y in n&&!n[y]){var r=u(t,e);r&&r[y]&&(t[e]=n.value,n={configurable:p in n?n[p]:r[p],enumerable:f in n?n[f]:r[f],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(o(t),e=a(e),o(n),i)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},{"../internals/an-object":4,"../internals/descriptors":12,"../internals/ie8-dom-define":28,"../internals/to-property-key":61,"../internals/v8-prototype-define-bug":65}],42:[function(t,e,n){"use strict";var r=t("../internals/descriptors"),i=t("../internals/function-call"),s=t("../internals/object-property-is-enumerable"),o=t("../internals/create-property-descriptor"),a=t("../internals/to-indexed-object"),l=t("../internals/to-property-key"),c=t("../internals/has-own-property"),u=t("../internals/ie8-dom-define"),f=Object.getOwnPropertyDescriptor;n.f=r?f:function(t,e){if(t=a(t),e=l(e),u)try{return f(t,e)}catch(t){}if(c(t,e))return o(!i(s.f,t,e),t[e])}},{"../internals/create-property-descriptor":9,"../internals/descriptors":12,"../internals/function-call":20,"../internals/has-own-property":26,"../internals/ie8-dom-define":28,"../internals/object-property-is-enumerable":47,"../internals/to-indexed-object":56,"../internals/to-property-key":61}],43:[function(t,e,n){"use strict";var r=t("../internals/object-keys-internal"),i=t("../internals/enum-bug-keys").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},{"../internals/enum-bug-keys":14,"../internals/object-keys-internal":46}],44:[function(t,e,n){"use strict";n.f=Object.getOwnPropertySymbols},{}],45:[function(t,e,n){"use strict";var r=t("../internals/function-uncurry-this");e.exports=r({}.isPrototypeOf)},{"../internals/function-uncurry-this":22}],46:[function(t,e,n){"use strict";var r=t("../internals/function-uncurry-this"),i=t("../internals/has-own-property"),s=t("../internals/to-indexed-object"),o=t("../internals/array-includes").indexOf,a=t("../internals/hidden-keys"),l=r([].push);e.exports=function(t,e){var n,r=s(t),c=0,u=[];for(n in r)!i(a,n)&&i(r,n)&&l(u,n);for(;e.length>c;)i(r,n=e[c++])&&(~o(u,n)||l(u,n));return u}},{"../internals/array-includes":5,"../internals/function-uncurry-this":22,"../internals/has-own-property":26,"../internals/hidden-keys":27,"../internals/to-indexed-object":56}],47:[function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,s=i&&!r.call({1:2},1);n.f=s?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},{}],48:[function(t,e,n){"use strict";var r=t("../internals/function-call"),i=t("../internals/is-callable"),s=t("../internals/is-object"),o=TypeError;e.exports=function(t,e){var n,a;if("string"===e&&i(n=t.toString)&&!s(a=r(n,t)))return a;if(i(n=t.valueOf)&&!s(a=r(n,t)))return a;if("string"!==e&&i(n=t.toString)&&!s(a=r(n,t)))return a;throw new o("Can't convert object to primitive value")}},{"../internals/function-call":20,"../internals/is-callable":32,"../internals/is-object":35}],49:[function(t,e,n){"use strict";var r=t("../internals/get-built-in"),i=t("../internals/function-uncurry-this"),s=t("../internals/object-get-own-property-names"),o=t("../internals/object-get-own-property-symbols"),a=t("../internals/an-object"),l=i([].concat);e.exports=r("Reflect","ownKeys")||function(t){var e=s.f(a(t)),n=o.f;return n?l(e,n(t)):e}},{"../internals/an-object":4,"../internals/function-uncurry-this":22,"../internals/get-built-in":23,"../internals/object-get-own-property-names":43,"../internals/object-get-own-property-symbols":44}],50:[function(t,e,n){"use strict";var r=t("../internals/is-null-or-undefined"),i=TypeError;e.exports=function(t){if(r(t))throw new i("Can't call method on "+t);return t}},{"../internals/is-null-or-undefined":34}],51:[function(t,e,n){"use strict";var r=t("../internals/shared"),i=t("../internals/uid"),s=r("keys");e.exports=function(t){return s[t]||(s[t]=i(t))}},{"../internals/shared":53,"../internals/uid":63}],52:[function(t,e,n){"use strict";var r=t("../internals/is-pure"),i=t("../internals/global-this"),s=t("../internals/define-global-property"),o="__core-js_shared__",a=e.exports=i[o]||s(o,{});(a.versions||(a.versions=[])).push({version:"3.50.0",mode:r?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/define-global-property":11,"../internals/global-this":25,"../internals/is-pure":36}],53:[function(t,e,n){"use strict";var r=t("../internals/shared-store"),i=Object.create||Object;e.exports=function(t,e){return r[t]||(r[t]=e||i(null))}},{"../internals/shared-store":52}],54:[function(t,e,n){"use strict";var r=t("../internals/environment-v8-version"),i=t("../internals/fails"),s=t("../internals/global-this").String;e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol("symbol detection");return!s(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},{"../internals/environment-v8-version":16,"../internals/fails":18,"../internals/global-this":25}],55:[function(t,e,n){"use strict";var r=t("../internals/to-integer-or-infinity"),i=Math.max,s=Math.min;e.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):s(n,e)}},{"../internals/to-integer-or-infinity":57}],56:[function(t,e,n){"use strict";var r=t("../internals/indexed-object"),i=t("../internals/require-object-coercible");e.exports=function(t){return r(i(t))}},{"../internals/indexed-object":29,"../internals/require-object-coercible":50}],57:[function(t,e,n){"use strict";var r=t("../internals/math-trunc");e.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},{"../internals/math-trunc":40}],58:[function(t,e,n){"use strict";var r=t("../internals/to-integer-or-infinity"),i=Math.min;e.exports=function(t){var e=r(t);return e>0?i(e,9007199254740991):0}},{"../internals/to-integer-or-infinity":57}],59:[function(t,e,n){"use strict";var r=t("../internals/require-object-coercible"),i=Object;e.exports=function(t){return i(r(t))}},{"../internals/require-object-coercible":50}],60:[function(t,e,n){"use strict";var r=t("../internals/function-call"),i=t("../internals/is-object"),s=t("../internals/is-symbol"),o=t("../internals/get-method"),a=t("../internals/ordinary-to-primitive"),l=t("../internals/well-known-symbol"),c=TypeError,u=l("toPrimitive");e.exports=function(t,e){if(!i(t)||s(t))return t;var n,l=o(t,u);if(l){if(void 0===e&&(e="default"),n=r(l,t,e),!i(n)||s(n))return n;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},{"../internals/function-call":20,"../internals/get-method":24,"../internals/is-object":35,"../internals/is-symbol":37,"../internals/ordinary-to-primitive":48,"../internals/well-known-symbol":68}],61:[function(t,e,n){"use strict";var r=t("../internals/to-primitive"),i=t("../internals/is-symbol");e.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},{"../internals/is-symbol":37,"../internals/to-primitive":60}],62:[function(t,e,n){"use strict";var r=String;e.exports=function(t){try{return r(t)}catch(t){return"Object"}}},{}],63:[function(t,e,n){"use strict";var r=t("../internals/function-uncurry-this"),i=0,s=Math.random(),o=r(1.1.toString);e.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++i+s,36)}},{"../internals/function-uncurry-this":22}],64:[function(t,e,n){"use strict";var r=t("../internals/symbol-constructor-detection");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},{"../internals/symbol-constructor-detection":54}],65:[function(t,e,n){"use strict";var r=t("../internals/descriptors"),i=t("../internals/fails");e.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},{"../internals/descriptors":12,"../internals/fails":18}],66:[function(t,e,n){"use strict";var r=t("../internals/global-this"),i=t("../internals/is-callable"),s=r.WeakMap;e.exports=i(s)&&/native code/.test(String(s))},{"../internals/global-this":25,"../internals/is-callable":32}],67:[function(t,e,n){"use strict";var r=t("../internals/function-uncurry-this"),i=WeakMap.prototype;e.exports={WeakMap:WeakMap,set:r(i.set),get:r(i.get),has:r(i.has),remove:r(i.delete)}},{"../internals/function-uncurry-this":22}],68:[function(t,e,n){"use strict";var r=t("../internals/global-this"),i=t("../internals/shared"),s=t("../internals/has-own-property"),o=t("../internals/uid"),a=t("../internals/symbol-constructor-detection"),l=t("../internals/use-symbol-as-uid"),c=r.Symbol,u=i("wks"),f=l?c.for||c:c&&c.withoutSetter||o;e.exports=function(t){return s(u,t)||(u[t]=a&&s(c,t)?c[t]:f("Symbol."+t)),u[t]}},{"../internals/global-this":25,"../internals/has-own-property":26,"../internals/shared":53,"../internals/symbol-constructor-detection":54,"../internals/uid":63,"../internals/use-symbol-as-uid":64}],69:[function(t,e,n){"use strict";var r=t("../internals/export"),i=t("../internals/a-weak-map"),s=t("../internals/weak-map-helpers").remove;r({target:"WeakMap",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var t,e=i(this),n=!0,r=0,o=arguments.length;r<o;r++)t=s(e,arguments[r]),n=n&&t;return!!n}})},{"../internals/a-weak-map":3,"../internals/export":17,"../internals/weak-map-helpers":67}]},{},[1])(1)}));
1
+ "use strict";var titleSwitcher=(()=>{var e,t,r,n=Object.getOwnPropertyNames,o=(e,t)=>function(){try{return t||(0,e[n(e)[0]])((t={exports:{}}).exports,t),t.exports}catch(e){throw t=0,e}},s=(e={"js-build-tools-inject:process"(){}},function(){if(r)throw r[0];try{return e&&(t=(0,e[n(e)[0]])(e=0)),t}catch(e){throw r=[e],e}}),i=o({"node_modules/core-js/internals/global-this.js"(e,t){s();var r=function(e){return e&&e.Math===Math&&e};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof globalThis&&globalThis)||r("object"==typeof e&&e)||function(){return this}()||Function("return this")()}}),a=o({"node_modules/core-js/internals/fails.js"(e,t){s(),t.exports=function(e){try{return!!e()}catch(e){return!0}}}}),c=o({"node_modules/core-js/internals/descriptors.js"(e,t){s();var r=a();t.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}}),l=o({"node_modules/core-js/internals/function-bind-native.js"(e,t){s();var r=a();t.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))}}),u=o({"node_modules/core-js/internals/function-call.js"(e,t){s();var r=l(),n=Function.prototype.call;t.exports=r?n.bind(n):function(){return n.apply(n,arguments)}}}),f=o({"node_modules/core-js/internals/object-property-is-enumerable.js"(e){s();var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!t.call({1:2},1);e.f=n?function(e){var t=r(this,e);return!!t&&t.enumerable}:t}}),p=o({"node_modules/core-js/internals/create-property-descriptor.js"(e,t){s(),t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}}}),d=o({"node_modules/core-js/internals/function-uncurry-this.js"(e,t){s();var r=l(),n=Function.prototype,o=n.call,i=r&&n.bind.bind(o,o);t.exports=r?i:function(e){return function(){return o.apply(e,arguments)}}}}),h=o({"node_modules/core-js/internals/classof-raw.js"(e,t){s();var r=d(),n=r({}.toString),o=r("".slice);t.exports=function(e){return o(n(e),8,-1)}}}),m=o({"node_modules/core-js/internals/indexed-object.js"(e,t){s();var r=d(),n=a(),o=h(),i=Object,c=r("".split);t.exports=n((function(){return!i("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?c(e,""):i(e)}:i}}),y=o({"node_modules/core-js/internals/is-null-or-undefined.js"(e,t){s(),t.exports=function(e){return null==e}}}),j=o({"node_modules/core-js/internals/require-object-coercible.js"(e,t){s();var r=y(),n=TypeError;t.exports=function(e){if(r(e))throw new n("Can't call method on "+e);return e}}}),v=o({"node_modules/core-js/internals/to-indexed-object.js"(e,t){s();var r=m(),n=j();t.exports=function(e){return r(n(e))}}}),b=o({"node_modules/core-js/internals/is-callable.js"(e,t){s();var r="object"==typeof document&&document.all;t.exports=void 0===r&&void 0!==r?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}}}),g=o({"node_modules/core-js/internals/is-object.js"(e,t){s();var r=b();t.exports=function(e){return"object"==typeof e?null!==e:r(e)}}}),w=o({"node_modules/core-js/internals/get-built-in.js"(e,t){s();var r=i(),n=b();t.exports=function(e,t){return arguments.length<2?(o=r[e],n(o)?o:void 0):r[e]&&r[e][t];var o}}}),x=o({"node_modules/core-js/internals/object-is-prototype-of.js"(e,t){s();var r=d();t.exports=r({}.isPrototypeOf)}}),_=o({"node_modules/core-js/internals/environment-user-agent.js"(e,t){s();var r=i().navigator,n=r&&r.userAgent;t.exports=n?String(n):""}}),S=o({"node_modules/core-js/internals/environment-v8-version.js"(e,t){s();var r,n,o=i(),a=_(),c=o.process,l=o.Deno,u=c&&c.versions||l&&l.version,f=u&&u.v8;f&&(n=(r=f.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!n&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(n=+r[1]),t.exports=n}}),T=o({"node_modules/core-js/internals/symbol-constructor-detection.js"(e,t){s();var r=S(),n=a(),o=i().String;t.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))}}),k=o({"node_modules/core-js/internals/use-symbol-as-uid.js"(e,t){s();var r=T();t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}}),O=o({"node_modules/core-js/internals/is-symbol.js"(e,t){s();var r=w(),n=b(),o=x(),i=k(),a=Object;t.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return n(t)&&o(t.prototype,a(e))}}}),M=o({"node_modules/core-js/internals/try-to-string.js"(e,t){s();var r=String;t.exports=function(e){try{return r(e)}catch(e){return"Object"}}}}),E=o({"node_modules/core-js/internals/a-callable.js"(e,t){s();var r=b(),n=M(),o=TypeError;t.exports=function(e){if(r(e))return e;throw new o(n(e)+" is not a function")}}}),L=o({"node_modules/core-js/internals/get-method.js"(e,t){s();var r=E(),n=y();t.exports=function(e,t){var o=e[t];return n(o)?void 0:r(o)}}}),P=o({"node_modules/core-js/internals/ordinary-to-primitive.js"(e,t){s();var r=u(),n=b(),o=g(),i=TypeError;t.exports=function(e,t){var s,a;if("string"===t&&n(s=e.toString)&&!o(a=r(s,e)))return a;if(n(s=e.valueOf)&&!o(a=r(s,e)))return a;if("string"!==t&&n(s=e.toString)&&!o(a=r(s,e)))return a;throw new i("Can't convert object to primitive value")}}}),C=o({"node_modules/core-js/internals/is-pure.js"(e,t){s(),t.exports=!1}}),N=o({"node_modules/core-js/internals/define-global-property.js"(e,t){s();var r=i(),n=Object.defineProperty;t.exports=function(e,t){try{n(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}}}),A=o({"node_modules/core-js/internals/shared-store.js"(e,t){s();var r=C(),n=i(),o=N(),a="__core-js_shared__",c=t.exports=n[a]||o(a,{});(c.versions||(c.versions=[])).push({version:"3.51.0",mode:r?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.51.0/LICENSE",source:"https://github.com/zloirock/core-js"})}}),W=o({"node_modules/core-js/internals/shared.js"(e,t){s();var r=A(),n=Object.create||Object;t.exports=function(e,t){return r[e]||(r[e]=t||n(null))}}}),H=o({"node_modules/core-js/internals/to-object.js"(e,t){s();var r=j(),n=Object;t.exports=function(e){return n(r(e))}}}),I=o({"node_modules/core-js/internals/has-own-property.js"(e,t){s();var r=d(),n=H(),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return o(n(e),t)}}}),F=o({"node_modules/core-js/internals/uid.js"(e,t){s();var r=d(),n=0,o=Math.random(),i=r(1.1.toString);t.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++n+o,36)}}}),$=o({"node_modules/core-js/internals/well-known-symbol.js"(e,t){s();var r=i(),n=W(),o=I(),a=F(),c=T(),l=k(),u=r.Symbol,f=n("wks"),p=l?u.for||u:u&&u.withoutSetter||a;t.exports=function(e){return o(f,e)||(f[e]=c&&o(u,e)?u[e]:p("Symbol."+e)),f[e]}}}),R=o({"node_modules/core-js/internals/to-primitive.js"(e,t){s();var r=u(),n=g(),o=O(),i=L(),a=P(),c=$(),l=TypeError,f=c("toPrimitive");t.exports=function(e,t){if(!n(e)||o(e))return e;var s,c=i(e,f);if(c){if(void 0===t&&(t="default"),s=r(c,e,t),!n(s)||o(s))return s;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}}}),B=o({"node_modules/core-js/internals/to-property-key.js"(e,t){s();var r=R(),n=O();t.exports=function(e){var t=r(e,"string");return n(t)?t:t+""}}}),z=o({"node_modules/core-js/internals/document-create-element.js"(e,t){s();var r=i(),n=g(),o=r.document,a=n(o)&&n(o.createElement);t.exports=function(e){return a?o.createElement(e):{}}}}),D=o({"node_modules/core-js/internals/ie8-dom-define.js"(e,t){s();var r=c(),n=a(),o=z();t.exports=!r&&!n((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))}}),q=o({"node_modules/core-js/internals/object-get-own-property-descriptor.js"(e){s();var t=c(),r=u(),n=f(),o=p(),i=v(),a=B(),l=I(),d=D(),h=Object.getOwnPropertyDescriptor;e.f=t?h:function(e,t){if(e=i(e),t=a(t),d)try{return h(e,t)}catch(e){}if(l(e,t))return o(!r(n.f,e,t),e[t])}}}),G=o({"node_modules/core-js/internals/v8-prototype-define-bug.js"(e,t){s();var r=c(),n=a();t.exports=r&&n((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))}}),U=o({"node_modules/core-js/internals/an-object.js"(e,t){s();var r=g(),n=String,o=TypeError;t.exports=function(e){if(r(e))return e;throw new o(n(e)+" is not an object")}}}),J=o({"node_modules/core-js/internals/object-define-property.js"(e){s();var t=c(),r=D(),n=G(),o=U(),i=B(),a=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f="enumerable",p="configurable",d="writable";e.f=t?n?function(e,t,r){if(o(e),t=i(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&d in r&&!r[d]){var n=u(e,t);n&&n[d]&&(e[t]=r.value,r={configurable:p in r?r[p]:n[p],enumerable:f in r?r[f]:n[f],writable:!1})}return l(e,t,r)}:l:function(e,t,n){if(o(e),t=i(t),o(n),r)try{return l(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new a("Accessors not supported");return"value"in n&&(e[t]=n.value),e}}}),K=o({"node_modules/core-js/internals/create-non-enumerable-property.js"(e,t){s();var r=c(),n=J(),o=p();t.exports=r?function(e,t,r){return n.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}}}),V=o({"node_modules/core-js/internals/function-name.js"(e,t){s();var r=c(),n=I(),o=Function.prototype,i=r&&Object.getOwnPropertyDescriptor,a=n(o,"name"),l=a&&"something"===function(){}.name,u=a&&(!r||r&&i(o,"name").configurable);t.exports={EXISTS:a,PROPER:l,CONFIGURABLE:u}}}),X=o({"node_modules/core-js/internals/inspect-source.js"(e,t){s();var r=d(),n=b(),o=A(),i=r(Function.toString);n(o.inspectSource)||(o.inspectSource=function(e){return i(e)}),t.exports=o.inspectSource}}),Y=o({"node_modules/core-js/internals/weak-map-basic-detection.js"(e,t){s();var r=i(),n=b(),o=r.WeakMap;t.exports=n(o)&&/native code/.test(String(o))}}),Q=o({"node_modules/core-js/internals/shared-key.js"(e,t){s();var r=W(),n=F(),o=r("keys");t.exports=function(e){return o[e]||(o[e]=n(e))}}}),Z=o({"node_modules/core-js/internals/hidden-keys.js"(e,t){s(),t.exports={}}}),ee=o({"node_modules/core-js/internals/internal-state.js"(e,t){s();var r,n,o,a,c,l=Y(),u=i(),f=g(),p=K(),d=I(),h=A(),m=Q(),y=Z(),j="Object already initialized",v=u.TypeError,b=u.WeakMap;l||h.state?((a=h.state||(h.state=new b)).get=a.get,a.has=a.has,a.set=a.set,r=function(e,t){if(a.has(e))throw new v(j);return t.facade=e,a.set(e,t),t},n=function(e){return a.get(e)||{}},o=function(e){return a.has(e)}):(y[c=m("state")]=!0,r=function(e,t){if(d(e,c))throw new v(j);return t.facade=e,p(e,c,t),t},n=function(e){return d(e,c)?e[c]:{}},o=function(e){return d(e,c)}),t.exports={set:r,get:n,has:o,enforce:function(e){return o(e)?n(e):r(e,{})},getterFor:function(e){return function(t){var r;if(!f(t)||(r=n(t)).type!==e)throw new v("Incompatible receiver, "+e+" required");return r}}}}}),te=o({"node_modules/core-js/internals/make-built-in.js"(e,t){s();var r=d(),n=a(),o=b(),i=I(),l=c(),u=V().CONFIGURABLE,f=X(),p=ee(),h=p.enforce,m=p.get,y=String,j=Object.defineProperty,v=r("".slice),g=r("".replace),w=r([].join),x=l&&!n((function(){return 8!==j((function(){}),"length",{value:8}).length})),_=String(String).split("String"),S=t.exports=function(e,t,r){"Symbol("===v(y(t),0,7)&&(t="["+g(y(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!i(e,"name")||u&&e.name!==t)&&(l?j(e,"name",{value:t,configurable:!0}):e.name=t),x&&r&&i(r,"arity")&&e.length!==r.arity&&j(e,"length",{value:r.arity});try{r&&i(r,"constructor")&&r.constructor?l&&j(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=h(e);return i(n,"source")||(n.source=w(_,"string"==typeof t?t:"")),e};Function.prototype.toString=S((function(){return o(this)&&m(this).source||f(this)}),"toString")}}),re=o({"node_modules/core-js/internals/define-built-in.js"(e,t){s();var r=b(),n=J(),o=te(),i=N();t.exports=function(e,t,s,a){a||(a={});var c=a.enumerable,l=void 0!==a.name?a.name:t;if(r(s)&&o(s,l,a),a.global)c?e[t]=s:i(t,s);else{try{a.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}c?e[t]=s:n.f(e,t,{value:s,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}}}),ne=o({"node_modules/core-js/internals/math-trunc.js"(e,t){s();var r=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?n:r)(t)}}}),oe=o({"node_modules/core-js/internals/to-integer-or-infinity.js"(e,t){s();var r=ne();t.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}}}),se=o({"node_modules/core-js/internals/to-absolute-index.js"(e,t){s();var r=oe(),n=Math.max,o=Math.min;t.exports=function(e,t){var s=r(e);return s<0?n(s+t,0):o(s,t)}}}),ie=o({"node_modules/core-js/internals/to-length.js"(e,t){s();var r=oe(),n=Math.min;t.exports=function(e){var t=r(e);return t>0?n(t,9007199254740991):0}}}),ae=o({"node_modules/core-js/internals/length-of-array-like.js"(e,t){s();var r=ie();t.exports=function(e){return r(e.length)}}}),ce=o({"node_modules/core-js/internals/array-includes.js"(e,t){s();var r=v(),n=se(),o=ae(),i=function(e){return function(t,s,i){var a=r(t),c=o(a);if(0===c)return!e&&-1;var l,u=n(i,c);if(e&&s!=s){for(;c>u;)if((l=a[u++])!=l)return!0}else for(;c>u;u++)if((e||u in a)&&a[u]===s)return e||u||0;return!e&&-1}};t.exports={includes:i(!0),indexOf:i(!1)}}}),le=o({"node_modules/core-js/internals/object-keys-internal.js"(e,t){s();var r=d(),n=I(),o=v(),i=ce().indexOf,a=Z(),c=r([].push);t.exports=function(e,t){var r,s=o(e),l=0,u=[];for(r in s)!n(a,r)&&n(s,r)&&c(u,r);for(;t.length>l;)n(s,r=t[l++])&&(~i(u,r)||c(u,r));return u}}}),ue=o({"node_modules/core-js/internals/enum-bug-keys.js"(e,t){s(),t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}}),fe=o({"node_modules/core-js/internals/object-get-own-property-names.js"(e){s();var t=le(),r=ue().concat("length","prototype");e.f=Object.getOwnPropertyNames||function(e){return t(e,r)}}}),pe=o({"node_modules/core-js/internals/object-get-own-property-symbols.js"(e){s(),e.f=Object.getOwnPropertySymbols}}),de=o({"node_modules/core-js/internals/own-keys.js"(e,t){s();var r=w(),n=d(),o=fe(),i=pe(),a=U(),c=n([].concat);t.exports=r("Reflect","ownKeys")||function(e){var t=o.f(a(e)),r=i.f;return r?c(t,r(e)):t}}}),he=o({"node_modules/core-js/internals/copy-constructor-properties.js"(e,t){s();var r=I(),n=de(),o=q(),i=J();t.exports=function(e,t,s){for(var a=n(t),c=i.f,l=o.f,u=0;u<a.length;u++){var f=a[u];r(e,f)||s&&r(s,f)||c(e,f,l(t,f))}}}}),me=o({"node_modules/core-js/internals/is-forced.js"(e,t){s();var r=a(),n=b(),o=/#|\.prototype\./,i=function(e,t){var o=l[c(e)];return o===f||o!==u&&(n(t)?r(t):!!t)},c=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=i.data={},u=i.NATIVE="N",f=i.POLYFILL="P";t.exports=i}}),ye=o({"node_modules/core-js/internals/export.js"(e,t){s();var r=i(),n=q().f,o=K(),a=re(),c=N(),l=he(),u=me();t.exports=function(e,t){var s,i,f,p,d,h=e.target,m=e.global,y=e.stat;if(s=m?r:y?r[h]||c(h,{}):r[h]&&r[h].prototype)for(i in t){if(p=t[i],f=e.dontCallGetSet?(d=n(s,i))&&d.value:s[i],!u(m?i:h+(y?".":"#")+i,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;l(p,f)}(e.sham||f&&f.sham)&&o(p,"sham",!0),a(s,i,p,e)}}}}),je=o({"node_modules/core-js/internals/weak-map-helpers.js"(e,t){s();var r=d(),n=WeakMap.prototype;t.exports={WeakMap:WeakMap,set:r(n.set),get:r(n.get),has:r(n.has),remove:r(n.delete)}}}),ve=o({"node_modules/core-js/internals/a-weak-map.js"(e,t){s();var r=je().has;t.exports=function(e){return r(e),e}}}),be=o({"node_modules/core-js/modules/esnext.weak-map.delete-all.js"(){s();var e=ye(),t=ve(),r=je().remove;e({target:"WeakMap",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,n=t(this),o=!0,s=0,i=arguments.length;s<i;s++)e=r(n,arguments[s]),o=o&&e;return!!o}})}});return o({"dist/main.js"(e){s(),be();var t,r,n,o,i,a,c,l,u,f,p=function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r},d=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};Object.defineProperty(e,"__esModule",{value:!0});var h=class{constructor(e="",s="typingEffect"){t.set(this,!1),r.set(this,"displayTitle"),n.set(this,0),o.set(this,200),i.set(this,400),a.set(this,!1),c.set(this,[]),l.set(this,""),u.set(this,void 0),f.set(this,void 0),p(this,r,"displayTitle","f"),p(this,u,"string"==typeof s?"function"==typeof this[s]?this[s]:this.typingEffect:s,"f"),p(this,l,e,"f"),p(this,c,[],"f");const d=e?document.querySelectorAll(e):[];d&&d[0]&&(p(this,l,d[0],"f"),p(this,c,d[0].children,"f"))}get active(){return d(this,t,"f")}get currentClass(){return d(this,r,"f")}get currentIndex(){return d(this,n,"f")}get delayEffect(){return d(this,o,"f")}get delaySwitch(){return d(this,i,"f")}get switchStyle(){return d(this,u,"f")}get titles(){return d(this,c,"f")}get typeSurface(){return d(this,f,"f")}startTitles({delaySwitch:e=400,delayEffect:s=200,isRandom:h=!1,immediatePause:m=!1}={}){const y="typeSurface";if(p(this,i,e,"f"),p(this,o,s,"f"),p(this,a,h,"f"),p(this,t,!m,"f"),d(this,n,"f")>=d(this,c,"f").length||"string"==typeof d(this,l,"f"))return p(this,t,!1,"f"),console.warn(`No titles found for '${d(this,l,"f")}'`),this;d(this,a,"f")&&p(this,n,Math.round(Math.random()*(d(this,c,"f").length-2))+1,"f");const j=d(this,c,"f")[d(this,n,"f")];j.classList?j.classList.add(d(this,r,"f")):j.className+=" "+d(this,r,"f");const v=d(this,c,"f")[0].cloneNode(!0);return v.classList?v.classList.add(y):v.className+=" "+y,v.classList?v.classList.remove(d(this,r,"f")):v.className=v.className.replace(new RegExp("(^|\\b)"+v.className.split(" ").join("|")+"(\\b|$)","gi")," "),d(this,l,"f").insertBefore(v,d(this,l,"f").firstChild),p(this,f,d(this,l,"f").querySelectorAll("."+y)[0],"f"),d(this,f,"f").innerHTML="",d(this,f,"f").style.display="block",Array.prototype.forEach.call(d(this,c,"f"),(function(e){e.style.display="none"})),this.switchTitle(j,d(this,u,"f"),this)}pause(){p(this,t,!1,"f")}resume(){d(this,t,"f")||(p(this,t,!0,"f"),this.switchTitle(d(this,c,"f")[d(this,n,"f")],d(this,u,"f"),this))}switchTitle(e,r,o,s=!1){let i=1;const l=d(o=o||this,c,"f").length;for(let t=1;t<l;++t)if(d(o,c,"f")[t]===e){i=t;break}if(!d(o,t,"f"))return p(o,n,i,"f"),o;const u=d(o,c,"f").length-1;let f=1;if(1===u)return r(e,s?()=>o:o.switchTitle,o,s);if(d(o,a,"f")){o.typeSurface.textContent.trim()||(i=-1);do{f=Math.round(Math.random()*(u-1))+1}while(f===i)}else o.typeSurface.textContent.trim()||(i=u),f=i<u?i+1:1;const h=d(o,c,"f")[f];return e.classList?e.classList.remove(o.currentClass):e.className=e.className.replace(new RegExp("(^|\\b)"+e.className.split(" ").join("|")+"(\\b|$)","gi")," "),h.classList?h.classList.add(o.currentClass):h.className+=" "+o.currentClass,r(h,s?()=>o:o.switchTitle,o,s)}};t=new WeakMap,r=new WeakMap,n=new WeakMap,o=new WeakMap,i=new WeakMap,a=new WeakMap,c=new WeakMap,l=new WeakMap,u=new WeakMap,f=new WeakMap,h.prototype.cursorBlink=(e,t)=>(t=t||void 0,e?(t.typeSurface.innerHTML=t.typeSurface.innerHTML.replace(/\||&nbsp;*(<\/span>)?$/,"$1").trim(),t.typeSurface.innerHTML=t.typeSurface.innerHTML+'<span style="display: inline-block;font-weight: normal; color: black; text-decoration: none">&#124;</span>'):t.typeSurface.innerHTML=t.typeSurface.innerHTML.replace(/\|(<\/span>)$/,"&nbsp;$1"),t);var m=e=>{let t=0;return Array.prototype.forEach.call(e.childNodes,(e=>{if(3===e.nodeType){const r=e.textContent||"";let n=0;for(;n<r.length;){if(/\s/.test(r[n]))for(;n<r.length&&/\s/.test(r[n]);)++n;else++n;++t}}else 1===e.nodeType&&(t+=m(e))})),t},y=(e,t)=>{let r="";const n=Array.prototype.slice.call(e.childNodes);for(let e=0;e<n.length&&t>0;++e){const o=n[e];if(3===o.nodeType){const e=o.textContent||"";let n=0,s="";for(;n<e.length&&t>0;){if(/\s/.test(e[n])){const t=n;for(;n<e.length&&/\s/.test(e[n]);)++n;s+=e.slice(t,n)}else s+=e[n],++n;--t}r+=s}else if(1===o.nodeType){const e=y(o,t);if(e.html){const t=o.cloneNode(!1);t.innerHTML=e.html,r+=t.outerHTML}t=e.remaining}}return{html:r,remaining:t}};h.prototype.typingEffect=(e,t,r,n=!1)=>{const o=(r=r||void 0).titles.length;let s=0;for(let t=1;t<o;++t)if(r.titles[t]===e){s=t;break}e=e||r.titles[s+1];let i=!0;r.typeSurface.hasAttribute("style")&&r.typeSurface.removeAttribute("style"),e.hasAttribute("style")&&r.typeSurface.setAttribute("style",e.getAttribute("style")),r.typeSurface.innerHTML="",r.typeSurface.style.display="block";for(let e=0;e<4;++e)setTimeout((()=>{r.cursorBlink(i,r),i=!i}),e*r.delaySwitch);return setTimeout((()=>{r.typeSurface.innerHTML="",r.cursorBlink(!0,r);const o=m(e);for(let s=0;s<o;++s)setTimeout((()=>{if(r.typeSurface.innerHTML=y(e,s+1).html+'<span style="font-weight: normal; color: black; text-decoration: none">&#124;</span>',e.textContent+"|"===r.typeSurface.textContent){r.typeSurface.innerHTML=e.innerHTML+'<span style="font-weight: normal; color: black; text-decoration: none">&#124;</span>';for(let o=0;o<8;++o)setTimeout((()=>{--o,r.cursorBlink(i,r),0===o&&t(e,n?()=>r:r.switchStyle,r,n)}),o*r.delaySwitch)}}),s*r.delayEffect)}),4*r.delaySwitch),r},e.default=h,"undefined"!=typeof window&&(window.TitleSwitcher=h)}})()})();"object"==typeof module&&module&&module.exports&&(module.exports=titleSwitcher);