GameSentenceMiner 2.10.5__py3-none-any.whl → 2.10.7__py3-none-any.whl
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.
- GameSentenceMiner/config_gui.py +16 -6
- GameSentenceMiner/gsm.py +1 -0
- GameSentenceMiner/obs.py +2 -4
- GameSentenceMiner/ocr/gsm_ocr_config.py +2 -2
- GameSentenceMiner/ocr/owocr_helper.py +8 -7
- GameSentenceMiner/owocr/owocr/run.py +2 -1
- GameSentenceMiner/util/configuration.py +6 -0
- GameSentenceMiner/util/downloader/oneocr_dl.py +5 -3
- GameSentenceMiner/util/model.py +1 -1
- GameSentenceMiner/web/templates/index.html +12 -12
- GameSentenceMiner/web/texthooking_page.py +13 -3
- {gamesentenceminer-2.10.5.dist-info → gamesentenceminer-2.10.7.dist-info}/METADATA +1 -1
- {gamesentenceminer-2.10.5.dist-info → gamesentenceminer-2.10.7.dist-info}/RECORD +17 -17
- {gamesentenceminer-2.10.5.dist-info → gamesentenceminer-2.10.7.dist-info}/WHEEL +0 -0
- {gamesentenceminer-2.10.5.dist-info → gamesentenceminer-2.10.7.dist-info}/entry_points.txt +0 -0
- {gamesentenceminer-2.10.5.dist-info → gamesentenceminer-2.10.7.dist-info}/licenses/LICENSE +0 -0
- {gamesentenceminer-2.10.5.dist-info → gamesentenceminer-2.10.7.dist-info}/top_level.txt +0 -0
@@ -16,29 +16,29 @@
|
|
16
16
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
17
17
|
<title>Texthooker UI</title>
|
18
18
|
<script type="module" crossorigin>
|
19
|
-
var pu=Object.defineProperty;var du=(e,n,t)=>n in e?pu(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var
|
20
|
-
`;for(let
|
19
|
+
var pu=Object.defineProperty;var du=(e,n,t)=>n in e?pu(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var Pi=(e,n,t)=>(du(e,typeof n!="symbol"?n+"":n,t),t);(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function t(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerpolicy&&(o.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?o.credentials="include":i.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=t(i);fetch(i.href,o)}})();function Le(){}const mu=e=>e;function gu(e,n){for(const t in n)e[t]=n[t];return e}function lc(e){return e()}function ha(){return Object.create(null)}function St(e){e.forEach(lc)}function El(e){return typeof e=="function"}function mt(e,n){return e!=e?n==n:e!==n||e&&typeof e=="object"||typeof e=="function"}function bu(e){return Object.keys(e).length===0}function vu(e,...n){if(e==null)return Le;const t=e.subscribe(...n);return t.unsubscribe?()=>t.unsubscribe():t}function w(e,n,t){e.$$.on_destroy.push(vu(n,t))}function R(e,n,t){return e.set(t),n}function _u(e){return e&&El(e.destroy)?e.destroy:Le}const sc=typeof window<"u";let yu=sc?()=>window.performance.now():()=>Date.now(),ps=sc?e=>requestAnimationFrame(e):Le;const zr=new Set;function ac(e){zr.forEach(n=>{n.c(e)||(zr.delete(n),n.f())}),zr.size!==0&&ps(ac)}function wu(e){let n;return zr.size===0&&ps(ac),{promise:new Promise(t=>{zr.add(n={c:e,f:t})}),abort(){zr.delete(n)}}}function u(e,n){e.appendChild(n)}function cc(e){if(!e)return document;const n=e.getRootNode?e.getRootNode():e.ownerDocument;return n&&n.host?n:e.ownerDocument}function ku(e){const n=b("style");return Su(cc(e),n),n.sheet}function Su(e,n){return u(e.head||e,n),n.sheet}function j(e,n,t){e.insertBefore(n,t||null)}function F(e){e.parentNode&&e.parentNode.removeChild(e)}function b(e){return document.createElement(e)}function Ql(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function st(e){return document.createTextNode(e)}function _(){return st(" ")}function Gn(){return st("")}function x(e,n,t,r){return e.addEventListener(n,t,r),()=>e.removeEventListener(n,t,r)}function f(e,n,t){t==null?e.removeAttribute(n):e.getAttribute(n)!==t&&e.setAttribute(n,t)}function Cu(e,n,t){const r=new Set;for(let i=0;i<e.length;i+=1)e[i].checked&&r.add(e[i].__value);return t||r.delete(n),Array.from(r)}function hl(e){return e===""?null:+e}function Eu(e){return Array.from(e.childNodes)}function At(e,n){n=""+n,e.wholeText!==n&&(e.data=n)}function vt(e,n){e.value=n??""}function Pt(e,n,t,r){t===null?e.style.removeProperty(n):e.style.setProperty(n,t,r?"important":"")}function qr(e,n){for(let t=0;t<e.options.length;t+=1){const r=e.options[t];if(r.__value===n){r.selected=!0;return}}e.selectedIndex=-1}function Lu(e){const n=e.querySelector(":checked")||e.options[0];return n&&n.__value}function te(e,n,t){e.classList[t?"add":"remove"](n)}function uc(e,n,{bubbles:t=!1,cancelable:r=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(e,t,r,n),i}class fc{constructor(n=!1){this.is_svg=!1,this.is_svg=n,this.e=this.n=null}c(n){this.h(n)}m(n,t,r=null){this.e||(this.is_svg?this.e=Ql(t.nodeName):this.e=b(t.nodeName),this.t=t,this.c(n)),this.i(r)}h(n){this.e.innerHTML=n,this.n=Array.from(this.e.childNodes)}i(n){for(let t=0;t<this.n.length;t+=1)j(this.t,this.n[t],n)}p(n){this.d(),this.h(n),this.i(this.a)}d(){this.n.forEach(F)}}const pl=new Map;let dl=0;function xu(e){let n=5381,t=e.length;for(;t--;)n=(n<<5)-n^e.charCodeAt(t);return n>>>0}function Pu(e,n){const t={stylesheet:ku(n),rules:{}};return pl.set(e,t),t}function Au(e,n,t,r,i,o,s,l=0){const a=16.666/r;let c=`{
|
20
|
+
`;for(let $=0;$<=1;$+=a){const D=n+(t-n)*o($);c+=$*100+`%{${s(D,1-D)}}
|
21
21
|
`}const h=c+`100% {${s(t,1-t)}}
|
22
|
-
}`,p=`__svelte_${xu(h)}_${l}`,d=cc(e),{stylesheet:g,rules:v}=hl.get(d)||Pu(d,e);v[p]||(v[p]=!0,g.insertRule(`@keyframes ${p} ${h}`,g.cssRules.length));const S=e.style.animation||"";return e.style.animation=`${S?`${S}, `:""}${p} ${r}ms linear ${o}ms 1 both`,pl+=1,p}function pa(e,n){const t=(e.style.animation||"").split(", "),r=t.filter(n?i=>i.indexOf(n)<0:i=>i.indexOf("__svelte")===-1),o=t.length-r.length;o&&(e.style.animation=r.join(", "),pl-=o,pl||Du())}function Du(){ps(()=>{pl||(hl.forEach(e=>{const{ownerNode:n}=e.stylesheet;n&&F(n)}),hl.clear())})}let Uo;function Mo(e){Uo=e}function ds(){if(!Uo)throw new Error("Function called outside component initialization");return Uo}function El(e){ds().$$.on_mount.push(e)}function hc(e){ds().$$.on_destroy.push(e)}function Eo(){const e=ds();return(n,t,{cancelable:r=!1}={})=>{const o=e.$$.callbacks[n];if(o){const i=uc(n,t,{cancelable:r});return o.slice().forEach(s=>{s.call(e,i)}),!i.defaultPrevented}return!0}}function Bo(e,n){const t=e.$$.callbacks[n.type];t&&t.slice().forEach(r=>r.call(this,n))}const To=[],ct=[],nl=[],Ql=[],pc=Promise.resolve();let es=!1;function dc(){es||(es=!0,pc.then(mc))}function Wo(){return dc(),pc}function br(e){nl.push(e)}function Rl(e){Ql.push(e)}const Hl=new Set;let Xi=0;function mc(){const e=Uo;do{for(;Xi<To.length;){const n=To[Xi];Xi++,Mo(n),Tu(n.$$)}for(Mo(null),To.length=0,Xi=0;ct.length;)ct.pop()();for(let n=0;n<nl.length;n+=1){const t=nl[n];Hl.has(t)||(Hl.add(t),t())}nl.length=0}while(To.length);for(;Ql.length;)Ql.pop()();es=!1,Hl.clear(),Mo(e)}function Tu(e){if(e.fragment!==null){e.update(),Ct(e.before_update);const n=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,n),e.after_update.forEach(br)}}let Do;function Ou(){return Do||(Do=Promise.resolve(),Do.then(()=>{Do=null})),Do}function da(e,n,t){e.dispatchEvent(uc(`${n?"intro":"outro"}${t}`))}const rl=new Set;let hr;function dt(){hr={r:0,c:[],p:hr}}function mt(){hr.r||Ct(hr.c),hr=hr.p}function M(e,n){e&&e.i&&(rl.delete(e),e.i(n))}function W(e,n,t,r){if(e&&e.o){if(rl.has(e))return;rl.add(e),hr.c.push(()=>{rl.delete(e),r&&(t&&e.d(1),r())}),e.o(n)}else r&&r()}const Iu={duration:0};function gc(e,n,t){const r={direction:"in"};let o=n(e,t,r),i=!1,s,l,a=0;function c(){s&&pa(e,s)}function h(){const{delay:d=0,duration:g=300,easing:v=mu,tick:S=xe,css:I}=o||Iu;I&&(s=Au(e,0,1,g,d,v,I,a++)),S(0,1);const D=yu()+d,T=D+g;l&&l.abort(),i=!0,br(()=>da(e,!0,"start")),l=wu(P=>{if(i){if(P>=T)return S(1,0),da(e,!0,"end"),c(),i=!1;if(P>=D){const $=v((P-D)/g);S($,1-$)}}return i})}let p=!1;return{start(){p||(p=!0,pa(e),Cl(o)?(o=o(r),Ou().then(h)):h())},invalidate(){p=!1},end(){i&&(c(),i=!1)}}}const bc=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function Ll(e,n){e.d(1),n.delete(e.key)}function vc(e,n){W(e,1,1,()=>{n.delete(e.key)})}function Lo(e,n,t,r,o,i,s,l,a,c,h,p){let d=e.length,g=i.length,v=d;const S={};for(;v--;)S[e[v].key]=v;const I=[],D=new Map,T=new Map;for(v=g;v--;){const G=p(o,i,v),U=t(G);let A=s.get(U);A?r&&A.p(G,n):(A=c(U,G),A.c()),D.set(U,I[v]=A),U in S&&T.set(U,Math.abs(v-S[U]))}const P=new Set,$=new Set;function q(G){M(G,1),G.m(l,h),s.set(G.key,G),h=G.first,g--}for(;d&&g;){const G=I[g-1],U=e[d-1],A=G.key,L=U.key;G===U?(h=G.first,d--,g--):D.has(L)?!s.has(A)||P.has(A)?q(G):$.has(L)?d--:T.get(A)>T.get(L)?($.add(A),q(G)):(P.add(L),d--):(a(U,s),d--)}for(;d--;){const G=e[d];D.has(G.key)||a(G,s)}for(;g;)q(I[g-1]);return I}function $u(e,n){const t={},r={},o={$$scope:1};let i=e.length;for(;i--;){const s=e[i],l=n[i];if(l){for(const a in s)a in l||(r[a]=1);for(const a in l)o[a]||(t[a]=l[a],o[a]=1);e[i]=l}else for(const a in s)o[a]=1}for(const s in r)s in t||(t[s]=void 0);return t}function Mu(e){return typeof e=="object"&&e!==null?e:{}}function Vl(e,n,t,r){const o=e.$$.props[n];o!==void 0&&(e.$$.bound[o]=t,r===void 0&&t(e.$$.ctx[o]))}function se(e){e&&e.c()}function re(e,n,t,r){const{fragment:o,after_update:i}=e.$$;o&&o.m(n,t),r||br(()=>{const s=e.$$.on_mount.map(lc).filter(Cl);e.$$.on_destroy?e.$$.on_destroy.push(...s):Ct(s),e.$$.on_mount=[]}),i.forEach(br)}function oe(e,n){const t=e.$$;t.fragment!==null&&(Ct(t.on_destroy),t.fragment&&t.fragment.d(n),t.on_destroy=t.fragment=null,t.ctx=[])}function Nu(e,n){e.$$.dirty[0]===-1&&(To.push(e),dc(),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31}function Dt(e,n,t,r,o,i,s,l=[-1]){const a=Uo;Mo(e);const c=e.$$={fragment:null,ctx:[],props:i,update:xe,not_equal:o,bound:ha(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(a?a.$$.context:[])),callbacks:ha(),dirty:l,skip_bound:!1,root:n.target||a.$$.root};s&&s(c.root);let h=!1;if(c.ctx=t?t(e,n.props||{},(p,d,...g)=>{const v=g.length?g[0]:d;return c.ctx&&o(c.ctx[p],c.ctx[p]=v)&&(!c.skip_bound&&c.bound[p]&&c.bound[p](v),h&&Nu(e,p)),d}):[],c.update(),h=!0,Ct(c.before_update),c.fragment=r?r(c.ctx):!1,n.target){if(n.hydrate){const p=Eu(n.target);c.fragment&&c.fragment.l(p),p.forEach(F)}else c.fragment&&c.fragment.c();n.intro&&M(e.$$.fragment),re(e,n.target,n.anchor,n.customElement),mc()}Mo(a)}class Tt{$destroy(){oe(this,1),this.$destroy=xe}$on(n,t){if(!Cl(t))return xe;const r=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return r.push(t),()=>{const o=r.indexOf(t);o!==-1&&r.splice(o,1)}}$set(n){this.$$set&&!bu(n)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}var Ru="M20 13.5C20 17.09 17.09 20 13.5 20H6V18H13.5C16 18 18 16 18 13.5S16 9 13.5 9H7.83L10.91 12.09L9.5 13.5L4 8L9.5 2.5L10.92 3.91L7.83 7H13.5C17.09 7 20 9.91 20 13.5Z",_c="M12 2C17.5 2 22 6.5 22 12S17.5 22 12 22 2 17.5 2 12 6.5 2 12 2M12 4C10.1 4 8.4 4.6 7.1 5.7L18.3 16.9C19.3 15.5 20 13.8 20 12C20 7.6 16.4 4 12 4M16.9 18.3L5.7 7.1C4.6 8.4 4 10.1 4 12C4 16.4 7.6 20 12 20C13.9 20 15.6 19.4 16.9 18.3Z",yc="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",Hu="M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z",Vu="M21.4 7.5C22.2 8.3 22.2 9.6 21.4 10.3L18.6 13.1L10.8 5.3L13.6 2.5C14.4 1.7 15.7 1.7 16.4 2.5L18.2 4.3L21.2 1.3L22.6 2.7L19.6 5.7L21.4 7.5M15.6 13.3L14.2 11.9L11.4 14.7L9.3 12.6L12.1 9.8L10.7 8.4L7.9 11.2L6.4 9.8L3.6 12.6C2.8 13.4 2.8 14.7 3.6 15.4L5.4 17.2L1.4 21.2L2.8 22.6L6.8 18.6L8.6 20.4C9.4 21.2 10.7 21.2 11.4 20.4L14.2 17.6L12.8 16.2L15.6 13.3Z",Fu="M15,9H5V5H15M12,19A3,3 0 0,1 9,16A3,3 0 0,1 12,13A3,3 0 0,1 15,16A3,3 0 0,1 12,19M17,3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V7L17,3Z",ts="M19,12V13.5A4,4 0 0,1 23,17.5C23,18.32 22.75,19.08 22.33,19.71L21.24,18.62C21.41,18.28 21.5,17.9 21.5,17.5A2.5,2.5 0 0,0 19,15V16.5L16.75,14.25L19,12M19,23V21.5A4,4 0 0,1 15,17.5C15,16.68 15.25,15.92 15.67,15.29L16.76,16.38C16.59,16.72 16.5,17.1 16.5,17.5A2.5,2.5 0 0,0 19,20V18.5L21.25,20.75L19,23M12,3C16.42,3 20,4.79 20,7C20,9.21 16.42,11 12,11C7.58,11 4,9.21 4,7C4,4.79 7.58,3 12,3M4,9C4,11.21 7.58,13 12,13C13.11,13 14.17,12.89 15.14,12.68C14.19,13.54 13.5,14.67 13.18,15.96L12,16C7.58,16 4,14.21 4,12V9M20,9V11H19.5L18.9,11.03C19.6,10.43 20,9.74 20,9M4,14C4,16.21 7.58,18 12,18L13,17.97C13.09,19.03 13.42,20 13.95,20.88L12,21C7.58,21 4,19.21 4,17V14Z",No="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",ju="M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19M8.46,11.88L9.87,10.47L12,12.59L14.12,10.47L15.53,11.88L13.41,14L15.53,16.12L14.12,17.53L12,15.41L9.88,17.53L8.47,16.12L10.59,14L8.46,11.88M15.5,4L14.5,3H9.5L8.5,4H5V6H19V4H15.5Z",Uu="M9,1V7H5L12,14L19,7H15V1H9M5,16V18H19V16H5M5,20V22H19V20H5Z",Bu="M5,3A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5.5L18.5,3H17V9A1,1 0 0,1 16,10H8A1,1 0 0,1 7,9V3H5M12,4V9H15V4H12M7,12H17A1,1 0 0,1 18,13V19H6V13A1,1 0 0,1 7,12Z",Bt="M15.07,11.25L14.17,12.17C13.45,12.89 13,13.5 13,15H11V14.5C11,13.39 11.45,12.39 12.17,11.67L13.41,10.41C13.78,10.05 14,9.55 14,9C14,7.89 13.1,7 12,7A2,2 0 0,0 10,9H8A4,4 0 0,1 12,5A4,4 0 0,1 16,9C16,9.88 15.64,10.67 15.07,11.25M13,19H11V17H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z",Wu="M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",zu="M21 10V9L15 3H5C3.89 3 3 3.89 3 5V19C3 20.11 3.9 21 5 21H11V19.13L19.39 10.74C19.83 10.3 20.39 10.06 21 10M14 4.5L19.5 10H14V4.5M22.85 14.19L21.87 15.17L19.83 13.13L20.81 12.15C21 11.95 21.33 11.95 21.53 12.15L22.85 13.47C23.05 13.67 23.05 14 22.85 14.19M19.13 13.83L21.17 15.87L15.04 22H13V19.96L19.13 13.83Z",Yu="M14,19H18V5H14M6,19H10V5H6V19Z",Gu="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",qu="M8,5.14V19.14L19,12.14L8,5.14Z",wc="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",Xu="M2 12C2 16.97 6.03 21 11 21C13.39 21 15.68 20.06 17.4 18.4L15.9 16.9C14.63 18.25 12.86 19 11 19C4.76 19 1.64 11.46 6.05 7.05C10.46 2.64 18 5.77 18 12H15L19 16H19.1L23 12H20C20 7.03 15.97 3 11 3C6.03 3 2 7.03 2 12Z",Ku="M15 3H9V1H15V3M12 18.5C12 19.77 12.37 20.94 13 21.94C12.67 22 12.34 22 12 22C7.03 22 3 17.97 3 13S7.03 4 12 4C14.12 4 16.07 4.74 17.62 6L19.04 4.56C19.55 5 20 5.46 20.45 5.97L19.03 7.39C20.16 8.81 20.87 10.57 21 12.5C20.22 12.18 19.38 12 18.5 12C14.91 12 12 14.91 12 18.5M13 7H11V14H13V7M23 18.5C23 21 21 23 18.5 23S14 21 14 18.5 16 14 18.5 14 23 16 23 18.5M20 21.08L15.92 17C15.65 17.42 15.5 17.94 15.5 18.5C15.5 20.16 16.84 21.5 18.5 21.5C19.06 21.5 19.58 21.35 20 21.08M21.5 18.5C21.5 16.84 20.16 15.5 18.5 15.5C17.94 15.5 17.42 15.65 17 15.92L21.08 20C21.35 19.58 21.5 19.06 21.5 18.5Z",Zu="M15 3H9V1H15V3M19.39 10.74L11 19.13V21.94C6.5 21.44 3 17.63 3 13C3 8.03 7.03 4 12 4C14.12 4 16.07 4.74 17.62 6L19.04 4.56C19.55 5 20 5.46 20.45 5.97L19.03 7.39C19.67 8.19 20.17 9.11 20.5 10.1C20.1 10.21 19.71 10.42 19.39 10.74M13 7H11V14H13V7M13 19.96V22H15.04L21.17 15.88L19.13 13.83L13 19.96M22.85 13.47L21.53 12.15C21.33 11.95 21 11.95 20.81 12.15L19.83 13.13L21.87 15.17L22.85 14.19C23.05 14 23.05 13.67 22.85 13.47Z",Ju="M17 6H7c-3.31 0-6 2.69-6 6s2.69 6 6 6h10c3.31 0 6-2.69 6-6s-2.69-6-6-6zm0 10H7c-2.21 0-4-1.79-4-4s1.79-4 4-4h10c2.21 0 4 1.79 4 4s-1.79 4-4 4zM7 9c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z",Qu="M17 6H7C3.69 6 1 8.69 1 12S3.69 18 7 18H17C20.31 18 23 15.31 23 12S20.31 6 17 6M17 16H7C4.79 16 3 14.21 3 12S4.79 8 7 8H17C19.21 8 21 9.79 21 12S19.21 16 17 16M17 9C15.34 9 14 10.34 14 12S15.34 15 17 15 20 13.66 20 12 18.66 9 17 9Z",kc="M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M7,6H17V19H7V6M9,8V17H11V8H9M13,8V17H15V8H13Z",ef="M17.75,4.09L15.22,6.03L16.13,9.09L13.5,7.28L10.87,9.09L11.78,6.03L9.25,4.09L12.44,4L13.5,1L14.56,4L17.75,4.09M21.25,11L19.61,12.25L20.2,14.23L18.5,13.06L16.8,14.23L17.39,12.25L15.75,11L17.81,10.95L18.5,9L19.19,10.95L21.25,11M18.97,15.95C19.8,15.87 20.69,17.05 20.16,17.8C19.84,18.25 19.5,18.67 19.08,19.07C15.17,23 8.84,23 4.94,19.07C1.03,15.17 1.03,8.83 4.94,4.93C5.34,4.53 5.76,4.17 6.21,3.85C6.96,3.32 8.14,4.21 8.06,5.04C7.79,7.9 8.75,10.87 10.95,13.06C13.14,15.26 16.1,16.22 18.97,15.95M17.33,17.97C14.5,17.81 11.7,16.64 9.53,14.5C7.36,12.31 6.2,9.5 6.04,6.68C3.23,9.82 3.34,14.64 6.35,17.66C9.37,20.67 14.19,20.78 17.33,17.97Z",tf="M3.55 19.09L4.96 20.5L6.76 18.71L5.34 17.29M12 6C8.69 6 6 8.69 6 12S8.69 18 12 18 18 15.31 18 12C18 8.68 15.31 6 12 6M20 13H23V11H20M17.24 18.71L19.04 20.5L20.45 19.09L18.66 17.29M20.45 5L19.04 3.6L17.24 5.39L18.66 6.81M13 1H11V4H13M6.76 5.39L4.96 3.6L3.55 5L5.34 6.81L6.76 5.39M1 13H4V11H1M13 20H11V23H13",ns=function(e,n){return ns=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},ns(e,n)};function Sn(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");ns(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}function nf(e,n,t,r){function o(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function l(h){try{c(r.next(h))}catch(p){s(p)}}function a(h){try{c(r.throw(h))}catch(p){s(p)}}function c(h){h.done?i(h.value):o(h.value).then(l,a)}c((r=r.apply(e,n||[])).next())})}function Sc(e,n){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(c){return function(h){return a([c,h])}}function a(c){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(t=0)),t;)try{if(r=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,o=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){t.label=c[1];break}if(c[0]===6&&t.label<i[1]){t.label=i[1],i=c;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(c);break}i[2]&&t.ops.pop(),t.trys.pop();continue}c=n.call(e,t)}catch(h){c=[6,h],o=0}finally{r=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Xr(e){var n=typeof Symbol=="function"&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function zn(e,n){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var r=t.call(e),o,i=[],s;try{for(;(n===void 0||n-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(l){s={error:l}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(s)throw s.error}}return i}function vr(e,n,t){if(t||arguments.length===2)for(var r=0,o=n.length,i;r<o;r++)(i||!(r in n))&&(i||(i=Array.prototype.slice.call(n,0,r)),i[r]=n[r]);return e.concat(i||Array.prototype.slice.call(n))}function Yr(e){return this instanceof Yr?(this.v=e,this):new Yr(e)}function rf(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=t.apply(e,n||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(d){r[d]&&(o[d]=function(g){return new Promise(function(v,S){i.push([d,g,v,S])>1||l(d,g)})})}function l(d,g){try{a(r[d](g))}catch(v){p(i[0][3],v)}}function a(d){d.value instanceof Yr?Promise.resolve(d.value.v).then(c,h):p(i[0][2],d)}function c(d){l("next",d)}function h(d){l("throw",d)}function p(d,g){d(g),i.shift(),i.length&&l(i[0][0],i[0][1])}}function of(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e[Symbol.asyncIterator],t;return n?n.call(e):(e=typeof Xr=="function"?Xr(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(i){t[i]=e[i]&&function(s){return new Promise(function(l,a){s=e[i](s),o(l,a,s.done,s.value)})}}function o(i,s,l,a){Promise.resolve(a).then(function(c){i({value:c,done:l})},s)}}function De(e){return typeof e=="function"}function Cc(e){var n=function(r){Error.call(r),r.stack=new Error().stack},t=e(n);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Fl=Cc(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
|
23
|
-
`+t.map(function(r,
|
24
|
-
`):"",this.name="UnsubscriptionError",this.errors=t}});function dl(e,n){if(e){var t=e.indexOf(n);0<=t&&e.splice(t,1)}}var Jo=function(){function e(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var n,t,r,o,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var l=Xr(s),a=l.next();!a.done;a=l.next()){var c=a.value;c.remove(this)}}catch(S){n={error:S}}finally{try{a&&!a.done&&(t=l.return)&&t.call(l)}finally{if(n)throw n.error}}else s.remove(this);var h=this.initialTeardown;if(De(h))try{h()}catch(S){i=S instanceof Fl?S.errors:[S]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var d=Xr(p),g=d.next();!g.done;g=d.next()){var v=g.value;try{ma(v)}catch(S){i=i??[],S instanceof Fl?i=vr(vr([],zn(i)),zn(S.errors)):i.push(S)}}}catch(S){r={error:S}}finally{try{g&&!g.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}if(i)throw new Fl(i)}},e.prototype.add=function(n){var t;if(n&&n!==this)if(this.closed)ma(n);else{if(n instanceof e){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(n)}},e.prototype._hasParent=function(n){var t=this._parentage;return t===n||Array.isArray(t)&&t.includes(n)},e.prototype._addParent=function(n){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n},e.prototype._removeParent=function(n){var t=this._parentage;t===n?this._parentage=null:Array.isArray(t)&&dl(t,n)},e.prototype.remove=function(n){var t=this._finalizers;t&&dl(t,n),n instanceof e&&n._removeParent(this)},e.EMPTY=function(){var n=new e;return n.closed=!0,n}(),e}(),Ec=Jo.EMPTY;function Lc(e){return e instanceof Jo||e&&"closed"in e&&De(e.remove)&&De(e.add)&&De(e.unsubscribe)}function ma(e){De(e)?e():e.unsubscribe()}var ms={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},rs={setTimeout:function(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var o=rs.delegate;return o!=null&&o.setTimeout?o.setTimeout.apply(o,vr([e,n],zn(t))):setTimeout.apply(void 0,vr([e,n],zn(t)))},clearTimeout:function(e){var n=rs.delegate;return((n==null?void 0:n.clearTimeout)||clearTimeout)(e)},delegate:void 0};function xc(e){rs.setTimeout(function(){throw e})}function os(){}var Ki=null;function ol(e){if(ms.useDeprecatedSynchronousErrorHandling){var n=!Ki;if(n&&(Ki={errorThrown:!1,error:null}),e(),n){var t=Ki,r=t.errorThrown,o=t.error;if(Ki=null,r)throw o}}else e()}var gs=function(e){Sn(n,e);function n(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,Lc(t)&&t.add(r)):r.destination=cf,r}return n.create=function(t,r,o){return new is(t,r,o)},n.prototype.next=function(t){this.isStopped||this._next(t)},n.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},n.prototype._next=function(t){this.destination.next(t)},n.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},n.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},n}(Jo),lf=Function.prototype.bind;function jl(e,n){return lf.call(e,n)}var sf=function(){function e(n){this.partialObserver=n}return e.prototype.next=function(n){var t=this.partialObserver;if(t.next)try{t.next(n)}catch(r){Zi(r)}},e.prototype.error=function(n){var t=this.partialObserver;if(t.error)try{t.error(n)}catch(r){Zi(r)}else Zi(n)},e.prototype.complete=function(){var n=this.partialObserver;if(n.complete)try{n.complete()}catch(t){Zi(t)}},e}(),is=function(e){Sn(n,e);function n(t,r,o){var i=e.call(this)||this,s;if(De(t)||!t)s={next:t??void 0,error:r??void 0,complete:o??void 0};else{var l;i&&ms.useDeprecatedNextContext?(l=Object.create(t),l.unsubscribe=function(){return i.unsubscribe()},s={next:t.next&&jl(t.next,l),error:t.error&&jl(t.error,l),complete:t.complete&&jl(t.complete,l)}):s=t}return i.destination=new sf(s),i}return n}(gs);function Zi(e){xc(e)}function af(e){throw e}var cf={closed:!0,next:os,error:af,complete:os},bs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Qo(e){return e}function uf(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Pc(e)}function Pc(e){return e.length===0?Qo:e.length===1?e[0]:function(t){return e.reduce(function(r,o){return o(r)},t)}}var yt=function(){function e(n){n&&(this._subscribe=n)}return e.prototype.lift=function(n){var t=new e;return t.source=this,t.operator=n,t},e.prototype.subscribe=function(n,t,r){var o=this,i=hf(n)?n:new is(n,t,r);return ol(function(){var s=o,l=s.operator,a=s.source;i.add(l?l.call(i,a):a?o._subscribe(i):o._trySubscribe(i))}),i},e.prototype._trySubscribe=function(n){try{return this._subscribe(n)}catch(t){n.error(t)}},e.prototype.forEach=function(n,t){var r=this;return t=ga(t),new t(function(o,i){var s=new is({next:function(l){try{n(l)}catch(a){i(a),s.unsubscribe()}},error:i,complete:o});r.subscribe(s)})},e.prototype._subscribe=function(n){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(n)},e.prototype[bs]=function(){return this},e.prototype.pipe=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return Pc(n)(this)},e.prototype.toPromise=function(n){var t=this;return n=ga(n),new n(function(r,o){var i;t.subscribe(function(s){return i=s},function(s){return o(s)},function(){return r(i)})})},e.create=function(n){return new e(n)},e}();function ga(e){var n;return(n=e??ms.Promise)!==null&&n!==void 0?n:Promise}function ff(e){return e&&De(e.next)&&De(e.error)&&De(e.complete)}function hf(e){return e&&e instanceof gs||ff(e)&&Lc(e)}function pf(e){return De(e==null?void 0:e.lift)}function un(e){return function(n){if(pf(n))return n.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Gt(e,n,t,r,o){return new df(e,n,t,r,o)}var df=function(e){Sn(n,e);function n(t,r,o,i,s,l){var a=e.call(this,t)||this;return a.onFinalize=s,a.shouldUnsubscribe=l,a._next=r?function(c){try{r(c)}catch(h){t.error(h)}}:e.prototype._next,a._error=i?function(c){try{i(c)}catch(h){t.error(h)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=o?function(){try{o()}catch(c){t.error(c)}finally{this.unsubscribe()}}:e.prototype._complete,a}return n.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&((t=this.onFinalize)===null||t===void 0||t.call(this))}},n}(gs),mf=Cc(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),xo=function(e){Sn(n,e);function n(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return n.prototype.lift=function(t){var r=new ba(this,this);return r.operator=t,r},n.prototype._throwIfClosed=function(){if(this.closed)throw new mf},n.prototype.next=function(t){var r=this;ol(function(){var o,i;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=Xr(r.currentObservers),l=s.next();!l.done;l=s.next()){var a=l.value;a.next(t)}}catch(c){o={error:c}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}}})},n.prototype.error=function(t){var r=this;ol(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var o=r.observers;o.length;)o.shift().error(t)}})},n.prototype.complete=function(){var t=this;ol(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var r=t.observers;r.length;)r.shift().complete()}})},n.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(n.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),n.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},n.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},n.prototype._innerSubscribe=function(t){var r=this,o=this,i=o.hasError,s=o.isStopped,l=o.observers;return i||s?Ec:(this.currentObservers=null,l.push(t),new Jo(function(){r.currentObservers=null,dl(l,t)}))},n.prototype._checkFinalizedStatuses=function(t){var r=this,o=r.hasError,i=r.thrownError,s=r.isStopped;o?t.error(i):s&&t.complete()},n.prototype.asObservable=function(){var t=new yt;return t.source=this,t},n.create=function(t,r){return new ba(t,r)},n}(yt),ba=function(e){Sn(n,e);function n(t,r){var o=e.call(this)||this;return o.destination=t,o.source=r,o}return n.prototype.next=function(t){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.next)===null||o===void 0||o.call(r,t)},n.prototype.error=function(t){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.error)===null||o===void 0||o.call(r,t)},n.prototype.complete=function(){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||r===void 0||r.call(t)},n.prototype._subscribe=function(t){var r,o;return(o=(r=this.source)===null||r===void 0?void 0:r.subscribe(t))!==null&&o!==void 0?o:Ec},n}(xo),gf=function(e){Sn(n,e);function n(t){var r=e.call(this)||this;return r._value=t,r}return Object.defineProperty(n.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),n.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return!r.closed&&t.next(this._value),r},n.prototype.getValue=function(){var t=this,r=t.hasError,o=t.thrownError,i=t._value;if(r)throw o;return this._throwIfClosed(),i},n.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},n}(xo),Ac={now:function(){return(Ac.delegate||Date).now()},delegate:void 0},bf=function(e){Sn(n,e);function n(t,r){return e.call(this)||this}return n.prototype.schedule=function(t,r){return this},n}(Jo),ml={setInterval:function(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var o=ml.delegate;return o!=null&&o.setInterval?o.setInterval.apply(o,vr([e,n],zn(t))):setInterval.apply(void 0,vr([e,n],zn(t)))},clearInterval:function(e){var n=ml.delegate;return((n==null?void 0:n.clearInterval)||clearInterval)(e)},delegate:void 0},vf=function(e){Sn(n,e);function n(t,r){var o=e.call(this,t,r)||this;return o.scheduler=t,o.work=r,o.pending=!1,o}return n.prototype.schedule=function(t,r){var o;if(r===void 0&&(r=0),this.closed)return this;this.state=t;var i=this.id,s=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(s,i,r)),this.pending=!0,this.delay=r,this.id=(o=this.id)!==null&&o!==void 0?o:this.requestAsyncId(s,this.id,r),this},n.prototype.requestAsyncId=function(t,r,o){return o===void 0&&(o=0),ml.setInterval(t.flush.bind(t,this),o)},n.prototype.recycleAsyncId=function(t,r,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return r;r!=null&&ml.clearInterval(r)},n.prototype.execute=function(t,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(t,r);if(o)return o;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},n.prototype._execute=function(t,r){var o=!1,i;try{this.work(t)}catch(s){o=!0,i=s||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),i},n.prototype.unsubscribe=function(){if(!this.closed){var t=this,r=t.id,o=t.scheduler,i=o.actions;this.work=this.state=this.scheduler=null,this.pending=!1,dl(i,this),r!=null&&(this.id=this.recycleAsyncId(o,r,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},n}(bf),va=function(){function e(n,t){t===void 0&&(t=e.now),this.schedulerActionCtor=n,this.now=t}return e.prototype.schedule=function(n,t,r){return t===void 0&&(t=0),new this.schedulerActionCtor(this,n).schedule(r,t)},e.now=Ac.now,e}(),_f=function(e){Sn(n,e);function n(t,r){r===void 0&&(r=va.now);var o=e.call(this,t,r)||this;return o.actions=[],o._active=!1,o}return n.prototype.flush=function(t){var r=this.actions;if(this._active){r.push(t);return}var o;this._active=!0;do if(o=t.execute(t.state,t.delay))break;while(t=r.shift());if(this._active=!1,o){for(;t=r.shift();)t.unsubscribe();throw o}},n}(va),xl=new _f(vf),yf=xl,wf=new yt(function(e){return e.complete()});function Dc(e){return e&&De(e.schedule)}function vs(e){return e[e.length-1]}function kf(e){return De(vs(e))?e.pop():void 0}function Pl(e){return Dc(vs(e))?e.pop():void 0}function Sf(e,n){return typeof vs(e)=="number"?e.pop():n}var _s=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Tc(e){return De(e==null?void 0:e.then)}function Oc(e){return De(e[bs])}function Ic(e){return Symbol.asyncIterator&&De(e==null?void 0:e[Symbol.asyncIterator])}function $c(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Cf(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Mc=Cf();function Nc(e){return De(e==null?void 0:e[Mc])}function Rc(e){return rf(this,arguments,function(){var t,r,o,i;return Sc(this,function(s){switch(s.label){case 0:t=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,Yr(t.read())];case 3:return r=s.sent(),o=r.value,i=r.done,i?[4,Yr(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,Yr(o)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function Hc(e){return De(e==null?void 0:e.getReader)}function Cn(e){if(e instanceof yt)return e;if(e!=null){if(Oc(e))return Ef(e);if(_s(e))return Lf(e);if(Tc(e))return xf(e);if(Ic(e))return Vc(e);if(Nc(e))return Pf(e);if(Hc(e))return Af(e)}throw $c(e)}function Ef(e){return new yt(function(n){var t=e[bs]();if(De(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Lf(e){return new yt(function(n){for(var t=0;t<e.length&&!n.closed;t++)n.next(e[t]);n.complete()})}function xf(e){return new yt(function(n){e.then(function(t){n.closed||(n.next(t),n.complete())},function(t){return n.error(t)}).then(null,xc)})}function Pf(e){return new yt(function(n){var t,r;try{for(var o=Xr(e),i=o.next();!i.done;i=o.next()){var s=i.value;if(n.next(s),n.closed)return}}catch(l){t={error:l}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}n.complete()})}function Vc(e){return new yt(function(n){Df(e,n).catch(function(t){return n.error(t)})})}function Af(e){return Vc(Rc(e))}function Df(e,n){var t,r,o,i;return nf(this,void 0,void 0,function(){var s,l;return Sc(this,function(a){switch(a.label){case 0:a.trys.push([0,5,6,11]),t=of(e),a.label=1;case 1:return[4,t.next()];case 2:if(r=a.sent(),!!r.done)return[3,4];if(s=r.value,n.next(s),n.closed)return[2];a.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return l=a.sent(),o={error:l},[3,11];case 6:return a.trys.push([6,,9,10]),r&&!r.done&&(i=t.return)?[4,i.call(t)]:[3,8];case 7:a.sent(),a.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return n.complete(),[2]}})})}function yn(e,n,t,r,o){r===void 0&&(r=0),o===void 0&&(o=!1);var i=n.schedule(function(){t(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Fc(e,n){return n===void 0&&(n=0),un(function(t,r){t.subscribe(Gt(r,function(o){return yn(r,e,function(){return r.next(o)},n)},function(){return yn(r,e,function(){return r.complete()},n)},function(o){return yn(r,e,function(){return r.error(o)},n)}))})}function jc(e,n){return n===void 0&&(n=0),un(function(t,r){r.add(e.schedule(function(){return t.subscribe(r)},n))})}function Tf(e,n){return Cn(e).pipe(jc(n),Fc(n))}function Of(e,n){return Cn(e).pipe(jc(n),Fc(n))}function If(e,n){return new yt(function(t){var r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}function $f(e,n){return new yt(function(t){var r;return yn(t,n,function(){r=e[Mc](),yn(t,n,function(){var o,i,s;try{o=r.next(),i=o.value,s=o.done}catch(l){t.error(l);return}s?t.complete():t.next(i)},0,!0)}),function(){return De(r==null?void 0:r.return)&&r.return()}})}function Uc(e,n){if(!e)throw new Error("Iterable cannot be null");return new yt(function(t){yn(t,n,function(){var r=e[Symbol.asyncIterator]();yn(t,n,function(){r.next().then(function(o){o.done?t.complete():t.next(o.value)})},0,!0)})})}function Mf(e,n){return Uc(Rc(e),n)}function Nf(e,n){if(e!=null){if(Oc(e))return Tf(e,n);if(_s(e))return If(e,n);if(Tc(e))return Of(e,n);if(Ic(e))return Uc(e,n);if(Nc(e))return $f(e,n);if(Hc(e))return Mf(e,n)}throw $c(e)}function Al(e,n){return n?Nf(e,n):Cn(e)}function Rf(e){return e instanceof Date&&!isNaN(e)}function Dl(e,n){return un(function(t,r){var o=0;t.subscribe(Gt(r,function(i){r.next(e.call(n,i,o++))}))})}var Hf=Array.isArray;function Vf(e,n){return Hf(n)?e.apply(void 0,vr([],zn(n))):e(n)}function Bc(e){return Dl(function(n){return Vf(e,n)})}var Ff=Array.isArray,jf=Object.getPrototypeOf,Uf=Object.prototype,Bf=Object.keys;function Wf(e){if(e.length===1){var n=e[0];if(Ff(n))return{args:n,keys:null};if(zf(n)){var t=Bf(n);return{args:t.map(function(r){return n[r]}),keys:t}}}return{args:e,keys:null}}function zf(e){return e&&typeof e=="object"&&jf(e)===Uf}function Yf(e,n){return e.reduce(function(t,r,o){return t[r]=n[o],t},{})}function Gf(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=Pl(e),r=kf(e),o=Wf(e),i=o.args,s=o.keys;if(i.length===0)return Al([],t);var l=new yt(qf(i,t,s?function(a){return Yf(s,a)}:Qo));return r?l.pipe(Bc(r)):l}function qf(e,n,t){return t===void 0&&(t=Qo),function(r){_a(n,function(){for(var o=e.length,i=new Array(o),s=o,l=o,a=function(h){_a(n,function(){var p=Al(e[h],n),d=!1;p.subscribe(Gt(r,function(g){i[h]=g,d||(d=!0,l--),l||r.next(t(i.slice()))},function(){--s||r.complete()}))},r)},c=0;c<o;c++)a(c)},r)}}function _a(e,n,t){e?yn(t,e,n):n()}function Xf(e,n,t,r,o,i,s,l){var a=[],c=0,h=0,p=!1,d=function(){p&&!a.length&&!c&&n.complete()},g=function(S){return c<r?v(S):a.push(S)},v=function(S){i&&n.next(S),c++;var I=!1;Cn(t(S,h++)).subscribe(Gt(n,function(D){o==null||o(D),i?g(D):n.next(D)},function(){I=!0},void 0,function(){if(I)try{c--;for(var D=function(){var T=a.shift();s?yn(n,s,function(){return v(T)}):v(T)};a.length&&c<r;)D();d()}catch(T){n.error(T)}}))};return e.subscribe(Gt(n,g,function(){p=!0,d()})),function(){l==null||l()}}function ys(e,n,t){return t===void 0&&(t=1/0),De(n)?ys(function(r,o){return Dl(function(i,s){return n(r,i,o,s)})(Cn(e(r,o)))},t):(typeof n=="number"&&(t=n),un(function(r,o){return Xf(r,o,e,t)}))}function Wc(e){return e===void 0&&(e=1/0),ys(Qo,e)}function Kf(){return Wc(1)}function ya(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Kf()(Al(e,Pl(e)))}var Zf=["addListener","removeListener"],Jf=["addEventListener","removeEventListener"],Qf=["on","off"];function Vn(e,n,t,r){if(De(t)&&(r=t,t=void 0),r)return Vn(e,n,t).pipe(Bc(r));var o=zn(nh(e)?Jf.map(function(l){return function(a){return e[l](n,a,t)}}):eh(e)?Zf.map(wa(e,n)):th(e)?Qf.map(wa(e,n)):[],2),i=o[0],s=o[1];if(!i&&_s(e))return ys(function(l){return Vn(l,n,t)})(Cn(e));if(!i)throw new TypeError("Invalid event target");return new yt(function(l){var a=function(){for(var c=[],h=0;h<arguments.length;h++)c[h]=arguments[h];return l.next(1<c.length?c:c[0])};return i(a),function(){return s(a)}})}function wa(e,n){return function(t){return function(r){return e[t](n,r)}}}function eh(e){return De(e.addListener)&&De(e.removeListener)}function th(e){return De(e.on)&&De(e.off)}function nh(e){return De(e.addEventListener)&&De(e.removeEventListener)}function zc(e,n,t){e===void 0&&(e=0),t===void 0&&(t=yf);var r=-1;return n!=null&&(Dc(n)?t=n:r=n),new yt(function(o){var i=Rf(e)?+e-t.now():e;i<0&&(i=0);var s=0;return t.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function rh(e,n){return e===void 0&&(e=0),n===void 0&&(n=xl),e<0&&(e=0),zc(e,e,n)}function oh(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=Pl(e),r=Sf(e,1/0),o=e;return o.length?o.length===1?Cn(o[0]):Wc(r)(Al(o,t)):wf}var zo=new yt(os);function Tl(e,n){return un(function(t,r){var o=0;t.subscribe(Gt(r,function(i){return e.call(n,i,o++)&&r.next(i)}))})}function ws(e,n){return n===void 0&&(n=xl),un(function(t,r){var o=null,i=null,s=null,l=function(){if(o){o.unsubscribe(),o=null;var c=i;i=null,r.next(c)}};function a(){var c=s+e,h=n.now();if(h<c){o=this.schedule(void 0,c-h),r.add(o);return}l()}t.subscribe(Gt(r,function(c){i=c,s=n.now(),o||(o=n.schedule(a,e),r.add(o))},function(){l(),r.complete()},void 0,function(){i=o=null}))})}function ih(e){return Tl(function(n,t){return e<=t})}function lh(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=Pl(e);return un(function(r,o){(t?ya(e,r,t):ya(e,r)).subscribe(o)})}function Yo(e,n){return un(function(t,r){var o=null,i=0,s=!1,l=function(){return s&&!o&&r.complete()};t.subscribe(Gt(r,function(a){o==null||o.unsubscribe();var c=0,h=i++;Cn(e(a,h)).subscribe(o=Gt(r,function(p){return r.next(n?n(a,p,h,c++):p)},function(){o=null,l()}))},function(){s=!0,l()}))})}function Mn(e,n,t){var r=De(e)||n||t?{next:e,error:n,complete:t}:e;return r?un(function(o,i){var s;(s=r.subscribe)===null||s===void 0||s.call(r);var l=!0;o.subscribe(Gt(i,function(a){var c;(c=r.next)===null||c===void 0||c.call(r,a),i.next(a)},function(){var a;l=!1,(a=r.complete)===null||a===void 0||a.call(r),i.complete()},function(a){var c;l=!1,(c=r.error)===null||c===void 0||c.call(r,a),i.error(a)},function(){var a,c;l&&((a=r.unsubscribe)===null||a===void 0||a.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):Qo}var Yc={leading:!0,trailing:!1};function sh(e,n){return n===void 0&&(n=Yc),un(function(t,r){var o=n.leading,i=n.trailing,s=!1,l=null,a=null,c=!1,h=function(){a==null||a.unsubscribe(),a=null,i&&(g(),c&&r.complete())},p=function(){a=null,c&&r.complete()},d=function(v){return a=Cn(e(v)).subscribe(Gt(r,h,p))},g=function(){if(s){s=!1;var v=l;l=null,r.next(v),!c&&d(v)}};t.subscribe(Gt(r,function(v){s=!0,l=v,!(a&&!a.closed)&&(o?g():d(v))},function(){c=!0,!(i&&s&&a&&!a.closed)&&r.complete()}))})}function ah(e,n,t){n===void 0&&(n=xl),t===void 0&&(t=Yc);var r=zc(e,n);return sh(function(){return r},t)}function ch(e){const n=e-1;return n*n*n+1}function uh(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}function Gc(e,{delay:n=0,duration:t=400,easing:r=ch,x:o=0,y:i=0,opacity:s=0}={}){const l=getComputedStyle(e),a=+l.opacity,c=l.transform==="none"?"":l.transform,h=a*(1-s);return{delay:n,duration:t,easing:r,css:(p,d)=>`
|
25
|
-
transform: ${c} translate(${(1-p)*
|
26
|
-
opacity: ${a-h*d}`}}var Wt=(e=>(e.LIGHT="light",e.DARK="dark",e.CUPCAKE="cupcake",e.BUMBLEBEE="bumblebee",e.EMERALD="emerald",e.CORPORATE="corporate",e.SYNTHWAVE="synthwave",e.RETRO="retro",e.CYBERPUNK="cyberpunk",e.VALENTINE="valentine",e.HALLOWEEN="halloween",e.GARDEN="garden",e.FOREST="forest",e.AQUA="aqua",e.LOFI="lofi",e.PASTEL="pastel",e.FANTASY="fantasy",e.WIREFRAME="wireframe",e.BLACK="black",e.LUXURY="luxury",e.DRACULA="dracula",e.CMYK="cmyk",e.AUTUMN="autumn",e.BUSINESS="business",e.ACID="acid",e.LEMONADE="lemonade",e.NIGHT="night",e.COFFEE="coffee",e.WINTER="winter",e))(Wt||{}),Fn=(e=>(e.OFF="Off",e.NOTO="Noto Serif JP",e.KLEE="Klee One",e.SHIPPORI="Shippori Mincho",e))(Fn||{}),jn=(e=>(e.SOCKET="socket",e.PASTE="paste",e.EXTERNAL="external",e.EDIT="edit",e.UNDO="undo",e.RESETCHECKBOXES="resetcheckboxes",e))(jn||{});const Fr=[];function ks(e,n=
|
22
|
+
}`,p=`__svelte_${xu(h)}_${l}`,d=cc(e),{stylesheet:g,rules:v}=pl.get(d)||Pu(d,e);v[p]||(v[p]=!0,g.insertRule(`@keyframes ${p} ${h}`,g.cssRules.length));const S=e.style.animation||"";return e.style.animation=`${S?`${S}, `:""}${p} ${r}ms linear ${i}ms 1 both`,dl+=1,p}function pa(e,n){const t=(e.style.animation||"").split(", "),r=t.filter(n?o=>o.indexOf(n)<0:o=>o.indexOf("__svelte")===-1),i=t.length-r.length;i&&(e.style.animation=r.join(", "),dl-=i,dl||Du())}function Du(){ps(()=>{dl||(pl.forEach(e=>{const{ownerNode:n}=e.stylesheet;n&&F(n)}),pl.clear())})}let ji;function $i(e){ji=e}function ds(){if(!ji)throw new Error("Function called outside component initialization");return ji}function Ll(e){ds().$$.on_mount.push(e)}function hc(e){ds().$$.on_destroy.push(e)}function Ci(){const e=ds();return(n,t,{cancelable:r=!1}={})=>{const i=e.$$.callbacks[n];if(i){const o=uc(n,t,{cancelable:r});return i.slice().forEach(s=>{s.call(e,o)}),!o.defaultPrevented}return!0}}function Ui(e,n){const t=e.$$.callbacks[n.type];t&&t.slice().forEach(r=>r.call(this,n))}const Di=[],at=[],nl=[],es=[],pc=Promise.resolve();let ts=!1;function dc(){ts||(ts=!0,pc.then(mc))}function Bi(){return dc(),pc}function br(e){nl.push(e)}function Hl(e){es.push(e)}const Vl=new Set;let Xo=0;function mc(){const e=ji;do{for(;Xo<Di.length;){const n=Di[Xo];Xo++,$i(n),Tu(n.$$)}for($i(null),Di.length=0,Xo=0;at.length;)at.pop()();for(let n=0;n<nl.length;n+=1){const t=nl[n];Vl.has(t)||(Vl.add(t),t())}nl.length=0}while(Di.length);for(;es.length;)es.pop()();ts=!1,Vl.clear(),$i(e)}function Tu(e){if(e.fragment!==null){e.update(),St(e.before_update);const n=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,n),e.after_update.forEach(br)}}let Ai;function Ou(){return Ai||(Ai=Promise.resolve(),Ai.then(()=>{Ai=null})),Ai}function da(e,n,t){e.dispatchEvent(uc(`${n?"intro":"outro"}${t}`))}const rl=new Set;let hr;function pt(){hr={r:0,c:[],p:hr}}function dt(){hr.r||St(hr.c),hr=hr.p}function M(e,n){e&&e.i&&(rl.delete(e),e.i(n))}function W(e,n,t,r){if(e&&e.o){if(rl.has(e))return;rl.add(e),hr.c.push(()=>{rl.delete(e),r&&(t&&e.d(1),r())}),e.o(n)}else r&&r()}const Iu={duration:0};function gc(e,n,t){const r={direction:"in"};let i=n(e,t,r),o=!1,s,l,a=0;function c(){s&&pa(e,s)}function h(){const{delay:d=0,duration:g=300,easing:v=mu,tick:S=Le,css:$}=i||Iu;$&&(s=Au(e,0,1,g,d,v,$,a++)),S(0,1);const D=yu()+d,T=D+g;l&&l.abort(),o=!0,br(()=>da(e,!0,"start")),l=wu(P=>{if(o){if(P>=T)return S(1,0),da(e,!0,"end"),c(),o=!1;if(P>=D){const I=v((P-D)/g);S(I,1-I)}}return o})}let p=!1;return{start(){p||(p=!0,pa(e),El(i)?(i=i(r),Ou().then(h)):h())},invalidate(){p=!1},end(){o&&(c(),o=!1)}}}const bc=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function xl(e,n){e.d(1),n.delete(e.key)}function vc(e,n){W(e,1,1,()=>{n.delete(e.key)})}function Ei(e,n,t,r,i,o,s,l,a,c,h,p){let d=e.length,g=o.length,v=d;const S={};for(;v--;)S[e[v].key]=v;const $=[],D=new Map,T=new Map;for(v=g;v--;){const G=p(i,o,v),U=t(G);let A=s.get(U);A?r&&A.p(G,n):(A=c(U,G),A.c()),D.set(U,$[v]=A),U in S&&T.set(U,Math.abs(v-S[U]))}const P=new Set,I=new Set;function q(G){M(G,1),G.m(l,h),s.set(G.key,G),h=G.first,g--}for(;d&&g;){const G=$[g-1],U=e[d-1],A=G.key,L=U.key;G===U?(h=G.first,d--,g--):D.has(L)?!s.has(A)||P.has(A)?q(G):I.has(L)?d--:T.get(A)>T.get(L)?(I.add(A),q(G)):(P.add(L),d--):(a(U,s),d--)}for(;d--;){const G=e[d];D.has(G.key)||a(G,s)}for(;g;)q($[g-1]);return $}function $u(e,n){const t={},r={},i={$$scope:1};let o=e.length;for(;o--;){const s=e[o],l=n[o];if(l){for(const a in s)a in l||(r[a]=1);for(const a in l)i[a]||(t[a]=l[a],i[a]=1);e[o]=l}else for(const a in s)i[a]=1}for(const s in r)s in t||(t[s]=void 0);return t}function Mu(e){return typeof e=="object"&&e!==null?e:{}}function Fl(e,n,t,r){const i=e.$$.props[n];i!==void 0&&(e.$$.bound[i]=t,r===void 0&&t(e.$$.ctx[i]))}function se(e){e&&e.c()}function re(e,n,t,r){const{fragment:i,after_update:o}=e.$$;i&&i.m(n,t),r||br(()=>{const s=e.$$.on_mount.map(lc).filter(El);e.$$.on_destroy?e.$$.on_destroy.push(...s):St(s),e.$$.on_mount=[]}),o.forEach(br)}function ie(e,n){const t=e.$$;t.fragment!==null&&(St(t.on_destroy),t.fragment&&t.fragment.d(n),t.on_destroy=t.fragment=null,t.ctx=[])}function Nu(e,n){e.$$.dirty[0]===-1&&(Di.push(e),dc(),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31}function Dt(e,n,t,r,i,o,s,l=[-1]){const a=ji;$i(e);const c=e.$$={fragment:null,ctx:[],props:o,update:Le,not_equal:i,bound:ha(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(a?a.$$.context:[])),callbacks:ha(),dirty:l,skip_bound:!1,root:n.target||a.$$.root};s&&s(c.root);let h=!1;if(c.ctx=t?t(e,n.props||{},(p,d,...g)=>{const v=g.length?g[0]:d;return c.ctx&&i(c.ctx[p],c.ctx[p]=v)&&(!c.skip_bound&&c.bound[p]&&c.bound[p](v),h&&Nu(e,p)),d}):[],c.update(),h=!0,St(c.before_update),c.fragment=r?r(c.ctx):!1,n.target){if(n.hydrate){const p=Eu(n.target);c.fragment&&c.fragment.l(p),p.forEach(F)}else c.fragment&&c.fragment.c();n.intro&&M(e.$$.fragment),re(e,n.target,n.anchor,n.customElement),mc()}$i(a)}class Tt{$destroy(){ie(this,1),this.$destroy=Le}$on(n,t){if(!El(t))return Le;const r=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return r.push(t),()=>{const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}$set(n){this.$$set&&!bu(n)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}var Ru="M20 13.5C20 17.09 17.09 20 13.5 20H6V18H13.5C16 18 18 16 18 13.5S16 9 13.5 9H7.83L10.91 12.09L9.5 13.5L4 8L9.5 2.5L10.92 3.91L7.83 7H13.5C17.09 7 20 9.91 20 13.5Z",_c="M12 2C17.5 2 22 6.5 22 12S17.5 22 12 22 2 17.5 2 12 6.5 2 12 2M12 4C10.1 4 8.4 4.6 7.1 5.7L18.3 16.9C19.3 15.5 20 13.8 20 12C20 7.6 16.4 4 12 4M16.9 18.3L5.7 7.1C4.6 8.4 4 10.1 4 12C4 16.4 7.6 20 12 20C13.9 20 15.6 19.4 16.9 18.3Z",yc="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",Hu="M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z",Vu="M21.4 7.5C22.2 8.3 22.2 9.6 21.4 10.3L18.6 13.1L10.8 5.3L13.6 2.5C14.4 1.7 15.7 1.7 16.4 2.5L18.2 4.3L21.2 1.3L22.6 2.7L19.6 5.7L21.4 7.5M15.6 13.3L14.2 11.9L11.4 14.7L9.3 12.6L12.1 9.8L10.7 8.4L7.9 11.2L6.4 9.8L3.6 12.6C2.8 13.4 2.8 14.7 3.6 15.4L5.4 17.2L1.4 21.2L2.8 22.6L6.8 18.6L8.6 20.4C9.4 21.2 10.7 21.2 11.4 20.4L14.2 17.6L12.8 16.2L15.6 13.3Z",Fu="M15,9H5V5H15M12,19A3,3 0 0,1 9,16A3,3 0 0,1 12,13A3,3 0 0,1 15,16A3,3 0 0,1 12,19M17,3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V7L17,3Z",ns="M19,12V13.5A4,4 0 0,1 23,17.5C23,18.32 22.75,19.08 22.33,19.71L21.24,18.62C21.41,18.28 21.5,17.9 21.5,17.5A2.5,2.5 0 0,0 19,15V16.5L16.75,14.25L19,12M19,23V21.5A4,4 0 0,1 15,17.5C15,16.68 15.25,15.92 15.67,15.29L16.76,16.38C16.59,16.72 16.5,17.1 16.5,17.5A2.5,2.5 0 0,0 19,20V18.5L21.25,20.75L19,23M12,3C16.42,3 20,4.79 20,7C20,9.21 16.42,11 12,11C7.58,11 4,9.21 4,7C4,4.79 7.58,3 12,3M4,9C4,11.21 7.58,13 12,13C13.11,13 14.17,12.89 15.14,12.68C14.19,13.54 13.5,14.67 13.18,15.96L12,16C7.58,16 4,14.21 4,12V9M20,9V11H19.5L18.9,11.03C19.6,10.43 20,9.74 20,9M4,14C4,16.21 7.58,18 12,18L13,17.97C13.09,19.03 13.42,20 13.95,20.88L12,21C7.58,21 4,19.21 4,17V14Z",Mi="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",ju="M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19M8.46,11.88L9.87,10.47L12,12.59L14.12,10.47L15.53,11.88L13.41,14L15.53,16.12L14.12,17.53L12,15.41L9.88,17.53L8.47,16.12L10.59,14L8.46,11.88M15.5,4L14.5,3H9.5L8.5,4H5V6H19V4H15.5Z",Uu="M9,1V7H5L12,14L19,7H15V1H9M5,16V18H19V16H5M5,20V22H19V20H5Z",Bu="M5,3A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5.5L18.5,3H17V9A1,1 0 0,1 16,10H8A1,1 0 0,1 7,9V3H5M12,4V9H15V4H12M7,12H17A1,1 0 0,1 18,13V19H6V13A1,1 0 0,1 7,12Z",Bt="M15.07,11.25L14.17,12.17C13.45,12.89 13,13.5 13,15H11V14.5C11,13.39 11.45,12.39 12.17,11.67L13.41,10.41C13.78,10.05 14,9.55 14,9C14,7.89 13.1,7 12,7A2,2 0 0,0 10,9H8A4,4 0 0,1 12,5A4,4 0 0,1 16,9C16,9.88 15.64,10.67 15.07,11.25M13,19H11V17H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z",Wu="M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",zu="M21 10V9L15 3H5C3.89 3 3 3.89 3 5V19C3 20.11 3.9 21 5 21H11V19.13L19.39 10.74C19.83 10.3 20.39 10.06 21 10M14 4.5L19.5 10H14V4.5M22.85 14.19L21.87 15.17L19.83 13.13L20.81 12.15C21 11.95 21.33 11.95 21.53 12.15L22.85 13.47C23.05 13.67 23.05 14 22.85 14.19M19.13 13.83L21.17 15.87L15.04 22H13V19.96L19.13 13.83Z",Yu="M14,19H18V5H14M6,19H10V5H6V19Z",Gu="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",qu="M8,5.14V19.14L19,12.14L8,5.14Z",wc="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",Xu="M2 12C2 16.97 6.03 21 11 21C13.39 21 15.68 20.06 17.4 18.4L15.9 16.9C14.63 18.25 12.86 19 11 19C4.76 19 1.64 11.46 6.05 7.05C10.46 2.64 18 5.77 18 12H15L19 16H19.1L23 12H20C20 7.03 15.97 3 11 3C6.03 3 2 7.03 2 12Z",Ku="M15 3H9V1H15V3M12 18.5C12 19.77 12.37 20.94 13 21.94C12.67 22 12.34 22 12 22C7.03 22 3 17.97 3 13S7.03 4 12 4C14.12 4 16.07 4.74 17.62 6L19.04 4.56C19.55 5 20 5.46 20.45 5.97L19.03 7.39C20.16 8.81 20.87 10.57 21 12.5C20.22 12.18 19.38 12 18.5 12C14.91 12 12 14.91 12 18.5M13 7H11V14H13V7M23 18.5C23 21 21 23 18.5 23S14 21 14 18.5 16 14 18.5 14 23 16 23 18.5M20 21.08L15.92 17C15.65 17.42 15.5 17.94 15.5 18.5C15.5 20.16 16.84 21.5 18.5 21.5C19.06 21.5 19.58 21.35 20 21.08M21.5 18.5C21.5 16.84 20.16 15.5 18.5 15.5C17.94 15.5 17.42 15.65 17 15.92L21.08 20C21.35 19.58 21.5 19.06 21.5 18.5Z",Zu="M15 3H9V1H15V3M19.39 10.74L11 19.13V21.94C6.5 21.44 3 17.63 3 13C3 8.03 7.03 4 12 4C14.12 4 16.07 4.74 17.62 6L19.04 4.56C19.55 5 20 5.46 20.45 5.97L19.03 7.39C19.67 8.19 20.17 9.11 20.5 10.1C20.1 10.21 19.71 10.42 19.39 10.74M13 7H11V14H13V7M13 19.96V22H15.04L21.17 15.88L19.13 13.83L13 19.96M22.85 13.47L21.53 12.15C21.33 11.95 21 11.95 20.81 12.15L19.83 13.13L21.87 15.17L22.85 14.19C23.05 14 23.05 13.67 22.85 13.47Z",Ju="M17 6H7c-3.31 0-6 2.69-6 6s2.69 6 6 6h10c3.31 0 6-2.69 6-6s-2.69-6-6-6zm0 10H7c-2.21 0-4-1.79-4-4s1.79-4 4-4h10c2.21 0 4 1.79 4 4s-1.79 4-4 4zM7 9c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z",Qu="M17 6H7C3.69 6 1 8.69 1 12S3.69 18 7 18H17C20.31 18 23 15.31 23 12S20.31 6 17 6M17 16H7C4.79 16 3 14.21 3 12S4.79 8 7 8H17C19.21 8 21 9.79 21 12S19.21 16 17 16M17 9C15.34 9 14 10.34 14 12S15.34 15 17 15 20 13.66 20 12 18.66 9 17 9Z",kc="M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M7,6H17V19H7V6M9,8V17H11V8H9M13,8V17H15V8H13Z",ef="M17.75,4.09L15.22,6.03L16.13,9.09L13.5,7.28L10.87,9.09L11.78,6.03L9.25,4.09L12.44,4L13.5,1L14.56,4L17.75,4.09M21.25,11L19.61,12.25L20.2,14.23L18.5,13.06L16.8,14.23L17.39,12.25L15.75,11L17.81,10.95L18.5,9L19.19,10.95L21.25,11M18.97,15.95C19.8,15.87 20.69,17.05 20.16,17.8C19.84,18.25 19.5,18.67 19.08,19.07C15.17,23 8.84,23 4.94,19.07C1.03,15.17 1.03,8.83 4.94,4.93C5.34,4.53 5.76,4.17 6.21,3.85C6.96,3.32 8.14,4.21 8.06,5.04C7.79,7.9 8.75,10.87 10.95,13.06C13.14,15.26 16.1,16.22 18.97,15.95M17.33,17.97C14.5,17.81 11.7,16.64 9.53,14.5C7.36,12.31 6.2,9.5 6.04,6.68C3.23,9.82 3.34,14.64 6.35,17.66C9.37,20.67 14.19,20.78 17.33,17.97Z",tf="M3.55 19.09L4.96 20.5L6.76 18.71L5.34 17.29M12 6C8.69 6 6 8.69 6 12S8.69 18 12 18 18 15.31 18 12C18 8.68 15.31 6 12 6M20 13H23V11H20M17.24 18.71L19.04 20.5L20.45 19.09L18.66 17.29M20.45 5L19.04 3.6L17.24 5.39L18.66 6.81M13 1H11V4H13M6.76 5.39L4.96 3.6L3.55 5L5.34 6.81L6.76 5.39M1 13H4V11H1M13 20H11V23H13",rs=function(e,n){return rs=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])},rs(e,n)};function Sn(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");rs(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}function nf(e,n,t,r){function i(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function l(h){try{c(r.next(h))}catch(p){s(p)}}function a(h){try{c(r.throw(h))}catch(p){s(p)}}function c(h){h.done?o(h.value):i(h.value).then(l,a)}c((r=r.apply(e,n||[])).next())})}function Sc(e,n){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(c){return function(h){return a([c,h])}}function a(c){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(t=0)),t;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,i=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){t.label=c[1];break}if(c[0]===6&&t.label<o[1]){t.label=o[1],o=c;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(c);break}o[2]&&t.ops.pop(),t.trys.pop();continue}c=n.call(e,t)}catch(h){c=[6,h],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Xr(e){var n=typeof Symbol=="function"&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function zn(e,n){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var r=t.call(e),i,o=[],s;try{for(;(n===void 0||n-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(s)throw s.error}}return o}function vr(e,n,t){if(t||arguments.length===2)for(var r=0,i=n.length,o;r<i;r++)(o||!(r in n))&&(o||(o=Array.prototype.slice.call(n,0,r)),o[r]=n[r]);return e.concat(o||Array.prototype.slice.call(n))}function Yr(e){return this instanceof Yr?(this.v=e,this):new Yr(e)}function rf(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=t.apply(e,n||[]),i,o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(d){r[d]&&(i[d]=function(g){return new Promise(function(v,S){o.push([d,g,v,S])>1||l(d,g)})})}function l(d,g){try{a(r[d](g))}catch(v){p(o[0][3],v)}}function a(d){d.value instanceof Yr?Promise.resolve(d.value.v).then(c,h):p(o[0][2],d)}function c(d){l("next",d)}function h(d){l("throw",d)}function p(d,g){d(g),o.shift(),o.length&&l(o[0][0],o[0][1])}}function of(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e[Symbol.asyncIterator],t;return n?n.call(e):(e=typeof Xr=="function"?Xr(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=e[o]&&function(s){return new Promise(function(l,a){s=e[o](s),i(l,a,s.done,s.value)})}}function i(o,s,l,a){Promise.resolve(a).then(function(c){o({value:c,done:l})},s)}}function Ae(e){return typeof e=="function"}function Cc(e){var n=function(r){Error.call(r),r.stack=new Error().stack},t=e(n);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var jl=Cc(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
|
23
|
+
`+t.map(function(r,i){return i+1+") "+r.toString()}).join(`
|
24
|
+
`):"",this.name="UnsubscriptionError",this.errors=t}});function ml(e,n){if(e){var t=e.indexOf(n);0<=t&&e.splice(t,1)}}var Zi=function(){function e(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var n,t,r,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var l=Xr(s),a=l.next();!a.done;a=l.next()){var c=a.value;c.remove(this)}}catch(S){n={error:S}}finally{try{a&&!a.done&&(t=l.return)&&t.call(l)}finally{if(n)throw n.error}}else s.remove(this);var h=this.initialTeardown;if(Ae(h))try{h()}catch(S){o=S instanceof jl?S.errors:[S]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var d=Xr(p),g=d.next();!g.done;g=d.next()){var v=g.value;try{ma(v)}catch(S){o=o??[],S instanceof jl?o=vr(vr([],zn(o)),zn(S.errors)):o.push(S)}}}catch(S){r={error:S}}finally{try{g&&!g.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}}if(o)throw new jl(o)}},e.prototype.add=function(n){var t;if(n&&n!==this)if(this.closed)ma(n);else{if(n instanceof e){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(n)}},e.prototype._hasParent=function(n){var t=this._parentage;return t===n||Array.isArray(t)&&t.includes(n)},e.prototype._addParent=function(n){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n},e.prototype._removeParent=function(n){var t=this._parentage;t===n?this._parentage=null:Array.isArray(t)&&ml(t,n)},e.prototype.remove=function(n){var t=this._finalizers;t&&ml(t,n),n instanceof e&&n._removeParent(this)},e.EMPTY=function(){var n=new e;return n.closed=!0,n}(),e}(),Ec=Zi.EMPTY;function Lc(e){return e instanceof Zi||e&&"closed"in e&&Ae(e.remove)&&Ae(e.add)&&Ae(e.unsubscribe)}function ma(e){Ae(e)?e():e.unsubscribe()}var ms={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},is={setTimeout:function(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var i=is.delegate;return i!=null&&i.setTimeout?i.setTimeout.apply(i,vr([e,n],zn(t))):setTimeout.apply(void 0,vr([e,n],zn(t)))},clearTimeout:function(e){var n=is.delegate;return((n==null?void 0:n.clearTimeout)||clearTimeout)(e)},delegate:void 0};function xc(e){is.setTimeout(function(){throw e})}function os(){}var Ko=null;function il(e){if(ms.useDeprecatedSynchronousErrorHandling){var n=!Ko;if(n&&(Ko={errorThrown:!1,error:null}),e(),n){var t=Ko,r=t.errorThrown,i=t.error;if(Ko=null,r)throw i}}else e()}var gs=function(e){Sn(n,e);function n(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,Lc(t)&&t.add(r)):r.destination=cf,r}return n.create=function(t,r,i){return new ls(t,r,i)},n.prototype.next=function(t){this.isStopped||this._next(t)},n.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},n.prototype._next=function(t){this.destination.next(t)},n.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},n.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},n}(Zi),lf=Function.prototype.bind;function Ul(e,n){return lf.call(e,n)}var sf=function(){function e(n){this.partialObserver=n}return e.prototype.next=function(n){var t=this.partialObserver;if(t.next)try{t.next(n)}catch(r){Zo(r)}},e.prototype.error=function(n){var t=this.partialObserver;if(t.error)try{t.error(n)}catch(r){Zo(r)}else Zo(n)},e.prototype.complete=function(){var n=this.partialObserver;if(n.complete)try{n.complete()}catch(t){Zo(t)}},e}(),ls=function(e){Sn(n,e);function n(t,r,i){var o=e.call(this)||this,s;if(Ae(t)||!t)s={next:t??void 0,error:r??void 0,complete:i??void 0};else{var l;o&&ms.useDeprecatedNextContext?(l=Object.create(t),l.unsubscribe=function(){return o.unsubscribe()},s={next:t.next&&Ul(t.next,l),error:t.error&&Ul(t.error,l),complete:t.complete&&Ul(t.complete,l)}):s=t}return o.destination=new sf(s),o}return n}(gs);function Zo(e){xc(e)}function af(e){throw e}var cf={closed:!0,next:os,error:af,complete:os},bs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Ji(e){return e}function uf(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Pc(e)}function Pc(e){return e.length===0?Ji:e.length===1?e[0]:function(t){return e.reduce(function(r,i){return i(r)},t)}}var _t=function(){function e(n){n&&(this._subscribe=n)}return e.prototype.lift=function(n){var t=new e;return t.source=this,t.operator=n,t},e.prototype.subscribe=function(n,t,r){var i=this,o=hf(n)?n:new ls(n,t,r);return il(function(){var s=i,l=s.operator,a=s.source;o.add(l?l.call(o,a):a?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(n){try{return this._subscribe(n)}catch(t){n.error(t)}},e.prototype.forEach=function(n,t){var r=this;return t=ga(t),new t(function(i,o){var s=new ls({next:function(l){try{n(l)}catch(a){o(a),s.unsubscribe()}},error:o,complete:i});r.subscribe(s)})},e.prototype._subscribe=function(n){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(n)},e.prototype[bs]=function(){return this},e.prototype.pipe=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return Pc(n)(this)},e.prototype.toPromise=function(n){var t=this;return n=ga(n),new n(function(r,i){var o;t.subscribe(function(s){return o=s},function(s){return i(s)},function(){return r(o)})})},e.create=function(n){return new e(n)},e}();function ga(e){var n;return(n=e??ms.Promise)!==null&&n!==void 0?n:Promise}function ff(e){return e&&Ae(e.next)&&Ae(e.error)&&Ae(e.complete)}function hf(e){return e&&e instanceof gs||ff(e)&&Lc(e)}function pf(e){return Ae(e==null?void 0:e.lift)}function un(e){return function(n){if(pf(n))return n.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Gt(e,n,t,r,i){return new df(e,n,t,r,i)}var df=function(e){Sn(n,e);function n(t,r,i,o,s,l){var a=e.call(this,t)||this;return a.onFinalize=s,a.shouldUnsubscribe=l,a._next=r?function(c){try{r(c)}catch(h){t.error(h)}}:e.prototype._next,a._error=o?function(c){try{o(c)}catch(h){t.error(h)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=i?function(){try{i()}catch(c){t.error(c)}finally{this.unsubscribe()}}:e.prototype._complete,a}return n.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&((t=this.onFinalize)===null||t===void 0||t.call(this))}},n}(gs),mf=Cc(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Li=function(e){Sn(n,e);function n(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return n.prototype.lift=function(t){var r=new ba(this,this);return r.operator=t,r},n.prototype._throwIfClosed=function(){if(this.closed)throw new mf},n.prototype.next=function(t){var r=this;il(function(){var i,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=Xr(r.currentObservers),l=s.next();!l.done;l=s.next()){var a=l.value;a.next(t)}}catch(c){i={error:c}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},n.prototype.error=function(t){var r=this;il(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var i=r.observers;i.length;)i.shift().error(t)}})},n.prototype.complete=function(){var t=this;il(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var r=t.observers;r.length;)r.shift().complete()}})},n.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(n.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),n.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},n.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},n.prototype._innerSubscribe=function(t){var r=this,i=this,o=i.hasError,s=i.isStopped,l=i.observers;return o||s?Ec:(this.currentObservers=null,l.push(t),new Zi(function(){r.currentObservers=null,ml(l,t)}))},n.prototype._checkFinalizedStatuses=function(t){var r=this,i=r.hasError,o=r.thrownError,s=r.isStopped;i?t.error(o):s&&t.complete()},n.prototype.asObservable=function(){var t=new _t;return t.source=this,t},n.create=function(t,r){return new ba(t,r)},n}(_t),ba=function(e){Sn(n,e);function n(t,r){var i=e.call(this)||this;return i.destination=t,i.source=r,i}return n.prototype.next=function(t){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,t)},n.prototype.error=function(t){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,t)},n.prototype.complete=function(){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||r===void 0||r.call(t)},n.prototype._subscribe=function(t){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(t))!==null&&i!==void 0?i:Ec},n}(Li),gf=function(e){Sn(n,e);function n(t){var r=e.call(this)||this;return r._value=t,r}return Object.defineProperty(n.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),n.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return!r.closed&&t.next(this._value),r},n.prototype.getValue=function(){var t=this,r=t.hasError,i=t.thrownError,o=t._value;if(r)throw i;return this._throwIfClosed(),o},n.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},n}(Li),Ac={now:function(){return(Ac.delegate||Date).now()},delegate:void 0},bf=function(e){Sn(n,e);function n(t,r){return e.call(this)||this}return n.prototype.schedule=function(t,r){return this},n}(Zi),gl={setInterval:function(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var i=gl.delegate;return i!=null&&i.setInterval?i.setInterval.apply(i,vr([e,n],zn(t))):setInterval.apply(void 0,vr([e,n],zn(t)))},clearInterval:function(e){var n=gl.delegate;return((n==null?void 0:n.clearInterval)||clearInterval)(e)},delegate:void 0},vf=function(e){Sn(n,e);function n(t,r){var i=e.call(this,t,r)||this;return i.scheduler=t,i.work=r,i.pending=!1,i}return n.prototype.schedule=function(t,r){var i;if(r===void 0&&(r=0),this.closed)return this;this.state=t;var o=this.id,s=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(s,o,r)),this.pending=!0,this.delay=r,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(s,this.id,r),this},n.prototype.requestAsyncId=function(t,r,i){return i===void 0&&(i=0),gl.setInterval(t.flush.bind(t,this),i)},n.prototype.recycleAsyncId=function(t,r,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return r;r!=null&&gl.clearInterval(r)},n.prototype.execute=function(t,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(t,r);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},n.prototype._execute=function(t,r){var i=!1,o;try{this.work(t)}catch(s){i=!0,o=s||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o},n.prototype.unsubscribe=function(){if(!this.closed){var t=this,r=t.id,i=t.scheduler,o=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,ml(o,this),r!=null&&(this.id=this.recycleAsyncId(i,r,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},n}(bf),va=function(){function e(n,t){t===void 0&&(t=e.now),this.schedulerActionCtor=n,this.now=t}return e.prototype.schedule=function(n,t,r){return t===void 0&&(t=0),new this.schedulerActionCtor(this,n).schedule(r,t)},e.now=Ac.now,e}(),_f=function(e){Sn(n,e);function n(t,r){r===void 0&&(r=va.now);var i=e.call(this,t,r)||this;return i.actions=[],i._active=!1,i}return n.prototype.flush=function(t){var r=this.actions;if(this._active){r.push(t);return}var i;this._active=!0;do if(i=t.execute(t.state,t.delay))break;while(t=r.shift());if(this._active=!1,i){for(;t=r.shift();)t.unsubscribe();throw i}},n}(va),Pl=new _f(vf),yf=Pl,wf=new _t(function(e){return e.complete()});function Dc(e){return e&&Ae(e.schedule)}function vs(e){return e[e.length-1]}function kf(e){return Ae(vs(e))?e.pop():void 0}function Al(e){return Dc(vs(e))?e.pop():void 0}function Sf(e,n){return typeof vs(e)=="number"?e.pop():n}var _s=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Tc(e){return Ae(e==null?void 0:e.then)}function Oc(e){return Ae(e[bs])}function Ic(e){return Symbol.asyncIterator&&Ae(e==null?void 0:e[Symbol.asyncIterator])}function $c(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Cf(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Mc=Cf();function Nc(e){return Ae(e==null?void 0:e[Mc])}function Rc(e){return rf(this,arguments,function(){var t,r,i,o;return Sc(this,function(s){switch(s.label){case 0:t=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,Yr(t.read())];case 3:return r=s.sent(),i=r.value,o=r.done,o?[4,Yr(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,Yr(i)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function Hc(e){return Ae(e==null?void 0:e.getReader)}function Cn(e){if(e instanceof _t)return e;if(e!=null){if(Oc(e))return Ef(e);if(_s(e))return Lf(e);if(Tc(e))return xf(e);if(Ic(e))return Vc(e);if(Nc(e))return Pf(e);if(Hc(e))return Af(e)}throw $c(e)}function Ef(e){return new _t(function(n){var t=e[bs]();if(Ae(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Lf(e){return new _t(function(n){for(var t=0;t<e.length&&!n.closed;t++)n.next(e[t]);n.complete()})}function xf(e){return new _t(function(n){e.then(function(t){n.closed||(n.next(t),n.complete())},function(t){return n.error(t)}).then(null,xc)})}function Pf(e){return new _t(function(n){var t,r;try{for(var i=Xr(e),o=i.next();!o.done;o=i.next()){var s=o.value;if(n.next(s),n.closed)return}}catch(l){t={error:l}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}n.complete()})}function Vc(e){return new _t(function(n){Df(e,n).catch(function(t){return n.error(t)})})}function Af(e){return Vc(Rc(e))}function Df(e,n){var t,r,i,o;return nf(this,void 0,void 0,function(){var s,l;return Sc(this,function(a){switch(a.label){case 0:a.trys.push([0,5,6,11]),t=of(e),a.label=1;case 1:return[4,t.next()];case 2:if(r=a.sent(),!!r.done)return[3,4];if(s=r.value,n.next(s),n.closed)return[2];a.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return l=a.sent(),i={error:l},[3,11];case 6:return a.trys.push([6,,9,10]),r&&!r.done&&(o=t.return)?[4,o.call(t)]:[3,8];case 7:a.sent(),a.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return n.complete(),[2]}})})}function yn(e,n,t,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var o=n.schedule(function(){t(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function Fc(e,n){return n===void 0&&(n=0),un(function(t,r){t.subscribe(Gt(r,function(i){return yn(r,e,function(){return r.next(i)},n)},function(){return yn(r,e,function(){return r.complete()},n)},function(i){return yn(r,e,function(){return r.error(i)},n)}))})}function jc(e,n){return n===void 0&&(n=0),un(function(t,r){r.add(e.schedule(function(){return t.subscribe(r)},n))})}function Tf(e,n){return Cn(e).pipe(jc(n),Fc(n))}function Of(e,n){return Cn(e).pipe(jc(n),Fc(n))}function If(e,n){return new _t(function(t){var r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}function $f(e,n){return new _t(function(t){var r;return yn(t,n,function(){r=e[Mc](),yn(t,n,function(){var i,o,s;try{i=r.next(),o=i.value,s=i.done}catch(l){t.error(l);return}s?t.complete():t.next(o)},0,!0)}),function(){return Ae(r==null?void 0:r.return)&&r.return()}})}function Uc(e,n){if(!e)throw new Error("Iterable cannot be null");return new _t(function(t){yn(t,n,function(){var r=e[Symbol.asyncIterator]();yn(t,n,function(){r.next().then(function(i){i.done?t.complete():t.next(i.value)})},0,!0)})})}function Mf(e,n){return Uc(Rc(e),n)}function Nf(e,n){if(e!=null){if(Oc(e))return Tf(e,n);if(_s(e))return If(e,n);if(Tc(e))return Of(e,n);if(Ic(e))return Uc(e,n);if(Nc(e))return $f(e,n);if(Hc(e))return Mf(e,n)}throw $c(e)}function Dl(e,n){return n?Nf(e,n):Cn(e)}function Rf(e){return e instanceof Date&&!isNaN(e)}function Tl(e,n){return un(function(t,r){var i=0;t.subscribe(Gt(r,function(o){r.next(e.call(n,o,i++))}))})}var Hf=Array.isArray;function Vf(e,n){return Hf(n)?e.apply(void 0,vr([],zn(n))):e(n)}function Bc(e){return Tl(function(n){return Vf(e,n)})}var Ff=Array.isArray,jf=Object.getPrototypeOf,Uf=Object.prototype,Bf=Object.keys;function Wf(e){if(e.length===1){var n=e[0];if(Ff(n))return{args:n,keys:null};if(zf(n)){var t=Bf(n);return{args:t.map(function(r){return n[r]}),keys:t}}}return{args:e,keys:null}}function zf(e){return e&&typeof e=="object"&&jf(e)===Uf}function Yf(e,n){return e.reduce(function(t,r,i){return t[r]=n[i],t},{})}function Gf(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=Al(e),r=kf(e),i=Wf(e),o=i.args,s=i.keys;if(o.length===0)return Dl([],t);var l=new _t(qf(o,t,s?function(a){return Yf(s,a)}:Ji));return r?l.pipe(Bc(r)):l}function qf(e,n,t){return t===void 0&&(t=Ji),function(r){_a(n,function(){for(var i=e.length,o=new Array(i),s=i,l=i,a=function(h){_a(n,function(){var p=Dl(e[h],n),d=!1;p.subscribe(Gt(r,function(g){o[h]=g,d||(d=!0,l--),l||r.next(t(o.slice()))},function(){--s||r.complete()}))},r)},c=0;c<i;c++)a(c)},r)}}function _a(e,n,t){e?yn(t,e,n):n()}function Xf(e,n,t,r,i,o,s,l){var a=[],c=0,h=0,p=!1,d=function(){p&&!a.length&&!c&&n.complete()},g=function(S){return c<r?v(S):a.push(S)},v=function(S){o&&n.next(S),c++;var $=!1;Cn(t(S,h++)).subscribe(Gt(n,function(D){i==null||i(D),o?g(D):n.next(D)},function(){$=!0},void 0,function(){if($)try{c--;for(var D=function(){var T=a.shift();s?yn(n,s,function(){return v(T)}):v(T)};a.length&&c<r;)D();d()}catch(T){n.error(T)}}))};return e.subscribe(Gt(n,g,function(){p=!0,d()})),function(){l==null||l()}}function ys(e,n,t){return t===void 0&&(t=1/0),Ae(n)?ys(function(r,i){return Tl(function(o,s){return n(r,o,i,s)})(Cn(e(r,i)))},t):(typeof n=="number"&&(t=n),un(function(r,i){return Xf(r,i,e,t)}))}function Wc(e){return e===void 0&&(e=1/0),ys(Ji,e)}function Kf(){return Wc(1)}function ya(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Kf()(Dl(e,Al(e)))}var Zf=["addListener","removeListener"],Jf=["addEventListener","removeEventListener"],Qf=["on","off"];function Vn(e,n,t,r){if(Ae(t)&&(r=t,t=void 0),r)return Vn(e,n,t).pipe(Bc(r));var i=zn(nh(e)?Jf.map(function(l){return function(a){return e[l](n,a,t)}}):eh(e)?Zf.map(wa(e,n)):th(e)?Qf.map(wa(e,n)):[],2),o=i[0],s=i[1];if(!o&&_s(e))return ys(function(l){return Vn(l,n,t)})(Cn(e));if(!o)throw new TypeError("Invalid event target");return new _t(function(l){var a=function(){for(var c=[],h=0;h<arguments.length;h++)c[h]=arguments[h];return l.next(1<c.length?c:c[0])};return o(a),function(){return s(a)}})}function wa(e,n){return function(t){return function(r){return e[t](n,r)}}}function eh(e){return Ae(e.addListener)&&Ae(e.removeListener)}function th(e){return Ae(e.on)&&Ae(e.off)}function nh(e){return Ae(e.addEventListener)&&Ae(e.removeEventListener)}function zc(e,n,t){e===void 0&&(e=0),t===void 0&&(t=yf);var r=-1;return n!=null&&(Dc(n)?t=n:r=n),new _t(function(i){var o=Rf(e)?+e-t.now():e;o<0&&(o=0);var s=0;return t.schedule(function(){i.closed||(i.next(s++),0<=r?this.schedule(void 0,r):i.complete())},o)})}function rh(e,n){return e===void 0&&(e=0),n===void 0&&(n=Pl),e<0&&(e=0),zc(e,e,n)}function ih(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=Al(e),r=Sf(e,1/0),i=e;return i.length?i.length===1?Cn(i[0]):Wc(r)(Dl(i,t)):wf}var Wi=new _t(os);function Ol(e,n){return un(function(t,r){var i=0;t.subscribe(Gt(r,function(o){return e.call(n,o,i++)&&r.next(o)}))})}function ws(e,n){return n===void 0&&(n=Pl),un(function(t,r){var i=null,o=null,s=null,l=function(){if(i){i.unsubscribe(),i=null;var c=o;o=null,r.next(c)}};function a(){var c=s+e,h=n.now();if(h<c){i=this.schedule(void 0,c-h),r.add(i);return}l()}t.subscribe(Gt(r,function(c){o=c,s=n.now(),i||(i=n.schedule(a,e),r.add(i))},function(){l(),r.complete()},void 0,function(){o=i=null}))})}function oh(e){return Ol(function(n,t){return e<=t})}function lh(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=Al(e);return un(function(r,i){(t?ya(e,r,t):ya(e,r)).subscribe(i)})}function zi(e,n){return un(function(t,r){var i=null,o=0,s=!1,l=function(){return s&&!i&&r.complete()};t.subscribe(Gt(r,function(a){i==null||i.unsubscribe();var c=0,h=o++;Cn(e(a,h)).subscribe(i=Gt(r,function(p){return r.next(n?n(a,p,h,c++):p)},function(){i=null,l()}))},function(){s=!0,l()}))})}function Mn(e,n,t){var r=Ae(e)||n||t?{next:e,error:n,complete:t}:e;return r?un(function(i,o){var s;(s=r.subscribe)===null||s===void 0||s.call(r);var l=!0;i.subscribe(Gt(o,function(a){var c;(c=r.next)===null||c===void 0||c.call(r,a),o.next(a)},function(){var a;l=!1,(a=r.complete)===null||a===void 0||a.call(r),o.complete()},function(a){var c;l=!1,(c=r.error)===null||c===void 0||c.call(r,a),o.error(a)},function(){var a,c;l&&((a=r.unsubscribe)===null||a===void 0||a.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):Ji}var Yc={leading:!0,trailing:!1};function sh(e,n){return n===void 0&&(n=Yc),un(function(t,r){var i=n.leading,o=n.trailing,s=!1,l=null,a=null,c=!1,h=function(){a==null||a.unsubscribe(),a=null,o&&(g(),c&&r.complete())},p=function(){a=null,c&&r.complete()},d=function(v){return a=Cn(e(v)).subscribe(Gt(r,h,p))},g=function(){if(s){s=!1;var v=l;l=null,r.next(v),!c&&d(v)}};t.subscribe(Gt(r,function(v){s=!0,l=v,!(a&&!a.closed)&&(i?g():d(v))},function(){c=!0,!(o&&s&&a&&!a.closed)&&r.complete()}))})}function ah(e,n,t){n===void 0&&(n=Pl),t===void 0&&(t=Yc);var r=zc(e,n);return sh(function(){return r},t)}function ch(e){const n=e-1;return n*n*n+1}function uh(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}function Gc(e,{delay:n=0,duration:t=400,easing:r=ch,x:i=0,y:o=0,opacity:s=0}={}){const l=getComputedStyle(e),a=+l.opacity,c=l.transform==="none"?"":l.transform,h=a*(1-s);return{delay:n,duration:t,easing:r,css:(p,d)=>`
|
25
|
+
transform: ${c} translate(${(1-p)*i}px, ${(1-p)*o}px);
|
26
|
+
opacity: ${a-h*d}`}}var Wt=(e=>(e.LIGHT="light",e.DARK="dark",e.CUPCAKE="cupcake",e.BUMBLEBEE="bumblebee",e.EMERALD="emerald",e.CORPORATE="corporate",e.SYNTHWAVE="synthwave",e.RETRO="retro",e.CYBERPUNK="cyberpunk",e.VALENTINE="valentine",e.HALLOWEEN="halloween",e.GARDEN="garden",e.FOREST="forest",e.AQUA="aqua",e.LOFI="lofi",e.PASTEL="pastel",e.FANTASY="fantasy",e.WIREFRAME="wireframe",e.BLACK="black",e.LUXURY="luxury",e.DRACULA="dracula",e.CMYK="cmyk",e.AUTUMN="autumn",e.BUSINESS="business",e.ACID="acid",e.LEMONADE="lemonade",e.NIGHT="night",e.COFFEE="coffee",e.WINTER="winter",e))(Wt||{}),Fn=(e=>(e.OFF="Off",e.NOTO="Noto Serif JP",e.KLEE="Klee One",e.SHIPPORI="Shippori Mincho",e))(Fn||{}),jn=(e=>(e.SOCKET="socket",e.PASTE="paste",e.EXTERNAL="external",e.EDIT="edit",e.UNDO="undo",e.RESETCHECKBOXES="resetcheckboxes",e))(jn||{});const Fr=[];function ks(e,n=Le){let t;const r=new Set;function i(l){if(mt(e,l)&&(e=l,t)){const a=!Fr.length;for(const c of r)c[1](),Fr.push(c,e);if(a){for(let c=0;c<Fr.length;c+=2)Fr[c][0](Fr[c+1]);Fr.length=0}}}function o(l){i(l(e))}function s(l,a=Le){const c=[l,a];return r.add(c),r.size===1&&(t=n(i)||Le),l(e),()=>{r.delete(c),r.size===0&&(t(),t=null)}}return{set:i,update:o,subscribe:s}}function fh(e){return e.set=e.next,e}function Sr(e){return fh(new gf(e))}function Il(e,n){return(t,r,i)=>{const o=hh()(t,r,e),s=Sr(o);let l=!0;return i&&i.subscribe(a=>l=a),s.pipe(oh(1)).subscribe(a=>{l&&window.localStorage.setItem(t,n(a??r))}),s}}function hh(){return(e,n,t)=>{const r=window.localStorage.getItem(e);return r?t(r):n}}function Ce(){return Il(e=>!!+e,e=>e?"1":"0")}function Qi(){return Il(e=>+e,e=>`${e}`)}function ph(e){return Il(n=>JSON.parse(n||e),n=>JSON.stringify(n))}function eo(){return ph("[]")}function qn(){return Il(e=>e,e=>e)}const E={theme$:Wt.BUSINESS,replacements$:[],windowTitle$:"",websocketUrl$:"ws://localhost:55001",secondaryWebsocketUrl$:"",fontSize$:32,onlineFont$:Fn.OFF,preventLastDuplicate$:0,maxLines$:0,afkTimer$:0,adjustTimerOnAfk$:!1,enableExternalClipboardMonitor$:!1,showPresetQuickSwitch$:!1,skipResetConfirmations$:!1,persistStats$:!0,persistNotes$:!0,persistLines$:!0,persistActionHistory$:!1,enablePaste$:!1,blockCopyOnPage$:!1,allowPasteDuringPause$:!1,allowNewLineDuringPause$:!0,autoStartTimerDuringPausePaste$:!1,autoStartTimerDuringPause$:!1,preventGlobalDuplicate$:!1,mergeEqualLineStarts$:!1,filterNonCJKLines:!1,flashOnMissedLine$:!0,displayVertical$:!1,reverseLineOrder$:!1,preserveWhitespace$:!0,removeAllWhitespace$:!1,showTimer$:!0,showSpeed$:!0,showCharacterCount$:!0,showLineCount$:!0,blurStats$:!1,enableLineAnimation$:!1,enableAfkBlur$:!1,enableAfkBlurRestart$:!1,continuousReconnect$:!0,showConnectionErrors$:!1,customCSS$:""},dr=qn()("bannou-texthooker-theme",E.theme$),on=eo()("bannou-texthooker-settingPresets",[]),Yt=eo()("bannou-texthooker-replacements",[]),Yi=qn()("bannou-texthooker-windowTitle",E.windowTitle$),Yn=qn()("bannou-texthooker-websocketUrl",E.websocketUrl$),wn=qn()("bannou-texthooker-secondary-websocketUrl",E.secondaryWebsocketUrl$),mr=Qi()("bannou-texthooker-fontSize",E.fontSize$),Kr=qn()("bannou-texthooker-onlineFont",E.onlineFont$),gr=Qi()("bannou-texthooker-preventLastDuplicate",E.preventLastDuplicate$),pr=Qi()("bannou-texthooker-maxLines",E.maxLines$),Wn=Qi()("bannou-texthooker-afkTimer",E.afkTimer$),Zr=Ce()("bannou-texthooker-adjustTimerOnAfk",E.adjustTimerOnAfk$),Gi=Ce()("bannou-texthooker-enableExternalClipboardMonitor",E.enableExternalClipboardMonitor$),qi=Ce()("bannou-texthooker-showPresetQuickSwitch",E.showPresetQuickSwitch$),Jr=Ce()("bannou-texthooker-skipResetConfirmations",E.skipResetConfirmations$),Qr=Ce()("bannou-texthooker-persistStats",E.persistStats$),ei=Ce()("bannou-texthooker-persistNotes",E.persistNotes$),ti=Ce()("bannou-texthooker-persistLines",E.persistLines$),ni=Ce()("bannou-texthooker-persistActionHistory",E.persistActionHistory$),ri=Ce()("bannou-texthooker-enablePaste",E.enablePaste$),ii=Ce()("bannou-texthooker-blockCopyOnPage",E.blockCopyOnPage$),oi=Ce()("bannou-texthooker-allowPasteDuringPause",E.allowPasteDuringPause$),li=Ce()("bannou-texthooker-allowNewLineDuringPause",E.allowNewLineDuringPause$),si=Ce()("bannou-texthooker-autoStartTimerDuringPausePaste",E.autoStartTimerDuringPausePaste$),ai=Ce()("bannou-texthooker-autoStartTimerDuringPause",E.autoStartTimerDuringPause$),_r=Ce()("bannou-texthooker-preventGlobalDuplicate",E.preventGlobalDuplicate$),ci=Ce()("bannou-texthooker-mergeEqualLineStarts",E.mergeEqualLineStarts$),bl=Ce()("bannou-texthooker-filterNonCJKLines",E.mergeEqualLineStarts$),ui=Ce()("bannou-texthooker-flashOnMissedLine",E.flashOnMissedLine$),yr=Ce()("bannou-texthooker-displayVertical",E.displayVertical$),wr=Ce()("bannou-texthooker-reverseLineOrder",E.reverseLineOrder$),fi=Ce()("bannou-texthooker-preserveWhitespace",E.preserveWhitespace$),hi=Ce()("bannou-texthooker-removeAllWhitespace",E.removeAllWhitespace$),pi=Ce()("bannou-texthooker-showTimer",E.showTimer$),di=Ce()("bannou-texthooker-showSpeed",E.showSpeed$),mi=Ce()("bannou-texthooker-showCharacterCount",E.showCharacterCount$),gi=Ce()("bannou-texthooker-showLineCount",E.showLineCount$),bi=Ce()("bannou-texthooker-blurStats",E.blurStats$),vi=Ce()("bannou-texthooker-enableLineAnimation",E.enableLineAnimation$),_i=Ce()("bannou-texthooker-enableAfkBlur",E.enableAfkBlur$),yi=Ce()("bannou-texthooker-enableAfkBlurRestart",E.enableAfkBlurRestart$),kr=Ce()("bannou-texthooker-continuousReconnect",E.continuousReconnect$),wi=Ce()("bannou-texthooker-showConnectionErrors",E.showConnectionErrors$),Xi=qn()("bannou-texthooker-customCSS",E.customCSS$),ln=Qi()("bannou-texthooker-timeValue",0,Qr),vl=Sr(!1),Ki=qn()("bannou-texthooker-userNotes","",ei),Ss=Sr(-1),Cs=Sr(-1),Re=Sr(void 0),_l=Sr(!1),Un=qn()("bannou-texthooker-lastSettingPreset",""),Ze=eo()("bannou-texthooker-lineData",[],ti),ol=eo()("bannou-texthooker-lineIDs",[]),Nn=eo()("bannou-texthooker-actionHistory",[],ni),ss=ks(void 0),zt=Sr(!0),ki=new Li,$l=new Li,Ml=new Li,ll=ks(!1),as=ks([]);async function dh(){if(!Jr.getValue()){const{canceled:e}=await new Promise(n=>{Re.next({icon:Bt,message:"All Settings and Data will be reset",callback:n})});if(e)return}Un.next(""),on.next([]),zt.next(!0),ln.next(0),Ki.next(""),Ze.next([]),Nn.next([]),ss.set(void 0),window.localStorage.removeItem("bannou-texthooker-timeValue"),window.localStorage.removeItem("bannou-texthooker-userNotes"),window.localStorage.removeItem("bannou-texthooker-lineData"),window.localStorage.removeItem("bannou-texthooker-actionHistory"),dr.next(E.theme$),Yt.next(E.replacements$),Yi.next(E.windowTitle$),Yn.next(E.websocketUrl$),wn.next(E.secondaryWebsocketUrl$),mr.next(E.fontSize$),Kr.next(E.onlineFont$),gr.next(E.preventLastDuplicate$),Wn.next(E.afkTimer$),Zr.next(E.adjustTimerOnAfk$),Gi.next(E.enableExternalClipboardMonitor$),qi.next(E.showPresetQuickSwitch$),Jr.next(E.skipResetConfirmations$),Qr.next(E.persistStats$),ei.next(E.persistNotes$),ti.next(E.persistLines$),ni.next(E.persistActionHistory$),ri.next(E.enablePaste$),ii.next(E.blockCopyOnPage$),oi.next(E.allowPasteDuringPause$),li.next(E.allowNewLineDuringPause$),si.next(E.autoStartTimerDuringPausePaste$),ai.next(E.autoStartTimerDuringPause$),_r.next(E.preventGlobalDuplicate$),ci.next(E.mergeEqualLineStarts$),bl.next(E.filterNonCJKLines),ui.next(E.flashOnMissedLine$),yr.next(E.displayVertical$),wr.next(E.reverseLineOrder$),fi.next(E.preserveWhitespace$),hi.next(E.removeAllWhitespace$),pi.next(E.showTimer$),di.next(E.showSpeed$),mi.next(E.showCharacterCount$),gi.next(E.showLineCount$),bi.next(E.blurStats$),vi.next(E.enableLineAnimation$),_i.next(E.enableAfkBlur$),yi.next(E.enableAfkBlurRestart$),kr.next(E.continuousReconnect$),wi.next(E.showConnectionErrors$),Xi.next(E.customCSS$)}function xt(){}function Rn(){return uf(Tl(()=>""),Ol((e,n)=>!n))}function Es(e,n,t,r,i="auto"){console.log(n),n&&setTimeout(()=>{t?r?n.scrollTo({top:0,left:n.scrollWidth,behavior:i}):e.scrollTo({top:-n.scrollHeight,left:0,behavior:i}):r?n.scrollTo({top:0,left:-n.scrollWidth,behavior:i}):e.scrollTo({top:n.scrollHeight+100,left:0,behavior:i}),i==="smooth"&&setTimeout(()=>Es(e,n,t,r),250)})}function mh(e){const n=Math.floor(e/3600),t=Math.floor((e-n*3600)/60),r=e-n*3600-t*60;return`${`${n}`.padStart(2,"0")}:${`${t}`.padStart(2,"0")}:${`${r}`.padStart(2,"0")}`}function gh(e){const[n,t,r]=e.split(":").map(i=>Number.parseInt(i,10));return n*60*60+t*60+r}function bh(){const e=new Uint8Array(16);return crypto.getRandomValues(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128,Array.prototype.map.call(e,(t,r)=>(t<16?"0":"")+t.toString(16)+(r%2&&r<10&&r>2?"-":"")).join("")}function qc(e,n){if(!e||!n.length)return e;let t=e;for(let r=0,{length:i}=n;r<i;r+=1){const o=n[r];t=t.replace(new RegExp(o.pattern,o.flags.join("")),o.replaces.replace(/\\t/gm," ").replace(/\\n/gm,`
|
27
27
|
`))}return t}const Xc=`
|
28
|
-
`;function vh(e){let n,t,r,o;return{c(){n=Jl("svg"),t=Jl("path"),f(t,"d",e[1]),Le(n,"width",e[2]),Le(n,"height",e[3]),f(n,"viewBox","0 0 24 24"),f(n,"fill","currentColor"),f(n,"class",e[4])},m(i,s){j(i,n,s),u(n,t),e[7](n),r||(o=[x(n,"click",e[5]),x(n,"keyup",e[6])],r=!0)},p(i,[s]){s&2&&f(t,"d",i[1]),s&4&&Le(n,"width",i[2]),s&8&&Le(n,"height",i[3]),s&16&&f(n,"class",i[4])},i:xe,o:xe,d(i){i&&F(n),e[7](null),r=!1,Ct(o)}}}function _h(e,n,t){let{path:r}=n,{width:o="1.5rem"}=n,{height:i="1.5rem"}=n,{element:s=void 0}=n,{class:l=""}=n;function a(p){Bo.call(this,e,p)}function c(p){Bo.call(this,e,p)}function h(p){ct[p?"unshift":"push"](()=>{s=p,t(0,s)})}return e.$$set=p=>{"path"in p&&t(1,r=p.path),"width"in p&&t(2,o=p.width),"height"in p&&t(3,i=p.height),"element"in p&&t(0,s=p.element),"class"in p&&t(4,l=p.class)},[s,r,o,i,l,a,c,h]}class we extends Tt{constructor(n){super(),Dt(this,n,_h,vh,gt,{path:1,width:2,height:3,element:0,class:4})}}function ka(e){let n,t;return n=new we({props:{path:e[1]}}),{c(){se(n.$$.fragment)},m(r,o){re(n,r,o),t=!0},p(r,o){const i={};o&2&&(i.path=r[1]),n.$set(i)},i(r){t||(M(n.$$.fragment,r),t=!0)},o(r){W(n.$$.fragment,r),t=!1},d(r){oe(n,r)}}}function yh(e){let n;return{c(){n=at(e[2])},m(t,r){j(t,n,r)},p(t,r){r&4&&At(n,t[2])},d(t){t&&F(n)}}}function wh(e){let n,t=e[5]==="text"&&Sa(e);return{c(){n=b("div"),t&&t.c()},m(r,o){j(r,n,o),t&&t.m(n,null)},p(r,o){r[5]==="text"?t?t.p(r,o):(t=Sa(r),t.c(),t.m(n,null)):t&&(t.d(1),t=null)},d(r){r&&F(n),t&&t.d()}}}function Sa(e){let n,t,r;return{c(){n=b("input"),f(n,"type",e[5]),f(n,"class","input input-bordered h-8 ml-2"),n.value=e[0]},m(o,i){j(o,n,i),t||(r=x(n,"change",e[8]),t=!0)},p(o,i){i&32&&f(n,"type",o[5]),i&1&&n.value!==o[0]&&(n.value=o[0])},d(o){o&&F(n),t=!1,r()}}}function Ca(e){let n,t,r;return{c(){n=b("button"),n.textContent="Cancel",f(n,"class","btn btn-sm btn-ghost")},m(o,i){j(o,n,i),t||(r=x(n,"click",e[9]),t=!0)},p:xe,d(o){o&&F(n),t=!1,r()}}}function kh(e){let n,t,r,o,i,s,l,a,c,h,p,d,g=e[1]&&ka(e);function v(T,P){return T[5]?wh:yh}let S=v(e),I=S(e),D=e[4]&&Ca(e);return{c(){n=b("div"),t=b("div"),r=b("div"),g&&g.c(),o=_(),i=b("span"),I.c(),s=_(),l=b("div"),D&&D.c(),a=_(),c=b("button"),c.textContent="Confirm",f(c,"class","btn btn-sm btn-primary"),f(l,"class","flex-none"),f(t,"class","alert shadow-lg max-w-xl"),te(t,"alert-info",e[3]==="info"),te(t,"alert-error",e[3]==="error"),f(n,"class","fixed top-12 flex justify-center w-full z-30")},m(T,P){j(T,n,P),u(n,t),u(t,r),g&&g.m(r,null),u(r,o),u(r,i),I.m(i,null),u(t,s),u(t,l),D&&D.m(l,null),u(l,a),u(l,c),h=!0,p||(d=x(c,"click",e[10]),p=!0)},p(T,[P]){T[1]?g?(g.p(T,P),P&2&&M(g,1)):(g=ka(T),g.c(),M(g,1),g.m(r,o)):g&&(dt(),W(g,1,1,()=>{g=null}),mt()),S===(S=v(T))&&I?I.p(T,P):(I.d(1),I=S(T),I&&(I.c(),I.m(i,null))),T[4]?D?D.p(T,P):(D=Ca(T),D.c(),D.m(l,a)):D&&(D.d(1),D=null),(!h||P&8)&&te(t,"alert-info",T[3]==="info"),(!h||P&8)&&te(t,"alert-error",T[3]==="error")},i(T){h||(M(g),h=!0)},o(T){W(g),h=!1},d(T){T&&F(n),g&&g.d(),I.d(),D&&D.d(),p=!1,d()}}}function Sh(e,n,t){let{icon:r}=n,{message:o}=n,{type:i="info"}=n,{showCancel:s=!0}=n,{askForData:l=""}=n,{dataValue:a}=n,{callback:c}=n;const h=Eo();function p(v){const S=v.target;t(0,a=S.value)}const d=()=>{c==null||c({canceled:!0,data:a}),h("close")},g=()=>{c==null||c({canceled:!1,data:a}),h("close")};return e.$$set=v=>{"icon"in v&&t(1,r=v.icon),"message"in v&&t(2,o=v.message),"type"in v&&t(3,i=v.type),"showCancel"in v&&t(4,s=v.showCancel),"askForData"in v&&t(5,l=v.askForData),"dataValue"in v&&t(0,a=v.dataValue),"callback"in v&&t(6,c=v.callback)},[a,r,o,i,s,l,c,h,p,d,g]}class Ch extends Tt{constructor(n){super(),Dt(this,n,Sh,kh,gt,{icon:1,message:2,type:3,showCancel:4,askForData:5,dataValue:0,callback:6})}}function Ea(e){let n,t;const r=[e[0]];let o={};for(let i=0;i<r.length;i+=1)o=gu(o,r[i]);return n=new Ch({props:o}),n.$on("close",e[1]),{c(){se(n.$$.fragment)},m(i,s){re(n,i,s),t=!0},p(i,s){const l=s&1?$u(r,[Mu(i[0])]):{};n.$set(l)},i(i){t||(M(n.$$.fragment,i),t=!0)},o(i){W(n.$$.fragment,i),t=!1},d(i){oe(n,i)}}}function Eh(e){let n,t,r=e[0]&&Ea(e);return{c(){r&&r.c(),n=Gn()},m(o,i){r&&r.m(o,i),j(o,n,i),t=!0},p(o,[i]){o[0]?r?(r.p(o,i),i&1&&M(r,1)):(r=Ea(o),r.c(),M(r,1),r.m(n.parentNode,n)):r&&(dt(),W(r,1,1,()=>{r=null}),mt())},i(o){t||(M(r),t=!0)},o(o){W(r),t=!1},d(o){r&&r.d(o),o&&F(n)}}}function Lh(e,n,t){let r;w(e,vl,a=>t(2,r=a));let o,i=[];const s=He.subscribe(a=>{!a||(a.message.includes("Lost Connection to")||a.message.includes("Unable to connect to"))&&((o==null?void 0:o.message)===a.message||i.find(c=>c.message===a.message))||(i.unshift(a),o||l())});function l(){t(0,o=i.pop()),R(vl,r=!!o,r)}return hc(()=>s==null?void 0:s.unsubscribe()),[o,l]}class xh extends Tt{constructor(n){super(),Dt(this,n,Lh,Eh,gt,{})}}function La(e){let n,t,r,o,i;return{c(){n=b("input"),f(n,"type","checkbox"),f(n,"class","multi-line-checkbox svelte-1e1volb"),f(n,"id",t="multi-line-checkbox-"+e[0].id),f(n,"aria-label",r=e[0].id)},m(s,l){j(s,n,l),o||(i=x(n,"change",e[13]),o=!0)},p(s,l){l&1&&t!==(t="multi-line-checkbox-"+s[0].id)&&f(n,"id",t),l&1&&r!==(r=s[0].id)&&f(n,"aria-label",r)},d(s){s&&F(n),o=!1,i()}}}function xa(e){let n,t,r,o,i,s;return{c(){n=b("div"),t=b("button"),t.textContent="📷",r=_(),o=b("button"),o.textContent="🔊",f(t,"title","Screenshot"),Le(t,"background-color","#333"),Le(t,"color","#fff"),Le(t,"border","1px solid #555"),Le(t,"padding","6px 10px"),Le(t,"font-size","10px"),Le(t,"border-radius","4px"),Le(t,"cursor","pointer"),Le(t,"transition","background-color 0.3s"),f(t,"tabindex","-1"),f(t,"class","svelte-1e1volb"),f(o,"title","Audio"),Le(o,"background-color","#333"),Le(o,"color","#fff"),Le(o,"border","1px solid #555"),Le(o,"padding","6px 10px"),Le(o,"font-size","10px"),Le(o,"border-radius","4px"),Le(o,"cursor","pointer"),Le(o,"transition","background-color 0.3s"),f(o,"tabindex","-1"),f(o,"class","svelte-1e1volb"),f(n,"class","textline-buttons unselectable svelte-1e1volb")},m(l,a){j(l,n,a),u(n,t),u(n,r),u(n,o),i||(s=[x(t,"click",e[15]),x(o,"click",e[16])],i=!0)},p:xe,d(l){l&&F(n),i=!1,Ct(s)}}}function Pa(e){let n,t=e[6]&&e[6].includes(e[0].id),r,o,i=e[0].text+"",s,l,a,c=e[6]&&e[6].includes(e[0].id),h,p,d=t&&La(e),g=c&&xa(e);return{c(){n=b("div"),d&&d.c(),r=_(),o=b("p"),s=at(i),a=_(),g&&g.c(),f(o,"class","my-2 cursor-pointer border-2 svelte-1e1volb"),f(o,"contenteditable",e[3]),te(o,"py-4",!e[5]),te(o,"px-2",!e[5]),te(o,"py-2",e[5]),te(o,"px-4",e[5]),te(o,"border-transparent",!e[2]),te(o,"cursor-text",e[3]),te(o,"border-primary",e[2]),te(o,"border-accent-focus",e[3]),te(o,"whitespace-pre-wrap",e[7]),f(n,"class","textline2 svelte-1e1volb")},m(v,S){j(v,n,S),d&&d.m(n,null),u(n,r),u(n,o),u(o,s),e[14](o),u(n,a),g&&g.m(n,null),h||(p=[x(o,"dblclick",e[8]),x(o,"keyup",Pt)],h=!0)},p(v,S){e=v,S&65&&(t=e[6]&&e[6].includes(e[0].id)),t?d?d.p(e,S):(d=La(e),d.c(),d.m(n,r)):d&&(d.d(1),d=null),S&1&&i!==(i=e[0].text+"")&&At(s,i),S&8&&f(o,"contenteditable",e[3]),S&32&&te(o,"py-4",!e[5]),S&32&&te(o,"px-2",!e[5]),S&32&&te(o,"py-2",e[5]),S&32&&te(o,"px-4",e[5]),S&4&&te(o,"border-transparent",!e[2]),S&8&&te(o,"cursor-text",e[3]),S&4&&te(o,"border-primary",e[2]),S&8&&te(o,"border-accent-focus",e[3]),S&128&&te(o,"whitespace-pre-wrap",e[7]),S&65&&(c=e[6]&&e[6].includes(e[0].id)),c?g?g.p(e,S):(g=xa(e),g.c(),g.m(n,null)):g&&(g.d(1),g=null)},i(v){l||br(()=>{l=gc(o,Gc,{x:e[5]?100:-100,duration:e[4]?250:0}),l.start()})},o:xe,d(v){v&&F(n),d&&d.d(),e[14](null),g&&g.d(),h=!1,Ct(p)}}}function Ph(e){let n=e[0].text,t,r,o,i=Pa(e);return{c(){i.c(),t=_(),r=new fc(!1),o=Gn(),r.a=o},m(s,l){i.m(s,l),j(s,t,l),r.m(Xc,s,l),j(s,o,l)},p(s,[l]){l&1&>(n,n=s[0].text)?(dt(),W(i,1,1,xe),mt(),i=Pa(s),i.c(),M(i,1),i.m(t.parentNode,t)):i.p(s,l)},i(s){M(i)},o(s){W(i)},d(s){i.d(s),s&&F(t),s&&F(o),s&&r.d()}}}async function Ah(e){try{const n=await fetch("/update_checkbox",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e})});if(!n.ok)throw new Error(`HTTP error! Status: ${n.status}`)}catch(n){console.error("Error updating checkbox:",n)}}function Aa(e,n){console.log(e),fetch(n==="Screenshot"?"/get-screenshot":"/play-audio",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e})}).then(r=>{if(!r.ok)throw new Error(`HTTP error! Status: ${r.status}`);return r.json()}).then(r=>{console.log(`${n} action completed for event ID: ${e}`,r)}).catch(r=>{console.error(`Error performing ${n} action for event ID: ${e}`,r)})}function Dh(e,n,t){let r,o,i,s,l;w(e,_o,A=>t(4,r=A)),w(e,yr,A=>t(5,o=A)),w(e,wr,A=>t(18,i=A)),w(e,ls,A=>t(6,s=A)),w(e,fo,A=>t(7,l=A));let{line:a}=n,{index:c}=n,{isLast:h}=n;function p(){t(2,I=!1)}function d(A){return I||A.intersectsNode(v)?a.id:void 0}const g=Eo();let v,S="",I=!1,D=!1;El(()=>{h&&Es(window,v.parentElement.parentElement,i,o,r?"smooth":"auto")}),hc(()=>{document.removeEventListener("click",P,!1),g("edit",{inEdit:!1})});function T(A){var L;(L=window.getSelection())==null||L.removeAllRanges(),A.ctrlKey||A.metaKey?I?(t(2,I=!1),g("deselected",a.id)):(t(2,I=!0),g("selected",a.id)):(S=v.innerText,t(3,D=!0),g("edit",{inEdit:!0}),document.addEventListener("click",P,!1),Wo().then(()=>{v.focus()}))}function P(A){const L=A.target;v.contains(L)||(t(3,D=!1),document.removeEventListener("click",P,!1),g("edit",{inEdit:!1,data:{originalText:S,newText:v.innerText,lineIndex:c,line:a}}))}const $=()=>Ah(a.id);function q(A){ct[A?"unshift":"push"](()=>{v=A,t(1,v)})}const G=()=>Aa(a.id,"Screenshot"),U=()=>Aa(a.id,"Audio");return e.$$set=A=>{"line"in A&&t(0,a=A.line),"index"in A&&t(9,c=A.index),"isLast"in A&&t(10,h=A.isLast)},[a,v,I,D,r,o,s,l,T,c,h,p,d,$,q,G,U]}class Th extends Tt{constructor(n){super(),Dt(this,n,Dh,Ph,gt,{line:0,index:9,isLast:10,deselect:11,getIdIfSelected:12})}get deselect(){return this.$$.ctx[11]}get getIdIfSelected(){return this.$$.ctx[12]}}function Oh(e){let n,t,r,o,i,s,l,a;return r=new we({props:{path:yc}}),{c(){n=b("div"),t=b("div"),se(r.$$.fragment),o=_(),i=b("textarea"),f(t,"class","flex cursor-pointer items-end md:items-center"),f(n,"class","flex justify-end p-4"),f(i,"class","flex-1 overflow-auto ml-10 mr-2 mb-4 p-1 pb-2"),Le(i,"resize","none"),i.value=e[0]},m(c,h){j(c,n,h),u(n,t),re(r,t,null),j(c,o,h),j(c,i,h),s=!0,l||(a=[x(t,"click",e[3]),x(t,"keyup",Pt),x(i,"blur",e[2])],l=!0)},p(c,[h]){(!s||h&1)&&(i.value=c[0])},i(c){s||(M(r.$$.fragment,c),s=!0)},o(c){W(r.$$.fragment,c),s=!1},d(c){c&&F(n),oe(r),c&&F(o),c&&F(i),l=!1,Ct(a)}}}function Ih(e,n,t){let r,o;w(e,Zo,l=>t(0,r=l)),w(e,bl,l=>t(1,o=l));function i(l){R(Zo,r=l.target.value,r)}return[r,o,i,()=>R(bl,o=!1,o)]}class $h extends Tt{constructor(n){super(),Dt(this,n,Ih,Oh,gt,{})}}function Da(e,n,t){const r=e.slice();return r[58]=n[t],r}function Ta(e,n,t){const r=e.slice();return r[58]=n[t],r}function Mh(e){let n,t,r,o,i,s=[],l=new Map,a,c,h,p,d,g,v,S,I,D,T,P,$,q,G,U,A,L,z,Y,Z,H,Q,V=e[2].length?e[2]:e[4];const ne=X=>X[58].name;for(let X=0;X<V.length;X+=1){let de=Da(e,V,X),ge=ne(de);l.set(ge,s[X]=Oa(ge,de))}return h=new we({props:{path:Fu}}),S=new we({props:{path:ts}}),$=new we({props:{path:Xu}}),L=new we({props:{path:No}}),{c(){n=b("details"),t=b("summary"),t.textContent="Presets",r=_(),o=b("div"),i=b("select");for(let X=0;X<s.length;X+=1)s[X].c();a=_(),c=b("div"),se(h.$$.fragment),p=_(),d=b("span"),d.textContent="Save",g=_(),v=b("div"),se(S.$$.fragment),I=_(),D=b("span"),D.textContent="Export/Import",T=_(),P=b("div"),se($.$$.fragment),q=_(),G=b("span"),G.textContent="Reload",U=_(),A=b("div"),se(L.$$.fragment),z=_(),Y=b("span"),Y.textContent="Delete",f(i,"class","select flex-1 max-w-md"),f(d,"class","label-text"),f(c,"role","button"),f(c,"class","flex flex-col items-center hover:text-primary ml-3"),f(D,"class","label-text"),f(v,"role","button"),f(v,"class","flex flex-col items-center hover:text-primary ml-3"),f(G,"class","label-text"),f(P,"role","button"),f(P,"class","flex flex-col items-center hover:text-primary ml-3"),te(P,"invisible",!e[1]),f(Y,"class","label-text"),f(A,"role","button"),f(A,"class","flex flex-col items-center hover:text-primary ml-3"),te(A,"invisible",!e[1]),f(o,"class","flex items-center justify-between mt-2"),f(n,"role","button"),f(n,"class","col-span-4 mb-2")},m(X,de){j(X,n,de),u(n,t),u(n,r),u(n,o),u(o,i);for(let ge=0;ge<s.length;ge+=1)s[ge].m(i,null);qr(i,e[1]),u(o,a),u(o,c),re(h,c,null),u(c,p),u(c,d),u(o,g),u(o,v),re(S,v,null),u(v,I),u(v,D),u(o,T),u(o,P),re($,P,null),u(P,q),u(P,G),u(o,U),u(o,A),re(L,A,null),u(A,z),u(A,Y),Z=!0,H||(Q=[x(i,"change",e[6]),x(c,"click",e[8]),x(c,"keyup",Pt),x(v,"click",e[12]),x(v,"keyup",Pt),x(P,"click",e[13]),x(P,"keyup",Pt),x(A,"click",e[9]),x(A,"keyup",Pt)],H=!0)},p(X,de){de[0]&20&&(V=X[2].length?X[2]:X[4],s=Lo(s,de,ne,1,X,V,l,i,Ll,Oa,null,Da)),(!Z||de[0]&22)&&qr(i,X[1]),(!Z||de[0]&2)&&te(P,"invisible",!X[1]),(!Z||de[0]&2)&&te(A,"invisible",!X[1])},i(X){Z||(M(h.$$.fragment,X),M(S.$$.fragment,X),M($.$$.fragment,X),M(L.$$.fragment,X),Z=!0)},o(X){W(h.$$.fragment,X),W(S.$$.fragment,X),W($.$$.fragment,X),W(L.$$.fragment,X),Z=!1},d(X){X&&F(n);for(let de=0;de<s.length;de+=1)s[de].d();oe(h),oe(S),oe($),oe(L),H=!1,Ct(Q)}}}function Nh(e){let n,t=[],r=new Map,o,i,s=e[2].length?e[2]:e[4];const l=a=>a[58].name;for(let a=0;a<s.length;a+=1){let c=Ta(e,s,a),h=l(c);r.set(h,t[a]=Ia(h,c))}return{c(){n=b("select");for(let a=0;a<t.length;a+=1)t[a].c();f(n,"class","w-48 hidden sm:block"),te(n,"sm:hidden",!e[3]||e[2].length<2)},m(a,c){j(a,n,c);for(let h=0;h<t.length;h+=1)t[h].m(n,null);qr(n,e[1]),o||(i=x(n,"change",e[6]),o=!0)},p(a,c){c[0]&20&&(s=a[2].length?a[2]:a[4],t=Lo(t,c,l,1,a,s,r,n,Ll,Ia,null,Ta)),c[0]&22&&qr(n,a[1]),c[0]&12&&te(n,"sm:hidden",!a[3]||a[2].length<2)},i:xe,o:xe,d(a){a&&F(n);for(let c=0;c<t.length;c+=1)t[c].d();o=!1,i()}}}function Oa(e,n){let t,r=(n[58].name||"No Presets stored")+"",o,i,s;return{key:e,first:null,c(){t=b("option"),o=at(r),i=_(),t.__value=s=n[58].name,t.value=t.__value,this.first=t},m(l,a){j(l,t,a),u(t,o),u(t,i)},p(l,a){n=l,a[0]&4&&r!==(r=(n[58].name||"No Presets stored")+"")&&At(o,r),a[0]&4&&s!==(s=n[58].name)&&(t.__value=s,t.value=t.__value)},d(l){l&&F(t)}}}function Ia(e,n){let t,r=n[58].name+"",o,i,s;return{key:e,first:null,c(){t=b("option"),o=at(r),i=_(),t.__value=s=n[58].name,t.value=t.__value,this.first=t},m(l,a){j(l,t,a),u(t,o),u(t,i)},p(l,a){n=l,a[0]&4&&r!==(r=n[58].name+"")&&At(o,r),a[0]&4&&s!==(s=n[58].name)&&(t.__value=s,t.value=t.__value)},d(l){l&&F(t)}}}function Rh(e){let n,t,r,o;const i=[Nh,Mh],s=[];function l(a,c){return a[0]?0:1}return n=l(e),t=s[n]=i[n](e),{c(){t.c(),r=Gn()},m(a,c){s[n].m(a,c),j(a,r,c),o=!0},p(a,c){let h=n;n=l(a),n===h?s[n].p(a,c):(dt(),W(s[h],1,1,()=>{s[h]=null}),mt(),t=s[n],t?t.p(a,c):(t=s[n]=i[n](a),t.c()),M(t,1),t.m(r.parentNode,r))},i(a){o||(M(t),o=!0)},o(a){W(t),o=!1},d(a){s[n].d(a),a&&F(r)}}}function Hh(e,n,t){let r,o,i,s,l,a,c,h,p,d,g,v,S,I,D,T,P,$,q,G,U,A,L,z,Y,Z,H,Q,V,ne,X,de,ge,We,Te,ze,ut,_e,be,Ue,et,Me,$e,ae,Ye,Ge,Oe;w(e,Un,k=>t(1,r=k)),w(e,on,k=>t(2,o=k)),w(e,He,k=>t(14,i=k)),w(e,Jr,k=>t(15,s=k)),w(e,kr,k=>t(16,l=k)),w(e,Cs,k=>t(17,a=k)),w(e,Ss,k=>t(18,c=k)),w(e,Ko,k=>t(19,h=k)),w(e,ko,k=>t(20,p=k)),w(e,wo,k=>t(21,d=k)),w(e,yo,k=>t(22,g=k)),w(e,_o,k=>t(23,v=k)),w(e,vo,k=>t(24,S=k)),w(e,bo,k=>t(25,I=k)),w(e,go,k=>t(26,D=k)),w(e,mo,k=>t(27,T=k)),w(e,po,k=>t(28,P=k)),w(e,ho,k=>t(29,$=k)),w(e,fo,k=>t(30,q=k)),w(e,wr,k=>t(31,G=k)),w(e,yr,k=>t(32,U=k)),w(e,uo,k=>t(33,A=k)),w(e,co,k=>t(34,L=k)),w(e,_r,k=>t(35,z=k)),w(e,ao,k=>t(36,Y=k)),w(e,so,k=>t(37,Z=k)),w(e,lo,k=>t(38,H=k)),w(e,io,k=>t(39,Q=k)),w(e,oo,k=>t(40,V=k)),w(e,ro,k=>t(41,ne=k)),w(e,no,k=>t(42,X=k)),w(e,to,k=>t(43,de=k)),w(e,eo,k=>t(44,ge=k)),w(e,Qr,k=>t(45,We=k)),w(e,Xo,k=>t(3,Te=k)),w(e,qo,k=>t(46,ze=k)),w(e,Zr,k=>t(47,ut=k)),w(e,Wn,k=>t(48,_e=k)),w(e,pr,k=>t(49,be=k)),w(e,gr,k=>t(50,Ue=k)),w(e,Kr,k=>t(51,et=k)),w(e,mr,k=>t(52,Me=k)),w(e,wn,k=>t(53,$e=k)),w(e,Yn,k=>t(54,ae=k)),w(e,Go,k=>t(55,Ye=k)),w(e,Yt,k=>t(56,Ge=k)),w(e,dr,k=>t(57,Oe=k));let{isQuickSwitch:Xe=!1}=n;function ft(){return{theme$:Oe,replacements$:Ge,windowTitle$:Ye,websocketUrl$:ae,secondaryWebsocketUrl$:$e,fontSize$:Me,onlineFont$:et,preventLastDuplicate$:Ue,maxLines$:be,afkTimer$:_e,adjustTimerOnAfk$:ut,enableExternalClipboardMonitor$:ze,showPresetQuickSwitch$:Te,skipResetConfirmations$:s,persistStats$:We,persistNotes$:ge,persistLines$:de,persistActionHistory$:X,enablePaste$:ne,blockCopyOnPage$:V,allowPasteDuringPause$:Q,allowNewLineDuringPause$:H,autoStartTimerDuringPausePaste$:Z,autoStartTimerDuringPause$:Y,preventGlobalDuplicate$:z,mergeEqualLineStarts$:L,flashOnMissedLine$:A,displayVertical$:U,reverseLineOrder$:G,preserveWhitespace$:q,removeAllWhitespace$:$,showTimer$:P,showSpeed$:T,showCharacterCount$:D,showLineCount$:I,blurStats$:S,enableLineAnimation$:v,enableAfkBlur$:g,enableAfkBlurRestart$:d,continuousReconnect$:l,showConnectionErrors$:p,customCSS$:h}}function Fe(k,ie=!0){dr.next(k.settings.theme$??E.theme$),Yt.next(k.settings.replacements$??E.replacements$),Go.next(k.settings.windowTitle$??E.windowTitle$),Yn.next(k.settings.websocketUrl$??E.websocketUrl$),wn.next(k.settings.secondaryWebsocketUrl$??""),mr.next(k.settings.fontSize$??E.fontSize$),Kr.next(k.settings.onlineFont$??E.onlineFont$),gr.next(k.settings.preventLastDuplicate$??E.preventLastDuplicate$),pr.next(k.settings.maxLines$??E.maxLines$),Wn.next(k.settings.afkTimer$??E.afkTimer$),Zr.next(k.settings.adjustTimerOnAfk$??E.adjustTimerOnAfk$),qo.next(k.settings.enableExternalClipboardMonitor$??E.enableExternalClipboardMonitor$),Xo.next(k.settings.showPresetQuickSwitch$??E.showPresetQuickSwitch$),Jr.next(k.settings.skipResetConfirmations$??E.skipResetConfirmations$),Qr.next(k.settings.persistStats$??E.persistStats$),eo.next(k.settings.persistNotes$??E.persistNotes$),to.next(k.settings.persistLines$??E.persistLines$),no.next(k.settings.persistActionHistory$??E.persistActionHistory$),ro.next(k.settings.enablePaste$??E.enablePaste$),oo.next(k.settings.blockCopyOnPage$??E.blockCopyOnPage$),io.next(k.settings.allowPasteDuringPause$??E.allowPasteDuringPause$),lo.next(k.settings.allowNewLineDuringPause$??E.allowNewLineDuringPause$),so.next(k.settings.autoStartTimerDuringPausePaste$??E.autoStartTimerDuringPausePaste$),ao.next(k.settings.autoStartTimerDuringPause$??E.autoStartTimerDuringPause$),_r.next(k.settings.preventGlobalDuplicate$??E.preventGlobalDuplicate$),co.next(k.settings.mergeEqualLineStarts$??E.mergeEqualLineStarts$),uo.next(k.settings.flashOnMissedLine$??E.flashOnMissedLine$),yr.next(k.settings.displayVertical$??E.displayVertical$),wr.next(k.settings.reverseLineOrder$??E.reverseLineOrder$),fo.next(k.settings.preserveWhitespace$??E.preserveWhitespace$),ho.next(k.settings.removeAllWhitespace$??E.removeAllWhitespace$),po.next(k.settings.showTimer$??E.showTimer$),mo.next(k.settings.showSpeed$??E.showSpeed$),go.next(k.settings.showCharacterCount$??E.showCharacterCount$),bo.next(k.settings.showLineCount$??E.showLineCount$),vo.next(k.settings.blurStats$??E.blurStats$),_o.next(k.settings.enableLineAnimation$??E.enableLineAnimation$),yo.next(k.settings.enableAfkBlur$??E.enableAfkBlur$),wo.next(k.settings.enableAfkBlurRestart$??E.enableAfkBlurRestart$),kr.next(k.settings.continuousReconnect$??E.continuousReconnect$),ko.next(k.settings.showConnectionErrors$??E.showConnectionErrors$),Ko.next(k.settings.customCSS$??E.customCSS$),ie&&R(Un,r=k.name,r),Wo().then(()=>{Ke("layoutChange"),c!==1&&l&&Il.next(),a!==1&&l&&$l.next()})}const Se=[{name:""}],Ke=Eo();function wt(k){const ie=k.target;ve(ie.selectedOptions[0].value)}function ve(k){const ie=o.find(qe=>qe.name===k);ie&&Fe(ie)}async function Pe(){const{canceled:k,data:ie}=await new Promise(ot=>{R(He,i={icon:Bt,askForData:"text",dataValue:r||"Preset Name",message:"",callback:ot},i)});if(k||!ie)return;const qe=o.findIndex(ot=>ot.name===ie),Re={name:ie,settings:ft()};qe>-1?R(on,o[qe]=Re,o):R(on,o=[...o,Re],o),R(Un,r=ie,r)}async function ye(){if(!s){const{canceled:k}=await new Promise(ie=>{R(He,i={icon:Bt,message:"Preset will be deleted",callback:ie},i)});if(k)return}R(on,o=o.filter(k=>k.name!==r),o),R(Un,r="",r)}const Et=k=>Ke("exportImportPreset",k),Ne=()=>ve(r);return e.$$set=k=>{"isQuickSwitch"in k&&t(0,Xe=k.isQuickSwitch)},[Xe,r,o,Te,Se,Ke,wt,ve,Pe,ye,ft,Fe,Et,Ne]}class Kc extends Tt{constructor(n){super(),Dt(this,n,Hh,Rh,gt,{isQuickSwitch:0,getCurrentSettings:10,updateSettingsWithPreset:11},null,[-1,-1,-1])}get getCurrentSettings(){return this.$$.ctx[10]}get updateSettingsWithPreset(){return this.$$.ctx[11]}}function Vh(e,n){const t=r=>{!r.defaultPrevented&&!e.contains(r.target)&&n(r)};return document.addEventListener("click",t,!0),{destroy(){document.removeEventListener("click",t,!0)}}}function $a(e,n,t){const r=e.slice();return r[22]=n[t],r}function Ma(e){let n,t,r,o,i;return t=new we({props:{path:Bu}}),{c(){n=b("button"),se(t.$$.fragment),f(n,"title","Save"),f(n,"class","hover:text-primary")},m(s,l){j(s,n,l),re(t,n,null),r=!0,o||(i=x(n,"click",e[10]),o=!0)},p:xe,i(s){r||(M(t.$$.fragment,s),r=!0)},o(s){W(t.$$.fragment,s),r=!1},d(s){s&&F(n),oe(t),o=!1,i()}}}function Na(e,n){let t,r,o,i=n[22].label+"",s,l,a,c;return{key:e,first:null,c(){t=b("label"),r=b("input"),o=_(),s=at(i),l=_(),f(r,"type","checkbox"),r.__value=n[22].value,r.value=r.__value,n[18][0].push(r),this.first=t},m(h,p){j(h,t,p),u(t,r),r.checked=~n[0].flags.indexOf(r.__value),u(t,o),u(t,s),u(t,l),a||(c=[x(r,"change",n[17]),x(r,"change",n[9])],a=!0)},p(h,p){n=h,p&1&&(r.checked=~n[0].flags.indexOf(r.__value))},d(h){h&&F(t),n[18][0].splice(n[18][0].indexOf(r),1),a=!1,Ct(c)}}}function Fh(e){let n=(e[5]??"")+"",t,r,o,i,s,l,a,c,h,p,d,g,v,S,I,D,T=[],P=new Map,$,q,G,U,A=(e[4]||e[3])+"",L,z,Y,Z=e[0].pattern&&Ma(e);l=new we({props:{path:_c}}),h=new we({props:{path:Wu}});let H=e[7];const Q=V=>V[22].value;for(let V=0;V<H.length;V+=1){let ne=$a(e,H,V),X=Q(ne);P.set(X,T[V]=Na(X,ne))}return{c(){t=at(n),r=_(),o=b("div"),Z&&Z.c(),i=_(),s=b("button"),se(l.$$.fragment),a=_(),c=b("button"),se(h.$$.fragment),p=_(),d=b("div"),g=b("input"),v=_(),S=b("input"),I=_(),D=b("div");for(let V=0;V<T.length;V+=1)T[V].c();$=_(),q=b("textarea"),G=_(),U=b("div"),f(s,"title","Cancel"),f(s,"class","ml-2 hover:text-primary"),f(c,"title","Cancel"),f(c,"class","ml-2 hover:text-primary"),f(o,"class","flex justify-end my-2"),f(g,"placeholder","text pattern"),f(g,"class","w-full my-2"),f(S,"placeholder","replacement pattern"),f(S,"class","w-full my-2"),f(D,"class","flex justify-between my-4"),f(q,"name","test-value"),f(q,"placeholder","test value"),f(q,"class","w-full my-4"),f(q,"rows","3"),f(U,"class","whitespace-pre-wrap break-all")},m(V,ne){j(V,t,ne),j(V,r,ne),j(V,o,ne),Z&&Z.m(o,null),u(o,i),u(o,s),re(l,s,null),u(o,a),u(o,c),re(h,c,null),j(V,p,ne),j(V,d,ne),u(d,g),_t(g,e[0].pattern),e[15](g),u(d,v),u(d,S),_t(S,e[0].replaces),u(d,I),u(d,D);for(let X=0;X<T.length;X+=1)T[X].m(D,null);u(d,$),u(d,q),_t(q,e[2]),u(d,G),u(d,U),U.innerHTML=A,L=!0,z||(Y=[x(s,"click",e[12]),x(c,"click",e[13]),x(g,"input",e[14]),x(g,"input",e[9]),x(S,"input",e[16]),x(S,"input",e[9]),x(q,"input",e[19]),x(q,"input",e[9])],z=!0)},p(V,[ne]){(!L||ne&32)&&n!==(n=(V[5]??"")+"")&&At(t,n),V[0].pattern?Z?(Z.p(V,ne),ne&1&&M(Z,1)):(Z=Ma(V),Z.c(),M(Z,1),Z.m(o,i)):Z&&(dt(),W(Z,1,1,()=>{Z=null}),mt()),ne&1&&g.value!==V[0].pattern&&_t(g,V[0].pattern),ne&1&&S.value!==V[0].replaces&&_t(S,V[0].replaces),ne&641&&(H=V[7],T=Lo(T,ne,Q,1,V,H,P,D,Ll,Na,null,$a)),ne&4&&_t(q,V[2]),(!L||ne&24)&&A!==(A=(V[4]||V[3])+"")&&(U.innerHTML=A)},i(V){L||(M(Z),M(l.$$.fragment,V),M(h.$$.fragment,V),L=!0)},o(V){W(Z),W(l.$$.fragment,V),W(h.$$.fragment,V),L=!1},d(V){V&&F(t),V&&F(r),V&&F(o),Z&&Z.d(),oe(l),oe(h),V&&F(p),V&&F(d),e[15](null);for(let ne=0;ne<T.length;ne+=1)T[ne].d();z=!1,Ct(Y)}}}function jh(e,n,t){let r,o;w(e,Yt,L=>t(20,r=L));let{currentReplacement:i}=n;const s=Eo(),l=new xo,a=i?JSON.parse(JSON.stringify(i)):{pattern:"",replaces:"",flags:[],enabled:!0},c=[{label:"global",value:"g"},{label:"multiline",value:"m"},{label:"insensitive",value:"i"},{label:"unicode",value:"u"}],h=l.pipe(ws(500),Mn(()=>{try{if(t(4,v=""),!a.pattern||!d)return;t(3,g=qc(d,[a]))}catch({message:L}){t(4,v=`Error: ${L}`)}}),Rn());w(e,h,L=>t(5,o=L));let p,d="",g="",v="";function S(){p.setCustomValidity(v),l.next()}function I(){if(!i&&r.find(L=>L.pattern===a.pattern))return p.setCustomValidity("This pattern already exists"),p.reportValidity();i?R(Yt,r=r.map(L=>L.pattern===i.pattern?a:L),r):R(Yt,r=[...r,a],r),s("close")}const D=[[]],T=()=>s("close"),P=()=>window.open("https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#description","_blank");function $(){a.pattern=this.value,t(0,a)}function q(L){ct[L?"unshift":"push"](()=>{p=L,t(1,p)})}function G(){a.replaces=this.value,t(0,a)}function U(){a.flags=Cu(D[0],this.__value,this.checked),t(0,a)}function A(){d=this.value,t(2,d)}return e.$$set=L=>{"currentReplacement"in L&&t(11,i=L.currentReplacement)},[a,p,d,g,v,o,s,c,h,S,I,i,T,P,$,q,G,U,D,A]}class Uh extends Tt{constructor(n){super(),Dt(this,n,jh,Fh,gt,{currentReplacement:11})}}function Ra(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,r)}return t}function an(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?Ra(Object(t),!0).forEach(function(r){Bh(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ra(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function ll(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ll=function(n){return typeof n}:ll=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ll(e)}function Bh(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function cn(){return cn=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},cn.apply(this,arguments)}function Wh(e,n){if(e==null)return{};var t={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(n.indexOf(o)>=0)&&(t[o]=e[o]);return t}function zh(e,n){if(e==null)return{};var t=Wh(e,n),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(n.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(t[r]=e[r])}return t}var Yh="1.15.2";function kn(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var En=kn(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),ni=kn(/Edge/i),Ha=kn(/firefox/i),Ro=kn(/safari/i)&&!kn(/chrome/i)&&!kn(/android/i),Zc=kn(/iP(ad|od|hone)/i),Jc=kn(/chrome/i)&&kn(/android/i),Qc={capture:!1,passive:!1};function Ee(e,n,t){e.addEventListener(n,t,!En&&Qc)}function ke(e,n,t){e.removeEventListener(n,t,!En&&Qc)}function _l(e,n){if(n){if(n[0]===">"&&(n=n.substring(1)),e)try{if(e.matches)return e.matches(n);if(e.msMatchesSelector)return e.msMatchesSelector(n);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(n)}catch{return!1}return!1}}function Gh(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Jt(e,n,t,r){if(e){t=t||document;do{if(n!=null&&(n[0]===">"?e.parentNode===t&&_l(e,n):_l(e,n))||r&&e===t)return e;if(e===t)break}while(e=Gh(e))}return null}var Va=/\s+/g;function vt(e,n,t){if(e&&n)if(e.classList)e.classList[t?"add":"remove"](n);else{var r=(" "+e.className+" ").replace(Va," ").replace(" "+n+" "," ");e.className=(r+(t?" "+n:"")).replace(Va," ")}}function ue(e,n,t){var r=e&&e.style;if(r){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(t=e.currentStyle),n===void 0?t:t[n];!(n in r)&&n.indexOf("webkit")===-1&&(n="-webkit-"+n),r[n]=t+(typeof t=="string"?"":"px")}}function Gr(e,n){var t="";if(typeof e=="string")t=e;else do{var r=ue(e,"transform");r&&r!=="none"&&(t=r+" "+t)}while(!n&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(t)}function eu(e,n,t){if(e){var r=e.getElementsByTagName(n),o=0,i=r.length;if(t)for(;o<i;o++)t(r[o],o);return r}return[]}function sn(){var e=document.scrollingElement;return e||document.documentElement}function Qe(e,n,t,r,o){if(!(!e.getBoundingClientRect&&e!==window)){var i,s,l,a,c,h,p;if(e!==window&&e.parentNode&&e!==sn()?(i=e.getBoundingClientRect(),s=i.top,l=i.left,a=i.bottom,c=i.right,h=i.height,p=i.width):(s=0,l=0,a=window.innerHeight,c=window.innerWidth,h=window.innerHeight,p=window.innerWidth),(n||t)&&e!==window&&(o=o||e.parentNode,!En))do if(o&&o.getBoundingClientRect&&(ue(o,"transform")!=="none"||t&&ue(o,"position")!=="static")){var d=o.getBoundingClientRect();s-=d.top+parseInt(ue(o,"border-top-width")),l-=d.left+parseInt(ue(o,"border-left-width")),a=s+i.height,c=l+i.width;break}while(o=o.parentNode);if(r&&e!==window){var g=Gr(o||e),v=g&&g.a,S=g&&g.d;g&&(s/=S,l/=v,p/=v,h/=S,a=s+h,c=l+p)}return{top:s,left:l,bottom:a,right:c,width:p,height:h}}}function Fa(e,n,t){for(var r=Bn(e,!0),o=Qe(e)[n];r;){var i=Qe(r)[t],s=void 0;if(t==="top"||t==="left"?s=o>=i:s=o<=i,!s)return r;if(r===sn())break;r=Bn(r,!1)}return!1}function Co(e,n,t,r){for(var o=0,i=0,s=e.children;i<s.length;){if(s[i].style.display!=="none"&&s[i]!==le.ghost&&(r||s[i]!==le.dragged)&&Jt(s[i],t.draggable,e,!1)){if(o===n)return s[i];o++}i++}return null}function Ls(e,n){for(var t=e.lastElementChild;t&&(t===le.ghost||ue(t,"display")==="none"||n&&!_l(t,n));)t=t.previousElementSibling;return t||null}function xt(e,n){var t=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==le.clone&&(!n||_l(e,n))&&t++;return t}function ja(e){var n=0,t=0,r=sn();if(e)do{var o=Gr(e),i=o.a,s=o.d;n+=e.scrollLeft*i,t+=e.scrollTop*s}while(e!==r&&(e=e.parentNode));return[n,t]}function qh(e,n){for(var t in e)if(e.hasOwnProperty(t)){for(var r in n)if(n.hasOwnProperty(r)&&n[r]===e[t][r])return Number(t)}return-1}function Bn(e,n){if(!e||!e.getBoundingClientRect)return sn();var t=e,r=!1;do if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var o=ue(t);if(t.clientWidth<t.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||t.clientHeight<t.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!t.getBoundingClientRect||t===document.body)return sn();if(r||n)return t;r=!0}}while(t=t.parentNode);return sn()}function Xh(e,n){if(e&&n)for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}function Ul(e,n){return Math.round(e.top)===Math.round(n.top)&&Math.round(e.left)===Math.round(n.left)&&Math.round(e.height)===Math.round(n.height)&&Math.round(e.width)===Math.round(n.width)}var Ho;function tu(e,n){return function(){if(!Ho){var t=arguments,r=this;t.length===1?e.call(r,t[0]):e.apply(r,t),Ho=setTimeout(function(){Ho=void 0},n)}}}function Kh(){clearTimeout(Ho),Ho=void 0}function nu(e,n,t){e.scrollLeft+=n,e.scrollTop+=t}function ru(e){var n=window.Polymer,t=window.jQuery||window.Zepto;return n&&n.dom?n.dom(e).cloneNode(!0):t?t(e).clone(!0)[0]:e.cloneNode(!0)}function ou(e,n,t){var r={};return Array.from(e.children).forEach(function(o){var i,s,l,a;if(!(!Jt(o,n.draggable,e,!1)||o.animated||o===t)){var c=Qe(o);r.left=Math.min((i=r.left)!==null&&i!==void 0?i:1/0,c.left),r.top=Math.min((s=r.top)!==null&&s!==void 0?s:1/0,c.top),r.right=Math.max((l=r.right)!==null&&l!==void 0?l:-1/0,c.right),r.bottom=Math.max((a=r.bottom)!==null&&a!==void 0?a:-1/0,c.bottom)}}),r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}var Vt="Sortable"+new Date().getTime();function Zh(){var e=[],n;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(o){if(!(ue(o,"display")==="none"||o===le.ghost)){e.push({target:o,rect:Qe(o)});var i=an({},e[e.length-1].rect);if(o.thisAnimationDuration){var s=Gr(o,!0);s&&(i.top-=s.f,i.left-=s.e)}o.fromRect=i}})}},addAnimationState:function(r){e.push(r)},removeAnimationState:function(r){e.splice(qh(e,{target:r}),1)},animateAll:function(r){var o=this;if(!this.options.animation){clearTimeout(n),typeof r=="function"&&r();return}var i=!1,s=0;e.forEach(function(l){var a=0,c=l.target,h=c.fromRect,p=Qe(c),d=c.prevFromRect,g=c.prevToRect,v=l.rect,S=Gr(c,!0);S&&(p.top-=S.f,p.left-=S.e),c.toRect=p,c.thisAnimationDuration&&Ul(d,p)&&!Ul(h,p)&&(v.top-p.top)/(v.left-p.left)===(h.top-p.top)/(h.left-p.left)&&(a=Qh(v,d,g,o.options)),Ul(p,h)||(c.prevFromRect=h,c.prevToRect=p,a||(a=o.options.animation),o.animate(c,v,p,a)),a&&(i=!0,s=Math.max(s,a),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},a),c.thisAnimationDuration=a)}),clearTimeout(n),i?n=setTimeout(function(){typeof r=="function"&&r()},s):typeof r=="function"&&r(),e=[]},animate:function(r,o,i,s){if(s){ue(r,"transition",""),ue(r,"transform","");var l=Gr(this.el),a=l&&l.a,c=l&&l.d,h=(o.left-i.left)/(a||1),p=(o.top-i.top)/(c||1);r.animatingX=!!h,r.animatingY=!!p,ue(r,"transform","translate3d("+h+"px,"+p+"px,0)"),this.forRepaintDummy=Jh(r),ue(r,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),ue(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){ue(r,"transition",""),ue(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},s)}}}}function Jh(e){return e.offsetWidth}function Qh(e,n,t,r){return Math.sqrt(Math.pow(n.top-e.top,2)+Math.pow(n.left-e.left,2))/Math.sqrt(Math.pow(n.top-t.top,2)+Math.pow(n.left-t.left,2))*r.animation}var jr=[],Bl={initializeByDefault:!0},ri={mount:function(n){for(var t in Bl)Bl.hasOwnProperty(t)&&!(t in n)&&(n[t]=Bl[t]);jr.forEach(function(r){if(r.pluginName===n.pluginName)throw"Sortable: Cannot mount plugin ".concat(n.pluginName," more than once")}),jr.push(n)},pluginEvent:function(n,t,r){var o=this;this.eventCanceled=!1,r.cancel=function(){o.eventCanceled=!0};var i=n+"Global";jr.forEach(function(s){t[s.pluginName]&&(t[s.pluginName][i]&&t[s.pluginName][i](an({sortable:t},r)),t.options[s.pluginName]&&t[s.pluginName][n]&&t[s.pluginName][n](an({sortable:t},r)))})},initializePlugins:function(n,t,r,o){jr.forEach(function(l){var a=l.pluginName;if(!(!n.options[a]&&!l.initializeByDefault)){var c=new l(n,t,n.options);c.sortable=n,c.options=n.options,n[a]=c,cn(r,c.defaults)}});for(var i in n.options)if(n.options.hasOwnProperty(i)){var s=this.modifyOption(n,i,n.options[i]);typeof s<"u"&&(n.options[i]=s)}},getEventProperties:function(n,t){var r={};return jr.forEach(function(o){typeof o.eventProperties=="function"&&cn(r,o.eventProperties.call(t[o.pluginName],n))}),r},modifyOption:function(n,t,r){var o;return jr.forEach(function(i){n[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[t]=="function"&&(o=i.optionListeners[t].call(n[i.pluginName],r))}),o}};function ep(e){var n=e.sortable,t=e.rootEl,r=e.name,o=e.targetEl,i=e.cloneEl,s=e.toEl,l=e.fromEl,a=e.oldIndex,c=e.newIndex,h=e.oldDraggableIndex,p=e.newDraggableIndex,d=e.originalEvent,g=e.putSortable,v=e.extraEventProperties;if(n=n||t&&t[Vt],!!n){var S,I=n.options,D="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!En&&!ni?S=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(S=document.createEvent("Event"),S.initEvent(r,!0,!0)),S.to=s||t,S.from=l||t,S.item=o||t,S.clone=i,S.oldIndex=a,S.newIndex=c,S.oldDraggableIndex=h,S.newDraggableIndex=p,S.originalEvent=d,S.pullMode=g?g.lastPutMode:void 0;var T=an(an({},v),ri.getEventProperties(r,n));for(var P in T)S[P]=T[P];t&&t.dispatchEvent(S),I[D]&&I[D].call(n,S)}}var tp=["evt"],Lt=function(n,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r.evt,i=zh(r,tp);ri.pluginEvent.bind(le)(n,t,an({dragEl:B,parentEl:Be,ghostEl:he,rootEl:Ve,nextEl:fr,lastDownEl:sl,cloneEl:je,cloneHidden:Hn,dragStarted:Oo,putSortable:pt,activeSortable:le.active,originalEvent:o,oldIndex:Wr,oldDraggableIndex:Vo,newIndex:Ht,newDraggableIndex:$n,hideGhostForTarget:au,unhideGhostForTarget:cu,cloneNowHidden:function(){Hn=!0},cloneNowShown:function(){Hn=!1},dispatchSortableEvent:function(l){St({sortable:t,name:l,originalEvent:o})}},i))};function St(e){ep(an({putSortable:pt,cloneEl:je,targetEl:B,rootEl:Ve,oldIndex:Wr,oldDraggableIndex:Vo,newIndex:Ht,newDraggableIndex:$n},e))}var B,Be,he,Ve,fr,sl,je,Hn,Wr,Ht,Vo,$n,Ji,pt,Br=!1,yl=!1,wl=[],cr,Zt,Wl,zl,Ua,Ba,Oo,Ur,Fo,jo=!1,Qi=!1,al,bt,Yl=[],cs=!1,kl=[],Ml=typeof document<"u",el=Zc,Wa=ni||En?"cssFloat":"float",np=Ml&&!Jc&&!Zc&&"draggable"in document.createElement("div"),iu=function(){if(Ml){if(En)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),lu=function(n,t){var r=ue(n),o=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),i=Co(n,0,t),s=Co(n,1,t),l=i&&ue(i),a=s&&ue(s),c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Qe(i).width,h=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Qe(s).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&l.float&&l.float!=="none"){var p=l.float==="left"?"left":"right";return s&&(a.clear==="both"||a.clear===p)?"vertical":"horizontal"}return i&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||c>=o&&r[Wa]==="none"||s&&r[Wa]==="none"&&c+h>o)?"vertical":"horizontal"},rp=function(n,t,r){var o=r?n.left:n.top,i=r?n.right:n.bottom,s=r?n.width:n.height,l=r?t.left:t.top,a=r?t.right:t.bottom,c=r?t.width:t.height;return o===l||i===a||o+s/2===l+c/2},op=function(n,t){var r;return wl.some(function(o){var i=o[Vt].options.emptyInsertThreshold;if(!(!i||Ls(o))){var s=Qe(o),l=n>=s.left-i&&n<=s.right+i,a=t>=s.top-i&&t<=s.bottom+i;if(l&&a)return r=o}}),r},su=function(n){function t(i,s){return function(l,a,c,h){var p=l.options.group.name&&a.options.group.name&&l.options.group.name===a.options.group.name;if(i==null&&(s||p))return!0;if(i==null||i===!1)return!1;if(s&&i==="clone")return i;if(typeof i=="function")return t(i(l,a,c,h),s)(l,a,c,h);var d=(s?l:a).options.group.name;return i===!0||typeof i=="string"&&i===d||i.join&&i.indexOf(d)>-1}}var r={},o=n.group;(!o||ll(o)!="object")&&(o={name:o}),r.name=o.name,r.checkPull=t(o.pull,!0),r.checkPut=t(o.put),r.revertClone=o.revertClone,n.group=r},au=function(){!iu&&he&&ue(he,"display","none")},cu=function(){!iu&&he&&ue(he,"display","")};Ml&&!Jc&&document.addEventListener("click",function(e){if(yl)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),yl=!1,!1},!0);var ur=function(n){if(B){n=n.touches?n.touches[0]:n;var t=op(n.clientX,n.clientY);if(t){var r={};for(var o in n)n.hasOwnProperty(o)&&(r[o]=n[o]);r.target=r.rootEl=t,r.preventDefault=void 0,r.stopPropagation=void 0,t[Vt]._onDragOver(r)}}},ip=function(n){B&&B.parentNode[Vt]._isOutsideThisEl(n.target)};function le(e,n){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=n=cn({},n),e[Vt]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return lu(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,l){s.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:le.supportPointer!==!1&&"PointerEvent"in window&&!Ro,emptyInsertThreshold:5};ri.initializePlugins(this,e,t);for(var r in t)!(r in n)&&(n[r]=t[r]);su(n);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=n.forceFallback?!1:np,this.nativeDraggable&&(this.options.touchStartThreshold=1),n.supportPointer?Ee(e,"pointerdown",this._onTapStart):(Ee(e,"mousedown",this._onTapStart),Ee(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Ee(e,"dragover",this),Ee(e,"dragenter",this)),wl.push(this.el),n.store&&n.store.get&&this.sort(n.store.get(this)||[]),cn(this,Zh())}le.prototype={constructor:le,_isOutsideThisEl:function(n){!this.el.contains(n)&&n!==this.el&&(Ur=null)},_getDirection:function(n,t){return typeof this.options.direction=="function"?this.options.direction.call(this,n,t,B):this.options.direction},_onTapStart:function(n){if(n.cancelable){var t=this,r=this.el,o=this.options,i=o.preventOnFilter,s=n.type,l=n.touches&&n.touches[0]||n.pointerType&&n.pointerType==="touch"&&n,a=(l||n).target,c=n.target.shadowRoot&&(n.path&&n.path[0]||n.composedPath&&n.composedPath()[0])||a,h=o.filter;if(pp(r),!B&&!(/mousedown|pointerdown/.test(s)&&n.button!==0||o.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&Ro&&a&&a.tagName.toUpperCase()==="SELECT")&&(a=Jt(a,o.draggable,r,!1),!(a&&a.animated)&&sl!==a)){if(Wr=xt(a),Vo=xt(a,o.draggable),typeof h=="function"){if(h.call(this,n,a,this)){St({sortable:t,rootEl:c,name:"filter",targetEl:a,toEl:r,fromEl:r}),Lt("filter",t,{evt:n}),i&&n.cancelable&&n.preventDefault();return}}else if(h&&(h=h.split(",").some(function(p){if(p=Jt(c,p.trim(),r,!1),p)return St({sortable:t,rootEl:p,name:"filter",targetEl:a,fromEl:r,toEl:r}),Lt("filter",t,{evt:n}),!0}),h)){i&&n.cancelable&&n.preventDefault();return}o.handle&&!Jt(c,o.handle,r,!1)||this._prepareDragStart(n,l,a)}}},_prepareDragStart:function(n,t,r){var o=this,i=o.el,s=o.options,l=i.ownerDocument,a;if(r&&!B&&r.parentNode===i){var c=Qe(r);if(Ve=i,B=r,Be=B.parentNode,fr=B.nextSibling,sl=r,Ji=s.group,le.dragged=B,cr={target:B,clientX:(t||n).clientX,clientY:(t||n).clientY},Ua=cr.clientX-c.left,Ba=cr.clientY-c.top,this._lastX=(t||n).clientX,this._lastY=(t||n).clientY,B.style["will-change"]="all",a=function(){if(Lt("delayEnded",o,{evt:n}),le.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!Ha&&o.nativeDraggable&&(B.draggable=!0),o._triggerDragStart(n,t),St({sortable:o,name:"choose",originalEvent:n}),vt(B,s.chosenClass,!0)},s.ignore.split(",").forEach(function(h){eu(B,h.trim(),Gl)}),Ee(l,"dragover",ur),Ee(l,"mousemove",ur),Ee(l,"touchmove",ur),Ee(l,"mouseup",o._onDrop),Ee(l,"touchend",o._onDrop),Ee(l,"touchcancel",o._onDrop),Ha&&this.nativeDraggable&&(this.options.touchStartThreshold=4,B.draggable=!0),Lt("delayStart",this,{evt:n}),s.delay&&(!s.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(ni||En))){if(le.eventCanceled){this._onDrop();return}Ee(l,"mouseup",o._disableDelayedDrag),Ee(l,"touchend",o._disableDelayedDrag),Ee(l,"touchcancel",o._disableDelayedDrag),Ee(l,"mousemove",o._delayedDragTouchMoveHandler),Ee(l,"touchmove",o._delayedDragTouchMoveHandler),s.supportPointer&&Ee(l,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(a,s.delay)}else a()}},_delayedDragTouchMoveHandler:function(n){var t=n.touches?n.touches[0]:n;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){B&&Gl(B),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var n=this.el.ownerDocument;ke(n,"mouseup",this._disableDelayedDrag),ke(n,"touchend",this._disableDelayedDrag),ke(n,"touchcancel",this._disableDelayedDrag),ke(n,"mousemove",this._delayedDragTouchMoveHandler),ke(n,"touchmove",this._delayedDragTouchMoveHandler),ke(n,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(n,t){t=t||n.pointerType=="touch"&&n,!this.nativeDraggable||t?this.options.supportPointer?Ee(document,"pointermove",this._onTouchMove):t?Ee(document,"touchmove",this._onTouchMove):Ee(document,"mousemove",this._onTouchMove):(Ee(B,"dragend",this),Ee(Ve,"dragstart",this._onDragStart));try{document.selection?cl(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(n,t){if(Br=!1,Ve&&B){Lt("dragStarted",this,{evt:t}),this.nativeDraggable&&Ee(document,"dragover",ip);var r=this.options;!n&&vt(B,r.dragClass,!1),vt(B,r.ghostClass,!0),le.active=this,n&&this._appendGhost(),St({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Zt){this._lastX=Zt.clientX,this._lastY=Zt.clientY,au();for(var n=document.elementFromPoint(Zt.clientX,Zt.clientY),t=n;n&&n.shadowRoot&&(n=n.shadowRoot.elementFromPoint(Zt.clientX,Zt.clientY),n!==t);)t=n;if(B.parentNode[Vt]._isOutsideThisEl(n),t)do{if(t[Vt]){var r=void 0;if(r=t[Vt]._onDragOver({clientX:Zt.clientX,clientY:Zt.clientY,target:n,rootEl:t}),r&&!this.options.dragoverBubble)break}n=t}while(t=t.parentNode);cu()}},_onTouchMove:function(n){if(cr){var t=this.options,r=t.fallbackTolerance,o=t.fallbackOffset,i=n.touches?n.touches[0]:n,s=he&&Gr(he,!0),l=he&&s&&s.a,a=he&&s&&s.d,c=el&&bt&&ja(bt),h=(i.clientX-cr.clientX+o.x)/(l||1)+(c?c[0]-Yl[0]:0)/(l||1),p=(i.clientY-cr.clientY+o.y)/(a||1)+(c?c[1]-Yl[1]:0)/(a||1);if(!le.active&&!Br){if(r&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<r)return;this._onDragStart(n,!0)}if(he){s?(s.e+=h-(Wl||0),s.f+=p-(zl||0)):s={a:1,b:0,c:0,d:1,e:h,f:p};var d="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");ue(he,"webkitTransform",d),ue(he,"mozTransform",d),ue(he,"msTransform",d),ue(he,"transform",d),Wl=h,zl=p,Zt=i}n.cancelable&&n.preventDefault()}},_appendGhost:function(){if(!he){var n=this.options.fallbackOnBody?document.body:Ve,t=Qe(B,!0,el,!0,n),r=this.options;if(el){for(bt=n;ue(bt,"position")==="static"&&ue(bt,"transform")==="none"&&bt!==document;)bt=bt.parentNode;bt!==document.body&&bt!==document.documentElement?(bt===document&&(bt=sn()),t.top+=bt.scrollTop,t.left+=bt.scrollLeft):bt=sn(),Yl=ja(bt)}he=B.cloneNode(!0),vt(he,r.ghostClass,!1),vt(he,r.fallbackClass,!0),vt(he,r.dragClass,!0),ue(he,"transition",""),ue(he,"transform",""),ue(he,"box-sizing","border-box"),ue(he,"margin",0),ue(he,"top",t.top),ue(he,"left",t.left),ue(he,"width",t.width),ue(he,"height",t.height),ue(he,"opacity","0.8"),ue(he,"position",el?"absolute":"fixed"),ue(he,"zIndex","100000"),ue(he,"pointerEvents","none"),le.ghost=he,n.appendChild(he),ue(he,"transform-origin",Ua/parseInt(he.style.width)*100+"% "+Ba/parseInt(he.style.height)*100+"%")}},_onDragStart:function(n,t){var r=this,o=n.dataTransfer,i=r.options;if(Lt("dragStart",this,{evt:n}),le.eventCanceled){this._onDrop();return}Lt("setupClone",this),le.eventCanceled||(je=ru(B),je.removeAttribute("id"),je.draggable=!1,je.style["will-change"]="",this._hideClone(),vt(je,this.options.chosenClass,!1),le.clone=je),r.cloneId=cl(function(){Lt("clone",r),!le.eventCanceled&&(r.options.removeCloneOnHide||Ve.insertBefore(je,B),r._hideClone(),St({sortable:r,name:"clone"}))}),!t&&vt(B,i.dragClass,!0),t?(yl=!0,r._loopId=setInterval(r._emulateDragOver,50)):(ke(document,"mouseup",r._onDrop),ke(document,"touchend",r._onDrop),ke(document,"touchcancel",r._onDrop),o&&(o.effectAllowed="move",i.setData&&i.setData.call(r,o,B)),Ee(document,"drop",r),ue(B,"transform","translateZ(0)")),Br=!0,r._dragStartId=cl(r._dragStarted.bind(r,t,n)),Ee(document,"selectstart",r),Oo=!0,Ro&&ue(document.body,"user-select","none")},_onDragOver:function(n){var t=this.el,r=n.target,o,i,s,l=this.options,a=l.group,c=le.active,h=Ji===a,p=l.sort,d=pt||c,g,v=this,S=!1;if(cs)return;function I(de,ge){Lt(de,v,an({evt:n,isOwner:h,axis:g?"vertical":"horizontal",revert:s,dragRect:o,targetRect:i,canSort:p,fromSortable:d,target:r,completed:T,onMove:function(Te,ze){return tl(Ve,t,B,o,Te,Qe(Te),n,ze)},changed:P},ge))}function D(){I("dragOverAnimationCapture"),v.captureAnimationState(),v!==d&&d.captureAnimationState()}function T(de){return I("dragOverCompleted",{insertion:de}),de&&(h?c._hideClone():c._showClone(v),v!==d&&(vt(B,pt?pt.options.ghostClass:c.options.ghostClass,!1),vt(B,l.ghostClass,!0)),pt!==v&&v!==le.active?pt=v:v===le.active&&pt&&(pt=null),d===v&&(v._ignoreWhileAnimating=r),v.animateAll(function(){I("dragOverAnimationComplete"),v._ignoreWhileAnimating=null}),v!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(r===B&&!B.animated||r===t&&!r.animated)&&(Ur=null),!l.dragoverBubble&&!n.rootEl&&r!==document&&(B.parentNode[Vt]._isOutsideThisEl(n.target),!de&&ur(n)),!l.dragoverBubble&&n.stopPropagation&&n.stopPropagation(),S=!0}function P(){Ht=xt(B),$n=xt(B,l.draggable),St({sortable:v,name:"change",toEl:t,newIndex:Ht,newDraggableIndex:$n,originalEvent:n})}if(n.preventDefault!==void 0&&n.cancelable&&n.preventDefault(),r=Jt(r,l.draggable,t,!0),I("dragOver"),le.eventCanceled)return S;if(B.contains(n.target)||r.animated&&r.animatingX&&r.animatingY||v._ignoreWhileAnimating===r)return T(!1);if(yl=!1,c&&!l.disabled&&(h?p||(s=Be!==Ve):pt===this||(this.lastPutMode=Ji.checkPull(this,c,B,n))&&a.checkPut(this,c,B,n))){if(g=this._getDirection(n,r)==="vertical",o=Qe(B),I("dragOverValid"),le.eventCanceled)return S;if(s)return Be=Ve,D(),this._hideClone(),I("revert"),le.eventCanceled||(fr?Ve.insertBefore(B,fr):Ve.appendChild(B)),T(!0);var $=Ls(t,l.draggable);if(!$||cp(n,g,this)&&!$.animated){if($===B)return T(!1);if($&&t===n.target&&(r=$),r&&(i=Qe(r)),tl(Ve,t,B,o,r,i,n,!!r)!==!1)return D(),$&&$.nextSibling?t.insertBefore(B,$.nextSibling):t.appendChild(B),Be=t,P(),T(!0)}else if($&&ap(n,g,this)){var q=Co(t,0,l,!0);if(q===B)return T(!1);if(r=q,i=Qe(r),tl(Ve,t,B,o,r,i,n,!1)!==!1)return D(),t.insertBefore(B,q),Be=t,P(),T(!0)}else if(r.parentNode===t){i=Qe(r);var G=0,U,A=B.parentNode!==t,L=!rp(B.animated&&B.toRect||o,r.animated&&r.toRect||i,g),z=g?"top":"left",Y=Fa(r,"top","top")||Fa(B,"top","top"),Z=Y?Y.scrollTop:void 0;Ur!==r&&(U=i[z],jo=!1,Qi=!L&&l.invertSwap||A),G=up(n,r,i,g,L?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,Qi,Ur===r);var H;if(G!==0){var Q=xt(B);do Q-=G,H=Be.children[Q];while(H&&(ue(H,"display")==="none"||H===he))}if(G===0||H===r)return T(!1);Ur=r,Fo=G;var V=r.nextElementSibling,ne=!1;ne=G===1;var X=tl(Ve,t,B,o,r,i,n,ne);if(X!==!1)return(X===1||X===-1)&&(ne=X===1),cs=!0,setTimeout(sp,30),D(),ne&&!V?t.appendChild(B):r.parentNode.insertBefore(B,ne?V:r),Y&&nu(Y,0,Z-Y.scrollTop),Be=B.parentNode,U!==void 0&&!Qi&&(al=Math.abs(U-Qe(r)[z])),P(),T(!0)}if(t.contains(B))return T(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){ke(document,"mousemove",this._onTouchMove),ke(document,"touchmove",this._onTouchMove),ke(document,"pointermove",this._onTouchMove),ke(document,"dragover",ur),ke(document,"mousemove",ur),ke(document,"touchmove",ur)},_offUpEvents:function(){var n=this.el.ownerDocument;ke(n,"mouseup",this._onDrop),ke(n,"touchend",this._onDrop),ke(n,"pointerup",this._onDrop),ke(n,"touchcancel",this._onDrop),ke(document,"selectstart",this)},_onDrop:function(n){var t=this.el,r=this.options;if(Ht=xt(B),$n=xt(B,r.draggable),Lt("drop",this,{evt:n}),Be=B&&B.parentNode,Ht=xt(B),$n=xt(B,r.draggable),le.eventCanceled){this._nulling();return}Br=!1,Qi=!1,jo=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),us(this.cloneId),us(this._dragStartId),this.nativeDraggable&&(ke(document,"drop",this),ke(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ro&&ue(document.body,"user-select",""),ue(B,"transform",""),n&&(Oo&&(n.cancelable&&n.preventDefault(),!r.dropBubble&&n.stopPropagation()),he&&he.parentNode&&he.parentNode.removeChild(he),(Ve===Be||pt&&pt.lastPutMode!=="clone")&&je&&je.parentNode&&je.parentNode.removeChild(je),B&&(this.nativeDraggable&&ke(B,"dragend",this),Gl(B),B.style["will-change"]="",Oo&&!Br&&vt(B,pt?pt.options.ghostClass:this.options.ghostClass,!1),vt(B,this.options.chosenClass,!1),St({sortable:this,name:"unchoose",toEl:Be,newIndex:null,newDraggableIndex:null,originalEvent:n}),Ve!==Be?(Ht>=0&&(St({rootEl:Be,name:"add",toEl:Be,fromEl:Ve,originalEvent:n}),St({sortable:this,name:"remove",toEl:Be,originalEvent:n}),St({rootEl:Be,name:"sort",toEl:Be,fromEl:Ve,originalEvent:n}),St({sortable:this,name:"sort",toEl:Be,originalEvent:n})),pt&&pt.save()):Ht!==Wr&&Ht>=0&&(St({sortable:this,name:"update",toEl:Be,originalEvent:n}),St({sortable:this,name:"sort",toEl:Be,originalEvent:n})),le.active&&((Ht==null||Ht===-1)&&(Ht=Wr,$n=Vo),St({sortable:this,name:"end",toEl:Be,originalEvent:n}),this.save()))),this._nulling()},_nulling:function(){Lt("nulling",this),Ve=B=Be=he=fr=je=sl=Hn=cr=Zt=Oo=Ht=$n=Wr=Vo=Ur=Fo=pt=Ji=le.dragged=le.ghost=le.clone=le.active=null,kl.forEach(function(n){n.checked=!0}),kl.length=Wl=zl=0},handleEvent:function(n){switch(n.type){case"drop":case"dragend":this._onDrop(n);break;case"dragenter":case"dragover":B&&(this._onDragOver(n),lp(n));break;case"selectstart":n.preventDefault();break}},toArray:function(){for(var n=[],t,r=this.el.children,o=0,i=r.length,s=this.options;o<i;o++)t=r[o],Jt(t,s.draggable,this.el,!1)&&n.push(t.getAttribute(s.dataIdAttr)||hp(t));return n},sort:function(n,t){var r={},o=this.el;this.toArray().forEach(function(i,s){var l=o.children[s];Jt(l,this.options.draggable,o,!1)&&(r[i]=l)},this),t&&this.captureAnimationState(),n.forEach(function(i){r[i]&&(o.removeChild(r[i]),o.appendChild(r[i]))}),t&&this.animateAll()},save:function(){var n=this.options.store;n&&n.set&&n.set(this)},closest:function(n,t){return Jt(n,t||this.options.draggable,this.el,!1)},option:function(n,t){var r=this.options;if(t===void 0)return r[n];var o=ri.modifyOption(this,n,t);typeof o<"u"?r[n]=o:r[n]=t,n==="group"&&su(r)},destroy:function(){Lt("destroy",this);var n=this.el;n[Vt]=null,ke(n,"mousedown",this._onTapStart),ke(n,"touchstart",this._onTapStart),ke(n,"pointerdown",this._onTapStart),this.nativeDraggable&&(ke(n,"dragover",this),ke(n,"dragenter",this)),Array.prototype.forEach.call(n.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),wl.splice(wl.indexOf(this.el),1),this.el=n=null},_hideClone:function(){if(!Hn){if(Lt("hideClone",this),le.eventCanceled)return;ue(je,"display","none"),this.options.removeCloneOnHide&&je.parentNode&&je.parentNode.removeChild(je),Hn=!0}},_showClone:function(n){if(n.lastPutMode!=="clone"){this._hideClone();return}if(Hn){if(Lt("showClone",this),le.eventCanceled)return;B.parentNode==Ve&&!this.options.group.revertClone?Ve.insertBefore(je,B):fr?Ve.insertBefore(je,fr):Ve.appendChild(je),this.options.group.revertClone&&this.animate(B,je),ue(je,"display",""),Hn=!1}}};function lp(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function tl(e,n,t,r,o,i,s,l){var a,c=e[Vt],h=c.options.onMove,p;return window.CustomEvent&&!En&&!ni?a=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(a=document.createEvent("Event"),a.initEvent("move",!0,!0)),a.to=n,a.from=e,a.dragged=t,a.draggedRect=r,a.related=o||n,a.relatedRect=i||Qe(n),a.willInsertAfter=l,a.originalEvent=s,e.dispatchEvent(a),h&&(p=h.call(c,a,s)),p}function Gl(e){e.draggable=!1}function sp(){cs=!1}function ap(e,n,t){var r=Qe(Co(t.el,0,t.options,!0)),o=ou(t.el,t.options,he),i=10;return n?e.clientX<o.left-i||e.clientY<r.top&&e.clientX<r.right:e.clientY<o.top-i||e.clientY<r.bottom&&e.clientX<r.left}function cp(e,n,t){var r=Qe(Ls(t.el,t.options.draggable)),o=ou(t.el,t.options,he),i=10;return n?e.clientX>o.right+i||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>o.bottom+i||e.clientX>r.right&&e.clientY>r.top}function up(e,n,t,r,o,i,s,l){var a=r?e.clientY:e.clientX,c=r?t.height:t.width,h=r?t.top:t.left,p=r?t.bottom:t.right,d=!1;if(!s){if(l&&al<c*o){if(!jo&&(Fo===1?a>h+c*i/2:a<p-c*i/2)&&(jo=!0),jo)d=!0;else if(Fo===1?a<h+al:a>p-al)return-Fo}else if(a>h+c*(1-o)/2&&a<p-c*(1-o)/2)return fp(n)}return d=d||s,d&&(a<h+c*i/2||a>p-c*i/2)?a>h+c/2?1:-1:0}function fp(e){return xt(B)<xt(e)?1:-1}function hp(e){for(var n=e.tagName+e.className+e.src+e.href+e.textContent,t=n.length,r=0;t--;)r+=n.charCodeAt(t);return r.toString(36)}function pp(e){kl.length=0;for(var n=e.getElementsByTagName("input"),t=n.length;t--;){var r=n[t];r.checked&&kl.push(r)}}function cl(e){return setTimeout(e,0)}function us(e){return clearTimeout(e)}Ml&&Ee(document,"touchmove",function(e){(le.active||Br)&&e.cancelable&&e.preventDefault()});le.utils={on:Ee,off:ke,css:ue,find:eu,is:function(n,t){return!!Jt(n,t,n,!1)},extend:Xh,throttle:tu,closest:Jt,toggleClass:vt,clone:ru,index:xt,nextTick:cl,cancelNextTick:us,detectDirection:lu,getChild:Co};le.get=function(e){return e[Vt]};le.mount=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];n[0].constructor===Array&&(n=n[0]),n.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(le.utils=an(an({},le.utils),r.utils)),ri.mount(r)})};le.create=function(e,n){return new le(e,n)};le.version=Yh;var Ze=[],Io,fs,hs=!1,ql,Xl,Sl,$o;function dp(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this))}return e.prototype={dragStarted:function(t){var r=t.originalEvent;this.sortable.nativeDraggable?Ee(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Ee(document,"pointermove",this._handleFallbackAutoScroll):r.touches?Ee(document,"touchmove",this._handleFallbackAutoScroll):Ee(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var r=t.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?ke(document,"dragover",this._handleAutoScroll):(ke(document,"pointermove",this._handleFallbackAutoScroll),ke(document,"touchmove",this._handleFallbackAutoScroll),ke(document,"mousemove",this._handleFallbackAutoScroll)),za(),ul(),Kh()},nulling:function(){Sl=fs=Io=hs=$o=ql=Xl=null,Ze.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,r){var o=this,i=(t.touches?t.touches[0]:t).clientX,s=(t.touches?t.touches[0]:t).clientY,l=document.elementFromPoint(i,s);if(Sl=t,r||this.options.forceAutoScrollFallback||ni||En||Ro){Kl(t,this.options,l,r);var a=Bn(l,!0);hs&&(!$o||i!==ql||s!==Xl)&&($o&&za(),$o=setInterval(function(){var c=Bn(document.elementFromPoint(i,s),!0);c!==a&&(a=c,ul()),Kl(t,o.options,c,r)},10),ql=i,Xl=s)}else{if(!this.options.bubbleScroll||Bn(l,!0)===sn()){ul();return}Kl(t,this.options,Bn(l,!1),!1)}}},cn(e,{pluginName:"scroll",initializeByDefault:!0})}function ul(){Ze.forEach(function(e){clearInterval(e.pid)}),Ze=[]}function za(){clearInterval($o)}var Kl=tu(function(e,n,t,r){if(n.scroll){var o=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,s=n.scrollSensitivity,l=n.scrollSpeed,a=sn(),c=!1,h;fs!==t&&(fs=t,ul(),Io=n.scroll,h=n.scrollFn,Io===!0&&(Io=Bn(t,!0)));var p=0,d=Io;do{var g=d,v=Qe(g),S=v.top,I=v.bottom,D=v.left,T=v.right,P=v.width,$=v.height,q=void 0,G=void 0,U=g.scrollWidth,A=g.scrollHeight,L=ue(g),z=g.scrollLeft,Y=g.scrollTop;g===a?(q=P<U&&(L.overflowX==="auto"||L.overflowX==="scroll"||L.overflowX==="visible"),G=$<A&&(L.overflowY==="auto"||L.overflowY==="scroll"||L.overflowY==="visible")):(q=P<U&&(L.overflowX==="auto"||L.overflowX==="scroll"),G=$<A&&(L.overflowY==="auto"||L.overflowY==="scroll"));var Z=q&&(Math.abs(T-o)<=s&&z+P<U)-(Math.abs(D-o)<=s&&!!z),H=G&&(Math.abs(I-i)<=s&&Y+$<A)-(Math.abs(S-i)<=s&&!!Y);if(!Ze[p])for(var Q=0;Q<=p;Q++)Ze[Q]||(Ze[Q]={});(Ze[p].vx!=Z||Ze[p].vy!=H||Ze[p].el!==g)&&(Ze[p].el=g,Ze[p].vx=Z,Ze[p].vy=H,clearInterval(Ze[p].pid),(Z!=0||H!=0)&&(c=!0,Ze[p].pid=setInterval(function(){r&&this.layer===0&&le.active._onTouchMove(Sl);var V=Ze[this.layer].vy?Ze[this.layer].vy*l:0,ne=Ze[this.layer].vx?Ze[this.layer].vx*l:0;typeof h=="function"&&h.call(le.dragged.parentNode[Vt],ne,V,e,Sl,Ze[this.layer].el)!=="continue"||nu(Ze[this.layer].el,ne,V)}.bind({layer:p}),24))),p++}while(n.bubbleScroll&&d!==a&&(d=Bn(d,!1)));hs=c}},30),uu=function(n){var t=n.originalEvent,r=n.putSortable,o=n.dragEl,i=n.activeSortable,s=n.dispatchSortableEvent,l=n.hideGhostForTarget,a=n.unhideGhostForTarget;if(t){var c=r||i;l();var h=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,p=document.elementFromPoint(h.clientX,h.clientY);a(),c&&!c.el.contains(p)&&(s("spill"),this.onSpill({dragEl:o,putSortable:r}))}};function xs(){}xs.prototype={startIndex:null,dragStart:function(n){var t=n.oldDraggableIndex;this.startIndex=t},onSpill:function(n){var t=n.dragEl,r=n.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var o=Co(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(t,o):this.sortable.el.appendChild(t),this.sortable.animateAll(),r&&r.animateAll()},drop:uu};cn(xs,{pluginName:"revertOnSpill"});function Ps(){}Ps.prototype={onSpill:function(n){var t=n.dragEl,r=n.putSortable,o=r||this.sortable;o.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),o.animateAll()},drop:uu};cn(Ps,{pluginName:"removeOnSpill"});var Ut;function mp(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(t){var r=t.dragEl;Ut=r},dragOverValid:function(t){var r=t.completed,o=t.target,i=t.onMove,s=t.activeSortable,l=t.changed,a=t.cancel;if(s.options.swap){var c=this.sortable.el,h=this.options;if(o&&o!==c){var p=Ut;i(o)!==!1?(vt(o,h.swapClass,!0),Ut=o):Ut=null,p&&p!==Ut&&vt(p,h.swapClass,!1)}l(),r(!0),a()}},drop:function(t){var r=t.activeSortable,o=t.putSortable,i=t.dragEl,s=o||this.sortable,l=this.options;Ut&&vt(Ut,l.swapClass,!1),Ut&&(l.swap||o&&o.options.swap)&&i!==Ut&&(s.captureAnimationState(),s!==r&&r.captureAnimationState(),gp(i,Ut),s.animateAll(),s!==r&&r.animateAll())},nulling:function(){Ut=null}},cn(e,{pluginName:"swap",eventProperties:function(){return{swapItem:Ut}}})}function gp(e,n){var t=e.parentNode,r=n.parentNode,o,i;!t||!r||t.isEqualNode(n)||r.isEqualNode(e)||(o=xt(e),i=xt(n),t.isEqualNode(r)&&o<i&&i++,t.insertBefore(n,t.children[o]),r.insertBefore(e,r.children[i]))}le.mount(new dp);le.mount(Ps,xs);function Ya(e,n,t){const r=e.slice();return r[22]=n[t],r[23]=n,r[24]=t,r}function Ga(e,n){let t,r,o=n[22].pattern+"",i,s,l,a,c,h,p,d,g,v,S,I,D,T,P;c=new we({props:{path:Gu,height:"1rem"}});function $(){return n[15](n[22])}d=new we({props:{path:kc,height:"1rem"}});function q(){return n[16](n[22])}function G(){n[17].call(v,n[23],n[24])}return{key:e,first:null,c(){t=b("div"),r=b("div"),i=at(o),s=_(),l=b("div"),a=b("button"),se(c.$$.fragment),h=_(),p=b("button"),se(d.$$.fragment),g=_(),v=b("input"),S=_(),f(r,"class","break-all"),f(a,"title","Edit"),f(a,"class","hover:text-primary"),f(p,"title","Remove"),f(p,"class","hover:text-primary"),f(v,"type","checkbox"),f(v,"class","ml-1"),f(l,"class","min-w-max ml-2"),f(t,"class","border my-2 p-2 flex items-center justify-between"),f(t,"data-id",I=n[22].pattern),this.first=t},m(U,A){j(U,t,A),u(t,r),u(r,i),u(t,s),u(t,l),u(l,a),re(c,a,null),u(l,h),u(l,p),re(d,p,null),u(l,g),u(l,v),v.checked=n[22].enabled,u(t,S),D=!0,T||(P=[x(a,"click",$),x(p,"click",q),x(v,"change",G),x(v,"change",n[6])],T=!0)},p(U,A){n=U,(!D||A&2)&&o!==(o=n[22].pattern+"")&&At(i,o),A&2&&(v.checked=n[22].enabled),(!D||A&2&&I!==(I=n[22].pattern))&&f(t,"data-id",I)},i(U){D||(M(c.$$.fragment,U),M(d.$$.fragment,U),D=!0)},o(U){W(c.$$.fragment,U),W(d.$$.fragment,U),D=!1},d(U){U&&F(t),oe(c),oe(d),T=!1,Ct(P)}}}function bp(e){let n,t,r,o,i,s,l,a,c,h,p,d,g,v,S,I,D,T,P=[],$=new Map,q,G,U;r=new we({props:{path:Uu}}),l=new we({props:{path:wc}}),h=new we({props:{path:Qu}}),g=new we({props:{path:Ju}}),I=new we({props:{path:kc}});let A=e[1];const L=z=>z[22].pattern;for(let z=0;z<A.length;z+=1){let Y=Ya(e,A,z),Z=L(Y);$.set(Z,P[z]=Ga(Z,Y))}return{c(){n=b("div"),t=b("button"),se(r.$$.fragment),i=_(),s=b("button"),se(l.$$.fragment),a=_(),c=b("button"),se(h.$$.fragment),p=_(),d=b("button"),se(g.$$.fragment),v=_(),S=b("button"),se(I.$$.fragment),D=_(),T=b("div");for(let z=0;z<P.length;z+=1)P[z].c();f(t,"title","Apply to current lines"),t.disabled=o=!e[2],te(t,"hover:text-primary",e[2]),te(t,"cursor-not-allowed",!e[2]),f(s,"title","Add replacement"),f(s,"class","ml-2 hover:text-primary"),f(c,"title","Enable all"),f(c,"class","ml-2 hover:text-primary"),f(d,"title","Disable all"),f(d,"class","ml-2 hover:text-primary"),f(S,"title","Remove all"),f(S,"class","ml-2 hover:text-primary"),f(n,"class","flex justify-end my-2"),f(T,"class","max-h-72 overflow-auto")},m(z,Y){j(z,n,Y),u(n,t),re(r,t,null),u(n,i),u(n,s),re(l,s,null),u(n,a),u(n,c),re(h,c,null),u(n,p),u(n,d),re(g,d,null),u(n,v),u(n,S),re(I,S,null),j(z,D,Y),j(z,T,Y);for(let Z=0;Z<P.length;Z+=1)P[Z].m(T,null);e[18](T),q=!0,G||(U=[x(t,"click",e[10]),x(s,"click",e[11]),x(c,"click",e[12]),x(d,"click",e[13]),x(S,"click",e[14])],G=!0)},p(z,[Y]){(!q||Y&4&&o!==(o=!z[2]))&&(t.disabled=o),(!q||Y&4)&&te(t,"hover:text-primary",z[2]),(!q||Y&4)&&te(t,"cursor-not-allowed",!z[2]),Y&218&&(A=z[1],dt(),P=Lo(P,Y,L,1,z,A,$,T,vc,Ga,null,Ya),mt())},i(z){if(!q){M(r.$$.fragment,z),M(l.$$.fragment,z),M(h.$$.fragment,z),M(g.$$.fragment,z),M(I.$$.fragment,z);for(let Y=0;Y<A.length;Y+=1)M(P[Y]);q=!0}},o(z){W(r.$$.fragment,z),W(l.$$.fragment,z),W(h.$$.fragment,z),W(g.$$.fragment,z),W(I.$$.fragment,z);for(let Y=0;Y<P.length;Y+=1)W(P[Y]);q=!1},d(z){z&&F(n),oe(r),oe(l),oe(h),oe(g),oe(I),z&&F(D),z&&F(T);for(let Y=0;Y<P.length;Y+=1)P[Y].d();e[18](null),G=!1,Ct(U)}}}function vp(e,n,t){let r,o,i,s;w(e,Yt,L=>t(3,o=L)),w(e,as,L=>t(8,i=L)),w(e,Je,L=>t(9,s=L));const l=Eo();let a,c,h=JSON.parse(JSON.stringify(o));El(()=>{try{le.mount(new mp)}catch{}return a=le.create(c,{swap:!0,swapClass:"swap",animation:150,store:{get:v,set:d}}),()=>a==null?void 0:a.destroy()});function p(L){const z=S();t(1,h=z.map(Y=>({...Y,enabled:L}))),R(Yt,o=h,o)}function d(){R(Yt,o=S(),o)}function g(L){t(1,h=L),R(Yt,o=L,o),a.sort(v(),!1)}function v(){return[...h.map(L=>L.pattern)]}function S(){const L=a.toArray();return h.slice().sort((z,Y)=>L.indexOf(z.pattern)-L.indexOf(Y.pattern))}const I=()=>l("applyReplacements"),D=()=>l("edit",void 0),T=()=>p(!0),P=()=>p(!1),$=()=>g([]),q=L=>l("edit",L),G=L=>g(o.filter(z=>z.pattern!==L.pattern));function U(L,z){L[z].enabled=this.checked,t(1,h)}function A(L){ct[L?"unshift":"push"](()=>{c=L,t(0,c)})}return e.$$.update=()=>{e.$$.dirty&768&&t(2,r=!!s.length&&!!i.length)},[c,h,r,o,l,p,d,g,i,s,I,D,T,P,$,q,G,U,A]}class _p extends Tt{constructor(n){super(),Dt(this,n,vp,bp,gt,{})}}function yp(e){let n,t,r,o,i,s,l,a;return r=new we({props:{path:wc}}),{c(){n=b("div"),t=b("button"),se(r.$$.fragment),o=_(),i=b("div"),i.textContent="You have currently no replacements configured",f(t,"title","Add replacement"),f(t,"class","ml-2 hover:text-primary"),f(n,"class","flex justify-end my-2")},m(c,h){j(c,n,h),u(n,t),re(r,t,null),j(c,o,h),j(c,i,h),s=!0,l||(a=x(t,"click",e[7]),l=!0)},p:xe,i(c){s||(M(r.$$.fragment,c),s=!0)},o(c){W(r.$$.fragment,c),s=!1},d(c){c&&F(n),oe(r),c&&F(o),c&&F(i),l=!1,a()}}}function wp(e){let n=e[0],t,r,o=qa(e);return{c(){o.c(),t=Gn()},m(i,s){o.m(i,s),j(i,t,s),r=!0},p(i,s){s&1&>(n,n=i[0])?(dt(),W(o,1,1,xe),mt(),o=qa(i),o.c(),M(o,1),o.m(t.parentNode,t)):o.p(i,s)},i(i){r||(M(o),r=!0)},o(i){W(o),r=!1},d(i){i&&F(t),o.d(i)}}}function kp(e){let n,t;return n=new Uh({props:{currentReplacement:e[2]}}),n.$on("close",e[4]),{c(){se(n.$$.fragment)},m(r,o){re(n,r,o),t=!0},p(r,o){const i={};o&4&&(i.currentReplacement=r[2]),n.$set(i)},i(r){t||(M(n.$$.fragment,r),t=!0)},o(r){W(n.$$.fragment,r),t=!1},d(r){oe(n,r)}}}function qa(e){let n,t;return n=new _p({}),n.$on("edit",e[5]),n.$on("applyReplacements",e[6]),{c(){se(n.$$.fragment)},m(r,o){re(n,r,o),t=!0},p:xe,i(r){t||(M(n.$$.fragment,r),t=!0)},o(r){W(n.$$.fragment,r),t=!1},d(r){oe(n,r)}}}function Sp(e){let n,t,r,o,i,s,l;const a=[kp,wp,yp],c=[];function h(p,d){return p[1]?0:p[3]?1:2}return i=h(e),s=c[i]=a[i](e),{c(){n=b("details"),t=b("summary"),t.textContent="Replacements",r=_(),o=b("div"),s.c(),f(o,"class","mb-8"),f(n,"class","col-span-4 mb-2 cursor-pointer max-w-lg")},m(p,d){j(p,n,d),u(n,t),u(n,r),u(n,o),c[i].m(o,null),l=!0},p(p,[d]){let g=i;i=h(p),i===g?c[i].p(p,d):(dt(),W(c[g],1,1,()=>{c[g]=null}),mt(),s=c[i],s?s.p(p,d):(s=c[i]=a[i](p),s.c()),M(s,1),s.m(o,null))},i(p){l||(M(s),l=!0)},o(p){W(s),l=!1},d(p){p&&F(n),c[i].d()}}}function Cp(e,n,t){let r,o;w(e,Yt,d=>t(0,o=d));let i=!1,s;function l(d){t(1,i=!1)}const a=()=>{t(1,i=!1),t(2,s=void 0)},c=({detail:d})=>{t(2,s=d),t(1,i=!0)};function h(d){Bo.call(this,e,d)}const p=()=>t(1,i=!0);return e.$$.update=()=>{e.$$.dirty&1&&t(3,r=!!o.length),e.$$.dirty&1&&l()},[o,i,s,r,a,c,h,p]}class Ep extends Tt{constructor(n){super(),Dt(this,n,Cp,Sp,gt,{})}}const{document:Xa}=bc;function Ka(e,n,t){const r=e.slice();return r[145]=n[t],r}function Za(e){let n,t,r,o,i,s,l,a,c,h,p,d,g,v,S,I,D,T,P,$,q,G,U,A,L,z,Y,Z,H,Q,V,ne,X,de,ge,We,Te,ze,ut,_e,be,Ue,et,Me,$e,ae,Ye,Ge,Oe,Xe,ft,Fe,Se,Ke,wt,ve,Pe,ye,Et,Ne,k,ie,qe,Re,ot,kt,Ot,it,It,Ie,C,N,ht,Ft,qt,lt,Xt,$t,Qt,Mt,Nt=[],Cr=new Map,Er,Ln,Lr,Rt,y,J,fe,pe,me,tt,Kt,jt,oi,xr,ii,fn,li,Pr,si,hn,ai,Ar,ci,pn,ui,Dr,fi,dn,hi,Tr,pi,en,di,Or,mi,tn,gi,Ir,bi,nn,vi,$r,_i,rn,yi,Mr,wi,mn,ki,Nr,Si,gn,Ci,Rr,Ei,bn,Li,Hr,xi,vn,Pi,Vr,Ai,_n,Di,m,K,ce,Ae,st,nt,rt,Xn,Ti,As,Kn,Ds,Oi,Ts,Zn,Os,Ii,Is,Jn,$s,$i,Ms,xn,Ns,Mi,Rs,Pn,Hs,Ni,Vs,Qn,Fs,Ri,js,An,Us,Hi,Bs,er,Ws,Vi,zs,tr,Ys,Fi,Gs,nr,qs,ji,Xs,rr,Ks,Ui,Zs,or,Js,Bi,Qs,ir,ea,Wi,ta,lr,na,zi,ra,sr,oa,Yi,ia,Dn,la,Gi,sa,ar,aa,Po,ca,Tn,On,Nl,ua;p=new we({props:{path:Zu}}),I=new we({props:{path:Ku}}),q=new we({props:{path:No}}),z=new we({props:{path:No}}),V=new we({props:{path:No}}),We=new we({props:{path:ts}}),be=new we({props:{path:ts}}),Xe=new we({props:{class:"swap-on",path:ef}}),Fe=new we({props:{class:"swap-off",path:tf}});let hu={};ye=new Kc({props:hu}),e[77](ye),ye.$on("layoutChange",e[78]),ye.$on("exportImportPreset",e[79]),Ne=new Ep({}),Ne.$on("applyReplacements",e[80]);let qi=e[50];const fa=O=>O[145];for(let O=0;O<qi.length;O+=1){let ee=Ka(e,qi,O),In=fa(ee);Cr.set(In,Nt[O]=Ja(In,ee))}return{c(){n=b("input"),t=_(),r=b("input"),o=_(),i=b("input"),s=_(),l=b("div"),a=b("div"),c=b("div"),h=b("div"),se(p.$$.fragment),d=_(),g=b("span"),g.textContent="Set Timer",v=_(),S=b("div"),se(I.$$.fragment),D=_(),T=b("span"),T.textContent="Reset Timer",P=_(),$=b("div"),se(q.$$.fragment),G=_(),U=b("span"),U.textContent="Reset Lines",A=_(),L=b("div"),se(z.$$.fragment),Y=_(),Z=b("span"),Z.textContent="Reset Data",H=_(),Q=b("div"),se(V.$$.fragment),ne=_(),X=b("span"),X.textContent="Reset All",de=_(),ge=b("div"),se(We.$$.fragment),Te=_(),ze=b("span"),ze.textContent="Ex-/Import Data",ut=_(),_e=b("div"),se(be.$$.fragment),Ue=_(),et=b("span"),et.textContent="Ex-/Import Settings",Me=_(),$e=b("div"),ae=b("label"),Ye=b("input"),Oe=_(),se(Xe.$$.fragment),ft=_(),se(Fe.$$.fragment),Se=_(),Ke=b("span"),Ke.textContent="Theme",wt=_(),ve=b("details"),ve.innerHTML=`<summary>Links</summary>
|
28
|
+
`;function vh(e){let n,t,r,i;return{c(){n=Ql("svg"),t=Ql("path"),f(t,"d",e[1]),Pt(n,"width",e[2]),Pt(n,"height",e[3]),f(n,"viewBox","0 0 24 24"),f(n,"fill","currentColor"),f(n,"class",e[4])},m(o,s){j(o,n,s),u(n,t),e[7](n),r||(i=[x(n,"click",e[5]),x(n,"keyup",e[6])],r=!0)},p(o,[s]){s&2&&f(t,"d",o[1]),s&4&&Pt(n,"width",o[2]),s&8&&Pt(n,"height",o[3]),s&16&&f(n,"class",o[4])},i:Le,o:Le,d(o){o&&F(n),e[7](null),r=!1,St(i)}}}function _h(e,n,t){let{path:r}=n,{width:i="1.5rem"}=n,{height:o="1.5rem"}=n,{element:s=void 0}=n,{class:l=""}=n;function a(p){Ui.call(this,e,p)}function c(p){Ui.call(this,e,p)}function h(p){at[p?"unshift":"push"](()=>{s=p,t(0,s)})}return e.$$set=p=>{"path"in p&&t(1,r=p.path),"width"in p&&t(2,i=p.width),"height"in p&&t(3,o=p.height),"element"in p&&t(0,s=p.element),"class"in p&&t(4,l=p.class)},[s,r,i,o,l,a,c,h]}class we extends Tt{constructor(n){super(),Dt(this,n,_h,vh,mt,{path:1,width:2,height:3,element:0,class:4})}}function ka(e){let n,t;return n=new we({props:{path:e[1]}}),{c(){se(n.$$.fragment)},m(r,i){re(n,r,i),t=!0},p(r,i){const o={};i&2&&(o.path=r[1]),n.$set(o)},i(r){t||(M(n.$$.fragment,r),t=!0)},o(r){W(n.$$.fragment,r),t=!1},d(r){ie(n,r)}}}function yh(e){let n;return{c(){n=st(e[2])},m(t,r){j(t,n,r)},p(t,r){r&4&&At(n,t[2])},d(t){t&&F(n)}}}function wh(e){let n,t=e[5]==="text"&&Sa(e);return{c(){n=b("div"),t&&t.c()},m(r,i){j(r,n,i),t&&t.m(n,null)},p(r,i){r[5]==="text"?t?t.p(r,i):(t=Sa(r),t.c(),t.m(n,null)):t&&(t.d(1),t=null)},d(r){r&&F(n),t&&t.d()}}}function Sa(e){let n,t,r;return{c(){n=b("input"),f(n,"type",e[5]),f(n,"class","input input-bordered h-8 ml-2"),n.value=e[0]},m(i,o){j(i,n,o),t||(r=x(n,"change",e[8]),t=!0)},p(i,o){o&32&&f(n,"type",i[5]),o&1&&n.value!==i[0]&&(n.value=i[0])},d(i){i&&F(n),t=!1,r()}}}function Ca(e){let n,t,r;return{c(){n=b("button"),n.textContent="Cancel",f(n,"class","btn btn-sm btn-ghost")},m(i,o){j(i,n,o),t||(r=x(n,"click",e[9]),t=!0)},p:Le,d(i){i&&F(n),t=!1,r()}}}function kh(e){let n,t,r,i,o,s,l,a,c,h,p,d,g=e[1]&&ka(e);function v(T,P){return T[5]?wh:yh}let S=v(e),$=S(e),D=e[4]&&Ca(e);return{c(){n=b("div"),t=b("div"),r=b("div"),g&&g.c(),i=_(),o=b("span"),$.c(),s=_(),l=b("div"),D&&D.c(),a=_(),c=b("button"),c.textContent="Confirm",f(c,"class","btn btn-sm btn-primary"),f(l,"class","flex-none"),f(t,"class","alert shadow-lg max-w-xl"),te(t,"alert-info",e[3]==="info"),te(t,"alert-error",e[3]==="error"),f(n,"class","fixed top-12 flex justify-center w-full z-30")},m(T,P){j(T,n,P),u(n,t),u(t,r),g&&g.m(r,null),u(r,i),u(r,o),$.m(o,null),u(t,s),u(t,l),D&&D.m(l,null),u(l,a),u(l,c),h=!0,p||(d=x(c,"click",e[10]),p=!0)},p(T,[P]){T[1]?g?(g.p(T,P),P&2&&M(g,1)):(g=ka(T),g.c(),M(g,1),g.m(r,i)):g&&(pt(),W(g,1,1,()=>{g=null}),dt()),S===(S=v(T))&&$?$.p(T,P):($.d(1),$=S(T),$&&($.c(),$.m(o,null))),T[4]?D?D.p(T,P):(D=Ca(T),D.c(),D.m(l,a)):D&&(D.d(1),D=null),(!h||P&8)&&te(t,"alert-info",T[3]==="info"),(!h||P&8)&&te(t,"alert-error",T[3]==="error")},i(T){h||(M(g),h=!0)},o(T){W(g),h=!1},d(T){T&&F(n),g&&g.d(),$.d(),D&&D.d(),p=!1,d()}}}function Sh(e,n,t){let{icon:r}=n,{message:i}=n,{type:o="info"}=n,{showCancel:s=!0}=n,{askForData:l=""}=n,{dataValue:a}=n,{callback:c}=n;const h=Ci();function p(v){const S=v.target;t(0,a=S.value)}const d=()=>{c==null||c({canceled:!0,data:a}),h("close")},g=()=>{c==null||c({canceled:!1,data:a}),h("close")};return e.$$set=v=>{"icon"in v&&t(1,r=v.icon),"message"in v&&t(2,i=v.message),"type"in v&&t(3,o=v.type),"showCancel"in v&&t(4,s=v.showCancel),"askForData"in v&&t(5,l=v.askForData),"dataValue"in v&&t(0,a=v.dataValue),"callback"in v&&t(6,c=v.callback)},[a,r,i,o,s,l,c,h,p,d,g]}class Ch extends Tt{constructor(n){super(),Dt(this,n,Sh,kh,mt,{icon:1,message:2,type:3,showCancel:4,askForData:5,dataValue:0,callback:6})}}function Ea(e){let n,t;const r=[e[0]];let i={};for(let o=0;o<r.length;o+=1)i=gu(i,r[o]);return n=new Ch({props:i}),n.$on("close",e[1]),{c(){se(n.$$.fragment)},m(o,s){re(n,o,s),t=!0},p(o,s){const l=s&1?$u(r,[Mu(o[0])]):{};n.$set(l)},i(o){t||(M(n.$$.fragment,o),t=!0)},o(o){W(n.$$.fragment,o),t=!1},d(o){ie(n,o)}}}function Eh(e){let n,t,r=e[0]&&Ea(e);return{c(){r&&r.c(),n=Gn()},m(i,o){r&&r.m(i,o),j(i,n,o),t=!0},p(i,[o]){i[0]?r?(r.p(i,o),o&1&&M(r,1)):(r=Ea(i),r.c(),M(r,1),r.m(n.parentNode,n)):r&&(pt(),W(r,1,1,()=>{r=null}),dt())},i(i){t||(M(r),t=!0)},o(i){W(r),t=!1},d(i){r&&r.d(i),i&&F(n)}}}function Lh(e,n,t){let r;w(e,_l,a=>t(2,r=a));let i,o=[];const s=Re.subscribe(a=>{!a||(a.message.includes("Lost Connection to")||a.message.includes("Unable to connect to"))&&((i==null?void 0:i.message)===a.message||o.find(c=>c.message===a.message))||(o.unshift(a),i||l())});function l(){t(0,i=o.pop()),R(_l,r=!!i,r)}return hc(()=>s==null?void 0:s.unsubscribe()),[i,l]}class xh extends Tt{constructor(n){super(),Dt(this,n,Lh,Eh,mt,{})}}function La(e){let n,t,r,i,o;return{c(){n=b("input"),f(n,"type","checkbox"),f(n,"class","multi-line-checkbox svelte-g45763"),f(n,"id",t="multi-line-checkbox-"+e[0].id),f(n,"aria-label",r=e[0].id)},m(s,l){j(s,n,l),i||(o=x(n,"change",e[13]),i=!0)},p(s,l){l&1&&t!==(t="multi-line-checkbox-"+s[0].id)&&f(n,"id",t),l&1&&r!==(r=s[0].id)&&f(n,"aria-label",r)},d(s){s&&F(n),i=!1,o()}}}function xa(e){let n,t,r,i,o,s;return{c(){n=b("div"),t=b("button"),t.textContent="📷",r=_(),i=b("button"),i.textContent="🔊",f(t,"title","Screenshot"),f(t,"tabindex","-1"),f(t,"class","svelte-g45763"),f(i,"title","Audio"),f(i,"tabindex","-1"),f(i,"class","svelte-g45763"),f(n,"class","textline-buttons svelte-g45763")},m(l,a){j(l,n,a),u(n,t),u(n,r),u(n,i),o||(s=[x(t,"click",e[15]),x(i,"click",e[16])],o=!0)},p:Le,d(l){l&&F(n),o=!1,St(s)}}}function Pa(e){let n,t=e[6]&&e[6].includes(e[0].id),r,i,o=e[0].text+"",s,l,a,c=e[6]&&e[6].includes(e[0].id),h,p,d=t&&La(e),g=c&&xa(e);return{c(){n=b("div"),d&&d.c(),r=_(),i=b("p"),s=st(o),a=_(),g&&g.c(),f(i,"class","my-2 cursor-pointer border-2 svelte-g45763"),f(i,"contenteditable",e[3]),te(i,"py-4",!e[5]),te(i,"px-2",!e[5]),te(i,"py-2",e[5]),te(i,"px-4",e[5]),te(i,"border-transparent",!e[2]),te(i,"cursor-text",e[3]),te(i,"border-primary",e[2]),te(i,"border-accent-focus",e[3]),te(i,"whitespace-pre-wrap",e[7]),f(n,"class","textline2 svelte-g45763")},m(v,S){j(v,n,S),d&&d.m(n,null),u(n,r),u(n,i),u(i,s),e[14](i),u(n,a),g&&g.m(n,null),h||(p=[x(i,"dblclick",e[8]),x(i,"keyup",xt)],h=!0)},p(v,S){e=v,S&65&&(t=e[6]&&e[6].includes(e[0].id)),t?d?d.p(e,S):(d=La(e),d.c(),d.m(n,r)):d&&(d.d(1),d=null),S&1&&o!==(o=e[0].text+"")&&At(s,o),S&8&&f(i,"contenteditable",e[3]),S&32&&te(i,"py-4",!e[5]),S&32&&te(i,"px-2",!e[5]),S&32&&te(i,"py-2",e[5]),S&32&&te(i,"px-4",e[5]),S&4&&te(i,"border-transparent",!e[2]),S&8&&te(i,"cursor-text",e[3]),S&4&&te(i,"border-primary",e[2]),S&8&&te(i,"border-accent-focus",e[3]),S&128&&te(i,"whitespace-pre-wrap",e[7]),S&65&&(c=e[6]&&e[6].includes(e[0].id)),c?g?g.p(e,S):(g=xa(e),g.c(),g.m(n,null)):g&&(g.d(1),g=null)},i(v){l||br(()=>{l=gc(i,Gc,{x:e[5]?100:-100,duration:e[4]?250:0}),l.start()})},o:Le,d(v){v&&F(n),d&&d.d(),e[14](null),g&&g.d(),h=!1,St(p)}}}function Ph(e){let n=e[0].text,t,r,i,o=Pa(e);return{c(){o.c(),t=_(),r=new fc(!1),i=Gn(),r.a=i},m(s,l){o.m(s,l),j(s,t,l),r.m(Xc,s,l),j(s,i,l)},p(s,[l]){l&1&&mt(n,n=s[0].text)?(pt(),W(o,1,1,Le),dt(),o=Pa(s),o.c(),M(o,1),o.m(t.parentNode,t)):o.p(s,l)},i(s){M(o)},o(s){W(o)},d(s){o.d(s),s&&F(t),s&&F(i),s&&r.d()}}}async function Ah(e){try{const n=await fetch("/update_checkbox",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e})});if(!n.ok)throw new Error(`HTTP error! Status: ${n.status}`)}catch(n){console.error("Error updating checkbox:",n)}}function Aa(e,n){console.log(e),fetch(n==="Screenshot"?"/get-screenshot":"/play-audio",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e})}).then(r=>{if(!r.ok)throw new Error(`HTTP error! Status: ${r.status}`);return r.json()}).then(r=>{console.log(`${n} action completed for event ID: ${e}`,r)}).catch(r=>{console.error(`Error performing ${n} action for event ID: ${e}`,r)})}function Dh(e,n,t){let r,i,o,s,l;w(e,vi,A=>t(4,r=A)),w(e,yr,A=>t(5,i=A)),w(e,wr,A=>t(18,o=A)),w(e,ol,A=>t(6,s=A)),w(e,fi,A=>t(7,l=A));let{line:a}=n,{index:c}=n,{isLast:h}=n;function p(){t(2,$=!1)}function d(A){return $||A.intersectsNode(v)?a.id:void 0}const g=Ci();let v,S="",$=!1,D=!1;Ll(()=>{h&&Es(window,v.parentElement.parentElement,o,i,r?"smooth":"auto")}),hc(()=>{document.removeEventListener("click",P,!1),g("edit",{inEdit:!1})});function T(A){var L;(L=window.getSelection())==null||L.removeAllRanges(),A.ctrlKey||A.metaKey?$?(t(2,$=!1),g("deselected",a.id)):(t(2,$=!0),g("selected",a.id)):(S=v.innerText,t(3,D=!0),g("edit",{inEdit:!0}),document.addEventListener("click",P,!1),Bi().then(()=>{v.focus()}))}function P(A){const L=A.target;v.contains(L)||(t(3,D=!1),document.removeEventListener("click",P,!1),g("edit",{inEdit:!1,data:{originalText:S,newText:v.innerText,lineIndex:c,line:a}}))}const I=()=>Ah(a.id);function q(A){at[A?"unshift":"push"](()=>{v=A,t(1,v)})}const G=()=>Aa(a.id,"Screenshot"),U=()=>Aa(a.id,"Audio");return e.$$set=A=>{"line"in A&&t(0,a=A.line),"index"in A&&t(9,c=A.index),"isLast"in A&&t(10,h=A.isLast)},[a,v,$,D,r,i,s,l,T,c,h,p,d,I,q,G,U]}class Th extends Tt{constructor(n){super(),Dt(this,n,Dh,Ph,mt,{line:0,index:9,isLast:10,deselect:11,getIdIfSelected:12})}get deselect(){return this.$$.ctx[11]}get getIdIfSelected(){return this.$$.ctx[12]}}function Oh(e){let n,t,r,i,o,s,l,a;return r=new we({props:{path:yc}}),{c(){n=b("div"),t=b("div"),se(r.$$.fragment),i=_(),o=b("textarea"),f(t,"class","flex cursor-pointer items-end md:items-center"),f(n,"class","flex justify-end p-4"),f(o,"class","flex-1 overflow-auto ml-10 mr-2 mb-4 p-1 pb-2"),Pt(o,"resize","none"),o.value=e[0]},m(c,h){j(c,n,h),u(n,t),re(r,t,null),j(c,i,h),j(c,o,h),s=!0,l||(a=[x(t,"click",e[3]),x(t,"keyup",xt),x(o,"blur",e[2])],l=!0)},p(c,[h]){(!s||h&1)&&(o.value=c[0])},i(c){s||(M(r.$$.fragment,c),s=!0)},o(c){W(r.$$.fragment,c),s=!1},d(c){c&&F(n),ie(r),c&&F(i),c&&F(o),l=!1,St(a)}}}function Ih(e,n,t){let r,i;w(e,Ki,l=>t(0,r=l)),w(e,vl,l=>t(1,i=l));function o(l){R(Ki,r=l.target.value,r)}return[r,i,o,()=>R(vl,i=!1,i)]}class $h extends Tt{constructor(n){super(),Dt(this,n,Ih,Oh,mt,{})}}function Da(e,n,t){const r=e.slice();return r[58]=n[t],r}function Ta(e,n,t){const r=e.slice();return r[58]=n[t],r}function Mh(e){let n,t,r,i,o,s=[],l=new Map,a,c,h,p,d,g,v,S,$,D,T,P,I,q,G,U,A,L,z,Y,Z,H,Q,V=e[2].length?e[2]:e[4];const ne=X=>X[58].name;for(let X=0;X<V.length;X+=1){let de=Da(e,V,X),ge=ne(de);l.set(ge,s[X]=Oa(ge,de))}return h=new we({props:{path:Fu}}),S=new we({props:{path:ns}}),I=new we({props:{path:Xu}}),L=new we({props:{path:Mi}}),{c(){n=b("details"),t=b("summary"),t.textContent="Presets",r=_(),i=b("div"),o=b("select");for(let X=0;X<s.length;X+=1)s[X].c();a=_(),c=b("div"),se(h.$$.fragment),p=_(),d=b("span"),d.textContent="Save",g=_(),v=b("div"),se(S.$$.fragment),$=_(),D=b("span"),D.textContent="Export/Import",T=_(),P=b("div"),se(I.$$.fragment),q=_(),G=b("span"),G.textContent="Reload",U=_(),A=b("div"),se(L.$$.fragment),z=_(),Y=b("span"),Y.textContent="Delete",f(o,"class","select flex-1 max-w-md"),f(d,"class","label-text"),f(c,"role","button"),f(c,"class","flex flex-col items-center hover:text-primary ml-3"),f(D,"class","label-text"),f(v,"role","button"),f(v,"class","flex flex-col items-center hover:text-primary ml-3"),f(G,"class","label-text"),f(P,"role","button"),f(P,"class","flex flex-col items-center hover:text-primary ml-3"),te(P,"invisible",!e[1]),f(Y,"class","label-text"),f(A,"role","button"),f(A,"class","flex flex-col items-center hover:text-primary ml-3"),te(A,"invisible",!e[1]),f(i,"class","flex items-center justify-between mt-2"),f(n,"role","button"),f(n,"class","col-span-4 mb-2")},m(X,de){j(X,n,de),u(n,t),u(n,r),u(n,i),u(i,o);for(let ge=0;ge<s.length;ge+=1)s[ge].m(o,null);qr(o,e[1]),u(i,a),u(i,c),re(h,c,null),u(c,p),u(c,d),u(i,g),u(i,v),re(S,v,null),u(v,$),u(v,D),u(i,T),u(i,P),re(I,P,null),u(P,q),u(P,G),u(i,U),u(i,A),re(L,A,null),u(A,z),u(A,Y),Z=!0,H||(Q=[x(o,"change",e[6]),x(c,"click",e[8]),x(c,"keyup",xt),x(v,"click",e[12]),x(v,"keyup",xt),x(P,"click",e[13]),x(P,"keyup",xt),x(A,"click",e[9]),x(A,"keyup",xt)],H=!0)},p(X,de){de[0]&20&&(V=X[2].length?X[2]:X[4],s=Ei(s,de,ne,1,X,V,l,o,xl,Oa,null,Da)),(!Z||de[0]&22)&&qr(o,X[1]),(!Z||de[0]&2)&&te(P,"invisible",!X[1]),(!Z||de[0]&2)&&te(A,"invisible",!X[1])},i(X){Z||(M(h.$$.fragment,X),M(S.$$.fragment,X),M(I.$$.fragment,X),M(L.$$.fragment,X),Z=!0)},o(X){W(h.$$.fragment,X),W(S.$$.fragment,X),W(I.$$.fragment,X),W(L.$$.fragment,X),Z=!1},d(X){X&&F(n);for(let de=0;de<s.length;de+=1)s[de].d();ie(h),ie(S),ie(I),ie(L),H=!1,St(Q)}}}function Nh(e){let n,t=[],r=new Map,i,o,s=e[2].length?e[2]:e[4];const l=a=>a[58].name;for(let a=0;a<s.length;a+=1){let c=Ta(e,s,a),h=l(c);r.set(h,t[a]=Ia(h,c))}return{c(){n=b("select");for(let a=0;a<t.length;a+=1)t[a].c();f(n,"class","w-48 hidden sm:block"),te(n,"sm:hidden",!e[3]||e[2].length<2)},m(a,c){j(a,n,c);for(let h=0;h<t.length;h+=1)t[h].m(n,null);qr(n,e[1]),i||(o=x(n,"change",e[6]),i=!0)},p(a,c){c[0]&20&&(s=a[2].length?a[2]:a[4],t=Ei(t,c,l,1,a,s,r,n,xl,Ia,null,Ta)),c[0]&22&&qr(n,a[1]),c[0]&12&&te(n,"sm:hidden",!a[3]||a[2].length<2)},i:Le,o:Le,d(a){a&&F(n);for(let c=0;c<t.length;c+=1)t[c].d();i=!1,o()}}}function Oa(e,n){let t,r=(n[58].name||"No Presets stored")+"",i,o,s;return{key:e,first:null,c(){t=b("option"),i=st(r),o=_(),t.__value=s=n[58].name,t.value=t.__value,this.first=t},m(l,a){j(l,t,a),u(t,i),u(t,o)},p(l,a){n=l,a[0]&4&&r!==(r=(n[58].name||"No Presets stored")+"")&&At(i,r),a[0]&4&&s!==(s=n[58].name)&&(t.__value=s,t.value=t.__value)},d(l){l&&F(t)}}}function Ia(e,n){let t,r=n[58].name+"",i,o,s;return{key:e,first:null,c(){t=b("option"),i=st(r),o=_(),t.__value=s=n[58].name,t.value=t.__value,this.first=t},m(l,a){j(l,t,a),u(t,i),u(t,o)},p(l,a){n=l,a[0]&4&&r!==(r=n[58].name+"")&&At(i,r),a[0]&4&&s!==(s=n[58].name)&&(t.__value=s,t.value=t.__value)},d(l){l&&F(t)}}}function Rh(e){let n,t,r,i;const o=[Nh,Mh],s=[];function l(a,c){return a[0]?0:1}return n=l(e),t=s[n]=o[n](e),{c(){t.c(),r=Gn()},m(a,c){s[n].m(a,c),j(a,r,c),i=!0},p(a,c){let h=n;n=l(a),n===h?s[n].p(a,c):(pt(),W(s[h],1,1,()=>{s[h]=null}),dt(),t=s[n],t?t.p(a,c):(t=s[n]=o[n](a),t.c()),M(t,1),t.m(r.parentNode,r))},i(a){i||(M(t),i=!0)},o(a){W(t),i=!1},d(a){s[n].d(a),a&&F(r)}}}function Hh(e,n,t){let r,i,o,s,l,a,c,h,p,d,g,v,S,$,D,T,P,I,q,G,U,A,L,z,Y,Z,H,Q,V,ne,X,de,ge,Be,De,We,ct,_e,be,je,Qe,$e,Ie,ae,ze,Ye,Te;w(e,Un,k=>t(1,r=k)),w(e,on,k=>t(2,i=k)),w(e,Re,k=>t(14,o=k)),w(e,Jr,k=>t(15,s=k)),w(e,kr,k=>t(16,l=k)),w(e,Cs,k=>t(17,a=k)),w(e,Ss,k=>t(18,c=k)),w(e,Xi,k=>t(19,h=k)),w(e,wi,k=>t(20,p=k)),w(e,yi,k=>t(21,d=k)),w(e,_i,k=>t(22,g=k)),w(e,vi,k=>t(23,v=k)),w(e,bi,k=>t(24,S=k)),w(e,gi,k=>t(25,$=k)),w(e,mi,k=>t(26,D=k)),w(e,di,k=>t(27,T=k)),w(e,pi,k=>t(28,P=k)),w(e,hi,k=>t(29,I=k)),w(e,fi,k=>t(30,q=k)),w(e,wr,k=>t(31,G=k)),w(e,yr,k=>t(32,U=k)),w(e,ui,k=>t(33,A=k)),w(e,ci,k=>t(34,L=k)),w(e,_r,k=>t(35,z=k)),w(e,ai,k=>t(36,Y=k)),w(e,si,k=>t(37,Z=k)),w(e,li,k=>t(38,H=k)),w(e,oi,k=>t(39,Q=k)),w(e,ii,k=>t(40,V=k)),w(e,ri,k=>t(41,ne=k)),w(e,ni,k=>t(42,X=k)),w(e,ti,k=>t(43,de=k)),w(e,ei,k=>t(44,ge=k)),w(e,Qr,k=>t(45,Be=k)),w(e,qi,k=>t(3,De=k)),w(e,Gi,k=>t(46,We=k)),w(e,Zr,k=>t(47,ct=k)),w(e,Wn,k=>t(48,_e=k)),w(e,pr,k=>t(49,be=k)),w(e,gr,k=>t(50,je=k)),w(e,Kr,k=>t(51,Qe=k)),w(e,mr,k=>t(52,$e=k)),w(e,wn,k=>t(53,Ie=k)),w(e,Yn,k=>t(54,ae=k)),w(e,Yi,k=>t(55,ze=k)),w(e,Yt,k=>t(56,Ye=k)),w(e,dr,k=>t(57,Te=k));let{isQuickSwitch:qe=!1}=n;function ut(){return{theme$:Te,replacements$:Ye,windowTitle$:ze,websocketUrl$:ae,secondaryWebsocketUrl$:Ie,fontSize$:$e,onlineFont$:Qe,preventLastDuplicate$:je,maxLines$:be,afkTimer$:_e,adjustTimerOnAfk$:ct,enableExternalClipboardMonitor$:We,showPresetQuickSwitch$:De,skipResetConfirmations$:s,persistStats$:Be,persistNotes$:ge,persistLines$:de,persistActionHistory$:X,enablePaste$:ne,blockCopyOnPage$:V,allowPasteDuringPause$:Q,allowNewLineDuringPause$:H,autoStartTimerDuringPausePaste$:Z,autoStartTimerDuringPause$:Y,preventGlobalDuplicate$:z,mergeEqualLineStarts$:L,flashOnMissedLine$:A,displayVertical$:U,reverseLineOrder$:G,preserveWhitespace$:q,removeAllWhitespace$:I,showTimer$:P,showSpeed$:T,showCharacterCount$:D,showLineCount$:$,blurStats$:S,enableLineAnimation$:v,enableAfkBlur$:g,enableAfkBlurRestart$:d,continuousReconnect$:l,showConnectionErrors$:p,customCSS$:h}}function Ve(k,oe=!0){dr.next(k.settings.theme$??E.theme$),Yt.next(k.settings.replacements$??E.replacements$),Yi.next(k.settings.windowTitle$??E.windowTitle$),Yn.next(k.settings.websocketUrl$??E.websocketUrl$),wn.next(k.settings.secondaryWebsocketUrl$??""),mr.next(k.settings.fontSize$??E.fontSize$),Kr.next(k.settings.onlineFont$??E.onlineFont$),gr.next(k.settings.preventLastDuplicate$??E.preventLastDuplicate$),pr.next(k.settings.maxLines$??E.maxLines$),Wn.next(k.settings.afkTimer$??E.afkTimer$),Zr.next(k.settings.adjustTimerOnAfk$??E.adjustTimerOnAfk$),Gi.next(k.settings.enableExternalClipboardMonitor$??E.enableExternalClipboardMonitor$),qi.next(k.settings.showPresetQuickSwitch$??E.showPresetQuickSwitch$),Jr.next(k.settings.skipResetConfirmations$??E.skipResetConfirmations$),Qr.next(k.settings.persistStats$??E.persistStats$),ei.next(k.settings.persistNotes$??E.persistNotes$),ti.next(k.settings.persistLines$??E.persistLines$),ni.next(k.settings.persistActionHistory$??E.persistActionHistory$),ri.next(k.settings.enablePaste$??E.enablePaste$),ii.next(k.settings.blockCopyOnPage$??E.blockCopyOnPage$),oi.next(k.settings.allowPasteDuringPause$??E.allowPasteDuringPause$),li.next(k.settings.allowNewLineDuringPause$??E.allowNewLineDuringPause$),si.next(k.settings.autoStartTimerDuringPausePaste$??E.autoStartTimerDuringPausePaste$),ai.next(k.settings.autoStartTimerDuringPause$??E.autoStartTimerDuringPause$),_r.next(k.settings.preventGlobalDuplicate$??E.preventGlobalDuplicate$),ci.next(k.settings.mergeEqualLineStarts$??E.mergeEqualLineStarts$),ui.next(k.settings.flashOnMissedLine$??E.flashOnMissedLine$),yr.next(k.settings.displayVertical$??E.displayVertical$),wr.next(k.settings.reverseLineOrder$??E.reverseLineOrder$),fi.next(k.settings.preserveWhitespace$??E.preserveWhitespace$),hi.next(k.settings.removeAllWhitespace$??E.removeAllWhitespace$),pi.next(k.settings.showTimer$??E.showTimer$),di.next(k.settings.showSpeed$??E.showSpeed$),mi.next(k.settings.showCharacterCount$??E.showCharacterCount$),gi.next(k.settings.showLineCount$??E.showLineCount$),bi.next(k.settings.blurStats$??E.blurStats$),vi.next(k.settings.enableLineAnimation$??E.enableLineAnimation$),_i.next(k.settings.enableAfkBlur$??E.enableAfkBlur$),yi.next(k.settings.enableAfkBlurRestart$??E.enableAfkBlurRestart$),kr.next(k.settings.continuousReconnect$??E.continuousReconnect$),wi.next(k.settings.showConnectionErrors$??E.showConnectionErrors$),Xi.next(k.settings.customCSS$??E.customCSS$),oe&&R(Un,r=k.name,r),Bi().then(()=>{Xe("layoutChange"),c!==1&&l&&$l.next(),a!==1&&l&&Ml.next()})}const Se=[{name:""}],Xe=Ci();function yt(k){const oe=k.target;ve(oe.selectedOptions[0].value)}function ve(k){const oe=i.find(Ge=>Ge.name===k);oe&&Ve(oe)}async function xe(){const{canceled:k,data:oe}=await new Promise(rt=>{R(Re,o={icon:Bt,askForData:"text",dataValue:r||"Preset Name",message:"",callback:rt},o)});if(k||!oe)return;const Ge=i.findIndex(rt=>rt.name===oe),Ne={name:oe,settings:ut()};Ge>-1?R(on,i[Ge]=Ne,i):R(on,i=[...i,Ne],i),R(Un,r=oe,r)}async function ye(){if(!s){const{canceled:k}=await new Promise(oe=>{R(Re,o={icon:Bt,message:"Preset will be deleted",callback:oe},o)});if(k)return}R(on,i=i.filter(k=>k.name!==r),i),R(Un,r="",r)}const Ct=k=>Xe("exportImportPreset",k),Me=()=>ve(r);return e.$$set=k=>{"isQuickSwitch"in k&&t(0,qe=k.isQuickSwitch)},[qe,r,i,De,Se,Xe,yt,ve,xe,ye,ut,Ve,Ct,Me]}class Kc extends Tt{constructor(n){super(),Dt(this,n,Hh,Rh,mt,{isQuickSwitch:0,getCurrentSettings:10,updateSettingsWithPreset:11},null,[-1,-1,-1])}get getCurrentSettings(){return this.$$.ctx[10]}get updateSettingsWithPreset(){return this.$$.ctx[11]}}function Vh(e,n){const t=r=>{!r.defaultPrevented&&!e.contains(r.target)&&n(r)};return document.addEventListener("click",t,!0),{destroy(){document.removeEventListener("click",t,!0)}}}function $a(e,n,t){const r=e.slice();return r[22]=n[t],r}function Ma(e){let n,t,r,i,o;return t=new we({props:{path:Bu}}),{c(){n=b("button"),se(t.$$.fragment),f(n,"title","Save"),f(n,"class","hover:text-primary")},m(s,l){j(s,n,l),re(t,n,null),r=!0,i||(o=x(n,"click",e[10]),i=!0)},p:Le,i(s){r||(M(t.$$.fragment,s),r=!0)},o(s){W(t.$$.fragment,s),r=!1},d(s){s&&F(n),ie(t),i=!1,o()}}}function Na(e,n){let t,r,i,o=n[22].label+"",s,l,a,c;return{key:e,first:null,c(){t=b("label"),r=b("input"),i=_(),s=st(o),l=_(),f(r,"type","checkbox"),r.__value=n[22].value,r.value=r.__value,n[18][0].push(r),this.first=t},m(h,p){j(h,t,p),u(t,r),r.checked=~n[0].flags.indexOf(r.__value),u(t,i),u(t,s),u(t,l),a||(c=[x(r,"change",n[17]),x(r,"change",n[9])],a=!0)},p(h,p){n=h,p&1&&(r.checked=~n[0].flags.indexOf(r.__value))},d(h){h&&F(t),n[18][0].splice(n[18][0].indexOf(r),1),a=!1,St(c)}}}function Fh(e){let n=(e[5]??"")+"",t,r,i,o,s,l,a,c,h,p,d,g,v,S,$,D,T=[],P=new Map,I,q,G,U,A=(e[4]||e[3])+"",L,z,Y,Z=e[0].pattern&&Ma(e);l=new we({props:{path:_c}}),h=new we({props:{path:Wu}});let H=e[7];const Q=V=>V[22].value;for(let V=0;V<H.length;V+=1){let ne=$a(e,H,V),X=Q(ne);P.set(X,T[V]=Na(X,ne))}return{c(){t=st(n),r=_(),i=b("div"),Z&&Z.c(),o=_(),s=b("button"),se(l.$$.fragment),a=_(),c=b("button"),se(h.$$.fragment),p=_(),d=b("div"),g=b("input"),v=_(),S=b("input"),$=_(),D=b("div");for(let V=0;V<T.length;V+=1)T[V].c();I=_(),q=b("textarea"),G=_(),U=b("div"),f(s,"title","Cancel"),f(s,"class","ml-2 hover:text-primary"),f(c,"title","Cancel"),f(c,"class","ml-2 hover:text-primary"),f(i,"class","flex justify-end my-2"),f(g,"placeholder","text pattern"),f(g,"class","w-full my-2"),f(S,"placeholder","replacement pattern"),f(S,"class","w-full my-2"),f(D,"class","flex justify-between my-4"),f(q,"name","test-value"),f(q,"placeholder","test value"),f(q,"class","w-full my-4"),f(q,"rows","3"),f(U,"class","whitespace-pre-wrap break-all")},m(V,ne){j(V,t,ne),j(V,r,ne),j(V,i,ne),Z&&Z.m(i,null),u(i,o),u(i,s),re(l,s,null),u(i,a),u(i,c),re(h,c,null),j(V,p,ne),j(V,d,ne),u(d,g),vt(g,e[0].pattern),e[15](g),u(d,v),u(d,S),vt(S,e[0].replaces),u(d,$),u(d,D);for(let X=0;X<T.length;X+=1)T[X].m(D,null);u(d,I),u(d,q),vt(q,e[2]),u(d,G),u(d,U),U.innerHTML=A,L=!0,z||(Y=[x(s,"click",e[12]),x(c,"click",e[13]),x(g,"input",e[14]),x(g,"input",e[9]),x(S,"input",e[16]),x(S,"input",e[9]),x(q,"input",e[19]),x(q,"input",e[9])],z=!0)},p(V,[ne]){(!L||ne&32)&&n!==(n=(V[5]??"")+"")&&At(t,n),V[0].pattern?Z?(Z.p(V,ne),ne&1&&M(Z,1)):(Z=Ma(V),Z.c(),M(Z,1),Z.m(i,o)):Z&&(pt(),W(Z,1,1,()=>{Z=null}),dt()),ne&1&&g.value!==V[0].pattern&&vt(g,V[0].pattern),ne&1&&S.value!==V[0].replaces&&vt(S,V[0].replaces),ne&641&&(H=V[7],T=Ei(T,ne,Q,1,V,H,P,D,xl,Na,null,$a)),ne&4&&vt(q,V[2]),(!L||ne&24)&&A!==(A=(V[4]||V[3])+"")&&(U.innerHTML=A)},i(V){L||(M(Z),M(l.$$.fragment,V),M(h.$$.fragment,V),L=!0)},o(V){W(Z),W(l.$$.fragment,V),W(h.$$.fragment,V),L=!1},d(V){V&&F(t),V&&F(r),V&&F(i),Z&&Z.d(),ie(l),ie(h),V&&F(p),V&&F(d),e[15](null);for(let ne=0;ne<T.length;ne+=1)T[ne].d();z=!1,St(Y)}}}function jh(e,n,t){let r,i;w(e,Yt,L=>t(20,r=L));let{currentReplacement:o}=n;const s=Ci(),l=new Li,a=o?JSON.parse(JSON.stringify(o)):{pattern:"",replaces:"",flags:[],enabled:!0},c=[{label:"global",value:"g"},{label:"multiline",value:"m"},{label:"insensitive",value:"i"},{label:"unicode",value:"u"}],h=l.pipe(ws(500),Mn(()=>{try{if(t(4,v=""),!a.pattern||!d)return;t(3,g=qc(d,[a]))}catch({message:L}){t(4,v=`Error: ${L}`)}}),Rn());w(e,h,L=>t(5,i=L));let p,d="",g="",v="";function S(){p.setCustomValidity(v),l.next()}function $(){if(!o&&r.find(L=>L.pattern===a.pattern))return p.setCustomValidity("This pattern already exists"),p.reportValidity();o?R(Yt,r=r.map(L=>L.pattern===o.pattern?a:L),r):R(Yt,r=[...r,a],r),s("close")}const D=[[]],T=()=>s("close"),P=()=>window.open("https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#description","_blank");function I(){a.pattern=this.value,t(0,a)}function q(L){at[L?"unshift":"push"](()=>{p=L,t(1,p)})}function G(){a.replaces=this.value,t(0,a)}function U(){a.flags=Cu(D[0],this.__value,this.checked),t(0,a)}function A(){d=this.value,t(2,d)}return e.$$set=L=>{"currentReplacement"in L&&t(11,o=L.currentReplacement)},[a,p,d,g,v,i,s,c,h,S,$,o,T,P,I,q,G,U,D,A]}class Uh extends Tt{constructor(n){super(),Dt(this,n,jh,Fh,mt,{currentReplacement:11})}}function Ra(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function an(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?Ra(Object(t),!0).forEach(function(r){Bh(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ra(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function sl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?sl=function(n){return typeof n}:sl=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},sl(e)}function Bh(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function cn(){return cn=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},cn.apply(this,arguments)}function Wh(e,n){if(e==null)return{};var t={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(n.indexOf(i)>=0)&&(t[i]=e[i]);return t}function zh(e,n){if(e==null)return{};var t=Wh(e,n),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(n.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(t[r]=e[r])}return t}var Yh="1.15.2";function kn(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var En=kn(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),to=kn(/Edge/i),Ha=kn(/firefox/i),Ni=kn(/safari/i)&&!kn(/chrome/i)&&!kn(/android/i),Zc=kn(/iP(ad|od|hone)/i),Jc=kn(/chrome/i)&&kn(/android/i),Qc={capture:!1,passive:!1};function Ee(e,n,t){e.addEventListener(n,t,!En&&Qc)}function ke(e,n,t){e.removeEventListener(n,t,!En&&Qc)}function yl(e,n){if(n){if(n[0]===">"&&(n=n.substring(1)),e)try{if(e.matches)return e.matches(n);if(e.msMatchesSelector)return e.msMatchesSelector(n);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(n)}catch{return!1}return!1}}function Gh(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Jt(e,n,t,r){if(e){t=t||document;do{if(n!=null&&(n[0]===">"?e.parentNode===t&&yl(e,n):yl(e,n))||r&&e===t)return e;if(e===t)break}while(e=Gh(e))}return null}var Va=/\s+/g;function bt(e,n,t){if(e&&n)if(e.classList)e.classList[t?"add":"remove"](n);else{var r=(" "+e.className+" ").replace(Va," ").replace(" "+n+" "," ");e.className=(r+(t?" "+n:"")).replace(Va," ")}}function ue(e,n,t){var r=e&&e.style;if(r){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(t=e.currentStyle),n===void 0?t:t[n];!(n in r)&&n.indexOf("webkit")===-1&&(n="-webkit-"+n),r[n]=t+(typeof t=="string"?"":"px")}}function Gr(e,n){var t="";if(typeof e=="string")t=e;else do{var r=ue(e,"transform");r&&r!=="none"&&(t=r+" "+t)}while(!n&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(t)}function eu(e,n,t){if(e){var r=e.getElementsByTagName(n),i=0,o=r.length;if(t)for(;i<o;i++)t(r[i],i);return r}return[]}function sn(){var e=document.scrollingElement;return e||document.documentElement}function Je(e,n,t,r,i){if(!(!e.getBoundingClientRect&&e!==window)){var o,s,l,a,c,h,p;if(e!==window&&e.parentNode&&e!==sn()?(o=e.getBoundingClientRect(),s=o.top,l=o.left,a=o.bottom,c=o.right,h=o.height,p=o.width):(s=0,l=0,a=window.innerHeight,c=window.innerWidth,h=window.innerHeight,p=window.innerWidth),(n||t)&&e!==window&&(i=i||e.parentNode,!En))do if(i&&i.getBoundingClientRect&&(ue(i,"transform")!=="none"||t&&ue(i,"position")!=="static")){var d=i.getBoundingClientRect();s-=d.top+parseInt(ue(i,"border-top-width")),l-=d.left+parseInt(ue(i,"border-left-width")),a=s+o.height,c=l+o.width;break}while(i=i.parentNode);if(r&&e!==window){var g=Gr(i||e),v=g&&g.a,S=g&&g.d;g&&(s/=S,l/=v,p/=v,h/=S,a=s+h,c=l+p)}return{top:s,left:l,bottom:a,right:c,width:p,height:h}}}function Fa(e,n,t){for(var r=Bn(e,!0),i=Je(e)[n];r;){var o=Je(r)[t],s=void 0;if(t==="top"||t==="left"?s=i>=o:s=i<=o,!s)return r;if(r===sn())break;r=Bn(r,!1)}return!1}function Si(e,n,t,r){for(var i=0,o=0,s=e.children;o<s.length;){if(s[o].style.display!=="none"&&s[o]!==le.ghost&&(r||s[o]!==le.dragged)&&Jt(s[o],t.draggable,e,!1)){if(i===n)return s[o];i++}o++}return null}function Ls(e,n){for(var t=e.lastElementChild;t&&(t===le.ghost||ue(t,"display")==="none"||n&&!yl(t,n));)t=t.previousElementSibling;return t||null}function Lt(e,n){var t=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==le.clone&&(!n||yl(e,n))&&t++;return t}function ja(e){var n=0,t=0,r=sn();if(e)do{var i=Gr(e),o=i.a,s=i.d;n+=e.scrollLeft*o,t+=e.scrollTop*s}while(e!==r&&(e=e.parentNode));return[n,t]}function qh(e,n){for(var t in e)if(e.hasOwnProperty(t)){for(var r in n)if(n.hasOwnProperty(r)&&n[r]===e[t][r])return Number(t)}return-1}function Bn(e,n){if(!e||!e.getBoundingClientRect)return sn();var t=e,r=!1;do if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var i=ue(t);if(t.clientWidth<t.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||t.clientHeight<t.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!t.getBoundingClientRect||t===document.body)return sn();if(r||n)return t;r=!0}}while(t=t.parentNode);return sn()}function Xh(e,n){if(e&&n)for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}function Bl(e,n){return Math.round(e.top)===Math.round(n.top)&&Math.round(e.left)===Math.round(n.left)&&Math.round(e.height)===Math.round(n.height)&&Math.round(e.width)===Math.round(n.width)}var Ri;function tu(e,n){return function(){if(!Ri){var t=arguments,r=this;t.length===1?e.call(r,t[0]):e.apply(r,t),Ri=setTimeout(function(){Ri=void 0},n)}}}function Kh(){clearTimeout(Ri),Ri=void 0}function nu(e,n,t){e.scrollLeft+=n,e.scrollTop+=t}function ru(e){var n=window.Polymer,t=window.jQuery||window.Zepto;return n&&n.dom?n.dom(e).cloneNode(!0):t?t(e).clone(!0)[0]:e.cloneNode(!0)}function iu(e,n,t){var r={};return Array.from(e.children).forEach(function(i){var o,s,l,a;if(!(!Jt(i,n.draggable,e,!1)||i.animated||i===t)){var c=Je(i);r.left=Math.min((o=r.left)!==null&&o!==void 0?o:1/0,c.left),r.top=Math.min((s=r.top)!==null&&s!==void 0?s:1/0,c.top),r.right=Math.max((l=r.right)!==null&&l!==void 0?l:-1/0,c.right),r.bottom=Math.max((a=r.bottom)!==null&&a!==void 0?a:-1/0,c.bottom)}}),r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}var Vt="Sortable"+new Date().getTime();function Zh(){var e=[],n;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(i){if(!(ue(i,"display")==="none"||i===le.ghost)){e.push({target:i,rect:Je(i)});var o=an({},e[e.length-1].rect);if(i.thisAnimationDuration){var s=Gr(i,!0);s&&(o.top-=s.f,o.left-=s.e)}i.fromRect=o}})}},addAnimationState:function(r){e.push(r)},removeAnimationState:function(r){e.splice(qh(e,{target:r}),1)},animateAll:function(r){var i=this;if(!this.options.animation){clearTimeout(n),typeof r=="function"&&r();return}var o=!1,s=0;e.forEach(function(l){var a=0,c=l.target,h=c.fromRect,p=Je(c),d=c.prevFromRect,g=c.prevToRect,v=l.rect,S=Gr(c,!0);S&&(p.top-=S.f,p.left-=S.e),c.toRect=p,c.thisAnimationDuration&&Bl(d,p)&&!Bl(h,p)&&(v.top-p.top)/(v.left-p.left)===(h.top-p.top)/(h.left-p.left)&&(a=Qh(v,d,g,i.options)),Bl(p,h)||(c.prevFromRect=h,c.prevToRect=p,a||(a=i.options.animation),i.animate(c,v,p,a)),a&&(o=!0,s=Math.max(s,a),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},a),c.thisAnimationDuration=a)}),clearTimeout(n),o?n=setTimeout(function(){typeof r=="function"&&r()},s):typeof r=="function"&&r(),e=[]},animate:function(r,i,o,s){if(s){ue(r,"transition",""),ue(r,"transform","");var l=Gr(this.el),a=l&&l.a,c=l&&l.d,h=(i.left-o.left)/(a||1),p=(i.top-o.top)/(c||1);r.animatingX=!!h,r.animatingY=!!p,ue(r,"transform","translate3d("+h+"px,"+p+"px,0)"),this.forRepaintDummy=Jh(r),ue(r,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),ue(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){ue(r,"transition",""),ue(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},s)}}}}function Jh(e){return e.offsetWidth}function Qh(e,n,t,r){return Math.sqrt(Math.pow(n.top-e.top,2)+Math.pow(n.left-e.left,2))/Math.sqrt(Math.pow(n.top-t.top,2)+Math.pow(n.left-t.left,2))*r.animation}var jr=[],Wl={initializeByDefault:!0},no={mount:function(n){for(var t in Wl)Wl.hasOwnProperty(t)&&!(t in n)&&(n[t]=Wl[t]);jr.forEach(function(r){if(r.pluginName===n.pluginName)throw"Sortable: Cannot mount plugin ".concat(n.pluginName," more than once")}),jr.push(n)},pluginEvent:function(n,t,r){var i=this;this.eventCanceled=!1,r.cancel=function(){i.eventCanceled=!0};var o=n+"Global";jr.forEach(function(s){t[s.pluginName]&&(t[s.pluginName][o]&&t[s.pluginName][o](an({sortable:t},r)),t.options[s.pluginName]&&t[s.pluginName][n]&&t[s.pluginName][n](an({sortable:t},r)))})},initializePlugins:function(n,t,r,i){jr.forEach(function(l){var a=l.pluginName;if(!(!n.options[a]&&!l.initializeByDefault)){var c=new l(n,t,n.options);c.sortable=n,c.options=n.options,n[a]=c,cn(r,c.defaults)}});for(var o in n.options)if(n.options.hasOwnProperty(o)){var s=this.modifyOption(n,o,n.options[o]);typeof s<"u"&&(n.options[o]=s)}},getEventProperties:function(n,t){var r={};return jr.forEach(function(i){typeof i.eventProperties=="function"&&cn(r,i.eventProperties.call(t[i.pluginName],n))}),r},modifyOption:function(n,t,r){var i;return jr.forEach(function(o){n[o.pluginName]&&o.optionListeners&&typeof o.optionListeners[t]=="function"&&(i=o.optionListeners[t].call(n[o.pluginName],r))}),i}};function ep(e){var n=e.sortable,t=e.rootEl,r=e.name,i=e.targetEl,o=e.cloneEl,s=e.toEl,l=e.fromEl,a=e.oldIndex,c=e.newIndex,h=e.oldDraggableIndex,p=e.newDraggableIndex,d=e.originalEvent,g=e.putSortable,v=e.extraEventProperties;if(n=n||t&&t[Vt],!!n){var S,$=n.options,D="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!En&&!to?S=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(S=document.createEvent("Event"),S.initEvent(r,!0,!0)),S.to=s||t,S.from=l||t,S.item=i||t,S.clone=o,S.oldIndex=a,S.newIndex=c,S.oldDraggableIndex=h,S.newDraggableIndex=p,S.originalEvent=d,S.pullMode=g?g.lastPutMode:void 0;var T=an(an({},v),no.getEventProperties(r,n));for(var P in T)S[P]=T[P];t&&t.dispatchEvent(S),$[D]&&$[D].call(n,S)}}var tp=["evt"],Et=function(n,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.evt,o=zh(r,tp);no.pluginEvent.bind(le)(n,t,an({dragEl:B,parentEl:Ue,ghostEl:pe,rootEl:He,nextEl:fr,lastDownEl:al,cloneEl:Fe,cloneHidden:Hn,dragStarted:Ti,putSortable:ht,activeSortable:le.active,originalEvent:i,oldIndex:Wr,oldDraggableIndex:Hi,newIndex:Ht,newDraggableIndex:$n,hideGhostForTarget:au,unhideGhostForTarget:cu,cloneNowHidden:function(){Hn=!0},cloneNowShown:function(){Hn=!1},dispatchSortableEvent:function(l){kt({sortable:t,name:l,originalEvent:i})}},o))};function kt(e){ep(an({putSortable:ht,cloneEl:Fe,targetEl:B,rootEl:He,oldIndex:Wr,oldDraggableIndex:Hi,newIndex:Ht,newDraggableIndex:$n},e))}var B,Ue,pe,He,fr,al,Fe,Hn,Wr,Ht,Hi,$n,Jo,ht,Br=!1,wl=!1,kl=[],cr,Zt,zl,Yl,Ua,Ba,Ti,Ur,Vi,Fi=!1,Qo=!1,cl,gt,Gl=[],cs=!1,Sl=[],Nl=typeof document<"u",el=Zc,Wa=to||En?"cssFloat":"float",np=Nl&&!Jc&&!Zc&&"draggable"in document.createElement("div"),ou=function(){if(Nl){if(En)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),lu=function(n,t){var r=ue(n),i=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),o=Si(n,0,t),s=Si(n,1,t),l=o&&ue(o),a=s&&ue(s),c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Je(o).width,h=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Je(s).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&l.float&&l.float!=="none"){var p=l.float==="left"?"left":"right";return s&&(a.clear==="both"||a.clear===p)?"vertical":"horizontal"}return o&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||c>=i&&r[Wa]==="none"||s&&r[Wa]==="none"&&c+h>i)?"vertical":"horizontal"},rp=function(n,t,r){var i=r?n.left:n.top,o=r?n.right:n.bottom,s=r?n.width:n.height,l=r?t.left:t.top,a=r?t.right:t.bottom,c=r?t.width:t.height;return i===l||o===a||i+s/2===l+c/2},ip=function(n,t){var r;return kl.some(function(i){var o=i[Vt].options.emptyInsertThreshold;if(!(!o||Ls(i))){var s=Je(i),l=n>=s.left-o&&n<=s.right+o,a=t>=s.top-o&&t<=s.bottom+o;if(l&&a)return r=i}}),r},su=function(n){function t(o,s){return function(l,a,c,h){var p=l.options.group.name&&a.options.group.name&&l.options.group.name===a.options.group.name;if(o==null&&(s||p))return!0;if(o==null||o===!1)return!1;if(s&&o==="clone")return o;if(typeof o=="function")return t(o(l,a,c,h),s)(l,a,c,h);var d=(s?l:a).options.group.name;return o===!0||typeof o=="string"&&o===d||o.join&&o.indexOf(d)>-1}}var r={},i=n.group;(!i||sl(i)!="object")&&(i={name:i}),r.name=i.name,r.checkPull=t(i.pull,!0),r.checkPut=t(i.put),r.revertClone=i.revertClone,n.group=r},au=function(){!ou&&pe&&ue(pe,"display","none")},cu=function(){!ou&&pe&&ue(pe,"display","")};Nl&&!Jc&&document.addEventListener("click",function(e){if(wl)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),wl=!1,!1},!0);var ur=function(n){if(B){n=n.touches?n.touches[0]:n;var t=ip(n.clientX,n.clientY);if(t){var r={};for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i]);r.target=r.rootEl=t,r.preventDefault=void 0,r.stopPropagation=void 0,t[Vt]._onDragOver(r)}}},op=function(n){B&&B.parentNode[Vt]._isOutsideThisEl(n.target)};function le(e,n){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=n=cn({},n),e[Vt]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return lu(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,l){s.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:le.supportPointer!==!1&&"PointerEvent"in window&&!Ni,emptyInsertThreshold:5};no.initializePlugins(this,e,t);for(var r in t)!(r in n)&&(n[r]=t[r]);su(n);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=n.forceFallback?!1:np,this.nativeDraggable&&(this.options.touchStartThreshold=1),n.supportPointer?Ee(e,"pointerdown",this._onTapStart):(Ee(e,"mousedown",this._onTapStart),Ee(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Ee(e,"dragover",this),Ee(e,"dragenter",this)),kl.push(this.el),n.store&&n.store.get&&this.sort(n.store.get(this)||[]),cn(this,Zh())}le.prototype={constructor:le,_isOutsideThisEl:function(n){!this.el.contains(n)&&n!==this.el&&(Ur=null)},_getDirection:function(n,t){return typeof this.options.direction=="function"?this.options.direction.call(this,n,t,B):this.options.direction},_onTapStart:function(n){if(n.cancelable){var t=this,r=this.el,i=this.options,o=i.preventOnFilter,s=n.type,l=n.touches&&n.touches[0]||n.pointerType&&n.pointerType==="touch"&&n,a=(l||n).target,c=n.target.shadowRoot&&(n.path&&n.path[0]||n.composedPath&&n.composedPath()[0])||a,h=i.filter;if(pp(r),!B&&!(/mousedown|pointerdown/.test(s)&&n.button!==0||i.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&Ni&&a&&a.tagName.toUpperCase()==="SELECT")&&(a=Jt(a,i.draggable,r,!1),!(a&&a.animated)&&al!==a)){if(Wr=Lt(a),Hi=Lt(a,i.draggable),typeof h=="function"){if(h.call(this,n,a,this)){kt({sortable:t,rootEl:c,name:"filter",targetEl:a,toEl:r,fromEl:r}),Et("filter",t,{evt:n}),o&&n.cancelable&&n.preventDefault();return}}else if(h&&(h=h.split(",").some(function(p){if(p=Jt(c,p.trim(),r,!1),p)return kt({sortable:t,rootEl:p,name:"filter",targetEl:a,fromEl:r,toEl:r}),Et("filter",t,{evt:n}),!0}),h)){o&&n.cancelable&&n.preventDefault();return}i.handle&&!Jt(c,i.handle,r,!1)||this._prepareDragStart(n,l,a)}}},_prepareDragStart:function(n,t,r){var i=this,o=i.el,s=i.options,l=o.ownerDocument,a;if(r&&!B&&r.parentNode===o){var c=Je(r);if(He=o,B=r,Ue=B.parentNode,fr=B.nextSibling,al=r,Jo=s.group,le.dragged=B,cr={target:B,clientX:(t||n).clientX,clientY:(t||n).clientY},Ua=cr.clientX-c.left,Ba=cr.clientY-c.top,this._lastX=(t||n).clientX,this._lastY=(t||n).clientY,B.style["will-change"]="all",a=function(){if(Et("delayEnded",i,{evt:n}),le.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!Ha&&i.nativeDraggable&&(B.draggable=!0),i._triggerDragStart(n,t),kt({sortable:i,name:"choose",originalEvent:n}),bt(B,s.chosenClass,!0)},s.ignore.split(",").forEach(function(h){eu(B,h.trim(),ql)}),Ee(l,"dragover",ur),Ee(l,"mousemove",ur),Ee(l,"touchmove",ur),Ee(l,"mouseup",i._onDrop),Ee(l,"touchend",i._onDrop),Ee(l,"touchcancel",i._onDrop),Ha&&this.nativeDraggable&&(this.options.touchStartThreshold=4,B.draggable=!0),Et("delayStart",this,{evt:n}),s.delay&&(!s.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(to||En))){if(le.eventCanceled){this._onDrop();return}Ee(l,"mouseup",i._disableDelayedDrag),Ee(l,"touchend",i._disableDelayedDrag),Ee(l,"touchcancel",i._disableDelayedDrag),Ee(l,"mousemove",i._delayedDragTouchMoveHandler),Ee(l,"touchmove",i._delayedDragTouchMoveHandler),s.supportPointer&&Ee(l,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(a,s.delay)}else a()}},_delayedDragTouchMoveHandler:function(n){var t=n.touches?n.touches[0]:n;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){B&&ql(B),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var n=this.el.ownerDocument;ke(n,"mouseup",this._disableDelayedDrag),ke(n,"touchend",this._disableDelayedDrag),ke(n,"touchcancel",this._disableDelayedDrag),ke(n,"mousemove",this._delayedDragTouchMoveHandler),ke(n,"touchmove",this._delayedDragTouchMoveHandler),ke(n,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(n,t){t=t||n.pointerType=="touch"&&n,!this.nativeDraggable||t?this.options.supportPointer?Ee(document,"pointermove",this._onTouchMove):t?Ee(document,"touchmove",this._onTouchMove):Ee(document,"mousemove",this._onTouchMove):(Ee(B,"dragend",this),Ee(He,"dragstart",this._onDragStart));try{document.selection?ul(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(n,t){if(Br=!1,He&&B){Et("dragStarted",this,{evt:t}),this.nativeDraggable&&Ee(document,"dragover",op);var r=this.options;!n&&bt(B,r.dragClass,!1),bt(B,r.ghostClass,!0),le.active=this,n&&this._appendGhost(),kt({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Zt){this._lastX=Zt.clientX,this._lastY=Zt.clientY,au();for(var n=document.elementFromPoint(Zt.clientX,Zt.clientY),t=n;n&&n.shadowRoot&&(n=n.shadowRoot.elementFromPoint(Zt.clientX,Zt.clientY),n!==t);)t=n;if(B.parentNode[Vt]._isOutsideThisEl(n),t)do{if(t[Vt]){var r=void 0;if(r=t[Vt]._onDragOver({clientX:Zt.clientX,clientY:Zt.clientY,target:n,rootEl:t}),r&&!this.options.dragoverBubble)break}n=t}while(t=t.parentNode);cu()}},_onTouchMove:function(n){if(cr){var t=this.options,r=t.fallbackTolerance,i=t.fallbackOffset,o=n.touches?n.touches[0]:n,s=pe&&Gr(pe,!0),l=pe&&s&&s.a,a=pe&&s&&s.d,c=el&>&&ja(gt),h=(o.clientX-cr.clientX+i.x)/(l||1)+(c?c[0]-Gl[0]:0)/(l||1),p=(o.clientY-cr.clientY+i.y)/(a||1)+(c?c[1]-Gl[1]:0)/(a||1);if(!le.active&&!Br){if(r&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<r)return;this._onDragStart(n,!0)}if(pe){s?(s.e+=h-(zl||0),s.f+=p-(Yl||0)):s={a:1,b:0,c:0,d:1,e:h,f:p};var d="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");ue(pe,"webkitTransform",d),ue(pe,"mozTransform",d),ue(pe,"msTransform",d),ue(pe,"transform",d),zl=h,Yl=p,Zt=o}n.cancelable&&n.preventDefault()}},_appendGhost:function(){if(!pe){var n=this.options.fallbackOnBody?document.body:He,t=Je(B,!0,el,!0,n),r=this.options;if(el){for(gt=n;ue(gt,"position")==="static"&&ue(gt,"transform")==="none"&>!==document;)gt=gt.parentNode;gt!==document.body&>!==document.documentElement?(gt===document&&(gt=sn()),t.top+=gt.scrollTop,t.left+=gt.scrollLeft):gt=sn(),Gl=ja(gt)}pe=B.cloneNode(!0),bt(pe,r.ghostClass,!1),bt(pe,r.fallbackClass,!0),bt(pe,r.dragClass,!0),ue(pe,"transition",""),ue(pe,"transform",""),ue(pe,"box-sizing","border-box"),ue(pe,"margin",0),ue(pe,"top",t.top),ue(pe,"left",t.left),ue(pe,"width",t.width),ue(pe,"height",t.height),ue(pe,"opacity","0.8"),ue(pe,"position",el?"absolute":"fixed"),ue(pe,"zIndex","100000"),ue(pe,"pointerEvents","none"),le.ghost=pe,n.appendChild(pe),ue(pe,"transform-origin",Ua/parseInt(pe.style.width)*100+"% "+Ba/parseInt(pe.style.height)*100+"%")}},_onDragStart:function(n,t){var r=this,i=n.dataTransfer,o=r.options;if(Et("dragStart",this,{evt:n}),le.eventCanceled){this._onDrop();return}Et("setupClone",this),le.eventCanceled||(Fe=ru(B),Fe.removeAttribute("id"),Fe.draggable=!1,Fe.style["will-change"]="",this._hideClone(),bt(Fe,this.options.chosenClass,!1),le.clone=Fe),r.cloneId=ul(function(){Et("clone",r),!le.eventCanceled&&(r.options.removeCloneOnHide||He.insertBefore(Fe,B),r._hideClone(),kt({sortable:r,name:"clone"}))}),!t&&bt(B,o.dragClass,!0),t?(wl=!0,r._loopId=setInterval(r._emulateDragOver,50)):(ke(document,"mouseup",r._onDrop),ke(document,"touchend",r._onDrop),ke(document,"touchcancel",r._onDrop),i&&(i.effectAllowed="move",o.setData&&o.setData.call(r,i,B)),Ee(document,"drop",r),ue(B,"transform","translateZ(0)")),Br=!0,r._dragStartId=ul(r._dragStarted.bind(r,t,n)),Ee(document,"selectstart",r),Ti=!0,Ni&&ue(document.body,"user-select","none")},_onDragOver:function(n){var t=this.el,r=n.target,i,o,s,l=this.options,a=l.group,c=le.active,h=Jo===a,p=l.sort,d=ht||c,g,v=this,S=!1;if(cs)return;function $(de,ge){Et(de,v,an({evt:n,isOwner:h,axis:g?"vertical":"horizontal",revert:s,dragRect:i,targetRect:o,canSort:p,fromSortable:d,target:r,completed:T,onMove:function(De,We){return tl(He,t,B,i,De,Je(De),n,We)},changed:P},ge))}function D(){$("dragOverAnimationCapture"),v.captureAnimationState(),v!==d&&d.captureAnimationState()}function T(de){return $("dragOverCompleted",{insertion:de}),de&&(h?c._hideClone():c._showClone(v),v!==d&&(bt(B,ht?ht.options.ghostClass:c.options.ghostClass,!1),bt(B,l.ghostClass,!0)),ht!==v&&v!==le.active?ht=v:v===le.active&&ht&&(ht=null),d===v&&(v._ignoreWhileAnimating=r),v.animateAll(function(){$("dragOverAnimationComplete"),v._ignoreWhileAnimating=null}),v!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(r===B&&!B.animated||r===t&&!r.animated)&&(Ur=null),!l.dragoverBubble&&!n.rootEl&&r!==document&&(B.parentNode[Vt]._isOutsideThisEl(n.target),!de&&ur(n)),!l.dragoverBubble&&n.stopPropagation&&n.stopPropagation(),S=!0}function P(){Ht=Lt(B),$n=Lt(B,l.draggable),kt({sortable:v,name:"change",toEl:t,newIndex:Ht,newDraggableIndex:$n,originalEvent:n})}if(n.preventDefault!==void 0&&n.cancelable&&n.preventDefault(),r=Jt(r,l.draggable,t,!0),$("dragOver"),le.eventCanceled)return S;if(B.contains(n.target)||r.animated&&r.animatingX&&r.animatingY||v._ignoreWhileAnimating===r)return T(!1);if(wl=!1,c&&!l.disabled&&(h?p||(s=Ue!==He):ht===this||(this.lastPutMode=Jo.checkPull(this,c,B,n))&&a.checkPut(this,c,B,n))){if(g=this._getDirection(n,r)==="vertical",i=Je(B),$("dragOverValid"),le.eventCanceled)return S;if(s)return Ue=He,D(),this._hideClone(),$("revert"),le.eventCanceled||(fr?He.insertBefore(B,fr):He.appendChild(B)),T(!0);var I=Ls(t,l.draggable);if(!I||cp(n,g,this)&&!I.animated){if(I===B)return T(!1);if(I&&t===n.target&&(r=I),r&&(o=Je(r)),tl(He,t,B,i,r,o,n,!!r)!==!1)return D(),I&&I.nextSibling?t.insertBefore(B,I.nextSibling):t.appendChild(B),Ue=t,P(),T(!0)}else if(I&&ap(n,g,this)){var q=Si(t,0,l,!0);if(q===B)return T(!1);if(r=q,o=Je(r),tl(He,t,B,i,r,o,n,!1)!==!1)return D(),t.insertBefore(B,q),Ue=t,P(),T(!0)}else if(r.parentNode===t){o=Je(r);var G=0,U,A=B.parentNode!==t,L=!rp(B.animated&&B.toRect||i,r.animated&&r.toRect||o,g),z=g?"top":"left",Y=Fa(r,"top","top")||Fa(B,"top","top"),Z=Y?Y.scrollTop:void 0;Ur!==r&&(U=o[z],Fi=!1,Qo=!L&&l.invertSwap||A),G=up(n,r,o,g,L?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,Qo,Ur===r);var H;if(G!==0){var Q=Lt(B);do Q-=G,H=Ue.children[Q];while(H&&(ue(H,"display")==="none"||H===pe))}if(G===0||H===r)return T(!1);Ur=r,Vi=G;var V=r.nextElementSibling,ne=!1;ne=G===1;var X=tl(He,t,B,i,r,o,n,ne);if(X!==!1)return(X===1||X===-1)&&(ne=X===1),cs=!0,setTimeout(sp,30),D(),ne&&!V?t.appendChild(B):r.parentNode.insertBefore(B,ne?V:r),Y&&nu(Y,0,Z-Y.scrollTop),Ue=B.parentNode,U!==void 0&&!Qo&&(cl=Math.abs(U-Je(r)[z])),P(),T(!0)}if(t.contains(B))return T(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){ke(document,"mousemove",this._onTouchMove),ke(document,"touchmove",this._onTouchMove),ke(document,"pointermove",this._onTouchMove),ke(document,"dragover",ur),ke(document,"mousemove",ur),ke(document,"touchmove",ur)},_offUpEvents:function(){var n=this.el.ownerDocument;ke(n,"mouseup",this._onDrop),ke(n,"touchend",this._onDrop),ke(n,"pointerup",this._onDrop),ke(n,"touchcancel",this._onDrop),ke(document,"selectstart",this)},_onDrop:function(n){var t=this.el,r=this.options;if(Ht=Lt(B),$n=Lt(B,r.draggable),Et("drop",this,{evt:n}),Ue=B&&B.parentNode,Ht=Lt(B),$n=Lt(B,r.draggable),le.eventCanceled){this._nulling();return}Br=!1,Qo=!1,Fi=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),us(this.cloneId),us(this._dragStartId),this.nativeDraggable&&(ke(document,"drop",this),ke(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ni&&ue(document.body,"user-select",""),ue(B,"transform",""),n&&(Ti&&(n.cancelable&&n.preventDefault(),!r.dropBubble&&n.stopPropagation()),pe&&pe.parentNode&&pe.parentNode.removeChild(pe),(He===Ue||ht&&ht.lastPutMode!=="clone")&&Fe&&Fe.parentNode&&Fe.parentNode.removeChild(Fe),B&&(this.nativeDraggable&&ke(B,"dragend",this),ql(B),B.style["will-change"]="",Ti&&!Br&&bt(B,ht?ht.options.ghostClass:this.options.ghostClass,!1),bt(B,this.options.chosenClass,!1),kt({sortable:this,name:"unchoose",toEl:Ue,newIndex:null,newDraggableIndex:null,originalEvent:n}),He!==Ue?(Ht>=0&&(kt({rootEl:Ue,name:"add",toEl:Ue,fromEl:He,originalEvent:n}),kt({sortable:this,name:"remove",toEl:Ue,originalEvent:n}),kt({rootEl:Ue,name:"sort",toEl:Ue,fromEl:He,originalEvent:n}),kt({sortable:this,name:"sort",toEl:Ue,originalEvent:n})),ht&&ht.save()):Ht!==Wr&&Ht>=0&&(kt({sortable:this,name:"update",toEl:Ue,originalEvent:n}),kt({sortable:this,name:"sort",toEl:Ue,originalEvent:n})),le.active&&((Ht==null||Ht===-1)&&(Ht=Wr,$n=Hi),kt({sortable:this,name:"end",toEl:Ue,originalEvent:n}),this.save()))),this._nulling()},_nulling:function(){Et("nulling",this),He=B=Ue=pe=fr=Fe=al=Hn=cr=Zt=Ti=Ht=$n=Wr=Hi=Ur=Vi=ht=Jo=le.dragged=le.ghost=le.clone=le.active=null,Sl.forEach(function(n){n.checked=!0}),Sl.length=zl=Yl=0},handleEvent:function(n){switch(n.type){case"drop":case"dragend":this._onDrop(n);break;case"dragenter":case"dragover":B&&(this._onDragOver(n),lp(n));break;case"selectstart":n.preventDefault();break}},toArray:function(){for(var n=[],t,r=this.el.children,i=0,o=r.length,s=this.options;i<o;i++)t=r[i],Jt(t,s.draggable,this.el,!1)&&n.push(t.getAttribute(s.dataIdAttr)||hp(t));return n},sort:function(n,t){var r={},i=this.el;this.toArray().forEach(function(o,s){var l=i.children[s];Jt(l,this.options.draggable,i,!1)&&(r[o]=l)},this),t&&this.captureAnimationState(),n.forEach(function(o){r[o]&&(i.removeChild(r[o]),i.appendChild(r[o]))}),t&&this.animateAll()},save:function(){var n=this.options.store;n&&n.set&&n.set(this)},closest:function(n,t){return Jt(n,t||this.options.draggable,this.el,!1)},option:function(n,t){var r=this.options;if(t===void 0)return r[n];var i=no.modifyOption(this,n,t);typeof i<"u"?r[n]=i:r[n]=t,n==="group"&&su(r)},destroy:function(){Et("destroy",this);var n=this.el;n[Vt]=null,ke(n,"mousedown",this._onTapStart),ke(n,"touchstart",this._onTapStart),ke(n,"pointerdown",this._onTapStart),this.nativeDraggable&&(ke(n,"dragover",this),ke(n,"dragenter",this)),Array.prototype.forEach.call(n.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),kl.splice(kl.indexOf(this.el),1),this.el=n=null},_hideClone:function(){if(!Hn){if(Et("hideClone",this),le.eventCanceled)return;ue(Fe,"display","none"),this.options.removeCloneOnHide&&Fe.parentNode&&Fe.parentNode.removeChild(Fe),Hn=!0}},_showClone:function(n){if(n.lastPutMode!=="clone"){this._hideClone();return}if(Hn){if(Et("showClone",this),le.eventCanceled)return;B.parentNode==He&&!this.options.group.revertClone?He.insertBefore(Fe,B):fr?He.insertBefore(Fe,fr):He.appendChild(Fe),this.options.group.revertClone&&this.animate(B,Fe),ue(Fe,"display",""),Hn=!1}}};function lp(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function tl(e,n,t,r,i,o,s,l){var a,c=e[Vt],h=c.options.onMove,p;return window.CustomEvent&&!En&&!to?a=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(a=document.createEvent("Event"),a.initEvent("move",!0,!0)),a.to=n,a.from=e,a.dragged=t,a.draggedRect=r,a.related=i||n,a.relatedRect=o||Je(n),a.willInsertAfter=l,a.originalEvent=s,e.dispatchEvent(a),h&&(p=h.call(c,a,s)),p}function ql(e){e.draggable=!1}function sp(){cs=!1}function ap(e,n,t){var r=Je(Si(t.el,0,t.options,!0)),i=iu(t.el,t.options,pe),o=10;return n?e.clientX<i.left-o||e.clientY<r.top&&e.clientX<r.right:e.clientY<i.top-o||e.clientY<r.bottom&&e.clientX<r.left}function cp(e,n,t){var r=Je(Ls(t.el,t.options.draggable)),i=iu(t.el,t.options,pe),o=10;return n?e.clientX>i.right+o||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>i.bottom+o||e.clientX>r.right&&e.clientY>r.top}function up(e,n,t,r,i,o,s,l){var a=r?e.clientY:e.clientX,c=r?t.height:t.width,h=r?t.top:t.left,p=r?t.bottom:t.right,d=!1;if(!s){if(l&&cl<c*i){if(!Fi&&(Vi===1?a>h+c*o/2:a<p-c*o/2)&&(Fi=!0),Fi)d=!0;else if(Vi===1?a<h+cl:a>p-cl)return-Vi}else if(a>h+c*(1-i)/2&&a<p-c*(1-i)/2)return fp(n)}return d=d||s,d&&(a<h+c*o/2||a>p-c*o/2)?a>h+c/2?1:-1:0}function fp(e){return Lt(B)<Lt(e)?1:-1}function hp(e){for(var n=e.tagName+e.className+e.src+e.href+e.textContent,t=n.length,r=0;t--;)r+=n.charCodeAt(t);return r.toString(36)}function pp(e){Sl.length=0;for(var n=e.getElementsByTagName("input"),t=n.length;t--;){var r=n[t];r.checked&&Sl.push(r)}}function ul(e){return setTimeout(e,0)}function us(e){return clearTimeout(e)}Nl&&Ee(document,"touchmove",function(e){(le.active||Br)&&e.cancelable&&e.preventDefault()});le.utils={on:Ee,off:ke,css:ue,find:eu,is:function(n,t){return!!Jt(n,t,n,!1)},extend:Xh,throttle:tu,closest:Jt,toggleClass:bt,clone:ru,index:Lt,nextTick:ul,cancelNextTick:us,detectDirection:lu,getChild:Si};le.get=function(e){return e[Vt]};le.mount=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];n[0].constructor===Array&&(n=n[0]),n.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(le.utils=an(an({},le.utils),r.utils)),no.mount(r)})};le.create=function(e,n){return new le(e,n)};le.version=Yh;var Ke=[],Oi,fs,hs=!1,Xl,Kl,Cl,Ii;function dp(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this))}return e.prototype={dragStarted:function(t){var r=t.originalEvent;this.sortable.nativeDraggable?Ee(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Ee(document,"pointermove",this._handleFallbackAutoScroll):r.touches?Ee(document,"touchmove",this._handleFallbackAutoScroll):Ee(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var r=t.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?ke(document,"dragover",this._handleAutoScroll):(ke(document,"pointermove",this._handleFallbackAutoScroll),ke(document,"touchmove",this._handleFallbackAutoScroll),ke(document,"mousemove",this._handleFallbackAutoScroll)),za(),fl(),Kh()},nulling:function(){Cl=fs=Oi=hs=Ii=Xl=Kl=null,Ke.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,r){var i=this,o=(t.touches?t.touches[0]:t).clientX,s=(t.touches?t.touches[0]:t).clientY,l=document.elementFromPoint(o,s);if(Cl=t,r||this.options.forceAutoScrollFallback||to||En||Ni){Zl(t,this.options,l,r);var a=Bn(l,!0);hs&&(!Ii||o!==Xl||s!==Kl)&&(Ii&&za(),Ii=setInterval(function(){var c=Bn(document.elementFromPoint(o,s),!0);c!==a&&(a=c,fl()),Zl(t,i.options,c,r)},10),Xl=o,Kl=s)}else{if(!this.options.bubbleScroll||Bn(l,!0)===sn()){fl();return}Zl(t,this.options,Bn(l,!1),!1)}}},cn(e,{pluginName:"scroll",initializeByDefault:!0})}function fl(){Ke.forEach(function(e){clearInterval(e.pid)}),Ke=[]}function za(){clearInterval(Ii)}var Zl=tu(function(e,n,t,r){if(n.scroll){var i=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,s=n.scrollSensitivity,l=n.scrollSpeed,a=sn(),c=!1,h;fs!==t&&(fs=t,fl(),Oi=n.scroll,h=n.scrollFn,Oi===!0&&(Oi=Bn(t,!0)));var p=0,d=Oi;do{var g=d,v=Je(g),S=v.top,$=v.bottom,D=v.left,T=v.right,P=v.width,I=v.height,q=void 0,G=void 0,U=g.scrollWidth,A=g.scrollHeight,L=ue(g),z=g.scrollLeft,Y=g.scrollTop;g===a?(q=P<U&&(L.overflowX==="auto"||L.overflowX==="scroll"||L.overflowX==="visible"),G=I<A&&(L.overflowY==="auto"||L.overflowY==="scroll"||L.overflowY==="visible")):(q=P<U&&(L.overflowX==="auto"||L.overflowX==="scroll"),G=I<A&&(L.overflowY==="auto"||L.overflowY==="scroll"));var Z=q&&(Math.abs(T-i)<=s&&z+P<U)-(Math.abs(D-i)<=s&&!!z),H=G&&(Math.abs($-o)<=s&&Y+I<A)-(Math.abs(S-o)<=s&&!!Y);if(!Ke[p])for(var Q=0;Q<=p;Q++)Ke[Q]||(Ke[Q]={});(Ke[p].vx!=Z||Ke[p].vy!=H||Ke[p].el!==g)&&(Ke[p].el=g,Ke[p].vx=Z,Ke[p].vy=H,clearInterval(Ke[p].pid),(Z!=0||H!=0)&&(c=!0,Ke[p].pid=setInterval(function(){r&&this.layer===0&&le.active._onTouchMove(Cl);var V=Ke[this.layer].vy?Ke[this.layer].vy*l:0,ne=Ke[this.layer].vx?Ke[this.layer].vx*l:0;typeof h=="function"&&h.call(le.dragged.parentNode[Vt],ne,V,e,Cl,Ke[this.layer].el)!=="continue"||nu(Ke[this.layer].el,ne,V)}.bind({layer:p}),24))),p++}while(n.bubbleScroll&&d!==a&&(d=Bn(d,!1)));hs=c}},30),uu=function(n){var t=n.originalEvent,r=n.putSortable,i=n.dragEl,o=n.activeSortable,s=n.dispatchSortableEvent,l=n.hideGhostForTarget,a=n.unhideGhostForTarget;if(t){var c=r||o;l();var h=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,p=document.elementFromPoint(h.clientX,h.clientY);a(),c&&!c.el.contains(p)&&(s("spill"),this.onSpill({dragEl:i,putSortable:r}))}};function xs(){}xs.prototype={startIndex:null,dragStart:function(n){var t=n.oldDraggableIndex;this.startIndex=t},onSpill:function(n){var t=n.dragEl,r=n.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var i=Si(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(t,i):this.sortable.el.appendChild(t),this.sortable.animateAll(),r&&r.animateAll()},drop:uu};cn(xs,{pluginName:"revertOnSpill"});function Ps(){}Ps.prototype={onSpill:function(n){var t=n.dragEl,r=n.putSortable,i=r||this.sortable;i.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),i.animateAll()},drop:uu};cn(Ps,{pluginName:"removeOnSpill"});var Ut;function mp(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(t){var r=t.dragEl;Ut=r},dragOverValid:function(t){var r=t.completed,i=t.target,o=t.onMove,s=t.activeSortable,l=t.changed,a=t.cancel;if(s.options.swap){var c=this.sortable.el,h=this.options;if(i&&i!==c){var p=Ut;o(i)!==!1?(bt(i,h.swapClass,!0),Ut=i):Ut=null,p&&p!==Ut&&bt(p,h.swapClass,!1)}l(),r(!0),a()}},drop:function(t){var r=t.activeSortable,i=t.putSortable,o=t.dragEl,s=i||this.sortable,l=this.options;Ut&&bt(Ut,l.swapClass,!1),Ut&&(l.swap||i&&i.options.swap)&&o!==Ut&&(s.captureAnimationState(),s!==r&&r.captureAnimationState(),gp(o,Ut),s.animateAll(),s!==r&&r.animateAll())},nulling:function(){Ut=null}},cn(e,{pluginName:"swap",eventProperties:function(){return{swapItem:Ut}}})}function gp(e,n){var t=e.parentNode,r=n.parentNode,i,o;!t||!r||t.isEqualNode(n)||r.isEqualNode(e)||(i=Lt(e),o=Lt(n),t.isEqualNode(r)&&i<o&&o++,t.insertBefore(n,t.children[i]),r.insertBefore(e,r.children[o]))}le.mount(new dp);le.mount(Ps,xs);function Ya(e,n,t){const r=e.slice();return r[22]=n[t],r[23]=n,r[24]=t,r}function Ga(e,n){let t,r,i=n[22].pattern+"",o,s,l,a,c,h,p,d,g,v,S,$,D,T,P;c=new we({props:{path:Gu,height:"1rem"}});function I(){return n[15](n[22])}d=new we({props:{path:kc,height:"1rem"}});function q(){return n[16](n[22])}function G(){n[17].call(v,n[23],n[24])}return{key:e,first:null,c(){t=b("div"),r=b("div"),o=st(i),s=_(),l=b("div"),a=b("button"),se(c.$$.fragment),h=_(),p=b("button"),se(d.$$.fragment),g=_(),v=b("input"),S=_(),f(r,"class","break-all"),f(a,"title","Edit"),f(a,"class","hover:text-primary"),f(p,"title","Remove"),f(p,"class","hover:text-primary"),f(v,"type","checkbox"),f(v,"class","ml-1"),f(l,"class","min-w-max ml-2"),f(t,"class","border my-2 p-2 flex items-center justify-between"),f(t,"data-id",$=n[22].pattern),this.first=t},m(U,A){j(U,t,A),u(t,r),u(r,o),u(t,s),u(t,l),u(l,a),re(c,a,null),u(l,h),u(l,p),re(d,p,null),u(l,g),u(l,v),v.checked=n[22].enabled,u(t,S),D=!0,T||(P=[x(a,"click",I),x(p,"click",q),x(v,"change",G),x(v,"change",n[6])],T=!0)},p(U,A){n=U,(!D||A&2)&&i!==(i=n[22].pattern+"")&&At(o,i),A&2&&(v.checked=n[22].enabled),(!D||A&2&&$!==($=n[22].pattern))&&f(t,"data-id",$)},i(U){D||(M(c.$$.fragment,U),M(d.$$.fragment,U),D=!0)},o(U){W(c.$$.fragment,U),W(d.$$.fragment,U),D=!1},d(U){U&&F(t),ie(c),ie(d),T=!1,St(P)}}}function bp(e){let n,t,r,i,o,s,l,a,c,h,p,d,g,v,S,$,D,T,P=[],I=new Map,q,G,U;r=new we({props:{path:Uu}}),l=new we({props:{path:wc}}),h=new we({props:{path:Qu}}),g=new we({props:{path:Ju}}),$=new we({props:{path:kc}});let A=e[1];const L=z=>z[22].pattern;for(let z=0;z<A.length;z+=1){let Y=Ya(e,A,z),Z=L(Y);I.set(Z,P[z]=Ga(Z,Y))}return{c(){n=b("div"),t=b("button"),se(r.$$.fragment),o=_(),s=b("button"),se(l.$$.fragment),a=_(),c=b("button"),se(h.$$.fragment),p=_(),d=b("button"),se(g.$$.fragment),v=_(),S=b("button"),se($.$$.fragment),D=_(),T=b("div");for(let z=0;z<P.length;z+=1)P[z].c();f(t,"title","Apply to current lines"),t.disabled=i=!e[2],te(t,"hover:text-primary",e[2]),te(t,"cursor-not-allowed",!e[2]),f(s,"title","Add replacement"),f(s,"class","ml-2 hover:text-primary"),f(c,"title","Enable all"),f(c,"class","ml-2 hover:text-primary"),f(d,"title","Disable all"),f(d,"class","ml-2 hover:text-primary"),f(S,"title","Remove all"),f(S,"class","ml-2 hover:text-primary"),f(n,"class","flex justify-end my-2"),f(T,"class","max-h-72 overflow-auto")},m(z,Y){j(z,n,Y),u(n,t),re(r,t,null),u(n,o),u(n,s),re(l,s,null),u(n,a),u(n,c),re(h,c,null),u(n,p),u(n,d),re(g,d,null),u(n,v),u(n,S),re($,S,null),j(z,D,Y),j(z,T,Y);for(let Z=0;Z<P.length;Z+=1)P[Z].m(T,null);e[18](T),q=!0,G||(U=[x(t,"click",e[10]),x(s,"click",e[11]),x(c,"click",e[12]),x(d,"click",e[13]),x(S,"click",e[14])],G=!0)},p(z,[Y]){(!q||Y&4&&i!==(i=!z[2]))&&(t.disabled=i),(!q||Y&4)&&te(t,"hover:text-primary",z[2]),(!q||Y&4)&&te(t,"cursor-not-allowed",!z[2]),Y&218&&(A=z[1],pt(),P=Ei(P,Y,L,1,z,A,I,T,vc,Ga,null,Ya),dt())},i(z){if(!q){M(r.$$.fragment,z),M(l.$$.fragment,z),M(h.$$.fragment,z),M(g.$$.fragment,z),M($.$$.fragment,z);for(let Y=0;Y<A.length;Y+=1)M(P[Y]);q=!0}},o(z){W(r.$$.fragment,z),W(l.$$.fragment,z),W(h.$$.fragment,z),W(g.$$.fragment,z),W($.$$.fragment,z);for(let Y=0;Y<P.length;Y+=1)W(P[Y]);q=!1},d(z){z&&F(n),ie(r),ie(l),ie(h),ie(g),ie($),z&&F(D),z&&F(T);for(let Y=0;Y<P.length;Y+=1)P[Y].d();e[18](null),G=!1,St(U)}}}function vp(e,n,t){let r,i,o,s;w(e,Yt,L=>t(3,i=L)),w(e,as,L=>t(8,o=L)),w(e,Ze,L=>t(9,s=L));const l=Ci();let a,c,h=JSON.parse(JSON.stringify(i));Ll(()=>{try{le.mount(new mp)}catch{}return a=le.create(c,{swap:!0,swapClass:"swap",animation:150,store:{get:v,set:d}}),()=>a==null?void 0:a.destroy()});function p(L){const z=S();t(1,h=z.map(Y=>({...Y,enabled:L}))),R(Yt,i=h,i)}function d(){R(Yt,i=S(),i)}function g(L){t(1,h=L),R(Yt,i=L,i),a.sort(v(),!1)}function v(){return[...h.map(L=>L.pattern)]}function S(){const L=a.toArray();return h.slice().sort((z,Y)=>L.indexOf(z.pattern)-L.indexOf(Y.pattern))}const $=()=>l("applyReplacements"),D=()=>l("edit",void 0),T=()=>p(!0),P=()=>p(!1),I=()=>g([]),q=L=>l("edit",L),G=L=>g(i.filter(z=>z.pattern!==L.pattern));function U(L,z){L[z].enabled=this.checked,t(1,h)}function A(L){at[L?"unshift":"push"](()=>{c=L,t(0,c)})}return e.$$.update=()=>{e.$$.dirty&768&&t(2,r=!!s.length&&!!o.length)},[c,h,r,i,l,p,d,g,o,s,$,D,T,P,I,q,G,U,A]}class _p extends Tt{constructor(n){super(),Dt(this,n,vp,bp,mt,{})}}function yp(e){let n,t,r,i,o,s,l,a;return r=new we({props:{path:wc}}),{c(){n=b("div"),t=b("button"),se(r.$$.fragment),i=_(),o=b("div"),o.textContent="You have currently no replacements configured",f(t,"title","Add replacement"),f(t,"class","ml-2 hover:text-primary"),f(n,"class","flex justify-end my-2")},m(c,h){j(c,n,h),u(n,t),re(r,t,null),j(c,i,h),j(c,o,h),s=!0,l||(a=x(t,"click",e[7]),l=!0)},p:Le,i(c){s||(M(r.$$.fragment,c),s=!0)},o(c){W(r.$$.fragment,c),s=!1},d(c){c&&F(n),ie(r),c&&F(i),c&&F(o),l=!1,a()}}}function wp(e){let n=e[0],t,r,i=qa(e);return{c(){i.c(),t=Gn()},m(o,s){i.m(o,s),j(o,t,s),r=!0},p(o,s){s&1&&mt(n,n=o[0])?(pt(),W(i,1,1,Le),dt(),i=qa(o),i.c(),M(i,1),i.m(t.parentNode,t)):i.p(o,s)},i(o){r||(M(i),r=!0)},o(o){W(i),r=!1},d(o){o&&F(t),i.d(o)}}}function kp(e){let n,t;return n=new Uh({props:{currentReplacement:e[2]}}),n.$on("close",e[4]),{c(){se(n.$$.fragment)},m(r,i){re(n,r,i),t=!0},p(r,i){const o={};i&4&&(o.currentReplacement=r[2]),n.$set(o)},i(r){t||(M(n.$$.fragment,r),t=!0)},o(r){W(n.$$.fragment,r),t=!1},d(r){ie(n,r)}}}function qa(e){let n,t;return n=new _p({}),n.$on("edit",e[5]),n.$on("applyReplacements",e[6]),{c(){se(n.$$.fragment)},m(r,i){re(n,r,i),t=!0},p:Le,i(r){t||(M(n.$$.fragment,r),t=!0)},o(r){W(n.$$.fragment,r),t=!1},d(r){ie(n,r)}}}function Sp(e){let n,t,r,i,o,s,l;const a=[kp,wp,yp],c=[];function h(p,d){return p[1]?0:p[3]?1:2}return o=h(e),s=c[o]=a[o](e),{c(){n=b("details"),t=b("summary"),t.textContent="Replacements",r=_(),i=b("div"),s.c(),f(i,"class","mb-8"),f(n,"class","col-span-4 mb-2 cursor-pointer max-w-lg")},m(p,d){j(p,n,d),u(n,t),u(n,r),u(n,i),c[o].m(i,null),l=!0},p(p,[d]){let g=o;o=h(p),o===g?c[o].p(p,d):(pt(),W(c[g],1,1,()=>{c[g]=null}),dt(),s=c[o],s?s.p(p,d):(s=c[o]=a[o](p),s.c()),M(s,1),s.m(i,null))},i(p){l||(M(s),l=!0)},o(p){W(s),l=!1},d(p){p&&F(n),c[o].d()}}}function Cp(e,n,t){let r,i;w(e,Yt,d=>t(0,i=d));let o=!1,s;function l(d){t(1,o=!1)}const a=()=>{t(1,o=!1),t(2,s=void 0)},c=({detail:d})=>{t(2,s=d),t(1,o=!0)};function h(d){Ui.call(this,e,d)}const p=()=>t(1,o=!0);return e.$$.update=()=>{e.$$.dirty&1&&t(3,r=!!i.length),e.$$.dirty&1&&l()},[i,o,s,r,a,c,h,p]}class Ep extends Tt{constructor(n){super(),Dt(this,n,Cp,Sp,mt,{})}}const{document:Xa}=bc;function Ka(e,n,t){const r=e.slice();return r[145]=n[t],r}function Za(e){let n,t,r,i,o,s,l,a,c,h,p,d,g,v,S,$,D,T,P,I,q,G,U,A,L,z,Y,Z,H,Q,V,ne,X,de,ge,Be,De,We,ct,_e,be,je,Qe,$e,Ie,ae,ze,Ye,Te,qe,ut,Ve,Se,Xe,yt,ve,xe,ye,Ct,Me,k,oe,Ge,Ne,rt,wt,Ot,it,It,Oe,C,N,ft,Ft,qt,ot,Xt,$t,Qt,Mt,Nt=[],Cr=new Map,Er,Ln,Lr,Rt,y,J,fe,he,me,et,Kt,jt,ro,xr,io,fn,oo,Pr,lo,hn,so,Ar,ao,pn,co,Dr,uo,dn,fo,Tr,ho,en,po,Or,mo,tn,go,Ir,bo,nn,vo,$r,_o,rn,yo,Mr,wo,mn,ko,Nr,So,gn,Co,Rr,Eo,bn,Lo,Hr,xo,vn,Po,Vr,Ao,_n,Do,m,K,ce,Pe,lt,tt,nt,Xn,To,As,Kn,Ds,Oo,Ts,Zn,Os,Io,Is,Jn,$s,$o,Ms,xn,Ns,Mo,Rs,Pn,Hs,No,Vs,Qn,Fs,Ro,js,An,Us,Ho,Bs,er,Ws,Vo,zs,tr,Ys,Fo,Gs,nr,qs,jo,Xs,rr,Ks,Uo,Zs,ir,Js,Bo,Qs,or,ea,Wo,ta,lr,na,zo,ra,sr,ia,Yo,oa,Dn,la,Go,sa,ar,aa,xi,ca,Tn,On,Rl,ua;p=new we({props:{path:Zu}}),$=new we({props:{path:Ku}}),q=new we({props:{path:Mi}}),z=new we({props:{path:Mi}}),V=new we({props:{path:Mi}}),Be=new we({props:{path:ns}}),be=new we({props:{path:ns}}),qe=new we({props:{class:"swap-on",path:ef}}),Ve=new we({props:{class:"swap-off",path:tf}});let hu={};ye=new Kc({props:hu}),e[77](ye),ye.$on("layoutChange",e[78]),ye.$on("exportImportPreset",e[79]),Me=new Ep({}),Me.$on("applyReplacements",e[80]);let qo=e[50];const fa=O=>O[145];for(let O=0;O<qo.length;O+=1){let ee=Ka(e,qo,O),In=fa(ee);Cr.set(In,Nt[O]=Ja(In,ee))}return{c(){n=b("input"),t=_(),r=b("input"),i=_(),o=b("input"),s=_(),l=b("div"),a=b("div"),c=b("div"),h=b("div"),se(p.$$.fragment),d=_(),g=b("span"),g.textContent="Set Timer",v=_(),S=b("div"),se($.$$.fragment),D=_(),T=b("span"),T.textContent="Reset Timer",P=_(),I=b("div"),se(q.$$.fragment),G=_(),U=b("span"),U.textContent="Reset Lines",A=_(),L=b("div"),se(z.$$.fragment),Y=_(),Z=b("span"),Z.textContent="Reset Data",H=_(),Q=b("div"),se(V.$$.fragment),ne=_(),X=b("span"),X.textContent="Reset All",de=_(),ge=b("div"),se(Be.$$.fragment),De=_(),We=b("span"),We.textContent="Ex-/Import Data",ct=_(),_e=b("div"),se(be.$$.fragment),je=_(),Qe=b("span"),Qe.textContent="Ex-/Import Settings",$e=_(),Ie=b("div"),ae=b("label"),ze=b("input"),Te=_(),se(qe.$$.fragment),ut=_(),se(Ve.$$.fragment),Se=_(),Xe=b("span"),Xe.textContent="Theme",yt=_(),ve=b("details"),ve.innerHTML=`<summary>Links</summary>
|
29
29
|
<ul><li class="my-0.5 hover:text-primary"><a href="https://github.com/Renji-XD/texthooker-ui" target="_blank" rel="noreferrer">texthooker-ui Repository</a></li>
|
30
30
|
<li class="my-0.5 hover:text-primary"><a href="https://github.com/Artikash/Textractor" target="_blank" rel="noreferrer">Textractor</a></li>
|
31
31
|
<li class="my-0.5 hover:text-primary"><a href="https://github.com/kuroahna/textractor_websocket" target="_blank" rel="noreferrer">textractor-websocket Extension</a></li>
|
32
|
-
<li class="my-0.5 hover:text-primary"><a href="https://github.com/KamWithK/TextractorSender" target="_blank" rel="noreferrer">TextractorSender Extension</a></li>
|
32
|
+
<li class="my-0.5 hover:text-primary"><a href="https://github.com/KamWithK/TextractorSender" target="_blank" rel="noreferrer">TextractorSender Extension</a></li>
|
33
33
|
<li class="my-0.5 hover:text-primary"><a href="https://github.com/kuroahna/mpv_websocket" target="_blank" rel="noreferrer">mpv_websocket Plugin</a></li>
|
34
34
|
<li class="my-0.5 hover:text-primary"><a href="https://github.com/0xDC00/agent" target="_blank" rel="noreferrer">Agent</a></li>
|
35
35
|
<li class="my-0.5 hover:text-primary"><a href="https://github.com/kmltml/clipboard-inserter" target="_blank" rel="noreferrer">Clipboard Inserter</a></li>
|
36
|
-
<li class="my-0.5 hover:text-primary"><a href="https://github.com/laplus-sadness/lap-clipboard-inserter" target="_blank" rel="noreferrer">lap-clipboard-inserter</a></li></ul>`,Pe=_(),se(ye.$$.fragment),Et=_(),se(Ne.$$.fragment),k=_(),ie=b("span"),ie.textContent="Window Title",qe=_(),Re=b("input"),ot=_(),kt=b("span"),kt.textContent="Primary Websocket",Ot=_(),it=b("input"),It=_(),Ie=b("span"),Ie.textContent="Secondary Websocket",C=_(),N=b("input"),ht=_(),Ft=b("span"),Ft.textContent="Font Size",qt=_(),lt=b("input"),Xt=_(),$t=b("span"),$t.textContent="Online Font",Qt=_(),Mt=b("select");for(let O=0;O<Nt.length;O+=1)Nt[O].c();Er=_(),Ln=b("span"),Ln.textContent="Prevent Last Line Duplicate",Lr=_(),Rt=b("input"),y=_(),J=b("span"),J.textContent="Max lines",fe=_(),pe=b("input"),me=_(),tt=b("span"),tt.textContent="AFK Timer (s)",Kt=_(),jt=b("input"),oi=_(),xr=b("span"),xr.textContent="Adjust Timer after AFK",ii=_(),fn=b("input"),li=_(),Pr=b("span"),Pr.textContent="Enable external Clipboard Monitor",si=_(),hn=b("input"),ai=_(),Ar=b("span"),Ar.textContent="Show Preset Quick Switch",ci=_(),pn=b("input"),ui=_(),Dr=b("span"),Dr.textContent="Skip Reset Confirmations",fi=_(),dn=b("input"),hi=_(),Tr=b("span"),Tr.textContent="Store Stats persistently",pi=_(),en=b("input"),di=_(),Or=b("span"),Or.textContent="Store Notes persistently",mi=_(),tn=b("input"),gi=_(),Ir=b("span"),Ir.textContent="Store Lines persistently",bi=_(),nn=b("input"),vi=_(),$r=b("span"),$r.textContent="Store Action History persistently",_i=_(),rn=b("input"),yi=_(),Mr=b("span"),Mr.textContent="Enable Paste",wi=_(),mn=b("input"),ki=_(),Nr=b("span"),Nr.textContent="Block Copy from Page",Si=_(),gn=b("input"),Ci=_(),Rr=b("span"),Rr.textContent="Allow Paste during Pause",Ei=_(),bn=b("input"),Li=_(),Hr=b("span"),Hr.textContent="Allow new Line during Pause",xi=_(),vn=b("input"),Pi=_(),Vr=b("span"),Vr.textContent="Autostart Timer by Paste during Pause",Ai=_(),_n=b("input"),Di=_(),m=b("span"),m.textContent="Autostart Timer by Line during Pause",K=_(),ce=b("input"),Ae=_(),st=b("span"),st.textContent="Prevent Global Duplicate",nt=_(),rt=b("input"),Xn=_(),Ti=b("span"),Ti.textContent="Merge equal Line Starts",As=_(),Kn=b("input"),Ds=_(),Oi=b("span"),Oi.textContent="Filter lines without jp content",Ts=_(),Zn=b("input"),Os=_(),Ii=b("span"),Ii.textContent="Flash on missed Line",Is=_(),Jn=b("input"),$s=_(),$i=b("span"),$i.textContent="Display Text vertically",Ms=_(),xn=b("input"),Ns=_(),Mi=b("span"),Mi.textContent="Reverse Line Order",Rs=_(),Pn=b("input"),Hs=_(),Ni=b("span"),Ni.textContent="Preserve Whitespace",Vs=_(),Qn=b("input"),Fs=_(),Ri=b("span"),Ri.textContent="Remove all Whitespace",js=_(),An=b("input"),Us=_(),Hi=b("span"),Hi.textContent="Show Timer",Bs=_(),er=b("input"),Ws=_(),Vi=b("span"),Vi.textContent="Show Speed",zs=_(),tr=b("input"),Ys=_(),Fi=b("span"),Fi.textContent="Show Character Count",Gs=_(),nr=b("input"),qs=_(),ji=b("span"),ji.textContent="Show Line Count",Xs=_(),rr=b("input"),Ks=_(),Ui=b("span"),Ui.textContent="Blur Stats",Zs=_(),or=b("input"),Js=_(),Bi=b("span"),Bi.textContent="Enable Line Animation",Qs=_(),ir=b("input"),ea=_(),Wi=b("span"),Wi.textContent="Enable AFK Blur",ta=_(),lr=b("input"),na=_(),zi=b("span"),zi.textContent="Restart Timer after AFK Blur",ra=_(),sr=b("input"),oa=_(),Yi=b("span"),Yi.textContent="Continuous Reconnect",ia=_(),Dn=b("input"),la=_(),Gi=b("span"),Gi.textContent="Show Connection Errors",sa=_(),ar=b("input"),aa=_(),Po=b("span"),Po.textContent="Custom CSS",ca=_(),Tn=b("textarea"),f(n,"class","hidden"),f(n,"type","file"),f(r,"class","hidden"),f(r,"type","file"),f(i,"class","hidden"),f(i,"type","file"),f(g,"class","label-text"),f(h,"role","button"),f(h,"class","flex flex-col items-center hover:text-primary"),f(T,"class","label-text"),f(S,"role","button"),f(S,"class","flex flex-col items-center hover:text-primary"),f(U,"class","label-text"),f($,"role","button"),f($,"class","flex flex-col items-center hover:text-primary"),f(Z,"class","label-text"),f(L,"role","button"),f(L,"class","flex flex-col items-center hover:text-primary"),f(X,"class","label-text"),f(Q,"role","button"),f(Q,"class","flex flex-col items-center hover:text-primary"),f(ze,"class","label-text"),f(ge,"role","button"),f(ge,"class","flex flex-col items-center hover:text-primary"),f(et,"class","label-text"),f(_e,"role","button"),f(_e,"class","flex flex-col items-center hover:text-primary"),f(Ye,"type","checkbox"),Ye.checked=Ge=e[4]===Wt.BUSINESS,f(ae,"class","swap swap-rotate"),f(Ke,"class","label-text"),f($e,"role","button"),f($e,"class","flex flex-col items-center hover:text-primary"),f(c,"class","flex justify-between text-sm gap-x-5"),f(a,"class","mb-2"),Le(a,"grid-column","1/5"),f(ve,"role","button"),f(ve,"class","col-span-4 mb-2"),f(ie,"class","label-text col-span-2"),f(Re,"class","input input-bordered h-8 col-span-2"),f(kt,"class","label-text col-span-2"),f(it,"class","input input-bordered h-8 col-span-2"),f(Ie,"class","label-text col-span-2"),f(N,"class","input input-bordered h-8 col-span-2"),f(Ft,"class","label-text col-span-2"),f(lt,"type","number"),f(lt,"class","input input-bordered h-8 col-span-2"),f(lt,"min","1"),f($t,"class","label-text mr-4 col-span-2"),f(Mt,"class","select col-span-2"),e[19]===void 0&&br(()=>e[87].call(Mt)),f(Ln,"class","label-text col-span-2"),f(Rt,"type","number"),f(Rt,"class","input input-bordered h-8 col-span-2"),f(Rt,"min","0"),Rt.value=e[16],f(J,"class","label-text col-span-2"),f(pe,"type","number"),f(pe,"class","input input-bordered h-8 mb-2 col-span-2"),f(pe,"min","0"),pe.value=e[15],f(tt,"class","label-text col-span-2"),f(jt,"type","number"),f(jt,"class","input input-bordered h-8 mb-2 col-span-2"),f(jt,"min","0"),f(xr,"class","label-text"),f(fn,"type","checkbox"),f(fn,"class","checkbox checkbox-primary ml-2"),f(Pr,"class","label-text"),f(hn,"type","checkbox"),f(hn,"class","checkbox checkbox-primary ml-2"),f(Ar,"class","label-text"),f(pn,"type","checkbox"),f(pn,"class","checkbox checkbox-primary ml-2"),f(Dr,"class","label-text"),f(dn,"type","checkbox"),f(dn,"class","checkbox checkbox-primary ml-2"),f(Tr,"class","label-text"),f(en,"type","checkbox"),f(en,"class","checkbox checkbox-primary ml-2"),f(Or,"class","label-text"),f(tn,"type","checkbox"),f(tn,"class","checkbox checkbox-primary ml-2"),f(Ir,"class","label-text"),f(nn,"type","checkbox"),f(nn,"class","checkbox checkbox-primary ml-2"),f($r,"class","label-text"),f(rn,"type","checkbox"),f(rn,"class","checkbox checkbox-primary ml-2"),f(Mr,"class","label-text"),f(mn,"type","checkbox"),f(mn,"class","checkbox checkbox-primary ml-2"),f(Nr,"class","label-text"),f(gn,"type","checkbox"),f(gn,"class","checkbox checkbox-primary ml-2"),f(Rr,"class","label-text"),f(bn,"type","checkbox"),f(bn,"class","checkbox checkbox-primary ml-2"),f(Hr,"class","label-text"),f(vn,"type","checkbox"),f(vn,"class","checkbox checkbox-primary ml-2"),f(Vr,"class","label-text"),f(_n,"type","checkbox"),f(_n,"class","checkbox checkbox-primary ml-2"),f(m,"class","label-text"),f(ce,"type","checkbox"),f(ce,"class","checkbox checkbox-primary ml-2"),f(st,"class","label-text"),f(rt,"type","checkbox"),f(rt,"class","checkbox checkbox-primary ml-2"),f(Ti,"class","label-text"),f(Kn,"type","checkbox"),f(Kn,"class","checkbox checkbox-primary ml-2"),f(Oi,"class","label-text"),f(Zn,"type","checkbox"),f(Zn,"class","checkbox checkbox-primary ml-2"),f(Ii,"class","label-text"),f(Jn,"type","checkbox"),f(Jn,"class","checkbox checkbox-primary ml-2"),f($i,"class","label-text"),f(xn,"type","checkbox"),f(xn,"class","checkbox checkbox-primary ml-2"),f(Mi,"class","label-text"),f(Pn,"type","checkbox"),f(Pn,"class","checkbox checkbox-primary ml-2"),f(Ni,"class","label-text"),f(Qn,"type","checkbox"),f(Qn,"class","checkbox checkbox-primary ml-2"),f(Ri,"class","label-text"),f(An,"type","checkbox"),f(An,"class","checkbox checkbox-primary ml-2"),f(Hi,"class","label-text"),f(er,"type","checkbox"),f(er,"class","checkbox checkbox-primary ml-2"),f(Vi,"class","label-text"),f(tr,"type","checkbox"),f(tr,"class","checkbox checkbox-primary ml-2"),f(Fi,"class","label-text"),f(nr,"type","checkbox"),f(nr,"class","checkbox checkbox-primary ml-2"),f(ji,"class","label-text"),f(rr,"type","checkbox"),f(rr,"class","checkbox checkbox-primary ml-2"),f(Ui,"class","label-text"),f(or,"type","checkbox"),f(or,"class","checkbox checkbox-primary ml-2"),f(Bi,"class","label-text"),f(ir,"type","checkbox"),f(ir,"class","checkbox checkbox-primary ml-2"),f(Wi,"class","label-text"),f(lr,"type","checkbox"),f(lr,"class","checkbox checkbox-primary ml-2"),f(zi,"class","label-text"),f(sr,"type","checkbox"),f(sr,"class","checkbox checkbox-primary ml-2"),f(Yi,"class","label-text"),f(Dn,"type","checkbox"),f(Dn,"class","checkbox checkbox-primary ml-2"),f(Gi,"class","label-text"),f(ar,"type","checkbox"),f(ar,"class","checkbox checkbox-primary ml-2"),f(Po,"class","label-text"),Le(Po,"grid-column","1/5"),f(Tn,"class","p-1 min-h-[10rem] font-mono"),Le(Tn,"grid-column","1/5"),f(Tn,"rows","5"),Tn.value=e[2],f(l,"class","grid grid-cols-[max-content,auto,max-content,auto] gap-3 absolute overflow-auto h-[90vh] top-11 z-10 py-4 pr-8 pl-4 border bg-base-200")},m(O,ee){j(O,n,ee),e[70](n),j(O,t,ee),j(O,r,ee),e[71](r),j(O,o,ee),j(O,i,ee),e[72](i),j(O,s,ee),j(O,l,ee),u(l,a),u(a,c),u(c,h),re(p,h,null),u(h,d),u(h,g),u(c,v),u(c,S),re(I,S,null),u(S,D),u(S,T),u(c,P),u(c,$),re(q,$,null),u($,G),u($,U),u(c,A),u(c,L),re(z,L,null),u(L,Y),u(L,Z),u(c,H),u(c,Q),re(V,Q,null),u(Q,ne),u(Q,X),u(c,de),u(c,ge),re(We,ge,null),u(ge,Te),u(ge,ze),u(c,ut),u(c,_e),re(be,_e,null),u(_e,Ue),u(_e,et),u(c,Me),u(c,$e),u($e,ae),u(ae,Ye),u(ae,Oe),re(Xe,ae,null),u(ae,ft),re(Fe,ae,null),u($e,Se),u($e,Ke),u(l,wt),u(l,ve),u(l,Pe),re(ye,l,null),u(l,Et),re(Ne,l,null),u(l,k),u(l,ie),u(l,qe),u(l,Re),_t(Re,e[17]),u(l,ot),u(l,kt),u(l,Ot),u(l,it),_t(it,e[11]),u(l,It),u(l,Ie),u(l,C),u(l,N),_t(N,e[10]),u(l,ht),u(l,Ft),u(l,qt),u(l,lt),_t(lt,e[18]),u(l,Xt),u(l,$t),u(l,Qt),u(l,Mt);for(let In=0;In<Nt.length;In+=1)Nt[In].m(Mt,null);qr(Mt,e[19]),u(l,Er),u(l,Ln),u(l,Lr),u(l,Rt),u(l,y),u(l,J),u(l,fe),u(l,pe),u(l,me),u(l,tt),u(l,Kt),u(l,jt),_t(jt,e[20]),u(l,oi),u(l,xr),u(l,ii),u(l,fn),fn.checked=e[21],u(l,li),u(l,Pr),u(l,si),u(l,hn),hn.checked=e[3],u(l,ai),u(l,Ar),u(l,ci),u(l,pn),pn.checked=e[22],u(l,ui),u(l,Dr),u(l,fi),u(l,dn),dn.checked=e[12],u(l,hi),u(l,Tr),u(l,pi),u(l,en),en.checked=e[23],u(l,di),u(l,Or),u(l,mi),u(l,tn),tn.checked=e[24],u(l,gi),u(l,Ir),u(l,bi),u(l,nn),nn.checked=e[25],u(l,vi),u(l,$r),u(l,_i),u(l,rn),rn.checked=e[26],u(l,yi),u(l,Mr),u(l,wi),u(l,mn),mn.checked=e[27],u(l,ki),u(l,Nr),u(l,Si),u(l,gn),gn.checked=e[28],u(l,Ci),u(l,Rr),u(l,Ei),u(l,bn),bn.checked=e[29],u(l,Li),u(l,Hr),u(l,xi),u(l,vn),vn.checked=e[30],u(l,Pi),u(l,Vr),u(l,Ai),u(l,_n),_n.checked=e[31],u(l,Di),u(l,m),u(l,K),u(l,ce),ce.checked=e[32],u(l,Ae),u(l,st),u(l,nt),u(l,rt),rt.checked=e[14],u(l,Xn),u(l,Ti),u(l,As),u(l,Kn),Kn.checked=e[33],u(l,Ds),u(l,Oi),u(l,Ts),u(l,Zn),Zn.checked=e[34],u(l,Os),u(l,Ii),u(l,Is),u(l,Jn),Jn.checked=e[35],u(l,$s),u(l,$i),u(l,Ms),u(l,xn),xn.checked=e[36],u(l,Ns),u(l,Mi),u(l,Rs),u(l,Pn),Pn.checked=e[37],u(l,Hs),u(l,Ni),u(l,Vs),u(l,Qn),Qn.checked=e[38],u(l,Fs),u(l,Ri),u(l,js),u(l,An),An.checked=e[13],u(l,Us),u(l,Hi),u(l,Bs),u(l,er),er.checked=e[39],u(l,Ws),u(l,Vi),u(l,zs),u(l,tr),tr.checked=e[40],u(l,Ys),u(l,Fi),u(l,Gs),u(l,nr),nr.checked=e[41],u(l,qs),u(l,ji),u(l,Xs),u(l,rr),rr.checked=e[42],u(l,Ks),u(l,Ui),u(l,Zs),u(l,or),or.checked=e[43],u(l,Js),u(l,Bi),u(l,Qs),u(l,ir),ir.checked=e[44],u(l,ea),u(l,Wi),u(l,ta),u(l,lr),lr.checked=e[45],u(l,na),u(l,zi),u(l,ra),u(l,sr),sr.checked=e[46],u(l,oa),u(l,Yi),u(l,ia),u(l,Dn),Dn.checked=e[47],u(l,la),u(l,Gi),u(l,sa),u(l,ar),ar.checked=e[48],u(l,aa),u(l,Po),u(l,ca),u(l,Tn),On=!0,Nl||(ua=[x(n,"change",e[58]),x(r,"change",e[59]),x(i,"change",e[60]),x(h,"click",e[53]),x(h,"keyup",Pt),x(S,"click",e[54]),x(S,"keyup",Pt),x($,"click",e[73]),x($,"keyup",Pt),x(L,"click",e[74]),x(L,"keyup",Pt),x(Q,"click",dh),x(Q,"keyup",Pt),x(ge,"click",e[55]),x(ge,"keyup",Pt),x(_e,"click",e[56]),x(_e,"keyup",Pt),x(Ye,"change",e[75]),x($e,"click",e[76]),x($e,"keyup",Pt),x(Re,"input",e[81]),x(it,"input",e[82]),x(it,"change",e[83]),x(N,"input",e[84]),x(N,"change",e[51]),x(lt,"input",e[85]),x(lt,"blur",e[86]),x(Mt,"change",e[87]),x(Rt,"blur",e[62]),x(pe,"blur",e[63]),x(jt,"input",e[88]),x(jt,"blur",e[89]),x(fn,"change",e[90]),x(hn,"change",e[91]),x(pn,"change",e[92]),x(dn,"change",e[93]),x(en,"change",e[94]),x(en,"change",e[95]),x(tn,"change",e[96]),x(tn,"change",e[97]),x(nn,"change",e[98]),x(nn,"change",e[99]),x(rn,"change",e[100]),x(rn,"change",e[101]),x(mn,"change",e[102]),x(gn,"change",e[103]),x(bn,"change",e[104]),x(vn,"change",e[105]),x(_n,"change",e[106]),x(ce,"change",e[107]),x(rt,"change",e[108]),x(rt,"change",e[64]),x(Kn,"change",e[109]),x(Zn,"change",e[110]),x(Jn,"change",e[111]),x(xn,"change",e[112]),x(xn,"change",e[113]),x(Pn,"change",e[114]),x(Pn,"change",e[115]),x(Qn,"change",e[116]),x(An,"change",e[117]),x(An,"change",e[65]),x(er,"change",e[118]),x(tr,"change",e[119]),x(nr,"change",e[120]),x(rr,"change",e[121]),x(or,"change",e[122]),x(ir,"change",e[123]),x(lr,"change",e[124]),x(sr,"change",e[125]),x(Dn,"change",e[126]),x(Dn,"change",e[127]),x(ar,"change",e[128]),x(Tn,"blur",e[66]),_u(Vh.call(null,l,e[52]))],Nl=!0)},p(O,ee){(!On||ee[0]&16&&Ge!==(Ge=O[4]===Wt.BUSINESS))&&(Ye.checked=Ge);const In={};ye.$set(In),ee[0]&131072&&Re.value!==O[17]&&_t(Re,O[17]),ee[0]&2048&&it.value!==O[11]&&_t(it,O[11]),ee[0]&1024&&N.value!==O[10]&&_t(N,O[10]),ee[0]&262144&&fl(lt.value)!==O[18]&&_t(lt,O[18]),ee[1]&524288&&(qi=O[50],Nt=Lo(Nt,ee,fa,1,O,qi,Cr,Mt,Ll,Ja,null,Ka)),ee[0]&524288|ee[1]&524288&&qr(Mt,O[19]),(!On||ee[0]&65536&&Rt.value!==O[16])&&(Rt.value=O[16]),(!On||ee[0]&32768&&pe.value!==O[15])&&(pe.value=O[15]),ee[0]&1048576&&fl(jt.value)!==O[20]&&_t(jt,O[20]),ee[0]&2097152&&(fn.checked=O[21]),ee[0]&8&&(hn.checked=O[3]),ee[0]&4194304&&(pn.checked=O[22]),ee[0]&4096&&(dn.checked=O[12]),ee[0]&8388608&&(en.checked=O[23]),ee[0]&16777216&&(tn.checked=O[24]),ee[0]&33554432&&(nn.checked=O[25]),ee[0]&67108864&&(rn.checked=O[26]),ee[0]&134217728&&(mn.checked=O[27]),ee[0]&268435456&&(gn.checked=O[28]),ee[0]&536870912&&(bn.checked=O[29]),ee[0]&1073741824&&(vn.checked=O[30]),ee[1]&1&&(_n.checked=O[31]),ee[1]&2&&(ce.checked=O[32]),ee[0]&16384&&(rt.checked=O[14]),ee[1]&4&&(Kn.checked=O[33]),ee[1]&8&&(Zn.checked=O[34]),ee[1]&16&&(Jn.checked=O[35]),ee[1]&32&&(xn.checked=O[36]),ee[1]&64&&(Pn.checked=O[37]),ee[1]&128&&(Qn.checked=O[38]),ee[0]&8192&&(An.checked=O[13]),ee[1]&256&&(er.checked=O[39]),ee[1]&512&&(tr.checked=O[40]),ee[1]&1024&&(nr.checked=O[41]),ee[1]&2048&&(rr.checked=O[42]),ee[1]&4096&&(or.checked=O[43]),ee[1]&8192&&(ir.checked=O[44]),ee[1]&16384&&(lr.checked=O[45]),ee[1]&32768&&(sr.checked=O[46]),ee[1]&65536&&(Dn.checked=O[47]),ee[1]&131072&&(ar.checked=O[48]),(!On||ee[0]&4)&&(Tn.value=O[2])},i(O){On||(M(p.$$.fragment,O),M(I.$$.fragment,O),M(q.$$.fragment,O),M(z.$$.fragment,O),M(V.$$.fragment,O),M(We.$$.fragment,O),M(be.$$.fragment,O),M(Xe.$$.fragment,O),M(Fe.$$.fragment,O),M(ye.$$.fragment,O),M(Ne.$$.fragment,O),On=!0)},o(O){W(p.$$.fragment,O),W(I.$$.fragment,O),W(q.$$.fragment,O),W(z.$$.fragment,O),W(V.$$.fragment,O),W(We.$$.fragment,O),W(be.$$.fragment,O),W(Xe.$$.fragment,O),W(Fe.$$.fragment,O),W(ye.$$.fragment,O),W(Ne.$$.fragment,O),On=!1},d(O){O&&F(n),e[70](null),O&&F(t),O&&F(r),e[71](null),O&&F(o),O&&F(i),e[72](null),O&&F(s),O&&F(l),oe(p),oe(I),oe(q),oe(z),oe(V),oe(We),oe(be),oe(Xe),oe(Fe),e[77](null),oe(ye),oe(Ne);for(let ee=0;ee<Nt.length;ee+=1)Nt[ee].d();Nl=!1,Ct(ua)}}}function Ja(e,n){let t,r=n[145]+"",o,i;return{key:e,first:null,c(){t=b("option"),o=at(r),i=_(),t.__value=n[145],t.value=t.__value,this.first=t},m(s,l){j(s,t,l),u(t,o),u(t,i)},p(s,l){n=s},d(s){s&&F(t)}}}function Lp(e){let n,t,r,o;Xa.title=n=e[17]||"Texthooker UI";let i=e[0]&&Za(e);return{c(){t=_(),i&&i.c(),r=Gn()},m(s,l){j(s,t,l),i&&i.m(s,l),j(s,r,l),o=!0},p(s,l){(!o||l[0]&131072)&&n!==(n=s[17]||"Texthooker UI")&&(Xa.title=n),s[0]?i?(i.p(s,l),l[0]&1&&M(i,1)):(i=Za(s),i.c(),M(i,1),i.m(r.parentNode,r)):i&&(dt(),W(i,1,1,()=>{i=null}),mt())},i(s){o||(M(i),o=!0)},o(s){W(i),o=!1},d(s){s&&F(t),i&&i.d(s),s&&F(r)}}}function xp(e){const n=document.createTextNode(e);let t=document.getElementById("user-css");t?t.replaceChild(n,t.firstChild):(t=document.createElement("style"),t.id="user-css",t.appendChild(n),document.head.append(t))}function Zl(e,n){const t=document.createElement("a");t.href=URL.createObjectURL(new Blob([JSON.stringify(n)],{type:"application/json"})),t.rel="noopener",t.download=e,setTimeout(()=>{URL.revokeObjectURL(t.href)},1e4),setTimeout(()=>{t.click()})}function Pp(e,n,t){let r,o,i,s,l,a,c,h,p,d,g,v,S,I,D,T,P,$,q,G,U,A,L,z,Y,Z,H,Q,V,ne,X,de,ge,We,Te,ze,ut,_e,be,Ue,et,Me,$e,ae,Ye,Ge,Oe,Xe,ft,Fe,Se,Ke,wt;w(e,He,m=>t(130,i=m)),w(e,Jr,m=>t(12,s=m)),w(e,Ko,m=>t(2,l=m)),w(e,Je,m=>t(131,a=m)),w(e,ho,m=>t(13,c=m)),w(e,_r,m=>t(14,h=m)),w(e,pr,m=>t(15,p=m)),w(e,gr,m=>t(16,d=m)),w(e,Un,m=>t(132,g=m)),w(e,on,m=>t(133,v=m)),w(e,Nn,m=>t(134,S=m)),w(e,Zo,m=>t(135,I=m)),w(e,ln,m=>t(136,D=m)),w(e,vl,m=>t(137,T=m)),w(e,il,m=>t(138,P=m)),w(e,wn,m=>t(69,$=m)),w(e,qo,m=>t(3,q=m)),w(e,dr,m=>t(4,G=m)),w(e,Yn,m=>t(5,U=m)),w(e,Go,m=>t(17,A=m)),w(e,mr,m=>t(18,L=m)),w(e,Kr,m=>t(19,z=m)),w(e,Wn,m=>t(20,Y=m)),w(e,Zr,m=>t(21,Z=m)),w(e,Xo,m=>t(22,H=m)),w(e,Qr,m=>t(23,Q=m)),w(e,eo,m=>t(24,V=m)),w(e,to,m=>t(25,ne=m)),w(e,no,m=>t(26,X=m)),w(e,ro,m=>t(27,de=m)),w(e,oo,m=>t(28,ge=m)),w(e,io,m=>t(29,We=m)),w(e,lo,m=>t(30,Te=m)),w(e,so,m=>t(31,ze=m)),w(e,ao,m=>t(32,ut=m)),w(e,co,m=>t(33,_e=m)),w(e,gl,m=>t(34,be=m)),w(e,uo,m=>t(35,Ue=m)),w(e,yr,m=>t(36,et=m)),w(e,wr,m=>t(37,Me=m)),w(e,fo,m=>t(38,$e=m)),w(e,po,m=>t(39,ae=m)),w(e,mo,m=>t(40,Ye=m)),w(e,go,m=>t(41,Ge=m)),w(e,bo,m=>t(42,Oe=m)),w(e,vo,m=>t(43,Xe=m)),w(e,_o,m=>t(44,ft=m)),w(e,yo,m=>t(45,Fe=m)),w(e,wo,m=>t(46,Se=m)),w(e,kr,m=>t(47,Ke=m)),w(e,ko,m=>t(48,wt=m));let{selectedLineIds:ve}=n,{settingsOpen:Pe}=n,{settingsElement:ye}=n;async function Et(m){if(!s){const{canceled:K}=await new Promise(ce=>{R(He,i={icon:Bt,message:m?"All displayed and stored Lines will be cleared":"Clear stored Lines + set Timer to 00:00:00",callback:ce},i)});if(K)return}R(Je,a=[],a),t(67,ve=[]),window.localStorage.removeItem("bannou-texthooker-lineData"),m||R(ln,D=0,D)}const Ne=Eo(),k=[Fn.OFF,Fn.NOTO,Fn.KLEE,Fn.SHIPPORI];let ie,qe,Re,ot,kt;function Ot(m){const K=m.target;K.setCustomValidity(""),o===r?(K.setCustomValidity("Duplicate Websocket"),t(10,o=""),R(wn,$="",$)):R(wn,$=K.value,$),K.reportValidity()}function it(m){m&&!kt?Wo().then(()=>{kt=new MutationObserver(It),kt.observe(document.body,{childList:!0})}):!m&&kt&&(kt.disconnect(),kt=void 0)}function It(m){for(let K=0,{length:ce}=m;K<ce;K+=1){const{addedNodes:Ae}=m[K];for(let st=0,{length:nt}=Ae;st<nt;st+=1){const rt=Ae[K];(rt==null?void 0:rt.tagName)==="P"&&(So.next([rt.textContent,jn.EXTERNAL,""]),rt.remove())}}}function Ie(m){const K=m.target;!P&&K!==ye&&K.parentElement!==ye&&K!==ie&&K!==qe&&K!==Re&&!T&&t(0,Pe=!1)}async function C(){const{canceled:m,data:K}=await new Promise(ce=>{R(He,i={icon:Bt,askForData:"text",dataValue:"00:00:00",message:"New Time",callback:ce},i)});if(!m){if(!/^[\d]{1,}:[\d]{1,2}:[\d]{1,2}$/.test(K))return new Promise(ce=>{R(He,i={icon:yc,type:"error",message:"Invalid Time value (x:xx:xx)",showCancel:!1,callback:ce},i)});R(ln,D=gh(K),D)}}async function N(){if(!s){const{canceled:m}=await new Promise(K=>{R(He,i={icon:Bt,message:"Timer will be set to 00:00:00",callback:K},i)});if(m)return}R(ln,D=0,D)}async function ht(m){m.altKey?await y(ie,"Existing Data will be overwritten"):Zl("texthooker-ui_data.json",{"bannou-texthooker-timeValue":D,"bannou-texthooker-userNotes":I,"bannou-texthooker-lineData":a,"bannou-texthooker-actionHistory":S})}async function Ft(m){m.altKey?await y(qe,"Presets, Settings etc. will be overwritten"):Zl("texthooker-ui_settings.json",{currentSettings:ot.getCurrentSettings(),settingPresets:v,lastSettingsPreset:g})}async function qt(m){if(m.altKey)await y(Re,"Preset will be overwritten or otherwise added");else if(g){const K=v.find(ce=>ce.name===g);K&&Zl("texthooker-ui_preset.json",{name:K.name,settings:K.settings})}}async function lt(){const m=await J(ie).catch(({message:K})=>{R(He,i={type:"error",message:K,showCancel:!1},i)});if(m){const K=Object.entries(m);for(let ce=0,{length:Ae}=K;ce<Ae;ce+=1){const[st,nt]=K[ce];switch(st){case"bannou-texthooker-timeValue":R(ln,D=nt,D);break;case"bannou-texthooker-userNotes":R(Zo,I=nt,I);break;case"bannou-texthooker-lineData":R(Je,a=nt,a);break;case"bannou-texthooker-actionHistory":R(Nn,S=nt,S);break}}}t(6,ie.value=null,ie)}async function Xt(){const m=await J(qe).catch(({message:K})=>{R(He,i={type:"error",message:K,showCancel:!1},i)});m&&(R(on,v=m.settingPresets||[],v),R(Un,g=m.lastSettingsPreset||"",g),m.currentSettings&&ot.updateSettingsWithPreset({name:"",settings:m.currentSettings},!1)),t(7,qe.value=null,qe)}async function $t(){const m=await J(Re).catch(({message:K})=>{R(He,i={type:"error",message:K,showCancel:!1},i)});if(m&&m.name&&m.settings){const K=v.findIndex(ce=>ce.name===m.name);K>-1?(R(on,v[K]=m,v),R(on,v=[...v],v)):R(on,v=[...v,m],v),R(Un,g=m.name,g),ot.updateSettingsWithPreset(m)}t(8,Re.value=null,Re)}async function Qt(m,K,ce){if(m)return;const{canceled:Ae}=await new Promise(st=>{R(He,i={icon:Bt,message:K,callback:st},i)});Ae||window.localStorage.removeItem(ce)}function Mt(m){const K=m.target,ce=Number.parseInt(K.value||"0"),Ae=ce!==d;!ce||ce<0?R(gr,d=0,d):R(gr,d=ce,d),K.value=`${d}`,Ae&&Nt()}async function Nt(){if(!d||a.length<2)return;const{canceled:m}=await new Promise(nt=>{R(He,i={icon:Bt,message:"Apply to current lines",callback:nt},i)});if(m)return;const K=[],ce=new Set,Ae=new Set,st=a.splice(-(d+1));for(let nt=0,{length:rt}=st;nt<rt;nt+=1){const Xn=st[nt];ce.has(Xn.text)?Ae.add(Xn.id):(K.push(Xn),ce.add(Xn.text))}R(Je,a=[...a,...K],a),t(67,ve=ve.filter(nt=>!Ae.has(nt)))}function Cr(m){const K=m.target,ce=Number.parseInt(K.value||"0"),Ae=ce!==p;!ce||ce<0?R(pr,p=0,p):R(pr,p=ce,p),K.value=`${p}`,Ae&&Er()}async function Er(){const m=a.length-p;if(!p||m<1)return;const{canceled:K}=await new Promise(ce=>{R(He,i={icon:Bt,message:`This will remove the first ${m} line(s)`,callback:ce},i)});K?R(pr,p=0,p):Ne("maxLinesChange")}async function Ln(){if(!h||a.length<2)return;const{canceled:m}=await new Promise(K=>{R(He,i={icon:Bt,message:"Apply to current lines",callback:K},i)});if(!m){const K=new Set,ce=new Set;R(Je,a=a.filter(Ae=>K.has(Ae.text)?(ce.add(Ae.id),!1):(K.add(Ae.text),!0)),a),t(67,ve=ve.filter(Ae=>!ce.has(Ae)))}}async function Lr(){if(c){const{canceled:m}=await new Promise(K=>{R(He,i={icon:Bt,message:"Apply to current Lines",callback:K},i)});m||R(Je,a=a.map(K=>(K.text=K.text.replace(/\s/g,"").trim(),K)),a)}}function Rt(m){R(Ko,l=m.target.value,l)}async function y(m,K){if(!s){const{canceled:ce}=await new Promise(Ae=>{R(He,i={icon:Bt,message:K,callback:Ae},i)});if(ce)return}m.click()}function J(m){return new Promise((K,ce)=>{const[Ae]=m.files,st=new FileReader;if(!Ae)return K();if(!Ae.name.endsWith(".json"))return R(He,i={type:"error",message:"Expected json File",showCancel:!1},i),m.value=null,K();st.addEventListener("loadend",nt=>{try{const rt=JSON.parse(nt.target.result);K(rt)}catch{ce(new Error("Error parsing File"))}}),st.addEventListener("error",()=>ce(new Error("Failed to read File"))),st.readAsText(Ae,"utf-8")})}function fe(m){ct[m?"unshift":"push"](()=>{ie=m,t(6,ie)})}function pe(m){ct[m?"unshift":"push"](()=>{qe=m,t(7,qe)})}function me(m){ct[m?"unshift":"push"](()=>{Re=m,t(8,Re)})}const tt=()=>Et(!0),Kt=()=>Et(!1),jt=()=>R(dr,G=G===Wt.BUSINESS?Wt.GARDEN:Wt.BUSINESS,G),oi=()=>R(dr,G=G===Wt.BUSINESS?Wt.GARDEN:Wt.BUSINESS,G);function xr(m){ct[m?"unshift":"push"](()=>{ot=m,t(9,ot)})}function ii(m){Bo.call(this,e,m)}const fn=({detail:m})=>qt(m);function li(m){Bo.call(this,e,m)}function Pr(){A=this.value,Go.set(A)}function si(){r=this.value,t(11,r),t(5,U)}const hn=()=>R(Yn,U=r,U);function ai(){o=this.value,t(10,o),t(69,$)}function Ar(){L=fl(this.value),mr.set(L)}const ci=()=>{(!L||L<1)&&R(mr,L=24,L)};function pn(){z=Lu(this),Kr.set(z),t(50,k)}function ui(){Y=fl(this.value),Wn.set(Y)}const Dr=()=>{(Y===null||Y<0)&&R(Wn,Y=0,Y)};function fi(){Z=this.checked,Zr.set(Z)}function dn(){q=this.checked,qo.set(q)}function hi(){H=this.checked,Xo.set(H)}function Tr(){s=this.checked,Jr.set(s)}function pi(){Q=this.checked,Qr.set(Q)}const en=()=>Qt(Q,"Clear stored stats","bannou-texthooker-timeValue");function di(){V=this.checked,eo.set(V)}const Or=()=>Qt(V,"Clear stored notes","bannou-texthooker-userNotes");function mi(){ne=this.checked,to.set(ne)}const tn=()=>Qt(ne,"Clear stored lines","bannou-texthooker-lineData");function gi(){X=this.checked,no.set(X)}const Ir=()=>Qt(X,"Clear action history","bannou-texthooker-actionHistory");function bi(){de=this.checked,ro.set(de)}function nn(){ge=this.checked,oo.set(ge)}function vi(){We=this.checked,io.set(We)}function $r(){Te=this.checked,lo.set(Te)}function _i(){ze=this.checked,so.set(ze)}function rn(){ut=this.checked,ao.set(ut)}function yi(){h=this.checked,_r.set(h)}function Mr(){_e=this.checked,co.set(_e)}function wi(){be=this.checked,gl.set(be)}function mn(){Ue=this.checked,uo.set(Ue)}function ki(){et=this.checked,yr.set(et)}const Nr=()=>Ne("layoutChange");function Si(){Me=this.checked,wr.set(Me)}const gn=()=>Ne("layoutChange");function Ci(){$e=this.checked,fo.set($e)}function Rr(){c=this.checked,ho.set(c)}function Ei(){ae=this.checked,po.set(ae)}function bn(){Ye=this.checked,mo.set(Ye)}function Li(){Ge=this.checked,go.set(Ge)}function Hr(){Oe=this.checked,bo.set(Oe)}function xi(){Xe=this.checked,vo.set(Xe)}function vn(){ft=this.checked,_o.set(ft)}function Pi(){Fe=this.checked,yo.set(Fe)}function Vr(){Se=this.checked,wo.set(Se)}function Ai(){Ke=this.checked,kr.set(Ke)}const _n=()=>{Il.next(),$l.next()};function Di(){wt=this.checked,ko.set(wt)}return e.$$set=m=>{"selectedLineIds"in m&&t(67,ve=m.selectedLineIds),"settingsOpen"in m&&t(0,Pe=m.settingsOpen),"settingsElement"in m&&t(68,ye=m.settingsElement)},e.$$.update=()=>{e.$$.dirty[0]&32&&t(11,r=U),e.$$.dirty[2]&128&&t(10,o=$),e.$$.dirty[0]&16&&(document.body.dataset.theme=G),e.$$.dirty[0]&8&&it(q),e.$$.dirty[0]&4&&xp(l)},[Pe,Et,l,q,G,U,ie,qe,Re,ot,o,r,s,c,h,p,d,A,L,z,Y,Z,H,Q,V,ne,X,de,ge,We,Te,ze,ut,_e,be,Ue,et,Me,$e,ae,Ye,Ge,Oe,Xe,ft,Fe,Se,Ke,wt,Ne,k,Ot,Ie,C,N,ht,Ft,qt,lt,Xt,$t,Qt,Mt,Cr,Ln,Lr,Rt,ve,ye,$,fe,pe,me,tt,Kt,jt,oi,xr,ii,fn,li,Pr,si,hn,ai,Ar,ci,pn,ui,Dr,fi,dn,hi,Tr,pi,en,di,Or,mi,tn,gi,Ir,bi,nn,vi,$r,_i,rn,yi,Mr,wi,mn,ki,Nr,Si,gn,Ci,Rr,Ei,bn,Li,Hr,xi,vn,Pi,Vr,Ai,_n,Di]}class Ap extends Tt{constructor(n){super(),Dt(this,n,Pp,Lp,gt,{selectedLineIds:67,settingsOpen:0,settingsElement:68,handleReset:1},null,[-1,-1,-1,-1,-1])}get handleReset(){return this.$$.ctx[1]}}class Dp{constructor(n=!0){Ao(this,"websocketUrl");Ao(this,"socket");Ao(this,"socketState");Ao(this,"subscriptions",[]);this.socketState=n?Ss:Cs,this.subscriptions.push((n?Yn:wn).subscribe(t=>{t!==this.websocketUrl&&(this.websocketUrl=t,this.reloadSocket())}),kr.pipe(Yo(t=>t?(n?Il:$l).pipe(Tl(()=>{var r;return((r=this.socket)==null?void 0:r.readyState)===3})):zo)).subscribe(()=>this.reloadSocket()))}getCurrentUrl(){return this.websocketUrl}connect(){var n;if(!(((n=this.socket)==null?void 0:n.readyState)<2)){if(!this.websocketUrl){this.socketState.next(3);return}this.socketState.next(0);try{this.socket=new WebSocket(this.websocketUrl),this.socket.onopen=this.updateSocketState.bind(this),this.socket.onclose=this.updateSocketState.bind(this),this.socket.onmessage=this.handleMessage.bind(this)}catch{this.socketState.next(3)}}}disconnect(){var n;((n=this.socket)==null?void 0:n.readyState)===1&&this.socket.close(1e3,"User Request")}cleanUp(){this.disconnect();for(let n=0,{length:t}=this.subscriptions;n<t;n+=1)this.subscriptions[n].unsubscribe()}reloadSocket(){this.disconnect(),this.socket=void 0,this.connect()}updateSocketState(){this.socket&&this.socketState.next(this.socket.readyState)}handleMessage(n){var r,o,i;let t=n.data;try{((r=JSON.parse(n.data))==null?void 0:r.event)==="reset_checkboxes"&&So.next(["",jn.RESETCHECKBOXES,""]),t=((o=JSON.parse(n.data))==null?void 0:o.sentence)||n.data}catch{}console.log(n.data),So.next([t,jn.SOCKET,((i=JSON.parse(n.data))==null?void 0:i.data.id)||""])}}function Tp(e){let n;return{c(){n=b("span"),f(n,"class","animate-ping relative inline-flex rounded-full h-3 w-3 mx-3 bg-primary")},m(t,r){j(t,n,r)},p:xe,i:xe,o:xe,d(t){t&&F(n)}}}function Op(e){let n,t,r;return t=new we({props:{path:Vu,class:"cursor-pointer mx-2"}}),t.$on("click",e[3]),{c(){n=b("div"),se(t.$$.fragment),f(n,"class","hover:text-primary"),f(n,"title",e[1]),te(n,"text-red-500",e[0]!==-1),te(n,"text-green-700",e[0]===1)},m(o,i){j(o,n,i),re(t,n,null),r=!0},p(o,i){(!r||i&2)&&f(n,"title",o[1]),(!r||i&1)&&te(n,"text-red-500",o[0]!==-1),(!r||i&1)&&te(n,"text-green-700",o[0]===1)},i(o){r||(M(t.$$.fragment,o),r=!0)},o(o){W(t.$$.fragment,o),r=!1},d(o){o&&F(n),oe(t)}}}function Ip(e){let n,t,r,o;const i=[Op,Tp],s=[];function l(a,c){return a[0]!==0?0:1}return n=l(e),t=s[n]=i[n](e),{c(){t.c(),r=Gn()},m(a,c){s[n].m(a,c),j(a,r,c),o=!0},p(a,[c]){let h=n;n=l(a),n===h?s[n].p(a,c):(dt(),W(s[h],1,1,()=>{s[h]=null}),mt(),t=s[n],t?t.p(a,c):(t=s[n]=i[n](a),t.c()),M(t,1),t.m(r.parentNode,r))},i(a){o||(M(t),o=!0)},o(a){W(t),o=!1},d(a){s[n].d(a),a&&F(r)}}}function $p(e,n,t){let r,o,i,s,l,a,c,h;w(e,wn,$=>t(9,i=$)),w(e,Yn,$=>t(10,s=$)),w(e,zt,$=>t(11,l=$)),w(e,He,$=>t(12,a=$)),w(e,kr,$=>t(13,c=$)),w(e,ko,$=>t(14,h=$));let{isPrimary:p=!0}=n,d,g=!1,v=!1,S=!1,I=p?Ss:Cs;w(e,I,$=>t(0,o=$)),El(()=>(P(),()=>{S=!0,d==null||d.cleanUp()}));function D($){switch($){case 0:t(5,v=!1),S=!1;break;case 1:g=!0,t(5,v=!0);break;case 3:const q=p?"primary":"secondary";h&&!S&&g&&(p?s:i)&&(v||!c)&&R(He,a={type:"error",message:v?`Lost Connection to ${q} Websocket`:`Unable to connect to ${q} Websocket`,showCancel:!1},a),R(zt,l=!0,l),g=!0,t(5,v=!1),S||(p?Il:$l).next();break}t(1,r=T(v))}function T($){return $?`Connected with ${p?s:i}`:"Not Connected"}async function P(){o===1&&d?(S=!0,d.disconnect()):(d=d||new Dp(p),d.connect())}return e.$$set=$=>{"isPrimary"in $&&t(4,p=$.isPrimary)},e.$$.update=()=>{e.$$.dirty&32&&t(1,r=T(v)),e.$$.dirty&1&&D(o)},[o,r,I,P,p,v]}class fu extends Tt{constructor(n){super(),Dt(this,n,$p,Ip,gt,{isPrimary:4})}}function Mp(e){let n,t,r,o,i;return{c(){n=b("div"),t=_(),r=b("div"),r.innerHTML=`<div role="status"><svg aria-hidden="true" class="w-8 h-8 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z" fill="currentColor"></path><path d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z" fill="currentFill"></path></svg>
|
37
|
-
<span class="sr-only">Loading...</span></div>`,o=_(),i=b("div"),f(n,"class","tap-highlight-transparent absolute inset-0 bg-black/[.3] z-20"),f(r,"class","fixed inset-0 flex h-full w-full items-center justify-center z-50")},m(s,l){j(s,n,l),j(s,t,l),j(s,r,l),j(s,o,l),j(s,i,l)},p:xe,i:xe,o:xe,d(s){s&&F(n),s&&F(t),s&&F(r),s&&F(o),s&&F(i)}}}class Np extends Tt{constructor(n){super(),Dt(this,n,null,Mp,gt,{})}}function Rp(e){let n=(e[2]??"")+"",t,r,o=(e[3]??"")+"",i,s,l,a,c,h,p;return{c(){t=at(n),r=_(),i=at(o),s=_(),l=b("div"),a=b("div"),c=at(e[1]),f(l,"class","text-sm timer mr-1 sm:text-base sm:mr-2 svelte-1efsh80"),te(l,"blur",e[4])},m(d,g){j(d,t,g),j(d,r,g),j(d,i,g),j(d,s,g),j(d,l,g),u(l,a),u(a,c),e[16](l),h||(p=x(l,"pointerleave",e[7]),h=!0)},p(d,[g]){g&4&&n!==(n=(d[2]??"")+"")&&At(t,n),g&8&&o!==(o=(d[3]??"")+"")&&At(i,o),g&2&&At(c,d[1]),g&16&&te(l,"blur",d[4])},i:xe,o:xe,d(d){d&&F(t),d&&F(r),d&&F(i),d&&F(s),d&&F(l),e[16](null),h=!1,p()}}}const Hp=/[^0-9A-Z○◯々-〇〻ぁ-ゖゝ-ゞァ-ヺー0-9A-Zヲ-ン\p{Radical}\p{Unified_Ideograph}]+/gimu;function Vp(e){return e?Fp(e.replace(Hp,"")):0}function Fp(e){return Array.from(e).length}function jp(e,n,t){let r,o,i,s,l,a,c,h,p,d,g,v,S,I;w(e,go,H=>t(10,r=H)),w(e,bo,H=>t(11,o=H)),w(e,mo,H=>t(12,i=H)),w(e,po,H=>t(13,s=H)),w(e,ln,H=>t(14,l=H)),w(e,zt,H=>t(19,a=H)),w(e,wo,H=>t(20,c=H)),w(e,yo,H=>t(21,h=H)),w(e,Wn,H=>t(22,p=H)),w(e,Zr,H=>t(23,d=H)),w(e,Je,H=>t(15,g=H)),w(e,vo,H=>t(4,I=H));let D=0,T=0;const P=zt.pipe(Yo(H=>H?(T=0,zo):(D=performance.now(),rh(1e3))),Mn(z),Rn());w(e,P,H=>t(2,v=H));const $=Gf([zt,Wn]).pipe(Yo(([H,Q])=>H||Q<1?zo:oh(So,Vn(window,"pointermove"),Vn(document,"selectionchange")).pipe(lh(!0),ah(1e3),Mn(()=>T=performance.now()+p*1e3),ws(p*1e3))),Rn());w(e,$,H=>t(3,S=H));let q,G=0,U=0,A="";function L(){const H=window.getSelection();H!=null&&H.toString()&&H.getRangeAt(0).intersectsNode(q)&&H.removeAllRanges()}function z(){const H=T?Math.min(T,performance.now()):performance.now(),Q=Math.round((H-D+Number.EPSILON)/1e3);T&&H>=T?(R(zt,a=!0,a),d?R(ln,l=Math.max(0,l+Q-p),l):R(ln,l+=Q,l),h&&(document.body.style.filter="blur(8px)",document.body.style.pointerEvents="none",document.addEventListener("dblclick",V=>{V.stopPropagation(),window.getSelection().removeAllRanges(),document.body.style.filter=null,document.body.style.pointerEvents="auto",c&&R(zt,a=!1,a)},{once:!0,capture:!1}))):(D=H,R(ln,l+=Q,l))}function Y(H,Q,V,ne){let X="";s&&(X+=mh(H)),i&&(X+=` (${Q}/h) `),r&&(X+=` ${V}`),o&&(X+=r?" /":"",X+=` ${ne}`),t(1,A=X.replace(/[ ]+/g," ").trim())}function Z(H){ct[H?"unshift":"push"](()=>{q=H,t(0,q)})}return e.$$.update=()=>{if(e.$$.dirty&50688&&r&&g){let H=0;for(let Q=0,{length:V}=g;Q<V;Q+=1)H+=Vp(g[Q].text);t(9,U=H),t(8,G=l?Math.ceil(3600*U/l):0)}e.$$.dirty&65280&&(l>-1&&(s||i||r||o)?Y(l,G,U,g.length):t(1,A=""))},[q,A,v,S,I,P,$,L,G,U,r,o,i,s,l,g,Z]}class Up extends Tt{constructor(n){super(),Dt(this,n,jp,Rp,gt,{})}}const{window:Bp}=bc;function Qa(e,n,t){const r=e.slice();return r[84]=n[t],r[85]=n,r[86]=t,r}function ec(e){let n,t;return n=new Np({}),{c(){se(n.$$.fragment)},m(r,o){re(n,r,o),t=!0},i(r){t||(M(n.$$.fragment,r),t=!0)},o(r){W(n.$$.fragment,r),t=!1},d(r){oe(n,r)}}}function tc(e){let n,t;return n=new fu({}),{c(){se(n.$$.fragment)},m(r,o){re(n,r,o),t=!0},i(r){t||(M(n.$$.fragment,r),t=!0)},o(r){W(n.$$.fragment,r),t=!1},d(r){oe(n,r)}}}function nc(e){let n,t;return n=new fu({props:{isPrimary:!1}}),{c(){se(n.$$.fragment)},m(r,o){re(n,r,o),t=!0},i(r){t||(M(n.$$.fragment,r),t=!0)},o(r){W(n.$$.fragment,r),t=!1},d(r){oe(n,r)}}}function Wp(e){let n,t,r;return t=new we({props:{path:Yu,width:e[7],height:e[7]}}),t.$on("click",e[44]),{c(){n=b("div"),se(t.$$.fragment),f(n,"role","button"),f(n,"title","Pause"),f(n,"class","mr-1 hover:text-primary sm:mr-2")},m(o,i){j(o,n,i),re(t,n,null),r=!0},p(o,i){const s={};i[0]&128&&(s.width=o[7]),i[0]&128&&(s.height=o[7]),t.$set(s)},i(o){r||(M(t.$$.fragment,o),r=!0)},o(o){W(t.$$.fragment,o),r=!1},d(o){o&&F(n),oe(t)}}}function zp(e){let n,t,r;return t=new we({props:{path:qu,width:e[7],height:e[7]}}),t.$on("click",e[43]),{c(){n=b("div"),se(t.$$.fragment),f(n,"role","button"),f(n,"title","Continue"),f(n,"class","mr-1 animate-[pulse_1.25s_cubic-bezier(0.4,0,0.6,1)_infinite] hover:text-primary sm:mr-2")},m(o,i){j(o,n,i),re(t,n,null),r=!0},p(o,i){const s={};i[0]&128&&(s.width=o[7]),i[0]&128&&(s.height=o[7]),t.$set(s)},i(o){r||(M(t.$$.fragment,o),r=!0)},o(o){W(t.$$.fragment,o),r=!1},d(o){o&&F(n),oe(t)}}}function rc(e){let n,t,r,o,i,s;return t=new we({props:{path:No,width:e[7],height:e[7]}}),t.$on("click",e[34]),i=new we({props:{path:_c,width:e[7],height:e[7]}}),i.$on("click",e[35]),{c(){n=b("div"),se(t.$$.fragment),r=_(),o=b("div"),se(i.$$.fragment),f(n,"role","button"),f(n,"title","Remove selected Lines"),f(n,"class","mr-1 hover:text-primary sm:mr-2"),f(o,"role","button"),f(o,"title","Deselect Lines"),f(o,"class","mr-1 hover:text-primary sm:mr-2")},m(l,a){j(l,n,a),re(t,n,null),j(l,r,a),j(l,o,a),re(i,o,null),s=!0},p(l,a){const c={};a[0]&128&&(c.width=l[7]),a[0]&128&&(c.height=l[7]),t.$set(c);const h={};a[0]&128&&(h.width=l[7]),a[0]&128&&(h.height=l[7]),i.$set(h)},i(l){s||(M(t.$$.fragment,l),M(i.$$.fragment,l),s=!0)},o(l){W(t.$$.fragment,l),W(i.$$.fragment,l),s=!1},d(l){l&&F(n),oe(t),l&&F(r),l&&F(o),oe(i)}}}function oc(e,n){let t,r,o=n[86],i;const s=()=>n[54](r,o),l=()=>n[54](null,o);let a={line:n[84],index:n[86],isLast:n[9].length-1===n[86]};return r=new Th({props:a}),s(),r.$on("selected",n[55]),r.$on("deselected",n[56]),r.$on("edit",n[37]),{key:e,first:null,c(){t=Gn(),se(r.$$.fragment),this.first=t},m(c,h){j(c,t,h),re(r,c,h),i=!0},p(c,h){n=c,o!==n[86]&&(l(),o=n[86],s());const p={};h[0]&512&&(p.line=n[84]),h[0]&512&&(p.index=n[86]),h[0]&512&&(p.isLast=n[9].length-1===n[86]),r.$set(p)},i(c){i||(M(r.$$.fragment,c),i=!0)},o(c){W(r.$$.fragment,c),i=!1},d(c){c&&F(t),l(),oe(r,c)}}}function ic(e){let n,t,r,o;return t=new $h({}),{c(){n=b("div"),se(t.$$.fragment),f(n,"class","bg-base-200 fixed top-0 right-0 z-[60] flex h-full w-full max-w-3xl flex-col justify-between")},m(i,s){j(i,n,s),re(t,n,null),o=!0},p(i,s){},i(i){o||(M(t.$$.fragment,i),i&&(r||br(()=>{r=gc(n,Gc,{x:100,duration:100,easing:uh}),r.start()})),o=!0)},o(i){W(t.$$.fragment,i),o=!1},d(i){i&&F(n),oe(t)}}}function Yp(e){let n=(e[16]??"")+"",t,r,o=(e[17]??"")+"",i,s,l=(e[18]??"")+"",a,c,h=(e[19]??"")+"",p,d,g=(e[20]??"")+"",v,S,I,D,T,P,$,q,G,U,A,L,z,Y,Z,H,Q,V,ne,X,de,ge,We,Te,ze,ut,_e,be,Ue,et,Me,$e,ae,Ye,Ge,Oe=[],Xe=new Map,ft,Fe,Se,Ke,wt,ve=e[8]&&ec();D=new xh({}),$=new Up({});let Pe=e[21]&&tc(),ye=e[22]&&nc();const Et=[zp,Wp],Ne=[];function k(C,N){return C[14]?0:1}A=k(e),L=Ne[A]=Et[A](e),Z=new we({props:{path:ju,width:e[7],height:e[7]}}),Z.$on("click",e[33]),V=new we({props:{path:Ru,width:e[7],height:e[7]}}),V.$on("click",e[32]);let ie=e[1].length&&rc(e);ge=new we({props:{path:zu,width:e[7],height:e[7]}}),ge.$on("click",e[45]);function qe(C){e[46](C)}let Re={class:"cursor-pointer mr-1 hover:text-primary md:mr-2",path:Hu,width:e[7],height:e[7]};e[3]!==void 0&&(Re.element=e[3]),Te=new we({props:Re}),ct.push(()=>Vl(Te,"element",qe,e[3])),Te.$on("click",e[47]);function ot(C){e[48](C)}function kt(C){e[49](C)}let Ot={settingsElement:e[3]};e[4]!==void 0&&(Ot.settingsOpen=e[4]),e[1]!==void 0&&(Ot.selectedLineIds=e[1]),_e=new Ap({props:Ot}),ct.push(()=>Vl(_e,"settingsOpen",ot,e[4])),ct.push(()=>Vl(_e,"selectedLineIds",kt,e[1])),e[50](_e),_e.$on("applyReplacements",e[51]),_e.$on("layoutChange",e[36]),_e.$on("maxLinesChange",e[52]),Me=new Kc({props:{isQuickSwitch:!0}}),Me.$on("layoutChange",e[36]);let it=e[9];const It=C=>C[84].id;for(let C=0;C<it.length;C+=1){let N=Qa(e,it,C),ht=It(N);Xe.set(ht,Oe[C]=oc(ht,N))}let Ie=e[15]&&ic();return{c(){t=at(n),r=_(),i=at(o),s=_(),a=at(l),c=_(),p=at(h),d=_(),v=at(g),S=_(),ve&&ve.c(),I=_(),se(D.$$.fragment),T=_(),P=b("header"),se($.$$.fragment),q=_(),Pe&&Pe.c(),G=_(),ye&&ye.c(),U=_(),L.c(),z=_(),Y=b("div"),se(Z.$$.fragment),H=_(),Q=b("div"),se(V.$$.fragment),ne=_(),ie&&ie.c(),X=_(),de=b("div"),se(ge.$$.fragment),We=_(),se(Te.$$.fragment),ut=_(),se(_e.$$.fragment),et=_(),se(Me.$$.fragment),$e=_(),ae=b("main"),Ye=new fc(!1),Ge=_();for(let C=0;C<Oe.length;C+=1)Oe[C].c();ft=_(),Ie&&Ie.c(),Fe=Gn(),f(Y,"role","button"),f(Y,"title","Delete last Line"),f(Y,"class","mr-1 hover:text-primary sm:mr-2"),te(Y,"opacity-50",!e[9].length),te(Y,"cursor-not-allowed",!e[9].length),te(Y,"hover:text-primary",e[9].length),f(Q,"role","button"),f(Q,"title","Undo last Action"),f(Q,"class","mr-1 hover:text-primary sm:mr-2"),te(Q,"opacity-50",!e[10].length),te(Q,"cursor-not-allowed",!e[10].length),te(Q,"hover:text-primary",e[10].length),f(de,"role","button"),f(de,"title","Open Notes"),f(de,"class","mr-1 hover:text-primary sm:mr-2"),f(P,"class","fixed top-0 right-0 flex justify-end items-center p-2 bg-base-100"),Ye.a=Ge,f(ae,"class","flex flex-col flex-1 break-all px-4 w-full h-full overflow-auto"),te(ae,"py-16",!e[12]),te(ae,"py-8",e[12]),te(ae,"opacity-50",e[15]),te(ae,"flex-col-reverse",e[13]),Le(ae,"font-size",`${e[23]}px`),Le(ae,"font-family",e[24]!==Fn.OFF?e[24]:void 0),Le(ae,"writing-mode",e[12]?"vertical-rl":"horizontal-tb")},m(C,N){j(C,t,N),j(C,r,N),j(C,i,N),j(C,s,N),j(C,a,N),j(C,c,N),j(C,p,N),j(C,d,N),j(C,v,N),j(C,S,N),ve&&ve.m(C,N),j(C,I,N),re(D,C,N),j(C,T,N),j(C,P,N),re($,P,null),u(P,q),Pe&&Pe.m(P,null),u(P,G),ye&&ye.m(P,null),u(P,U),Ne[A].m(P,null),u(P,z),u(P,Y),re(Z,Y,null),u(P,H),u(P,Q),re(V,Q,null),u(P,ne),ie&&ie.m(P,null),u(P,X),u(P,de),re(ge,de,null),u(P,We),re(Te,P,null),u(P,ut),re(_e,P,null),u(P,et),re(Me,P,null),e[53](P),j(C,$e,N),j(C,ae,N),Ye.m(Xc,ae),u(ae,Ge);for(let ht=0;ht<Oe.length;ht+=1)Oe[ht].m(ae,null);e[57](ae),j(C,ft,N),Ie&&Ie.m(C,N),j(C,Fe,N),Se=!0,Ke||(wt=x(Bp,"keyup",e[31]),Ke=!0)},p(C,N){(!Se||N[0]&65536)&&n!==(n=(C[16]??"")+"")&&At(t,n),(!Se||N[0]&131072)&&o!==(o=(C[17]??"")+"")&&At(i,o),(!Se||N[0]&262144)&&l!==(l=(C[18]??"")+"")&&At(a,l),(!Se||N[0]&524288)&&h!==(h=(C[19]??"")+"")&&At(p,h),(!Se||N[0]&1048576)&&g!==(g=(C[20]??"")+"")&&At(v,g),C[8]?ve?N[0]&256&&M(ve,1):(ve=ec(),ve.c(),M(ve,1),ve.m(I.parentNode,I)):ve&&(dt(),W(ve,1,1,()=>{ve=null}),mt()),C[21]?Pe?N[0]&2097152&&M(Pe,1):(Pe=tc(),Pe.c(),M(Pe,1),Pe.m(P,G)):Pe&&(dt(),W(Pe,1,1,()=>{Pe=null}),mt()),C[22]?ye?N[0]&4194304&&M(ye,1):(ye=nc(),ye.c(),M(ye,1),ye.m(P,U)):ye&&(dt(),W(ye,1,1,()=>{ye=null}),mt());let ht=A;A=k(C),A===ht?Ne[A].p(C,N):(dt(),W(Ne[ht],1,1,()=>{Ne[ht]=null}),mt(),L=Ne[A],L?L.p(C,N):(L=Ne[A]=Et[A](C),L.c()),M(L,1),L.m(P,z));const Ft={};N[0]&128&&(Ft.width=C[7]),N[0]&128&&(Ft.height=C[7]),Z.$set(Ft),(!Se||N[0]&512)&&te(Y,"opacity-50",!C[9].length),(!Se||N[0]&512)&&te(Y,"cursor-not-allowed",!C[9].length),(!Se||N[0]&512)&&te(Y,"hover:text-primary",C[9].length);const qt={};N[0]&128&&(qt.width=C[7]),N[0]&128&&(qt.height=C[7]),V.$set(qt),(!Se||N[0]&1024)&&te(Q,"opacity-50",!C[10].length),(!Se||N[0]&1024)&&te(Q,"cursor-not-allowed",!C[10].length),(!Se||N[0]&1024)&&te(Q,"hover:text-primary",C[10].length),C[1].length?ie?(ie.p(C,N),N[0]&2&&M(ie,1)):(ie=rc(C),ie.c(),M(ie,1),ie.m(P,X)):ie&&(dt(),W(ie,1,1,()=>{ie=null}),mt());const lt={};N[0]&128&&(lt.width=C[7]),N[0]&128&&(lt.height=C[7]),ge.$set(lt);const Xt={};N[0]&128&&(Xt.width=C[7]),N[0]&128&&(Xt.height=C[7]),!ze&&N[0]&8&&(ze=!0,Xt.element=C[3],Rl(()=>ze=!1)),Te.$set(Xt);const $t={};N[0]&8&&($t.settingsElement=C[3]),!be&&N[0]&16&&(be=!0,$t.settingsOpen=C[4],Rl(()=>be=!1)),!Ue&&N[0]&2&&(Ue=!0,$t.selectedLineIds=C[1],Rl(()=>Ue=!1)),_e.$set($t),N[0]&578|N[1]&64&&(it=C[9],dt(),Oe=Lo(Oe,N,It,1,C,it,Xe,ae,vc,oc,null,Qa),mt()),(!Se||N[0]&4096)&&te(ae,"py-16",!C[12]),(!Se||N[0]&4096)&&te(ae,"py-8",C[12]),(!Se||N[0]&32768)&&te(ae,"opacity-50",C[15]),(!Se||N[0]&8192)&&te(ae,"flex-col-reverse",C[13]),N[0]&8388608&&Le(ae,"font-size",`${C[23]}px`),N[0]&16777216&&Le(ae,"font-family",C[24]!==Fn.OFF?C[24]:void 0),N[0]&4096&&Le(ae,"writing-mode",C[12]?"vertical-rl":"horizontal-tb"),C[15]?Ie?N[0]&32768&&M(Ie,1):(Ie=ic(),Ie.c(),M(Ie,1),Ie.m(Fe.parentNode,Fe)):Ie&&(dt(),W(Ie,1,1,()=>{Ie=null}),mt())},i(C){if(!Se){M(ve),M(D.$$.fragment,C),M($.$$.fragment,C),M(Pe),M(ye),M(L),M(Z.$$.fragment,C),M(V.$$.fragment,C),M(ie),M(ge.$$.fragment,C),M(Te.$$.fragment,C),M(_e.$$.fragment,C),M(Me.$$.fragment,C);for(let N=0;N<it.length;N+=1)M(Oe[N]);M(Ie),Se=!0}},o(C){W(ve),W(D.$$.fragment,C),W($.$$.fragment,C),W(Pe),W(ye),W(L),W(Z.$$.fragment,C),W(V.$$.fragment,C),W(ie),W(ge.$$.fragment,C),W(Te.$$.fragment,C),W(_e.$$.fragment,C),W(Me.$$.fragment,C);for(let N=0;N<Oe.length;N+=1)W(Oe[N]);W(Ie),Se=!1},d(C){C&&F(t),C&&F(r),C&&F(i),C&&F(s),C&&F(a),C&&F(c),C&&F(p),C&&F(d),C&&F(v),C&&F(S),ve&&ve.d(C),C&&F(I),oe(D,C),C&&F(T),C&&F(P),oe($),Pe&&Pe.d(),ye&&ye.d(),Ne[A].d(),oe(Z),oe(V),ie&&ie.d(),oe(ge),oe(Te),e[50](null),oe(_e),oe(Me),e[53](null),C&&F($e),C&&F(ae);for(let N=0;N<Oe.length;N+=1)Oe[N].d();e[57](null),C&&F(ft),Ie&&Ie.d(C),C&&F(Fe),Ke=!1,wt()}}}const Gp=/[\p{scx=Hira}\p{scx=Kana}\p{scx=Han}]/imu;function qp(e,n,t){let r,o,i,s,l,a,c,h,p,d,g,v,S,I,D,T,P,$,q,G,U,A,L,z,Y,Z,H,Q,V,ne,X,de,ge,We,Te,ze;w(e,co,y=>t(62,i=y)),w(e,il,y=>t(8,s=y)),w(e,Je,y=>t(9,l=y)),w(e,He,y=>t(63,a=y)),w(e,pr,y=>t(64,c=y)),w(e,Nn,y=>t(10,h=y)),w(e,gr,y=>t(65,p=y)),w(e,_r,y=>t(66,d=y)),w(e,gl,y=>t(67,g=y)),w(e,ho,y=>t(68,v=y)),w(e,as,y=>t(11,S=y)),w(e,dr,y=>t(69,I=y)),w(e,ss,y=>t(70,D=y)),w(e,yr,y=>t(12,T=y)),w(e,wr,y=>t(13,P=y)),w(e,ls,y=>t(71,$=y)),w(e,Yt,y=>t(42,q=y)),w(e,uo,y=>t(72,G=y)),w(e,zt,y=>t(14,U=y)),w(e,ao,y=>t(73,A=y)),w(e,so,y=>t(74,L=y)),w(e,lo,y=>t(75,z=y)),w(e,io,y=>t(76,Y=y)),w(e,vl,y=>t(77,Z=y)),w(e,bl,y=>t(15,H=y)),w(e,Yn,y=>t(21,ge=y)),w(e,wn,y=>t(22,We=y)),w(e,mr,y=>t(23,Te=y)),w(e,Kr,y=>t(24,ze=y));let ut=!1,_e,be=[],Ue,et,Me=!1,$e,ae=[],Ye=!1,Ge=!1,Oe=null;Et();const Xe="wakeLock"in navigator,ft=_r.pipe(Dl(y=>y?new Set(l.map(J=>J.text)):new Set));w(e,ft,y=>t(61,o=y));const Fe=So.pipe(Tl(([y,J,fe])=>{const pe=J===jn.RESETCHECKBOXES,me=J===jn.PASTE,tt=!me||!H&&!Z&&!Me&&!Ye,Kt=Ge&&J===jn.EXTERNAL;return Kt&&(Ge=!1),pe?(Ne(),!1):(!U||(Y||L)&&me||(z||A)&&!me)&&tt&&!Kt?(U&&(L&&me||A&&!me)&&R(zt,U=!1,U),!0):(!Kt&&tt&&G&&kt(),!1)}),Mn(y=>{const[J]=y,fe=Ot(J);fe&&R(Je,l=C([...It(1),{id:y.at(2)||bh(),text:fe}]),l)}),Rn());w(e,Fe,y=>t(17,V=y));const Se=ro.pipe(Yo(y=>y?Vn(document,"paste"):zo),Mn(y=>So.next([y.clipboardData.getData("text/plain"),jn.PASTE,""])),Rn());w(e,Se,y=>t(18,ne=y));const Ke=Vn(document,"visibilitychange").pipe(Mn(()=>{Xe&&Oe!==null&&document.visibilityState==="visible"&&(Oe=navigator.wakeLock.request("screen").then(y=>y).catch(y=>(console.error(`Unable to aquire screen lock: ${y.message}`),null)))}),Rn());w(e,Ke,y=>t(16,Q=y));const wt=oo.pipe(Yo(y=>(Ge=!1,y?Vn(document,"copy"):zo)),Mn(()=>Ge=!0),Rn());w(e,wt,y=>t(19,X=y));const ve=Vn(window,"resize").pipe(ws(500),Mn(Pe),Rn());w(e,ve,y=>t(20,de=y)),El(()=>{Pe(),Xe&&(Oe=navigator.wakeLock.request("screen").then(y=>y).catch(y=>(console.error(`Unable to aquire screen lock: ${y.message}`),null)))});function Pe(){t(41,ut=window.matchMedia("(min-width: 640px)").matches),ot()}function ye(y){var J;if(y.key==="Delete"){if((J=window.getSelection())!=null&&J.toString().trim()){const fe=window.getSelection().getRangeAt(0);for(let pe=0,{length:me}=ae;pe<me;pe+=1){const tt=ae[pe],Kt=tt==null?void 0:tt.getIdIfSelected(fe);Kt&&be.push(Kt)}}be.length?qe():y.altKey&&ie()}else be.length&&y.key==="Escape"?Re():y.altKey&&y.key==="a"?_e.handleReset(!1):y.altKey&&y.key==="q"&&_e.handleReset(!0)}function Et(){setInterval(async()=>{try{const y=await fetch("/get_ids");if(!y.ok)throw new Error(`HTTP error! Status: ${y.status}`);R(ls,$=await y.json(),$)}catch(y){console.error("Failed to fetch ids:",y)}},1e3)}function Ne(){l.forEach(y=>{const J=document.getElementById(`multi-line-checkbox-${y.id}`);J&&typeof J.checked=="boolean"?J.checked=!1:console.warn(`Checkbox with ID 'multi-line-checkbox-${y.id}' not found or is not a valid checkbox element.`)})}async function k(){if(!h.length)return;const y=h.pop();let J=y.pop();for(;J;){const fe=Ot(J.text,!1);if(fe){const{id:pe,index:me}=J;me>l.length-1?l.push({id:pe,text:fe}):l[me].id===pe?R(Je,l[me]={id:pe,text:fe},l):l.splice(me,0,{id:pe,text:fe})}J=y.pop()}await Wo(),R(Je,l=C(It()),l),Nn.set(h)}function ie(){if(!l.length)return;const[y]=l.splice(l.length-1,1);t(1,be=be.filter(J=>J!==y.id)),Je.set(l),R(Nn,h=[...h,[{...y,index:l.length}]],h),o.delete(y.text)}function qe(){const y=new Set(be),J=[];R(Je,l=l.filter((fe,pe)=>{const me=y.has(fe.id);return y.delete(fe.id),me&&(J.push({...fe,index:pe-J.length}),o.delete(fe.text)),!me}),l),t(1,be=y.size?[...y]:[]),J.length&&R(Nn,h=[...h,J],h)}function Re(){var y;for(let J=0,{length:fe}=ae;J<fe;J+=1)(y=ae[J])==null||y.deselect();t(1,be=[])}function ot(){Es(window,$e,P,T)}function kt(){clearTimeout(D),I===Wt.GARDEN&&(Ue.classList.add("bg-base-200"),Ue.classList.remove("bg-base-100"),document.body.classList.add("bg-base-200")),document.body.classList.add("animate-[pulse_0.5s_cubic-bezier(0.4,0,0.6,1)_1]"),R(ss,D=window.setTimeout(()=>{I===Wt.GARDEN&&(Ue.classList.add("bg-base-100"),Ue.classList.remove("bg-base-200"),document.body.classList.remove("bg-base-200")),document.body.classList.remove("animate-[pulse_0.5s_cubic-bezier(0.4,0,0.6,1)_1]")},500),D)}function Ot(y,J=!0){const fe=J?qc(y,S):y;let pe=!0,me=v?fe.replace(/\s/gm,"").trim():fe;return g&&!me.match(Gp)&&(me=""),me?d?(pe=!o.has(me),o.add(me)):p&&l.length&&(pe=l.slice(-p).every(tt=>tt.text!==me)):pe=!1,pe?me:void 0}function it(y){const{inEdit:J,data:fe}=y.detail;if(fe&&fe.originalText!==fe.newText){const pe=Ot(fe.newText);R(Je,l[fe.lineIndex]={id:fe.line.id,text:pe},l),pe?(R(Nn,h=[...h,[{...fe.line,index:fe.lineIndex}]],h),o.delete(fe.originalText),o.add(pe)):Wo().then(()=>R(Je,l[fe.lineIndex]={id:fe.line.id,text:fe.originalText},l))}Ye=J}function It(y=0){const J=new Set,fe=c?l.length-c+y:0,pe=fe>0?l.filter((me,tt)=>tt<fe?(J.add(me.id),o.delete(me.text),!1):!0):l;return J.size&&t(1,be=be.filter(me=>!J.has(me))),pe}function Ie(y){if(y){R(il,s=!0,s);try{for(let J=0,{length:fe}=l;J<fe;J+=1){const pe=l[J],me=Ot(pe.text);me&&me!==pe.text&&(o.delete(pe.text),R(Je,l[J]={...pe,text:me},l))}R(He,a={message:"Operation executed",showCancel:!1},a)}catch({message:J}){R(He,a={type:"error",message:`An Error occured: ${J}`,showCancel:!1},a)}R(Je,l=C(It()),l),R(il,s=!1,s)}}function C(y){if(!i||y.length<2)return y;const J=y.length-1,fe=J-1,pe=y[J],me=y[fe].text;return pe.text.startsWith(me)&&(o.delete(me),t(1,be=be.filter(tt=>tt!==y[fe].id)),y.splice(fe,2,pe)),y}const N=()=>R(zt,U=!1,U),ht=()=>R(zt,U=!0,U),Ft=()=>R(bl,H=!0,H);function qt(y){et=y,t(3,et)}const lt=()=>t(4,Me=!Me);function Xt(y){Me=y,t(4,Me)}function $t(y){be=y,t(1,be)}function Qt(y){ct[y?"unshift":"push"](()=>{_e=y,t(0,_e)})}const Mt=()=>Ie(!!S.length),Nt=()=>R(Je,l=It(),l);function Cr(y){ct[y?"unshift":"push"](()=>{Ue=y,t(2,Ue)})}function Er(y,J){ct[y?"unshift":"push"](()=>{ae[J]=y,t(6,ae)})}const Ln=({detail:y})=>{t(1,be=[...be,y])},Lr=({detail:y})=>{t(1,be=be.filter(J=>J!==y))};function Rt(y){ct[y?"unshift":"push"](()=>{$e=y,t(5,$e)})}return e.$$.update=()=>{e.$$.dirty[1]&1024&&t(7,r=ut?"1.5rem":"1.25rem"),e.$$.dirty[1]&2048&&R(as,S=q.filter(y=>y.enabled),S)},[_e,be,Ue,et,Me,$e,ae,r,s,l,h,S,T,P,U,H,Q,V,ne,X,de,ge,We,Te,ze,ft,Fe,Se,Ke,wt,ve,ye,k,ie,qe,Re,ot,it,It,Ie,Et,ut,q,N,ht,Ft,qt,lt,Xt,$t,Qt,Mt,Nt,Cr,Er,Ln,Lr,Rt]}class Xp extends Tt{constructor(n){super(),Dt(this,n,qp,Yp,gt,{startIdPolling:40},null,[-1,-1,-1])}get startIdPolling(){return this.$$.ctx[40]}}new Xp({target:document.body});
|
36
|
+
<li class="my-0.5 hover:text-primary"><a href="https://github.com/laplus-sadness/lap-clipboard-inserter" target="_blank" rel="noreferrer">lap-clipboard-inserter</a></li></ul>`,xe=_(),se(ye.$$.fragment),Ct=_(),se(Me.$$.fragment),k=_(),oe=b("span"),oe.textContent="Window Title",Ge=_(),Ne=b("input"),rt=_(),wt=b("span"),wt.textContent="Primary Websocket",Ot=_(),it=b("input"),It=_(),Oe=b("span"),Oe.textContent="Secondary Websocket",C=_(),N=b("input"),ft=_(),Ft=b("span"),Ft.textContent="Font Size",qt=_(),ot=b("input"),Xt=_(),$t=b("span"),$t.textContent="Online Font",Qt=_(),Mt=b("select");for(let O=0;O<Nt.length;O+=1)Nt[O].c();Er=_(),Ln=b("span"),Ln.textContent="Prevent Last Line Duplicate",Lr=_(),Rt=b("input"),y=_(),J=b("span"),J.textContent="Max lines",fe=_(),he=b("input"),me=_(),et=b("span"),et.textContent="AFK Timer (s)",Kt=_(),jt=b("input"),ro=_(),xr=b("span"),xr.textContent="Adjust Timer after AFK",io=_(),fn=b("input"),oo=_(),Pr=b("span"),Pr.textContent="Enable external Clipboard Monitor",lo=_(),hn=b("input"),so=_(),Ar=b("span"),Ar.textContent="Show Preset Quick Switch",ao=_(),pn=b("input"),co=_(),Dr=b("span"),Dr.textContent="Skip Reset Confirmations",uo=_(),dn=b("input"),fo=_(),Tr=b("span"),Tr.textContent="Store Stats persistently",ho=_(),en=b("input"),po=_(),Or=b("span"),Or.textContent="Store Notes persistently",mo=_(),tn=b("input"),go=_(),Ir=b("span"),Ir.textContent="Store Lines persistently",bo=_(),nn=b("input"),vo=_(),$r=b("span"),$r.textContent="Store Action History persistently",_o=_(),rn=b("input"),yo=_(),Mr=b("span"),Mr.textContent="Enable Paste",wo=_(),mn=b("input"),ko=_(),Nr=b("span"),Nr.textContent="Block Copy from Page",So=_(),gn=b("input"),Co=_(),Rr=b("span"),Rr.textContent="Allow Paste during Pause",Eo=_(),bn=b("input"),Lo=_(),Hr=b("span"),Hr.textContent="Allow new Line during Pause",xo=_(),vn=b("input"),Po=_(),Vr=b("span"),Vr.textContent="Autostart Timer by Paste during Pause",Ao=_(),_n=b("input"),Do=_(),m=b("span"),m.textContent="Autostart Timer by Line during Pause",K=_(),ce=b("input"),Pe=_(),lt=b("span"),lt.textContent="Prevent Global Duplicate",tt=_(),nt=b("input"),Xn=_(),To=b("span"),To.textContent="Merge equal Line Starts",As=_(),Kn=b("input"),Ds=_(),Oo=b("span"),Oo.textContent="Filter lines without jp content",Ts=_(),Zn=b("input"),Os=_(),Io=b("span"),Io.textContent="Flash on missed Line",Is=_(),Jn=b("input"),$s=_(),$o=b("span"),$o.textContent="Display Text vertically",Ms=_(),xn=b("input"),Ns=_(),Mo=b("span"),Mo.textContent="Reverse Line Order",Rs=_(),Pn=b("input"),Hs=_(),No=b("span"),No.textContent="Preserve Whitespace",Vs=_(),Qn=b("input"),Fs=_(),Ro=b("span"),Ro.textContent="Remove all Whitespace",js=_(),An=b("input"),Us=_(),Ho=b("span"),Ho.textContent="Show Timer",Bs=_(),er=b("input"),Ws=_(),Vo=b("span"),Vo.textContent="Show Speed",zs=_(),tr=b("input"),Ys=_(),Fo=b("span"),Fo.textContent="Show Character Count",Gs=_(),nr=b("input"),qs=_(),jo=b("span"),jo.textContent="Show Line Count",Xs=_(),rr=b("input"),Ks=_(),Uo=b("span"),Uo.textContent="Blur Stats",Zs=_(),ir=b("input"),Js=_(),Bo=b("span"),Bo.textContent="Enable Line Animation",Qs=_(),or=b("input"),ea=_(),Wo=b("span"),Wo.textContent="Enable AFK Blur",ta=_(),lr=b("input"),na=_(),zo=b("span"),zo.textContent="Restart Timer after AFK Blur",ra=_(),sr=b("input"),ia=_(),Yo=b("span"),Yo.textContent="Continuous Reconnect",oa=_(),Dn=b("input"),la=_(),Go=b("span"),Go.textContent="Show Connection Errors",sa=_(),ar=b("input"),aa=_(),xi=b("span"),xi.textContent="Custom CSS",ca=_(),Tn=b("textarea"),f(n,"class","hidden"),f(n,"type","file"),f(r,"class","hidden"),f(r,"type","file"),f(o,"class","hidden"),f(o,"type","file"),f(g,"class","label-text"),f(h,"role","button"),f(h,"class","flex flex-col items-center hover:text-primary"),f(T,"class","label-text"),f(S,"role","button"),f(S,"class","flex flex-col items-center hover:text-primary"),f(U,"class","label-text"),f(I,"role","button"),f(I,"class","flex flex-col items-center hover:text-primary"),f(Z,"class","label-text"),f(L,"role","button"),f(L,"class","flex flex-col items-center hover:text-primary"),f(X,"class","label-text"),f(Q,"role","button"),f(Q,"class","flex flex-col items-center hover:text-primary"),f(We,"class","label-text"),f(ge,"role","button"),f(ge,"class","flex flex-col items-center hover:text-primary"),f(Qe,"class","label-text"),f(_e,"role","button"),f(_e,"class","flex flex-col items-center hover:text-primary"),f(ze,"type","checkbox"),ze.checked=Ye=e[4]===Wt.BUSINESS,f(ae,"class","swap swap-rotate"),f(Xe,"class","label-text"),f(Ie,"role","button"),f(Ie,"class","flex flex-col items-center hover:text-primary"),f(c,"class","flex justify-between text-sm gap-x-5"),f(a,"class","mb-2"),Pt(a,"grid-column","1/5"),f(ve,"role","button"),f(ve,"class","col-span-4 mb-2"),f(oe,"class","label-text col-span-2"),f(Ne,"class","input input-bordered h-8 col-span-2"),f(wt,"class","label-text col-span-2"),f(it,"class","input input-bordered h-8 col-span-2"),f(Oe,"class","label-text col-span-2"),f(N,"class","input input-bordered h-8 col-span-2"),f(Ft,"class","label-text col-span-2"),f(ot,"type","number"),f(ot,"class","input input-bordered h-8 col-span-2"),f(ot,"min","1"),f($t,"class","label-text mr-4 col-span-2"),f(Mt,"class","select col-span-2"),e[19]===void 0&&br(()=>e[87].call(Mt)),f(Ln,"class","label-text col-span-2"),f(Rt,"type","number"),f(Rt,"class","input input-bordered h-8 col-span-2"),f(Rt,"min","0"),Rt.value=e[16],f(J,"class","label-text col-span-2"),f(he,"type","number"),f(he,"class","input input-bordered h-8 mb-2 col-span-2"),f(he,"min","0"),he.value=e[15],f(et,"class","label-text col-span-2"),f(jt,"type","number"),f(jt,"class","input input-bordered h-8 mb-2 col-span-2"),f(jt,"min","0"),f(xr,"class","label-text"),f(fn,"type","checkbox"),f(fn,"class","checkbox checkbox-primary ml-2"),f(Pr,"class","label-text"),f(hn,"type","checkbox"),f(hn,"class","checkbox checkbox-primary ml-2"),f(Ar,"class","label-text"),f(pn,"type","checkbox"),f(pn,"class","checkbox checkbox-primary ml-2"),f(Dr,"class","label-text"),f(dn,"type","checkbox"),f(dn,"class","checkbox checkbox-primary ml-2"),f(Tr,"class","label-text"),f(en,"type","checkbox"),f(en,"class","checkbox checkbox-primary ml-2"),f(Or,"class","label-text"),f(tn,"type","checkbox"),f(tn,"class","checkbox checkbox-primary ml-2"),f(Ir,"class","label-text"),f(nn,"type","checkbox"),f(nn,"class","checkbox checkbox-primary ml-2"),f($r,"class","label-text"),f(rn,"type","checkbox"),f(rn,"class","checkbox checkbox-primary ml-2"),f(Mr,"class","label-text"),f(mn,"type","checkbox"),f(mn,"class","checkbox checkbox-primary ml-2"),f(Nr,"class","label-text"),f(gn,"type","checkbox"),f(gn,"class","checkbox checkbox-primary ml-2"),f(Rr,"class","label-text"),f(bn,"type","checkbox"),f(bn,"class","checkbox checkbox-primary ml-2"),f(Hr,"class","label-text"),f(vn,"type","checkbox"),f(vn,"class","checkbox checkbox-primary ml-2"),f(Vr,"class","label-text"),f(_n,"type","checkbox"),f(_n,"class","checkbox checkbox-primary ml-2"),f(m,"class","label-text"),f(ce,"type","checkbox"),f(ce,"class","checkbox checkbox-primary ml-2"),f(lt,"class","label-text"),f(nt,"type","checkbox"),f(nt,"class","checkbox checkbox-primary ml-2"),f(To,"class","label-text"),f(Kn,"type","checkbox"),f(Kn,"class","checkbox checkbox-primary ml-2"),f(Oo,"class","label-text"),f(Zn,"type","checkbox"),f(Zn,"class","checkbox checkbox-primary ml-2"),f(Io,"class","label-text"),f(Jn,"type","checkbox"),f(Jn,"class","checkbox checkbox-primary ml-2"),f($o,"class","label-text"),f(xn,"type","checkbox"),f(xn,"class","checkbox checkbox-primary ml-2"),f(Mo,"class","label-text"),f(Pn,"type","checkbox"),f(Pn,"class","checkbox checkbox-primary ml-2"),f(No,"class","label-text"),f(Qn,"type","checkbox"),f(Qn,"class","checkbox checkbox-primary ml-2"),f(Ro,"class","label-text"),f(An,"type","checkbox"),f(An,"class","checkbox checkbox-primary ml-2"),f(Ho,"class","label-text"),f(er,"type","checkbox"),f(er,"class","checkbox checkbox-primary ml-2"),f(Vo,"class","label-text"),f(tr,"type","checkbox"),f(tr,"class","checkbox checkbox-primary ml-2"),f(Fo,"class","label-text"),f(nr,"type","checkbox"),f(nr,"class","checkbox checkbox-primary ml-2"),f(jo,"class","label-text"),f(rr,"type","checkbox"),f(rr,"class","checkbox checkbox-primary ml-2"),f(Uo,"class","label-text"),f(ir,"type","checkbox"),f(ir,"class","checkbox checkbox-primary ml-2"),f(Bo,"class","label-text"),f(or,"type","checkbox"),f(or,"class","checkbox checkbox-primary ml-2"),f(Wo,"class","label-text"),f(lr,"type","checkbox"),f(lr,"class","checkbox checkbox-primary ml-2"),f(zo,"class","label-text"),f(sr,"type","checkbox"),f(sr,"class","checkbox checkbox-primary ml-2"),f(Yo,"class","label-text"),f(Dn,"type","checkbox"),f(Dn,"class","checkbox checkbox-primary ml-2"),f(Go,"class","label-text"),f(ar,"type","checkbox"),f(ar,"class","checkbox checkbox-primary ml-2"),f(xi,"class","label-text"),Pt(xi,"grid-column","1/5"),f(Tn,"class","p-1 min-h-[10rem] font-mono"),Pt(Tn,"grid-column","1/5"),f(Tn,"rows","5"),Tn.value=e[2],f(l,"class","grid grid-cols-[max-content,auto,max-content,auto] gap-3 absolute overflow-auto h-[90vh] top-11 z-10 py-4 pr-8 pl-4 border bg-base-200")},m(O,ee){j(O,n,ee),e[70](n),j(O,t,ee),j(O,r,ee),e[71](r),j(O,i,ee),j(O,o,ee),e[72](o),j(O,s,ee),j(O,l,ee),u(l,a),u(a,c),u(c,h),re(p,h,null),u(h,d),u(h,g),u(c,v),u(c,S),re($,S,null),u(S,D),u(S,T),u(c,P),u(c,I),re(q,I,null),u(I,G),u(I,U),u(c,A),u(c,L),re(z,L,null),u(L,Y),u(L,Z),u(c,H),u(c,Q),re(V,Q,null),u(Q,ne),u(Q,X),u(c,de),u(c,ge),re(Be,ge,null),u(ge,De),u(ge,We),u(c,ct),u(c,_e),re(be,_e,null),u(_e,je),u(_e,Qe),u(c,$e),u(c,Ie),u(Ie,ae),u(ae,ze),u(ae,Te),re(qe,ae,null),u(ae,ut),re(Ve,ae,null),u(Ie,Se),u(Ie,Xe),u(l,yt),u(l,ve),u(l,xe),re(ye,l,null),u(l,Ct),re(Me,l,null),u(l,k),u(l,oe),u(l,Ge),u(l,Ne),vt(Ne,e[17]),u(l,rt),u(l,wt),u(l,Ot),u(l,it),vt(it,e[11]),u(l,It),u(l,Oe),u(l,C),u(l,N),vt(N,e[10]),u(l,ft),u(l,Ft),u(l,qt),u(l,ot),vt(ot,e[18]),u(l,Xt),u(l,$t),u(l,Qt),u(l,Mt);for(let In=0;In<Nt.length;In+=1)Nt[In].m(Mt,null);qr(Mt,e[19]),u(l,Er),u(l,Ln),u(l,Lr),u(l,Rt),u(l,y),u(l,J),u(l,fe),u(l,he),u(l,me),u(l,et),u(l,Kt),u(l,jt),vt(jt,e[20]),u(l,ro),u(l,xr),u(l,io),u(l,fn),fn.checked=e[21],u(l,oo),u(l,Pr),u(l,lo),u(l,hn),hn.checked=e[3],u(l,so),u(l,Ar),u(l,ao),u(l,pn),pn.checked=e[22],u(l,co),u(l,Dr),u(l,uo),u(l,dn),dn.checked=e[12],u(l,fo),u(l,Tr),u(l,ho),u(l,en),en.checked=e[23],u(l,po),u(l,Or),u(l,mo),u(l,tn),tn.checked=e[24],u(l,go),u(l,Ir),u(l,bo),u(l,nn),nn.checked=e[25],u(l,vo),u(l,$r),u(l,_o),u(l,rn),rn.checked=e[26],u(l,yo),u(l,Mr),u(l,wo),u(l,mn),mn.checked=e[27],u(l,ko),u(l,Nr),u(l,So),u(l,gn),gn.checked=e[28],u(l,Co),u(l,Rr),u(l,Eo),u(l,bn),bn.checked=e[29],u(l,Lo),u(l,Hr),u(l,xo),u(l,vn),vn.checked=e[30],u(l,Po),u(l,Vr),u(l,Ao),u(l,_n),_n.checked=e[31],u(l,Do),u(l,m),u(l,K),u(l,ce),ce.checked=e[32],u(l,Pe),u(l,lt),u(l,tt),u(l,nt),nt.checked=e[14],u(l,Xn),u(l,To),u(l,As),u(l,Kn),Kn.checked=e[33],u(l,Ds),u(l,Oo),u(l,Ts),u(l,Zn),Zn.checked=e[34],u(l,Os),u(l,Io),u(l,Is),u(l,Jn),Jn.checked=e[35],u(l,$s),u(l,$o),u(l,Ms),u(l,xn),xn.checked=e[36],u(l,Ns),u(l,Mo),u(l,Rs),u(l,Pn),Pn.checked=e[37],u(l,Hs),u(l,No),u(l,Vs),u(l,Qn),Qn.checked=e[38],u(l,Fs),u(l,Ro),u(l,js),u(l,An),An.checked=e[13],u(l,Us),u(l,Ho),u(l,Bs),u(l,er),er.checked=e[39],u(l,Ws),u(l,Vo),u(l,zs),u(l,tr),tr.checked=e[40],u(l,Ys),u(l,Fo),u(l,Gs),u(l,nr),nr.checked=e[41],u(l,qs),u(l,jo),u(l,Xs),u(l,rr),rr.checked=e[42],u(l,Ks),u(l,Uo),u(l,Zs),u(l,ir),ir.checked=e[43],u(l,Js),u(l,Bo),u(l,Qs),u(l,or),or.checked=e[44],u(l,ea),u(l,Wo),u(l,ta),u(l,lr),lr.checked=e[45],u(l,na),u(l,zo),u(l,ra),u(l,sr),sr.checked=e[46],u(l,ia),u(l,Yo),u(l,oa),u(l,Dn),Dn.checked=e[47],u(l,la),u(l,Go),u(l,sa),u(l,ar),ar.checked=e[48],u(l,aa),u(l,xi),u(l,ca),u(l,Tn),On=!0,Rl||(ua=[x(n,"change",e[58]),x(r,"change",e[59]),x(o,"change",e[60]),x(h,"click",e[53]),x(h,"keyup",xt),x(S,"click",e[54]),x(S,"keyup",xt),x(I,"click",e[73]),x(I,"keyup",xt),x(L,"click",e[74]),x(L,"keyup",xt),x(Q,"click",dh),x(Q,"keyup",xt),x(ge,"click",e[55]),x(ge,"keyup",xt),x(_e,"click",e[56]),x(_e,"keyup",xt),x(ze,"change",e[75]),x(Ie,"click",e[76]),x(Ie,"keyup",xt),x(Ne,"input",e[81]),x(it,"input",e[82]),x(it,"change",e[83]),x(N,"input",e[84]),x(N,"change",e[51]),x(ot,"input",e[85]),x(ot,"blur",e[86]),x(Mt,"change",e[87]),x(Rt,"blur",e[62]),x(he,"blur",e[63]),x(jt,"input",e[88]),x(jt,"blur",e[89]),x(fn,"change",e[90]),x(hn,"change",e[91]),x(pn,"change",e[92]),x(dn,"change",e[93]),x(en,"change",e[94]),x(en,"change",e[95]),x(tn,"change",e[96]),x(tn,"change",e[97]),x(nn,"change",e[98]),x(nn,"change",e[99]),x(rn,"change",e[100]),x(rn,"change",e[101]),x(mn,"change",e[102]),x(gn,"change",e[103]),x(bn,"change",e[104]),x(vn,"change",e[105]),x(_n,"change",e[106]),x(ce,"change",e[107]),x(nt,"change",e[108]),x(nt,"change",e[64]),x(Kn,"change",e[109]),x(Zn,"change",e[110]),x(Jn,"change",e[111]),x(xn,"change",e[112]),x(xn,"change",e[113]),x(Pn,"change",e[114]),x(Pn,"change",e[115]),x(Qn,"change",e[116]),x(An,"change",e[117]),x(An,"change",e[65]),x(er,"change",e[118]),x(tr,"change",e[119]),x(nr,"change",e[120]),x(rr,"change",e[121]),x(ir,"change",e[122]),x(or,"change",e[123]),x(lr,"change",e[124]),x(sr,"change",e[125]),x(Dn,"change",e[126]),x(Dn,"change",e[127]),x(ar,"change",e[128]),x(Tn,"blur",e[66]),_u(Vh.call(null,l,e[52]))],Rl=!0)},p(O,ee){(!On||ee[0]&16&&Ye!==(Ye=O[4]===Wt.BUSINESS))&&(ze.checked=Ye);const In={};ye.$set(In),ee[0]&131072&&Ne.value!==O[17]&&vt(Ne,O[17]),ee[0]&2048&&it.value!==O[11]&&vt(it,O[11]),ee[0]&1024&&N.value!==O[10]&&vt(N,O[10]),ee[0]&262144&&hl(ot.value)!==O[18]&&vt(ot,O[18]),ee[1]&524288&&(qo=O[50],Nt=Ei(Nt,ee,fa,1,O,qo,Cr,Mt,xl,Ja,null,Ka)),ee[0]&524288|ee[1]&524288&&qr(Mt,O[19]),(!On||ee[0]&65536&&Rt.value!==O[16])&&(Rt.value=O[16]),(!On||ee[0]&32768&&he.value!==O[15])&&(he.value=O[15]),ee[0]&1048576&&hl(jt.value)!==O[20]&&vt(jt,O[20]),ee[0]&2097152&&(fn.checked=O[21]),ee[0]&8&&(hn.checked=O[3]),ee[0]&4194304&&(pn.checked=O[22]),ee[0]&4096&&(dn.checked=O[12]),ee[0]&8388608&&(en.checked=O[23]),ee[0]&16777216&&(tn.checked=O[24]),ee[0]&33554432&&(nn.checked=O[25]),ee[0]&67108864&&(rn.checked=O[26]),ee[0]&134217728&&(mn.checked=O[27]),ee[0]&268435456&&(gn.checked=O[28]),ee[0]&536870912&&(bn.checked=O[29]),ee[0]&1073741824&&(vn.checked=O[30]),ee[1]&1&&(_n.checked=O[31]),ee[1]&2&&(ce.checked=O[32]),ee[0]&16384&&(nt.checked=O[14]),ee[1]&4&&(Kn.checked=O[33]),ee[1]&8&&(Zn.checked=O[34]),ee[1]&16&&(Jn.checked=O[35]),ee[1]&32&&(xn.checked=O[36]),ee[1]&64&&(Pn.checked=O[37]),ee[1]&128&&(Qn.checked=O[38]),ee[0]&8192&&(An.checked=O[13]),ee[1]&256&&(er.checked=O[39]),ee[1]&512&&(tr.checked=O[40]),ee[1]&1024&&(nr.checked=O[41]),ee[1]&2048&&(rr.checked=O[42]),ee[1]&4096&&(ir.checked=O[43]),ee[1]&8192&&(or.checked=O[44]),ee[1]&16384&&(lr.checked=O[45]),ee[1]&32768&&(sr.checked=O[46]),ee[1]&65536&&(Dn.checked=O[47]),ee[1]&131072&&(ar.checked=O[48]),(!On||ee[0]&4)&&(Tn.value=O[2])},i(O){On||(M(p.$$.fragment,O),M($.$$.fragment,O),M(q.$$.fragment,O),M(z.$$.fragment,O),M(V.$$.fragment,O),M(Be.$$.fragment,O),M(be.$$.fragment,O),M(qe.$$.fragment,O),M(Ve.$$.fragment,O),M(ye.$$.fragment,O),M(Me.$$.fragment,O),On=!0)},o(O){W(p.$$.fragment,O),W($.$$.fragment,O),W(q.$$.fragment,O),W(z.$$.fragment,O),W(V.$$.fragment,O),W(Be.$$.fragment,O),W(be.$$.fragment,O),W(qe.$$.fragment,O),W(Ve.$$.fragment,O),W(ye.$$.fragment,O),W(Me.$$.fragment,O),On=!1},d(O){O&&F(n),e[70](null),O&&F(t),O&&F(r),e[71](null),O&&F(i),O&&F(o),e[72](null),O&&F(s),O&&F(l),ie(p),ie($),ie(q),ie(z),ie(V),ie(Be),ie(be),ie(qe),ie(Ve),e[77](null),ie(ye),ie(Me);for(let ee=0;ee<Nt.length;ee+=1)Nt[ee].d();Rl=!1,St(ua)}}}function Ja(e,n){let t,r=n[145]+"",i,o;return{key:e,first:null,c(){t=b("option"),i=st(r),o=_(),t.__value=n[145],t.value=t.__value,this.first=t},m(s,l){j(s,t,l),u(t,i),u(t,o)},p(s,l){n=s},d(s){s&&F(t)}}}function Lp(e){let n,t,r,i;Xa.title=n=e[17]||"Texthooker UI";let o=e[0]&&Za(e);return{c(){t=_(),o&&o.c(),r=Gn()},m(s,l){j(s,t,l),o&&o.m(s,l),j(s,r,l),i=!0},p(s,l){(!i||l[0]&131072)&&n!==(n=s[17]||"Texthooker UI")&&(Xa.title=n),s[0]?o?(o.p(s,l),l[0]&1&&M(o,1)):(o=Za(s),o.c(),M(o,1),o.m(r.parentNode,r)):o&&(pt(),W(o,1,1,()=>{o=null}),dt())},i(s){i||(M(o),i=!0)},o(s){W(o),i=!1},d(s){s&&F(t),o&&o.d(s),s&&F(r)}}}function xp(e){const n=document.createTextNode(e);let t=document.getElementById("user-css");t?t.replaceChild(n,t.firstChild):(t=document.createElement("style"),t.id="user-css",t.appendChild(n),document.head.append(t))}function Jl(e,n){const t=document.createElement("a");t.href=URL.createObjectURL(new Blob([JSON.stringify(n)],{type:"application/json"})),t.rel="noopener",t.download=e,setTimeout(()=>{URL.revokeObjectURL(t.href)},1e4),setTimeout(()=>{t.click()})}function Pp(e,n,t){let r,i,o,s,l,a,c,h,p,d,g,v,S,$,D,T,P,I,q,G,U,A,L,z,Y,Z,H,Q,V,ne,X,de,ge,Be,De,We,ct,_e,be,je,Qe,$e,Ie,ae,ze,Ye,Te,qe,ut,Ve,Se,Xe,yt;w(e,Re,m=>t(130,o=m)),w(e,Jr,m=>t(12,s=m)),w(e,Xi,m=>t(2,l=m)),w(e,Ze,m=>t(131,a=m)),w(e,hi,m=>t(13,c=m)),w(e,_r,m=>t(14,h=m)),w(e,pr,m=>t(15,p=m)),w(e,gr,m=>t(16,d=m)),w(e,Un,m=>t(132,g=m)),w(e,on,m=>t(133,v=m)),w(e,Nn,m=>t(134,S=m)),w(e,Ki,m=>t(135,$=m)),w(e,ln,m=>t(136,D=m)),w(e,_l,m=>t(137,T=m)),w(e,ll,m=>t(138,P=m)),w(e,wn,m=>t(69,I=m)),w(e,Gi,m=>t(3,q=m)),w(e,dr,m=>t(4,G=m)),w(e,Yn,m=>t(5,U=m)),w(e,Yi,m=>t(17,A=m)),w(e,mr,m=>t(18,L=m)),w(e,Kr,m=>t(19,z=m)),w(e,Wn,m=>t(20,Y=m)),w(e,Zr,m=>t(21,Z=m)),w(e,qi,m=>t(22,H=m)),w(e,Qr,m=>t(23,Q=m)),w(e,ei,m=>t(24,V=m)),w(e,ti,m=>t(25,ne=m)),w(e,ni,m=>t(26,X=m)),w(e,ri,m=>t(27,de=m)),w(e,ii,m=>t(28,ge=m)),w(e,oi,m=>t(29,Be=m)),w(e,li,m=>t(30,De=m)),w(e,si,m=>t(31,We=m)),w(e,ai,m=>t(32,ct=m)),w(e,ci,m=>t(33,_e=m)),w(e,bl,m=>t(34,be=m)),w(e,ui,m=>t(35,je=m)),w(e,yr,m=>t(36,Qe=m)),w(e,wr,m=>t(37,$e=m)),w(e,fi,m=>t(38,Ie=m)),w(e,pi,m=>t(39,ae=m)),w(e,di,m=>t(40,ze=m)),w(e,mi,m=>t(41,Ye=m)),w(e,gi,m=>t(42,Te=m)),w(e,bi,m=>t(43,qe=m)),w(e,vi,m=>t(44,ut=m)),w(e,_i,m=>t(45,Ve=m)),w(e,yi,m=>t(46,Se=m)),w(e,kr,m=>t(47,Xe=m)),w(e,wi,m=>t(48,yt=m));let{selectedLineIds:ve}=n,{settingsOpen:xe}=n,{settingsElement:ye}=n;async function Ct(m){if(!s){const{canceled:K}=await new Promise(ce=>{R(Re,o={icon:Bt,message:m?"All displayed and stored Lines will be cleared":"Clear stored Lines + set Timer to 00:00:00",callback:ce},o)});if(K)return}R(Ze,a=[],a),t(67,ve=[]),window.localStorage.removeItem("bannou-texthooker-lineData"),m||R(ln,D=0,D)}const Me=Ci(),k=[Fn.OFF,Fn.NOTO,Fn.KLEE,Fn.SHIPPORI];let oe,Ge,Ne,rt,wt;function Ot(m){const K=m.target;K.setCustomValidity(""),i===r?(K.setCustomValidity("Duplicate Websocket"),t(10,i=""),R(wn,I="",I)):R(wn,I=K.value,I),K.reportValidity()}function it(m){m&&!wt?Bi().then(()=>{wt=new MutationObserver(It),wt.observe(document.body,{childList:!0})}):!m&&wt&&(wt.disconnect(),wt=void 0)}function It(m){for(let K=0,{length:ce}=m;K<ce;K+=1){const{addedNodes:Pe}=m[K];for(let lt=0,{length:tt}=Pe;lt<tt;lt+=1){const nt=Pe[K];(nt==null?void 0:nt.tagName)==="P"&&(ki.next([nt.textContent,jn.EXTERNAL,""]),nt.remove())}}}function Oe(m){const K=m.target;!P&&K!==ye&&K.parentElement!==ye&&K!==oe&&K!==Ge&&K!==Ne&&!T&&t(0,xe=!1)}async function C(){const{canceled:m,data:K}=await new Promise(ce=>{R(Re,o={icon:Bt,askForData:"text",dataValue:"00:00:00",message:"New Time",callback:ce},o)});if(!m){if(!/^[\d]{1,}:[\d]{1,2}:[\d]{1,2}$/.test(K))return new Promise(ce=>{R(Re,o={icon:yc,type:"error",message:"Invalid Time value (x:xx:xx)",showCancel:!1,callback:ce},o)});R(ln,D=gh(K),D)}}async function N(){if(!s){const{canceled:m}=await new Promise(K=>{R(Re,o={icon:Bt,message:"Timer will be set to 00:00:00",callback:K},o)});if(m)return}R(ln,D=0,D)}async function ft(m){m.altKey?await y(oe,"Existing Data will be overwritten"):Jl("texthooker-ui_data.json",{"bannou-texthooker-timeValue":D,"bannou-texthooker-userNotes":$,"bannou-texthooker-lineData":a,"bannou-texthooker-actionHistory":S})}async function Ft(m){m.altKey?await y(Ge,"Presets, Settings etc. will be overwritten"):Jl("texthooker-ui_settings.json",{currentSettings:rt.getCurrentSettings(),settingPresets:v,lastSettingsPreset:g})}async function qt(m){if(m.altKey)await y(Ne,"Preset will be overwritten or otherwise added");else if(g){const K=v.find(ce=>ce.name===g);K&&Jl("texthooker-ui_preset.json",{name:K.name,settings:K.settings})}}async function ot(){const m=await J(oe).catch(({message:K})=>{R(Re,o={type:"error",message:K,showCancel:!1},o)});if(m){const K=Object.entries(m);for(let ce=0,{length:Pe}=K;ce<Pe;ce+=1){const[lt,tt]=K[ce];switch(lt){case"bannou-texthooker-timeValue":R(ln,D=tt,D);break;case"bannou-texthooker-userNotes":R(Ki,$=tt,$);break;case"bannou-texthooker-lineData":R(Ze,a=tt,a);break;case"bannou-texthooker-actionHistory":R(Nn,S=tt,S);break}}}t(6,oe.value=null,oe)}async function Xt(){const m=await J(Ge).catch(({message:K})=>{R(Re,o={type:"error",message:K,showCancel:!1},o)});m&&(R(on,v=m.settingPresets||[],v),R(Un,g=m.lastSettingsPreset||"",g),m.currentSettings&&rt.updateSettingsWithPreset({name:"",settings:m.currentSettings},!1)),t(7,Ge.value=null,Ge)}async function $t(){const m=await J(Ne).catch(({message:K})=>{R(Re,o={type:"error",message:K,showCancel:!1},o)});if(m&&m.name&&m.settings){const K=v.findIndex(ce=>ce.name===m.name);K>-1?(R(on,v[K]=m,v),R(on,v=[...v],v)):R(on,v=[...v,m],v),R(Un,g=m.name,g),rt.updateSettingsWithPreset(m)}t(8,Ne.value=null,Ne)}async function Qt(m,K,ce){if(m)return;const{canceled:Pe}=await new Promise(lt=>{R(Re,o={icon:Bt,message:K,callback:lt},o)});Pe||window.localStorage.removeItem(ce)}function Mt(m){const K=m.target,ce=Number.parseInt(K.value||"0"),Pe=ce!==d;!ce||ce<0?R(gr,d=0,d):R(gr,d=ce,d),K.value=`${d}`,Pe&&Nt()}async function Nt(){if(!d||a.length<2)return;const{canceled:m}=await new Promise(tt=>{R(Re,o={icon:Bt,message:"Apply to current lines",callback:tt},o)});if(m)return;const K=[],ce=new Set,Pe=new Set,lt=a.splice(-(d+1));for(let tt=0,{length:nt}=lt;tt<nt;tt+=1){const Xn=lt[tt];ce.has(Xn.text)?Pe.add(Xn.id):(K.push(Xn),ce.add(Xn.text))}R(Ze,a=[...a,...K],a),t(67,ve=ve.filter(tt=>!Pe.has(tt)))}function Cr(m){const K=m.target,ce=Number.parseInt(K.value||"0"),Pe=ce!==p;!ce||ce<0?R(pr,p=0,p):R(pr,p=ce,p),K.value=`${p}`,Pe&&Er()}async function Er(){const m=a.length-p;if(!p||m<1)return;const{canceled:K}=await new Promise(ce=>{R(Re,o={icon:Bt,message:`This will remove the first ${m} line(s)`,callback:ce},o)});K?R(pr,p=0,p):Me("maxLinesChange")}async function Ln(){if(!h||a.length<2)return;const{canceled:m}=await new Promise(K=>{R(Re,o={icon:Bt,message:"Apply to current lines",callback:K},o)});if(!m){const K=new Set,ce=new Set;R(Ze,a=a.filter(Pe=>K.has(Pe.text)?(ce.add(Pe.id),!1):(K.add(Pe.text),!0)),a),t(67,ve=ve.filter(Pe=>!ce.has(Pe)))}}async function Lr(){if(c){const{canceled:m}=await new Promise(K=>{R(Re,o={icon:Bt,message:"Apply to current Lines",callback:K},o)});m||R(Ze,a=a.map(K=>(K.text=K.text.replace(/\s/g,"").trim(),K)),a)}}function Rt(m){R(Xi,l=m.target.value,l)}async function y(m,K){if(!s){const{canceled:ce}=await new Promise(Pe=>{R(Re,o={icon:Bt,message:K,callback:Pe},o)});if(ce)return}m.click()}function J(m){return new Promise((K,ce)=>{const[Pe]=m.files,lt=new FileReader;if(!Pe)return K();if(!Pe.name.endsWith(".json"))return R(Re,o={type:"error",message:"Expected json File",showCancel:!1},o),m.value=null,K();lt.addEventListener("loadend",tt=>{try{const nt=JSON.parse(tt.target.result);K(nt)}catch{ce(new Error("Error parsing File"))}}),lt.addEventListener("error",()=>ce(new Error("Failed to read File"))),lt.readAsText(Pe,"utf-8")})}function fe(m){at[m?"unshift":"push"](()=>{oe=m,t(6,oe)})}function he(m){at[m?"unshift":"push"](()=>{Ge=m,t(7,Ge)})}function me(m){at[m?"unshift":"push"](()=>{Ne=m,t(8,Ne)})}const et=()=>Ct(!0),Kt=()=>Ct(!1),jt=()=>R(dr,G=G===Wt.BUSINESS?Wt.GARDEN:Wt.BUSINESS,G),ro=()=>R(dr,G=G===Wt.BUSINESS?Wt.GARDEN:Wt.BUSINESS,G);function xr(m){at[m?"unshift":"push"](()=>{rt=m,t(9,rt)})}function io(m){Ui.call(this,e,m)}const fn=({detail:m})=>qt(m);function oo(m){Ui.call(this,e,m)}function Pr(){A=this.value,Yi.set(A)}function lo(){r=this.value,t(11,r),t(5,U)}const hn=()=>R(Yn,U=r,U);function so(){i=this.value,t(10,i),t(69,I)}function Ar(){L=hl(this.value),mr.set(L)}const ao=()=>{(!L||L<1)&&R(mr,L=24,L)};function pn(){z=Lu(this),Kr.set(z),t(50,k)}function co(){Y=hl(this.value),Wn.set(Y)}const Dr=()=>{(Y===null||Y<0)&&R(Wn,Y=0,Y)};function uo(){Z=this.checked,Zr.set(Z)}function dn(){q=this.checked,Gi.set(q)}function fo(){H=this.checked,qi.set(H)}function Tr(){s=this.checked,Jr.set(s)}function ho(){Q=this.checked,Qr.set(Q)}const en=()=>Qt(Q,"Clear stored stats","bannou-texthooker-timeValue");function po(){V=this.checked,ei.set(V)}const Or=()=>Qt(V,"Clear stored notes","bannou-texthooker-userNotes");function mo(){ne=this.checked,ti.set(ne)}const tn=()=>Qt(ne,"Clear stored lines","bannou-texthooker-lineData");function go(){X=this.checked,ni.set(X)}const Ir=()=>Qt(X,"Clear action history","bannou-texthooker-actionHistory");function bo(){de=this.checked,ri.set(de)}function nn(){ge=this.checked,ii.set(ge)}function vo(){Be=this.checked,oi.set(Be)}function $r(){De=this.checked,li.set(De)}function _o(){We=this.checked,si.set(We)}function rn(){ct=this.checked,ai.set(ct)}function yo(){h=this.checked,_r.set(h)}function Mr(){_e=this.checked,ci.set(_e)}function wo(){be=this.checked,bl.set(be)}function mn(){je=this.checked,ui.set(je)}function ko(){Qe=this.checked,yr.set(Qe)}const Nr=()=>Me("layoutChange");function So(){$e=this.checked,wr.set($e)}const gn=()=>Me("layoutChange");function Co(){Ie=this.checked,fi.set(Ie)}function Rr(){c=this.checked,hi.set(c)}function Eo(){ae=this.checked,pi.set(ae)}function bn(){ze=this.checked,di.set(ze)}function Lo(){Ye=this.checked,mi.set(Ye)}function Hr(){Te=this.checked,gi.set(Te)}function xo(){qe=this.checked,bi.set(qe)}function vn(){ut=this.checked,vi.set(ut)}function Po(){Ve=this.checked,_i.set(Ve)}function Vr(){Se=this.checked,yi.set(Se)}function Ao(){Xe=this.checked,kr.set(Xe)}const _n=()=>{$l.next(),Ml.next()};function Do(){yt=this.checked,wi.set(yt)}return e.$$set=m=>{"selectedLineIds"in m&&t(67,ve=m.selectedLineIds),"settingsOpen"in m&&t(0,xe=m.settingsOpen),"settingsElement"in m&&t(68,ye=m.settingsElement)},e.$$.update=()=>{e.$$.dirty[0]&32&&t(11,r=U),e.$$.dirty[2]&128&&t(10,i=I),e.$$.dirty[0]&16&&(document.body.dataset.theme=G),e.$$.dirty[0]&8&&it(q),e.$$.dirty[0]&4&&xp(l)},[xe,Ct,l,q,G,U,oe,Ge,Ne,rt,i,r,s,c,h,p,d,A,L,z,Y,Z,H,Q,V,ne,X,de,ge,Be,De,We,ct,_e,be,je,Qe,$e,Ie,ae,ze,Ye,Te,qe,ut,Ve,Se,Xe,yt,Me,k,Ot,Oe,C,N,ft,Ft,qt,ot,Xt,$t,Qt,Mt,Cr,Ln,Lr,Rt,ve,ye,I,fe,he,me,et,Kt,jt,ro,xr,io,fn,oo,Pr,lo,hn,so,Ar,ao,pn,co,Dr,uo,dn,fo,Tr,ho,en,po,Or,mo,tn,go,Ir,bo,nn,vo,$r,_o,rn,yo,Mr,wo,mn,ko,Nr,So,gn,Co,Rr,Eo,bn,Lo,Hr,xo,vn,Po,Vr,Ao,_n,Do]}class Ap extends Tt{constructor(n){super(),Dt(this,n,Pp,Lp,mt,{selectedLineIds:67,settingsOpen:0,settingsElement:68,handleReset:1},null,[-1,-1,-1,-1,-1])}get handleReset(){return this.$$.ctx[1]}}class Dp{constructor(n=!0){Pi(this,"websocketUrl");Pi(this,"socket");Pi(this,"socketState");Pi(this,"subscriptions",[]);this.socketState=n?Ss:Cs,this.subscriptions.push((n?Yn:wn).subscribe(t=>{t!==this.websocketUrl&&(this.websocketUrl=t,this.reloadSocket())}),kr.pipe(zi(t=>t?(n?$l:Ml).pipe(Ol(()=>{var r;return((r=this.socket)==null?void 0:r.readyState)===3})):Wi)).subscribe(()=>this.reloadSocket()))}getCurrentUrl(){return this.websocketUrl}connect(){var n;if(!(((n=this.socket)==null?void 0:n.readyState)<2)){if(!this.websocketUrl){this.socketState.next(3);return}this.socketState.next(0);try{this.socket=new WebSocket(this.websocketUrl),this.socket.onopen=this.updateSocketState.bind(this),this.socket.onclose=this.updateSocketState.bind(this),this.socket.onmessage=this.handleMessage.bind(this)}catch{this.socketState.next(3)}}}disconnect(){var n;((n=this.socket)==null?void 0:n.readyState)===1&&this.socket.close(1e3,"User Request")}cleanUp(){this.disconnect();for(let n=0,{length:t}=this.subscriptions;n<t;n+=1)this.subscriptions[n].unsubscribe()}reloadSocket(){this.disconnect(),this.socket=void 0,this.connect()}updateSocketState(){this.socket&&this.socketState.next(this.socket.readyState)}handleMessage(n){var r,i,o;let t=n.data;try{((r=JSON.parse(n.data))==null?void 0:r.event)==="reset_checkboxes"&&ki.next(["",jn.RESETCHECKBOXES,""]),t=((i=JSON.parse(n.data))==null?void 0:i.sentence)||n.data}catch{}console.log(n.data),ki.next([t,jn.SOCKET,((o=JSON.parse(n.data))==null?void 0:o.data.id)||""])}}function Tp(e){let n;return{c(){n=b("span"),f(n,"class","animate-ping relative inline-flex rounded-full h-3 w-3 mx-3 bg-primary")},m(t,r){j(t,n,r)},p:Le,i:Le,o:Le,d(t){t&&F(n)}}}function Op(e){let n,t,r;return t=new we({props:{path:Vu,class:"cursor-pointer mx-2"}}),t.$on("click",e[3]),{c(){n=b("div"),se(t.$$.fragment),f(n,"class","hover:text-primary"),f(n,"title",e[1]),te(n,"text-red-500",e[0]!==-1),te(n,"text-green-700",e[0]===1)},m(i,o){j(i,n,o),re(t,n,null),r=!0},p(i,o){(!r||o&2)&&f(n,"title",i[1]),(!r||o&1)&&te(n,"text-red-500",i[0]!==-1),(!r||o&1)&&te(n,"text-green-700",i[0]===1)},i(i){r||(M(t.$$.fragment,i),r=!0)},o(i){W(t.$$.fragment,i),r=!1},d(i){i&&F(n),ie(t)}}}function Ip(e){let n,t,r,i;const o=[Op,Tp],s=[];function l(a,c){return a[0]!==0?0:1}return n=l(e),t=s[n]=o[n](e),{c(){t.c(),r=Gn()},m(a,c){s[n].m(a,c),j(a,r,c),i=!0},p(a,[c]){let h=n;n=l(a),n===h?s[n].p(a,c):(pt(),W(s[h],1,1,()=>{s[h]=null}),dt(),t=s[n],t?t.p(a,c):(t=s[n]=o[n](a),t.c()),M(t,1),t.m(r.parentNode,r))},i(a){i||(M(t),i=!0)},o(a){W(t),i=!1},d(a){s[n].d(a),a&&F(r)}}}function $p(e,n,t){let r,i,o,s,l,a,c,h;w(e,wn,I=>t(9,o=I)),w(e,Yn,I=>t(10,s=I)),w(e,zt,I=>t(11,l=I)),w(e,Re,I=>t(12,a=I)),w(e,kr,I=>t(13,c=I)),w(e,wi,I=>t(14,h=I));let{isPrimary:p=!0}=n,d,g=!1,v=!1,S=!1,$=p?Ss:Cs;w(e,$,I=>t(0,i=I)),Ll(()=>(P(),()=>{S=!0,d==null||d.cleanUp()}));function D(I){switch(I){case 0:t(5,v=!1),S=!1;break;case 1:g=!0,t(5,v=!0);break;case 3:const q=p?"primary":"secondary";h&&!S&&g&&(p?s:o)&&(v||!c)&&R(Re,a={type:"error",message:v?`Lost Connection to ${q} Websocket`:`Unable to connect to ${q} Websocket`,showCancel:!1},a),R(zt,l=!0,l),g=!0,t(5,v=!1),S||(p?$l:Ml).next();break}t(1,r=T(v))}function T(I){return I?`Connected with ${p?s:o}`:"Not Connected"}async function P(){i===1&&d?(S=!0,d.disconnect()):(d=d||new Dp(p),d.connect())}return e.$$set=I=>{"isPrimary"in I&&t(4,p=I.isPrimary)},e.$$.update=()=>{e.$$.dirty&32&&t(1,r=T(v)),e.$$.dirty&1&&D(i)},[i,r,$,P,p,v]}class fu extends Tt{constructor(n){super(),Dt(this,n,$p,Ip,mt,{isPrimary:4})}}function Mp(e){let n,t,r,i,o;return{c(){n=b("div"),t=_(),r=b("div"),r.innerHTML=`<div role="status"><svg aria-hidden="true" class="w-8 h-8 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z" fill="currentColor"></path><path d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z" fill="currentFill"></path></svg>
|
37
|
+
<span class="sr-only">Loading...</span></div>`,i=_(),o=b("div"),f(n,"class","tap-highlight-transparent absolute inset-0 bg-black/[.3] z-20"),f(r,"class","fixed inset-0 flex h-full w-full items-center justify-center z-50")},m(s,l){j(s,n,l),j(s,t,l),j(s,r,l),j(s,i,l),j(s,o,l)},p:Le,i:Le,o:Le,d(s){s&&F(n),s&&F(t),s&&F(r),s&&F(i),s&&F(o)}}}class Np extends Tt{constructor(n){super(),Dt(this,n,null,Mp,mt,{})}}function Rp(e){let n=(e[2]??"")+"",t,r,i=(e[3]??"")+"",o,s,l,a,c,h,p;return{c(){t=st(n),r=_(),o=st(i),s=_(),l=b("div"),a=b("div"),c=st(e[1]),f(l,"class","text-sm timer mr-1 sm:text-base sm:mr-2 svelte-1efsh80"),te(l,"blur",e[4])},m(d,g){j(d,t,g),j(d,r,g),j(d,o,g),j(d,s,g),j(d,l,g),u(l,a),u(a,c),e[16](l),h||(p=x(l,"pointerleave",e[7]),h=!0)},p(d,[g]){g&4&&n!==(n=(d[2]??"")+"")&&At(t,n),g&8&&i!==(i=(d[3]??"")+"")&&At(o,i),g&2&&At(c,d[1]),g&16&&te(l,"blur",d[4])},i:Le,o:Le,d(d){d&&F(t),d&&F(r),d&&F(o),d&&F(s),d&&F(l),e[16](null),h=!1,p()}}}const Hp=/[^0-9A-Z○◯々-〇〻ぁ-ゖゝ-ゞァ-ヺー0-9A-Zヲ-ン\p{Radical}\p{Unified_Ideograph}]+/gimu;function Vp(e){return e?Fp(e.replace(Hp,"")):0}function Fp(e){return Array.from(e).length}function jp(e,n,t){let r,i,o,s,l,a,c,h,p,d,g,v,S,$;w(e,mi,H=>t(10,r=H)),w(e,gi,H=>t(11,i=H)),w(e,di,H=>t(12,o=H)),w(e,pi,H=>t(13,s=H)),w(e,ln,H=>t(14,l=H)),w(e,zt,H=>t(19,a=H)),w(e,yi,H=>t(20,c=H)),w(e,_i,H=>t(21,h=H)),w(e,Wn,H=>t(22,p=H)),w(e,Zr,H=>t(23,d=H)),w(e,Ze,H=>t(15,g=H)),w(e,bi,H=>t(4,$=H));let D=0,T=0;const P=zt.pipe(zi(H=>H?(T=0,Wi):(D=performance.now(),rh(1e3))),Mn(z),Rn());w(e,P,H=>t(2,v=H));const I=Gf([zt,Wn]).pipe(zi(([H,Q])=>H||Q<1?Wi:ih(ki,Vn(window,"pointermove"),Vn(document,"selectionchange")).pipe(lh(!0),ah(1e3),Mn(()=>T=performance.now()+p*1e3),ws(p*1e3))),Rn());w(e,I,H=>t(3,S=H));let q,G=0,U=0,A="";function L(){const H=window.getSelection();H!=null&&H.toString()&&H.getRangeAt(0).intersectsNode(q)&&H.removeAllRanges()}function z(){const H=T?Math.min(T,performance.now()):performance.now(),Q=Math.round((H-D+Number.EPSILON)/1e3);T&&H>=T?(R(zt,a=!0,a),d?R(ln,l=Math.max(0,l+Q-p),l):R(ln,l+=Q,l),h&&(document.body.style.filter="blur(8px)",document.body.style.pointerEvents="none",document.addEventListener("dblclick",V=>{V.stopPropagation(),window.getSelection().removeAllRanges(),document.body.style.filter=null,document.body.style.pointerEvents="auto",c&&R(zt,a=!1,a)},{once:!0,capture:!1}))):(D=H,R(ln,l+=Q,l))}function Y(H,Q,V,ne){let X="";s&&(X+=mh(H)),o&&(X+=` (${Q}/h) `),r&&(X+=` ${V}`),i&&(X+=r?" /":"",X+=` ${ne}`),t(1,A=X.replace(/[ ]+/g," ").trim())}function Z(H){at[H?"unshift":"push"](()=>{q=H,t(0,q)})}return e.$$.update=()=>{if(e.$$.dirty&50688&&r&&g){let H=0;for(let Q=0,{length:V}=g;Q<V;Q+=1)H+=Vp(g[Q].text);t(9,U=H),t(8,G=l?Math.ceil(3600*U/l):0)}e.$$.dirty&65280&&(l>-1&&(s||o||r||i)?Y(l,G,U,g.length):t(1,A=""))},[q,A,v,S,$,P,I,L,G,U,r,i,o,s,l,g,Z]}class Up extends Tt{constructor(n){super(),Dt(this,n,jp,Rp,mt,{})}}const{window:Bp}=bc;function Qa(e,n,t){const r=e.slice();return r[84]=n[t],r[85]=n,r[86]=t,r}function ec(e){let n,t;return n=new Np({}),{c(){se(n.$$.fragment)},m(r,i){re(n,r,i),t=!0},i(r){t||(M(n.$$.fragment,r),t=!0)},o(r){W(n.$$.fragment,r),t=!1},d(r){ie(n,r)}}}function tc(e){let n,t;return n=new fu({}),{c(){se(n.$$.fragment)},m(r,i){re(n,r,i),t=!0},i(r){t||(M(n.$$.fragment,r),t=!0)},o(r){W(n.$$.fragment,r),t=!1},d(r){ie(n,r)}}}function nc(e){let n,t;return n=new fu({props:{isPrimary:!1}}),{c(){se(n.$$.fragment)},m(r,i){re(n,r,i),t=!0},i(r){t||(M(n.$$.fragment,r),t=!0)},o(r){W(n.$$.fragment,r),t=!1},d(r){ie(n,r)}}}function Wp(e){let n,t,r;return t=new we({props:{path:Yu,width:e[7],height:e[7]}}),t.$on("click",e[44]),{c(){n=b("div"),se(t.$$.fragment),f(n,"role","button"),f(n,"title","Pause"),f(n,"class","mr-1 hover:text-primary sm:mr-2")},m(i,o){j(i,n,o),re(t,n,null),r=!0},p(i,o){const s={};o[0]&128&&(s.width=i[7]),o[0]&128&&(s.height=i[7]),t.$set(s)},i(i){r||(M(t.$$.fragment,i),r=!0)},o(i){W(t.$$.fragment,i),r=!1},d(i){i&&F(n),ie(t)}}}function zp(e){let n,t,r;return t=new we({props:{path:qu,width:e[7],height:e[7]}}),t.$on("click",e[43]),{c(){n=b("div"),se(t.$$.fragment),f(n,"role","button"),f(n,"title","Continue"),f(n,"class","mr-1 animate-[pulse_1.25s_cubic-bezier(0.4,0,0.6,1)_infinite] hover:text-primary sm:mr-2")},m(i,o){j(i,n,o),re(t,n,null),r=!0},p(i,o){const s={};o[0]&128&&(s.width=i[7]),o[0]&128&&(s.height=i[7]),t.$set(s)},i(i){r||(M(t.$$.fragment,i),r=!0)},o(i){W(t.$$.fragment,i),r=!1},d(i){i&&F(n),ie(t)}}}function rc(e){let n,t,r,i,o,s;return t=new we({props:{path:Mi,width:e[7],height:e[7]}}),t.$on("click",e[34]),o=new we({props:{path:_c,width:e[7],height:e[7]}}),o.$on("click",e[35]),{c(){n=b("div"),se(t.$$.fragment),r=_(),i=b("div"),se(o.$$.fragment),f(n,"role","button"),f(n,"title","Remove selected Lines"),f(n,"class","mr-1 hover:text-primary sm:mr-2"),f(i,"role","button"),f(i,"title","Deselect Lines"),f(i,"class","mr-1 hover:text-primary sm:mr-2")},m(l,a){j(l,n,a),re(t,n,null),j(l,r,a),j(l,i,a),re(o,i,null),s=!0},p(l,a){const c={};a[0]&128&&(c.width=l[7]),a[0]&128&&(c.height=l[7]),t.$set(c);const h={};a[0]&128&&(h.width=l[7]),a[0]&128&&(h.height=l[7]),o.$set(h)},i(l){s||(M(t.$$.fragment,l),M(o.$$.fragment,l),s=!0)},o(l){W(t.$$.fragment,l),W(o.$$.fragment,l),s=!1},d(l){l&&F(n),ie(t),l&&F(r),l&&F(i),ie(o)}}}function ic(e,n){let t,r,i=n[86],o;const s=()=>n[54](r,i),l=()=>n[54](null,i);let a={line:n[84],index:n[86],isLast:n[9].length-1===n[86]};return r=new Th({props:a}),s(),r.$on("selected",n[55]),r.$on("deselected",n[56]),r.$on("edit",n[37]),{key:e,first:null,c(){t=Gn(),se(r.$$.fragment),this.first=t},m(c,h){j(c,t,h),re(r,c,h),o=!0},p(c,h){n=c,i!==n[86]&&(l(),i=n[86],s());const p={};h[0]&512&&(p.line=n[84]),h[0]&512&&(p.index=n[86]),h[0]&512&&(p.isLast=n[9].length-1===n[86]),r.$set(p)},i(c){o||(M(r.$$.fragment,c),o=!0)},o(c){W(r.$$.fragment,c),o=!1},d(c){c&&F(t),l(),ie(r,c)}}}function oc(e){let n,t,r,i;return t=new $h({}),{c(){n=b("div"),se(t.$$.fragment),f(n,"class","bg-base-200 fixed top-0 right-0 z-[60] flex h-full w-full max-w-3xl flex-col justify-between")},m(o,s){j(o,n,s),re(t,n,null),i=!0},p(o,s){},i(o){i||(M(t.$$.fragment,o),o&&(r||br(()=>{r=gc(n,Gc,{x:100,duration:100,easing:uh}),r.start()})),i=!0)},o(o){W(t.$$.fragment,o),i=!1},d(o){o&&F(n),ie(t)}}}function Yp(e){let n=(e[16]??"")+"",t,r,i=(e[17]??"")+"",o,s,l=(e[18]??"")+"",a,c,h=(e[19]??"")+"",p,d,g=(e[20]??"")+"",v,S,$,D,T,P,I,q,G,U,A,L,z,Y,Z,H,Q,V,ne,X,de,ge,Be,De,We,ct,_e,be,je,Qe,$e,Ie,ae,ze,Ye,Te=[],qe=new Map,ut,Ve,Se,Xe,yt,ve=e[8]&&ec();D=new xh({}),I=new Up({});let xe=e[21]&&tc(),ye=e[22]&&nc();const Ct=[zp,Wp],Me=[];function k(C,N){return C[14]?0:1}A=k(e),L=Me[A]=Ct[A](e),Z=new we({props:{path:ju,width:e[7],height:e[7]}}),Z.$on("click",e[33]),V=new we({props:{path:Ru,width:e[7],height:e[7]}}),V.$on("click",e[32]);let oe=e[1].length&&rc(e);ge=new we({props:{path:zu,width:e[7],height:e[7]}}),ge.$on("click",e[45]);function Ge(C){e[46](C)}let Ne={class:"cursor-pointer mr-1 hover:text-primary md:mr-2",path:Hu,width:e[7],height:e[7]};e[3]!==void 0&&(Ne.element=e[3]),De=new we({props:Ne}),at.push(()=>Fl(De,"element",Ge,e[3])),De.$on("click",e[47]);function rt(C){e[48](C)}function wt(C){e[49](C)}let Ot={settingsElement:e[3]};e[4]!==void 0&&(Ot.settingsOpen=e[4]),e[1]!==void 0&&(Ot.selectedLineIds=e[1]),_e=new Ap({props:Ot}),at.push(()=>Fl(_e,"settingsOpen",rt,e[4])),at.push(()=>Fl(_e,"selectedLineIds",wt,e[1])),e[50](_e),_e.$on("applyReplacements",e[51]),_e.$on("layoutChange",e[36]),_e.$on("maxLinesChange",e[52]),$e=new Kc({props:{isQuickSwitch:!0}}),$e.$on("layoutChange",e[36]);let it=e[9];const It=C=>C[84].id;for(let C=0;C<it.length;C+=1){let N=Qa(e,it,C),ft=It(N);qe.set(ft,Te[C]=ic(ft,N))}let Oe=e[15]&&oc();return{c(){t=st(n),r=_(),o=st(i),s=_(),a=st(l),c=_(),p=st(h),d=_(),v=st(g),S=_(),ve&&ve.c(),$=_(),se(D.$$.fragment),T=_(),P=b("header"),se(I.$$.fragment),q=_(),xe&&xe.c(),G=_(),ye&&ye.c(),U=_(),L.c(),z=_(),Y=b("div"),se(Z.$$.fragment),H=_(),Q=b("div"),se(V.$$.fragment),ne=_(),oe&&oe.c(),X=_(),de=b("div"),se(ge.$$.fragment),Be=_(),se(De.$$.fragment),ct=_(),se(_e.$$.fragment),Qe=_(),se($e.$$.fragment),Ie=_(),ae=b("main"),ze=new fc(!1),Ye=_();for(let C=0;C<Te.length;C+=1)Te[C].c();ut=_(),Oe&&Oe.c(),Ve=Gn(),f(Y,"role","button"),f(Y,"title","Delete last Line"),f(Y,"class","mr-1 hover:text-primary sm:mr-2"),te(Y,"opacity-50",!e[9].length),te(Y,"cursor-not-allowed",!e[9].length),te(Y,"hover:text-primary",e[9].length),f(Q,"role","button"),f(Q,"title","Undo last Action"),f(Q,"class","mr-1 hover:text-primary sm:mr-2"),te(Q,"opacity-50",!e[10].length),te(Q,"cursor-not-allowed",!e[10].length),te(Q,"hover:text-primary",e[10].length),f(de,"role","button"),f(de,"title","Open Notes"),f(de,"class","mr-1 hover:text-primary sm:mr-2"),f(P,"class","fixed top-0 right-0 flex justify-end items-center p-2 bg-base-100"),ze.a=Ye,f(ae,"class","flex flex-col flex-1 break-all px-4 w-full h-full overflow-auto"),te(ae,"py-16",!e[12]),te(ae,"py-8",e[12]),te(ae,"opacity-50",e[15]),te(ae,"flex-col-reverse",e[13]),Pt(ae,"font-size",`${e[23]}px`),Pt(ae,"font-family",e[24]!==Fn.OFF?e[24]:void 0),Pt(ae,"writing-mode",e[12]?"vertical-rl":"horizontal-tb")},m(C,N){j(C,t,N),j(C,r,N),j(C,o,N),j(C,s,N),j(C,a,N),j(C,c,N),j(C,p,N),j(C,d,N),j(C,v,N),j(C,S,N),ve&&ve.m(C,N),j(C,$,N),re(D,C,N),j(C,T,N),j(C,P,N),re(I,P,null),u(P,q),xe&&xe.m(P,null),u(P,G),ye&&ye.m(P,null),u(P,U),Me[A].m(P,null),u(P,z),u(P,Y),re(Z,Y,null),u(P,H),u(P,Q),re(V,Q,null),u(P,ne),oe&&oe.m(P,null),u(P,X),u(P,de),re(ge,de,null),u(P,Be),re(De,P,null),u(P,ct),re(_e,P,null),u(P,Qe),re($e,P,null),e[53](P),j(C,Ie,N),j(C,ae,N),ze.m(Xc,ae),u(ae,Ye);for(let ft=0;ft<Te.length;ft+=1)Te[ft].m(ae,null);e[57](ae),j(C,ut,N),Oe&&Oe.m(C,N),j(C,Ve,N),Se=!0,Xe||(yt=x(Bp,"keyup",e[31]),Xe=!0)},p(C,N){(!Se||N[0]&65536)&&n!==(n=(C[16]??"")+"")&&At(t,n),(!Se||N[0]&131072)&&i!==(i=(C[17]??"")+"")&&At(o,i),(!Se||N[0]&262144)&&l!==(l=(C[18]??"")+"")&&At(a,l),(!Se||N[0]&524288)&&h!==(h=(C[19]??"")+"")&&At(p,h),(!Se||N[0]&1048576)&&g!==(g=(C[20]??"")+"")&&At(v,g),C[8]?ve?N[0]&256&&M(ve,1):(ve=ec(),ve.c(),M(ve,1),ve.m($.parentNode,$)):ve&&(pt(),W(ve,1,1,()=>{ve=null}),dt()),C[21]?xe?N[0]&2097152&&M(xe,1):(xe=tc(),xe.c(),M(xe,1),xe.m(P,G)):xe&&(pt(),W(xe,1,1,()=>{xe=null}),dt()),C[22]?ye?N[0]&4194304&&M(ye,1):(ye=nc(),ye.c(),M(ye,1),ye.m(P,U)):ye&&(pt(),W(ye,1,1,()=>{ye=null}),dt());let ft=A;A=k(C),A===ft?Me[A].p(C,N):(pt(),W(Me[ft],1,1,()=>{Me[ft]=null}),dt(),L=Me[A],L?L.p(C,N):(L=Me[A]=Ct[A](C),L.c()),M(L,1),L.m(P,z));const Ft={};N[0]&128&&(Ft.width=C[7]),N[0]&128&&(Ft.height=C[7]),Z.$set(Ft),(!Se||N[0]&512)&&te(Y,"opacity-50",!C[9].length),(!Se||N[0]&512)&&te(Y,"cursor-not-allowed",!C[9].length),(!Se||N[0]&512)&&te(Y,"hover:text-primary",C[9].length);const qt={};N[0]&128&&(qt.width=C[7]),N[0]&128&&(qt.height=C[7]),V.$set(qt),(!Se||N[0]&1024)&&te(Q,"opacity-50",!C[10].length),(!Se||N[0]&1024)&&te(Q,"cursor-not-allowed",!C[10].length),(!Se||N[0]&1024)&&te(Q,"hover:text-primary",C[10].length),C[1].length?oe?(oe.p(C,N),N[0]&2&&M(oe,1)):(oe=rc(C),oe.c(),M(oe,1),oe.m(P,X)):oe&&(pt(),W(oe,1,1,()=>{oe=null}),dt());const ot={};N[0]&128&&(ot.width=C[7]),N[0]&128&&(ot.height=C[7]),ge.$set(ot);const Xt={};N[0]&128&&(Xt.width=C[7]),N[0]&128&&(Xt.height=C[7]),!We&&N[0]&8&&(We=!0,Xt.element=C[3],Hl(()=>We=!1)),De.$set(Xt);const $t={};N[0]&8&&($t.settingsElement=C[3]),!be&&N[0]&16&&(be=!0,$t.settingsOpen=C[4],Hl(()=>be=!1)),!je&&N[0]&2&&(je=!0,$t.selectedLineIds=C[1],Hl(()=>je=!1)),_e.$set($t),N[0]&578|N[1]&64&&(it=C[9],pt(),Te=Ei(Te,N,It,1,C,it,qe,ae,vc,ic,null,Qa),dt()),(!Se||N[0]&4096)&&te(ae,"py-16",!C[12]),(!Se||N[0]&4096)&&te(ae,"py-8",C[12]),(!Se||N[0]&32768)&&te(ae,"opacity-50",C[15]),(!Se||N[0]&8192)&&te(ae,"flex-col-reverse",C[13]),N[0]&8388608&&Pt(ae,"font-size",`${C[23]}px`),N[0]&16777216&&Pt(ae,"font-family",C[24]!==Fn.OFF?C[24]:void 0),N[0]&4096&&Pt(ae,"writing-mode",C[12]?"vertical-rl":"horizontal-tb"),C[15]?Oe?N[0]&32768&&M(Oe,1):(Oe=oc(),Oe.c(),M(Oe,1),Oe.m(Ve.parentNode,Ve)):Oe&&(pt(),W(Oe,1,1,()=>{Oe=null}),dt())},i(C){if(!Se){M(ve),M(D.$$.fragment,C),M(I.$$.fragment,C),M(xe),M(ye),M(L),M(Z.$$.fragment,C),M(V.$$.fragment,C),M(oe),M(ge.$$.fragment,C),M(De.$$.fragment,C),M(_e.$$.fragment,C),M($e.$$.fragment,C);for(let N=0;N<it.length;N+=1)M(Te[N]);M(Oe),Se=!0}},o(C){W(ve),W(D.$$.fragment,C),W(I.$$.fragment,C),W(xe),W(ye),W(L),W(Z.$$.fragment,C),W(V.$$.fragment,C),W(oe),W(ge.$$.fragment,C),W(De.$$.fragment,C),W(_e.$$.fragment,C),W($e.$$.fragment,C);for(let N=0;N<Te.length;N+=1)W(Te[N]);W(Oe),Se=!1},d(C){C&&F(t),C&&F(r),C&&F(o),C&&F(s),C&&F(a),C&&F(c),C&&F(p),C&&F(d),C&&F(v),C&&F(S),ve&&ve.d(C),C&&F($),ie(D,C),C&&F(T),C&&F(P),ie(I),xe&&xe.d(),ye&&ye.d(),Me[A].d(),ie(Z),ie(V),oe&&oe.d(),ie(ge),ie(De),e[50](null),ie(_e),ie($e),e[53](null),C&&F(Ie),C&&F(ae);for(let N=0;N<Te.length;N+=1)Te[N].d();e[57](null),C&&F(ut),Oe&&Oe.d(C),C&&F(Ve),Xe=!1,yt()}}}const Gp=/[\p{scx=Hira}\p{scx=Kana}\p{scx=Han}]/imu;function qp(e,n,t){let r,i,o,s,l,a,c,h,p,d,g,v,S,$,D,T,P,I,q,G,U,A,L,z,Y,Z,H,Q,V,ne,X,de,ge,Be,De,We;w(e,ci,y=>t(62,o=y)),w(e,ll,y=>t(8,s=y)),w(e,Ze,y=>t(9,l=y)),w(e,Re,y=>t(63,a=y)),w(e,pr,y=>t(64,c=y)),w(e,Nn,y=>t(10,h=y)),w(e,gr,y=>t(65,p=y)),w(e,_r,y=>t(66,d=y)),w(e,bl,y=>t(67,g=y)),w(e,hi,y=>t(68,v=y)),w(e,as,y=>t(11,S=y)),w(e,dr,y=>t(69,$=y)),w(e,ss,y=>t(70,D=y)),w(e,yr,y=>t(12,T=y)),w(e,wr,y=>t(13,P=y)),w(e,ol,y=>t(71,I=y)),w(e,Yt,y=>t(42,q=y)),w(e,ui,y=>t(72,G=y)),w(e,zt,y=>t(14,U=y)),w(e,ai,y=>t(73,A=y)),w(e,si,y=>t(74,L=y)),w(e,li,y=>t(75,z=y)),w(e,oi,y=>t(76,Y=y)),w(e,_l,y=>t(77,Z=y)),w(e,vl,y=>t(15,H=y)),w(e,Yn,y=>t(21,ge=y)),w(e,wn,y=>t(22,Be=y)),w(e,mr,y=>t(23,De=y)),w(e,Kr,y=>t(24,We=y));let ct=!1,_e,be=[],je,Qe,$e=!1,Ie,ae=[],ze=!1,Ye=!1,Te=null;Ct();const qe="wakeLock"in navigator,ut=_r.pipe(Tl(y=>y?new Set(l.map(J=>J.text)):new Set));w(e,ut,y=>t(61,i=y));const Ve=ki.pipe(Ol(([y,J,fe])=>{const he=J===jn.RESETCHECKBOXES,me=J===jn.PASTE,et=!me||!H&&!Z&&!$e&&!ze,Kt=Ye&&J===jn.EXTERNAL;return Kt&&(Ye=!1),he?(Me(),!1):(!U||(Y||L)&&me||(z||A)&&!me)&&et&&!Kt?(U&&(L&&me||A&&!me)&&R(zt,U=!1,U),!0):(!Kt&&et&&G&&wt(),!1)}),Mn(y=>{const[J]=y,fe=Ot(J),he=y.at(2)||bh();R(ol,I=[...I,he],I),fe&&R(Ze,l=C([...It(1),{id:he,text:fe}]),l)}),Rn());w(e,Ve,y=>t(17,V=y));const Se=ri.pipe(zi(y=>y?Vn(document,"paste"):Wi),Mn(y=>ki.next([y.clipboardData.getData("text/plain"),jn.PASTE,""])),Rn());w(e,Se,y=>t(18,ne=y));const Xe=Vn(document,"visibilitychange").pipe(Mn(()=>{qe&&Te!==null&&document.visibilityState==="visible"&&(Te=navigator.wakeLock.request("screen").then(y=>y).catch(y=>(console.error(`Unable to aquire screen lock: ${y.message}`),null)))}),Rn());w(e,Xe,y=>t(16,Q=y));const yt=ii.pipe(zi(y=>(Ye=!1,y?Vn(document,"copy"):Wi)),Mn(()=>Ye=!0),Rn());w(e,yt,y=>t(19,X=y));const ve=Vn(window,"resize").pipe(ws(500),Mn(xe),Rn());w(e,ve,y=>t(20,de=y)),Ll(()=>{xe(),qe&&(Te=navigator.wakeLock.request("screen").then(y=>y).catch(y=>(console.error(`Unable to aquire screen lock: ${y.message}`),null)))});function xe(){t(41,ct=window.matchMedia("(min-width: 640px)").matches),rt()}function ye(y){var J;if(y.key==="Delete"){if((J=window.getSelection())!=null&&J.toString().trim()){const fe=window.getSelection().getRangeAt(0);for(let he=0,{length:me}=ae;he<me;he+=1){const et=ae[he],Kt=et==null?void 0:et.getIdIfSelected(fe);Kt&&be.push(Kt)}}be.length?Ge():y.altKey&&oe()}else be.length&&y.key==="Escape"?Ne():y.altKey&&y.key==="a"?_e.handleReset(!1):y.altKey&&y.key==="q"&&_e.handleReset(!0)}function Ct(){setInterval(async()=>{try{const y=await fetch("/get_ids");if(!y.ok)throw new Error(`HTTP error! Status: ${y.status}`);R(ol,I=await y.json(),I)}catch(y){console.error("Failed to fetch ids:",y)}},1e3)}function Me(){l.forEach(y=>{const J=document.getElementById(`multi-line-checkbox-${y.id}`);J&&typeof J.checked=="boolean"?J.checked=!1:console.warn(`Checkbox with ID 'multi-line-checkbox-${y.id}' not found or is not a valid checkbox element.`)})}async function k(){if(!h.length)return;const y=h.pop();let J=y.pop();for(;J;){const fe=Ot(J.text,!1);if(fe){const{id:he,index:me}=J;me>l.length-1?l.push({id:he,text:fe}):l[me].id===he?R(Ze,l[me]={id:he,text:fe},l):l.splice(me,0,{id:he,text:fe})}J=y.pop()}await Bi(),R(Ze,l=C(It()),l),Nn.set(h)}function oe(){if(!l.length)return;const[y]=l.splice(l.length-1,1);t(1,be=be.filter(J=>J!==y.id)),Ze.set(l),R(Nn,h=[...h,[{...y,index:l.length}]],h),i.delete(y.text)}function Ge(){const y=new Set(be),J=[];R(Ze,l=l.filter((fe,he)=>{const me=y.has(fe.id);return y.delete(fe.id),me&&(J.push({...fe,index:he-J.length}),i.delete(fe.text)),!me}),l),t(1,be=y.size?[...y]:[]),J.length&&R(Nn,h=[...h,J],h)}function Ne(){var y;for(let J=0,{length:fe}=ae;J<fe;J+=1)(y=ae[J])==null||y.deselect();t(1,be=[])}function rt(){Es(window,Ie,P,T)}function wt(){clearTimeout(D),$===Wt.GARDEN&&(je.classList.add("bg-base-200"),je.classList.remove("bg-base-100"),document.body.classList.add("bg-base-200")),document.body.classList.add("animate-[pulse_0.5s_cubic-bezier(0.4,0,0.6,1)_1]"),R(ss,D=window.setTimeout(()=>{$===Wt.GARDEN&&(je.classList.add("bg-base-100"),je.classList.remove("bg-base-200"),document.body.classList.remove("bg-base-200")),document.body.classList.remove("animate-[pulse_0.5s_cubic-bezier(0.4,0,0.6,1)_1]")},500),D)}function Ot(y,J=!0){const fe=J?qc(y,S):y;let he=!0,me=v?fe.replace(/\s/gm,"").trim():fe;return g&&!me.match(Gp)&&(me=""),me?d?(he=!i.has(me),i.add(me)):p&&l.length&&(he=l.slice(-p).every(et=>et.text!==me)):he=!1,he?me:void 0}function it(y){const{inEdit:J,data:fe}=y.detail;if(fe&&fe.originalText!==fe.newText){const he=Ot(fe.newText);R(Ze,l[fe.lineIndex]={id:fe.line.id,text:he},l),he?(R(Nn,h=[...h,[{...fe.line,index:fe.lineIndex}]],h),i.delete(fe.originalText),i.add(he)):Bi().then(()=>R(Ze,l[fe.lineIndex]={id:fe.line.id,text:fe.originalText},l))}ze=J}function It(y=0){const J=new Set,fe=c?l.length-c+y:0,he=fe>0?l.filter((me,et)=>et<fe?(J.add(me.id),i.delete(me.text),!1):!0):l;return J.size&&t(1,be=be.filter(me=>!J.has(me))),he}function Oe(y){if(y){R(ll,s=!0,s);try{for(let J=0,{length:fe}=l;J<fe;J+=1){const he=l[J],me=Ot(he.text);me&&me!==he.text&&(i.delete(he.text),R(Ze,l[J]={...he,text:me},l))}R(Re,a={message:"Operation executed",showCancel:!1},a)}catch({message:J}){R(Re,a={type:"error",message:`An Error occured: ${J}`,showCancel:!1},a)}R(Ze,l=C(It()),l),R(ll,s=!1,s)}}function C(y){if(!o||y.length<2)return y;const J=y.length-1,fe=J-1,he=y[J],me=y[fe].text;return he.text.startsWith(me)&&(i.delete(me),t(1,be=be.filter(et=>et!==y[fe].id)),y.splice(fe,2,he)),y}const N=()=>R(zt,U=!1,U),ft=()=>R(zt,U=!0,U),Ft=()=>R(vl,H=!0,H);function qt(y){Qe=y,t(3,Qe)}const ot=()=>t(4,$e=!$e);function Xt(y){$e=y,t(4,$e)}function $t(y){be=y,t(1,be)}function Qt(y){at[y?"unshift":"push"](()=>{_e=y,t(0,_e)})}const Mt=()=>Oe(!!S.length),Nt=()=>R(Ze,l=It(),l);function Cr(y){at[y?"unshift":"push"](()=>{je=y,t(2,je)})}function Er(y,J){at[y?"unshift":"push"](()=>{ae[J]=y,t(6,ae)})}const Ln=({detail:y})=>{t(1,be=[...be,y])},Lr=({detail:y})=>{t(1,be=be.filter(J=>J!==y))};function Rt(y){at[y?"unshift":"push"](()=>{Ie=y,t(5,Ie)})}return e.$$.update=()=>{e.$$.dirty[1]&1024&&t(7,r=ct?"1.5rem":"1.25rem"),e.$$.dirty[1]&2048&&R(as,S=q.filter(y=>y.enabled),S)},[_e,be,je,Qe,$e,Ie,ae,r,s,l,h,S,T,P,U,H,Q,V,ne,X,de,ge,Be,De,We,ut,Ve,Se,Xe,yt,ve,ye,k,oe,Ge,Ne,rt,it,It,Oe,Ct,ct,q,N,ft,Ft,qt,ot,Xt,$t,Qt,Mt,Nt,Cr,Er,Ln,Lr,Rt]}class Xp extends Tt{constructor(n){super(),Dt(this,n,qp,Yp,mt,{startIdPolling:40},null,[-1,-1,-1])}get startIdPolling(){return this.$$.ctx[40]}}new Xp({target:document.body});
|
38
38
|
|
39
39
|
</script>
|
40
40
|
<style>
|
41
|
-
*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root,[data-theme]{background-color:hsla(var(--b1) / var(--tw-bg-opacity, 1));color:hsla(var(--bc) / var(--tw-text-opacity, 1))}html{-webkit-tap-highlight-color:transparent}:root{color-scheme:light;--pf: 139 16% 34%;--sf: 97 37% 75%;--af: 0 68% 75%;--nf: 0 4% 28%;--b2: 0 4% 82%;--b3: 0 4% 74%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--pc: 139 100% 89%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 139 16% 43%;--s: 97 37% 93%;--sc: 96 32% 15%;--a: 0 68% 94%;--ac: 0 22% 16%;--n: 0 4% 35%;--nc: 0 4% 91%;--b1: 0 4% 91%;--bc: 0 3% 6%}[data-theme=garden]{color-scheme:light;--pf: 139 16% 34%;--sf: 97 37% 75%;--af: 0 68% 75%;--nf: 0 4% 28%;--b2: 0 4% 82%;--b3: 0 4% 74%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--pc: 139 100% 89%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 139 16% 43%;--s: 97 37% 93%;--sc: 96 32% 15%;--a: 0 68% 94%;--ac: 0 22% 16%;--n: 0 4% 35%;--nc: 0 4% 91%;--b1: 0 4% 91%;--bc: 0 3% 6%}[data-theme=business]{color-scheme:dark;--pf: 210 64% 24%;--sf: 200 13% 44%;--af: 13 80% 48%;--nf: 213 14% 13%;--b2: 0 0% 11%;--b3: 0 0% 10%;--bc: 0 0% 83%;--pc: 210 100% 86%;--sc: 200 100% 11%;--ac: 13 100% 12%;--nc: 213 28% 83%;--inc: 199 100% 88%;--suc: 144 100% 11%;--wac: 39 100% 12%;--erc: 6 100% 89%;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 210 64% 31%;--s: 200 13% 55%;--a: 13 80% 60%;--n: 213 14% 16%;--b1: 0 0% 13%;--in: 199 100% 42%;--su: 144 31% 56%;--wa: 39 64% 60%;--er: 6 56% 43%;--rounded-box: .25rem;--rounded-btn: .125rem;--rounded-badge: .125rem}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.alert{display:flex;width:100%;flex-direction:column;align-items:center;justify-content:space-between;gap:1rem;--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));padding:1rem;border-radius:var(--rounded-box, 1rem)}.alert>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}@media (min-width: 768px){.alert{flex-direction:row}.alert>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}}.alert>:where(*){display:flex;align-items:center;gap:.5rem}.avatar.placeholder>div{display:flex;align-items:center;justify-content:center}.btn{display:inline-flex;flex-shrink:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-wrap:wrap;align-items:center;justify-content:center;border-color:transparent;border-color:hsl(var(--n) / var(--tw-border-opacity));text-align:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);border-radius:var(--rounded-btn, .5rem);height:3rem;padding-left:1rem;padding-right:1rem;font-size:.875rem;line-height:1.25rem;line-height:1em;min-height:3rem;font-weight:600;text-transform:uppercase;text-transform:var(--btn-text-case, uppercase);text-decoration-line:none;border-width:var(--border-btn, 1px);animation:button-pop var(--animation-btn, .25s) ease-out;--tw-border-opacity: 1;--tw-bg-opacity: 1;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity))}.btn-disabled,.btn[disabled],.btn.loading,.btn.loading:hover{pointer-events:none}.btn.loading:before{margin-right:.5rem;height:1rem;width:1rem;border-radius:9999px;border-width:2px;animation:spin 2s linear infinite;content:"";border-top-color:transparent;border-left-color:transparent;border-bottom-color:currentColor;border-right-color:currentColor}@media (prefers-reduced-motion: reduce){.btn.loading:before{animation:spin 10s linear infinite}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.btn-group>input[type=radio].btn{-webkit-appearance:none;-moz-appearance:none;appearance:none}.btn-group>input[type=radio].btn:before{content:attr(data-title)}.checkbox{flex-shrink:0;--chkbg: var(--bc);--chkfg: var(--b1);height:1.5rem;width:1.5rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: .2;border-radius:var(--rounded-btn, .5rem)}.label{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;justify-content:space-between;padding:.5rem .25rem}.input{flex-shrink:1;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);height:3rem;padding-left:1rem;padding-right:1rem;font-size:1rem;line-height:2;line-height:1.5rem;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 0;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));border-radius:var(--rounded-btn, .5rem)}.input-group>.input{isolation:isolate}.input-group>*,.input-group>.input,.input-group>.select{border-radius:0}.menu>:where(li.disabled > *:not(ul):focus){cursor:auto}.range{height:1.5rem;width:100%;cursor:pointer;-moz-appearance:none;appearance:none;-webkit-appearance:none;--range-shdw: var(--bc);overflow:hidden;background-color:transparent;border-radius:var(--rounded-box, 1rem)}.range:focus{outline:none}.select{display:inline-flex;flex-shrink:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:3rem;padding-left:1rem;padding-right:2.5rem;font-size:.875rem;line-height:1.25rem;line-height:2;min-height:3rem;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 0;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));font-weight:600;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);border-radius:var(--rounded-btn, .5rem);background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 20px) calc(1px + 50%),calc(100% - 16px) calc(1px + 50%);background-size:4px 4px,4px 4px;background-repeat:no-repeat}.select[multiple]{height:auto}.stats{display:inline-grid;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity));border-radius:var(--rounded-box, 1rem)}:where(.stats){grid-auto-flow:column;overflow-x:auto}.swap{position:relative;display:inline-grid;-webkit-user-select:none;-moz-user-select:none;user-select:none;place-content:center;cursor:pointer}.swap>*{grid-column-start:1;grid-row-start:1;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:transform,opacity}.swap input{-webkit-appearance:none;-moz-appearance:none;appearance:none}.swap .swap-on,.swap .swap-indeterminate,.swap input:indeterminate~.swap-on{opacity:0}.swap input:checked~.swap-off,.swap.swap-active .swap-off,.swap input:indeterminate~.swap-off{opacity:0}.swap input:checked~.swap-on,.swap-active .swap-on,.swap input:indeterminate~.swap-indeterminate{opacity:1}.textarea{flex-shrink:1;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);padding:.5rem 1rem;font-size:.875rem;line-height:1.25rem;line-height:2;min-height:3rem;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 0;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));border-radius:var(--rounded-btn, .5rem)}.alert-info{--tw-bg-opacity: 1;background-color:hsl(var(--in) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--inc, var(--nc)) / var(--tw-text-opacity))}.alert-error{--tw-bg-opacity: 1;background-color:hsl(var(--er) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--erc, var(--nc)) / var(--tw-text-opacity))}.btn-outline.btn-primary .badge{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-outline .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--nf, var(--n)) / var(--tw-border-opacity));background-color:transparent}.btn-outline.btn-primary .badge-outline{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));background-color:transparent;--tw-text-opacity: 1;color:hsl(var(--p) / var(--tw-text-opacity))}.btn-outline:hover .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity))}.btn-outline.btn-primary:hover .badge{--tw-border-opacity: 1;border-color:hsl(var(--pc) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--pc) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--p) / var(--tw-text-opacity))}.btn-outline.btn-primary:hover .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--pc) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--pf, var(--p)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-outline.btn-secondary:hover .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--sc) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--sf, var(--s)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--sc) / var(--tw-text-opacity))}.btn-outline.btn-accent:hover .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--ac) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--af, var(--a)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--ac) / var(--tw-text-opacity))}.btm-nav>*.disabled,.btm-nav>*.disabled:hover,.btm-nav>*[disabled],.btm-nav>*[disabled]:hover{pointer-events:none;--tw-border-opacity: 0;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-bg-opacity: .1;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2}.btm-nav>* .label{font-size:1rem;line-height:1.5rem}.btn:active:hover,.btn:active:focus{animation:none;transform:scale(var(--btn-focus-scale, .95))}.btn:hover,.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--nf, var(--n)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--nf, var(--n)) / var(--tw-bg-opacity))}.btn:focus-visible{outline:2px solid hsl(var(--nf));outline-offset:2px}.btn-primary{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-primary:hover,.btn-primary.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--pf, var(--p)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--pf, var(--p)) / var(--tw-bg-opacity))}.btn-primary:focus-visible{outline:2px solid hsl(var(--p))}.btn.glass:hover,.btn.glass.btn-active{--glass-opacity: 25%;--glass-border-opacity: 15%}.btn.glass:focus-visible{outline:2px solid currentColor}.btn-ghost{border-width:1px;border-color:transparent;background-color:transparent;color:currentColor}.btn-ghost:hover,.btn-ghost.btn-active{--tw-border-opacity: 0;background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .2}.btn-ghost:focus-visible{outline:2px solid currentColor}.btn-outline.btn-primary{--tw-text-opacity: 1;color:hsl(var(--p) / var(--tw-text-opacity))}.btn-outline.btn-primary:hover,.btn-outline.btn-primary.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--pf, var(--p)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--pf, var(--p)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-disabled,.btn-disabled:hover,.btn[disabled],.btn[disabled]:hover{--tw-border-opacity: 0;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-bg-opacity: .2;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2}.btn.loading.btn-square:before,.btn.loading.btn-circle:before{margin-right:0}.btn.loading.btn-xl:before,.btn.loading.btn-lg:before{height:1.25rem;width:1.25rem}.btn.loading.btn-sm:before,.btn.loading.btn-xs:before{height:.75rem;width:.75rem}.btn-group>input[type=radio]:checked.btn,.btn-group>.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-group>input[type=radio]:checked.btn:focus-visible,.btn-group>.btn-active:focus-visible{outline:2px solid hsl(var(--p))}@keyframes button-pop{0%{transform:scale(var(--btn-focus-scale, .95))}40%{transform:scale(1.02)}to{transform:scale(1)}}.checkbox:focus-visible{outline:2px solid hsl(var(--bc));outline-offset:2px}.checkbox:checked,.checkbox[checked=true],.checkbox[aria-checked=true]{--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-in-out;background-image:linear-gradient(-45deg,transparent 65%,hsl(var(--chkbg)) 65.99%),linear-gradient(45deg,transparent 75%,hsl(var(--chkbg)) 75.99%),linear-gradient(-45deg,hsl(var(--chkbg)) 40%,transparent 40.99%),linear-gradient(45deg,hsl(var(--chkbg)) 30%,hsl(var(--chkfg)) 30.99%,hsl(var(--chkfg)) 40%,transparent 40.99%),linear-gradient(-45deg,hsl(var(--chkfg)) 50%,hsl(var(--chkbg)) 50.99%)}.checkbox:indeterminate{--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-in-out;background-image:linear-gradient(90deg,transparent 80%,hsl(var(--chkbg)) 80%),linear-gradient(-90deg,transparent 80%,hsl(var(--chkbg)) 80%),linear-gradient(0deg,hsl(var(--chkbg)) 43%,hsl(var(--chkfg)) 43%,hsl(var(--chkfg)) 57%,hsl(var(--chkbg)) 57%)}.checkbox-primary{--chkbg: var(--p);--chkfg: var(--pc);--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}.checkbox-primary:hover{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}.checkbox-primary:focus-visible{outline:2px solid hsl(var(--p))}.checkbox-primary:checked,.checkbox-primary[checked=true],.checkbox-primary[aria-checked=true]{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.checkbox:disabled{cursor:not-allowed;border-color:transparent;--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));opacity:.2}@keyframes checkmark{0%{background-position-y:5px}50%{background-position-y:-2px}to{background-position-y:0}}[dir=rtl] .checkbox:checked,[dir=rtl] .checkbox[checked=true],[dir=rtl] .checkbox[aria-checked=true]{background-image:linear-gradient(45deg,transparent 65%,hsl(var(--chkbg)) 65.99%),linear-gradient(-45deg,transparent 75%,hsl(var(--chkbg)) 75.99%),linear-gradient(45deg,hsl(var(--chkbg)) 40%,transparent 40.99%),linear-gradient(-45deg,hsl(var(--chkbg)) 30%,hsl(var(--chkfg)) 30.99%,hsl(var(--chkfg)) 40%,transparent 40.99%),linear-gradient(45deg,hsl(var(--chkfg)) 50%,hsl(var(--chkbg)) 50.99%)}.drawer-toggle:focus-visible~.drawer-content .drawer-button.btn-primary{outline:2px solid hsl(var(--p))}.drawer-toggle:focus-visible~.drawer-content .drawer-button.btn-ghost{outline:2px solid currentColor}.label-text{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.label a:hover{--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.input[list]::-webkit-calendar-picker-indicator{line-height:1em}.input-bordered{--tw-border-opacity: .2}.input:focus{outline:2px solid hsla(var(--bc) / .2);outline-offset:2px}.input-disabled,.input[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: .2}.input-disabled::-moz-placeholder,.input[disabled]::-moz-placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.input-disabled::placeholder,.input[disabled]::placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.menu li.disabled>*{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2}.menu li.disabled>*:hover{background-color:transparent}.mockup-phone .display{overflow:hidden;border-radius:40px;margin-top:-25px}@keyframes progress-loading{50%{left:107%}}@keyframes radiomark{0%{box-shadow:0 0 0 12px hsl(var(--b1)) inset,0 0 0 12px hsl(var(--b1)) inset}50%{box-shadow:0 0 0 3px hsl(var(--b1)) inset,0 0 0 3px hsl(var(--b1)) inset}to{box-shadow:0 0 0 4px hsl(var(--b1)) inset,0 0 0 4px hsl(var(--b1)) inset}}.range:focus-visible::-webkit-slider-thumb{--focus-shadow: 0 0 0 6px hsl(var(--b1)) inset, 0 0 0 2rem hsl(var(--range-shdw)) inset}.range:focus-visible::-moz-range-thumb{--focus-shadow: 0 0 0 6px hsl(var(--b1)) inset, 0 0 0 2rem hsl(var(--range-shdw)) inset}.range::-webkit-slider-runnable-track{height:.5rem;width:100%;border-radius:var(--rounded-box, 1rem);background-color:hsla(var(--bc) / .1)}.range::-moz-range-track{height:.5rem;width:100%;border-radius:var(--rounded-box, 1rem);background-color:hsla(var(--bc) / .1)}.range::-webkit-slider-thumb{background-color:hsl(var(--b1));position:relative;height:1.5rem;width:1.5rem;border-style:none;border-radius:var(--rounded-box, 1rem);appearance:none;-webkit-appearance:none;top:50%;color:hsl(var(--range-shdw));transform:translateY(-50%);--filler-size: 100rem;--filler-offset: .6rem;box-shadow:0 0 0 3px hsl(var(--range-shdw)) inset,var(--focus-shadow, 0 0),calc(var(--filler-size) * -1 - var(--filler-offset)) 0 0 var(--filler-size)}.range::-moz-range-thumb{background-color:hsl(var(--b1));position:relative;height:1.5rem;width:1.5rem;border-style:none;border-radius:var(--rounded-box, 1rem);top:50%;color:hsl(var(--range-shdw));--filler-size: 100rem;--filler-offset: .5rem;box-shadow:0 0 0 3px hsl(var(--range-shdw)) inset,var(--focus-shadow, 0 0),calc(var(--filler-size) * -1 - var(--filler-offset)) 0 0 var(--filler-size)}@keyframes rating-pop{0%{transform:translateY(-.125em)}40%{transform:translateY(-.125em)}to{transform:translateY(0)}}.select:focus{outline:2px solid hsla(var(--bc) / .2);outline-offset:2px}.select-disabled,.select[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: .2}.select-disabled::-moz-placeholder,.select[disabled]::-moz-placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.select-disabled::placeholder,.select[disabled]::placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.select-multiple,.select[multiple],.select[size].select:not([size="1"]){background-image:none;padding-right:1rem}:where(.stats)>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)));--tw-divide-y-reverse: 0;border-top-width:calc(0px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(0px * var(--tw-divide-y-reverse))}.swap-rotate .swap-on,.swap-rotate .swap-indeterminate,.swap-rotate input:indeterminate~.swap-on{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.swap-rotate input:checked~.swap-off,.swap-rotate.swap-active .swap-off,.swap-rotate input:indeterminate~.swap-off{--tw-rotate: -45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.swap-rotate input:checked~.swap-on,.swap-rotate.swap-active .swap-on,.swap-rotate input:indeterminate~.swap-indeterminate{--tw-rotate: 0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.swap-flip .swap-on,.swap-flip .swap-indeterminate,.swap-flip input:indeterminate~.swap-on{transform:rotateY(180deg);-webkit-backface-visibility:hidden;backface-visibility:hidden;opacity:1}.swap-flip input:checked~.swap-off,.swap-flip.swap-active .swap-off,.swap-flip input:indeterminate~.swap-off{transform:rotateY(-180deg);-webkit-backface-visibility:hidden;backface-visibility:hidden;opacity:1}.swap-flip input:checked~.swap-on,.swap-flip.swap-active .swap-on,.swap-flip input:indeterminate~.swap-indeterminate{transform:rotateY(0)}.textarea:focus{outline:2px solid hsla(var(--bc) / .2);outline-offset:2px}.textarea-disabled,.textarea[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: .2}.textarea-disabled::-moz-placeholder,.textarea[disabled]::-moz-placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.textarea-disabled::placeholder,.textarea[disabled]::placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}@keyframes toast-pop{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}.btn-sm{height:2rem;padding-left:.75rem;padding-right:.75rem;min-height:2rem;font-size:.875rem}.btn-square:where(.btn-sm){height:2rem;width:2rem;padding:0}.btn-circle:where(.btn-sm){height:2rem;width:2rem;border-radius:9999px;padding:0}.btn-group .btn:not(:first-child):not(:last-child),.btn-group.btn-group-horizontal .btn:not(:first-child):not(:last-child){border-radius:0}.btn-group .btn:first-child:not(:last-child),.btn-group.btn-group-horizontal .btn:first-child:not(:last-child){margin-left:-1px;margin-top:-0px;border-top-left-radius:var(--rounded-btn, .5rem);border-top-right-radius:0;border-bottom-left-radius:var(--rounded-btn, .5rem);border-bottom-right-radius:0}.btn-group .btn:last-child:not(:first-child),.btn-group.btn-group-horizontal .btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:var(--rounded-btn, .5rem);border-bottom-left-radius:0;border-bottom-right-radius:var(--rounded-btn, .5rem)}.btn-group.btn-group-vertical .btn:first-child:not(:last-child){margin-left:-0px;margin-top:-1px;border-top-left-radius:var(--rounded-btn, .5rem);border-top-right-radius:var(--rounded-btn, .5rem);border-bottom-left-radius:0;border-bottom-right-radius:0}.btn-group.btn-group-vertical .btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:var(--rounded-btn, .5rem);border-bottom-right-radius:var(--rounded-btn, .5rem)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0px;right:0px;bottom:0px;left:0px}.top-0{top:0px}.right-0{right:0px}.top-12{top:3rem}.top-11{top:2.75rem}.z-\[60\]{z-index:60}.z-30{z-index:30}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.col-span-4{grid-column:span 4 / span 4}.col-span-2{grid-column:span 2 / span 2}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-0\.5{margin-top:.125rem;margin-bottom:.125rem}.my-0{margin-top:0;margin-bottom:0}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mr-1{margin-right:.25rem}.ml-2{margin-left:.5rem}.ml-10{margin-left:2.5rem}.mr-2{margin-right:.5rem}.mb-4{margin-bottom:1rem}.mb-2{margin-bottom:.5rem}.mt-2{margin-top:.5rem}.ml-3{margin-left:.75rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.mr-4{margin-right:1rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-full{height:100%}.h-8{height:2rem}.h-\[90vh\]{height:90vh}.h-3{height:.75rem}.max-h-72{max-height:18rem}.min-h-\[10rem\]{min-height:10rem}.w-full{width:100%}.w-48{width:12rem}.w-3{width:.75rem}.w-8{width:2rem}.min-w-max{min-width:-moz-max-content;min-width:max-content}.max-w-3xl{max-width:48rem}.max-w-xl{max-width:36rem}.max-w-md{max-width:28rem}.max-w-lg{max-width:32rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.animate-\[pulse_0\.5s_cubic-bezier\(0\.4\,0\,0\.6\,1\)_1\]{animation:pulse .5s cubic-bezier(.4,0,.6,1) 1}@keyframes pulse{50%{opacity:.5}}.animate-\[pulse_1\.25s_cubic-bezier\(0\.4\,0\,0\.6\,1\)_infinite\]{animation:pulse 1.25s cubic-bezier(.4,0,.6,1) infinite}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.resize{resize:both}.grid-cols-\[max-content\,auto\,max-content\,auto\]{grid-template-columns:max-content auto max-content auto}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-3{gap:.75rem}.gap-x-5{-moz-column-gap:1.25rem;column-gap:1.25rem}.overflow-auto{overflow:auto}.whitespace-pre-wrap{white-space:pre-wrap}.break-all{word-break:break-all}.rounded-full{border-radius:9999px}.border-2{border-width:2px}.border{border-width:1px}.border-transparent{border-color:transparent}.border-primary{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}.border-accent-focus{--tw-border-opacity: 1;border-color:hsl(var(--af, var(--a)) / var(--tw-border-opacity))}.bg-base-200{--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity))}.bg-base-100{--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity))}.bg-primary{--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity))}.bg-black\/\[\.3\]{background-color:#0000004d}.fill-blue-600{fill:#2563eb}.p-2{padding:.5rem}.p-4{padding:1rem}.p-1{padding:.25rem}.px-4{padding-left:1rem;padding-right:1rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pb-2{padding-bottom:.5rem}.pr-8{padding-right:2rem}.pl-4{padding-left:1rem}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-sm{font-size:.875rem;line-height:1.25rem}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity))}.text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.opacity-50{opacity:.5}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}body,html{margin:0;display:flex;flex:1;min-height:100%;overflow:auto}.hover\:text-primary:hover{--tw-text-opacity: 1;color:hsl(var(--p) / var(--tw-text-opacity))}@media (prefers-color-scheme: dark){.dark\:text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}}@media (min-width: 640px){.sm\:mr-2{margin-right:.5rem}.sm\:block{display:block}.sm\:hidden{display:none}.sm\:text-base{font-size:1rem;line-height:1.5rem}}@media (min-width: 768px){.md\:mr-2{margin-right:.5rem}.md\:items-center{align-items:center}}p.svelte-1e1volb.svelte-1e1volb:focus-visible{outline:none}.multi-line-checkbox.svelte-1e1volb.svelte-1e1volb{transform:scale(1.5);margin-right:10px;background-color:#0ff!important;border:4px solid #00FFFF}.textline-buttons.svelte-1e1volb>button.svelte-1e1volb{background-color:#1a73e8;color:#fff;border:none;padding:8px 15px;font-size:14px;cursor:pointer;transition:background-color .3s;border-radius:5px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.textline-buttons.svelte-1e1volb>button.svelte-1e1volb:hover{background-color:#1669c1;cursor:pointer}.textline-buttons.svelte-1e1volb.svelte-1e1volb{margin-left:auto;display:flex;gap:10px}.textline2.svelte-1e1volb.svelte-1e1volb{margin:15px 0;padding:15px;display:flex;align-items:center;gap:15px}.unselectable.svelte-1e1volb.svelte-1e1volb,.unselectable.svelte-1e1volb .svelte-1e1volb{user-select:none!important;-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important}.timer.svelte-1efsh80{transition:.1s filter linear}.blur.svelte-1efsh80:hover{filter:blur(0)}.blur.svelte-1efsh80:not(:hover){filter:blur(.25rem)}
|
41
|
+
*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root,[data-theme]{background-color:hsla(var(--b1) / var(--tw-bg-opacity, 1));color:hsla(var(--bc) / var(--tw-text-opacity, 1))}html{-webkit-tap-highlight-color:transparent}:root{color-scheme:light;--pf: 139 16% 34%;--sf: 97 37% 75%;--af: 0 68% 75%;--nf: 0 4% 28%;--b2: 0 4% 82%;--b3: 0 4% 74%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--pc: 139 100% 89%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 139 16% 43%;--s: 97 37% 93%;--sc: 96 32% 15%;--a: 0 68% 94%;--ac: 0 22% 16%;--n: 0 4% 35%;--nc: 0 4% 91%;--b1: 0 4% 91%;--bc: 0 3% 6%}[data-theme=garden]{color-scheme:light;--pf: 139 16% 34%;--sf: 97 37% 75%;--af: 0 68% 75%;--nf: 0 4% 28%;--b2: 0 4% 82%;--b3: 0 4% 74%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--pc: 139 100% 89%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 139 16% 43%;--s: 97 37% 93%;--sc: 96 32% 15%;--a: 0 68% 94%;--ac: 0 22% 16%;--n: 0 4% 35%;--nc: 0 4% 91%;--b1: 0 4% 91%;--bc: 0 3% 6%}[data-theme=business]{color-scheme:dark;--pf: 210 64% 24%;--sf: 200 13% 44%;--af: 13 80% 48%;--nf: 213 14% 13%;--b2: 0 0% 11%;--b3: 0 0% 10%;--bc: 0 0% 83%;--pc: 210 100% 86%;--sc: 200 100% 11%;--ac: 13 100% 12%;--nc: 213 28% 83%;--inc: 199 100% 88%;--suc: 144 100% 11%;--wac: 39 100% 12%;--erc: 6 100% 89%;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 210 64% 31%;--s: 200 13% 55%;--a: 13 80% 60%;--n: 213 14% 16%;--b1: 0 0% 13%;--in: 199 100% 42%;--su: 144 31% 56%;--wa: 39 64% 60%;--er: 6 56% 43%;--rounded-box: .25rem;--rounded-btn: .125rem;--rounded-badge: .125rem}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.alert{display:flex;width:100%;flex-direction:column;align-items:center;justify-content:space-between;gap:1rem;--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));padding:1rem;border-radius:var(--rounded-box, 1rem)}.alert>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}@media (min-width: 768px){.alert{flex-direction:row}.alert>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}}.alert>:where(*){display:flex;align-items:center;gap:.5rem}.avatar.placeholder>div{display:flex;align-items:center;justify-content:center}.btn{display:inline-flex;flex-shrink:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-wrap:wrap;align-items:center;justify-content:center;border-color:transparent;border-color:hsl(var(--n) / var(--tw-border-opacity));text-align:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);border-radius:var(--rounded-btn, .5rem);height:3rem;padding-left:1rem;padding-right:1rem;font-size:.875rem;line-height:1.25rem;line-height:1em;min-height:3rem;font-weight:600;text-transform:uppercase;text-transform:var(--btn-text-case, uppercase);text-decoration-line:none;border-width:var(--border-btn, 1px);animation:button-pop var(--animation-btn, .25s) ease-out;--tw-border-opacity: 1;--tw-bg-opacity: 1;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity))}.btn-disabled,.btn[disabled],.btn.loading,.btn.loading:hover{pointer-events:none}.btn.loading:before{margin-right:.5rem;height:1rem;width:1rem;border-radius:9999px;border-width:2px;animation:spin 2s linear infinite;content:"";border-top-color:transparent;border-left-color:transparent;border-bottom-color:currentColor;border-right-color:currentColor}@media (prefers-reduced-motion: reduce){.btn.loading:before{animation:spin 10s linear infinite}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.btn-group>input[type=radio].btn{-webkit-appearance:none;-moz-appearance:none;appearance:none}.btn-group>input[type=radio].btn:before{content:attr(data-title)}.checkbox{flex-shrink:0;--chkbg: var(--bc);--chkfg: var(--b1);height:1.5rem;width:1.5rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: .2;border-radius:var(--rounded-btn, .5rem)}.label{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;justify-content:space-between;padding:.5rem .25rem}.input{flex-shrink:1;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);height:3rem;padding-left:1rem;padding-right:1rem;font-size:1rem;line-height:2;line-height:1.5rem;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 0;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));border-radius:var(--rounded-btn, .5rem)}.input-group>.input{isolation:isolate}.input-group>*,.input-group>.input,.input-group>.select{border-radius:0}.menu>:where(li.disabled > *:not(ul):focus){cursor:auto}.range{height:1.5rem;width:100%;cursor:pointer;-moz-appearance:none;appearance:none;-webkit-appearance:none;--range-shdw: var(--bc);overflow:hidden;background-color:transparent;border-radius:var(--rounded-box, 1rem)}.range:focus{outline:none}.select{display:inline-flex;flex-shrink:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:3rem;padding-left:1rem;padding-right:2.5rem;font-size:.875rem;line-height:1.25rem;line-height:2;min-height:3rem;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 0;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));font-weight:600;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);border-radius:var(--rounded-btn, .5rem);background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 20px) calc(1px + 50%),calc(100% - 16px) calc(1px + 50%);background-size:4px 4px,4px 4px;background-repeat:no-repeat}.select[multiple]{height:auto}.stats{display:inline-grid;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity));border-radius:var(--rounded-box, 1rem)}:where(.stats){grid-auto-flow:column;overflow-x:auto}.swap{position:relative;display:inline-grid;-webkit-user-select:none;-moz-user-select:none;user-select:none;place-content:center;cursor:pointer}.swap>*{grid-column-start:1;grid-row-start:1;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:transform,opacity}.swap input{-webkit-appearance:none;-moz-appearance:none;appearance:none}.swap .swap-on,.swap .swap-indeterminate,.swap input:indeterminate~.swap-on{opacity:0}.swap input:checked~.swap-off,.swap.swap-active .swap-off,.swap input:indeterminate~.swap-off{opacity:0}.swap input:checked~.swap-on,.swap-active .swap-on,.swap input:indeterminate~.swap-indeterminate{opacity:1}.textarea{flex-shrink:1;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);padding:.5rem 1rem;font-size:.875rem;line-height:1.25rem;line-height:2;min-height:3rem;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 0;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));border-radius:var(--rounded-btn, .5rem)}.alert-info{--tw-bg-opacity: 1;background-color:hsl(var(--in) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--inc, var(--nc)) / var(--tw-text-opacity))}.alert-error{--tw-bg-opacity: 1;background-color:hsl(var(--er) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--erc, var(--nc)) / var(--tw-text-opacity))}.btn-outline.btn-primary .badge{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-outline .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--nf, var(--n)) / var(--tw-border-opacity));background-color:transparent}.btn-outline.btn-primary .badge-outline{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));background-color:transparent;--tw-text-opacity: 1;color:hsl(var(--p) / var(--tw-text-opacity))}.btn-outline:hover .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity))}.btn-outline.btn-primary:hover .badge{--tw-border-opacity: 1;border-color:hsl(var(--pc) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--pc) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--p) / var(--tw-text-opacity))}.btn-outline.btn-primary:hover .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--pc) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--pf, var(--p)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-outline.btn-secondary:hover .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--sc) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--sf, var(--s)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--sc) / var(--tw-text-opacity))}.btn-outline.btn-accent:hover .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--ac) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--af, var(--a)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--ac) / var(--tw-text-opacity))}.btm-nav>*.disabled,.btm-nav>*.disabled:hover,.btm-nav>*[disabled],.btm-nav>*[disabled]:hover{pointer-events:none;--tw-border-opacity: 0;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-bg-opacity: .1;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2}.btm-nav>* .label{font-size:1rem;line-height:1.5rem}.btn:active:hover,.btn:active:focus{animation:none;transform:scale(var(--btn-focus-scale, .95))}.btn:hover,.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--nf, var(--n)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--nf, var(--n)) / var(--tw-bg-opacity))}.btn:focus-visible{outline:2px solid hsl(var(--nf));outline-offset:2px}.btn-primary{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-primary:hover,.btn-primary.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--pf, var(--p)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--pf, var(--p)) / var(--tw-bg-opacity))}.btn-primary:focus-visible{outline:2px solid hsl(var(--p))}.btn.glass:hover,.btn.glass.btn-active{--glass-opacity: 25%;--glass-border-opacity: 15%}.btn.glass:focus-visible{outline:2px solid currentColor}.btn-ghost{border-width:1px;border-color:transparent;background-color:transparent;color:currentColor}.btn-ghost:hover,.btn-ghost.btn-active{--tw-border-opacity: 0;background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .2}.btn-ghost:focus-visible{outline:2px solid currentColor}.btn-outline.btn-primary{--tw-text-opacity: 1;color:hsl(var(--p) / var(--tw-text-opacity))}.btn-outline.btn-primary:hover,.btn-outline.btn-primary.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--pf, var(--p)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--pf, var(--p)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-disabled,.btn-disabled:hover,.btn[disabled],.btn[disabled]:hover{--tw-border-opacity: 0;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-bg-opacity: .2;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2}.btn.loading.btn-square:before,.btn.loading.btn-circle:before{margin-right:0}.btn.loading.btn-xl:before,.btn.loading.btn-lg:before{height:1.25rem;width:1.25rem}.btn.loading.btn-sm:before,.btn.loading.btn-xs:before{height:.75rem;width:.75rem}.btn-group>input[type=radio]:checked.btn,.btn-group>.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-group>input[type=radio]:checked.btn:focus-visible,.btn-group>.btn-active:focus-visible{outline:2px solid hsl(var(--p))}@keyframes button-pop{0%{transform:scale(var(--btn-focus-scale, .95))}40%{transform:scale(1.02)}to{transform:scale(1)}}.checkbox:focus-visible{outline:2px solid hsl(var(--bc));outline-offset:2px}.checkbox:checked,.checkbox[checked=true],.checkbox[aria-checked=true]{--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-in-out;background-image:linear-gradient(-45deg,transparent 65%,hsl(var(--chkbg)) 65.99%),linear-gradient(45deg,transparent 75%,hsl(var(--chkbg)) 75.99%),linear-gradient(-45deg,hsl(var(--chkbg)) 40%,transparent 40.99%),linear-gradient(45deg,hsl(var(--chkbg)) 30%,hsl(var(--chkfg)) 30.99%,hsl(var(--chkfg)) 40%,transparent 40.99%),linear-gradient(-45deg,hsl(var(--chkfg)) 50%,hsl(var(--chkbg)) 50.99%)}.checkbox:indeterminate{--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-in-out;background-image:linear-gradient(90deg,transparent 80%,hsl(var(--chkbg)) 80%),linear-gradient(-90deg,transparent 80%,hsl(var(--chkbg)) 80%),linear-gradient(0deg,hsl(var(--chkbg)) 43%,hsl(var(--chkfg)) 43%,hsl(var(--chkfg)) 57%,hsl(var(--chkbg)) 57%)}.checkbox-primary{--chkbg: var(--p);--chkfg: var(--pc);--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}.checkbox-primary:hover{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}.checkbox-primary:focus-visible{outline:2px solid hsl(var(--p))}.checkbox-primary:checked,.checkbox-primary[checked=true],.checkbox-primary[aria-checked=true]{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.checkbox:disabled{cursor:not-allowed;border-color:transparent;--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));opacity:.2}@keyframes checkmark{0%{background-position-y:5px}50%{background-position-y:-2px}to{background-position-y:0}}[dir=rtl] .checkbox:checked,[dir=rtl] .checkbox[checked=true],[dir=rtl] .checkbox[aria-checked=true]{background-image:linear-gradient(45deg,transparent 65%,hsl(var(--chkbg)) 65.99%),linear-gradient(-45deg,transparent 75%,hsl(var(--chkbg)) 75.99%),linear-gradient(45deg,hsl(var(--chkbg)) 40%,transparent 40.99%),linear-gradient(-45deg,hsl(var(--chkbg)) 30%,hsl(var(--chkfg)) 30.99%,hsl(var(--chkfg)) 40%,transparent 40.99%),linear-gradient(45deg,hsl(var(--chkfg)) 50%,hsl(var(--chkbg)) 50.99%)}.drawer-toggle:focus-visible~.drawer-content .drawer-button.btn-primary{outline:2px solid hsl(var(--p))}.drawer-toggle:focus-visible~.drawer-content .drawer-button.btn-ghost{outline:2px solid currentColor}.label-text{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.label a:hover{--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.input[list]::-webkit-calendar-picker-indicator{line-height:1em}.input-bordered{--tw-border-opacity: .2}.input:focus{outline:2px solid hsla(var(--bc) / .2);outline-offset:2px}.input-disabled,.input[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: .2}.input-disabled::-moz-placeholder,.input[disabled]::-moz-placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.input-disabled::placeholder,.input[disabled]::placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.menu li.disabled>*{-webkit-user-select:none;-moz-user-select:none;user-select:none;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2}.menu li.disabled>*:hover{background-color:transparent}.mockup-phone .display{overflow:hidden;border-radius:40px;margin-top:-25px}@keyframes progress-loading{50%{left:107%}}@keyframes radiomark{0%{box-shadow:0 0 0 12px hsl(var(--b1)) inset,0 0 0 12px hsl(var(--b1)) inset}50%{box-shadow:0 0 0 3px hsl(var(--b1)) inset,0 0 0 3px hsl(var(--b1)) inset}to{box-shadow:0 0 0 4px hsl(var(--b1)) inset,0 0 0 4px hsl(var(--b1)) inset}}.range:focus-visible::-webkit-slider-thumb{--focus-shadow: 0 0 0 6px hsl(var(--b1)) inset, 0 0 0 2rem hsl(var(--range-shdw)) inset}.range:focus-visible::-moz-range-thumb{--focus-shadow: 0 0 0 6px hsl(var(--b1)) inset, 0 0 0 2rem hsl(var(--range-shdw)) inset}.range::-webkit-slider-runnable-track{height:.5rem;width:100%;border-radius:var(--rounded-box, 1rem);background-color:hsla(var(--bc) / .1)}.range::-moz-range-track{height:.5rem;width:100%;border-radius:var(--rounded-box, 1rem);background-color:hsla(var(--bc) / .1)}.range::-webkit-slider-thumb{background-color:hsl(var(--b1));position:relative;height:1.5rem;width:1.5rem;border-style:none;border-radius:var(--rounded-box, 1rem);appearance:none;-webkit-appearance:none;top:50%;color:hsl(var(--range-shdw));transform:translateY(-50%);--filler-size: 100rem;--filler-offset: .6rem;box-shadow:0 0 0 3px hsl(var(--range-shdw)) inset,var(--focus-shadow, 0 0),calc(var(--filler-size) * -1 - var(--filler-offset)) 0 0 var(--filler-size)}.range::-moz-range-thumb{background-color:hsl(var(--b1));position:relative;height:1.5rem;width:1.5rem;border-style:none;border-radius:var(--rounded-box, 1rem);top:50%;color:hsl(var(--range-shdw));--filler-size: 100rem;--filler-offset: .5rem;box-shadow:0 0 0 3px hsl(var(--range-shdw)) inset,var(--focus-shadow, 0 0),calc(var(--filler-size) * -1 - var(--filler-offset)) 0 0 var(--filler-size)}@keyframes rating-pop{0%{transform:translateY(-.125em)}40%{transform:translateY(-.125em)}to{transform:translateY(0)}}.select:focus{outline:2px solid hsla(var(--bc) / .2);outline-offset:2px}.select-disabled,.select[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: .2}.select-disabled::-moz-placeholder,.select[disabled]::-moz-placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.select-disabled::placeholder,.select[disabled]::placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.select-multiple,.select[multiple],.select[size].select:not([size="1"]){background-image:none;padding-right:1rem}:where(.stats)>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)));--tw-divide-y-reverse: 0;border-top-width:calc(0px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(0px * var(--tw-divide-y-reverse))}.swap-rotate .swap-on,.swap-rotate .swap-indeterminate,.swap-rotate input:indeterminate~.swap-on{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.swap-rotate input:checked~.swap-off,.swap-rotate.swap-active .swap-off,.swap-rotate input:indeterminate~.swap-off{--tw-rotate: -45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.swap-rotate input:checked~.swap-on,.swap-rotate.swap-active .swap-on,.swap-rotate input:indeterminate~.swap-indeterminate{--tw-rotate: 0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.swap-flip .swap-on,.swap-flip .swap-indeterminate,.swap-flip input:indeterminate~.swap-on{transform:rotateY(180deg);-webkit-backface-visibility:hidden;backface-visibility:hidden;opacity:1}.swap-flip input:checked~.swap-off,.swap-flip.swap-active .swap-off,.swap-flip input:indeterminate~.swap-off{transform:rotateY(-180deg);-webkit-backface-visibility:hidden;backface-visibility:hidden;opacity:1}.swap-flip input:checked~.swap-on,.swap-flip.swap-active .swap-on,.swap-flip input:indeterminate~.swap-indeterminate{transform:rotateY(0)}.textarea:focus{outline:2px solid hsla(var(--bc) / .2);outline-offset:2px}.textarea-disabled,.textarea[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: .2}.textarea-disabled::-moz-placeholder,.textarea[disabled]::-moz-placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.textarea-disabled::placeholder,.textarea[disabled]::placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}@keyframes toast-pop{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}.btn-sm{height:2rem;padding-left:.75rem;padding-right:.75rem;min-height:2rem;font-size:.875rem}.btn-square:where(.btn-sm){height:2rem;width:2rem;padding:0}.btn-circle:where(.btn-sm){height:2rem;width:2rem;border-radius:9999px;padding:0}.btn-group .btn:not(:first-child):not(:last-child),.btn-group.btn-group-horizontal .btn:not(:first-child):not(:last-child){border-radius:0}.btn-group .btn:first-child:not(:last-child),.btn-group.btn-group-horizontal .btn:first-child:not(:last-child){margin-left:-1px;margin-top:-0px;border-top-left-radius:var(--rounded-btn, .5rem);border-top-right-radius:0;border-bottom-left-radius:var(--rounded-btn, .5rem);border-bottom-right-radius:0}.btn-group .btn:last-child:not(:first-child),.btn-group.btn-group-horizontal .btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:var(--rounded-btn, .5rem);border-bottom-left-radius:0;border-bottom-right-radius:var(--rounded-btn, .5rem)}.btn-group.btn-group-vertical .btn:first-child:not(:last-child){margin-left:-0px;margin-top:-1px;border-top-left-radius:var(--rounded-btn, .5rem);border-top-right-radius:var(--rounded-btn, .5rem);border-bottom-left-radius:0;border-bottom-right-radius:0}.btn-group.btn-group-vertical .btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:var(--rounded-btn, .5rem);border-bottom-right-radius:var(--rounded-btn, .5rem)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0px;right:0px;bottom:0px;left:0px}.top-0{top:0px}.right-0{right:0px}.top-12{top:3rem}.top-11{top:2.75rem}.z-\[60\]{z-index:60}.z-30{z-index:30}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.col-span-4{grid-column:span 4 / span 4}.col-span-2{grid-column:span 2 / span 2}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-0\.5{margin-top:.125rem;margin-bottom:.125rem}.my-0{margin-top:0;margin-bottom:0}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mr-1{margin-right:.25rem}.ml-2{margin-left:.5rem}.ml-10{margin-left:2.5rem}.mr-2{margin-right:.5rem}.mb-4{margin-bottom:1rem}.mb-2{margin-bottom:.5rem}.mt-2{margin-top:.5rem}.ml-3{margin-left:.75rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.mr-4{margin-right:1rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-full{height:100%}.h-8{height:2rem}.h-\[90vh\]{height:90vh}.h-3{height:.75rem}.max-h-72{max-height:18rem}.min-h-\[10rem\]{min-height:10rem}.w-full{width:100%}.w-48{width:12rem}.w-3{width:.75rem}.w-8{width:2rem}.min-w-max{min-width:-moz-max-content;min-width:max-content}.max-w-3xl{max-width:48rem}.max-w-xl{max-width:36rem}.max-w-md{max-width:28rem}.max-w-lg{max-width:32rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.animate-\[pulse_0\.5s_cubic-bezier\(0\.4\,0\,0\.6\,1\)_1\]{animation:pulse .5s cubic-bezier(.4,0,.6,1) 1}@keyframes pulse{50%{opacity:.5}}.animate-\[pulse_1\.25s_cubic-bezier\(0\.4\,0\,0\.6\,1\)_infinite\]{animation:pulse 1.25s cubic-bezier(.4,0,.6,1) infinite}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.resize{resize:both}.grid-cols-\[max-content\,auto\,max-content\,auto\]{grid-template-columns:max-content auto max-content auto}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-3{gap:.75rem}.gap-x-5{-moz-column-gap:1.25rem;column-gap:1.25rem}.overflow-auto{overflow:auto}.whitespace-pre-wrap{white-space:pre-wrap}.break-all{word-break:break-all}.rounded-full{border-radius:9999px}.border-2{border-width:2px}.border{border-width:1px}.border-transparent{border-color:transparent}.border-primary{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}.border-accent-focus{--tw-border-opacity: 1;border-color:hsl(var(--af, var(--a)) / var(--tw-border-opacity))}.bg-base-200{--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity))}.bg-base-100{--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity))}.bg-primary{--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity))}.bg-black\/\[\.3\]{background-color:#0000004d}.fill-blue-600{fill:#2563eb}.p-2{padding:.5rem}.p-4{padding:1rem}.p-1{padding:.25rem}.px-4{padding-left:1rem;padding-right:1rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pb-2{padding-bottom:.5rem}.pr-8{padding-right:2rem}.pl-4{padding-left:1rem}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-sm{font-size:.875rem;line-height:1.25rem}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity))}.text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.opacity-50{opacity:.5}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}body,html{margin:0;display:flex;flex:1;min-height:100%;overflow:auto}.hover\:text-primary:hover{--tw-text-opacity: 1;color:hsl(var(--p) / var(--tw-text-opacity))}@media (prefers-color-scheme: dark){.dark\:text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}}@media (min-width: 640px){.sm\:mr-2{margin-right:.5rem}.sm\:block{display:block}.sm\:hidden{display:none}.sm\:text-base{font-size:1rem;line-height:1.5rem}}@media (min-width: 768px){.md\:mr-2{margin-right:.5rem}.md\:items-center{align-items:center}}p.svelte-g45763.svelte-g45763:focus-visible{outline:none}.multi-line-checkbox.svelte-g45763.svelte-g45763{transform:scale(1.5);margin-right:10px;background-color:#0ff!important;border:4px solid #00FFFF}.textline-buttons.svelte-g45763>button.svelte-g45763{background-color:#333;color:#fff;border:1px solid #555;padding:6px 10px;font-size:12px;cursor:pointer;transition:background-color .3s;border-radius:5px;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.textline-buttons.svelte-g45763>button.svelte-g45763:hover{background-color:#1669c1;cursor:pointer}.textline-buttons.svelte-g45763.svelte-g45763{margin-left:auto;display:flex;gap:10px}.textline2.svelte-g45763.svelte-g45763{margin:15px 0;padding:15px;display:flex;align-items:center;gap:15px}.timer.svelte-1efsh80{transition:.1s filter linear}.blur.svelte-1efsh80:hover{filter:blur(0)}.blur.svelte-1efsh80:not(:hover){filter:blur(.25rem)}
|
42
42
|
|
43
43
|
</style>
|
44
44
|
</head>
|