GameSentenceMiner 2.14.4__py3-none-any.whl → 2.14.5__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/ai/ai_prompting.py +23 -22
- GameSentenceMiner/anki.py +8 -8
- GameSentenceMiner/config_gui.py +111 -49
- GameSentenceMiner/locales/en_us.json +1 -1
- GameSentenceMiner/obs.py +42 -5
- GameSentenceMiner/ocr/gsm_ocr_config.py +8 -2
- GameSentenceMiner/owocr/owocr/ocr.py +41 -9
- GameSentenceMiner/owocr/owocr/run.py +209 -26
- GameSentenceMiner/util/configuration.py +6 -0
- GameSentenceMiner/util/electron_config.py +2 -2
- GameSentenceMiner/web/templates/index.html +19 -19
- GameSentenceMiner/web/texthooking_page.py +30 -0
- {gamesentenceminer-2.14.4.dist-info → gamesentenceminer-2.14.5.dist-info}/METADATA +9 -4
- {gamesentenceminer-2.14.4.dist-info → gamesentenceminer-2.14.5.dist-info}/RECORD +18 -18
- {gamesentenceminer-2.14.4.dist-info → gamesentenceminer-2.14.5.dist-info}/WHEEL +0 -0
- {gamesentenceminer-2.14.4.dist-info → gamesentenceminer-2.14.5.dist-info}/entry_points.txt +0 -0
- {gamesentenceminer-2.14.4.dist-info → gamesentenceminer-2.14.5.dist-info}/licenses/LICENSE +0 -0
- {gamesentenceminer-2.14.4.dist-info → gamesentenceminer-2.14.5.dist-info}/top_level.txt +0 -0
@@ -16,30 +16,30 @@
|
|
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 hu=Object.defineProperty;var pu=(e,n,t)=>n in e?hu(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var
|
20
|
-
`;for(let
|
21
|
-
`}const h=
|
22
|
-
}`,p=`__svelte_${Lu(h)}_${l}`,d=ac(e),{stylesheet:b,rules:v}=pl.get(d)||xu(d,e);v[p]||(v[p]=!0,b.insertRule(`@keyframes ${p} ${h}`,b.cssRules.length));const k=e.style.animation||"";return e.style.animation=`${k?`${k}, `:""}${p} ${r}ms linear ${o}ms 1 both`,dl+=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(", "),dl-=o,dl||Pu())}function Pu(){ps(()=>{dl||(pl.forEach(e=>{const{ownerNode:n}=e.stylesheet;n&&F(n)}),pl.clear())})}let Uo;function Mo(e){Uo=e}function ds(){if(!Uo)throw new Error("Function called outside component initialization");return Uo}function Ll(e){ds().$$.on_mount.push(e)}function fc(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=cc(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=[],es=[],hc=Promise.resolve();let ts=!1;function pc(){ts||(ts=!0,hc.then(dc))}function Wo(){return pc(),hc}function br(e){nl.push(e)}function Hl(e){es.push(e)}const Vl=new Set;let Xi=0;function dc(){const e=Uo;do{for(;Xi<To.length;){const n=To[Xi];Xi++,Mo(n),Du(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];Vl.has(t)||(Vl.add(t),t())}nl.length=0}while(To.length);for(;es.length;)es.pop()();ts=!1,Vl.clear(),Mo(e)}function Du(e){if(e.fragment!==null){e.update(),Et(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 Tu(){return Do||(Do=Promise.resolve(),Do.then(()=>{Do=null})),Do}function da(e,n,t){e.dispatchEvent(cc(`${n?"intro":"outro"}${t}`))}const rl=new Set;let hr;function dt(){hr={r:0,c:[],p:hr}}function mt(){hr.r||Et(hr.c),hr=hr.p}function R(e,n){e&&e.i&&(rl.delete(e),e.i(n))}function Y(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 Ou={duration:0};function mc(e,n,t){const r={direction:"in"};let o=n(e,t,r),i=!1,s,l,c=0;function a(){s&&pa(e,s)}function h(){const{delay:d=0,duration:b=300,easing:v=du,tick:k=xe,css:M}=o||Ou;M&&(s=Au(e,0,1,b,d,v,M,c++)),k(0,1);const D=_u()+d,T=D+b;l&&l.abort(),i=!0,br(()=>da(e,!0,"start")),l=yu(A=>{if(i){if(A>=T)return k(1,0),da(e,!0,"end"),a(),i=!1;if(A>=D){const O=v((A-D)/b);k(O,1-O)}}return i})}let p=!1;return{start(){p||(p=!0,pa(e),El(o)?(o=o(r),Tu().then(h)):h())},invalidate(){p=!1},end(){i&&(a(),i=!1)}}}const gc=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function xl(e,n){e.d(1),n.delete(e.key)}function bc(e,n){Y(e,1,1,()=>{n.delete(e.key)})}function Lo(e,n,t,r,o,i,s,l,c,a,h,p){let d=e.length,b=i.length,v=d;const k={};for(;v--;)k[e[v].key]=v;const M=[],D=new Map,T=new Map;for(v=b;v--;){const G=p(o,i,v),U=t(G);let B=s.get(U);B?r&&B.p(G,n):(B=a(U,G),B.c()),D.set(U,M[v]=B),U in k&&T.set(U,Math.abs(v-k[U]))}const A=new Set,O=new Set;function X(G){R(G,1),G.m(l,h),s.set(G.key,G),h=G.first,b--}for(;d&&b;){const G=M[b-1],U=e[d-1],B=G.key,x=U.key;G===U?(h=G.first,d--,b--):D.has(x)?!s.has(B)||A.has(B)?X(G):O.has(x)?d--:T.get(B)>T.get(x)?(O.add(B),X(G)):(A.add(x),d--):(c(U,s),d--)}for(;d--;){const G=e[d];D.has(G.key)||c(G,s)}for(;b;)X(M[b-1]);return M}function Iu(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 c in s)c in l||(r[c]=1);for(const c in l)o[c]||(t[c]=l[c],o[c]=1);e[i]=l}else for(const c in s)o[c]=1}for(const s in r)s in t||(t[s]=void 0);return t}function $u(e){return typeof e=="object"&&e!==null?e:{}}function Fl(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(ic).filter(El);e.$$.on_destroy?e.$$.on_destroy.push(...s):Et(s),e.$$.on_mount=[]}),i.forEach(br)}function oe(e,n){const t=e.$$;t.fragment!==null&&(Et(t.on_destroy),t.fragment&&t.fragment.d(n),t.on_destroy=t.fragment=null,t.ctx=[])}function Mu(e,n){e.$$.dirty[0]===-1&&(To.push(e),pc(),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31}function Tt(e,n,t,r,o,i,s,l=[-1]){const c=Uo;Mo(e);const a=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||(c?c.$$.context:[])),callbacks:ha(),dirty:l,skip_bound:!1,root:n.target||c.$$.root};s&&s(a.root);let h=!1;if(a.ctx=t?t(e,n.props||{},(p,d,...b)=>{const v=b.length?b[0]:d;return a.ctx&&o(a.ctx[p],a.ctx[p]=v)&&(!a.skip_bound&&a.bound[p]&&a.bound[p](v),h&&Mu(e,p)),d}):[],a.update(),h=!0,Et(a.before_update),a.fragment=r?r(a.ctx):!1,n.target){if(n.hydrate){const p=Cu(n.target);a.fragment&&a.fragment.l(p),p.forEach(F)}else a.fragment&&a.fragment.c();n.intro&&R(e.$$.fragment),re(e,n.target,n.anchor,n.customElement),dc()}Mo(c)}class Ot{$destroy(){oe(this,1),this.$destroy=xe}$on(n,t){if(!El(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&&!gu(n)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}var Nu="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",vc="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",_c="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",Ru="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",Hu="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",Vu="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",No="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",Fu="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",ju="M9,1V7H5L12,14L19,7H15V1H9M5,16V18H19V16H5M5,20V22H19V20H5Z",Uu="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",Bu="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",Wu="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",zu="M14,19H18V5H14M6,19H10V5H6V19Z",Yu="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",Gu="M8,5.14V19.14L19,12.14L8,5.14Z",yc="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",qu="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",Xu="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",Ku="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",Zu="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",Ju="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",wc="M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M7,6H17V19H7V6M9,8V17H11V8H9M13,8V17H15V8H13Z",Qu="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",ef="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 o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},rs(e,n)};function Cn(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 tf(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{a(r.next(h))}catch(p){s(p)}}function c(h){try{a(r.throw(h))}catch(p){s(p)}}function a(h){h.done?i(h.value):o(h.value).then(l,c)}a((r=r.apply(e,n||[])).next())})}function kc(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(a){return function(h){return c([a,h])}}function c(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(t=0)),t;)try{if(r=1,o&&(i=a[0]&2?o.return:a[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;switch(o=0,i&&(a=[a[0]&2,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,o=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){t.label=a[1];break}if(a[0]===6&&t.label<i[1]){t.label=i[1],i=a;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(a);break}i[2]&&t.ops.pop(),t.trys.pop();continue}a=n.call(e,t)}catch(h){a=[6,h],o=0}finally{r=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[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 nf(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(b){return new Promise(function(v,k){i.push([d,b,v,k])>1||l(d,b)})})}function l(d,b){try{c(r[d](b))}catch(v){p(i[0][3],v)}}function c(d){d.value instanceof Yr?Promise.resolve(d.value.v).then(a,h):p(i[0][2],d)}function a(d){l("next",d)}function h(d){l("throw",d)}function p(d,b){d(b),i.shift(),i.length&&l(i[0][0],i[0][1])}}function rf(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,c){s=e[i](s),o(l,c,s.done,s.value)})}}function o(i,s,l,c){Promise.resolve(c).then(function(a){i({value:a,done:l})},s)}}function De(e){return typeof e=="function"}function Sc(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=Sc(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
|
19
|
+
var hu=Object.defineProperty;var pu=(e,n,t)=>n in e?hu(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var To=(e,n,t)=>(pu(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 o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function t(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=t(o);fetch(o.href,i)}})();function xe(){}const du=e=>e;function mu(e,n){for(const t in n)e[t]=n[t];return e}function ic(e){return e()}function ha(){return Object.create(null)}function St(e){e.forEach(ic)}function El(e){return typeof e=="function"}function _t(e,n){return e!=e?n==n:e!==n||e&&typeof e=="object"||typeof e=="function"}function gu(e){return Object.keys(e).length===0}function bu(e,...n){if(e==null)return xe;const t=e.subscribe(...n);return t.unsubscribe?()=>t.unsubscribe():t}function k(e,n,t){e.$$.on_destroy.push(bu(n,t))}function N(e,n,t){return e.set(t),n}function vu(e){return e&&El(e.destroy)?e.destroy:xe}const lc=typeof window<"u";let _u=lc?()=>window.performance.now():()=>Date.now(),ps=lc?e=>requestAnimationFrame(e):xe;const qr=new Set;function sc(e){qr.forEach(n=>{n.c(e)||(qr.delete(n),n.f())}),qr.size!==0&&ps(sc)}function yu(e){let n;return qr.size===0&&ps(sc),{promise:new Promise(t=>{qr.add(n={c:e,f:t})}),abort(){qr.delete(n)}}}function u(e,n){e.appendChild(n)}function ac(e){if(!e)return document;const n=e.getRootNode?e.getRootNode():e.ownerDocument;return n&&n.host?n:e.ownerDocument}function wu(e){const n=g("style");return ku(ac(e),n),n.sheet}function ku(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 g(e){return document.createElement(e)}function Ql(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function ht(e){return document.createTextNode(e)}function w(){return ht(" ")}function Xn(){return ht("")}function L(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 Su(e,n,t){const r=new Set;for(let o=0;o<e.length;o+=1)e[o].checked&&r.add(e[o].__value);return t||r.delete(n),Array.from(r)}function hl(e){return e===""?null:+e}function Cu(e){return Array.from(e.childNodes)}function It(e,n){n=""+n,e.wholeText!==n&&(e.data=n)}function ft(e,n){e.value=n??""}function ve(e,n,t,r){t===null?e.style.removeProperty(n):e.style.setProperty(n,t,r?"important":"")}function Zr(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 Eu(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 cc(e,n,{bubbles:t=!1,cancelable:r=!1}={}){const o=document.createEvent("CustomEvent");return o.initCustomEvent(e,t,r,n),o}class uc{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=g(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 Lu(e){let n=5381,t=e.length;for(;t--;)n=(n<<5)-n^e.charCodeAt(t);return n>>>0}function xu(e,n){const t={stylesheet:wu(n),rules:{}};return pl.set(e,t),t}function Pu(e,n,t,r,o,i,s,l=0){const a=16.666/r;let c=`{
|
20
|
+
`;for(let $=0;$<=1;$+=a){const D=n+(t-n)*i($);c+=$*100+`%{${s(D,1-D)}}
|
21
|
+
`}const h=c+`100% {${s(t,1-t)}}
|
22
|
+
}`,p=`__svelte_${Lu(h)}_${l}`,d=ac(e),{stylesheet:b,rules:y}=pl.get(d)||xu(d,e);y[p]||(y[p]=!0,b.insertRule(`@keyframes ${p} ${h}`,b.cssRules.length));const S=e.style.animation||"";return e.style.animation=`${S?`${S}, `:""}${p} ${r}ms linear ${o}ms 1 both`,dl+=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(", "),dl-=o,dl||Au())}function Au(){ps(()=>{dl||(pl.forEach(e=>{const{ownerNode:n}=e.stylesheet;n&&F(n)}),pl.clear())})}let Wo;function Ro(e){Wo=e}function ds(){if(!Wo)throw new Error("Function called outside component initialization");return Wo}function Ll(e){ds().$$.on_mount.push(e)}function fc(e){ds().$$.on_destroy.push(e)}function xo(){const e=ds();return(n,t,{cancelable:r=!1}={})=>{const o=e.$$.callbacks[n];if(o){const i=cc(n,t,{cancelable:r});return o.slice().forEach(s=>{s.call(e,i)}),!i.defaultPrevented}return!0}}function zo(e,n){const t=e.$$.callbacks[n.type];t&&t.slice().forEach(r=>r.call(this,n))}const Io=[],pt=[],nl=[],es=[],hc=Promise.resolve();let ts=!1;function pc(){ts||(ts=!0,hc.then(dc))}function Yo(){return pc(),hc}function yr(e){nl.push(e)}function Hl(e){es.push(e)}const Vl=new Set;let Xi=0;function dc(){const e=Wo;do{for(;Xi<Io.length;){const n=Io[Xi];Xi++,Ro(n),Du(n.$$)}for(Ro(null),Io.length=0,Xi=0;pt.length;)pt.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(Io.length);for(;es.length;)es.pop()();ts=!1,Vl.clear(),Ro(e)}function Du(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(yr)}}let Oo;function Tu(){return Oo||(Oo=Promise.resolve(),Oo.then(()=>{Oo=null})),Oo}function da(e,n,t){e.dispatchEvent(cc(`${n?"intro":"outro"}${t}`))}const rl=new Set;let dr;function bt(){dr={r:0,c:[],p:dr}}function vt(){dr.r||St(dr.c),dr=dr.p}function R(e,n){e&&e.i&&(rl.delete(e),e.i(n))}function Y(e,n,t,r){if(e&&e.o){if(rl.has(e))return;rl.add(e),dr.c.push(()=>{rl.delete(e),r&&(t&&e.d(1),r())}),e.o(n)}else r&&r()}const Ou={duration:0};function mc(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:b=300,easing:y=du,tick:S=xe,css:$}=o||Ou;$&&(s=Pu(e,0,1,b,d,y,$,a++)),S(0,1);const D=_u()+d,T=D+b;l&&l.abort(),i=!0,yr(()=>da(e,!0,"start")),l=yu(P=>{if(i){if(P>=T)return S(1,0),da(e,!0,"end"),c(),i=!1;if(P>=D){const I=y((P-D)/b);S(I,1-I)}}return i})}let p=!1;return{start(){p||(p=!0,pa(e),El(o)?(o=o(r),Tu().then(h)):h())},invalidate(){p=!1},end(){i&&(c(),i=!1)}}}const gc=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function xl(e,n){e.d(1),n.delete(e.key)}function bc(e,n){Y(e,1,1,()=>{n.delete(e.key)})}function Po(e,n,t,r,o,i,s,l,a,c,h,p){let d=e.length,b=i.length,y=d;const S={};for(;y--;)S[e[y].key]=y;const $=[],D=new Map,T=new Map;for(y=b;y--;){const G=p(o,i,y),U=t(G);let B=s.get(U);B?r&&B.p(G,n):(B=c(U,G),B.c()),D.set(U,$[y]=B),U in S&&T.set(U,Math.abs(y-S[U]))}const P=new Set,I=new Set;function X(G){R(G,1),G.m(l,h),s.set(G.key,G),h=G.first,b--}for(;d&&b;){const G=$[b-1],U=e[d-1],B=G.key,x=U.key;G===U?(h=G.first,d--,b--):D.has(x)?!s.has(B)||P.has(B)?X(G):I.has(x)?d--:T.get(B)>T.get(x)?(I.add(B),X(G)):(P.add(x),d--):(a(U,s),d--)}for(;d--;){const G=e[d];D.has(G.key)||a(G,s)}for(;b;)X($[b-1]);return $}function Iu(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 $u(e){return typeof e=="object"&&e!==null?e:{}}function Fl(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||yr(()=>{const s=e.$$.on_mount.map(ic).filter(El);e.$$.on_destroy?e.$$.on_destroy.push(...s):St(s),e.$$.on_mount=[]}),i.forEach(yr)}function oe(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 Mu(e,n){e.$$.dirty[0]===-1&&(Io.push(e),pc(),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31}function $t(e,n,t,r,o,i,s,l=[-1]){const a=Wo;Ro(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,...b)=>{const y=b.length?b[0]:d;return c.ctx&&o(c.ctx[p],c.ctx[p]=y)&&(!c.skip_bound&&c.bound[p]&&c.bound[p](y),h&&Mu(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=Cu(n.target);c.fragment&&c.fragment.l(p),p.forEach(F)}else c.fragment&&c.fragment.c();n.intro&&R(e.$$.fragment),re(e,n.target,n.anchor,n.customElement),dc()}Ro(a)}class Mt{$destroy(){oe(this,1),this.$destroy=xe}$on(n,t){if(!El(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&&!gu(n)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}var Nu="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",vc="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",_c="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",Ru="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",Hu="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",Vu="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",Ho="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",Fu="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",ju="M9,1V7H5L12,14L19,7H15V1H9M5,16V18H19V16H5M5,20V22H19V20H5Z",Uu="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",zt="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",Bu="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",Wu="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",zu="M14,19H18V5H14M6,19H10V5H6V19Z",Yu="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",Gu="M8,5.14V19.14L19,12.14L8,5.14Z",yc="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",qu="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",Xu="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",Ku="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",Zu="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",Ju="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",wc="M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M7,6H17V19H7V6M9,8V17H11V8H9M13,8V17H15V8H13Z",Qu="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",ef="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 o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},rs(e,n)};function En(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 tf(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 kc(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 Jr(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 Gn(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 wr(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 Xr(e){return this instanceof Xr?(this.v=e,this):new Xr(e)}function nf(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(b){return new Promise(function(y,S){i.push([d,b,y,S])>1||l(d,b)})})}function l(d,b){try{a(r[d](b))}catch(y){p(i[0][3],y)}}function a(d){d.value instanceof Xr?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,b){d(b),i.shift(),i.length&&l(i[0][0],i[0][1])}}function rf(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 Jr=="function"?Jr(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 Te(e){return typeof e=="function"}function Sc(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=Sc(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
|
23
23
|
`+t.map(function(r,o){return o+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 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),c=l.next();!c.done;c=l.next()){var a=c.value;a.remove(this)}}catch(k){n={error:k}}finally{try{c&&!c.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(k){i=k instanceof jl?k.errors:[k]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var d=Xr(p),b=d.next();!b.done;b=d.next()){var v=b.value;try{ma(v)}catch(k){i=i??[],k instanceof jl?i=vr(vr([],zn(i)),zn(k.errors)):i.push(k)}}}catch(k){r={error:k}}finally{try{b&&!b.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}if(i)throw new jl(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)&&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}(),Cc=Jo.EMPTY;function Ec(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},os={setTimeout:function(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var o=os.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=os.delegate;return((n==null?void 0:n.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Lc(e){os.setTimeout(function(){throw e})}function is(){}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){Cn(n,e);function n(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,Ec(t)&&t.add(r)):r.destination=af,r}return n.create=function(t,r,o){return new ls(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),of=Function.prototype.bind;function Ul(e,n){return of.call(e,n)}var lf=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}(),ls=function(e){Cn(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&&Ul(t.next,l),error:t.error&&Ul(t.error,l),complete:t.complete&&Ul(t.complete,l)}):s=t}return i.destination=new lf(s),i}return n}(gs);function Zi(e){Lc(e)}function sf(e){throw e}var af={closed:!0,next:is,error:sf,complete:is},bs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Qo(e){return e}function cf(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return xc(e)}function xc(e){return e.length===0?Qo:e.length===1?e[0]:function(t){return e.reduce(function(r,o){return o(r)},t)}}var wt=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=ff(n)?n:new ls(n,t,r);return ol(function(){var s=o,l=s.operator,c=s.source;i.add(l?l.call(i,c):c?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 ls({next:function(l){try{n(l)}catch(c){i(c),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 xc(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 uf(e){return e&&De(e.next)&&De(e.error)&&De(e.complete)}function ff(e){return e&&e instanceof gs||uf(e)&&Ec(e)}function hf(e){return De(e==null?void 0:e.lift)}function un(e){return function(n){if(hf(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 pf(e,n,t,r,o)}var pf=function(e){Cn(n,e);function n(t,r,o,i,s,l){var c=e.call(this,t)||this;return c.onFinalize=s,c.shouldUnsubscribe=l,c._next=r?function(a){try{r(a)}catch(h){t.error(h)}}:e.prototype._next,c._error=i?function(a){try{i(a)}catch(h){t.error(h)}finally{this.unsubscribe()}}:e.prototype._error,c._complete=o?function(){try{o()}catch(a){t.error(a)}finally{this.unsubscribe()}}:e.prototype._complete,c}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),df=Sc(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),xo=function(e){Cn(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 df},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 c=l.value;c.next(t)}}catch(a){o={error:a}}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?Cc:(this.currentObservers=null,l.push(t),new Jo(function(){r.currentObservers=null,ml(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 wt;return t.source=this,t},n.create=function(t,r){return new ba(t,r)},n}(wt),ba=function(e){Cn(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:Cc},n}(xo),mf=function(e){Cn(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},gf=function(e){Cn(n,e);function n(t,r){return e.call(this)||this}return n.prototype.schedule=function(t,r){return this},n}(Jo),gl={setInterval:function(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var o=gl.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=gl.delegate;return((n==null?void 0:n.clearInterval)||clearInterval)(e)},delegate:void 0},bf=function(e){Cn(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),gl.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&&gl.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,ml(i,this),r!=null&&(this.id=this.recycleAsyncId(o,r,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},n}(gf),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}(),vf=function(e){Cn(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),Al=new vf(bf),_f=Al,yf=new wt(function(e){return e.complete()});function Pc(e){return e&&De(e.schedule)}function vs(e){return e[e.length-1]}function wf(e){return De(vs(e))?e.pop():void 0}function Pl(e){return Pc(vs(e))?e.pop():void 0}function kf(e,n){return typeof vs(e)=="number"?e.pop():n}var _s=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Dc(e){return De(e==null?void 0:e.then)}function Tc(e){return De(e[bs])}function Oc(e){return Symbol.asyncIterator&&De(e==null?void 0:e[Symbol.asyncIterator])}function Ic(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 Sf(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var $c=Sf();function Mc(e){return De(e==null?void 0:e[$c])}function Nc(e){return nf(this,arguments,function(){var t,r,o,i;return kc(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 Rc(e){return De(e==null?void 0:e.getReader)}function En(e){if(e instanceof wt)return e;if(e!=null){if(Tc(e))return Cf(e);if(_s(e))return Ef(e);if(Dc(e))return Lf(e);if(Oc(e))return Hc(e);if(Mc(e))return xf(e);if(Rc(e))return Af(e)}throw Ic(e)}function Cf(e){return new wt(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 Ef(e){return new wt(function(n){for(var t=0;t<e.length&&!n.closed;t++)n.next(e[t]);n.complete()})}function Lf(e){return new wt(function(n){e.then(function(t){n.closed||(n.next(t),n.complete())},function(t){return n.error(t)}).then(null,Lc)})}function xf(e){return new wt(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 Hc(e){return new wt(function(n){Pf(e,n).catch(function(t){return n.error(t)})})}function Af(e){return Hc(Nc(e))}function Pf(e,n){var t,r,o,i;return tf(this,void 0,void 0,function(){var s,l;return kc(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),t=rf(e),c.label=1;case 1:return[4,t.next()];case 2:if(r=c.sent(),!!r.done)return[3,4];if(s=r.value,n.next(s),n.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return l=c.sent(),o={error:l},[3,11];case 6:return c.trys.push([6,,9,10]),r&&!r.done&&(i=t.return)?[4,i.call(t)]:[3,8];case 7:c.sent(),c.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 wn(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 Vc(e,n){return n===void 0&&(n=0),un(function(t,r){t.subscribe(Gt(r,function(o){return wn(r,e,function(){return r.next(o)},n)},function(){return wn(r,e,function(){return r.complete()},n)},function(o){return wn(r,e,function(){return r.error(o)},n)}))})}function Fc(e,n){return n===void 0&&(n=0),un(function(t,r){r.add(e.schedule(function(){return t.subscribe(r)},n))})}function Df(e,n){return En(e).pipe(Fc(n),Vc(n))}function Tf(e,n){return En(e).pipe(Fc(n),Vc(n))}function Of(e,n){return new wt(function(t){var r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}function If(e,n){return new wt(function(t){var r;return wn(t,n,function(){r=e[$c](),wn(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 jc(e,n){if(!e)throw new Error("Iterable cannot be null");return new wt(function(t){wn(t,n,function(){var r=e[Symbol.asyncIterator]();wn(t,n,function(){r.next().then(function(o){o.done?t.complete():t.next(o.value)})},0,!0)})})}function $f(e,n){return jc(Nc(e),n)}function Mf(e,n){if(e!=null){if(Tc(e))return Df(e,n);if(_s(e))return Of(e,n);if(Dc(e))return Tf(e,n);if(Oc(e))return jc(e,n);if(Mc(e))return If(e,n);if(Rc(e))return $f(e,n)}throw Ic(e)}function Dl(e,n){return n?Mf(e,n):En(e)}function Nf(e){return e instanceof Date&&!isNaN(e)}function Tl(e,n){return un(function(t,r){var o=0;t.subscribe(Gt(r,function(i){r.next(e.call(n,i,o++))}))})}var Rf=Array.isArray;function Hf(e,n){return Rf(n)?e.apply(void 0,vr([],zn(n))):e(n)}function Uc(e){return Tl(function(n){return Hf(e,n)})}var Vf=Array.isArray,Ff=Object.getPrototypeOf,jf=Object.prototype,Uf=Object.keys;function Bf(e){if(e.length===1){var n=e[0];if(Vf(n))return{args:n,keys:null};if(Wf(n)){var t=Uf(n);return{args:t.map(function(r){return n[r]}),keys:t}}}return{args:e,keys:null}}function Wf(e){return e&&typeof e=="object"&&Ff(e)===jf}function zf(e,n){return e.reduce(function(t,r,o){return t[r]=n[o],t},{})}function Yf(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=Pl(e),r=wf(e),o=Bf(e),i=o.args,s=o.keys;if(i.length===0)return Dl([],t);var l=new wt(Gf(i,t,s?function(c){return zf(s,c)}:Qo));return r?l.pipe(Uc(r)):l}function Gf(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,c=function(h){_a(n,function(){var p=Dl(e[h],n),d=!1;p.subscribe(Gt(r,function(b){i[h]=b,d||(d=!0,l--),l||r.next(t(i.slice()))},function(){--s||r.complete()}))},r)},a=0;a<o;a++)c(a)},r)}}function _a(e,n,t){e?wn(t,e,n):n()}function qf(e,n,t,r,o,i,s,l){var c=[],a=0,h=0,p=!1,d=function(){p&&!c.length&&!a&&n.complete()},b=function(k){return a<r?v(k):c.push(k)},v=function(k){i&&n.next(k),a++;var M=!1;En(t(k,h++)).subscribe(Gt(n,function(D){o==null||o(D),i?b(D):n.next(D)},function(){M=!0},void 0,function(){if(M)try{a--;for(var D=function(){var T=c.shift();s?wn(n,s,function(){return v(T)}):v(T)};c.length&&a<r;)D();d()}catch(T){n.error(T)}}))};return e.subscribe(Gt(n,b,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 Tl(function(i,s){return n(r,i,o,s)})(En(e(r,o)))},t):(typeof n=="number"&&(t=n),un(function(r,o){return qf(r,o,e,t)}))}function Bc(e){return e===void 0&&(e=1/0),ys(Qo,e)}function Xf(){return Bc(1)}function ya(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Xf()(Dl(e,Pl(e)))}var Kf=["addListener","removeListener"],Zf=["addEventListener","removeEventListener"],Jf=["on","off"];function Fn(e,n,t,r){if(De(t)&&(r=t,t=void 0),r)return Fn(e,n,t).pipe(Uc(r));var o=zn(th(e)?Zf.map(function(l){return function(c){return e[l](n,c,t)}}):Qf(e)?Kf.map(wa(e,n)):eh(e)?Jf.map(wa(e,n)):[],2),i=o[0],s=o[1];if(!i&&_s(e))return ys(function(l){return Fn(l,n,t)})(En(e));if(!i)throw new TypeError("Invalid event target");return new wt(function(l){var c=function(){for(var a=[],h=0;h<arguments.length;h++)a[h]=arguments[h];return l.next(1<a.length?a:a[0])};return i(c),function(){return s(c)}})}function wa(e,n){return function(t){return function(r){return e[t](n,r)}}}function Qf(e){return De(e.addListener)&&De(e.removeListener)}function eh(e){return De(e.on)&&De(e.off)}function th(e){return De(e.addEventListener)&&De(e.removeEventListener)}function Wc(e,n,t){e===void 0&&(e=0),t===void 0&&(t=_f);var r=-1;return n!=null&&(Pc(n)?t=n:r=n),new wt(function(o){var i=Nf(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 nh(e,n){return e===void 0&&(e=0),n===void 0&&(n=Al),e<0&&(e=0),Wc(e,e,n)}function rh(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=Pl(e),r=kf(e,1/0),o=e;return o.length?o.length===1?En(o[0]):Bc(r)(Dl(o,t)):yf}var zo=new wt(is);function Ol(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=Al),un(function(t,r){var o=null,i=null,s=null,l=function(){if(o){o.unsubscribe(),o=null;var a=i;i=null,r.next(a)}};function c(){var a=s+e,h=n.now();if(h<a){o=this.schedule(void 0,a-h),r.add(o);return}l()}t.subscribe(Gt(r,function(a){i=a,s=n.now(),o||(o=n.schedule(c,e),r.add(o))},function(){l(),r.complete()},void 0,function(){i=o=null}))})}function oh(e){return Ol(function(n,t){return e<=t})}function ih(){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(c){o==null||o.unsubscribe();var a=0,h=i++;En(e(c,h)).subscribe(o=Gt(r,function(p){return r.next(n?n(c,p,h,a++):p)},function(){o=null,l()}))},function(){s=!0,l()}))})}function Nn(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(c){var a;(a=r.next)===null||a===void 0||a.call(r,c),i.next(c)},function(){var c;l=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},function(c){var a;l=!1,(a=r.error)===null||a===void 0||a.call(r,c),i.error(c)},function(){var c,a;l&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(a=r.finalize)===null||a===void 0||a.call(r)}))}):Qo}var zc={leading:!0,trailing:!1};function lh(e,n){return n===void 0&&(n=zc),un(function(t,r){var o=n.leading,i=n.trailing,s=!1,l=null,c=null,a=!1,h=function(){c==null||c.unsubscribe(),c=null,i&&(b(),a&&r.complete())},p=function(){c=null,a&&r.complete()},d=function(v){return c=En(e(v)).subscribe(Gt(r,h,p))},b=function(){if(s){s=!1;var v=l;l=null,r.next(v),!a&&d(v)}};t.subscribe(Gt(r,function(v){s=!0,l=v,!(c&&!c.closed)&&(o?b():d(v))},function(){a=!0,!(i&&s&&c&&!c.closed)&&r.complete()}))})}function sh(e,n,t){n===void 0&&(n=Al),t===void 0&&(t=zc);var r=Wc(e,n);return lh(function(){return r},t)}function ah(e){const n=e-1;return n*n*n+1}function ch(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}function Yc(e,{delay:n=0,duration:t=400,easing:r=ah,x:o=0,y:i=0,opacity:s=0}={}){const l=getComputedStyle(e),c=+l.opacity,a=l.transform==="none"?"":l.transform,h=c*(1-s);return{delay:n,duration:t,easing:r,css:(p,d)=>`
|
25
|
-
transform: ${
|
26
|
-
opacity: ${
|
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 ei=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=Jr(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(Te(h))try{h()}catch(S){i=S instanceof jl?S.errors:[S]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var d=Jr(p),b=d.next();!b.done;b=d.next()){var y=b.value;try{ma(y)}catch(S){i=i??[],S instanceof jl?i=wr(wr([],Gn(i)),Gn(S.errors)):i.push(S)}}}catch(S){r={error:S}}finally{try{b&&!b.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}if(i)throw new jl(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)&&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}(),Cc=ei.EMPTY;function Ec(e){return e instanceof ei||e&&"closed"in e&&Te(e.remove)&&Te(e.add)&&Te(e.unsubscribe)}function ma(e){Te(e)?e():e.unsubscribe()}var ms={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},os={setTimeout:function(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var o=os.delegate;return o!=null&&o.setTimeout?o.setTimeout.apply(o,wr([e,n],Gn(t))):setTimeout.apply(void 0,wr([e,n],Gn(t)))},clearTimeout:function(e){var n=os.delegate;return((n==null?void 0:n.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Lc(e){os.setTimeout(function(){throw e})}function is(){}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){En(n,e);function n(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,Ec(t)&&t.add(r)):r.destination=af,r}return n.create=function(t,r,o){return new ls(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}(ei),of=Function.prototype.bind;function Ul(e,n){return of.call(e,n)}var lf=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}(),ls=function(e){En(n,e);function n(t,r,o){var i=e.call(this)||this,s;if(Te(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&&Ul(t.next,l),error:t.error&&Ul(t.error,l),complete:t.complete&&Ul(t.complete,l)}):s=t}return i.destination=new lf(s),i}return n}(gs);function Zi(e){Lc(e)}function sf(e){throw e}var af={closed:!0,next:is,error:sf,complete:is},bs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ti(e){return e}function cf(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return xc(e)}function xc(e){return e.length===0?ti:e.length===1?e[0]:function(t){return e.reduce(function(r,o){return o(r)},t)}}var kt=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=ff(n)?n:new ls(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 ls({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 xc(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 uf(e){return e&&Te(e.next)&&Te(e.error)&&Te(e.complete)}function ff(e){return e&&e instanceof gs||uf(e)&&Ec(e)}function hf(e){return Te(e==null?void 0:e.lift)}function hn(e){return function(n){if(hf(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 Kt(e,n,t,r,o){return new pf(e,n,t,r,o)}var pf=function(e){En(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),df=Sc(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ao=function(e){En(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 df},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=Jr(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?Cc:(this.currentObservers=null,l.push(t),new ei(function(){r.currentObservers=null,ml(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 kt;return t.source=this,t},n.create=function(t,r){return new ba(t,r)},n}(kt),ba=function(e){En(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:Cc},n}(Ao),mf=function(e){En(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}(Ao),Pc={now:function(){return(Pc.delegate||Date).now()},delegate:void 0},gf=function(e){En(n,e);function n(t,r){return e.call(this)||this}return n.prototype.schedule=function(t,r){return this},n}(ei),gl={setInterval:function(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var o=gl.delegate;return o!=null&&o.setInterval?o.setInterval.apply(o,wr([e,n],Gn(t))):setInterval.apply(void 0,wr([e,n],Gn(t)))},clearInterval:function(e){var n=gl.delegate;return((n==null?void 0:n.clearInterval)||clearInterval)(e)},delegate:void 0},bf=function(e){En(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),gl.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&&gl.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,ml(i,this),r!=null&&(this.id=this.recycleAsyncId(o,r,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},n}(gf),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=Pc.now,e}(),vf=function(e){En(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),Pl=new vf(bf),_f=Pl,yf=new kt(function(e){return e.complete()});function Ac(e){return e&&Te(e.schedule)}function vs(e){return e[e.length-1]}function wf(e){return Te(vs(e))?e.pop():void 0}function Al(e){return Ac(vs(e))?e.pop():void 0}function kf(e,n){return typeof vs(e)=="number"?e.pop():n}var _s=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Dc(e){return Te(e==null?void 0:e.then)}function Tc(e){return Te(e[bs])}function Oc(e){return Symbol.asyncIterator&&Te(e==null?void 0:e[Symbol.asyncIterator])}function Ic(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 Sf(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var $c=Sf();function Mc(e){return Te(e==null?void 0:e[$c])}function Nc(e){return nf(this,arguments,function(){var t,r,o,i;return kc(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,Xr(t.read())];case 3:return r=s.sent(),o=r.value,i=r.done,i?[4,Xr(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,Xr(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 Rc(e){return Te(e==null?void 0:e.getReader)}function Ln(e){if(e instanceof kt)return e;if(e!=null){if(Tc(e))return Cf(e);if(_s(e))return Ef(e);if(Dc(e))return Lf(e);if(Oc(e))return Hc(e);if(Mc(e))return xf(e);if(Rc(e))return Pf(e)}throw Ic(e)}function Cf(e){return new kt(function(n){var t=e[bs]();if(Te(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Ef(e){return new kt(function(n){for(var t=0;t<e.length&&!n.closed;t++)n.next(e[t]);n.complete()})}function Lf(e){return new kt(function(n){e.then(function(t){n.closed||(n.next(t),n.complete())},function(t){return n.error(t)}).then(null,Lc)})}function xf(e){return new kt(function(n){var t,r;try{for(var o=Jr(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 Hc(e){return new kt(function(n){Af(e,n).catch(function(t){return n.error(t)})})}function Pf(e){return Hc(Nc(e))}function Af(e,n){var t,r,o,i;return tf(this,void 0,void 0,function(){var s,l;return kc(this,function(a){switch(a.label){case 0:a.trys.push([0,5,6,11]),t=rf(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 kn(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 Vc(e,n){return n===void 0&&(n=0),hn(function(t,r){t.subscribe(Kt(r,function(o){return kn(r,e,function(){return r.next(o)},n)},function(){return kn(r,e,function(){return r.complete()},n)},function(o){return kn(r,e,function(){return r.error(o)},n)}))})}function Fc(e,n){return n===void 0&&(n=0),hn(function(t,r){r.add(e.schedule(function(){return t.subscribe(r)},n))})}function Df(e,n){return Ln(e).pipe(Fc(n),Vc(n))}function Tf(e,n){return Ln(e).pipe(Fc(n),Vc(n))}function Of(e,n){return new kt(function(t){var r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}function If(e,n){return new kt(function(t){var r;return kn(t,n,function(){r=e[$c](),kn(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 Te(r==null?void 0:r.return)&&r.return()}})}function jc(e,n){if(!e)throw new Error("Iterable cannot be null");return new kt(function(t){kn(t,n,function(){var r=e[Symbol.asyncIterator]();kn(t,n,function(){r.next().then(function(o){o.done?t.complete():t.next(o.value)})},0,!0)})})}function $f(e,n){return jc(Nc(e),n)}function Mf(e,n){if(e!=null){if(Tc(e))return Df(e,n);if(_s(e))return Of(e,n);if(Dc(e))return Tf(e,n);if(Oc(e))return jc(e,n);if(Mc(e))return If(e,n);if(Rc(e))return $f(e,n)}throw Ic(e)}function Dl(e,n){return n?Mf(e,n):Ln(e)}function Nf(e){return e instanceof Date&&!isNaN(e)}function Tl(e,n){return hn(function(t,r){var o=0;t.subscribe(Kt(r,function(i){r.next(e.call(n,i,o++))}))})}var Rf=Array.isArray;function Hf(e,n){return Rf(n)?e.apply(void 0,wr([],Gn(n))):e(n)}function Uc(e){return Tl(function(n){return Hf(e,n)})}var Vf=Array.isArray,Ff=Object.getPrototypeOf,jf=Object.prototype,Uf=Object.keys;function Bf(e){if(e.length===1){var n=e[0];if(Vf(n))return{args:n,keys:null};if(Wf(n)){var t=Uf(n);return{args:t.map(function(r){return n[r]}),keys:t}}}return{args:e,keys:null}}function Wf(e){return e&&typeof e=="object"&&Ff(e)===jf}function zf(e,n){return e.reduce(function(t,r,o){return t[r]=n[o],t},{})}function Yf(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=Al(e),r=wf(e),o=Bf(e),i=o.args,s=o.keys;if(i.length===0)return Dl([],t);var l=new kt(Gf(i,t,s?function(a){return zf(s,a)}:ti));return r?l.pipe(Uc(r)):l}function Gf(e,n,t){return t===void 0&&(t=ti),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=Dl(e[h],n),d=!1;p.subscribe(Kt(r,function(b){i[h]=b,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?kn(t,e,n):n()}function qf(e,n,t,r,o,i,s,l){var a=[],c=0,h=0,p=!1,d=function(){p&&!a.length&&!c&&n.complete()},b=function(S){return c<r?y(S):a.push(S)},y=function(S){i&&n.next(S),c++;var $=!1;Ln(t(S,h++)).subscribe(Kt(n,function(D){o==null||o(D),i?b(D):n.next(D)},function(){$=!0},void 0,function(){if($)try{c--;for(var D=function(){var T=a.shift();s?kn(n,s,function(){return y(T)}):y(T)};a.length&&c<r;)D();d()}catch(T){n.error(T)}}))};return e.subscribe(Kt(n,b,function(){p=!0,d()})),function(){l==null||l()}}function ys(e,n,t){return t===void 0&&(t=1/0),Te(n)?ys(function(r,o){return Tl(function(i,s){return n(r,i,o,s)})(Ln(e(r,o)))},t):(typeof n=="number"&&(t=n),hn(function(r,o){return qf(r,o,e,t)}))}function Bc(e){return e===void 0&&(e=1/0),ys(ti,e)}function Xf(){return Bc(1)}function ya(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Xf()(Dl(e,Al(e)))}var Kf=["addListener","removeListener"],Zf=["addEventListener","removeEventListener"],Jf=["on","off"];function Un(e,n,t,r){if(Te(t)&&(r=t,t=void 0),r)return Un(e,n,t).pipe(Uc(r));var o=Gn(th(e)?Zf.map(function(l){return function(a){return e[l](n,a,t)}}):Qf(e)?Kf.map(wa(e,n)):eh(e)?Jf.map(wa(e,n)):[],2),i=o[0],s=o[1];if(!i&&_s(e))return ys(function(l){return Un(l,n,t)})(Ln(e));if(!i)throw new TypeError("Invalid event target");return new kt(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 Qf(e){return Te(e.addListener)&&Te(e.removeListener)}function eh(e){return Te(e.on)&&Te(e.off)}function th(e){return Te(e.addEventListener)&&Te(e.removeEventListener)}function Wc(e,n,t){e===void 0&&(e=0),t===void 0&&(t=_f);var r=-1;return n!=null&&(Ac(n)?t=n:r=n),new kt(function(o){var i=Nf(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 nh(e,n){return e===void 0&&(e=0),n===void 0&&(n=Pl),e<0&&(e=0),Wc(e,e,n)}function rh(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=Al(e),r=kf(e,1/0),o=e;return o.length?o.length===1?Ln(o[0]):Bc(r)(Dl(o,t)):yf}var Go=new kt(is);function Ol(e,n){return hn(function(t,r){var o=0;t.subscribe(Kt(r,function(i){return e.call(n,i,o++)&&r.next(i)}))})}function ws(e,n){return n===void 0&&(n=Pl),hn(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(Kt(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 oh(e){return Ol(function(n,t){return e<=t})}function ih(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=Al(e);return hn(function(r,o){(t?ya(e,r,t):ya(e,r)).subscribe(o)})}function qo(e,n){return hn(function(t,r){var o=null,i=0,s=!1,l=function(){return s&&!o&&r.complete()};t.subscribe(Kt(r,function(a){o==null||o.unsubscribe();var c=0,h=i++;Ln(e(a,h)).subscribe(o=Kt(r,function(p){return r.next(n?n(a,p,h,c++):p)},function(){o=null,l()}))},function(){s=!0,l()}))})}function Hn(e,n,t){var r=Te(e)||n||t?{next:e,error:n,complete:t}:e;return r?hn(function(o,i){var s;(s=r.subscribe)===null||s===void 0||s.call(r);var l=!0;o.subscribe(Kt(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)}))}):ti}var zc={leading:!0,trailing:!1};function lh(e,n){return n===void 0&&(n=zc),hn(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&&(b(),c&&r.complete())},p=function(){a=null,c&&r.complete()},d=function(y){return a=Ln(e(y)).subscribe(Kt(r,h,p))},b=function(){if(s){s=!1;var y=l;l=null,r.next(y),!c&&d(y)}};t.subscribe(Kt(r,function(y){s=!0,l=y,!(a&&!a.closed)&&(o?b():d(y))},function(){c=!0,!(i&&s&&a&&!a.closed)&&r.complete()}))})}function sh(e,n,t){n===void 0&&(n=Pl),t===void 0&&(t=zc);var r=Wc(e,n);return lh(function(){return r},t)}function ah(e){const n=e-1;return n*n*n+1}function ch(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}function Yc(e,{delay:n=0,duration:t=400,easing:r=ah,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)*o}px, ${(1-p)*i}px);
|
26
|
+
opacity: ${a-h*d}`}}var Gt=(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))(Gt||{}),Bn=(e=>(e.OFF="Off",e.NOTO="Noto Serif JP",e.KLEE="Klee One",e.SHIPPORI="Shippori Mincho",e))(Bn||{}),Yt=(e=>(e.SOCKET="socket",e.PASTE="paste",e.EXTERNAL="external",e.EDIT="edit",e.UNDO="undo",e.RESETCHECKBOXES="resetcheckboxes",e.TL="tl",e))(Yt||{});const Br=[];function ks(e,n=xe){let t;const r=new Set;function o(l){if(_t(e,l)&&(e=l,t)){const a=!Br.length;for(const c of r)c[1](),Br.push(c,e);if(a){for(let c=0;c<Br.length;c+=2)Br[c][0](Br[c+1]);Br.length=0}}}function i(l){o(l(e))}function s(l,a=xe){const c=[l,a];return r.add(c),r.size===1&&(t=n(o)||xe),l(e),()=>{r.delete(c),r.size===0&&(t(),t=null)}}return{set:o,update:i,subscribe:s}}function uh(e){return e.set=e.next,e}function Lr(e){return uh(new mf(e))}function Il(e,n){return(t,r,o)=>{const i=fh()(t,r,e),s=Lr(i);let l=!0;return o&&o.subscribe(a=>l=a),s.pipe(oh(1)).subscribe(a=>{l&&window.localStorage.setItem(t,n(a??r))}),s}}function fh(){return(e,n,t)=>{const r=window.localStorage.getItem(e);return r?t(r):n}}function Ee(){return Il(e=>!!+e,e=>e?"1":"0")}function ni(){return Il(e=>+e,e=>`${e}`)}function hh(e){return Il(n=>JSON.parse(n||e),n=>JSON.stringify(n))}function ri(){return hh("[]")}function Kn(){return Il(e=>e,e=>e)}const E={theme$:Gt.BUSINESS,replacements$:[],windowTitle$:"",websocketUrl$:"ws://localhost:55001",secondaryWebsocketUrl$:"",fontSize$:32,onlineFont$:Bn.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$:""},gr=Kn()("bannou-texthooker-theme",E.theme$),sn=ri()("bannou-texthooker-settingPresets",[]),Xt=ri()("bannou-texthooker-replacements",[]),Xo=Kn()("bannou-texthooker-windowTitle",E.windowTitle$),qn=Kn()("bannou-texthooker-websocketUrl",E.websocketUrl$),Sn=Kn()("bannou-texthooker-secondary-websocketUrl",E.secondaryWebsocketUrl$),br=ni()("bannou-texthooker-fontSize",E.fontSize$),Qr=Kn()("bannou-texthooker-onlineFont",E.onlineFont$),vr=ni()("bannou-texthooker-preventLastDuplicate",E.preventLastDuplicate$),mr=ni()("bannou-texthooker-maxLines",E.maxLines$),Yn=ni()("bannou-texthooker-afkTimer",E.afkTimer$),eo=Ee()("bannou-texthooker-adjustTimerOnAfk",E.adjustTimerOnAfk$),Ko=Ee()("bannou-texthooker-enableExternalClipboardMonitor",E.enableExternalClipboardMonitor$),Zo=Ee()("bannou-texthooker-showPresetQuickSwitch",E.showPresetQuickSwitch$),to=Ee()("bannou-texthooker-skipResetConfirmations",E.skipResetConfirmations$),no=Ee()("bannou-texthooker-persistStats",E.persistStats$),ro=Ee()("bannou-texthooker-persistNotes",E.persistNotes$),oo=Ee()("bannou-texthooker-persistLines",E.persistLines$),io=Ee()("bannou-texthooker-persistActionHistory",E.persistActionHistory$),lo=Ee()("bannou-texthooker-enablePaste",E.enablePaste$),so=Ee()("bannou-texthooker-blockCopyOnPage",E.blockCopyOnPage$),ao=Ee()("bannou-texthooker-allowPasteDuringPause",E.allowPasteDuringPause$),co=Ee()("bannou-texthooker-allowNewLineDuringPause",E.allowNewLineDuringPause$),uo=Ee()("bannou-texthooker-autoStartTimerDuringPausePaste",E.autoStartTimerDuringPausePaste$),fo=Ee()("bannou-texthooker-autoStartTimerDuringPause",E.autoStartTimerDuringPause$),kr=Ee()("bannou-texthooker-preventGlobalDuplicate",E.preventGlobalDuplicate$),ho=Ee()("bannou-texthooker-mergeEqualLineStarts",E.mergeEqualLineStarts$),bl=Ee()("bannou-texthooker-filterNonCJKLines",E.mergeEqualLineStarts$),po=Ee()("bannou-texthooker-flashOnMissedLine",E.flashOnMissedLine$),Sr=Ee()("bannou-texthooker-displayVertical",E.displayVertical$),Cr=Ee()("bannou-texthooker-reverseLineOrder",E.reverseLineOrder$),mo=Ee()("bannou-texthooker-preserveWhitespace",E.preserveWhitespace$),go=Ee()("bannou-texthooker-removeAllWhitespace",E.removeAllWhitespace$),bo=Ee()("bannou-texthooker-showTimer",E.showTimer$),vo=Ee()("bannou-texthooker-showSpeed",E.showSpeed$),_o=Ee()("bannou-texthooker-showCharacterCount",E.showCharacterCount$),yo=Ee()("bannou-texthooker-showLineCount",E.showLineCount$),wo=Ee()("bannou-texthooker-blurStats",E.blurStats$),ko=Ee()("bannou-texthooker-enableLineAnimation",E.enableLineAnimation$),So=Ee()("bannou-texthooker-enableAfkBlur",E.enableAfkBlur$),Co=Ee()("bannou-texthooker-enableAfkBlurRestart",E.enableAfkBlurRestart$),Er=Ee()("bannou-texthooker-continuousReconnect",E.continuousReconnect$),Eo=Ee()("bannou-texthooker-showConnectionErrors",E.showConnectionErrors$),Jo=Kn()("bannou-texthooker-customCSS",E.customCSS$),an=ni()("bannou-texthooker-timeValue",0,no),vl=Lr(!1),Qo=Kn()("bannou-texthooker-userNotes","",ro),Ss=Lr(-1),Cs=Lr(-1),Ve=Lr(void 0),_l=Lr(!1),Wn=Kn()("bannou-texthooker-lastSettingPreset",""),Ge=ri()("bannou-texthooker-lineData",[],oo),il=ri()("bannou-texthooker-lineIDs",[]),Vn=ri()("bannou-texthooker-actionHistory",[],io),ss=ks(void 0),qt=Lr(!0),_r=new Ao,$l=new Ao,Ml=new Ao,ll=ks(!1),as=ks([]);async function ph(){if(!to.getValue()){const{canceled:e}=await new Promise(n=>{Ve.next({icon:zt,message:"All Settings and Data will be reset",callback:n})});if(e)return}Wn.next(""),sn.next([]),qt.next(!0),an.next(0),Qo.next(""),Ge.next([]),Vn.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"),gr.next(E.theme$),Xt.next(E.replacements$),Xo.next(E.windowTitle$),qn.next(E.websocketUrl$),Sn.next(E.secondaryWebsocketUrl$),br.next(E.fontSize$),Qr.next(E.onlineFont$),vr.next(E.preventLastDuplicate$),Yn.next(E.afkTimer$),eo.next(E.adjustTimerOnAfk$),Ko.next(E.enableExternalClipboardMonitor$),Zo.next(E.showPresetQuickSwitch$),to.next(E.skipResetConfirmations$),no.next(E.persistStats$),ro.next(E.persistNotes$),oo.next(E.persistLines$),io.next(E.persistActionHistory$),lo.next(E.enablePaste$),so.next(E.blockCopyOnPage$),ao.next(E.allowPasteDuringPause$),co.next(E.allowNewLineDuringPause$),uo.next(E.autoStartTimerDuringPausePaste$),fo.next(E.autoStartTimerDuringPause$),kr.next(E.preventGlobalDuplicate$),ho.next(E.mergeEqualLineStarts$),bl.next(E.filterNonCJKLines),po.next(E.flashOnMissedLine$),Sr.next(E.displayVertical$),Cr.next(E.reverseLineOrder$),mo.next(E.preserveWhitespace$),go.next(E.removeAllWhitespace$),bo.next(E.showTimer$),vo.next(E.showSpeed$),_o.next(E.showCharacterCount$),yo.next(E.showLineCount$),wo.next(E.blurStats$),ko.next(E.enableLineAnimation$),So.next(E.enableAfkBlur$),Co.next(E.enableAfkBlurRestart$),Er.next(E.continuousReconnect$),Eo.next(E.showConnectionErrors$),Jo.next(E.customCSS$)}function Ot(){}function Fn(){return cf(Tl(()=>""),Ol((e,n)=>!n))}function Es(e,n,t,r,o="auto"){console.log(n),n&&setTimeout(()=>{t?r?n.scrollTo({top:0,left:n.scrollWidth,behavior:o}):e.scrollTo({top:-n.scrollHeight,left:0,behavior:o}):r?n.scrollTo({top:0,left:-n.scrollWidth,behavior:o}):e.scrollTo({top:n.scrollHeight+100,left:0,behavior:o}),o==="smooth"&&setTimeout(()=>Es(e,n,t,r),250)})}function dh(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 mh(e){const[n,t,r]=e.split(":").map(o=>Number.parseInt(o,10));return n*60*60+t*60+r}function gh(){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 Gc(e,n){if(!e||!n.length)return e;let t=e;for(let r=0,{length:o}=n;r<o;r+=1){const i=n[r];t=t.replace(new RegExp(i.pattern,i.flags.join("")),i.replaces.replace(/\\t/gm," ").replace(/\\n/gm,`
|
27
27
|
`))}return t}const qc=`
|
28
|
-
`;function bh(e){let n,t,r,o;return{c(){n=Ql("svg"),t=Ql("path"),f(t,"d",e[1]),ve(n,"width",e[2]),ve(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=[L(n,"click",e[5]),L(n,"keyup",e[6])],r=!0)},p(i,[s]){s&2&&f(t,"d",i[1]),s&4&&ve(n,"width",i[2]),s&8&&ve(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,
|
29
|
-
`+$.TL,a),N(ze,r[h]=a,r)),console.log(`${q} action completed for event ID: ${P}`,$)}).catch($=>{console.error(`Error performing ${q} action for event ID: ${P}`,$)})}const G=()=>Ah(a.id);function U(P){ct[P?"unshift":"push"](()=>{k=P,t(1,k)})}const B=()=>X(a.id,"Screenshot"),x=()=>X(a.id,"Audio"),W=()=>X(a.id,"TL");return e.$$set=P=>{"line"in P&&t(0,a=P.line),"index"in P&&t(10,h=P.index),"isLast"in P&&t(11,p=P.isLast)},[a,k,D,T,o,i,l,c,A,X,h,p,d,b,G,U,B,x,W]}class Dh extends Ot{constructor(n){super(),Tt(this,n,Ph,xh,gt,{line:0,index:10,isLast:11,deselect:12,getIdIfSelected:13})}get deselect(){return this.$$.ctx[12]}get getIdIfSelected(){return this.$$.ctx[13]}}function Th(e){let n,t,r,o,i,s,l,c;return r=new ke({props:{path:_c}}),{c(){n=g("div"),t=g("div"),se(r.$$.fragment),o=_(),i=g("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"),ve(i,"resize","none"),i.value=e[0]},m(a,h){j(a,n,h),u(n,t),re(r,t,null),j(a,o,h),j(a,i,h),s=!0,l||(c=[L(t,"click",e[3]),L(t,"keyup",Pt),L(i,"blur",e[2])],l=!0)},p(a,[h]){(!s||h&1)&&(i.value=a[0])},i(a){s||(R(r.$$.fragment,a),s=!0)},o(a){Y(r.$$.fragment,a),s=!1},d(a){a&&F(n),oe(r),a&&F(o),a&&F(i),l=!1,Et(c)}}}function Oh(e,n,t){let r,o;w(e,Zo,l=>t(0,r=l)),w(e,vl,l=>t(1,o=l));function i(l){N(Zo,r=l.target.value,r)}return[r,o,i,()=>N(vl,o=!1,o)]}class Ih extends Ot{constructor(n){super(),Tt(this,n,Oh,Th,gt,{})}}function Pa(e,n,t){const r=e.slice();return r[58]=n[t],r}function Da(e,n,t){const r=e.slice();return r[58]=n[t],r}function $h(e){let n,t,r,o,i,s=[],l=new Map,c,a,h,p,d,b,v,k,M,D,T,A,O,X,G,U,B,x,W,P,q,V,J,$=e[2].length?e[2]:e[4];const ne=K=>K[58].name;for(let K=0;K<$.length;K+=1){let de=Pa(e,$,K),me=ne(de);l.set(me,s[K]=Ta(me,de))}return h=new ke({props:{path:Vu}}),k=new ke({props:{path:ns}}),O=new ke({props:{path:qu}}),x=new ke({props:{path:No}}),{c(){n=g("details"),t=g("summary"),t.textContent="Presets",r=_(),o=g("div"),i=g("select");for(let K=0;K<s.length;K+=1)s[K].c();c=_(),a=g("div"),se(h.$$.fragment),p=_(),d=g("span"),d.textContent="Save",b=_(),v=g("div"),se(k.$$.fragment),M=_(),D=g("span"),D.textContent="Export/Import",T=_(),A=g("div"),se(O.$$.fragment),X=_(),G=g("span"),G.textContent="Reload",U=_(),B=g("div"),se(x.$$.fragment),W=_(),P=g("span"),P.textContent="Delete",f(i,"class","select flex-1 max-w-md"),f(d,"class","label-text"),f(a,"role","button"),f(a,"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(A,"role","button"),f(A,"class","flex flex-col items-center hover:text-primary ml-3"),te(A,"invisible",!e[1]),f(P,"class","label-text"),f(B,"role","button"),f(B,"class","flex flex-col items-center hover:text-primary ml-3"),te(B,"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(K,de){j(K,n,de),u(n,t),u(n,r),u(n,o),u(o,i);for(let me=0;me<s.length;me+=1)s[me].m(i,null);qr(i,e[1]),u(o,c),u(o,a),re(h,a,null),u(a,p),u(a,d),u(o,b),u(o,v),re(k,v,null),u(v,M),u(v,D),u(o,T),u(o,A),re(O,A,null),u(A,X),u(A,G),u(o,U),u(o,B),re(x,B,null),u(B,W),u(B,P),q=!0,V||(J=[L(i,"change",e[6]),L(a,"click",e[8]),L(a,"keyup",Pt),L(v,"click",e[12]),L(v,"keyup",Pt),L(A,"click",e[13]),L(A,"keyup",Pt),L(B,"click",e[9]),L(B,"keyup",Pt)],V=!0)},p(K,de){de[0]&20&&($=K[2].length?K[2]:K[4],s=Lo(s,de,ne,1,K,$,l,i,xl,Ta,null,Pa)),(!q||de[0]&22)&&qr(i,K[1]),(!q||de[0]&2)&&te(A,"invisible",!K[1]),(!q||de[0]&2)&&te(B,"invisible",!K[1])},i(K){q||(R(h.$$.fragment,K),R(k.$$.fragment,K),R(O.$$.fragment,K),R(x.$$.fragment,K),q=!0)},o(K){Y(h.$$.fragment,K),Y(k.$$.fragment,K),Y(O.$$.fragment,K),Y(x.$$.fragment,K),q=!1},d(K){K&&F(n);for(let de=0;de<s.length;de+=1)s[de].d();oe(h),oe(k),oe(O),oe(x),V=!1,Et(J)}}}function Mh(e){let n,t=[],r=new Map,o,i,s=e[2].length?e[2]:e[4];const l=c=>c[58].name;for(let c=0;c<s.length;c+=1){let a=Da(e,s,c),h=l(a);r.set(h,t[c]=Oa(h,a))}return{c(){n=g("select");for(let c=0;c<t.length;c+=1)t[c].c();f(n,"class","w-48 hidden sm:block"),te(n,"sm:hidden",!e[3]||e[2].length<2)},m(c,a){j(c,n,a);for(let h=0;h<t.length;h+=1)t[h].m(n,null);qr(n,e[1]),o||(i=L(n,"change",e[6]),o=!0)},p(c,a){a[0]&20&&(s=c[2].length?c[2]:c[4],t=Lo(t,a,l,1,c,s,r,n,xl,Oa,null,Da)),a[0]&22&&qr(n,c[1]),a[0]&12&&te(n,"sm:hidden",!c[3]||c[2].length<2)},i:xe,o:xe,d(c){c&&F(n);for(let a=0;a<t.length;a+=1)t[a].d();o=!1,i()}}}function Ta(e,n){let t,r=(n[58].name||"No Presets stored")+"",o,i,s;return{key:e,first:null,c(){t=g("option"),o=at(r),i=_(),t.__value=s=n[58].name,t.value=t.__value,this.first=t},m(l,c){j(l,t,c),u(t,o),u(t,i)},p(l,c){n=l,c[0]&4&&r!==(r=(n[58].name||"No Presets stored")+"")&&Dt(o,r),c[0]&4&&s!==(s=n[58].name)&&(t.__value=s,t.value=t.__value)},d(l){l&&F(t)}}}function Oa(e,n){let t,r=n[58].name+"",o,i,s;return{key:e,first:null,c(){t=g("option"),o=at(r),i=_(),t.__value=s=n[58].name,t.value=t.__value,this.first=t},m(l,c){j(l,t,c),u(t,o),u(t,i)},p(l,c){n=l,c[0]&4&&r!==(r=n[58].name+"")&&Dt(o,r),c[0]&4&&s!==(s=n[58].name)&&(t.__value=s,t.value=t.__value)},d(l){l&&F(t)}}}function Nh(e){let n,t,r,o;const i=[Mh,$h],s=[];function l(c,a){return c[0]?0:1}return n=l(e),t=s[n]=i[n](e),{c(){t.c(),r=Gn()},m(c,a){s[n].m(c,a),j(c,r,a),o=!0},p(c,a){let h=n;n=l(c),n===h?s[n].p(c,a):(dt(),Y(s[h],1,1,()=>{s[h]=null}),mt(),t=s[n],t?t.p(c,a):(t=s[n]=i[n](c),t.c()),R(t,1),t.m(r.parentNode,r))},i(c){o||(R(t),o=!0)},o(c){Y(t),o=!1},d(c){s[n].d(c),c&&F(r)}}}function Rh(e,n,t){let r,o,i,s,l,c,a,h,p,d,b,v,k,M,D,T,A,O,X,G,U,B,x,W,P,q,V,J,$,ne,K,de,me,Ye,Te,Ge,ut,_e,ge,Ue,tt,Me,$e,ae,qe,Xe,Oe;w(e,Un,S=>t(1,r=S)),w(e,on,S=>t(2,o=S)),w(e,He,S=>t(14,i=S)),w(e,Jr,S=>t(15,s=S)),w(e,kr,S=>t(16,l=S)),w(e,Cs,S=>t(17,c=S)),w(e,Ss,S=>t(18,a=S)),w(e,Ko,S=>t(19,h=S)),w(e,ko,S=>t(20,p=S)),w(e,wo,S=>t(21,d=S)),w(e,yo,S=>t(22,b=S)),w(e,_o,S=>t(23,v=S)),w(e,vo,S=>t(24,k=S)),w(e,bo,S=>t(25,M=S)),w(e,go,S=>t(26,D=S)),w(e,mo,S=>t(27,T=S)),w(e,po,S=>t(28,A=S)),w(e,ho,S=>t(29,O=S)),w(e,fo,S=>t(30,X=S)),w(e,wr,S=>t(31,G=S)),w(e,yr,S=>t(32,U=S)),w(e,uo,S=>t(33,B=S)),w(e,co,S=>t(34,x=S)),w(e,_r,S=>t(35,W=S)),w(e,ao,S=>t(36,P=S)),w(e,so,S=>t(37,q=S)),w(e,lo,S=>t(38,V=S)),w(e,io,S=>t(39,J=S)),w(e,oo,S=>t(40,$=S)),w(e,ro,S=>t(41,ne=S)),w(e,no,S=>t(42,K=S)),w(e,to,S=>t(43,de=S)),w(e,eo,S=>t(44,me=S)),w(e,Qr,S=>t(45,Ye=S)),w(e,Xo,S=>t(3,Te=S)),w(e,qo,S=>t(46,Ge=S)),w(e,Zr,S=>t(47,ut=S)),w(e,Wn,S=>t(48,_e=S)),w(e,pr,S=>t(49,ge=S)),w(e,gr,S=>t(50,Ue=S)),w(e,Kr,S=>t(51,tt=S)),w(e,mr,S=>t(52,Me=S)),w(e,kn,S=>t(53,$e=S)),w(e,Yn,S=>t(54,ae=S)),w(e,Go,S=>t(55,qe=S)),w(e,Yt,S=>t(56,Xe=S)),w(e,dr,S=>t(57,Oe=S));let{isQuickSwitch:Ze=!1}=n;function ft(){return{theme$:Oe,replacements$:Xe,windowTitle$:qe,websocketUrl$:ae,secondaryWebsocketUrl$:$e,fontSize$:Me,onlineFont$:tt,preventLastDuplicate$:Ue,maxLines$:ge,afkTimer$:_e,adjustTimerOnAfk$:ut,enableExternalClipboardMonitor$:Ge,showPresetQuickSwitch$:Te,skipResetConfirmations$:s,persistStats$:Ye,persistNotes$:me,persistLines$:de,persistActionHistory$:K,enablePaste$:ne,blockCopyOnPage$:$,allowPasteDuringPause$:J,allowNewLineDuringPause$:V,autoStartTimerDuringPausePaste$:q,autoStartTimerDuringPause$:P,preventGlobalDuplicate$:W,mergeEqualLineStarts$:x,flashOnMissedLine$:B,displayVertical$:U,reverseLineOrder$:G,preserveWhitespace$:X,removeAllWhitespace$:O,showTimer$:A,showSpeed$:T,showCharacterCount$:D,showLineCount$:M,blurStats$:k,enableLineAnimation$:v,enableAfkBlur$:b,enableAfkBlurRestart$:d,continuousReconnect$:l,showConnectionErrors$:p,customCSS$:h}}function Fe(S,ie=!0){dr.next(S.settings.theme$??E.theme$),Yt.next(S.settings.replacements$??E.replacements$),Go.next(S.settings.windowTitle$??E.windowTitle$),Yn.next(S.settings.websocketUrl$??E.websocketUrl$),kn.next(S.settings.secondaryWebsocketUrl$??""),mr.next(S.settings.fontSize$??E.fontSize$),Kr.next(S.settings.onlineFont$??E.onlineFont$),gr.next(S.settings.preventLastDuplicate$??E.preventLastDuplicate$),pr.next(S.settings.maxLines$??E.maxLines$),Wn.next(S.settings.afkTimer$??E.afkTimer$),Zr.next(S.settings.adjustTimerOnAfk$??E.adjustTimerOnAfk$),qo.next(S.settings.enableExternalClipboardMonitor$??E.enableExternalClipboardMonitor$),Xo.next(S.settings.showPresetQuickSwitch$??E.showPresetQuickSwitch$),Jr.next(S.settings.skipResetConfirmations$??E.skipResetConfirmations$),Qr.next(S.settings.persistStats$??E.persistStats$),eo.next(S.settings.persistNotes$??E.persistNotes$),to.next(S.settings.persistLines$??E.persistLines$),no.next(S.settings.persistActionHistory$??E.persistActionHistory$),ro.next(S.settings.enablePaste$??E.enablePaste$),oo.next(S.settings.blockCopyOnPage$??E.blockCopyOnPage$),io.next(S.settings.allowPasteDuringPause$??E.allowPasteDuringPause$),lo.next(S.settings.allowNewLineDuringPause$??E.allowNewLineDuringPause$),so.next(S.settings.autoStartTimerDuringPausePaste$??E.autoStartTimerDuringPausePaste$),ao.next(S.settings.autoStartTimerDuringPause$??E.autoStartTimerDuringPause$),_r.next(S.settings.preventGlobalDuplicate$??E.preventGlobalDuplicate$),co.next(S.settings.mergeEqualLineStarts$??E.mergeEqualLineStarts$),uo.next(S.settings.flashOnMissedLine$??E.flashOnMissedLine$),yr.next(S.settings.displayVertical$??E.displayVertical$),wr.next(S.settings.reverseLineOrder$??E.reverseLineOrder$),fo.next(S.settings.preserveWhitespace$??E.preserveWhitespace$),ho.next(S.settings.removeAllWhitespace$??E.removeAllWhitespace$),po.next(S.settings.showTimer$??E.showTimer$),mo.next(S.settings.showSpeed$??E.showSpeed$),go.next(S.settings.showCharacterCount$??E.showCharacterCount$),bo.next(S.settings.showLineCount$??E.showLineCount$),vo.next(S.settings.blurStats$??E.blurStats$),_o.next(S.settings.enableLineAnimation$??E.enableLineAnimation$),yo.next(S.settings.enableAfkBlur$??E.enableAfkBlur$),wo.next(S.settings.enableAfkBlurRestart$??E.enableAfkBlurRestart$),kr.next(S.settings.continuousReconnect$??E.continuousReconnect$),ko.next(S.settings.showConnectionErrors$??E.showConnectionErrors$),Ko.next(S.settings.customCSS$??E.customCSS$),ie&&N(Un,r=S.name,r),Wo().then(()=>{Je("layoutChange"),a!==1&&l&&$l.next(),c!==1&&l&&Ml.next()})}const Ce=[{name:""}],Je=Eo();function kt(S){const ie=S.target;be(ie.selectedOptions[0].value)}function be(S){const ie=o.find(Ke=>Ke.name===S);ie&&Fe(ie)}async function Ae(){const{canceled:S,data:ie}=await new Promise(ot=>{N(He,i={icon:Bt,askForData:"text",dataValue:r||"Preset Name",message:"",callback:ot},i)});if(S||!ie)return;const Ke=o.findIndex(ot=>ot.name===ie),Re={name:ie,settings:ft()};Ke>-1?N(on,o[Ke]=Re,o):N(on,o=[...o,Re],o),N(Un,r=ie,r)}async function ye(){if(!s){const{canceled:S}=await new Promise(ie=>{N(He,i={icon:Bt,message:"Preset will be deleted",callback:ie},i)});if(S)return}N(on,o=o.filter(S=>S.name!==r),o),N(Un,r="",r)}const Lt=S=>Je("exportImportPreset",S),Ne=()=>be(r);return e.$$set=S=>{"isQuickSwitch"in S&&t(0,Ze=S.isQuickSwitch)},[Ze,r,o,Te,Ce,Je,kt,be,Ae,ye,ft,Fe,Lt,Ne]}class Xc extends Ot{constructor(n){super(),Tt(this,n,Rh,Nh,gt,{isQuickSwitch:0,getCurrentSettings:10,updateSettingsWithPreset:11},null,[-1,-1,-1])}get getCurrentSettings(){return this.$$.ctx[10]}get updateSettingsWithPreset(){return this.$$.ctx[11]}}function Hh(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 Ia(e,n,t){const r=e.slice();return r[22]=n[t],r}function $a(e){let n,t,r,o,i;return t=new ke({props:{path:Uu}}),{c(){n=g("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=L(n,"click",e[10]),o=!0)},p:xe,i(s){r||(R(t.$$.fragment,s),r=!0)},o(s){Y(t.$$.fragment,s),r=!1},d(s){s&&F(n),oe(t),o=!1,i()}}}function Ma(e,n){let t,r,o,i=n[22].label+"",s,l,c,a;return{key:e,first:null,c(){t=g("label"),r=g("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),c||(a=[L(r,"change",n[17]),L(r,"change",n[9])],c=!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),c=!1,Et(a)}}}function Vh(e){let n=(e[5]??"")+"",t,r,o,i,s,l,c,a,h,p,d,b,v,k,M,D,T=[],A=new Map,O,X,G,U,B=(e[4]||e[3])+"",x,W,P,q=e[0].pattern&&$a(e);l=new ke({props:{path:vc}}),h=new ke({props:{path:Bu}});let V=e[7];const J=$=>$[22].value;for(let $=0;$<V.length;$+=1){let ne=Ia(e,V,$),K=J(ne);A.set(K,T[$]=Ma(K,ne))}return{c(){t=at(n),r=_(),o=g("div"),q&&q.c(),i=_(),s=g("button"),se(l.$$.fragment),c=_(),a=g("button"),se(h.$$.fragment),p=_(),d=g("div"),b=g("input"),v=_(),k=g("input"),M=_(),D=g("div");for(let $=0;$<T.length;$+=1)T[$].c();O=_(),X=g("textarea"),G=_(),U=g("div"),f(s,"title","Cancel"),f(s,"class","ml-2 hover:text-primary"),f(a,"title","Cancel"),f(a,"class","ml-2 hover:text-primary"),f(o,"class","flex justify-end my-2"),f(b,"placeholder","text pattern"),f(b,"class","w-full my-2"),f(k,"placeholder","replacement pattern"),f(k,"class","w-full my-2"),f(D,"class","flex justify-between my-4"),f(X,"name","test-value"),f(X,"placeholder","test value"),f(X,"class","w-full my-4"),f(X,"rows","3"),f(U,"class","whitespace-pre-wrap break-all")},m($,ne){j($,t,ne),j($,r,ne),j($,o,ne),q&&q.m(o,null),u(o,i),u(o,s),re(l,s,null),u(o,c),u(o,a),re(h,a,null),j($,p,ne),j($,d,ne),u(d,b),yt(b,e[0].pattern),e[15](b),u(d,v),u(d,k),yt(k,e[0].replaces),u(d,M),u(d,D);for(let K=0;K<T.length;K+=1)T[K].m(D,null);u(d,O),u(d,X),yt(X,e[2]),u(d,G),u(d,U),U.innerHTML=B,x=!0,W||(P=[L(s,"click",e[12]),L(a,"click",e[13]),L(b,"input",e[14]),L(b,"input",e[9]),L(k,"input",e[16]),L(k,"input",e[9]),L(X,"input",e[19]),L(X,"input",e[9])],W=!0)},p($,[ne]){(!x||ne&32)&&n!==(n=($[5]??"")+"")&&Dt(t,n),$[0].pattern?q?(q.p($,ne),ne&1&&R(q,1)):(q=$a($),q.c(),R(q,1),q.m(o,i)):q&&(dt(),Y(q,1,1,()=>{q=null}),mt()),ne&1&&b.value!==$[0].pattern&&yt(b,$[0].pattern),ne&1&&k.value!==$[0].replaces&&yt(k,$[0].replaces),ne&641&&(V=$[7],T=Lo(T,ne,J,1,$,V,A,D,xl,Ma,null,Ia)),ne&4&&yt(X,$[2]),(!x||ne&24)&&B!==(B=($[4]||$[3])+"")&&(U.innerHTML=B)},i($){x||(R(q),R(l.$$.fragment,$),R(h.$$.fragment,$),x=!0)},o($){Y(q),Y(l.$$.fragment,$),Y(h.$$.fragment,$),x=!1},d($){$&&F(t),$&&F(r),$&&F(o),q&&q.d(),oe(l),oe(h),$&&F(p),$&&F(d),e[15](null);for(let ne=0;ne<T.length;ne+=1)T[ne].d();W=!1,Et(P)}}}function Fh(e,n,t){let r,o;w(e,Yt,x=>t(20,r=x));let{currentReplacement:i}=n;const s=Eo(),l=new xo,c=i?JSON.parse(JSON.stringify(i)):{pattern:"",replaces:"",flags:[],enabled:!0},a=[{label:"global",value:"g"},{label:"multiline",value:"m"},{label:"insensitive",value:"i"},{label:"unicode",value:"u"}],h=l.pipe(ws(500),Nn(()=>{try{if(t(4,v=""),!c.pattern||!d)return;t(3,b=Gc(d,[c]))}catch({message:x}){t(4,v=`Error: ${x}`)}}),Hn());w(e,h,x=>t(5,o=x));let p,d="",b="",v="";function k(){p.setCustomValidity(v),l.next()}function M(){if(!i&&r.find(x=>x.pattern===c.pattern))return p.setCustomValidity("This pattern already exists"),p.reportValidity();i?N(Yt,r=r.map(x=>x.pattern===i.pattern?c:x),r):N(Yt,r=[...r,c],r),s("close")}const D=[[]],T=()=>s("close"),A=()=>window.open("https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#description","_blank");function O(){c.pattern=this.value,t(0,c)}function X(x){ct[x?"unshift":"push"](()=>{p=x,t(1,p)})}function G(){c.replaces=this.value,t(0,c)}function U(){c.flags=Su(D[0],this.__value,this.checked),t(0,c)}function B(){d=this.value,t(2,d)}return e.$$set=x=>{"currentReplacement"in x&&t(11,i=x.currentReplacement)},[c,p,d,b,v,o,s,a,h,k,M,i,T,A,O,X,G,U,D,B]}class jh extends Ot{constructor(n){super(),Tt(this,n,Fh,Vh,gt,{currentReplacement:11})}}function Na(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?Na(Object(t),!0).forEach(function(r){Uh(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Na(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 Uh(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 Bh(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 Wh(e,n){if(e==null)return{};var t=Bh(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 zh="1.15.2";function Sn(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Ln=Sn(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),ni=Sn(/Edge/i),Ra=Sn(/firefox/i),Ro=Sn(/safari/i)&&!Sn(/chrome/i)&&!Sn(/android/i),Kc=Sn(/iP(ad|od|hone)/i),Zc=Sn(/chrome/i)&&Sn(/android/i),Jc={capture:!1,passive:!1};function Le(e,n,t){e.addEventListener(n,t,!Ln&&Jc)}function Se(e,n,t){e.removeEventListener(n,t,!Ln&&Jc)}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 Yh(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Zt(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=Yh(e))}return null}var Ha=/\s+/g;function _t(e,n,t){if(e&&n)if(e.classList)e.classList[t?"add":"remove"](n);else{var r=(" "+e.className+" ").replace(Ha," ").replace(" "+n+" "," ");e.className=(r+(t?" "+n:"")).replace(Ha," ")}}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 Qc(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 et(e,n,t,r,o){if(!(!e.getBoundingClientRect&&e!==window)){var i,s,l,c,a,h,p;if(e!==window&&e.parentNode&&e!==sn()?(i=e.getBoundingClientRect(),s=i.top,l=i.left,c=i.bottom,a=i.right,h=i.height,p=i.width):(s=0,l=0,c=window.innerHeight,a=window.innerWidth,h=window.innerHeight,p=window.innerWidth),(n||t)&&e!==window&&(o=o||e.parentNode,!Ln))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")),c=s+i.height,a=l+i.width;break}while(o=o.parentNode);if(r&&e!==window){var b=Gr(o||e),v=b&&b.a,k=b&&b.d;b&&(s/=k,l/=v,p/=v,h/=k,c=s+h,a=l+p)}return{top:s,left:l,bottom:c,right:a,width:p,height:h}}}function Va(e,n,t){for(var r=Bn(e,!0),o=et(e)[n];r;){var i=et(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)&&Zt(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&&!yl(t,n));)t=t.previousElementSibling;return t||null}function At(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 Fa(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 Gh(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 qh(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 Ho;function eu(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 Xh(){clearTimeout(Ho),Ho=void 0}function tu(e,n,t){e.scrollLeft+=n,e.scrollTop+=t}function nu(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 ru(e,n,t){var r={};return Array.from(e.children).forEach(function(o){var i,s,l,c;if(!(!Zt(o,n.draggable,e,!1)||o.animated||o===t)){var a=et(o);r.left=Math.min((i=r.left)!==null&&i!==void 0?i:1/0,a.left),r.top=Math.min((s=r.top)!==null&&s!==void 0?s:1/0,a.top),r.right=Math.max((l=r.right)!==null&&l!==void 0?l:-1/0,a.right),r.bottom=Math.max((c=r.bottom)!==null&&c!==void 0?c:-1/0,a.bottom)}}),r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}var Ft="Sortable"+new Date().getTime();function Kh(){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:et(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(Gh(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 c=0,a=l.target,h=a.fromRect,p=et(a),d=a.prevFromRect,b=a.prevToRect,v=l.rect,k=Gr(a,!0);k&&(p.top-=k.f,p.left-=k.e),a.toRect=p,a.thisAnimationDuration&&Bl(d,p)&&!Bl(h,p)&&(v.top-p.top)/(v.left-p.left)===(h.top-p.top)/(h.left-p.left)&&(c=Jh(v,d,b,o.options)),Bl(p,h)||(a.prevFromRect=h,a.prevToRect=p,c||(c=o.options.animation),o.animate(a,v,p,c)),c&&(i=!0,s=Math.max(s,c),clearTimeout(a.animationResetTimer),a.animationResetTimer=setTimeout(function(){a.animationTime=0,a.prevFromRect=null,a.fromRect=null,a.prevToRect=null,a.thisAnimationDuration=null},c),a.thisAnimationDuration=c)}),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),c=l&&l.a,a=l&&l.d,h=(o.left-i.left)/(c||1),p=(o.top-i.top)/(a||1);r.animatingX=!!h,r.animatingY=!!p,ue(r,"transform","translate3d("+h+"px,"+p+"px,0)"),this.forRepaintDummy=Zh(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 Zh(e){return e.offsetWidth}function Jh(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},ri={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 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 c=l.pluginName;if(!(!n.options[c]&&!l.initializeByDefault)){var a=new l(n,t,n.options);a.sortable=n,a.options=n.options,n[c]=a,cn(r,a.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 Qh(e){var n=e.sortable,t=e.rootEl,r=e.name,o=e.targetEl,i=e.cloneEl,s=e.toEl,l=e.fromEl,c=e.oldIndex,a=e.newIndex,h=e.oldDraggableIndex,p=e.newDraggableIndex,d=e.originalEvent,b=e.putSortable,v=e.extraEventProperties;if(n=n||t&&t[Ft],!!n){var k,M=n.options,D="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!Ln&&!ni?k=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(k=document.createEvent("Event"),k.initEvent(r,!0,!0)),k.to=s||t,k.from=l||t,k.item=o||t,k.clone=i,k.oldIndex=c,k.newIndex=a,k.oldDraggableIndex=h,k.newDraggableIndex=p,k.originalEvent=d,k.pullMode=b?b.lastPutMode:void 0;var T=an(an({},v),ri.getEventProperties(r,n));for(var A in T)k[A]=T[A];t&&t.dispatchEvent(k),M[D]&&M[D].call(n,k)}}var ep=["evt"],xt=function(n,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r.evt,i=Wh(r,ep);ri.pluginEvent.bind(le)(n,t,an({dragEl:z,parentEl:We,ghostEl:pe,rootEl:Ve,nextEl:fr,lastDownEl:al,cloneEl:je,cloneHidden:Vn,dragStarted:Oo,putSortable:pt,activeSortable:le.active,originalEvent:o,oldIndex:Wr,oldDraggableIndex:Vo,newIndex:Vt,newDraggableIndex:Mn,hideGhostForTarget:su,unhideGhostForTarget:au,cloneNowHidden:function(){Vn=!0},cloneNowShown:function(){Vn=!1},dispatchSortableEvent:function(l){Ct({sortable:t,name:l,originalEvent:o})}},i))};function Ct(e){Qh(an({putSortable:pt,cloneEl:je,targetEl:z,rootEl:Ve,oldIndex:Wr,oldDraggableIndex:Vo,newIndex:Vt,newDraggableIndex:Mn},e))}var z,We,pe,Ve,fr,al,je,Vn,Wr,Vt,Vo,Mn,Ji,pt,Br=!1,wl=!1,kl=[],cr,Kt,zl,Yl,ja,Ua,Oo,Ur,Fo,jo=!1,Qi=!1,cl,vt,Gl=[],cs=!1,Sl=[],Nl=typeof document<"u",el=Kc,Ba=ni||Ln?"cssFloat":"float",tp=Nl&&!Zc&&!Kc&&"draggable"in document.createElement("div"),ou=function(){if(Nl){if(Ln)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),iu=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),c=s&&ue(s),a=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+et(i).width,h=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+et(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&&(c.clear==="both"||c.clear===p)?"vertical":"horizontal"}return i&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||a>=o&&r[Ba]==="none"||s&&r[Ba]==="none"&&a+h>o)?"vertical":"horizontal"},np=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,c=r?t.right:t.bottom,a=r?t.width:t.height;return o===l||i===c||o+s/2===l+a/2},rp=function(n,t){var r;return kl.some(function(o){var i=o[Ft].options.emptyInsertThreshold;if(!(!i||Ls(o))){var s=et(o),l=n>=s.left-i&&n<=s.right+i,c=t>=s.top-i&&t<=s.bottom+i;if(l&&c)return r=o}}),r},lu=function(n){function t(i,s){return function(l,c,a,h){var p=l.options.group.name&&c.options.group.name&&l.options.group.name===c.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,c,a,h),s)(l,c,a,h);var d=(s?l:c).options.group.name;return i===!0||typeof i=="string"&&i===d||i.join&&i.indexOf(d)>-1}}var r={},o=n.group;(!o||sl(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},su=function(){!ou&&pe&&ue(pe,"display","none")},au=function(){!ou&&pe&&ue(pe,"display","")};Nl&&!Zc&&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(z){n=n.touches?n.touches[0]:n;var t=rp(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[Ft]._onDragOver(r)}}},op=function(n){z&&z.parentNode[Ft]._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[Ft]=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 iu(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]);lu(n);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=n.forceFallback?!1:tp,this.nativeDraggable&&(this.options.touchStartThreshold=1),n.supportPointer?Le(e,"pointerdown",this._onTapStart):(Le(e,"mousedown",this._onTapStart),Le(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Le(e,"dragover",this),Le(e,"dragenter",this)),kl.push(this.el),n.store&&n.store.get&&this.sort(n.store.get(this)||[]),cn(this,Kh())}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,z):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,c=(l||n).target,a=n.target.shadowRoot&&(n.path&&n.path[0]||n.composedPath&&n.composedPath()[0])||c,h=o.filter;if(hp(r),!z&&!(/mousedown|pointerdown/.test(s)&&n.button!==0||o.disabled)&&!a.isContentEditable&&!(!this.nativeDraggable&&Ro&&c&&c.tagName.toUpperCase()==="SELECT")&&(c=Zt(c,o.draggable,r,!1),!(c&&c.animated)&&al!==c)){if(Wr=At(c),Vo=At(c,o.draggable),typeof h=="function"){if(h.call(this,n,c,this)){Ct({sortable:t,rootEl:a,name:"filter",targetEl:c,toEl:r,fromEl:r}),xt("filter",t,{evt:n}),i&&n.cancelable&&n.preventDefault();return}}else if(h&&(h=h.split(",").some(function(p){if(p=Zt(a,p.trim(),r,!1),p)return Ct({sortable:t,rootEl:p,name:"filter",targetEl:c,fromEl:r,toEl:r}),xt("filter",t,{evt:n}),!0}),h)){i&&n.cancelable&&n.preventDefault();return}o.handle&&!Zt(a,o.handle,r,!1)||this._prepareDragStart(n,l,c)}}},_prepareDragStart:function(n,t,r){var o=this,i=o.el,s=o.options,l=i.ownerDocument,c;if(r&&!z&&r.parentNode===i){var a=et(r);if(Ve=i,z=r,We=z.parentNode,fr=z.nextSibling,al=r,Ji=s.group,le.dragged=z,cr={target:z,clientX:(t||n).clientX,clientY:(t||n).clientY},ja=cr.clientX-a.left,Ua=cr.clientY-a.top,this._lastX=(t||n).clientX,this._lastY=(t||n).clientY,z.style["will-change"]="all",c=function(){if(xt("delayEnded",o,{evt:n}),le.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!Ra&&o.nativeDraggable&&(z.draggable=!0),o._triggerDragStart(n,t),Ct({sortable:o,name:"choose",originalEvent:n}),_t(z,s.chosenClass,!0)},s.ignore.split(",").forEach(function(h){Qc(z,h.trim(),ql)}),Le(l,"dragover",ur),Le(l,"mousemove",ur),Le(l,"touchmove",ur),Le(l,"mouseup",o._onDrop),Le(l,"touchend",o._onDrop),Le(l,"touchcancel",o._onDrop),Ra&&this.nativeDraggable&&(this.options.touchStartThreshold=4,z.draggable=!0),xt("delayStart",this,{evt:n}),s.delay&&(!s.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(ni||Ln))){if(le.eventCanceled){this._onDrop();return}Le(l,"mouseup",o._disableDelayedDrag),Le(l,"touchend",o._disableDelayedDrag),Le(l,"touchcancel",o._disableDelayedDrag),Le(l,"mousemove",o._delayedDragTouchMoveHandler),Le(l,"touchmove",o._delayedDragTouchMoveHandler),s.supportPointer&&Le(l,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(c,s.delay)}else c()}},_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(){z&&ql(z),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var n=this.el.ownerDocument;Se(n,"mouseup",this._disableDelayedDrag),Se(n,"touchend",this._disableDelayedDrag),Se(n,"touchcancel",this._disableDelayedDrag),Se(n,"mousemove",this._delayedDragTouchMoveHandler),Se(n,"touchmove",this._delayedDragTouchMoveHandler),Se(n,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(n,t){t=t||n.pointerType=="touch"&&n,!this.nativeDraggable||t?this.options.supportPointer?Le(document,"pointermove",this._onTouchMove):t?Le(document,"touchmove",this._onTouchMove):Le(document,"mousemove",this._onTouchMove):(Le(z,"dragend",this),Le(Ve,"dragstart",this._onDragStart));try{document.selection?ul(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(n,t){if(Br=!1,Ve&&z){xt("dragStarted",this,{evt:t}),this.nativeDraggable&&Le(document,"dragover",op);var r=this.options;!n&&_t(z,r.dragClass,!1),_t(z,r.ghostClass,!0),le.active=this,n&&this._appendGhost(),Ct({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Kt){this._lastX=Kt.clientX,this._lastY=Kt.clientY,su();for(var n=document.elementFromPoint(Kt.clientX,Kt.clientY),t=n;n&&n.shadowRoot&&(n=n.shadowRoot.elementFromPoint(Kt.clientX,Kt.clientY),n!==t);)t=n;if(z.parentNode[Ft]._isOutsideThisEl(n),t)do{if(t[Ft]){var r=void 0;if(r=t[Ft]._onDragOver({clientX:Kt.clientX,clientY:Kt.clientY,target:n,rootEl:t}),r&&!this.options.dragoverBubble)break}n=t}while(t=t.parentNode);au()}},_onTouchMove:function(n){if(cr){var t=this.options,r=t.fallbackTolerance,o=t.fallbackOffset,i=n.touches?n.touches[0]:n,s=pe&&Gr(pe,!0),l=pe&&s&&s.a,c=pe&&s&&s.d,a=el&&vt&&Fa(vt),h=(i.clientX-cr.clientX+o.x)/(l||1)+(a?a[0]-Gl[0]:0)/(l||1),p=(i.clientY-cr.clientY+o.y)/(c||1)+(a?a[1]-Gl[1]:0)/(c||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(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,Kt=i}n.cancelable&&n.preventDefault()}},_appendGhost:function(){if(!pe){var n=this.options.fallbackOnBody?document.body:Ve,t=et(z,!0,el,!0,n),r=this.options;if(el){for(vt=n;ue(vt,"position")==="static"&&ue(vt,"transform")==="none"&&vt!==document;)vt=vt.parentNode;vt!==document.body&&vt!==document.documentElement?(vt===document&&(vt=sn()),t.top+=vt.scrollTop,t.left+=vt.scrollLeft):vt=sn(),Gl=Fa(vt)}pe=z.cloneNode(!0),_t(pe,r.ghostClass,!1),_t(pe,r.fallbackClass,!0),_t(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",ja/parseInt(pe.style.width)*100+"% "+Ua/parseInt(pe.style.height)*100+"%")}},_onDragStart:function(n,t){var r=this,o=n.dataTransfer,i=r.options;if(xt("dragStart",this,{evt:n}),le.eventCanceled){this._onDrop();return}xt("setupClone",this),le.eventCanceled||(je=nu(z),je.removeAttribute("id"),je.draggable=!1,je.style["will-change"]="",this._hideClone(),_t(je,this.options.chosenClass,!1),le.clone=je),r.cloneId=ul(function(){xt("clone",r),!le.eventCanceled&&(r.options.removeCloneOnHide||Ve.insertBefore(je,z),r._hideClone(),Ct({sortable:r,name:"clone"}))}),!t&&_t(z,i.dragClass,!0),t?(wl=!0,r._loopId=setInterval(r._emulateDragOver,50)):(Se(document,"mouseup",r._onDrop),Se(document,"touchend",r._onDrop),Se(document,"touchcancel",r._onDrop),o&&(o.effectAllowed="move",i.setData&&i.setData.call(r,o,z)),Le(document,"drop",r),ue(z,"transform","translateZ(0)")),Br=!0,r._dragStartId=ul(r._dragStarted.bind(r,t,n)),Le(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,c=l.group,a=le.active,h=Ji===c,p=l.sort,d=pt||a,b,v=this,k=!1;if(cs)return;function M(de,me){xt(de,v,an({evt:n,isOwner:h,axis:b?"vertical":"horizontal",revert:s,dragRect:o,targetRect:i,canSort:p,fromSortable:d,target:r,completed:T,onMove:function(Te,Ge){return tl(Ve,t,z,o,Te,et(Te),n,Ge)},changed:A},me))}function D(){M("dragOverAnimationCapture"),v.captureAnimationState(),v!==d&&d.captureAnimationState()}function T(de){return M("dragOverCompleted",{insertion:de}),de&&(h?a._hideClone():a._showClone(v),v!==d&&(_t(z,pt?pt.options.ghostClass:a.options.ghostClass,!1),_t(z,l.ghostClass,!0)),pt!==v&&v!==le.active?pt=v:v===le.active&&pt&&(pt=null),d===v&&(v._ignoreWhileAnimating=r),v.animateAll(function(){M("dragOverAnimationComplete"),v._ignoreWhileAnimating=null}),v!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(r===z&&!z.animated||r===t&&!r.animated)&&(Ur=null),!l.dragoverBubble&&!n.rootEl&&r!==document&&(z.parentNode[Ft]._isOutsideThisEl(n.target),!de&&ur(n)),!l.dragoverBubble&&n.stopPropagation&&n.stopPropagation(),k=!0}function A(){Vt=At(z),Mn=At(z,l.draggable),Ct({sortable:v,name:"change",toEl:t,newIndex:Vt,newDraggableIndex:Mn,originalEvent:n})}if(n.preventDefault!==void 0&&n.cancelable&&n.preventDefault(),r=Zt(r,l.draggable,t,!0),M("dragOver"),le.eventCanceled)return k;if(z.contains(n.target)||r.animated&&r.animatingX&&r.animatingY||v._ignoreWhileAnimating===r)return T(!1);if(wl=!1,a&&!l.disabled&&(h?p||(s=We!==Ve):pt===this||(this.lastPutMode=Ji.checkPull(this,a,z,n))&&c.checkPut(this,a,z,n))){if(b=this._getDirection(n,r)==="vertical",o=et(z),M("dragOverValid"),le.eventCanceled)return k;if(s)return We=Ve,D(),this._hideClone(),M("revert"),le.eventCanceled||(fr?Ve.insertBefore(z,fr):Ve.appendChild(z)),T(!0);var O=Ls(t,l.draggable);if(!O||ap(n,b,this)&&!O.animated){if(O===z)return T(!1);if(O&&t===n.target&&(r=O),r&&(i=et(r)),tl(Ve,t,z,o,r,i,n,!!r)!==!1)return D(),O&&O.nextSibling?t.insertBefore(z,O.nextSibling):t.appendChild(z),We=t,A(),T(!0)}else if(O&&sp(n,b,this)){var X=Co(t,0,l,!0);if(X===z)return T(!1);if(r=X,i=et(r),tl(Ve,t,z,o,r,i,n,!1)!==!1)return D(),t.insertBefore(z,X),We=t,A(),T(!0)}else if(r.parentNode===t){i=et(r);var G=0,U,B=z.parentNode!==t,x=!np(z.animated&&z.toRect||o,r.animated&&r.toRect||i,b),W=b?"top":"left",P=Va(r,"top","top")||Va(z,"top","top"),q=P?P.scrollTop:void 0;Ur!==r&&(U=i[W],jo=!1,Qi=!x&&l.invertSwap||B),G=cp(n,r,i,b,x?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,Qi,Ur===r);var V;if(G!==0){var J=At(z);do J-=G,V=We.children[J];while(V&&(ue(V,"display")==="none"||V===pe))}if(G===0||V===r)return T(!1);Ur=r,Fo=G;var $=r.nextElementSibling,ne=!1;ne=G===1;var K=tl(Ve,t,z,o,r,i,n,ne);if(K!==!1)return(K===1||K===-1)&&(ne=K===1),cs=!0,setTimeout(lp,30),D(),ne&&!$?t.appendChild(z):r.parentNode.insertBefore(z,ne?$:r),P&&tu(P,0,q-P.scrollTop),We=z.parentNode,U!==void 0&&!Qi&&(cl=Math.abs(U-et(r)[W])),A(),T(!0)}if(t.contains(z))return T(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Se(document,"mousemove",this._onTouchMove),Se(document,"touchmove",this._onTouchMove),Se(document,"pointermove",this._onTouchMove),Se(document,"dragover",ur),Se(document,"mousemove",ur),Se(document,"touchmove",ur)},_offUpEvents:function(){var n=this.el.ownerDocument;Se(n,"mouseup",this._onDrop),Se(n,"touchend",this._onDrop),Se(n,"pointerup",this._onDrop),Se(n,"touchcancel",this._onDrop),Se(document,"selectstart",this)},_onDrop:function(n){var t=this.el,r=this.options;if(Vt=At(z),Mn=At(z,r.draggable),xt("drop",this,{evt:n}),We=z&&z.parentNode,Vt=At(z),Mn=At(z,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&&(Se(document,"drop",this),Se(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ro&&ue(document.body,"user-select",""),ue(z,"transform",""),n&&(Oo&&(n.cancelable&&n.preventDefault(),!r.dropBubble&&n.stopPropagation()),pe&&pe.parentNode&&pe.parentNode.removeChild(pe),(Ve===We||pt&&pt.lastPutMode!=="clone")&&je&&je.parentNode&&je.parentNode.removeChild(je),z&&(this.nativeDraggable&&Se(z,"dragend",this),ql(z),z.style["will-change"]="",Oo&&!Br&&_t(z,pt?pt.options.ghostClass:this.options.ghostClass,!1),_t(z,this.options.chosenClass,!1),Ct({sortable:this,name:"unchoose",toEl:We,newIndex:null,newDraggableIndex:null,originalEvent:n}),Ve!==We?(Vt>=0&&(Ct({rootEl:We,name:"add",toEl:We,fromEl:Ve,originalEvent:n}),Ct({sortable:this,name:"remove",toEl:We,originalEvent:n}),Ct({rootEl:We,name:"sort",toEl:We,fromEl:Ve,originalEvent:n}),Ct({sortable:this,name:"sort",toEl:We,originalEvent:n})),pt&&pt.save()):Vt!==Wr&&Vt>=0&&(Ct({sortable:this,name:"update",toEl:We,originalEvent:n}),Ct({sortable:this,name:"sort",toEl:We,originalEvent:n})),le.active&&((Vt==null||Vt===-1)&&(Vt=Wr,Mn=Vo),Ct({sortable:this,name:"end",toEl:We,originalEvent:n}),this.save()))),this._nulling()},_nulling:function(){xt("nulling",this),Ve=z=We=pe=fr=je=al=Vn=cr=Kt=Oo=Vt=Mn=Wr=Vo=Ur=Fo=pt=Ji=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":z&&(this._onDragOver(n),ip(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],Zt(t,s.draggable,this.el,!1)&&n.push(t.getAttribute(s.dataIdAttr)||fp(t));return n},sort:function(n,t){var r={},o=this.el;this.toArray().forEach(function(i,s){var l=o.children[s];Zt(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 Zt(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"&&lu(r)},destroy:function(){xt("destroy",this);var n=this.el;n[Ft]=null,Se(n,"mousedown",this._onTapStart),Se(n,"touchstart",this._onTapStart),Se(n,"pointerdown",this._onTapStart),this.nativeDraggable&&(Se(n,"dragover",this),Se(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(!Vn){if(xt("hideClone",this),le.eventCanceled)return;ue(je,"display","none"),this.options.removeCloneOnHide&&je.parentNode&&je.parentNode.removeChild(je),Vn=!0}},_showClone:function(n){if(n.lastPutMode!=="clone"){this._hideClone();return}if(Vn){if(xt("showClone",this),le.eventCanceled)return;z.parentNode==Ve&&!this.options.group.revertClone?Ve.insertBefore(je,z):fr?Ve.insertBefore(je,fr):Ve.appendChild(je),this.options.group.revertClone&&this.animate(z,je),ue(je,"display",""),Vn=!1}}};function ip(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function tl(e,n,t,r,o,i,s,l){var c,a=e[Ft],h=a.options.onMove,p;return window.CustomEvent&&!Ln&&!ni?c=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(c=document.createEvent("Event"),c.initEvent("move",!0,!0)),c.to=n,c.from=e,c.dragged=t,c.draggedRect=r,c.related=o||n,c.relatedRect=i||et(n),c.willInsertAfter=l,c.originalEvent=s,e.dispatchEvent(c),h&&(p=h.call(a,c,s)),p}function ql(e){e.draggable=!1}function lp(){cs=!1}function sp(e,n,t){var r=et(Co(t.el,0,t.options,!0)),o=ru(t.el,t.options,pe),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 ap(e,n,t){var r=et(Ls(t.el,t.options.draggable)),o=ru(t.el,t.options,pe),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 cp(e,n,t,r,o,i,s,l){var c=r?e.clientY:e.clientX,a=r?t.height:t.width,h=r?t.top:t.left,p=r?t.bottom:t.right,d=!1;if(!s){if(l&&cl<a*o){if(!jo&&(Fo===1?c>h+a*i/2:c<p-a*i/2)&&(jo=!0),jo)d=!0;else if(Fo===1?c<h+cl:c>p-cl)return-Fo}else if(c>h+a*(1-o)/2&&c<p-a*(1-o)/2)return up(n)}return d=d||s,d&&(c<h+a*i/2||c>p-a*i/2)?c>h+a/2?1:-1:0}function up(e){return At(z)<At(e)?1:-1}function fp(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 hp(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&&Le(document,"touchmove",function(e){(le.active||Br)&&e.cancelable&&e.preventDefault()});le.utils={on:Le,off:Se,css:ue,find:Qc,is:function(n,t){return!!Zt(n,t,n,!1)},extend:qh,throttle:eu,closest:Zt,toggleClass:_t,clone:nu,index:At,nextTick:ul,cancelNextTick:us,detectDirection:iu,getChild:Co};le.get=function(e){return e[Ft]};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=zh;var Qe=[],Io,fs,hs=!1,Xl,Kl,Cl,$o;function pp(){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?Le(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Le(document,"pointermove",this._handleFallbackAutoScroll):r.touches?Le(document,"touchmove",this._handleFallbackAutoScroll):Le(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var r=t.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?Se(document,"dragover",this._handleAutoScroll):(Se(document,"pointermove",this._handleFallbackAutoScroll),Se(document,"touchmove",this._handleFallbackAutoScroll),Se(document,"mousemove",this._handleFallbackAutoScroll)),Wa(),fl(),Xh()},nulling:function(){Cl=fs=Io=hs=$o=Xl=Kl=null,Qe.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(Cl=t,r||this.options.forceAutoScrollFallback||ni||Ln||Ro){Zl(t,this.options,l,r);var c=Bn(l,!0);hs&&(!$o||i!==Xl||s!==Kl)&&($o&&Wa(),$o=setInterval(function(){var a=Bn(document.elementFromPoint(i,s),!0);a!==c&&(c=a,fl()),Zl(t,o.options,a,r)},10),Xl=i,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(){Qe.forEach(function(e){clearInterval(e.pid)}),Qe=[]}function Wa(){clearInterval($o)}var Zl=eu(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,c=sn(),a=!1,h;fs!==t&&(fs=t,fl(),Io=n.scroll,h=n.scrollFn,Io===!0&&(Io=Bn(t,!0)));var p=0,d=Io;do{var b=d,v=et(b),k=v.top,M=v.bottom,D=v.left,T=v.right,A=v.width,O=v.height,X=void 0,G=void 0,U=b.scrollWidth,B=b.scrollHeight,x=ue(b),W=b.scrollLeft,P=b.scrollTop;b===c?(X=A<U&&(x.overflowX==="auto"||x.overflowX==="scroll"||x.overflowX==="visible"),G=O<B&&(x.overflowY==="auto"||x.overflowY==="scroll"||x.overflowY==="visible")):(X=A<U&&(x.overflowX==="auto"||x.overflowX==="scroll"),G=O<B&&(x.overflowY==="auto"||x.overflowY==="scroll"));var q=X&&(Math.abs(T-o)<=s&&W+A<U)-(Math.abs(D-o)<=s&&!!W),V=G&&(Math.abs(M-i)<=s&&P+O<B)-(Math.abs(k-i)<=s&&!!P);if(!Qe[p])for(var J=0;J<=p;J++)Qe[J]||(Qe[J]={});(Qe[p].vx!=q||Qe[p].vy!=V||Qe[p].el!==b)&&(Qe[p].el=b,Qe[p].vx=q,Qe[p].vy=V,clearInterval(Qe[p].pid),(q!=0||V!=0)&&(a=!0,Qe[p].pid=setInterval(function(){r&&this.layer===0&&le.active._onTouchMove(Cl);var $=Qe[this.layer].vy?Qe[this.layer].vy*l:0,ne=Qe[this.layer].vx?Qe[this.layer].vx*l:0;typeof h=="function"&&h.call(le.dragged.parentNode[Ft],ne,$,e,Cl,Qe[this.layer].el)!=="continue"||tu(Qe[this.layer].el,ne,$)}.bind({layer:p}),24))),p++}while(n.bubbleScroll&&d!==c&&(d=Bn(d,!1)));hs=a}},30),cu=function(n){var t=n.originalEvent,r=n.putSortable,o=n.dragEl,i=n.activeSortable,s=n.dispatchSortableEvent,l=n.hideGhostForTarget,c=n.unhideGhostForTarget;if(t){var a=r||i;l();var h=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,p=document.elementFromPoint(h.clientX,h.clientY);c(),a&&!a.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:cu};cn(xs,{pluginName:"revertOnSpill"});function As(){}As.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:cu};cn(As,{pluginName:"removeOnSpill"});var Ut;function dp(){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,c=t.cancel;if(s.options.swap){var a=this.sortable.el,h=this.options;if(o&&o!==a){var p=Ut;i(o)!==!1?(_t(o,h.swapClass,!0),Ut=o):Ut=null,p&&p!==Ut&&_t(p,h.swapClass,!1)}l(),r(!0),c()}},drop:function(t){var r=t.activeSortable,o=t.putSortable,i=t.dragEl,s=o||this.sortable,l=this.options;Ut&&_t(Ut,l.swapClass,!1),Ut&&(l.swap||o&&o.options.swap)&&i!==Ut&&(s.captureAnimationState(),s!==r&&r.captureAnimationState(),mp(i,Ut),s.animateAll(),s!==r&&r.animateAll())},nulling:function(){Ut=null}},cn(e,{pluginName:"swap",eventProperties:function(){return{swapItem:Ut}}})}function mp(e,n){var t=e.parentNode,r=n.parentNode,o,i;!t||!r||t.isEqualNode(n)||r.isEqualNode(e)||(o=At(e),i=At(n),t.isEqualNode(r)&&o<i&&i++,t.insertBefore(n,t.children[o]),r.insertBefore(e,r.children[i]))}le.mount(new pp);le.mount(As,xs);function za(e,n,t){const r=e.slice();return r[22]=n[t],r[23]=n,r[24]=t,r}function Ya(e,n){let t,r,o=n[22].pattern+"",i,s,l,c,a,h,p,d,b,v,k,M,D,T,A;a=new ke({props:{path:Yu,height:"1rem"}});function O(){return n[15](n[22])}d=new ke({props:{path:wc,height:"1rem"}});function X(){return n[16](n[22])}function G(){n[17].call(v,n[23],n[24])}return{key:e,first:null,c(){t=g("div"),r=g("div"),i=at(o),s=_(),l=g("div"),c=g("button"),se(a.$$.fragment),h=_(),p=g("button"),se(d.$$.fragment),b=_(),v=g("input"),k=_(),f(r,"class","break-all"),f(c,"title","Edit"),f(c,"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",M=n[22].pattern),this.first=t},m(U,B){j(U,t,B),u(t,r),u(r,i),u(t,s),u(t,l),u(l,c),re(a,c,null),u(l,h),u(l,p),re(d,p,null),u(l,b),u(l,v),v.checked=n[22].enabled,u(t,k),D=!0,T||(A=[L(c,"click",O),L(p,"click",X),L(v,"change",G),L(v,"change",n[6])],T=!0)},p(U,B){n=U,(!D||B&2)&&o!==(o=n[22].pattern+"")&&Dt(i,o),B&2&&(v.checked=n[22].enabled),(!D||B&2&&M!==(M=n[22].pattern))&&f(t,"data-id",M)},i(U){D||(R(a.$$.fragment,U),R(d.$$.fragment,U),D=!0)},o(U){Y(a.$$.fragment,U),Y(d.$$.fragment,U),D=!1},d(U){U&&F(t),oe(a),oe(d),T=!1,Et(A)}}}function gp(e){let n,t,r,o,i,s,l,c,a,h,p,d,b,v,k,M,D,T,A=[],O=new Map,X,G,U;r=new ke({props:{path:ju}}),l=new ke({props:{path:yc}}),h=new ke({props:{path:Ju}}),b=new ke({props:{path:Zu}}),M=new ke({props:{path:wc}});let B=e[1];const x=W=>W[22].pattern;for(let W=0;W<B.length;W+=1){let P=za(e,B,W),q=x(P);O.set(q,A[W]=Ya(q,P))}return{c(){n=g("div"),t=g("button"),se(r.$$.fragment),i=_(),s=g("button"),se(l.$$.fragment),c=_(),a=g("button"),se(h.$$.fragment),p=_(),d=g("button"),se(b.$$.fragment),v=_(),k=g("button"),se(M.$$.fragment),D=_(),T=g("div");for(let W=0;W<A.length;W+=1)A[W].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(a,"title","Enable all"),f(a,"class","ml-2 hover:text-primary"),f(d,"title","Disable all"),f(d,"class","ml-2 hover:text-primary"),f(k,"title","Remove all"),f(k,"class","ml-2 hover:text-primary"),f(n,"class","flex justify-end my-2"),f(T,"class","max-h-72 overflow-auto")},m(W,P){j(W,n,P),u(n,t),re(r,t,null),u(n,i),u(n,s),re(l,s,null),u(n,c),u(n,a),re(h,a,null),u(n,p),u(n,d),re(b,d,null),u(n,v),u(n,k),re(M,k,null),j(W,D,P),j(W,T,P);for(let q=0;q<A.length;q+=1)A[q].m(T,null);e[18](T),X=!0,G||(U=[L(t,"click",e[10]),L(s,"click",e[11]),L(a,"click",e[12]),L(d,"click",e[13]),L(k,"click",e[14])],G=!0)},p(W,[P]){(!X||P&4&&o!==(o=!W[2]))&&(t.disabled=o),(!X||P&4)&&te(t,"hover:text-primary",W[2]),(!X||P&4)&&te(t,"cursor-not-allowed",!W[2]),P&218&&(B=W[1],dt(),A=Lo(A,P,x,1,W,B,O,T,bc,Ya,null,za),mt())},i(W){if(!X){R(r.$$.fragment,W),R(l.$$.fragment,W),R(h.$$.fragment,W),R(b.$$.fragment,W),R(M.$$.fragment,W);for(let P=0;P<B.length;P+=1)R(A[P]);X=!0}},o(W){Y(r.$$.fragment,W),Y(l.$$.fragment,W),Y(h.$$.fragment,W),Y(b.$$.fragment,W),Y(M.$$.fragment,W);for(let P=0;P<A.length;P+=1)Y(A[P]);X=!1},d(W){W&&F(n),oe(r),oe(l),oe(h),oe(b),oe(M),W&&F(D),W&&F(T);for(let P=0;P<A.length;P+=1)A[P].d();e[18](null),G=!1,Et(U)}}}function bp(e,n,t){let r,o,i,s;w(e,Yt,x=>t(3,o=x)),w(e,as,x=>t(8,i=x)),w(e,ze,x=>t(9,s=x));const l=Eo();let c,a,h=JSON.parse(JSON.stringify(o));Ll(()=>{try{le.mount(new dp)}catch{}return c=le.create(a,{swap:!0,swapClass:"swap",animation:150,store:{get:v,set:d}}),()=>c==null?void 0:c.destroy()});function p(x){const W=k();t(1,h=W.map(P=>({...P,enabled:x}))),N(Yt,o=h,o)}function d(){N(Yt,o=k(),o)}function b(x){t(1,h=x),N(Yt,o=x,o),c.sort(v(),!1)}function v(){return[...h.map(x=>x.pattern)]}function k(){const x=c.toArray();return h.slice().sort((W,P)=>x.indexOf(W.pattern)-x.indexOf(P.pattern))}const M=()=>l("applyReplacements"),D=()=>l("edit",void 0),T=()=>p(!0),A=()=>p(!1),O=()=>b([]),X=x=>l("edit",x),G=x=>b(o.filter(W=>W.pattern!==x.pattern));function U(x,W){x[W].enabled=this.checked,t(1,h)}function B(x){ct[x?"unshift":"push"](()=>{a=x,t(0,a)})}return e.$$.update=()=>{e.$$.dirty&768&&t(2,r=!!s.length&&!!i.length)},[a,h,r,o,l,p,d,b,i,s,M,D,T,A,O,X,G,U,B]}class vp extends Ot{constructor(n){super(),Tt(this,n,bp,gp,gt,{})}}function _p(e){let n,t,r,o,i,s,l,c;return r=new ke({props:{path:yc}}),{c(){n=g("div"),t=g("button"),se(r.$$.fragment),o=_(),i=g("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(a,h){j(a,n,h),u(n,t),re(r,t,null),j(a,o,h),j(a,i,h),s=!0,l||(c=L(t,"click",e[7]),l=!0)},p:xe,i(a){s||(R(r.$$.fragment,a),s=!0)},o(a){Y(r.$$.fragment,a),s=!1},d(a){a&&F(n),oe(r),a&&F(o),a&&F(i),l=!1,c()}}}function yp(e){let n=e[0],t,r,o=Ga(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(),Y(o,1,1,xe),mt(),o=Ga(i),o.c(),R(o,1),o.m(t.parentNode,t)):o.p(i,s)},i(i){r||(R(o),r=!0)},o(i){Y(o),r=!1},d(i){i&&F(t),o.d(i)}}}function wp(e){let n,t;return n=new jh({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||(R(n.$$.fragment,r),t=!0)},o(r){Y(n.$$.fragment,r),t=!1},d(r){oe(n,r)}}}function Ga(e){let n,t;return n=new vp({}),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||(R(n.$$.fragment,r),t=!0)},o(r){Y(n.$$.fragment,r),t=!1},d(r){oe(n,r)}}}function kp(e){let n,t,r,o,i,s,l;const c=[wp,yp,_p],a=[];function h(p,d){return p[1]?0:p[3]?1:2}return i=h(e),s=a[i]=c[i](e),{c(){n=g("details"),t=g("summary"),t.textContent="Replacements",r=_(),o=g("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),a[i].m(o,null),l=!0},p(p,[d]){let b=i;i=h(p),i===b?a[i].p(p,d):(dt(),Y(a[b],1,1,()=>{a[b]=null}),mt(),s=a[i],s?s.p(p,d):(s=a[i]=c[i](p),s.c()),R(s,1),s.m(o,null))},i(p){l||(R(s),l=!0)},o(p){Y(s),l=!1},d(p){p&&F(n),a[i].d()}}}function Sp(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 c=()=>{t(1,i=!1),t(2,s=void 0)},a=({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,c,a,h,p]}class Cp extends Ot{constructor(n){super(),Tt(this,n,Sp,kp,gt,{})}}const{document:qa}=gc;function Xa(e,n,t){const r=e.slice();return r[145]=n[t],r}function Ka(e){let n,t,r,o,i,s,l,c,a,h,p,d,b,v,k,M,D,T,A,O,X,G,U,B,x,W,P,q,V,J,$,ne,K,de,me,Ye,Te,Ge,ut,_e,ge,Ue,tt,Me,$e,ae,qe,Xe,Oe,Ze,ft,Fe,Ce,Je,kt,be,Ae,ye,Lt,Ne,S,ie,Ke,Re,ot,St,It,it,$t,Ie,C,H,ht,jt,qt,lt,Xt,Mt,Jt,Nt,Rt=[],Cr=new Map,Er,xn,Lr,Ht,y,Q,fe,he,we,Be,Qt,bt,oi,xr,ii,fn,li,Ar,si,hn,ai,Pr,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,Ai,Vr,Pi,_n,Di,m,Z,ce,Pe,st,nt,rt,Xn,Ti,Ps,Kn,Ds,Oi,Ts,Zn,Os,Ii,Is,Jn,$s,$i,Ms,An,Ns,Mi,Rs,Pn,Hs,Ni,Vs,Qn,Fs,Ri,js,Dn,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,Tn,la,Gi,sa,ar,aa,Ao,ca,On,In,Rl,ua;p=new ke({props:{path:Ku}}),M=new ke({props:{path:Xu}}),X=new ke({props:{path:No}}),W=new ke({props:{path:No}}),$=new ke({props:{path:No}}),Ye=new ke({props:{path:ns}}),ge=new ke({props:{path:ns}}),Ze=new ke({props:{class:"swap-on",path:Qu}}),Fe=new ke({props:{class:"swap-off",path:ef}});let fu={};ye=new Xc({props:fu}),e[77](ye),ye.$on("layoutChange",e[78]),ye.$on("exportImportPreset",e[79]),Ne=new Cp({}),Ne.$on("applyReplacements",e[80]);let qi=e[50];const fa=I=>I[145];for(let I=0;I<qi.length;I+=1){let ee=Xa(e,qi,I),$n=fa(ee);Cr.set($n,Rt[I]=Za($n,ee))}return{c(){n=g("input"),t=_(),r=g("input"),o=_(),i=g("input"),s=_(),l=g("div"),c=g("div"),a=g("div"),h=g("div"),se(p.$$.fragment),d=_(),b=g("span"),b.textContent="Set Timer",v=_(),k=g("div"),se(M.$$.fragment),D=_(),T=g("span"),T.textContent="Reset Timer",A=_(),O=g("div"),se(X.$$.fragment),G=_(),U=g("span"),U.textContent="Reset Lines",B=_(),x=g("div"),se(W.$$.fragment),P=_(),q=g("span"),q.textContent="Reset Data",V=_(),J=g("div"),se($.$$.fragment),ne=_(),K=g("span"),K.textContent="Reset All",de=_(),me=g("div"),se(Ye.$$.fragment),Te=_(),Ge=g("span"),Ge.textContent="Ex-/Import Data",ut=_(),_e=g("div"),se(ge.$$.fragment),Ue=_(),tt=g("span"),tt.textContent="Ex-/Import Settings",Me=_(),$e=g("div"),ae=g("label"),qe=g("input"),Oe=_(),se(Ze.$$.fragment),ft=_(),se(Fe.$$.fragment),Ce=_(),Je=g("span"),Je.textContent="Theme",kt=_(),be=g("details"),be.innerHTML=`<summary>Links</summary>
|
30
|
-
<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>
|
31
|
-
<li class="my-0.5 hover:text-primary"><a href="https://github.com/Artikash/Textractor" target="_blank" rel="noreferrer">Textractor</a></li>
|
32
|
-
<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>
|
33
|
-
<li class="my-0.5 hover:text-primary"><a href="https://github.com/KamWithK/TextractorSender" target="_blank" rel="noreferrer">TextractorSender Extension</a></li>
|
34
|
-
<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>
|
35
|
-
<li class="my-0.5 hover:text-primary"><a href="https://github.com/0xDC00/agent" target="_blank" rel="noreferrer">Agent</a></li>
|
36
|
-
<li class="my-0.5 hover:text-primary"><a href="https://github.com/kmltml/clipboard-inserter" target="_blank" rel="noreferrer">Clipboard Inserter</a></li>
|
37
|
-
<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>`,Ae=_(),se(ye.$$.fragment),Lt=_(),se(Ne.$$.fragment),S=_(),ie=g("span"),ie.textContent="Window Title",Ke=_(),Re=g("input"),ot=_(),St=g("span"),St.textContent="Primary Websocket",It=_(),it=g("input"),$t=_(),Ie=g("span"),Ie.textContent="Secondary Websocket",C=_(),H=g("input"),ht=_(),jt=g("span"),jt.textContent="Font Size",qt=_(),lt=g("input"),Xt=_(),Mt=g("span"),Mt.textContent="Online Font",Jt=_(),Nt=g("select");for(let I=0;I<Rt.length;I+=1)Rt[I].c();Er=_(),xn=g("span"),xn.textContent="Prevent Last Line Duplicate",Lr=_(),Ht=g("input"),y=_(),Q=g("span"),Q.textContent="Max lines",fe=_(),he=g("input"),we=_(),Be=g("span"),Be.textContent="AFK Timer (s)",Qt=_(),bt=g("input"),oi=_(),xr=g("span"),xr.textContent="Adjust Timer after AFK",ii=_(),fn=g("input"),li=_(),Ar=g("span"),Ar.textContent="Enable external Clipboard Monitor",si=_(),hn=g("input"),ai=_(),Pr=g("span"),Pr.textContent="Show Preset Quick Switch",ci=_(),pn=g("input"),ui=_(),Dr=g("span"),Dr.textContent="Skip Reset Confirmations",fi=_(),dn=g("input"),hi=_(),Tr=g("span"),Tr.textContent="Store Stats persistently",pi=_(),en=g("input"),di=_(),Or=g("span"),Or.textContent="Store Notes persistently",mi=_(),tn=g("input"),gi=_(),Ir=g("span"),Ir.textContent="Store Lines persistently",bi=_(),nn=g("input"),vi=_(),$r=g("span"),$r.textContent="Store Action History persistently",_i=_(),rn=g("input"),yi=_(),Mr=g("span"),Mr.textContent="Enable Paste",wi=_(),mn=g("input"),ki=_(),Nr=g("span"),Nr.textContent="Block Copy from Page",Si=_(),gn=g("input"),Ci=_(),Rr=g("span"),Rr.textContent="Allow Paste during Pause",Ei=_(),bn=g("input"),Li=_(),Hr=g("span"),Hr.textContent="Allow new Line during Pause",xi=_(),vn=g("input"),Ai=_(),Vr=g("span"),Vr.textContent="Autostart Timer by Paste during Pause",Pi=_(),_n=g("input"),Di=_(),m=g("span"),m.textContent="Autostart Timer by Line during Pause",Z=_(),ce=g("input"),Pe=_(),st=g("span"),st.textContent="Prevent Global Duplicate",nt=_(),rt=g("input"),Xn=_(),Ti=g("span"),Ti.textContent="Merge equal Line Starts",Ps=_(),Kn=g("input"),Ds=_(),Oi=g("span"),Oi.textContent="Filter lines without jp content",Ts=_(),Zn=g("input"),Os=_(),Ii=g("span"),Ii.textContent="Flash on missed Line",Is=_(),Jn=g("input"),$s=_(),$i=g("span"),$i.textContent="Display Text vertically",Ms=_(),An=g("input"),Ns=_(),Mi=g("span"),Mi.textContent="Reverse Line Order",Rs=_(),Pn=g("input"),Hs=_(),Ni=g("span"),Ni.textContent="Preserve Whitespace",Vs=_(),Qn=g("input"),Fs=_(),Ri=g("span"),Ri.textContent="Remove all Whitespace",js=_(),Dn=g("input"),Us=_(),Hi=g("span"),Hi.textContent="Show Timer",Bs=_(),er=g("input"),Ws=_(),Vi=g("span"),Vi.textContent="Show Speed",zs=_(),tr=g("input"),Ys=_(),Fi=g("span"),Fi.textContent="Show Character Count",Gs=_(),nr=g("input"),qs=_(),ji=g("span"),ji.textContent="Show Line Count",Xs=_(),rr=g("input"),Ks=_(),Ui=g("span"),Ui.textContent="Blur Stats",Zs=_(),or=g("input"),Js=_(),Bi=g("span"),Bi.textContent="Enable Line Animation",Qs=_(),ir=g("input"),ea=_(),Wi=g("span"),Wi.textContent="Enable AFK Blur",ta=_(),lr=g("input"),na=_(),zi=g("span"),zi.textContent="Restart Timer after AFK Blur",ra=_(),sr=g("input"),oa=_(),Yi=g("span"),Yi.textContent="Continuous Reconnect",ia=_(),Tn=g("input"),la=_(),Gi=g("span"),Gi.textContent="Show Connection Errors",sa=_(),ar=g("input"),aa=_(),Ao=g("span"),Ao.textContent="Custom CSS",ca=_(),On=g("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(b,"class","label-text"),f(h,"role","button"),f(h,"class","flex flex-col items-center hover:text-primary"),f(T,"class","label-text"),f(k,"role","button"),f(k,"class","flex flex-col items-center hover:text-primary"),f(U,"class","label-text"),f(O,"role","button"),f(O,"class","flex flex-col items-center hover:text-primary"),f(q,"class","label-text"),f(x,"role","button"),f(x,"class","flex flex-col items-center hover:text-primary"),f(K,"class","label-text"),f(J,"role","button"),f(J,"class","flex flex-col items-center hover:text-primary"),f(Ge,"class","label-text"),f(me,"role","button"),f(me,"class","flex flex-col items-center hover:text-primary"),f(tt,"class","label-text"),f(_e,"role","button"),f(_e,"class","flex flex-col items-center hover:text-primary"),f(qe,"type","checkbox"),qe.checked=Xe=e[4]===Wt.BUSINESS,f(ae,"class","swap swap-rotate"),f(Je,"class","label-text"),f($e,"role","button"),f($e,"class","flex flex-col items-center hover:text-primary"),f(a,"class","flex justify-between text-sm gap-x-5"),f(c,"class","mb-2"),ve(c,"grid-column","1/5"),f(be,"role","button"),f(be,"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(St,"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(H,"class","input input-bordered h-8 col-span-2"),f(jt,"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(Mt,"class","label-text mr-4 col-span-2"),f(Nt,"class","select col-span-2"),e[19]===void 0&&br(()=>e[87].call(Nt)),f(xn,"class","label-text col-span-2"),f(Ht,"type","number"),f(Ht,"class","input input-bordered h-8 col-span-2"),f(Ht,"min","0"),Ht.value=e[16],f(Q,"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(Be,"class","label-text col-span-2"),f(bt,"type","number"),f(bt,"class","input input-bordered h-8 mb-2 col-span-2"),f(bt,"min","0"),f(xr,"class","label-text"),f(fn,"type","checkbox"),f(fn,"class","checkbox checkbox-primary ml-2"),f(Ar,"class","label-text"),f(hn,"type","checkbox"),f(hn,"class","checkbox checkbox-primary ml-2"),f(Pr,"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(An,"type","checkbox"),f(An,"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(Dn,"type","checkbox"),f(Dn,"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(Tn,"type","checkbox"),f(Tn,"class","checkbox checkbox-primary ml-2"),f(Gi,"class","label-text"),f(ar,"type","checkbox"),f(ar,"class","checkbox checkbox-primary ml-2"),f(Ao,"class","label-text"),ve(Ao,"grid-column","1/5"),f(On,"class","p-1 min-h-[10rem] font-mono"),ve(On,"grid-column","1/5"),f(On,"rows","5"),On.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(I,ee){j(I,n,ee),e[70](n),j(I,t,ee),j(I,r,ee),e[71](r),j(I,o,ee),j(I,i,ee),e[72](i),j(I,s,ee),j(I,l,ee),u(l,c),u(c,a),u(a,h),re(p,h,null),u(h,d),u(h,b),u(a,v),u(a,k),re(M,k,null),u(k,D),u(k,T),u(a,A),u(a,O),re(X,O,null),u(O,G),u(O,U),u(a,B),u(a,x),re(W,x,null),u(x,P),u(x,q),u(a,V),u(a,J),re($,J,null),u(J,ne),u(J,K),u(a,de),u(a,me),re(Ye,me,null),u(me,Te),u(me,Ge),u(a,ut),u(a,_e),re(ge,_e,null),u(_e,Ue),u(_e,tt),u(a,Me),u(a,$e),u($e,ae),u(ae,qe),u(ae,Oe),re(Ze,ae,null),u(ae,ft),re(Fe,ae,null),u($e,Ce),u($e,Je),u(l,kt),u(l,be),u(l,Ae),re(ye,l,null),u(l,Lt),re(Ne,l,null),u(l,S),u(l,ie),u(l,Ke),u(l,Re),yt(Re,e[17]),u(l,ot),u(l,St),u(l,It),u(l,it),yt(it,e[11]),u(l,$t),u(l,Ie),u(l,C),u(l,H),yt(H,e[10]),u(l,ht),u(l,jt),u(l,qt),u(l,lt),yt(lt,e[18]),u(l,Xt),u(l,Mt),u(l,Jt),u(l,Nt);for(let $n=0;$n<Rt.length;$n+=1)Rt[$n].m(Nt,null);qr(Nt,e[19]),u(l,Er),u(l,xn),u(l,Lr),u(l,Ht),u(l,y),u(l,Q),u(l,fe),u(l,he),u(l,we),u(l,Be),u(l,Qt),u(l,bt),yt(bt,e[20]),u(l,oi),u(l,xr),u(l,ii),u(l,fn),fn.checked=e[21],u(l,li),u(l,Ar),u(l,si),u(l,hn),hn.checked=e[3],u(l,ai),u(l,Pr),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,Ai),u(l,Vr),u(l,Pi),u(l,_n),_n.checked=e[31],u(l,Di),u(l,m),u(l,Z),u(l,ce),ce.checked=e[32],u(l,Pe),u(l,st),u(l,nt),u(l,rt),rt.checked=e[14],u(l,Xn),u(l,Ti),u(l,Ps),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,An),An.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,Dn),Dn.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,Tn),Tn.checked=e[47],u(l,la),u(l,Gi),u(l,sa),u(l,ar),ar.checked=e[48],u(l,aa),u(l,Ao),u(l,ca),u(l,On),In=!0,Rl||(ua=[L(n,"change",e[58]),L(r,"change",e[59]),L(i,"change",e[60]),L(h,"click",e[53]),L(h,"keyup",Pt),L(k,"click",e[54]),L(k,"keyup",Pt),L(O,"click",e[73]),L(O,"keyup",Pt),L(x,"click",e[74]),L(x,"keyup",Pt),L(J,"click",ph),L(J,"keyup",Pt),L(me,"click",e[55]),L(me,"keyup",Pt),L(_e,"click",e[56]),L(_e,"keyup",Pt),L(qe,"change",e[75]),L($e,"click",e[76]),L($e,"keyup",Pt),L(Re,"input",e[81]),L(it,"input",e[82]),L(it,"change",e[83]),L(H,"input",e[84]),L(H,"change",e[51]),L(lt,"input",e[85]),L(lt,"blur",e[86]),L(Nt,"change",e[87]),L(Ht,"blur",e[62]),L(he,"blur",e[63]),L(bt,"input",e[88]),L(bt,"blur",e[89]),L(fn,"change",e[90]),L(hn,"change",e[91]),L(pn,"change",e[92]),L(dn,"change",e[93]),L(en,"change",e[94]),L(en,"change",e[95]),L(tn,"change",e[96]),L(tn,"change",e[97]),L(nn,"change",e[98]),L(nn,"change",e[99]),L(rn,"change",e[100]),L(rn,"change",e[101]),L(mn,"change",e[102]),L(gn,"change",e[103]),L(bn,"change",e[104]),L(vn,"change",e[105]),L(_n,"change",e[106]),L(ce,"change",e[107]),L(rt,"change",e[108]),L(rt,"change",e[64]),L(Kn,"change",e[109]),L(Zn,"change",e[110]),L(Jn,"change",e[111]),L(An,"change",e[112]),L(An,"change",e[113]),L(Pn,"change",e[114]),L(Pn,"change",e[115]),L(Qn,"change",e[116]),L(Dn,"change",e[117]),L(Dn,"change",e[65]),L(er,"change",e[118]),L(tr,"change",e[119]),L(nr,"change",e[120]),L(rr,"change",e[121]),L(or,"change",e[122]),L(ir,"change",e[123]),L(lr,"change",e[124]),L(sr,"change",e[125]),L(Tn,"change",e[126]),L(Tn,"change",e[127]),L(ar,"change",e[128]),L(On,"blur",e[66]),vu(Hh.call(null,l,e[52]))],Rl=!0)},p(I,ee){(!In||ee[0]&16&&Xe!==(Xe=I[4]===Wt.BUSINESS))&&(qe.checked=Xe);const $n={};ye.$set($n),ee[0]&131072&&Re.value!==I[17]&&yt(Re,I[17]),ee[0]&2048&&it.value!==I[11]&&yt(it,I[11]),ee[0]&1024&&H.value!==I[10]&&yt(H,I[10]),ee[0]&262144&&hl(lt.value)!==I[18]&&yt(lt,I[18]),ee[1]&524288&&(qi=I[50],Rt=Lo(Rt,ee,fa,1,I,qi,Cr,Nt,xl,Za,null,Xa)),ee[0]&524288|ee[1]&524288&&qr(Nt,I[19]),(!In||ee[0]&65536&&Ht.value!==I[16])&&(Ht.value=I[16]),(!In||ee[0]&32768&&he.value!==I[15])&&(he.value=I[15]),ee[0]&1048576&&hl(bt.value)!==I[20]&&yt(bt,I[20]),ee[0]&2097152&&(fn.checked=I[21]),ee[0]&8&&(hn.checked=I[3]),ee[0]&4194304&&(pn.checked=I[22]),ee[0]&4096&&(dn.checked=I[12]),ee[0]&8388608&&(en.checked=I[23]),ee[0]&16777216&&(tn.checked=I[24]),ee[0]&33554432&&(nn.checked=I[25]),ee[0]&67108864&&(rn.checked=I[26]),ee[0]&134217728&&(mn.checked=I[27]),ee[0]&268435456&&(gn.checked=I[28]),ee[0]&536870912&&(bn.checked=I[29]),ee[0]&1073741824&&(vn.checked=I[30]),ee[1]&1&&(_n.checked=I[31]),ee[1]&2&&(ce.checked=I[32]),ee[0]&16384&&(rt.checked=I[14]),ee[1]&4&&(Kn.checked=I[33]),ee[1]&8&&(Zn.checked=I[34]),ee[1]&16&&(Jn.checked=I[35]),ee[1]&32&&(An.checked=I[36]),ee[1]&64&&(Pn.checked=I[37]),ee[1]&128&&(Qn.checked=I[38]),ee[0]&8192&&(Dn.checked=I[13]),ee[1]&256&&(er.checked=I[39]),ee[1]&512&&(tr.checked=I[40]),ee[1]&1024&&(nr.checked=I[41]),ee[1]&2048&&(rr.checked=I[42]),ee[1]&4096&&(or.checked=I[43]),ee[1]&8192&&(ir.checked=I[44]),ee[1]&16384&&(lr.checked=I[45]),ee[1]&32768&&(sr.checked=I[46]),ee[1]&65536&&(Tn.checked=I[47]),ee[1]&131072&&(ar.checked=I[48]),(!In||ee[0]&4)&&(On.value=I[2])},i(I){In||(R(p.$$.fragment,I),R(M.$$.fragment,I),R(X.$$.fragment,I),R(W.$$.fragment,I),R($.$$.fragment,I),R(Ye.$$.fragment,I),R(ge.$$.fragment,I),R(Ze.$$.fragment,I),R(Fe.$$.fragment,I),R(ye.$$.fragment,I),R(Ne.$$.fragment,I),In=!0)},o(I){Y(p.$$.fragment,I),Y(M.$$.fragment,I),Y(X.$$.fragment,I),Y(W.$$.fragment,I),Y($.$$.fragment,I),Y(Ye.$$.fragment,I),Y(ge.$$.fragment,I),Y(Ze.$$.fragment,I),Y(Fe.$$.fragment,I),Y(ye.$$.fragment,I),Y(Ne.$$.fragment,I),In=!1},d(I){I&&F(n),e[70](null),I&&F(t),I&&F(r),e[71](null),I&&F(o),I&&F(i),e[72](null),I&&F(s),I&&F(l),oe(p),oe(M),oe(X),oe(W),oe($),oe(Ye),oe(ge),oe(Ze),oe(Fe),e[77](null),oe(ye),oe(Ne);for(let ee=0;ee<Rt.length;ee+=1)Rt[ee].d();Rl=!1,Et(ua)}}}function Za(e,n){let t,r=n[145]+"",o,i;return{key:e,first:null,c(){t=g("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 Ep(e){let n,t,r,o;qa.title=n=e[17]||"Texthooker UI";let i=e[0]&&Ka(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")&&(qa.title=n),s[0]?i?(i.p(s,l),l[0]&1&&R(i,1)):(i=Ka(s),i.c(),R(i,1),i.m(r.parentNode,r)):i&&(dt(),Y(i,1,1,()=>{i=null}),mt())},i(s){o||(R(i),o=!0)},o(s){Y(i),o=!1},d(s){s&&F(t),i&&i.d(s),s&&F(r)}}}function Lp(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 xp(e,n,t){let r,o,i,s,l,c,a,h,p,d,b,v,k,M,D,T,A,O,X,G,U,B,x,W,P,q,V,J,$,ne,K,de,me,Ye,Te,Ge,ut,_e,ge,Ue,tt,Me,$e,ae,qe,Xe,Oe,Ze,ft,Fe,Ce,Je,kt;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,ze,m=>t(131,c=m)),w(e,ho,m=>t(13,a=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,b=m)),w(e,on,m=>t(133,v=m)),w(e,Rn,m=>t(134,k=m)),w(e,Zo,m=>t(135,M=m)),w(e,ln,m=>t(136,D=m)),w(e,_l,m=>t(137,T=m)),w(e,ll,m=>t(138,A=m)),w(e,kn,m=>t(69,O=m)),w(e,qo,m=>t(3,X=m)),w(e,dr,m=>t(4,G=m)),w(e,Yn,m=>t(5,U=m)),w(e,Go,m=>t(17,B=m)),w(e,mr,m=>t(18,x=m)),w(e,Kr,m=>t(19,W=m)),w(e,Wn,m=>t(20,P=m)),w(e,Zr,m=>t(21,q=m)),w(e,Xo,m=>t(22,V=m)),w(e,Qr,m=>t(23,J=m)),w(e,eo,m=>t(24,$=m)),w(e,to,m=>t(25,ne=m)),w(e,no,m=>t(26,K=m)),w(e,ro,m=>t(27,de=m)),w(e,oo,m=>t(28,me=m)),w(e,io,m=>t(29,Ye=m)),w(e,lo,m=>t(30,Te=m)),w(e,so,m=>t(31,Ge=m)),w(e,ao,m=>t(32,ut=m)),w(e,co,m=>t(33,_e=m)),w(e,bl,m=>t(34,ge=m)),w(e,uo,m=>t(35,Ue=m)),w(e,yr,m=>t(36,tt=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,qe=m)),w(e,go,m=>t(41,Xe=m)),w(e,bo,m=>t(42,Oe=m)),w(e,vo,m=>t(43,Ze=m)),w(e,_o,m=>t(44,ft=m)),w(e,yo,m=>t(45,Fe=m)),w(e,wo,m=>t(46,Ce=m)),w(e,kr,m=>t(47,Je=m)),w(e,ko,m=>t(48,kt=m));let{selectedLineIds:be}=n,{settingsOpen:Ae}=n,{settingsElement:ye}=n;async function Lt(m){if(!s){const{canceled:Z}=await new Promise(ce=>{N(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(Z)return}N(ze,c=[],c),t(67,be=[]),window.localStorage.removeItem("bannou-texthooker-lineData"),m||N(ln,D=0,D)}const Ne=Eo(),S=[jn.OFF,jn.NOTO,jn.KLEE,jn.SHIPPORI];let ie,Ke,Re,ot,St;function It(m){const Z=m.target;Z.setCustomValidity(""),o===r?(Z.setCustomValidity("Duplicate Websocket"),t(10,o=""),N(kn,O="",O)):N(kn,O=Z.value,O),Z.reportValidity()}function it(m){m&&!St?Wo().then(()=>{St=new MutationObserver($t),St.observe(document.body,{childList:!0})}):!m&&St&&(St.disconnect(),St=void 0)}function $t(m){for(let Z=0,{length:ce}=m;Z<ce;Z+=1){const{addedNodes:Pe}=m[Z];for(let st=0,{length:nt}=Pe;st<nt;st+=1){const rt=Pe[Z];(rt==null?void 0:rt.tagName)==="P"&&(So.next([rt.textContent,yn.EXTERNAL,""]),rt.remove())}}}function Ie(m){const Z=m.target;!A&&Z!==ye&&Z.parentElement!==ye&&Z!==ie&&Z!==Ke&&Z!==Re&&!T&&t(0,Ae=!1)}async function C(){const{canceled:m,data:Z}=await new Promise(ce=>{N(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(Z))return new Promise(ce=>{N(He,i={icon:_c,type:"error",message:"Invalid Time value (x:xx:xx)",showCancel:!1,callback:ce},i)});N(ln,D=mh(Z),D)}}async function H(){if(!s){const{canceled:m}=await new Promise(Z=>{N(He,i={icon:Bt,message:"Timer will be set to 00:00:00",callback:Z},i)});if(m)return}N(ln,D=0,D)}async function ht(m){m.altKey?await y(ie,"Existing Data will be overwritten"):Jl("texthooker-ui_data.json",{"bannou-texthooker-timeValue":D,"bannou-texthooker-userNotes":M,"bannou-texthooker-lineData":c,"bannou-texthooker-actionHistory":k})}async function jt(m){m.altKey?await y(Ke,"Presets, Settings etc. will be overwritten"):Jl("texthooker-ui_settings.json",{currentSettings:ot.getCurrentSettings(),settingPresets:v,lastSettingsPreset:b})}async function qt(m){if(m.altKey)await y(Re,"Preset will be overwritten or otherwise added");else if(b){const Z=v.find(ce=>ce.name===b);Z&&Jl("texthooker-ui_preset.json",{name:Z.name,settings:Z.settings})}}async function lt(){const m=await Q(ie).catch(({message:Z})=>{N(He,i={type:"error",message:Z,showCancel:!1},i)});if(m){const Z=Object.entries(m);for(let ce=0,{length:Pe}=Z;ce<Pe;ce+=1){const[st,nt]=Z[ce];switch(st){case"bannou-texthooker-timeValue":N(ln,D=nt,D);break;case"bannou-texthooker-userNotes":N(Zo,M=nt,M);break;case"bannou-texthooker-lineData":N(ze,c=nt,c);break;case"bannou-texthooker-actionHistory":N(Rn,k=nt,k);break}}}t(6,ie.value=null,ie)}async function Xt(){const m=await Q(Ke).catch(({message:Z})=>{N(He,i={type:"error",message:Z,showCancel:!1},i)});m&&(N(on,v=m.settingPresets||[],v),N(Un,b=m.lastSettingsPreset||"",b),m.currentSettings&&ot.updateSettingsWithPreset({name:"",settings:m.currentSettings},!1)),t(7,Ke.value=null,Ke)}async function Mt(){const m=await Q(Re).catch(({message:Z})=>{N(He,i={type:"error",message:Z,showCancel:!1},i)});if(m&&m.name&&m.settings){const Z=v.findIndex(ce=>ce.name===m.name);Z>-1?(N(on,v[Z]=m,v),N(on,v=[...v],v)):N(on,v=[...v,m],v),N(Un,b=m.name,b),ot.updateSettingsWithPreset(m)}t(8,Re.value=null,Re)}async function Jt(m,Z,ce){if(m)return;const{canceled:Pe}=await new Promise(st=>{N(He,i={icon:Bt,message:Z,callback:st},i)});Pe||window.localStorage.removeItem(ce)}function Nt(m){const Z=m.target,ce=Number.parseInt(Z.value||"0"),Pe=ce!==d;!ce||ce<0?N(gr,d=0,d):N(gr,d=ce,d),Z.value=`${d}`,Pe&&Rt()}async function Rt(){if(!d||c.length<2)return;const{canceled:m}=await new Promise(nt=>{N(He,i={icon:Bt,message:"Apply to current lines",callback:nt},i)});if(m)return;const Z=[],ce=new Set,Pe=new Set,st=c.splice(-(d+1));for(let nt=0,{length:rt}=st;nt<rt;nt+=1){const Xn=st[nt];ce.has(Xn.text)?Pe.add(Xn.id):(Z.push(Xn),ce.add(Xn.text))}N(ze,c=[...c,...Z],c),t(67,be=be.filter(nt=>!Pe.has(nt)))}function Cr(m){const Z=m.target,ce=Number.parseInt(Z.value||"0"),Pe=ce!==p;!ce||ce<0?N(pr,p=0,p):N(pr,p=ce,p),Z.value=`${p}`,Pe&&Er()}async function Er(){const m=c.length-p;if(!p||m<1)return;const{canceled:Z}=await new Promise(ce=>{N(He,i={icon:Bt,message:`This will remove the first ${m} line(s)`,callback:ce},i)});Z?N(pr,p=0,p):Ne("maxLinesChange")}async function xn(){if(!h||c.length<2)return;const{canceled:m}=await new Promise(Z=>{N(He,i={icon:Bt,message:"Apply to current lines",callback:Z},i)});if(!m){const Z=new Set,ce=new Set;N(ze,c=c.filter(Pe=>Z.has(Pe.text)?(ce.add(Pe.id),!1):(Z.add(Pe.text),!0)),c),t(67,be=be.filter(Pe=>!ce.has(Pe)))}}async function Lr(){if(a){const{canceled:m}=await new Promise(Z=>{N(He,i={icon:Bt,message:"Apply to current Lines",callback:Z},i)});m||N(ze,c=c.map(Z=>(Z.text=Z.text.replace(/\s/g,"").trim(),Z)),c)}}function Ht(m){N(Ko,l=m.target.value,l)}async function y(m,Z){if(!s){const{canceled:ce}=await new Promise(Pe=>{N(He,i={icon:Bt,message:Z,callback:Pe},i)});if(ce)return}m.click()}function Q(m){return new Promise((Z,ce)=>{const[Pe]=m.files,st=new FileReader;if(!Pe)return Z();if(!Pe.name.endsWith(".json"))return N(He,i={type:"error",message:"Expected json File",showCancel:!1},i),m.value=null,Z();st.addEventListener("loadend",nt=>{try{const rt=JSON.parse(nt.target.result);Z(rt)}catch{ce(new Error("Error parsing File"))}}),st.addEventListener("error",()=>ce(new Error("Failed to read File"))),st.readAsText(Pe,"utf-8")})}function fe(m){ct[m?"unshift":"push"](()=>{ie=m,t(6,ie)})}function he(m){ct[m?"unshift":"push"](()=>{Ke=m,t(7,Ke)})}function we(m){ct[m?"unshift":"push"](()=>{Re=m,t(8,Re)})}const Be=()=>Lt(!0),Qt=()=>Lt(!1),bt=()=>N(dr,G=G===Wt.BUSINESS?Wt.GARDEN:Wt.BUSINESS,G),oi=()=>N(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 Ar(){B=this.value,Go.set(B)}function si(){r=this.value,t(11,r),t(5,U)}const hn=()=>N(Yn,U=r,U);function ai(){o=this.value,t(10,o),t(69,O)}function Pr(){x=hl(this.value),mr.set(x)}const ci=()=>{(!x||x<1)&&N(mr,x=24,x)};function pn(){W=Eu(this),Kr.set(W),t(50,S)}function ui(){P=hl(this.value),Wn.set(P)}const Dr=()=>{(P===null||P<0)&&N(Wn,P=0,P)};function fi(){q=this.checked,Zr.set(q)}function dn(){X=this.checked,qo.set(X)}function hi(){V=this.checked,Xo.set(V)}function Tr(){s=this.checked,Jr.set(s)}function pi(){J=this.checked,Qr.set(J)}const en=()=>Jt(J,"Clear stored stats","bannou-texthooker-timeValue");function di(){$=this.checked,eo.set($)}const Or=()=>Jt($,"Clear stored notes","bannou-texthooker-userNotes");function mi(){ne=this.checked,to.set(ne)}const tn=()=>Jt(ne,"Clear stored lines","bannou-texthooker-lineData");function gi(){K=this.checked,no.set(K)}const Ir=()=>Jt(K,"Clear action history","bannou-texthooker-actionHistory");function bi(){de=this.checked,ro.set(de)}function nn(){me=this.checked,oo.set(me)}function vi(){Ye=this.checked,io.set(Ye)}function $r(){Te=this.checked,lo.set(Te)}function _i(){Ge=this.checked,so.set(Ge)}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(){ge=this.checked,bl.set(ge)}function mn(){Ue=this.checked,uo.set(Ue)}function ki(){tt=this.checked,yr.set(tt)}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(){a=this.checked,ho.set(a)}function Ei(){ae=this.checked,po.set(ae)}function bn(){qe=this.checked,mo.set(qe)}function Li(){Xe=this.checked,go.set(Xe)}function Hr(){Oe=this.checked,bo.set(Oe)}function xi(){Ze=this.checked,vo.set(Ze)}function vn(){ft=this.checked,_o.set(ft)}function Ai(){Fe=this.checked,yo.set(Fe)}function Vr(){Ce=this.checked,wo.set(Ce)}function Pi(){Je=this.checked,kr.set(Je)}const _n=()=>{$l.next(),Ml.next()};function Di(){kt=this.checked,ko.set(kt)}return e.$$set=m=>{"selectedLineIds"in m&&t(67,be=m.selectedLineIds),"settingsOpen"in m&&t(0,Ae=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=O),e.$$.dirty[0]&16&&(document.body.dataset.theme=G),e.$$.dirty[0]&8&&it(X),e.$$.dirty[0]&4&&Lp(l)},[Ae,Lt,l,X,G,U,ie,Ke,Re,ot,o,r,s,a,h,p,d,B,x,W,P,q,V,J,$,ne,K,de,me,Ye,Te,Ge,ut,_e,ge,Ue,tt,Me,$e,ae,qe,Xe,Oe,Ze,ft,Fe,Ce,Je,kt,Ne,S,It,Ie,C,H,ht,jt,qt,lt,Xt,Mt,Jt,Nt,Cr,xn,Lr,Ht,be,ye,O,fe,he,we,Be,Qt,bt,oi,xr,ii,fn,li,Ar,si,hn,ai,Pr,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,Ai,Vr,Pi,_n,Di]}class Ap extends Ot{constructor(n){super(),Tt(this,n,xp,Ep,gt,{selectedLineIds:67,settingsOpen:0,settingsElement:68,handleReset:1},null,[-1,-1,-1,-1,-1])}get handleReset(){return this.$$.ctx[1]}}class Pp{constructor(n=!0){Po(this,"websocketUrl");Po(this,"socket");Po(this,"socketState");Po(this,"subscriptions",[]);this.socketState=n?Ss:Cs,this.subscriptions.push((n?Yn:kn).subscribe(t=>{t!==this.websocketUrl&&(this.websocketUrl=t,this.reloadSocket())}),kr.pipe(Yo(t=>t?(n?$l:Ml).pipe(Ol(()=>{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(["",yn.RESETCHECKBOXES,""]),t=((o=JSON.parse(n.data))==null?void 0:o.sentence)||n.data}catch{}console.log(n.data),So.next([t,yn.SOCKET,((i=JSON.parse(n.data))==null?void 0:i.data.id)||""])}}function Dp(e){let n;return{c(){n=g("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 Tp(e){let n,t,r;return t=new ke({props:{path:Hu,class:"cursor-pointer mx-2"}}),t.$on("click",e[3]),{c(){n=g("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||(R(t.$$.fragment,o),r=!0)},o(o){Y(t.$$.fragment,o),r=!1},d(o){o&&F(n),oe(t)}}}function Op(e){let n,t,r,o;const i=[Tp,Dp],s=[];function l(c,a){return c[0]!==0?0:1}return n=l(e),t=s[n]=i[n](e),{c(){t.c(),r=Gn()},m(c,a){s[n].m(c,a),j(c,r,a),o=!0},p(c,[a]){let h=n;n=l(c),n===h?s[n].p(c,a):(dt(),Y(s[h],1,1,()=>{s[h]=null}),mt(),t=s[n],t?t.p(c,a):(t=s[n]=i[n](c),t.c()),R(t,1),t.m(r.parentNode,r))},i(c){o||(R(t),o=!0)},o(c){Y(t),o=!1},d(c){s[n].d(c),c&&F(r)}}}function Ip(e,n,t){let r,o,i,s,l,c,a,h;w(e,kn,O=>t(9,i=O)),w(e,Yn,O=>t(10,s=O)),w(e,zt,O=>t(11,l=O)),w(e,He,O=>t(12,c=O)),w(e,kr,O=>t(13,a=O)),w(e,ko,O=>t(14,h=O));let{isPrimary:p=!0}=n,d,b=!1,v=!1,k=!1,M=p?Ss:Cs;w(e,M,O=>t(0,o=O)),Ll(()=>(A(),()=>{k=!0,d==null||d.cleanUp()}));function D(O){switch(O){case 0:t(5,v=!1),k=!1;break;case 1:b=!0,t(5,v=!0);break;case 3:const X=p?"primary":"secondary";h&&!k&&b&&(p?s:i)&&(v||!a)&&N(He,c={type:"error",message:v?`Lost Connection to ${X} Websocket`:`Unable to connect to ${X} Websocket`,showCancel:!1},c),N(zt,l=!0,l),b=!0,t(5,v=!1),k||(p?$l:Ml).next();break}t(1,r=T(v))}function T(O){return O?`Connected with ${p?s:i}`:"Not Connected"}async function A(){o===1&&d?(k=!0,d.disconnect()):(d=d||new Pp(p),d.connect())}return e.$$set=O=>{"isPrimary"in O&&t(4,p=O.isPrimary)},e.$$.update=()=>{e.$$.dirty&32&&t(1,r=T(v)),e.$$.dirty&1&&D(o)},[o,r,M,A,p,v]}class uu extends Ot{constructor(n){super(),Tt(this,n,Ip,Op,gt,{isPrimary:4})}}function $p(e){let n,t,r,o,i;return{c(){n=g("div"),t=_(),r=g("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>
|
38
|
-
<span class="sr-only">Loading...</span></div>`,o=_(),i=g("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 Mp extends Ot{constructor(n){super(),Tt(this,n,null,$p,gt,{})}}function Np(e){let n=(e[2]??"")+"",t,r,o=(e[3]??"")+"",i,s,l,c,a,h,p;return{c(){t=at(n),r=_(),i=at(o),s=_(),l=g("div"),c=g("div"),a=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,b){j(d,t,b),j(d,r,b),j(d,i,b),j(d,s,b),j(d,l,b),u(l,c),u(c,a),e[16](l),h||(p=L(l,"pointerleave",e[7]),h=!0)},p(d,[b]){b&4&&n!==(n=(d[2]??"")+"")&&Dt(t,n),b&8&&o!==(o=(d[3]??"")+"")&&Dt(i,o),b&2&&Dt(a,d[1]),b&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 Rp=/[^0-9A-Z○◯々-〇〻ぁ-ゖゝ-ゞァ-ヺー0-9A-Zヲ-ン\p{Radical}\p{Unified_Ideograph}]+/gimu;function Hp(e){return e?Vp(e.replace(Rp,"")):0}function Vp(e){return Array.from(e).length}function Fp(e,n,t){let r,o,i,s,l,c,a,h,p,d,b,v,k,M;w(e,go,V=>t(10,r=V)),w(e,bo,V=>t(11,o=V)),w(e,mo,V=>t(12,i=V)),w(e,po,V=>t(13,s=V)),w(e,ln,V=>t(14,l=V)),w(e,zt,V=>t(19,c=V)),w(e,wo,V=>t(20,a=V)),w(e,yo,V=>t(21,h=V)),w(e,Wn,V=>t(22,p=V)),w(e,Zr,V=>t(23,d=V)),w(e,ze,V=>t(15,b=V)),w(e,vo,V=>t(4,M=V));let D=0,T=0;const A=zt.pipe(Yo(V=>V?(T=0,zo):(D=performance.now(),nh(1e3))),Nn(W),Hn());w(e,A,V=>t(2,v=V));const O=Yf([zt,Wn]).pipe(Yo(([V,J])=>V||J<1?zo:rh(So,Fn(window,"pointermove"),Fn(document,"selectionchange")).pipe(ih(!0),sh(1e3),Nn(()=>T=performance.now()+p*1e3),ws(p*1e3))),Hn());w(e,O,V=>t(3,k=V));let X,G=0,U=0,B="";function x(){const V=window.getSelection();V!=null&&V.toString()&&V.getRangeAt(0).intersectsNode(X)&&V.removeAllRanges()}function W(){const V=T?Math.min(T,performance.now()):performance.now(),J=Math.round((V-D+Number.EPSILON)/1e3);T&&V>=T?(N(zt,c=!0,c),d?N(ln,l=Math.max(0,l+J-p),l):N(ln,l+=J,l),h&&(document.body.style.filter="blur(8px)",document.body.style.pointerEvents="none",document.addEventListener("dblclick",$=>{$.stopPropagation(),window.getSelection().removeAllRanges(),document.body.style.filter=null,document.body.style.pointerEvents="auto",a&&N(zt,c=!1,c)},{once:!0,capture:!1}))):(D=V,N(ln,l+=J,l))}function P(V,J,$,ne){let K="";s&&(K+=dh(V)),i&&(K+=` (${J}/h) `),r&&(K+=` ${$}`),o&&(K+=r?" /":"",K+=` ${ne}`),t(1,B=K.replace(/[ ]+/g," ").trim())}function q(V){ct[V?"unshift":"push"](()=>{X=V,t(0,X)})}return e.$$.update=()=>{if(e.$$.dirty&50688&&r&&b){let V=0;for(let J=0,{length:$}=b;J<$;J+=1)V+=Hp(b[J].text);t(9,U=V),t(8,G=l?Math.ceil(3600*U/l):0)}e.$$.dirty&65280&&(l>-1&&(s||i||r||o)?P(l,G,U,b.length):t(1,B=""))},[X,B,v,k,M,A,O,x,G,U,r,o,i,s,l,b,q]}class jp extends Ot{constructor(n){super(),Tt(this,n,Fp,Np,gt,{})}}const{window:Up}=gc;function Ja(e,n,t){const r=e.slice();return r[84]=n[t],r[85]=n,r[86]=t,r}function Qa(e){let n,t;return n=new Mp({}),{c(){se(n.$$.fragment)},m(r,o){re(n,r,o),t=!0},i(r){t||(R(n.$$.fragment,r),t=!0)},o(r){Y(n.$$.fragment,r),t=!1},d(r){oe(n,r)}}}function ec(e){let n,t;return n=new uu({}),{c(){se(n.$$.fragment)},m(r,o){re(n,r,o),t=!0},i(r){t||(R(n.$$.fragment,r),t=!0)},o(r){Y(n.$$.fragment,r),t=!1},d(r){oe(n,r)}}}function tc(e){let n,t;return n=new uu({props:{isPrimary:!1}}),{c(){se(n.$$.fragment)},m(r,o){re(n,r,o),t=!0},i(r){t||(R(n.$$.fragment,r),t=!0)},o(r){Y(n.$$.fragment,r),t=!1},d(r){oe(n,r)}}}function Bp(e){let n,t,r;return t=new ke({props:{path:zu,width:e[7],height:e[7]}}),t.$on("click",e[44]),{c(){n=g("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||(R(t.$$.fragment,o),r=!0)},o(o){Y(t.$$.fragment,o),r=!1},d(o){o&&F(n),oe(t)}}}function Wp(e){let n,t,r;return t=new ke({props:{path:Gu,width:e[7],height:e[7]}}),t.$on("click",e[43]),{c(){n=g("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||(R(t.$$.fragment,o),r=!0)},o(o){Y(t.$$.fragment,o),r=!1},d(o){o&&F(n),oe(t)}}}function nc(e){let n,t,r,o,i,s;return t=new ke({props:{path:No,width:e[7],height:e[7]}}),t.$on("click",e[34]),i=new ke({props:{path:vc,width:e[7],height:e[7]}}),i.$on("click",e[35]),{c(){n=g("div"),se(t.$$.fragment),r=_(),o=g("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,c){j(l,n,c),re(t,n,null),j(l,r,c),j(l,o,c),re(i,o,null),s=!0},p(l,c){const a={};c[0]&128&&(a.width=l[7]),c[0]&128&&(a.height=l[7]),t.$set(a);const h={};c[0]&128&&(h.width=l[7]),c[0]&128&&(h.height=l[7]),i.$set(h)},i(l){s||(R(t.$$.fragment,l),R(i.$$.fragment,l),s=!0)},o(l){Y(t.$$.fragment,l),Y(i.$$.fragment,l),s=!1},d(l){l&&F(n),oe(t),l&&F(r),l&&F(o),oe(i)}}}function rc(e,n){let t,r,o=n[86],i;const s=()=>n[54](r,o),l=()=>n[54](null,o);let c={line:n[84],index:n[86],isLast:n[9].length-1===n[86]};return r=new Dh({props:c}),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(a,h){j(a,t,h),re(r,a,h),i=!0},p(a,h){n=a,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(a){i||(R(r.$$.fragment,a),i=!0)},o(a){Y(r.$$.fragment,a),i=!1},d(a){a&&F(t),l(),oe(r,a)}}}function oc(e){let n,t,r,o;return t=new Ih({}),{c(){n=g("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||(R(t.$$.fragment,i),i&&(r||br(()=>{r=mc(n,Yc,{x:100,duration:100,easing:ch}),r.start()})),o=!0)},o(i){Y(t.$$.fragment,i),o=!1},d(i){i&&F(n),oe(t)}}}function zp(e){let n=(e[16]??"")+"",t,r,o=(e[17]??"")+"",i,s,l=(e[18]??"")+"",c,a,h=(e[19]??"")+"",p,d,b=(e[20]??"")+"",v,k,M,D,T,A,O,X,G,U,B,x,W,P,q,V,J,$,ne,K,de,me,Ye,Te,Ge,ut,_e,ge,Ue,tt,Me,$e,ae,qe,Xe,Oe=[],Ze=new Map,ft,Fe,Ce,Je,kt,be=e[8]&&Qa();D=new Lh({}),O=new jp({});let Ae=e[21]&&ec(),ye=e[22]&&tc();const Lt=[Wp,Bp],Ne=[];function S(C,H){return C[14]?0:1}B=S(e),x=Ne[B]=Lt[B](e),q=new ke({props:{path:Fu,width:e[7],height:e[7]}}),q.$on("click",e[33]),$=new ke({props:{path:Nu,width:e[7],height:e[7]}}),$.$on("click",e[32]);let ie=e[1].length&&nc(e);me=new ke({props:{path:Wu,width:e[7],height:e[7]}}),me.$on("click",e[45]);function Ke(C){e[46](C)}let Re={class:"cursor-pointer mr-1 hover:text-primary md:mr-2",path:Ru,width:e[7],height:e[7]};e[3]!==void 0&&(Re.element=e[3]),Te=new ke({props:Re}),ct.push(()=>Fl(Te,"element",Ke,e[3])),Te.$on("click",e[47]);function ot(C){e[48](C)}function St(C){e[49](C)}let It={settingsElement:e[3]};e[4]!==void 0&&(It.settingsOpen=e[4]),e[1]!==void 0&&(It.selectedLineIds=e[1]),_e=new Ap({props:It}),ct.push(()=>Fl(_e,"settingsOpen",ot,e[4])),ct.push(()=>Fl(_e,"selectedLineIds",St,e[1])),e[50](_e),_e.$on("applyReplacements",e[51]),_e.$on("layoutChange",e[36]),_e.$on("maxLinesChange",e[52]),Me=new Xc({props:{isQuickSwitch:!0}}),Me.$on("layoutChange",e[36]);let it=e[9];const $t=C=>C[84].id;for(let C=0;C<it.length;C+=1){let H=Ja(e,it,C),ht=$t(H);Ze.set(ht,Oe[C]=rc(ht,H))}let Ie=e[15]&&oc();return{c(){t=at(n),r=_(),i=at(o),s=_(),c=at(l),a=_(),p=at(h),d=_(),v=at(b),k=_(),be&&be.c(),M=_(),se(D.$$.fragment),T=_(),A=g("header"),se(O.$$.fragment),X=_(),Ae&&Ae.c(),G=_(),ye&&ye.c(),U=_(),x.c(),W=_(),P=g("div"),se(q.$$.fragment),V=_(),J=g("div"),se($.$$.fragment),ne=_(),ie&&ie.c(),K=_(),de=g("div"),se(me.$$.fragment),Ye=_(),se(Te.$$.fragment),ut=_(),se(_e.$$.fragment),tt=_(),se(Me.$$.fragment),$e=_(),ae=g("main"),qe=new uc(!1),Xe=_();for(let C=0;C<Oe.length;C+=1)Oe[C].c();ft=_(),Ie&&Ie.c(),Fe=Gn(),f(P,"role","button"),f(P,"title","Delete last Line"),f(P,"class","mr-1 hover:text-primary sm:mr-2"),te(P,"opacity-50",!e[9].length),te(P,"cursor-not-allowed",!e[9].length),te(P,"hover:text-primary",e[9].length),f(J,"role","button"),f(J,"title","Undo last Action"),f(J,"class","mr-1 hover:text-primary sm:mr-2"),te(J,"opacity-50",!e[10].length),te(J,"cursor-not-allowed",!e[10].length),te(J,"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(A,"class","fixed top-0 right-0 flex justify-end items-center p-2 bg-base-100"),qe.a=Xe,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]),ve(ae,"font-size",`${e[23]}px`),ve(ae,"font-family",e[24]!==jn.OFF?e[24]:void 0),ve(ae,"writing-mode",e[12]?"vertical-rl":"horizontal-tb")},m(C,H){j(C,t,H),j(C,r,H),j(C,i,H),j(C,s,H),j(C,c,H),j(C,a,H),j(C,p,H),j(C,d,H),j(C,v,H),j(C,k,H),be&&be.m(C,H),j(C,M,H),re(D,C,H),j(C,T,H),j(C,A,H),re(O,A,null),u(A,X),Ae&&Ae.m(A,null),u(A,G),ye&&ye.m(A,null),u(A,U),Ne[B].m(A,null),u(A,W),u(A,P),re(q,P,null),u(A,V),u(A,J),re($,J,null),u(A,ne),ie&&ie.m(A,null),u(A,K),u(A,de),re(me,de,null),u(A,Ye),re(Te,A,null),u(A,ut),re(_e,A,null),u(A,tt),re(Me,A,null),e[53](A),j(C,$e,H),j(C,ae,H),qe.m(qc,ae),u(ae,Xe);for(let ht=0;ht<Oe.length;ht+=1)Oe[ht].m(ae,null);e[57](ae),j(C,ft,H),Ie&&Ie.m(C,H),j(C,Fe,H),Ce=!0,Je||(kt=L(Up,"keyup",e[31]),Je=!0)},p(C,H){(!Ce||H[0]&65536)&&n!==(n=(C[16]??"")+"")&&Dt(t,n),(!Ce||H[0]&131072)&&o!==(o=(C[17]??"")+"")&&Dt(i,o),(!Ce||H[0]&262144)&&l!==(l=(C[18]??"")+"")&&Dt(c,l),(!Ce||H[0]&524288)&&h!==(h=(C[19]??"")+"")&&Dt(p,h),(!Ce||H[0]&1048576)&&b!==(b=(C[20]??"")+"")&&Dt(v,b),C[8]?be?H[0]&256&&R(be,1):(be=Qa(),be.c(),R(be,1),be.m(M.parentNode,M)):be&&(dt(),Y(be,1,1,()=>{be=null}),mt()),C[21]?Ae?H[0]&2097152&&R(Ae,1):(Ae=ec(),Ae.c(),R(Ae,1),Ae.m(A,G)):Ae&&(dt(),Y(Ae,1,1,()=>{Ae=null}),mt()),C[22]?ye?H[0]&4194304&&R(ye,1):(ye=tc(),ye.c(),R(ye,1),ye.m(A,U)):ye&&(dt(),Y(ye,1,1,()=>{ye=null}),mt());let ht=B;B=S(C),B===ht?Ne[B].p(C,H):(dt(),Y(Ne[ht],1,1,()=>{Ne[ht]=null}),mt(),x=Ne[B],x?x.p(C,H):(x=Ne[B]=Lt[B](C),x.c()),R(x,1),x.m(A,W));const jt={};H[0]&128&&(jt.width=C[7]),H[0]&128&&(jt.height=C[7]),q.$set(jt),(!Ce||H[0]&512)&&te(P,"opacity-50",!C[9].length),(!Ce||H[0]&512)&&te(P,"cursor-not-allowed",!C[9].length),(!Ce||H[0]&512)&&te(P,"hover:text-primary",C[9].length);const qt={};H[0]&128&&(qt.width=C[7]),H[0]&128&&(qt.height=C[7]),$.$set(qt),(!Ce||H[0]&1024)&&te(J,"opacity-50",!C[10].length),(!Ce||H[0]&1024)&&te(J,"cursor-not-allowed",!C[10].length),(!Ce||H[0]&1024)&&te(J,"hover:text-primary",C[10].length),C[1].length?ie?(ie.p(C,H),H[0]&2&&R(ie,1)):(ie=nc(C),ie.c(),R(ie,1),ie.m(A,K)):ie&&(dt(),Y(ie,1,1,()=>{ie=null}),mt());const lt={};H[0]&128&&(lt.width=C[7]),H[0]&128&&(lt.height=C[7]),me.$set(lt);const Xt={};H[0]&128&&(Xt.width=C[7]),H[0]&128&&(Xt.height=C[7]),!Ge&&H[0]&8&&(Ge=!0,Xt.element=C[3],Hl(()=>Ge=!1)),Te.$set(Xt);const Mt={};H[0]&8&&(Mt.settingsElement=C[3]),!ge&&H[0]&16&&(ge=!0,Mt.settingsOpen=C[4],Hl(()=>ge=!1)),!Ue&&H[0]&2&&(Ue=!0,Mt.selectedLineIds=C[1],Hl(()=>Ue=!1)),_e.$set(Mt),H[0]&578|H[1]&64&&(it=C[9],dt(),Oe=Lo(Oe,H,$t,1,C,it,Ze,ae,bc,rc,null,Ja),mt()),(!Ce||H[0]&4096)&&te(ae,"py-16",!C[12]),(!Ce||H[0]&4096)&&te(ae,"py-8",C[12]),(!Ce||H[0]&32768)&&te(ae,"opacity-50",C[15]),(!Ce||H[0]&8192)&&te(ae,"flex-col-reverse",C[13]),H[0]&8388608&&ve(ae,"font-size",`${C[23]}px`),H[0]&16777216&&ve(ae,"font-family",C[24]!==jn.OFF?C[24]:void 0),H[0]&4096&&ve(ae,"writing-mode",C[12]?"vertical-rl":"horizontal-tb"),C[15]?Ie?H[0]&32768&&R(Ie,1):(Ie=oc(),Ie.c(),R(Ie,1),Ie.m(Fe.parentNode,Fe)):Ie&&(dt(),Y(Ie,1,1,()=>{Ie=null}),mt())},i(C){if(!Ce){R(be),R(D.$$.fragment,C),R(O.$$.fragment,C),R(Ae),R(ye),R(x),R(q.$$.fragment,C),R($.$$.fragment,C),R(ie),R(me.$$.fragment,C),R(Te.$$.fragment,C),R(_e.$$.fragment,C),R(Me.$$.fragment,C);for(let H=0;H<it.length;H+=1)R(Oe[H]);R(Ie),Ce=!0}},o(C){Y(be),Y(D.$$.fragment,C),Y(O.$$.fragment,C),Y(Ae),Y(ye),Y(x),Y(q.$$.fragment,C),Y($.$$.fragment,C),Y(ie),Y(me.$$.fragment,C),Y(Te.$$.fragment,C),Y(_e.$$.fragment,C),Y(Me.$$.fragment,C);for(let H=0;H<Oe.length;H+=1)Y(Oe[H]);Y(Ie),Ce=!1},d(C){C&&F(t),C&&F(r),C&&F(i),C&&F(s),C&&F(c),C&&F(a),C&&F(p),C&&F(d),C&&F(v),C&&F(k),be&&be.d(C),C&&F(M),oe(D,C),C&&F(T),C&&F(A),oe(O),Ae&&Ae.d(),ye&&ye.d(),Ne[B].d(),oe(q),oe($),ie&&ie.d(),oe(me),oe(Te),e[50](null),oe(_e),oe(Me),e[53](null),C&&F($e),C&&F(ae);for(let H=0;H<Oe.length;H+=1)Oe[H].d();e[57](null),C&&F(ft),Ie&&Ie.d(C),C&&F(Fe),Je=!1,kt()}}}const Yp=/[\p{scx=Hira}\p{scx=Kana}\p{scx=Han}]/imu;function Gp(e,n,t){let r,o,i,s,l,c,a,h,p,d,b,v,k,M,D,T,A,O,X,G,U,B,x,W,P,q,V,J,$,ne,K,de,me,Ye,Te,Ge;w(e,co,y=>t(62,i=y)),w(e,ll,y=>t(8,s=y)),w(e,ze,y=>t(9,l=y)),w(e,He,y=>t(63,c=y)),w(e,pr,y=>t(64,a=y)),w(e,Rn,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,b=y)),w(e,ho,y=>t(68,v=y)),w(e,as,y=>t(11,k=y)),w(e,dr,y=>t(69,M=y)),w(e,ss,y=>t(70,D=y)),w(e,yr,y=>t(12,T=y)),w(e,wr,y=>t(13,A=y)),w(e,il,y=>t(71,O=y)),w(e,Yt,y=>t(42,X=y)),w(e,uo,y=>t(72,G=y)),w(e,zt,y=>t(14,U=y)),w(e,ao,y=>t(73,B=y)),w(e,so,y=>t(74,x=y)),w(e,lo,y=>t(75,W=y)),w(e,io,y=>t(76,P=y)),w(e,_l,y=>t(77,q=y)),w(e,vl,y=>t(15,V=y)),w(e,Yn,y=>t(21,me=y)),w(e,kn,y=>t(22,Ye=y)),w(e,mr,y=>t(23,Te=y)),w(e,Kr,y=>t(24,Ge=y));let ut=!1,_e,ge=[],Ue,tt,Me=!1,$e,ae=[],qe=!1,Xe=!1,Oe=null;Lt();const Ze="wakeLock"in navigator,ft=_r.pipe(Tl(y=>y?new Set(l.map(Q=>Q.text)):new Set));w(e,ft,y=>t(61,o=y));const Fe=So.pipe(Ol(([y,Q,fe])=>{const he=Q===yn.TL,we=Q===yn.RESETCHECKBOXES,Be=Q===yn.PASTE,Qt=!Be||!V&&!q&&!Me&&!qe,bt=Xe&&Q===yn.EXTERNAL;return bt&&(Xe=!1),we?(Ne(),!1):he?!0:(!U||(P||x)&&Be||(W||B)&&!Be)&&Qt&&!bt?(U&&(x&&Be||B&&!Be)&&N(zt,U=!1,U),!0):(!bt&&Qt&&G&&St(),!1)}),Nn(y=>{const[Q]=y,fe=It(Q),he=y.at(2)||gh();N(il,O=[...O,he],O),fe&&N(ze,l=C([...$t(1),{id:he,text:fe}]),l)}),Hn());w(e,Fe,y=>t(17,$=y));const Ce=ro.pipe(Yo(y=>y?Fn(document,"paste"):zo),Nn(y=>So.next([y.clipboardData.getData("text/plain"),yn.PASTE,""])),Hn());w(e,Ce,y=>t(18,ne=y));const Je=Fn(document,"visibilitychange").pipe(Nn(()=>{Ze&&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)))}),Hn());w(e,Je,y=>t(16,J=y));const kt=oo.pipe(Yo(y=>(Xe=!1,y?Fn(document,"copy"):zo)),Nn(()=>Xe=!0),Hn());w(e,kt,y=>t(19,K=y));const be=Fn(window,"resize").pipe(ws(500),Nn(Ae),Hn());w(e,be,y=>t(20,de=y)),Ll(()=>{Ae(),Ze&&(Oe=navigator.wakeLock.request("screen").then(y=>y).catch(y=>(console.error(`Unable to aquire screen lock: ${y.message}`),null)))});function Ae(){t(41,ut=window.matchMedia("(min-width: 640px)").matches),ot()}function ye(y){var Q;if(y.key==="Delete"){if((Q=window.getSelection())!=null&&Q.toString().trim()){const fe=window.getSelection().getRangeAt(0);for(let he=0,{length:we}=ae;he<we;he+=1){const Be=ae[he],Qt=Be==null?void 0:Be.getIdIfSelected(fe);Qt&&ge.push(Qt)}}ge.length?Ke():y.altKey&&ie()}else ge.length&&y.key==="Escape"?Re():y.altKey&&y.key==="a"?_e.handleReset(!1):y.altKey&&y.key==="q"&&_e.handleReset(!0)}function Lt(){setInterval(async()=>{try{const y=await fetch("/get_ids");if(!y.ok)throw new Error(`HTTP error! Status: ${y.status}`);N(il,O=await y.json(),O)}catch(y){console.error("Failed to fetch ids:",y)}},1e3)}function Ne(){l.forEach(y=>{const Q=document.getElementById(`multi-line-checkbox-${y.id}`);Q&&typeof Q.checked=="boolean"?Q.checked=!1:console.warn(`Checkbox with ID 'multi-line-checkbox-${y.id}' not found or is not a valid checkbox element.`)})}async function S(){if(!h.length)return;const y=h.pop();let Q=y.pop();for(;Q;){const fe=It(Q.text,!1);if(fe){const{id:he,index:we}=Q;we>l.length-1?l.push({id:he,text:fe}):l[we].id===he?N(ze,l[we]={id:he,text:fe},l):l.splice(we,0,{id:he,text:fe})}Q=y.pop()}await Wo(),N(ze,l=C($t()),l),Rn.set(h)}function ie(){if(!l.length)return;const[y]=l.splice(l.length-1,1);t(1,ge=ge.filter(Q=>Q!==y.id)),ze.set(l),N(Rn,h=[...h,[{...y,index:l.length}]],h),o.delete(y.text)}function Ke(){const y=new Set(ge),Q=[];N(ze,l=l.filter((fe,he)=>{const we=y.has(fe.id);return y.delete(fe.id),we&&(Q.push({...fe,index:he-Q.length}),o.delete(fe.text)),!we}),l),t(1,ge=y.size?[...y]:[]),Q.length&&N(Rn,h=[...h,Q],h)}function Re(){var y;for(let Q=0,{length:fe}=ae;Q<fe;Q+=1)(y=ae[Q])==null||y.deselect();t(1,ge=[])}function ot(){Es(window,$e,A,T)}function St(){clearTimeout(D),M===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]"),N(ss,D=window.setTimeout(()=>{M===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 It(y,Q=!0){const fe=Q?Gc(y,k):y;let he=!0,we=v?fe.replace(/\s/gm,"").trim():fe;return b&&!we.match(Yp)&&(we=""),we?d?(he=!o.has(we),o.add(we)):p&&l.length&&(he=l.slice(-p).every(Be=>Be.text!==we)):he=!1,he?we:void 0}function it(y){const{inEdit:Q,data:fe}=y.detail;if(fe&&fe.originalText!==fe.newText){const he=It(fe.newText);N(ze,l[fe.lineIndex]={id:fe.line.id,text:he},l),he?(N(Rn,h=[...h,[{...fe.line,index:fe.lineIndex}]],h),o.delete(fe.originalText),o.add(he)):Wo().then(()=>N(ze,l[fe.lineIndex]={id:fe.line.id,text:fe.originalText},l))}qe=Q}function $t(y=0){const Q=new Set,fe=a?l.length-a+y:0,he=fe>0?l.filter((we,Be)=>Be<fe?(Q.add(we.id),o.delete(we.text),!1):!0):l;return Q.size&&t(1,ge=ge.filter(we=>!Q.has(we))),he}function Ie(y){if(y){N(ll,s=!0,s);try{for(let Q=0,{length:fe}=l;Q<fe;Q+=1){const he=l[Q],we=It(he.text);we&&we!==he.text&&(o.delete(he.text),N(ze,l[Q]={...he,text:we},l))}N(He,c={message:"Operation executed",showCancel:!1},c)}catch({message:Q}){N(He,c={type:"error",message:`An Error occured: ${Q}`,showCancel:!1},c)}N(ze,l=C($t()),l),N(ll,s=!1,s)}}function C(y){if(!i||y.length<2)return y;const Q=y.length-1,fe=Q-1,he=y[Q],we=y[fe].text;return he.text.startsWith(we)&&(o.delete(we),t(1,ge=ge.filter(Be=>Be!==y[fe].id)),y.splice(fe,2,he)),y}const H=()=>N(zt,U=!1,U),ht=()=>N(zt,U=!0,U),jt=()=>N(vl,V=!0,V);function qt(y){tt=y,t(3,tt)}const lt=()=>t(4,Me=!Me);function Xt(y){Me=y,t(4,Me)}function Mt(y){ge=y,t(1,ge)}function Jt(y){ct[y?"unshift":"push"](()=>{_e=y,t(0,_e)})}const Nt=()=>Ie(!!k.length),Rt=()=>N(ze,l=$t(),l);function Cr(y){ct[y?"unshift":"push"](()=>{Ue=y,t(2,Ue)})}function Er(y,Q){ct[y?"unshift":"push"](()=>{ae[Q]=y,t(6,ae)})}const xn=({detail:y})=>{t(1,ge=[...ge,y])},Lr=({detail:y})=>{t(1,ge=ge.filter(Q=>Q!==y))};function Ht(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&&N(as,k=X.filter(y=>y.enabled),k)},[_e,ge,Ue,tt,Me,$e,ae,r,s,l,h,k,T,A,U,V,J,$,ne,K,de,me,Ye,Te,Ge,ft,Fe,Ce,Je,kt,be,ye,S,ie,Ke,Re,ot,it,$t,Ie,Lt,ut,X,H,ht,jt,qt,lt,Xt,Mt,Jt,Nt,Rt,Cr,Er,xn,Lr,Ht]}class qp extends Ot{constructor(n){super(),Tt(this,n,Gp,zp,gt,{startIdPolling:40},null,[-1,-1,-1])}get startIdPolling(){return this.$$.ctx[40]}}new qp({target:document.body});
|
28
|
+
`;function bh(e){let n,t,r,o;return{c(){n=Ql("svg"),t=Ql("path"),f(t,"d",e[1]),ve(n,"width",e[2]),ve(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=[L(n,"click",e[5]),L(n,"keyup",e[6])],r=!0)},p(i,[s]){s&2&&f(t,"d",i[1]),s&4&&ve(n,"width",i[2]),s&8&&ve(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,St(o)}}}function vh(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){zo.call(this,e,p)}function c(p){zo.call(this,e,p)}function h(p){pt[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 Mt{constructor(n){super(),$t(this,n,vh,bh,_t,{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||(R(n.$$.fragment,r),t=!0)},o(r){Y(n.$$.fragment,r),t=!1},d(r){oe(n,r)}}}function _h(e){let n;return{c(){n=ht(e[2])},m(t,r){j(t,n,r)},p(t,r){r&4&&It(n,t[2])},d(t){t&&F(n)}}}function yh(e){let n,t=e[5]==="text"&&Sa(e);return{c(){n=g("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=g("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=L(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=g("button"),n.textContent="Cancel",f(n,"class","btn btn-sm btn-ghost")},m(o,i){j(o,n,i),t||(r=L(n,"click",e[9]),t=!0)},p:xe,d(o){o&&F(n),t=!1,r()}}}function wh(e){let n,t,r,o,i,s,l,a,c,h,p,d,b=e[1]&&ka(e);function y(T,P){return T[5]?yh:_h}let S=y(e),$=S(e),D=e[4]&&Ca(e);return{c(){n=g("div"),t=g("div"),r=g("div"),b&&b.c(),o=w(),i=g("span"),$.c(),s=w(),l=g("div"),D&&D.c(),a=w(),c=g("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),b&&b.m(r,null),u(r,o),u(r,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=L(c,"click",e[10]),p=!0)},p(T,[P]){T[1]?b?(b.p(T,P),P&2&&R(b,1)):(b=ka(T),b.c(),R(b,1),b.m(r,o)):b&&(bt(),Y(b,1,1,()=>{b=null}),vt()),S===(S=y(T))&&$?$.p(T,P):($.d(1),$=S(T),$&&($.c(),$.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||(R(b),h=!0)},o(T){Y(b),h=!1},d(T){T&&F(n),b&&b.d(),$.d(),D&&D.d(),p=!1,d()}}}function kh(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=xo();function p(y){const S=y.target;t(0,a=S.value)}const d=()=>{c==null||c({canceled:!0,data:a}),h("close")},b=()=>{c==null||c({canceled:!1,data:a}),h("close")};return e.$$set=y=>{"icon"in y&&t(1,r=y.icon),"message"in y&&t(2,o=y.message),"type"in y&&t(3,i=y.type),"showCancel"in y&&t(4,s=y.showCancel),"askForData"in y&&t(5,l=y.askForData),"dataValue"in y&&t(0,a=y.dataValue),"callback"in y&&t(6,c=y.callback)},[a,r,o,i,s,l,c,h,p,d,b]}class Sh extends Mt{constructor(n){super(),$t(this,n,kh,wh,_t,{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=mu(o,r[i]);return n=new Sh({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?Iu(r,[$u(i[0])]):{};n.$set(l)},i(i){t||(R(n.$$.fragment,i),t=!0)},o(i){Y(n.$$.fragment,i),t=!1},d(i){oe(n,i)}}}function Ch(e){let n,t,r=e[0]&&Ea(e);return{c(){r&&r.c(),n=Xn()},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&&R(r,1)):(r=Ea(o),r.c(),R(r,1),r.m(n.parentNode,n)):r&&(bt(),Y(r,1,1,()=>{r=null}),vt())},i(o){t||(R(r),t=!0)},o(o){Y(r),t=!1},d(o){r&&r.d(o),o&&F(n)}}}function Eh(e,n,t){let r;k(e,_l,a=>t(2,r=a));let o,i=[];const s=Ve.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()),N(_l,r=!!o,r)}return fc(()=>s==null?void 0:s.unsubscribe()),[o,l]}class Lh extends Mt{constructor(n){super(),$t(this,n,Eh,Ch,_t,{})}}function La(e){let n,t,r,o,i;return{c(){n=g("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=L(n,"change",e[14]),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,l,a;return{c(){n=g("div"),t=g("button"),t.textContent="📷",r=w(),o=g("button"),o.textContent="🔊",i=w(),s=g("button"),s.textContent="🌐",f(t,"title","Screenshot"),ve(t,"background-color","#333"),ve(t,"color","#fff"),ve(t,"border","1px solid #555"),ve(t,"padding","6px 10px"),ve(t,"font-size","10px"),ve(t,"border-radius","4px"),ve(t,"cursor","pointer"),ve(t,"transition","background-color 0.3s"),f(t,"tabindex","-1"),f(t,"class","svelte-1e1volb"),f(o,"title","Audio"),ve(o,"background-color","#333"),ve(o,"color","#fff"),ve(o,"border","1px solid #555"),ve(o,"padding","6px 10px"),ve(o,"font-size","10px"),ve(o,"border-radius","4px"),ve(o,"cursor","pointer"),ve(o,"transition","background-color 0.3s"),f(o,"tabindex","-1"),f(o,"class","svelte-1e1volb"),f(s,"title","Translate"),ve(s,"background-color","#333"),ve(s,"color","#fff"),ve(s,"border","1px solid #555"),ve(s,"padding","6px 10px"),ve(s,"font-size","10px"),ve(s,"border-radius","4px"),ve(s,"cursor","pointer"),ve(s,"transition","background-color 0.3s"),f(s,"tabindex","-1"),f(s,"class","svelte-1e1volb"),f(n,"class","textline-buttons unselectable svelte-1e1volb")},m(c,h){j(c,n,h),u(n,t),u(n,r),u(n,o),u(n,i),u(n,s),l||(a=[L(t,"click",e[16]),L(o,"click",e[17]),L(s,"click",e[18])],l=!0)},p:xe,d(c){c&&F(n),l=!1,St(a)}}}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),b=c&&xa(e);return{c(){n=g("div"),d&&d.c(),r=w(),o=g("p"),s=ht(i),a=w(),b&&b.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(y,S){j(y,n,S),d&&d.m(n,null),u(n,r),u(n,o),u(o,s),e[15](o),u(n,a),b&&b.m(n,null),h||(p=[L(o,"dblclick",e[8]),L(o,"keyup",Ot)],h=!0)},p(y,S){e=y,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+"")&&It(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?b?b.p(e,S):(b=xa(e),b.c(),b.m(n,null)):b&&(b.d(1),b=null)},i(y){l||yr(()=>{l=mc(o,Yc,{x:e[5]?100:-100,duration:e[4]?250:0}),l.start()})},o:xe,d(y){y&&F(n),d&&d.d(),e[15](null),b&&b.d(),h=!1,St(p)}}}function xh(e){let n=e[0].text,t,r,o,i=Pa(e);return{c(){i.c(),t=w(),r=new uc(!1),o=Xn(),r.a=o},m(s,l){i.m(s,l),j(s,t,l),r.m(qc,s,l),j(s,o,l)},p(s,[l]){l&1&&_t(n,n=s[0].text)?(bt(),Y(i,1,1,xe),vt(),i=Pa(s),i.c(),R(i,1),i.m(t.parentNode,t)):i.p(s,l)},i(s){R(i)},o(s){Y(i)},d(s){i.d(s),s&&F(t),s&&F(o),s&&r.d()}}}async function Ph(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 Ah(e,n,t){let r,o,i,s,l,a;k(e,Ge,A=>t(20,r=A)),k(e,ko,A=>t(4,o=A)),k(e,Sr,A=>t(5,i=A)),k(e,Cr,A=>t(21,s=A)),k(e,il,A=>t(6,l=A)),k(e,mo,A=>t(7,a=A));let{line:c}=n,{index:h}=n,{isLast:p}=n;function d(){t(2,D=!1)}function b(A){return D||A.intersectsNode(S)?c.id:void 0}const y=xo();let S,$="",D=!1,T=!1;Ll(()=>{p&&Es(window,S.parentElement.parentElement,s,i,o?"smooth":"auto")}),fc(()=>{document.removeEventListener("click",I,!1),y("edit",{inEdit:!1})});function P(A){var q;(q=window.getSelection())==null||q.removeAllRanges(),A.ctrlKey||A.metaKey?D?(t(2,D=!1),y("deselected",c.id)):(t(2,D=!0),y("selected",c.id)):($=S.innerText,t(3,T=!0),y("edit",{inEdit:!0}),document.addEventListener("click",I,!1),Yo().then(()=>{S.focus()}))}function I(A){const q=A.target;S.contains(q)||(t(3,T=!1),document.removeEventListener("click",I,!1),y("edit",{inEdit:!1,data:{originalText:$,newText:S.innerText,lineIndex:h,line:c}}))}function X(A,q){console.log(A);let J={TL:"/translate-line",Screenshot:"/get-screenshot",Audio:"/play-audio"}[q]??"";fetch(J,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:A})}).then(M=>{if(!M.ok)throw new Error(`HTTP error! Status: ${M.status}`);return M.json()}).then(M=>{q==="TL"&&(t(0,c.text=c.text+`
|
29
|
+
`+M.TL,c),N(Ge,r[h]=c,r)),console.log(`${q} action completed for event ID: ${A}`,M)}).catch(M=>{console.error(`Error performing ${q} action for event ID: ${A}`,M)})}const G=()=>Ph(c.id);function U(A){pt[A?"unshift":"push"](()=>{S=A,t(1,S)})}const B=()=>X(c.id,"Screenshot"),x=()=>X(c.id,"Audio"),W=()=>X(c.id,"TL");return e.$$set=A=>{"line"in A&&t(0,c=A.line),"index"in A&&t(10,h=A.index),"isLast"in A&&t(11,p=A.isLast)},[c,S,D,T,o,i,l,a,P,X,h,p,d,b,G,U,B,x,W]}class Dh extends Mt{constructor(n){super(),$t(this,n,Ah,xh,_t,{line:0,index:10,isLast:11,deselect:12,getIdIfSelected:13})}get deselect(){return this.$$.ctx[12]}get getIdIfSelected(){return this.$$.ctx[13]}}function Th(e){let n,t,r,o,i,s,l,a;return r=new we({props:{path:_c}}),{c(){n=g("div"),t=g("div"),se(r.$$.fragment),o=w(),i=g("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"),ve(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=[L(t,"click",e[3]),L(t,"keyup",Ot),L(i,"blur",e[2])],l=!0)},p(c,[h]){(!s||h&1)&&(i.value=c[0])},i(c){s||(R(r.$$.fragment,c),s=!0)},o(c){Y(r.$$.fragment,c),s=!1},d(c){c&&F(n),oe(r),c&&F(o),c&&F(i),l=!1,St(a)}}}function Oh(e,n,t){let r,o;k(e,Qo,l=>t(0,r=l)),k(e,vl,l=>t(1,o=l));function i(l){N(Qo,r=l.target.value,r)}return[r,o,i,()=>N(vl,o=!1,o)]}class Ih extends Mt{constructor(n){super(),$t(this,n,Oh,Th,_t,{})}}function Aa(e,n,t){const r=e.slice();return r[58]=n[t],r}function Da(e,n,t){const r=e.slice();return r[58]=n[t],r}function $h(e){let n,t,r,o,i,s=[],l=new Map,a,c,h,p,d,b,y,S,$,D,T,P,I,X,G,U,B,x,W,A,q,H,J,M=e[2].length?e[2]:e[4];const ne=K=>K[58].name;for(let K=0;K<M.length;K+=1){let de=Aa(e,M,K),ge=ne(de);l.set(ge,s[K]=Ta(ge,de))}return h=new we({props:{path:Vu}}),S=new we({props:{path:ns}}),I=new we({props:{path:qu}}),x=new we({props:{path:Ho}}),{c(){n=g("details"),t=g("summary"),t.textContent="Presets",r=w(),o=g("div"),i=g("select");for(let K=0;K<s.length;K+=1)s[K].c();a=w(),c=g("div"),se(h.$$.fragment),p=w(),d=g("span"),d.textContent="Save",b=w(),y=g("div"),se(S.$$.fragment),$=w(),D=g("span"),D.textContent="Export/Import",T=w(),P=g("div"),se(I.$$.fragment),X=w(),G=g("span"),G.textContent="Reload",U=w(),B=g("div"),se(x.$$.fragment),W=w(),A=g("span"),A.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(y,"role","button"),f(y,"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(A,"class","label-text"),f(B,"role","button"),f(B,"class","flex flex-col items-center hover:text-primary ml-3"),te(B,"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(K,de){j(K,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);Zr(i,e[1]),u(o,a),u(o,c),re(h,c,null),u(c,p),u(c,d),u(o,b),u(o,y),re(S,y,null),u(y,$),u(y,D),u(o,T),u(o,P),re(I,P,null),u(P,X),u(P,G),u(o,U),u(o,B),re(x,B,null),u(B,W),u(B,A),q=!0,H||(J=[L(i,"change",e[6]),L(c,"click",e[8]),L(c,"keyup",Ot),L(y,"click",e[12]),L(y,"keyup",Ot),L(P,"click",e[13]),L(P,"keyup",Ot),L(B,"click",e[9]),L(B,"keyup",Ot)],H=!0)},p(K,de){de[0]&20&&(M=K[2].length?K[2]:K[4],s=Po(s,de,ne,1,K,M,l,i,xl,Ta,null,Aa)),(!q||de[0]&22)&&Zr(i,K[1]),(!q||de[0]&2)&&te(P,"invisible",!K[1]),(!q||de[0]&2)&&te(B,"invisible",!K[1])},i(K){q||(R(h.$$.fragment,K),R(S.$$.fragment,K),R(I.$$.fragment,K),R(x.$$.fragment,K),q=!0)},o(K){Y(h.$$.fragment,K),Y(S.$$.fragment,K),Y(I.$$.fragment,K),Y(x.$$.fragment,K),q=!1},d(K){K&&F(n);for(let de=0;de<s.length;de+=1)s[de].d();oe(h),oe(S),oe(I),oe(x),H=!1,St(J)}}}function Mh(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=Da(e,s,a),h=l(c);r.set(h,t[a]=Oa(h,c))}return{c(){n=g("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);Zr(n,e[1]),o||(i=L(n,"change",e[6]),o=!0)},p(a,c){c[0]&20&&(s=a[2].length?a[2]:a[4],t=Po(t,c,l,1,a,s,r,n,xl,Oa,null,Da)),c[0]&22&&Zr(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 Ta(e,n){let t,r=(n[58].name||"No Presets stored")+"",o,i,s;return{key:e,first:null,c(){t=g("option"),o=ht(r),i=w(),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")+"")&&It(o,r),a[0]&4&&s!==(s=n[58].name)&&(t.__value=s,t.value=t.__value)},d(l){l&&F(t)}}}function Oa(e,n){let t,r=n[58].name+"",o,i,s;return{key:e,first:null,c(){t=g("option"),o=ht(r),i=w(),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+"")&&It(o,r),a[0]&4&&s!==(s=n[58].name)&&(t.__value=s,t.value=t.__value)},d(l){l&&F(t)}}}function Nh(e){let n,t,r,o;const i=[Mh,$h],s=[];function l(a,c){return a[0]?0:1}return n=l(e),t=s[n]=i[n](e),{c(){t.c(),r=Xn()},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):(bt(),Y(s[h],1,1,()=>{s[h]=null}),vt(),t=s[n],t?t.p(a,c):(t=s[n]=i[n](a),t.c()),R(t,1),t.m(r.parentNode,r))},i(a){o||(R(t),o=!0)},o(a){Y(t),o=!1},d(a){s[n].d(a),a&&F(r)}}}function Rh(e,n,t){let r,o,i,s,l,a,c,h,p,d,b,y,S,$,D,T,P,I,X,G,U,B,x,W,A,q,H,J,M,ne,K,de,ge,qe,Oe,Xe,dt,_e,be,We,rt,Me,$e,ae,Ke,Ze,Ie;k(e,Wn,v=>t(1,r=v)),k(e,sn,v=>t(2,o=v)),k(e,Ve,v=>t(14,i=v)),k(e,to,v=>t(15,s=v)),k(e,Er,v=>t(16,l=v)),k(e,Cs,v=>t(17,a=v)),k(e,Ss,v=>t(18,c=v)),k(e,Jo,v=>t(19,h=v)),k(e,Eo,v=>t(20,p=v)),k(e,Co,v=>t(21,d=v)),k(e,So,v=>t(22,b=v)),k(e,ko,v=>t(23,y=v)),k(e,wo,v=>t(24,S=v)),k(e,yo,v=>t(25,$=v)),k(e,_o,v=>t(26,D=v)),k(e,vo,v=>t(27,T=v)),k(e,bo,v=>t(28,P=v)),k(e,go,v=>t(29,I=v)),k(e,mo,v=>t(30,X=v)),k(e,Cr,v=>t(31,G=v)),k(e,Sr,v=>t(32,U=v)),k(e,po,v=>t(33,B=v)),k(e,ho,v=>t(34,x=v)),k(e,kr,v=>t(35,W=v)),k(e,fo,v=>t(36,A=v)),k(e,uo,v=>t(37,q=v)),k(e,co,v=>t(38,H=v)),k(e,ao,v=>t(39,J=v)),k(e,so,v=>t(40,M=v)),k(e,lo,v=>t(41,ne=v)),k(e,io,v=>t(42,K=v)),k(e,oo,v=>t(43,de=v)),k(e,ro,v=>t(44,ge=v)),k(e,no,v=>t(45,qe=v)),k(e,Zo,v=>t(3,Oe=v)),k(e,Ko,v=>t(46,Xe=v)),k(e,eo,v=>t(47,dt=v)),k(e,Yn,v=>t(48,_e=v)),k(e,mr,v=>t(49,be=v)),k(e,vr,v=>t(50,We=v)),k(e,Qr,v=>t(51,rt=v)),k(e,br,v=>t(52,Me=v)),k(e,Sn,v=>t(53,$e=v)),k(e,qn,v=>t(54,ae=v)),k(e,Xo,v=>t(55,Ke=v)),k(e,Xt,v=>t(56,Ze=v)),k(e,gr,v=>t(57,Ie=v));let{isQuickSwitch:Je=!1}=n;function mt(){return{theme$:Ie,replacements$:Ze,windowTitle$:Ke,websocketUrl$:ae,secondaryWebsocketUrl$:$e,fontSize$:Me,onlineFont$:rt,preventLastDuplicate$:We,maxLines$:be,afkTimer$:_e,adjustTimerOnAfk$:dt,enableExternalClipboardMonitor$:Xe,showPresetQuickSwitch$:Oe,skipResetConfirmations$:s,persistStats$:qe,persistNotes$:ge,persistLines$:de,persistActionHistory$:K,enablePaste$:ne,blockCopyOnPage$:M,allowPasteDuringPause$:J,allowNewLineDuringPause$:H,autoStartTimerDuringPausePaste$:q,autoStartTimerDuringPause$:A,preventGlobalDuplicate$:W,mergeEqualLineStarts$:x,flashOnMissedLine$:B,displayVertical$:U,reverseLineOrder$:G,preserveWhitespace$:X,removeAllWhitespace$:I,showTimer$:P,showSpeed$:T,showCharacterCount$:D,showLineCount$:$,blurStats$:S,enableLineAnimation$:y,enableAfkBlur$:b,enableAfkBlurRestart$:d,continuousReconnect$:l,showConnectionErrors$:p,customCSS$:h}}function Ue(v,Se=!0){gr.next(v.settings.theme$??E.theme$),Xt.next(v.settings.replacements$??E.replacements$),Xo.next(v.settings.windowTitle$??E.windowTitle$),qn.next(v.settings.websocketUrl$??E.websocketUrl$),Sn.next(v.settings.secondaryWebsocketUrl$??""),br.next(v.settings.fontSize$??E.fontSize$),Qr.next(v.settings.onlineFont$??E.onlineFont$),vr.next(v.settings.preventLastDuplicate$??E.preventLastDuplicate$),mr.next(v.settings.maxLines$??E.maxLines$),Yn.next(v.settings.afkTimer$??E.afkTimer$),eo.next(v.settings.adjustTimerOnAfk$??E.adjustTimerOnAfk$),Ko.next(v.settings.enableExternalClipboardMonitor$??E.enableExternalClipboardMonitor$),Zo.next(v.settings.showPresetQuickSwitch$??E.showPresetQuickSwitch$),to.next(v.settings.skipResetConfirmations$??E.skipResetConfirmations$),no.next(v.settings.persistStats$??E.persistStats$),ro.next(v.settings.persistNotes$??E.persistNotes$),oo.next(v.settings.persistLines$??E.persistLines$),io.next(v.settings.persistActionHistory$??E.persistActionHistory$),lo.next(v.settings.enablePaste$??E.enablePaste$),so.next(v.settings.blockCopyOnPage$??E.blockCopyOnPage$),ao.next(v.settings.allowPasteDuringPause$??E.allowPasteDuringPause$),co.next(v.settings.allowNewLineDuringPause$??E.allowNewLineDuringPause$),uo.next(v.settings.autoStartTimerDuringPausePaste$??E.autoStartTimerDuringPausePaste$),fo.next(v.settings.autoStartTimerDuringPause$??E.autoStartTimerDuringPause$),kr.next(v.settings.preventGlobalDuplicate$??E.preventGlobalDuplicate$),ho.next(v.settings.mergeEqualLineStarts$??E.mergeEqualLineStarts$),po.next(v.settings.flashOnMissedLine$??E.flashOnMissedLine$),Sr.next(v.settings.displayVertical$??E.displayVertical$),Cr.next(v.settings.reverseLineOrder$??E.reverseLineOrder$),mo.next(v.settings.preserveWhitespace$??E.preserveWhitespace$),go.next(v.settings.removeAllWhitespace$??E.removeAllWhitespace$),bo.next(v.settings.showTimer$??E.showTimer$),vo.next(v.settings.showSpeed$??E.showSpeed$),_o.next(v.settings.showCharacterCount$??E.showCharacterCount$),yo.next(v.settings.showLineCount$??E.showLineCount$),wo.next(v.settings.blurStats$??E.blurStats$),ko.next(v.settings.enableLineAnimation$??E.enableLineAnimation$),So.next(v.settings.enableAfkBlur$??E.enableAfkBlur$),Co.next(v.settings.enableAfkBlurRestart$??E.enableAfkBlurRestart$),Er.next(v.settings.continuousReconnect$??E.continuousReconnect$),Eo.next(v.settings.showConnectionErrors$??E.showConnectionErrors$),Jo.next(v.settings.customCSS$??E.customCSS$),Se&&N(Wn,r=v.name,r),Yo().then(()=>{Qe("layoutChange"),c!==1&&l&&$l.next(),a!==1&&l&&Ml.next()})}const Fe=[{name:""}],Qe=xo();function st(v){const Se=v.target;me(Se.selectedOptions[0].value)}function me(v){const Se=o.find(Ae=>Ae.name===v);Se&&Ue(Se)}async function Ct(){const{canceled:v,data:Se}=await new Promise(ye=>{N(Ve,i={icon:zt,askForData:"text",dataValue:r||"Preset Name",message:"",callback:ye},i)});if(v||!Se)return;const Ae=o.findIndex(ye=>ye.name===Se),Ne={name:Se,settings:mt()};Ae>-1?N(sn,o[Ae]=Ne,o):N(sn,o=[...o,Ne],o),N(Wn,r=Se,r)}async function ze(){if(!s){const{canceled:v}=await new Promise(Se=>{N(Ve,i={icon:zt,message:"Preset will be deleted",callback:Se},i)});if(v)return}N(sn,o=o.filter(v=>v.name!==r),o),N(Wn,r="",r)}const Pe=v=>Qe("exportImportPreset",v),ke=()=>me(r);return e.$$set=v=>{"isQuickSwitch"in v&&t(0,Je=v.isQuickSwitch)},[Je,r,o,Oe,Fe,Qe,st,me,Ct,ze,mt,Ue,Pe,ke]}class Xc extends Mt{constructor(n){super(),$t(this,n,Rh,Nh,_t,{isQuickSwitch:0,getCurrentSettings:10,updateSettingsWithPreset:11},null,[-1,-1,-1])}get getCurrentSettings(){return this.$$.ctx[10]}get updateSettingsWithPreset(){return this.$$.ctx[11]}}function Hh(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 Ia(e,n,t){const r=e.slice();return r[22]=n[t],r}function $a(e){let n,t,r,o,i;return t=new we({props:{path:Uu}}),{c(){n=g("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=L(n,"click",e[10]),o=!0)},p:xe,i(s){r||(R(t.$$.fragment,s),r=!0)},o(s){Y(t.$$.fragment,s),r=!1},d(s){s&&F(n),oe(t),o=!1,i()}}}function Ma(e,n){let t,r,o,i=n[22].label+"",s,l,a,c;return{key:e,first:null,c(){t=g("label"),r=g("input"),o=w(),s=ht(i),l=w(),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=[L(r,"change",n[17]),L(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 Vh(e){let n=(e[5]??"")+"",t,r,o,i,s,l,a,c,h,p,d,b,y,S,$,D,T=[],P=new Map,I,X,G,U,B=(e[4]||e[3])+"",x,W,A,q=e[0].pattern&&$a(e);l=new we({props:{path:vc}}),h=new we({props:{path:Bu}});let H=e[7];const J=M=>M[22].value;for(let M=0;M<H.length;M+=1){let ne=Ia(e,H,M),K=J(ne);P.set(K,T[M]=Ma(K,ne))}return{c(){t=ht(n),r=w(),o=g("div"),q&&q.c(),i=w(),s=g("button"),se(l.$$.fragment),a=w(),c=g("button"),se(h.$$.fragment),p=w(),d=g("div"),b=g("input"),y=w(),S=g("input"),$=w(),D=g("div");for(let M=0;M<T.length;M+=1)T[M].c();I=w(),X=g("textarea"),G=w(),U=g("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(b,"placeholder","text pattern"),f(b,"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(X,"name","test-value"),f(X,"placeholder","test value"),f(X,"class","w-full my-4"),f(X,"rows","3"),f(U,"class","whitespace-pre-wrap break-all")},m(M,ne){j(M,t,ne),j(M,r,ne),j(M,o,ne),q&&q.m(o,null),u(o,i),u(o,s),re(l,s,null),u(o,a),u(o,c),re(h,c,null),j(M,p,ne),j(M,d,ne),u(d,b),ft(b,e[0].pattern),e[15](b),u(d,y),u(d,S),ft(S,e[0].replaces),u(d,$),u(d,D);for(let K=0;K<T.length;K+=1)T[K].m(D,null);u(d,I),u(d,X),ft(X,e[2]),u(d,G),u(d,U),U.innerHTML=B,x=!0,W||(A=[L(s,"click",e[12]),L(c,"click",e[13]),L(b,"input",e[14]),L(b,"input",e[9]),L(S,"input",e[16]),L(S,"input",e[9]),L(X,"input",e[19]),L(X,"input",e[9])],W=!0)},p(M,[ne]){(!x||ne&32)&&n!==(n=(M[5]??"")+"")&&It(t,n),M[0].pattern?q?(q.p(M,ne),ne&1&&R(q,1)):(q=$a(M),q.c(),R(q,1),q.m(o,i)):q&&(bt(),Y(q,1,1,()=>{q=null}),vt()),ne&1&&b.value!==M[0].pattern&&ft(b,M[0].pattern),ne&1&&S.value!==M[0].replaces&&ft(S,M[0].replaces),ne&641&&(H=M[7],T=Po(T,ne,J,1,M,H,P,D,xl,Ma,null,Ia)),ne&4&&ft(X,M[2]),(!x||ne&24)&&B!==(B=(M[4]||M[3])+"")&&(U.innerHTML=B)},i(M){x||(R(q),R(l.$$.fragment,M),R(h.$$.fragment,M),x=!0)},o(M){Y(q),Y(l.$$.fragment,M),Y(h.$$.fragment,M),x=!1},d(M){M&&F(t),M&&F(r),M&&F(o),q&&q.d(),oe(l),oe(h),M&&F(p),M&&F(d),e[15](null);for(let ne=0;ne<T.length;ne+=1)T[ne].d();W=!1,St(A)}}}function Fh(e,n,t){let r,o;k(e,Xt,x=>t(20,r=x));let{currentReplacement:i}=n;const s=xo(),l=new Ao,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),Hn(()=>{try{if(t(4,y=""),!a.pattern||!d)return;t(3,b=Gc(d,[a]))}catch({message:x}){t(4,y=`Error: ${x}`)}}),Fn());k(e,h,x=>t(5,o=x));let p,d="",b="",y="";function S(){p.setCustomValidity(y),l.next()}function $(){if(!i&&r.find(x=>x.pattern===a.pattern))return p.setCustomValidity("This pattern already exists"),p.reportValidity();i?N(Xt,r=r.map(x=>x.pattern===i.pattern?a:x),r):N(Xt,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 X(x){pt[x?"unshift":"push"](()=>{p=x,t(1,p)})}function G(){a.replaces=this.value,t(0,a)}function U(){a.flags=Su(D[0],this.__value,this.checked),t(0,a)}function B(){d=this.value,t(2,d)}return e.$$set=x=>{"currentReplacement"in x&&t(11,i=x.currentReplacement)},[a,p,d,b,y,o,s,c,h,S,$,i,T,P,I,X,G,U,D,B]}class jh extends Mt{constructor(n){super(),$t(this,n,Fh,Vh,_t,{currentReplacement:11})}}function Na(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 un(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?Na(Object(t),!0).forEach(function(r){Uh(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Na(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 Uh(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function fn(){return fn=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},fn.apply(this,arguments)}function Bh(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 Wh(e,n){if(e==null)return{};var t=Bh(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 zh="1.15.2";function Cn(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var xn=Cn(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),oi=Cn(/Edge/i),Ra=Cn(/firefox/i),Vo=Cn(/safari/i)&&!Cn(/chrome/i)&&!Cn(/android/i),Kc=Cn(/iP(ad|od|hone)/i),Zc=Cn(/chrome/i)&&Cn(/android/i),Jc={capture:!1,passive:!1};function Le(e,n,t){e.addEventListener(n,t,!xn&&Jc)}function Ce(e,n,t){e.removeEventListener(n,t,!xn&&Jc)}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 Yh(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Qt(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=Yh(e))}return null}var Ha=/\s+/g;function wt(e,n,t){if(e&&n)if(e.classList)e.classList[t?"add":"remove"](n);else{var r=(" "+e.className+" ").replace(Ha," ").replace(" "+n+" "," ");e.className=(r+(t?" "+n:"")).replace(Ha," ")}}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 Kr(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 Qc(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 cn(){var e=document.scrollingElement;return e||document.documentElement}function nt(e,n,t,r,o){if(!(!e.getBoundingClientRect&&e!==window)){var i,s,l,a,c,h,p;if(e!==window&&e.parentNode&&e!==cn()?(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,!xn))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 b=Kr(o||e),y=b&&b.a,S=b&&b.d;b&&(s/=S,l/=y,p/=y,h/=S,a=s+h,c=l+p)}return{top:s,left:l,bottom:a,right:c,width:p,height:h}}}function Va(e,n,t){for(var r=zn(e,!0),o=nt(e)[n];r;){var i=nt(r)[t],s=void 0;if(t==="top"||t==="left"?s=o>=i:s=o<=i,!s)return r;if(r===cn())break;r=zn(r,!1)}return!1}function Lo(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)&&Qt(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&&!yl(t,n));)t=t.previousElementSibling;return t||null}function Tt(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 Fa(e){var n=0,t=0,r=cn();if(e)do{var o=Kr(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 Gh(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 zn(e,n){if(!e||!e.getBoundingClientRect)return cn();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 cn();if(r||n)return t;r=!0}}while(t=t.parentNode);return cn()}function qh(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 Fo;function eu(e,n){return function(){if(!Fo){var t=arguments,r=this;t.length===1?e.call(r,t[0]):e.apply(r,t),Fo=setTimeout(function(){Fo=void 0},n)}}}function Xh(){clearTimeout(Fo),Fo=void 0}function tu(e,n,t){e.scrollLeft+=n,e.scrollTop+=t}function nu(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 ru(e,n,t){var r={};return Array.from(e.children).forEach(function(o){var i,s,l,a;if(!(!Qt(o,n.draggable,e,!1)||o.animated||o===t)){var c=nt(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 Ft="Sortable"+new Date().getTime();function Kh(){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:nt(o)});var i=un({},e[e.length-1].rect);if(o.thisAnimationDuration){var s=Kr(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(Gh(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=nt(c),d=c.prevFromRect,b=c.prevToRect,y=l.rect,S=Kr(c,!0);S&&(p.top-=S.f,p.left-=S.e),c.toRect=p,c.thisAnimationDuration&&Bl(d,p)&&!Bl(h,p)&&(y.top-p.top)/(y.left-p.left)===(h.top-p.top)/(h.left-p.left)&&(a=Jh(y,d,b,o.options)),Bl(p,h)||(c.prevFromRect=h,c.prevToRect=p,a||(a=o.options.animation),o.animate(c,y,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=Kr(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=Zh(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 Zh(e){return e.offsetWidth}function Jh(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 Wr=[],Wl={initializeByDefault:!0},ii={mount:function(n){for(var t in Wl)Wl.hasOwnProperty(t)&&!(t in n)&&(n[t]=Wl[t]);Wr.forEach(function(r){if(r.pluginName===n.pluginName)throw"Sortable: Cannot mount plugin ".concat(n.pluginName," more than once")}),Wr.push(n)},pluginEvent:function(n,t,r){var o=this;this.eventCanceled=!1,r.cancel=function(){o.eventCanceled=!0};var i=n+"Global";Wr.forEach(function(s){t[s.pluginName]&&(t[s.pluginName][i]&&t[s.pluginName][i](un({sortable:t},r)),t.options[s.pluginName]&&t[s.pluginName][n]&&t[s.pluginName][n](un({sortable:t},r)))})},initializePlugins:function(n,t,r,o){Wr.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,fn(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 Wr.forEach(function(o){typeof o.eventProperties=="function"&&fn(r,o.eventProperties.call(t[o.pluginName],n))}),r},modifyOption:function(n,t,r){var o;return Wr.forEach(function(i){n[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[t]=="function"&&(o=i.optionListeners[t].call(n[i.pluginName],r))}),o}};function Qh(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,b=e.putSortable,y=e.extraEventProperties;if(n=n||t&&t[Ft],!!n){var S,$=n.options,D="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!xn&&!oi?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=b?b.lastPutMode:void 0;var T=un(un({},y),ii.getEventProperties(r,n));for(var P in T)S[P]=T[P];t&&t.dispatchEvent(S),$[D]&&$[D].call(n,S)}}var ep=["evt"],Dt=function(n,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r.evt,i=Wh(r,ep);ii.pluginEvent.bind(le)(n,t,un({dragEl:z,parentEl:Ye,ghostEl:he,rootEl:je,nextEl:pr,lastDownEl:al,cloneEl:Be,cloneHidden:jn,dragStarted:$o,putSortable:gt,activeSortable:le.active,originalEvent:o,oldIndex:Gr,oldDraggableIndex:jo,newIndex:Vt,newDraggableIndex:Rn,hideGhostForTarget:su,unhideGhostForTarget:au,cloneNowHidden:function(){jn=!0},cloneNowShown:function(){jn=!1},dispatchSortableEvent:function(l){Lt({sortable:t,name:l,originalEvent:o})}},i))};function Lt(e){Qh(un({putSortable:gt,cloneEl:Be,targetEl:z,rootEl:je,oldIndex:Gr,oldDraggableIndex:jo,newIndex:Vt,newDraggableIndex:Rn},e))}var z,Ye,he,je,pr,al,Be,jn,Gr,Vt,jo,Rn,Ji,gt,Yr=!1,wl=!1,kl=[],fr,Jt,zl,Yl,ja,Ua,$o,zr,Uo,Bo=!1,Qi=!1,cl,yt,Gl=[],cs=!1,Sl=[],Nl=typeof document<"u",el=Kc,Ba=oi||xn?"cssFloat":"float",tp=Nl&&!Zc&&!Kc&&"draggable"in document.createElement("div"),ou=function(){if(Nl){if(xn)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),iu=function(n,t){var r=ue(n),o=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),i=Lo(n,0,t),s=Lo(n,1,t),l=i&&ue(i),a=s&&ue(s),c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+nt(i).width,h=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+nt(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[Ba]==="none"||s&&r[Ba]==="none"&&c+h>o)?"vertical":"horizontal"},np=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},rp=function(n,t){var r;return kl.some(function(o){var i=o[Ft].options.emptyInsertThreshold;if(!(!i||Ls(o))){var s=nt(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},lu=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||sl(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},su=function(){!ou&&he&&ue(he,"display","none")},au=function(){!ou&&he&&ue(he,"display","")};Nl&&!Zc&&document.addEventListener("click",function(e){if(wl)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),wl=!1,!1},!0);var hr=function(n){if(z){n=n.touches?n.touches[0]:n;var t=rp(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[Ft]._onDragOver(r)}}},op=function(n){z&&z.parentNode[Ft]._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=fn({},n),e[Ft]=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 iu(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&&!Vo,emptyInsertThreshold:5};ii.initializePlugins(this,e,t);for(var r in t)!(r in n)&&(n[r]=t[r]);lu(n);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=n.forceFallback?!1:tp,this.nativeDraggable&&(this.options.touchStartThreshold=1),n.supportPointer?Le(e,"pointerdown",this._onTapStart):(Le(e,"mousedown",this._onTapStart),Le(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Le(e,"dragover",this),Le(e,"dragenter",this)),kl.push(this.el),n.store&&n.store.get&&this.sort(n.store.get(this)||[]),fn(this,Kh())}le.prototype={constructor:le,_isOutsideThisEl:function(n){!this.el.contains(n)&&n!==this.el&&(zr=null)},_getDirection:function(n,t){return typeof this.options.direction=="function"?this.options.direction.call(this,n,t,z):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(hp(r),!z&&!(/mousedown|pointerdown/.test(s)&&n.button!==0||o.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&Vo&&a&&a.tagName.toUpperCase()==="SELECT")&&(a=Qt(a,o.draggable,r,!1),!(a&&a.animated)&&al!==a)){if(Gr=Tt(a),jo=Tt(a,o.draggable),typeof h=="function"){if(h.call(this,n,a,this)){Lt({sortable:t,rootEl:c,name:"filter",targetEl:a,toEl:r,fromEl:r}),Dt("filter",t,{evt:n}),i&&n.cancelable&&n.preventDefault();return}}else if(h&&(h=h.split(",").some(function(p){if(p=Qt(c,p.trim(),r,!1),p)return Lt({sortable:t,rootEl:p,name:"filter",targetEl:a,fromEl:r,toEl:r}),Dt("filter",t,{evt:n}),!0}),h)){i&&n.cancelable&&n.preventDefault();return}o.handle&&!Qt(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&&!z&&r.parentNode===i){var c=nt(r);if(je=i,z=r,Ye=z.parentNode,pr=z.nextSibling,al=r,Ji=s.group,le.dragged=z,fr={target:z,clientX:(t||n).clientX,clientY:(t||n).clientY},ja=fr.clientX-c.left,Ua=fr.clientY-c.top,this._lastX=(t||n).clientX,this._lastY=(t||n).clientY,z.style["will-change"]="all",a=function(){if(Dt("delayEnded",o,{evt:n}),le.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!Ra&&o.nativeDraggable&&(z.draggable=!0),o._triggerDragStart(n,t),Lt({sortable:o,name:"choose",originalEvent:n}),wt(z,s.chosenClass,!0)},s.ignore.split(",").forEach(function(h){Qc(z,h.trim(),ql)}),Le(l,"dragover",hr),Le(l,"mousemove",hr),Le(l,"touchmove",hr),Le(l,"mouseup",o._onDrop),Le(l,"touchend",o._onDrop),Le(l,"touchcancel",o._onDrop),Ra&&this.nativeDraggable&&(this.options.touchStartThreshold=4,z.draggable=!0),Dt("delayStart",this,{evt:n}),s.delay&&(!s.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(oi||xn))){if(le.eventCanceled){this._onDrop();return}Le(l,"mouseup",o._disableDelayedDrag),Le(l,"touchend",o._disableDelayedDrag),Le(l,"touchcancel",o._disableDelayedDrag),Le(l,"mousemove",o._delayedDragTouchMoveHandler),Le(l,"touchmove",o._delayedDragTouchMoveHandler),s.supportPointer&&Le(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(){z&&ql(z),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var n=this.el.ownerDocument;Ce(n,"mouseup",this._disableDelayedDrag),Ce(n,"touchend",this._disableDelayedDrag),Ce(n,"touchcancel",this._disableDelayedDrag),Ce(n,"mousemove",this._delayedDragTouchMoveHandler),Ce(n,"touchmove",this._delayedDragTouchMoveHandler),Ce(n,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(n,t){t=t||n.pointerType=="touch"&&n,!this.nativeDraggable||t?this.options.supportPointer?Le(document,"pointermove",this._onTouchMove):t?Le(document,"touchmove",this._onTouchMove):Le(document,"mousemove",this._onTouchMove):(Le(z,"dragend",this),Le(je,"dragstart",this._onDragStart));try{document.selection?ul(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(n,t){if(Yr=!1,je&&z){Dt("dragStarted",this,{evt:t}),this.nativeDraggable&&Le(document,"dragover",op);var r=this.options;!n&&wt(z,r.dragClass,!1),wt(z,r.ghostClass,!0),le.active=this,n&&this._appendGhost(),Lt({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Jt){this._lastX=Jt.clientX,this._lastY=Jt.clientY,su();for(var n=document.elementFromPoint(Jt.clientX,Jt.clientY),t=n;n&&n.shadowRoot&&(n=n.shadowRoot.elementFromPoint(Jt.clientX,Jt.clientY),n!==t);)t=n;if(z.parentNode[Ft]._isOutsideThisEl(n),t)do{if(t[Ft]){var r=void 0;if(r=t[Ft]._onDragOver({clientX:Jt.clientX,clientY:Jt.clientY,target:n,rootEl:t}),r&&!this.options.dragoverBubble)break}n=t}while(t=t.parentNode);au()}},_onTouchMove:function(n){if(fr){var t=this.options,r=t.fallbackTolerance,o=t.fallbackOffset,i=n.touches?n.touches[0]:n,s=he&&Kr(he,!0),l=he&&s&&s.a,a=he&&s&&s.d,c=el&&yt&&Fa(yt),h=(i.clientX-fr.clientX+o.x)/(l||1)+(c?c[0]-Gl[0]:0)/(l||1),p=(i.clientY-fr.clientY+o.y)/(a||1)+(c?c[1]-Gl[1]:0)/(a||1);if(!le.active&&!Yr){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-(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(he,"webkitTransform",d),ue(he,"mozTransform",d),ue(he,"msTransform",d),ue(he,"transform",d),zl=h,Yl=p,Jt=i}n.cancelable&&n.preventDefault()}},_appendGhost:function(){if(!he){var n=this.options.fallbackOnBody?document.body:je,t=nt(z,!0,el,!0,n),r=this.options;if(el){for(yt=n;ue(yt,"position")==="static"&&ue(yt,"transform")==="none"&&yt!==document;)yt=yt.parentNode;yt!==document.body&&yt!==document.documentElement?(yt===document&&(yt=cn()),t.top+=yt.scrollTop,t.left+=yt.scrollLeft):yt=cn(),Gl=Fa(yt)}he=z.cloneNode(!0),wt(he,r.ghostClass,!1),wt(he,r.fallbackClass,!0),wt(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",ja/parseInt(he.style.width)*100+"% "+Ua/parseInt(he.style.height)*100+"%")}},_onDragStart:function(n,t){var r=this,o=n.dataTransfer,i=r.options;if(Dt("dragStart",this,{evt:n}),le.eventCanceled){this._onDrop();return}Dt("setupClone",this),le.eventCanceled||(Be=nu(z),Be.removeAttribute("id"),Be.draggable=!1,Be.style["will-change"]="",this._hideClone(),wt(Be,this.options.chosenClass,!1),le.clone=Be),r.cloneId=ul(function(){Dt("clone",r),!le.eventCanceled&&(r.options.removeCloneOnHide||je.insertBefore(Be,z),r._hideClone(),Lt({sortable:r,name:"clone"}))}),!t&&wt(z,i.dragClass,!0),t?(wl=!0,r._loopId=setInterval(r._emulateDragOver,50)):(Ce(document,"mouseup",r._onDrop),Ce(document,"touchend",r._onDrop),Ce(document,"touchcancel",r._onDrop),o&&(o.effectAllowed="move",i.setData&&i.setData.call(r,o,z)),Le(document,"drop",r),ue(z,"transform","translateZ(0)")),Yr=!0,r._dragStartId=ul(r._dragStarted.bind(r,t,n)),Le(document,"selectstart",r),$o=!0,Vo&&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=gt||c,b,y=this,S=!1;if(cs)return;function $(de,ge){Dt(de,y,un({evt:n,isOwner:h,axis:b?"vertical":"horizontal",revert:s,dragRect:o,targetRect:i,canSort:p,fromSortable:d,target:r,completed:T,onMove:function(Oe,Xe){return tl(je,t,z,o,Oe,nt(Oe),n,Xe)},changed:P},ge))}function D(){$("dragOverAnimationCapture"),y.captureAnimationState(),y!==d&&d.captureAnimationState()}function T(de){return $("dragOverCompleted",{insertion:de}),de&&(h?c._hideClone():c._showClone(y),y!==d&&(wt(z,gt?gt.options.ghostClass:c.options.ghostClass,!1),wt(z,l.ghostClass,!0)),gt!==y&&y!==le.active?gt=y:y===le.active&>&&(gt=null),d===y&&(y._ignoreWhileAnimating=r),y.animateAll(function(){$("dragOverAnimationComplete"),y._ignoreWhileAnimating=null}),y!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(r===z&&!z.animated||r===t&&!r.animated)&&(zr=null),!l.dragoverBubble&&!n.rootEl&&r!==document&&(z.parentNode[Ft]._isOutsideThisEl(n.target),!de&&hr(n)),!l.dragoverBubble&&n.stopPropagation&&n.stopPropagation(),S=!0}function P(){Vt=Tt(z),Rn=Tt(z,l.draggable),Lt({sortable:y,name:"change",toEl:t,newIndex:Vt,newDraggableIndex:Rn,originalEvent:n})}if(n.preventDefault!==void 0&&n.cancelable&&n.preventDefault(),r=Qt(r,l.draggable,t,!0),$("dragOver"),le.eventCanceled)return S;if(z.contains(n.target)||r.animated&&r.animatingX&&r.animatingY||y._ignoreWhileAnimating===r)return T(!1);if(wl=!1,c&&!l.disabled&&(h?p||(s=Ye!==je):gt===this||(this.lastPutMode=Ji.checkPull(this,c,z,n))&&a.checkPut(this,c,z,n))){if(b=this._getDirection(n,r)==="vertical",o=nt(z),$("dragOverValid"),le.eventCanceled)return S;if(s)return Ye=je,D(),this._hideClone(),$("revert"),le.eventCanceled||(pr?je.insertBefore(z,pr):je.appendChild(z)),T(!0);var I=Ls(t,l.draggable);if(!I||ap(n,b,this)&&!I.animated){if(I===z)return T(!1);if(I&&t===n.target&&(r=I),r&&(i=nt(r)),tl(je,t,z,o,r,i,n,!!r)!==!1)return D(),I&&I.nextSibling?t.insertBefore(z,I.nextSibling):t.appendChild(z),Ye=t,P(),T(!0)}else if(I&&sp(n,b,this)){var X=Lo(t,0,l,!0);if(X===z)return T(!1);if(r=X,i=nt(r),tl(je,t,z,o,r,i,n,!1)!==!1)return D(),t.insertBefore(z,X),Ye=t,P(),T(!0)}else if(r.parentNode===t){i=nt(r);var G=0,U,B=z.parentNode!==t,x=!np(z.animated&&z.toRect||o,r.animated&&r.toRect||i,b),W=b?"top":"left",A=Va(r,"top","top")||Va(z,"top","top"),q=A?A.scrollTop:void 0;zr!==r&&(U=i[W],Bo=!1,Qi=!x&&l.invertSwap||B),G=cp(n,r,i,b,x?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,Qi,zr===r);var H;if(G!==0){var J=Tt(z);do J-=G,H=Ye.children[J];while(H&&(ue(H,"display")==="none"||H===he))}if(G===0||H===r)return T(!1);zr=r,Uo=G;var M=r.nextElementSibling,ne=!1;ne=G===1;var K=tl(je,t,z,o,r,i,n,ne);if(K!==!1)return(K===1||K===-1)&&(ne=K===1),cs=!0,setTimeout(lp,30),D(),ne&&!M?t.appendChild(z):r.parentNode.insertBefore(z,ne?M:r),A&&tu(A,0,q-A.scrollTop),Ye=z.parentNode,U!==void 0&&!Qi&&(cl=Math.abs(U-nt(r)[W])),P(),T(!0)}if(t.contains(z))return T(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Ce(document,"mousemove",this._onTouchMove),Ce(document,"touchmove",this._onTouchMove),Ce(document,"pointermove",this._onTouchMove),Ce(document,"dragover",hr),Ce(document,"mousemove",hr),Ce(document,"touchmove",hr)},_offUpEvents:function(){var n=this.el.ownerDocument;Ce(n,"mouseup",this._onDrop),Ce(n,"touchend",this._onDrop),Ce(n,"pointerup",this._onDrop),Ce(n,"touchcancel",this._onDrop),Ce(document,"selectstart",this)},_onDrop:function(n){var t=this.el,r=this.options;if(Vt=Tt(z),Rn=Tt(z,r.draggable),Dt("drop",this,{evt:n}),Ye=z&&z.parentNode,Vt=Tt(z),Rn=Tt(z,r.draggable),le.eventCanceled){this._nulling();return}Yr=!1,Qi=!1,Bo=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),us(this.cloneId),us(this._dragStartId),this.nativeDraggable&&(Ce(document,"drop",this),Ce(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Vo&&ue(document.body,"user-select",""),ue(z,"transform",""),n&&($o&&(n.cancelable&&n.preventDefault(),!r.dropBubble&&n.stopPropagation()),he&&he.parentNode&&he.parentNode.removeChild(he),(je===Ye||gt&>.lastPutMode!=="clone")&&Be&&Be.parentNode&&Be.parentNode.removeChild(Be),z&&(this.nativeDraggable&&Ce(z,"dragend",this),ql(z),z.style["will-change"]="",$o&&!Yr&&wt(z,gt?gt.options.ghostClass:this.options.ghostClass,!1),wt(z,this.options.chosenClass,!1),Lt({sortable:this,name:"unchoose",toEl:Ye,newIndex:null,newDraggableIndex:null,originalEvent:n}),je!==Ye?(Vt>=0&&(Lt({rootEl:Ye,name:"add",toEl:Ye,fromEl:je,originalEvent:n}),Lt({sortable:this,name:"remove",toEl:Ye,originalEvent:n}),Lt({rootEl:Ye,name:"sort",toEl:Ye,fromEl:je,originalEvent:n}),Lt({sortable:this,name:"sort",toEl:Ye,originalEvent:n})),gt&>.save()):Vt!==Gr&&Vt>=0&&(Lt({sortable:this,name:"update",toEl:Ye,originalEvent:n}),Lt({sortable:this,name:"sort",toEl:Ye,originalEvent:n})),le.active&&((Vt==null||Vt===-1)&&(Vt=Gr,Rn=jo),Lt({sortable:this,name:"end",toEl:Ye,originalEvent:n}),this.save()))),this._nulling()},_nulling:function(){Dt("nulling",this),je=z=Ye=he=pr=Be=al=jn=fr=Jt=$o=Vt=Rn=Gr=jo=zr=Uo=gt=Ji=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":z&&(this._onDragOver(n),ip(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],Qt(t,s.draggable,this.el,!1)&&n.push(t.getAttribute(s.dataIdAttr)||fp(t));return n},sort:function(n,t){var r={},o=this.el;this.toArray().forEach(function(i,s){var l=o.children[s];Qt(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 Qt(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=ii.modifyOption(this,n,t);typeof o<"u"?r[n]=o:r[n]=t,n==="group"&&lu(r)},destroy:function(){Dt("destroy",this);var n=this.el;n[Ft]=null,Ce(n,"mousedown",this._onTapStart),Ce(n,"touchstart",this._onTapStart),Ce(n,"pointerdown",this._onTapStart),this.nativeDraggable&&(Ce(n,"dragover",this),Ce(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(!jn){if(Dt("hideClone",this),le.eventCanceled)return;ue(Be,"display","none"),this.options.removeCloneOnHide&&Be.parentNode&&Be.parentNode.removeChild(Be),jn=!0}},_showClone:function(n){if(n.lastPutMode!=="clone"){this._hideClone();return}if(jn){if(Dt("showClone",this),le.eventCanceled)return;z.parentNode==je&&!this.options.group.revertClone?je.insertBefore(Be,z):pr?je.insertBefore(Be,pr):je.appendChild(Be),this.options.group.revertClone&&this.animate(z,Be),ue(Be,"display",""),jn=!1}}};function ip(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[Ft],h=c.options.onMove,p;return window.CustomEvent&&!xn&&!oi?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||nt(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 lp(){cs=!1}function sp(e,n,t){var r=nt(Lo(t.el,0,t.options,!0)),o=ru(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 ap(e,n,t){var r=nt(Ls(t.el,t.options.draggable)),o=ru(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 cp(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&&cl<c*o){if(!Bo&&(Uo===1?a>h+c*i/2:a<p-c*i/2)&&(Bo=!0),Bo)d=!0;else if(Uo===1?a<h+cl:a>p-cl)return-Uo}else if(a>h+c*(1-o)/2&&a<p-c*(1-o)/2)return up(n)}return d=d||s,d&&(a<h+c*i/2||a>p-c*i/2)?a>h+c/2?1:-1:0}function up(e){return Tt(z)<Tt(e)?1:-1}function fp(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 hp(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&&Le(document,"touchmove",function(e){(le.active||Yr)&&e.cancelable&&e.preventDefault()});le.utils={on:Le,off:Ce,css:ue,find:Qc,is:function(n,t){return!!Qt(n,t,n,!1)},extend:qh,throttle:eu,closest:Qt,toggleClass:wt,clone:nu,index:Tt,nextTick:ul,cancelNextTick:us,detectDirection:iu,getChild:Lo};le.get=function(e){return e[Ft]};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=un(un({},le.utils),r.utils)),ii.mount(r)})};le.create=function(e,n){return new le(e,n)};le.version=zh;var tt=[],Mo,fs,hs=!1,Xl,Kl,Cl,No;function pp(){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?Le(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Le(document,"pointermove",this._handleFallbackAutoScroll):r.touches?Le(document,"touchmove",this._handleFallbackAutoScroll):Le(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var r=t.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?Ce(document,"dragover",this._handleAutoScroll):(Ce(document,"pointermove",this._handleFallbackAutoScroll),Ce(document,"touchmove",this._handleFallbackAutoScroll),Ce(document,"mousemove",this._handleFallbackAutoScroll)),Wa(),fl(),Xh()},nulling:function(){Cl=fs=Mo=hs=No=Xl=Kl=null,tt.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(Cl=t,r||this.options.forceAutoScrollFallback||oi||xn||Vo){Zl(t,this.options,l,r);var a=zn(l,!0);hs&&(!No||i!==Xl||s!==Kl)&&(No&&Wa(),No=setInterval(function(){var c=zn(document.elementFromPoint(i,s),!0);c!==a&&(a=c,fl()),Zl(t,o.options,c,r)},10),Xl=i,Kl=s)}else{if(!this.options.bubbleScroll||zn(l,!0)===cn()){fl();return}Zl(t,this.options,zn(l,!1),!1)}}},fn(e,{pluginName:"scroll",initializeByDefault:!0})}function fl(){tt.forEach(function(e){clearInterval(e.pid)}),tt=[]}function Wa(){clearInterval(No)}var Zl=eu(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=cn(),c=!1,h;fs!==t&&(fs=t,fl(),Mo=n.scroll,h=n.scrollFn,Mo===!0&&(Mo=zn(t,!0)));var p=0,d=Mo;do{var b=d,y=nt(b),S=y.top,$=y.bottom,D=y.left,T=y.right,P=y.width,I=y.height,X=void 0,G=void 0,U=b.scrollWidth,B=b.scrollHeight,x=ue(b),W=b.scrollLeft,A=b.scrollTop;b===a?(X=P<U&&(x.overflowX==="auto"||x.overflowX==="scroll"||x.overflowX==="visible"),G=I<B&&(x.overflowY==="auto"||x.overflowY==="scroll"||x.overflowY==="visible")):(X=P<U&&(x.overflowX==="auto"||x.overflowX==="scroll"),G=I<B&&(x.overflowY==="auto"||x.overflowY==="scroll"));var q=X&&(Math.abs(T-o)<=s&&W+P<U)-(Math.abs(D-o)<=s&&!!W),H=G&&(Math.abs($-i)<=s&&A+I<B)-(Math.abs(S-i)<=s&&!!A);if(!tt[p])for(var J=0;J<=p;J++)tt[J]||(tt[J]={});(tt[p].vx!=q||tt[p].vy!=H||tt[p].el!==b)&&(tt[p].el=b,tt[p].vx=q,tt[p].vy=H,clearInterval(tt[p].pid),(q!=0||H!=0)&&(c=!0,tt[p].pid=setInterval(function(){r&&this.layer===0&&le.active._onTouchMove(Cl);var M=tt[this.layer].vy?tt[this.layer].vy*l:0,ne=tt[this.layer].vx?tt[this.layer].vx*l:0;typeof h=="function"&&h.call(le.dragged.parentNode[Ft],ne,M,e,Cl,tt[this.layer].el)!=="continue"||tu(tt[this.layer].el,ne,M)}.bind({layer:p}),24))),p++}while(n.bubbleScroll&&d!==a&&(d=zn(d,!1)));hs=c}},30),cu=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=Lo(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:cu};fn(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:cu};fn(Ps,{pluginName:"removeOnSpill"});var Wt;function dp(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(t){var r=t.dragEl;Wt=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=Wt;i(o)!==!1?(wt(o,h.swapClass,!0),Wt=o):Wt=null,p&&p!==Wt&&wt(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;Wt&&wt(Wt,l.swapClass,!1),Wt&&(l.swap||o&&o.options.swap)&&i!==Wt&&(s.captureAnimationState(),s!==r&&r.captureAnimationState(),mp(i,Wt),s.animateAll(),s!==r&&r.animateAll())},nulling:function(){Wt=null}},fn(e,{pluginName:"swap",eventProperties:function(){return{swapItem:Wt}}})}function mp(e,n){var t=e.parentNode,r=n.parentNode,o,i;!t||!r||t.isEqualNode(n)||r.isEqualNode(e)||(o=Tt(e),i=Tt(n),t.isEqualNode(r)&&o<i&&i++,t.insertBefore(n,t.children[o]),r.insertBefore(e,r.children[i]))}le.mount(new pp);le.mount(Ps,xs);function za(e,n,t){const r=e.slice();return r[22]=n[t],r[23]=n,r[24]=t,r}function Ya(e,n){let t,r,o=n[22].pattern+"",i,s,l,a,c,h,p,d,b,y,S,$,D,T,P;c=new we({props:{path:Yu,height:"1rem"}});function I(){return n[15](n[22])}d=new we({props:{path:wc,height:"1rem"}});function X(){return n[16](n[22])}function G(){n[17].call(y,n[23],n[24])}return{key:e,first:null,c(){t=g("div"),r=g("div"),i=ht(o),s=w(),l=g("div"),a=g("button"),se(c.$$.fragment),h=w(),p=g("button"),se(d.$$.fragment),b=w(),y=g("input"),S=w(),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(y,"type","checkbox"),f(y,"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,B){j(U,t,B),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,b),u(l,y),y.checked=n[22].enabled,u(t,S),D=!0,T||(P=[L(a,"click",I),L(p,"click",X),L(y,"change",G),L(y,"change",n[6])],T=!0)},p(U,B){n=U,(!D||B&2)&&o!==(o=n[22].pattern+"")&&It(i,o),B&2&&(y.checked=n[22].enabled),(!D||B&2&&$!==($=n[22].pattern))&&f(t,"data-id",$)},i(U){D||(R(c.$$.fragment,U),R(d.$$.fragment,U),D=!0)},o(U){Y(c.$$.fragment,U),Y(d.$$.fragment,U),D=!1},d(U){U&&F(t),oe(c),oe(d),T=!1,St(P)}}}function gp(e){let n,t,r,o,i,s,l,a,c,h,p,d,b,y,S,$,D,T,P=[],I=new Map,X,G,U;r=new we({props:{path:ju}}),l=new we({props:{path:yc}}),h=new we({props:{path:Ju}}),b=new we({props:{path:Zu}}),$=new we({props:{path:wc}});let B=e[1];const x=W=>W[22].pattern;for(let W=0;W<B.length;W+=1){let A=za(e,B,W),q=x(A);I.set(q,P[W]=Ya(q,A))}return{c(){n=g("div"),t=g("button"),se(r.$$.fragment),i=w(),s=g("button"),se(l.$$.fragment),a=w(),c=g("button"),se(h.$$.fragment),p=w(),d=g("button"),se(b.$$.fragment),y=w(),S=g("button"),se($.$$.fragment),D=w(),T=g("div");for(let W=0;W<P.length;W+=1)P[W].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(W,A){j(W,n,A),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(b,d,null),u(n,y),u(n,S),re($,S,null),j(W,D,A),j(W,T,A);for(let q=0;q<P.length;q+=1)P[q].m(T,null);e[18](T),X=!0,G||(U=[L(t,"click",e[10]),L(s,"click",e[11]),L(c,"click",e[12]),L(d,"click",e[13]),L(S,"click",e[14])],G=!0)},p(W,[A]){(!X||A&4&&o!==(o=!W[2]))&&(t.disabled=o),(!X||A&4)&&te(t,"hover:text-primary",W[2]),(!X||A&4)&&te(t,"cursor-not-allowed",!W[2]),A&218&&(B=W[1],bt(),P=Po(P,A,x,1,W,B,I,T,bc,Ya,null,za),vt())},i(W){if(!X){R(r.$$.fragment,W),R(l.$$.fragment,W),R(h.$$.fragment,W),R(b.$$.fragment,W),R($.$$.fragment,W);for(let A=0;A<B.length;A+=1)R(P[A]);X=!0}},o(W){Y(r.$$.fragment,W),Y(l.$$.fragment,W),Y(h.$$.fragment,W),Y(b.$$.fragment,W),Y($.$$.fragment,W);for(let A=0;A<P.length;A+=1)Y(P[A]);X=!1},d(W){W&&F(n),oe(r),oe(l),oe(h),oe(b),oe($),W&&F(D),W&&F(T);for(let A=0;A<P.length;A+=1)P[A].d();e[18](null),G=!1,St(U)}}}function bp(e,n,t){let r,o,i,s;k(e,Xt,x=>t(3,o=x)),k(e,as,x=>t(8,i=x)),k(e,Ge,x=>t(9,s=x));const l=xo();let a,c,h=JSON.parse(JSON.stringify(o));Ll(()=>{try{le.mount(new dp)}catch{}return a=le.create(c,{swap:!0,swapClass:"swap",animation:150,store:{get:y,set:d}}),()=>a==null?void 0:a.destroy()});function p(x){const W=S();t(1,h=W.map(A=>({...A,enabled:x}))),N(Xt,o=h,o)}function d(){N(Xt,o=S(),o)}function b(x){t(1,h=x),N(Xt,o=x,o),a.sort(y(),!1)}function y(){return[...h.map(x=>x.pattern)]}function S(){const x=a.toArray();return h.slice().sort((W,A)=>x.indexOf(W.pattern)-x.indexOf(A.pattern))}const $=()=>l("applyReplacements"),D=()=>l("edit",void 0),T=()=>p(!0),P=()=>p(!1),I=()=>b([]),X=x=>l("edit",x),G=x=>b(o.filter(W=>W.pattern!==x.pattern));function U(x,W){x[W].enabled=this.checked,t(1,h)}function B(x){pt[x?"unshift":"push"](()=>{c=x,t(0,c)})}return e.$$.update=()=>{e.$$.dirty&768&&t(2,r=!!s.length&&!!i.length)},[c,h,r,o,l,p,d,b,i,s,$,D,T,P,I,X,G,U,B]}class vp extends Mt{constructor(n){super(),$t(this,n,bp,gp,_t,{})}}function _p(e){let n,t,r,o,i,s,l,a;return r=new we({props:{path:yc}}),{c(){n=g("div"),t=g("button"),se(r.$$.fragment),o=w(),i=g("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=L(t,"click",e[7]),l=!0)},p:xe,i(c){s||(R(r.$$.fragment,c),s=!0)},o(c){Y(r.$$.fragment,c),s=!1},d(c){c&&F(n),oe(r),c&&F(o),c&&F(i),l=!1,a()}}}function yp(e){let n=e[0],t,r,o=Ga(e);return{c(){o.c(),t=Xn()},m(i,s){o.m(i,s),j(i,t,s),r=!0},p(i,s){s&1&&_t(n,n=i[0])?(bt(),Y(o,1,1,xe),vt(),o=Ga(i),o.c(),R(o,1),o.m(t.parentNode,t)):o.p(i,s)},i(i){r||(R(o),r=!0)},o(i){Y(o),r=!1},d(i){i&&F(t),o.d(i)}}}function wp(e){let n,t;return n=new jh({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||(R(n.$$.fragment,r),t=!0)},o(r){Y(n.$$.fragment,r),t=!1},d(r){oe(n,r)}}}function Ga(e){let n,t;return n=new vp({}),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||(R(n.$$.fragment,r),t=!0)},o(r){Y(n.$$.fragment,r),t=!1},d(r){oe(n,r)}}}function kp(e){let n,t,r,o,i,s,l;const a=[wp,yp,_p],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=g("details"),t=g("summary"),t.textContent="Replacements",r=w(),o=g("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 b=i;i=h(p),i===b?c[i].p(p,d):(bt(),Y(c[b],1,1,()=>{c[b]=null}),vt(),s=c[i],s?s.p(p,d):(s=c[i]=a[i](p),s.c()),R(s,1),s.m(o,null))},i(p){l||(R(s),l=!0)},o(p){Y(s),l=!1},d(p){p&&F(n),c[i].d()}}}function Sp(e,n,t){let r,o;k(e,Xt,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){zo.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 Cp extends Mt{constructor(n){super(),$t(this,n,Sp,kp,_t,{})}}const{document:qa}=gc;function Xa(e,n,t){const r=e.slice();return r[145]=n[t],r}function Ka(e){let n,t,r,o,i,s,l,a,c,h,p,d,b,y,S,$,D,T,P,I,X,G,U,B,x,W,A,q,H,J,M,ne,K,de,ge,qe,Oe,Xe,dt,_e,be,We,rt,Me,$e,ae,Ke,Ze,Ie,Je,mt,Ue,Fe,Qe,st,me,Ct,ze,Pe,ke,v,Se,Ae,Ne,ye,Et,jt,xt,Ut,Nt,Pt,et,Re,C,V,He,en,Bt,At,at,ct=[],xr=new Map,Pr,Pn,Ar,Rt,An,tn,Dr,Ht,_,Q,ie,fe,pe,ot,Zt,pn,li,Tr,si,dn,ai,Or,ci,mn,ui,Ir,fi,gn,hi,$r,pi,nn,di,Mr,mi,rn,gi,Nr,bi,on,vi,Rr,_i,ln,yi,Hr,wi,bn,ki,Vr,Si,vn,Ci,Fr,Ei,_n,Li,jr,xi,yn,Pi,Ur,Ai,wn,Di,m,Z,ce,De,ut,it,lt,Zn,Ti,As,Jn,Ds,Oi,Ts,Qn,Os,Ii,Is,er,$s,$i,Ms,Dn,Ns,Mi,Rs,Tn,Hs,Ni,Vs,tr,Fs,Ri,js,On,Us,Hi,Bs,nr,Ws,Vi,zs,rr,Ys,Fi,Gs,or,qs,ji,Xs,ir,Ks,Ui,Zs,lr,Js,Bi,Qs,sr,ea,Wi,ta,ar,na,zi,ra,cr,oa,Yi,ia,In,la,Gi,sa,ur,aa,Do,ca,$n,Mn,Rl,ua;p=new we({props:{path:Ku}}),$=new we({props:{path:Xu}}),X=new we({props:{path:Ho}}),W=new we({props:{path:Ho}}),M=new we({props:{path:Ho}}),qe=new we({props:{path:ns}}),be=new we({props:{path:ns}}),Je=new we({props:{class:"swap-on",path:Qu}}),Ue=new we({props:{class:"swap-off",path:ef}});let fu={};ze=new Xc({props:fu}),e[77](ze),ze.$on("layoutChange",e[78]),ze.$on("exportImportPreset",e[79]),ke=new Cp({}),ke.$on("applyReplacements",e[80]);let qi=e[50];const fa=O=>O[145];for(let O=0;O<qi.length;O+=1){let ee=Xa(e,qi,O),Nn=fa(ee);xr.set(Nn,ct[O]=Za(Nn,ee))}return{c(){n=g("input"),t=w(),r=g("input"),o=w(),i=g("input"),s=w(),l=g("div"),a=g("div"),c=g("div"),h=g("div"),se(p.$$.fragment),d=w(),b=g("span"),b.textContent="Set Timer",y=w(),S=g("div"),se($.$$.fragment),D=w(),T=g("span"),T.textContent="Reset Timer",P=w(),I=g("div"),se(X.$$.fragment),G=w(),U=g("span"),U.textContent="Reset Lines",B=w(),x=g("div"),se(W.$$.fragment),A=w(),q=g("span"),q.textContent="Reset Data",H=w(),J=g("div"),se(M.$$.fragment),ne=w(),K=g("span"),K.textContent="Reset All",de=w(),ge=g("div"),se(qe.$$.fragment),Oe=w(),Xe=g("span"),Xe.textContent="Ex-/Import Data",dt=w(),_e=g("div"),se(be.$$.fragment),We=w(),rt=g("span"),rt.textContent="Ex-/Import Settings",Me=w(),$e=g("div"),ae=g("label"),Ke=g("input"),Ie=w(),se(Je.$$.fragment),mt=w(),se(Ue.$$.fragment),Fe=w(),Qe=g("span"),Qe.textContent="Theme",st=w(),me=g("details"),me.innerHTML=`<summary>Links</summary>
|
30
|
+
<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>
|
31
|
+
<li class="my-0.5 hover:text-primary"><a href="https://github.com/Artikash/Textractor" target="_blank" rel="noreferrer">Textractor</a></li>
|
32
|
+
<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>
|
33
|
+
<li class="my-0.5 hover:text-primary"><a href="https://github.com/KamWithK/TextractorSender" target="_blank" rel="noreferrer">TextractorSender Extension</a></li>
|
34
|
+
<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>
|
35
|
+
<li class="my-0.5 hover:text-primary"><a href="https://github.com/0xDC00/agent" target="_blank" rel="noreferrer">Agent</a></li>
|
36
|
+
<li class="my-0.5 hover:text-primary"><a href="https://github.com/kmltml/clipboard-inserter" target="_blank" rel="noreferrer">Clipboard Inserter</a></li>
|
37
|
+
<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>`,Ct=w(),se(ze.$$.fragment),Pe=w(),se(ke.$$.fragment),v=w(),Se=g("span"),Se.textContent="Window Title",Ae=w(),Ne=g("input"),ye=w(),Et=g("span"),Et.textContent="Primary Websocket",jt=w(),xt=g("input"),Ut=w(),Nt=g("span"),Nt.textContent="Secondary Websocket",Pt=w(),et=g("input"),Re=w(),C=g("span"),C.textContent="Font Size",V=w(),He=g("input"),en=w(),Bt=g("span"),Bt.textContent="Online Font",At=w(),at=g("select");for(let O=0;O<ct.length;O+=1)ct[O].c();Pr=w(),Pn=g("span"),Pn.textContent="Prevent Last Line Duplicate",Ar=w(),Rt=g("input"),An=w(),tn=g("span"),tn.textContent="Max lines",Dr=w(),Ht=g("input"),_=w(),Q=g("span"),Q.textContent="AFK Timer (s)",ie=w(),fe=g("input"),pe=w(),ot=g("span"),ot.textContent="Adjust Timer after AFK",Zt=w(),pn=g("input"),li=w(),Tr=g("span"),Tr.textContent="Enable external Clipboard Monitor",si=w(),dn=g("input"),ai=w(),Or=g("span"),Or.textContent="Show Preset Quick Switch",ci=w(),mn=g("input"),ui=w(),Ir=g("span"),Ir.textContent="Skip Reset Confirmations",fi=w(),gn=g("input"),hi=w(),$r=g("span"),$r.textContent="Store Stats persistently",pi=w(),nn=g("input"),di=w(),Mr=g("span"),Mr.textContent="Store Notes persistently",mi=w(),rn=g("input"),gi=w(),Nr=g("span"),Nr.textContent="Store Lines persistently",bi=w(),on=g("input"),vi=w(),Rr=g("span"),Rr.textContent="Store Action History persistently",_i=w(),ln=g("input"),yi=w(),Hr=g("span"),Hr.textContent="Enable Paste",wi=w(),bn=g("input"),ki=w(),Vr=g("span"),Vr.textContent="Block Copy from Page",Si=w(),vn=g("input"),Ci=w(),Fr=g("span"),Fr.textContent="Allow Paste during Pause",Ei=w(),_n=g("input"),Li=w(),jr=g("span"),jr.textContent="Allow new Line during Pause",xi=w(),yn=g("input"),Pi=w(),Ur=g("span"),Ur.textContent="Autostart Timer by Paste during Pause",Ai=w(),wn=g("input"),Di=w(),m=g("span"),m.textContent="Autostart Timer by Line during Pause",Z=w(),ce=g("input"),De=w(),ut=g("span"),ut.textContent="Prevent Global Duplicate",it=w(),lt=g("input"),Zn=w(),Ti=g("span"),Ti.textContent="Merge equal Line Starts",As=w(),Jn=g("input"),Ds=w(),Oi=g("span"),Oi.textContent="Filter lines without jp content",Ts=w(),Qn=g("input"),Os=w(),Ii=g("span"),Ii.textContent="Flash on missed Line",Is=w(),er=g("input"),$s=w(),$i=g("span"),$i.textContent="Display Text vertically",Ms=w(),Dn=g("input"),Ns=w(),Mi=g("span"),Mi.textContent="Reverse Line Order",Rs=w(),Tn=g("input"),Hs=w(),Ni=g("span"),Ni.textContent="Preserve Whitespace",Vs=w(),tr=g("input"),Fs=w(),Ri=g("span"),Ri.textContent="Remove all Whitespace",js=w(),On=g("input"),Us=w(),Hi=g("span"),Hi.textContent="Show Timer",Bs=w(),nr=g("input"),Ws=w(),Vi=g("span"),Vi.textContent="Show Speed",zs=w(),rr=g("input"),Ys=w(),Fi=g("span"),Fi.textContent="Show Character Count",Gs=w(),or=g("input"),qs=w(),ji=g("span"),ji.textContent="Show Line Count",Xs=w(),ir=g("input"),Ks=w(),Ui=g("span"),Ui.textContent="Blur Stats",Zs=w(),lr=g("input"),Js=w(),Bi=g("span"),Bi.textContent="Enable Line Animation",Qs=w(),sr=g("input"),ea=w(),Wi=g("span"),Wi.textContent="Enable AFK Blur",ta=w(),ar=g("input"),na=w(),zi=g("span"),zi.textContent="Restart Timer after AFK Blur",ra=w(),cr=g("input"),oa=w(),Yi=g("span"),Yi.textContent="Continuous Reconnect",ia=w(),In=g("input"),la=w(),Gi=g("span"),Gi.textContent="Show Connection Errors",sa=w(),ur=g("input"),aa=w(),Do=g("span"),Do.textContent="Custom CSS",ca=w(),$n=g("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(b,"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(q,"class","label-text"),f(x,"role","button"),f(x,"class","flex flex-col items-center hover:text-primary"),f(K,"class","label-text"),f(J,"role","button"),f(J,"class","flex flex-col items-center hover:text-primary"),f(Xe,"class","label-text"),f(ge,"role","button"),f(ge,"class","flex flex-col items-center hover:text-primary"),f(rt,"class","label-text"),f(_e,"role","button"),f(_e,"class","flex flex-col items-center hover:text-primary"),f(Ke,"type","checkbox"),Ke.checked=Ze=e[4]===Gt.BUSINESS,f(ae,"class","swap swap-rotate"),f(Qe,"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"),ve(a,"grid-column","1/5"),f(me,"role","button"),f(me,"class","col-span-4 mb-2"),f(Se,"class","label-text col-span-2"),f(Ne,"class","input input-bordered h-8 col-span-2"),f(Et,"class","label-text col-span-2"),f(xt,"class","input input-bordered h-8 col-span-2"),f(Nt,"class","label-text col-span-2"),f(et,"class","input input-bordered h-8 col-span-2"),f(C,"class","label-text col-span-2"),f(He,"type","number"),f(He,"class","input input-bordered h-8 col-span-2"),f(He,"min","1"),f(Bt,"class","label-text mr-4 col-span-2"),f(at,"class","select col-span-2"),e[19]===void 0&&yr(()=>e[87].call(at)),f(Pn,"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(tn,"class","label-text col-span-2"),f(Ht,"type","number"),f(Ht,"class","input input-bordered h-8 mb-2 col-span-2"),f(Ht,"min","0"),Ht.value=e[15],f(Q,"class","label-text col-span-2"),f(fe,"type","number"),f(fe,"class","input input-bordered h-8 mb-2 col-span-2"),f(fe,"min","0"),f(ot,"class","label-text"),f(pn,"type","checkbox"),f(pn,"class","checkbox checkbox-primary ml-2"),f(Tr,"class","label-text"),f(dn,"type","checkbox"),f(dn,"class","checkbox checkbox-primary ml-2"),f(Or,"class","label-text"),f(mn,"type","checkbox"),f(mn,"class","checkbox checkbox-primary ml-2"),f(Ir,"class","label-text"),f(gn,"type","checkbox"),f(gn,"class","checkbox checkbox-primary ml-2"),f($r,"class","label-text"),f(nn,"type","checkbox"),f(nn,"class","checkbox checkbox-primary ml-2"),f(Mr,"class","label-text"),f(rn,"type","checkbox"),f(rn,"class","checkbox checkbox-primary ml-2"),f(Nr,"class","label-text"),f(on,"type","checkbox"),f(on,"class","checkbox checkbox-primary ml-2"),f(Rr,"class","label-text"),f(ln,"type","checkbox"),f(ln,"class","checkbox checkbox-primary ml-2"),f(Hr,"class","label-text"),f(bn,"type","checkbox"),f(bn,"class","checkbox checkbox-primary ml-2"),f(Vr,"class","label-text"),f(vn,"type","checkbox"),f(vn,"class","checkbox checkbox-primary ml-2"),f(Fr,"class","label-text"),f(_n,"type","checkbox"),f(_n,"class","checkbox checkbox-primary ml-2"),f(jr,"class","label-text"),f(yn,"type","checkbox"),f(yn,"class","checkbox checkbox-primary ml-2"),f(Ur,"class","label-text"),f(wn,"type","checkbox"),f(wn,"class","checkbox checkbox-primary ml-2"),f(m,"class","label-text"),f(ce,"type","checkbox"),f(ce,"class","checkbox checkbox-primary ml-2"),f(ut,"class","label-text"),f(lt,"type","checkbox"),f(lt,"class","checkbox checkbox-primary ml-2"),f(Ti,"class","label-text"),f(Jn,"type","checkbox"),f(Jn,"class","checkbox checkbox-primary ml-2"),f(Oi,"class","label-text"),f(Qn,"type","checkbox"),f(Qn,"class","checkbox checkbox-primary ml-2"),f(Ii,"class","label-text"),f(er,"type","checkbox"),f(er,"class","checkbox checkbox-primary ml-2"),f($i,"class","label-text"),f(Dn,"type","checkbox"),f(Dn,"class","checkbox checkbox-primary ml-2"),f(Mi,"class","label-text"),f(Tn,"type","checkbox"),f(Tn,"class","checkbox checkbox-primary ml-2"),f(Ni,"class","label-text"),f(tr,"type","checkbox"),f(tr,"class","checkbox checkbox-primary ml-2"),f(Ri,"class","label-text"),f(On,"type","checkbox"),f(On,"class","checkbox checkbox-primary ml-2"),f(Hi,"class","label-text"),f(nr,"type","checkbox"),f(nr,"class","checkbox checkbox-primary ml-2"),f(Vi,"class","label-text"),f(rr,"type","checkbox"),f(rr,"class","checkbox checkbox-primary ml-2"),f(Fi,"class","label-text"),f(or,"type","checkbox"),f(or,"class","checkbox checkbox-primary ml-2"),f(ji,"class","label-text"),f(ir,"type","checkbox"),f(ir,"class","checkbox checkbox-primary ml-2"),f(Ui,"class","label-text"),f(lr,"type","checkbox"),f(lr,"class","checkbox checkbox-primary ml-2"),f(Bi,"class","label-text"),f(sr,"type","checkbox"),f(sr,"class","checkbox checkbox-primary ml-2"),f(Wi,"class","label-text"),f(ar,"type","checkbox"),f(ar,"class","checkbox checkbox-primary ml-2"),f(zi,"class","label-text"),f(cr,"type","checkbox"),f(cr,"class","checkbox checkbox-primary ml-2"),f(Yi,"class","label-text"),f(In,"type","checkbox"),f(In,"class","checkbox checkbox-primary ml-2"),f(Gi,"class","label-text"),f(ur,"type","checkbox"),f(ur,"class","checkbox checkbox-primary ml-2"),f(Do,"class","label-text"),ve(Do,"grid-column","1/5"),f($n,"class","p-1 min-h-[10rem] font-mono"),ve($n,"grid-column","1/5"),f($n,"rows","5"),$n.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,b),u(c,y),u(c,S),re($,S,null),u(S,D),u(S,T),u(c,P),u(c,I),re(X,I,null),u(I,G),u(I,U),u(c,B),u(c,x),re(W,x,null),u(x,A),u(x,q),u(c,H),u(c,J),re(M,J,null),u(J,ne),u(J,K),u(c,de),u(c,ge),re(qe,ge,null),u(ge,Oe),u(ge,Xe),u(c,dt),u(c,_e),re(be,_e,null),u(_e,We),u(_e,rt),u(c,Me),u(c,$e),u($e,ae),u(ae,Ke),u(ae,Ie),re(Je,ae,null),u(ae,mt),re(Ue,ae,null),u($e,Fe),u($e,Qe),u(l,st),u(l,me),u(l,Ct),re(ze,l,null),u(l,Pe),re(ke,l,null),u(l,v),u(l,Se),u(l,Ae),u(l,Ne),ft(Ne,e[17]),u(l,ye),u(l,Et),u(l,jt),u(l,xt),ft(xt,e[11]),u(l,Ut),u(l,Nt),u(l,Pt),u(l,et),ft(et,e[10]),u(l,Re),u(l,C),u(l,V),u(l,He),ft(He,e[18]),u(l,en),u(l,Bt),u(l,At),u(l,at);for(let Nn=0;Nn<ct.length;Nn+=1)ct[Nn].m(at,null);Zr(at,e[19]),u(l,Pr),u(l,Pn),u(l,Ar),u(l,Rt),u(l,An),u(l,tn),u(l,Dr),u(l,Ht),u(l,_),u(l,Q),u(l,ie),u(l,fe),ft(fe,e[20]),u(l,pe),u(l,ot),u(l,Zt),u(l,pn),pn.checked=e[21],u(l,li),u(l,Tr),u(l,si),u(l,dn),dn.checked=e[3],u(l,ai),u(l,Or),u(l,ci),u(l,mn),mn.checked=e[22],u(l,ui),u(l,Ir),u(l,fi),u(l,gn),gn.checked=e[12],u(l,hi),u(l,$r),u(l,pi),u(l,nn),nn.checked=e[23],u(l,di),u(l,Mr),u(l,mi),u(l,rn),rn.checked=e[24],u(l,gi),u(l,Nr),u(l,bi),u(l,on),on.checked=e[25],u(l,vi),u(l,Rr),u(l,_i),u(l,ln),ln.checked=e[26],u(l,yi),u(l,Hr),u(l,wi),u(l,bn),bn.checked=e[27],u(l,ki),u(l,Vr),u(l,Si),u(l,vn),vn.checked=e[28],u(l,Ci),u(l,Fr),u(l,Ei),u(l,_n),_n.checked=e[29],u(l,Li),u(l,jr),u(l,xi),u(l,yn),yn.checked=e[30],u(l,Pi),u(l,Ur),u(l,Ai),u(l,wn),wn.checked=e[31],u(l,Di),u(l,m),u(l,Z),u(l,ce),ce.checked=e[32],u(l,De),u(l,ut),u(l,it),u(l,lt),lt.checked=e[14],u(l,Zn),u(l,Ti),u(l,As),u(l,Jn),Jn.checked=e[33],u(l,Ds),u(l,Oi),u(l,Ts),u(l,Qn),Qn.checked=e[34],u(l,Os),u(l,Ii),u(l,Is),u(l,er),er.checked=e[35],u(l,$s),u(l,$i),u(l,Ms),u(l,Dn),Dn.checked=e[36],u(l,Ns),u(l,Mi),u(l,Rs),u(l,Tn),Tn.checked=e[37],u(l,Hs),u(l,Ni),u(l,Vs),u(l,tr),tr.checked=e[38],u(l,Fs),u(l,Ri),u(l,js),u(l,On),On.checked=e[13],u(l,Us),u(l,Hi),u(l,Bs),u(l,nr),nr.checked=e[39],u(l,Ws),u(l,Vi),u(l,zs),u(l,rr),rr.checked=e[40],u(l,Ys),u(l,Fi),u(l,Gs),u(l,or),or.checked=e[41],u(l,qs),u(l,ji),u(l,Xs),u(l,ir),ir.checked=e[42],u(l,Ks),u(l,Ui),u(l,Zs),u(l,lr),lr.checked=e[43],u(l,Js),u(l,Bi),u(l,Qs),u(l,sr),sr.checked=e[44],u(l,ea),u(l,Wi),u(l,ta),u(l,ar),ar.checked=e[45],u(l,na),u(l,zi),u(l,ra),u(l,cr),cr.checked=e[46],u(l,oa),u(l,Yi),u(l,ia),u(l,In),In.checked=e[47],u(l,la),u(l,Gi),u(l,sa),u(l,ur),ur.checked=e[48],u(l,aa),u(l,Do),u(l,ca),u(l,$n),Mn=!0,Rl||(ua=[L(n,"change",e[58]),L(r,"change",e[59]),L(i,"change",e[60]),L(h,"click",e[53]),L(h,"keyup",Ot),L(S,"click",e[54]),L(S,"keyup",Ot),L(I,"click",e[73]),L(I,"keyup",Ot),L(x,"click",e[74]),L(x,"keyup",Ot),L(J,"click",ph),L(J,"keyup",Ot),L(ge,"click",e[55]),L(ge,"keyup",Ot),L(_e,"click",e[56]),L(_e,"keyup",Ot),L(Ke,"change",e[75]),L($e,"click",e[76]),L($e,"keyup",Ot),L(Ne,"input",e[81]),L(xt,"input",e[82]),L(xt,"change",e[83]),L(et,"input",e[84]),L(et,"change",e[51]),L(He,"input",e[85]),L(He,"blur",e[86]),L(at,"change",e[87]),L(Rt,"blur",e[62]),L(Ht,"blur",e[63]),L(fe,"input",e[88]),L(fe,"blur",e[89]),L(pn,"change",e[90]),L(dn,"change",e[91]),L(mn,"change",e[92]),L(gn,"change",e[93]),L(nn,"change",e[94]),L(nn,"change",e[95]),L(rn,"change",e[96]),L(rn,"change",e[97]),L(on,"change",e[98]),L(on,"change",e[99]),L(ln,"change",e[100]),L(ln,"change",e[101]),L(bn,"change",e[102]),L(vn,"change",e[103]),L(_n,"change",e[104]),L(yn,"change",e[105]),L(wn,"change",e[106]),L(ce,"change",e[107]),L(lt,"change",e[108]),L(lt,"change",e[64]),L(Jn,"change",e[109]),L(Qn,"change",e[110]),L(er,"change",e[111]),L(Dn,"change",e[112]),L(Dn,"change",e[113]),L(Tn,"change",e[114]),L(Tn,"change",e[115]),L(tr,"change",e[116]),L(On,"change",e[117]),L(On,"change",e[65]),L(nr,"change",e[118]),L(rr,"change",e[119]),L(or,"change",e[120]),L(ir,"change",e[121]),L(lr,"change",e[122]),L(sr,"change",e[123]),L(ar,"change",e[124]),L(cr,"change",e[125]),L(In,"change",e[126]),L(In,"change",e[127]),L(ur,"change",e[128]),L($n,"blur",e[66]),vu(Hh.call(null,l,e[52]))],Rl=!0)},p(O,ee){(!Mn||ee[0]&16&&Ze!==(Ze=O[4]===Gt.BUSINESS))&&(Ke.checked=Ze);const Nn={};ze.$set(Nn),ee[0]&131072&&Ne.value!==O[17]&&ft(Ne,O[17]),ee[0]&2048&&xt.value!==O[11]&&ft(xt,O[11]),ee[0]&1024&&et.value!==O[10]&&ft(et,O[10]),ee[0]&262144&&hl(He.value)!==O[18]&&ft(He,O[18]),ee[1]&524288&&(qi=O[50],ct=Po(ct,ee,fa,1,O,qi,xr,at,xl,Za,null,Xa)),ee[0]&524288|ee[1]&524288&&Zr(at,O[19]),(!Mn||ee[0]&65536&&Rt.value!==O[16])&&(Rt.value=O[16]),(!Mn||ee[0]&32768&&Ht.value!==O[15])&&(Ht.value=O[15]),ee[0]&1048576&&hl(fe.value)!==O[20]&&ft(fe,O[20]),ee[0]&2097152&&(pn.checked=O[21]),ee[0]&8&&(dn.checked=O[3]),ee[0]&4194304&&(mn.checked=O[22]),ee[0]&4096&&(gn.checked=O[12]),ee[0]&8388608&&(nn.checked=O[23]),ee[0]&16777216&&(rn.checked=O[24]),ee[0]&33554432&&(on.checked=O[25]),ee[0]&67108864&&(ln.checked=O[26]),ee[0]&134217728&&(bn.checked=O[27]),ee[0]&268435456&&(vn.checked=O[28]),ee[0]&536870912&&(_n.checked=O[29]),ee[0]&1073741824&&(yn.checked=O[30]),ee[1]&1&&(wn.checked=O[31]),ee[1]&2&&(ce.checked=O[32]),ee[0]&16384&&(lt.checked=O[14]),ee[1]&4&&(Jn.checked=O[33]),ee[1]&8&&(Qn.checked=O[34]),ee[1]&16&&(er.checked=O[35]),ee[1]&32&&(Dn.checked=O[36]),ee[1]&64&&(Tn.checked=O[37]),ee[1]&128&&(tr.checked=O[38]),ee[0]&8192&&(On.checked=O[13]),ee[1]&256&&(nr.checked=O[39]),ee[1]&512&&(rr.checked=O[40]),ee[1]&1024&&(or.checked=O[41]),ee[1]&2048&&(ir.checked=O[42]),ee[1]&4096&&(lr.checked=O[43]),ee[1]&8192&&(sr.checked=O[44]),ee[1]&16384&&(ar.checked=O[45]),ee[1]&32768&&(cr.checked=O[46]),ee[1]&65536&&(In.checked=O[47]),ee[1]&131072&&(ur.checked=O[48]),(!Mn||ee[0]&4)&&($n.value=O[2])},i(O){Mn||(R(p.$$.fragment,O),R($.$$.fragment,O),R(X.$$.fragment,O),R(W.$$.fragment,O),R(M.$$.fragment,O),R(qe.$$.fragment,O),R(be.$$.fragment,O),R(Je.$$.fragment,O),R(Ue.$$.fragment,O),R(ze.$$.fragment,O),R(ke.$$.fragment,O),Mn=!0)},o(O){Y(p.$$.fragment,O),Y($.$$.fragment,O),Y(X.$$.fragment,O),Y(W.$$.fragment,O),Y(M.$$.fragment,O),Y(qe.$$.fragment,O),Y(be.$$.fragment,O),Y(Je.$$.fragment,O),Y(Ue.$$.fragment,O),Y(ze.$$.fragment,O),Y(ke.$$.fragment,O),Mn=!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($),oe(X),oe(W),oe(M),oe(qe),oe(be),oe(Je),oe(Ue),e[77](null),oe(ze),oe(ke);for(let ee=0;ee<ct.length;ee+=1)ct[ee].d();Rl=!1,St(ua)}}}function Za(e,n){let t,r=n[145]+"",o,i;return{key:e,first:null,c(){t=g("option"),o=ht(r),i=w(),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 Ep(e){let n,t,r,o;qa.title=n=e[17]||"Texthooker UI";let i=e[0]&&Ka(e);return{c(){t=w(),i&&i.c(),r=Xn()},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")&&(qa.title=n),s[0]?i?(i.p(s,l),l[0]&1&&R(i,1)):(i=Ka(s),i.c(),R(i,1),i.m(r.parentNode,r)):i&&(bt(),Y(i,1,1,()=>{i=null}),vt())},i(s){o||(R(i),o=!0)},o(s){Y(i),o=!1},d(s){s&&F(t),i&&i.d(s),s&&F(r)}}}function Lp(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 xp(e,n,t){let r,o,i,s,l,a,c,h,p,d,b,y,S,$,D,T,P,I,X,G,U,B,x,W,A,q,H,J,M,ne,K,de,ge,qe,Oe,Xe,dt,_e,be,We,rt,Me,$e,ae,Ke,Ze,Ie,Je,mt,Ue,Fe,Qe,st;k(e,Ve,m=>t(130,i=m)),k(e,to,m=>t(12,s=m)),k(e,Jo,m=>t(2,l=m)),k(e,Ge,m=>t(131,a=m)),k(e,go,m=>t(13,c=m)),k(e,kr,m=>t(14,h=m)),k(e,mr,m=>t(15,p=m)),k(e,vr,m=>t(16,d=m)),k(e,Wn,m=>t(132,b=m)),k(e,sn,m=>t(133,y=m)),k(e,Vn,m=>t(134,S=m)),k(e,Qo,m=>t(135,$=m)),k(e,an,m=>t(136,D=m)),k(e,_l,m=>t(137,T=m)),k(e,ll,m=>t(138,P=m)),k(e,Sn,m=>t(69,I=m)),k(e,Ko,m=>t(3,X=m)),k(e,gr,m=>t(4,G=m)),k(e,qn,m=>t(5,U=m)),k(e,Xo,m=>t(17,B=m)),k(e,br,m=>t(18,x=m)),k(e,Qr,m=>t(19,W=m)),k(e,Yn,m=>t(20,A=m)),k(e,eo,m=>t(21,q=m)),k(e,Zo,m=>t(22,H=m)),k(e,no,m=>t(23,J=m)),k(e,ro,m=>t(24,M=m)),k(e,oo,m=>t(25,ne=m)),k(e,io,m=>t(26,K=m)),k(e,lo,m=>t(27,de=m)),k(e,so,m=>t(28,ge=m)),k(e,ao,m=>t(29,qe=m)),k(e,co,m=>t(30,Oe=m)),k(e,uo,m=>t(31,Xe=m)),k(e,fo,m=>t(32,dt=m)),k(e,ho,m=>t(33,_e=m)),k(e,bl,m=>t(34,be=m)),k(e,po,m=>t(35,We=m)),k(e,Sr,m=>t(36,rt=m)),k(e,Cr,m=>t(37,Me=m)),k(e,mo,m=>t(38,$e=m)),k(e,bo,m=>t(39,ae=m)),k(e,vo,m=>t(40,Ke=m)),k(e,_o,m=>t(41,Ze=m)),k(e,yo,m=>t(42,Ie=m)),k(e,wo,m=>t(43,Je=m)),k(e,ko,m=>t(44,mt=m)),k(e,So,m=>t(45,Ue=m)),k(e,Co,m=>t(46,Fe=m)),k(e,Er,m=>t(47,Qe=m)),k(e,Eo,m=>t(48,st=m));let{selectedLineIds:me}=n,{settingsOpen:Ct}=n,{settingsElement:ze}=n;async function Pe(m){if(!s){const{canceled:Z}=await new Promise(ce=>{N(Ve,i={icon:zt,message:m?"All displayed and stored Lines will be cleared":"Clear stored Lines + set Timer to 00:00:00",callback:ce},i)});if(Z)return}N(Ge,a=[],a),t(67,me=[]),window.localStorage.removeItem("bannou-texthooker-lineData"),m||N(an,D=0,D)}const ke=xo(),v=[Bn.OFF,Bn.NOTO,Bn.KLEE,Bn.SHIPPORI];let Se,Ae,Ne,ye,Et;function jt(m){const Z=m.target;Z.setCustomValidity(""),o===r?(Z.setCustomValidity("Duplicate Websocket"),t(10,o=""),N(Sn,I="",I)):N(Sn,I=Z.value,I),Z.reportValidity()}function xt(m){m&&!Et?Yo().then(()=>{Et=new MutationObserver(Ut),Et.observe(document.body,{childList:!0})}):!m&&Et&&(Et.disconnect(),Et=void 0)}function Ut(m){for(let Z=0,{length:ce}=m;Z<ce;Z+=1){const{addedNodes:De}=m[Z];for(let ut=0,{length:it}=De;ut<it;ut+=1){const lt=De[Z];(lt==null?void 0:lt.tagName)==="P"&&(_r.next([lt.textContent,Yt.EXTERNAL,""]),lt.remove())}}}function Nt(m){const Z=m.target;!P&&Z!==ze&&Z.parentElement!==ze&&Z!==Se&&Z!==Ae&&Z!==Ne&&!T&&t(0,Ct=!1)}async function Pt(){const{canceled:m,data:Z}=await new Promise(ce=>{N(Ve,i={icon:zt,askForData:"text",dataValue:"00:00:00",message:"New Time",callback:ce},i)});if(!m){if(!/^[\d]{1,}:[\d]{1,2}:[\d]{1,2}$/.test(Z))return new Promise(ce=>{N(Ve,i={icon:_c,type:"error",message:"Invalid Time value (x:xx:xx)",showCancel:!1,callback:ce},i)});N(an,D=mh(Z),D)}}async function et(){if(!s){const{canceled:m}=await new Promise(Z=>{N(Ve,i={icon:zt,message:"Timer will be set to 00:00:00",callback:Z},i)});if(m)return}N(an,D=0,D)}async function Re(m){m.altKey?await An(Se,"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 C(m){m.altKey?await An(Ae,"Presets, Settings etc. will be overwritten"):Jl("texthooker-ui_settings.json",{currentSettings:ye.getCurrentSettings(),settingPresets:y,lastSettingsPreset:b})}async function V(m){if(m.altKey)await An(Ne,"Preset will be overwritten or otherwise added");else if(b){const Z=y.find(ce=>ce.name===b);Z&&Jl("texthooker-ui_preset.json",{name:Z.name,settings:Z.settings})}}async function He(){const m=await tn(Se).catch(({message:Z})=>{N(Ve,i={type:"error",message:Z,showCancel:!1},i)});if(m){const Z=Object.entries(m);for(let ce=0,{length:De}=Z;ce<De;ce+=1){const[ut,it]=Z[ce];switch(ut){case"bannou-texthooker-timeValue":N(an,D=it,D);break;case"bannou-texthooker-userNotes":N(Qo,$=it,$);break;case"bannou-texthooker-lineData":N(Ge,a=it,a);break;case"bannou-texthooker-actionHistory":N(Vn,S=it,S);break}}}t(6,Se.value=null,Se)}async function en(){const m=await tn(Ae).catch(({message:Z})=>{N(Ve,i={type:"error",message:Z,showCancel:!1},i)});m&&(N(sn,y=m.settingPresets||[],y),N(Wn,b=m.lastSettingsPreset||"",b),m.currentSettings&&ye.updateSettingsWithPreset({name:"",settings:m.currentSettings},!1)),t(7,Ae.value=null,Ae)}async function Bt(){const m=await tn(Ne).catch(({message:Z})=>{N(Ve,i={type:"error",message:Z,showCancel:!1},i)});if(m&&m.name&&m.settings){const Z=y.findIndex(ce=>ce.name===m.name);Z>-1?(N(sn,y[Z]=m,y),N(sn,y=[...y],y)):N(sn,y=[...y,m],y),N(Wn,b=m.name,b),ye.updateSettingsWithPreset(m)}t(8,Ne.value=null,Ne)}async function At(m,Z,ce){if(m)return;const{canceled:De}=await new Promise(ut=>{N(Ve,i={icon:zt,message:Z,callback:ut},i)});De||window.localStorage.removeItem(ce)}function at(m){const Z=m.target,ce=Number.parseInt(Z.value||"0"),De=ce!==d;!ce||ce<0?N(vr,d=0,d):N(vr,d=ce,d),Z.value=`${d}`,De&&ct()}async function ct(){if(!d||a.length<2)return;const{canceled:m}=await new Promise(it=>{N(Ve,i={icon:zt,message:"Apply to current lines",callback:it},i)});if(m)return;const Z=[],ce=new Set,De=new Set,ut=a.splice(-(d+1));for(let it=0,{length:lt}=ut;it<lt;it+=1){const Zn=ut[it];ce.has(Zn.text)?De.add(Zn.id):(Z.push(Zn),ce.add(Zn.text))}N(Ge,a=[...a,...Z],a),t(67,me=me.filter(it=>!De.has(it)))}function xr(m){const Z=m.target,ce=Number.parseInt(Z.value||"0"),De=ce!==p;!ce||ce<0?N(mr,p=0,p):N(mr,p=ce,p),Z.value=`${p}`,De&&Pr()}async function Pr(){const m=a.length-p;if(!p||m<1)return;const{canceled:Z}=await new Promise(ce=>{N(Ve,i={icon:zt,message:`This will remove the first ${m} line(s)`,callback:ce},i)});Z?N(mr,p=0,p):ke("maxLinesChange")}async function Pn(){if(!h||a.length<2)return;const{canceled:m}=await new Promise(Z=>{N(Ve,i={icon:zt,message:"Apply to current lines",callback:Z},i)});if(!m){const Z=new Set,ce=new Set;N(Ge,a=a.filter(De=>Z.has(De.text)?(ce.add(De.id),!1):(Z.add(De.text),!0)),a),t(67,me=me.filter(De=>!ce.has(De)))}}async function Ar(){if(c){const{canceled:m}=await new Promise(Z=>{N(Ve,i={icon:zt,message:"Apply to current Lines",callback:Z},i)});m||N(Ge,a=a.map(Z=>(Z.text=Z.text.replace(/\s/g,"").trim(),Z)),a)}}function Rt(m){N(Jo,l=m.target.value,l)}async function An(m,Z){if(!s){const{canceled:ce}=await new Promise(De=>{N(Ve,i={icon:zt,message:Z,callback:De},i)});if(ce)return}m.click()}function tn(m){return new Promise((Z,ce)=>{const[De]=m.files,ut=new FileReader;if(!De)return Z();if(!De.name.endsWith(".json"))return N(Ve,i={type:"error",message:"Expected json File",showCancel:!1},i),m.value=null,Z();ut.addEventListener("loadend",it=>{try{const lt=JSON.parse(it.target.result);Z(lt)}catch{ce(new Error("Error parsing File"))}}),ut.addEventListener("error",()=>ce(new Error("Failed to read File"))),ut.readAsText(De,"utf-8")})}function Dr(m){pt[m?"unshift":"push"](()=>{Se=m,t(6,Se)})}function Ht(m){pt[m?"unshift":"push"](()=>{Ae=m,t(7,Ae)})}function _(m){pt[m?"unshift":"push"](()=>{Ne=m,t(8,Ne)})}const Q=()=>Pe(!0),ie=()=>Pe(!1),fe=()=>N(gr,G=G===Gt.BUSINESS?Gt.GARDEN:Gt.BUSINESS,G),pe=()=>N(gr,G=G===Gt.BUSINESS?Gt.GARDEN:Gt.BUSINESS,G);function ot(m){pt[m?"unshift":"push"](()=>{ye=m,t(9,ye)})}function Zt(m){zo.call(this,e,m)}const pn=({detail:m})=>V(m);function li(m){zo.call(this,e,m)}function Tr(){B=this.value,Xo.set(B)}function si(){r=this.value,t(11,r),t(5,U)}const dn=()=>N(qn,U=r,U);function ai(){o=this.value,t(10,o),t(69,I)}function Or(){x=hl(this.value),br.set(x)}const ci=()=>{(!x||x<1)&&N(br,x=24,x)};function mn(){W=Eu(this),Qr.set(W),t(50,v)}function ui(){A=hl(this.value),Yn.set(A)}const Ir=()=>{(A===null||A<0)&&N(Yn,A=0,A)};function fi(){q=this.checked,eo.set(q)}function gn(){X=this.checked,Ko.set(X)}function hi(){H=this.checked,Zo.set(H)}function $r(){s=this.checked,to.set(s)}function pi(){J=this.checked,no.set(J)}const nn=()=>At(J,"Clear stored stats","bannou-texthooker-timeValue");function di(){M=this.checked,ro.set(M)}const Mr=()=>At(M,"Clear stored notes","bannou-texthooker-userNotes");function mi(){ne=this.checked,oo.set(ne)}const rn=()=>At(ne,"Clear stored lines","bannou-texthooker-lineData");function gi(){K=this.checked,io.set(K)}const Nr=()=>At(K,"Clear action history","bannou-texthooker-actionHistory");function bi(){de=this.checked,lo.set(de)}function on(){ge=this.checked,so.set(ge)}function vi(){qe=this.checked,ao.set(qe)}function Rr(){Oe=this.checked,co.set(Oe)}function _i(){Xe=this.checked,uo.set(Xe)}function ln(){dt=this.checked,fo.set(dt)}function yi(){h=this.checked,kr.set(h)}function Hr(){_e=this.checked,ho.set(_e)}function wi(){be=this.checked,bl.set(be)}function bn(){We=this.checked,po.set(We)}function ki(){rt=this.checked,Sr.set(rt)}const Vr=()=>ke("layoutChange");function Si(){Me=this.checked,Cr.set(Me)}const vn=()=>ke("layoutChange");function Ci(){$e=this.checked,mo.set($e)}function Fr(){c=this.checked,go.set(c)}function Ei(){ae=this.checked,bo.set(ae)}function _n(){Ke=this.checked,vo.set(Ke)}function Li(){Ze=this.checked,_o.set(Ze)}function jr(){Ie=this.checked,yo.set(Ie)}function xi(){Je=this.checked,wo.set(Je)}function yn(){mt=this.checked,ko.set(mt)}function Pi(){Ue=this.checked,So.set(Ue)}function Ur(){Fe=this.checked,Co.set(Fe)}function Ai(){Qe=this.checked,Er.set(Qe)}const wn=()=>{$l.next(),Ml.next()};function Di(){st=this.checked,Eo.set(st)}return e.$$set=m=>{"selectedLineIds"in m&&t(67,me=m.selectedLineIds),"settingsOpen"in m&&t(0,Ct=m.settingsOpen),"settingsElement"in m&&t(68,ze=m.settingsElement)},e.$$.update=()=>{e.$$.dirty[0]&32&&t(11,r=U),e.$$.dirty[2]&128&&t(10,o=I),e.$$.dirty[0]&16&&(document.body.dataset.theme=G),e.$$.dirty[0]&8&&xt(X),e.$$.dirty[0]&4&&Lp(l)},[Ct,Pe,l,X,G,U,Se,Ae,Ne,ye,o,r,s,c,h,p,d,B,x,W,A,q,H,J,M,ne,K,de,ge,qe,Oe,Xe,dt,_e,be,We,rt,Me,$e,ae,Ke,Ze,Ie,Je,mt,Ue,Fe,Qe,st,ke,v,jt,Nt,Pt,et,Re,C,V,He,en,Bt,At,at,xr,Pn,Ar,Rt,me,ze,I,Dr,Ht,_,Q,ie,fe,pe,ot,Zt,pn,li,Tr,si,dn,ai,Or,ci,mn,ui,Ir,fi,gn,hi,$r,pi,nn,di,Mr,mi,rn,gi,Nr,bi,on,vi,Rr,_i,ln,yi,Hr,wi,bn,ki,Vr,Si,vn,Ci,Fr,Ei,_n,Li,jr,xi,yn,Pi,Ur,Ai,wn,Di]}class Pp extends Mt{constructor(n){super(),$t(this,n,xp,Ep,_t,{selectedLineIds:67,settingsOpen:0,settingsElement:68,handleReset:1},null,[-1,-1,-1,-1,-1])}get handleReset(){return this.$$.ctx[1]}}class Ap{constructor(n=!0){To(this,"websocketUrl");To(this,"socket");To(this,"socketState");To(this,"subscriptions",[]);this.socketState=n?Ss:Cs,this.subscriptions.push((n?qn:Sn).subscribe(t=>{t!==this.websocketUrl&&(this.websocketUrl=t,this.reloadSocket())}),Er.pipe(qo(t=>t?(n?$l:Ml).pipe(Ol(()=>{var r;return((r=this.socket)==null?void 0:r.readyState)===3})):Go)).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"&&_r.next(["",Yt.RESETCHECKBOXES,""]),t=((o=JSON.parse(n.data))==null?void 0:o.sentence)||n.data}catch{}console.log(n.data),_r.next([t,Yt.SOCKET,((i=JSON.parse(n.data))==null?void 0:i.data.id)||""])}}function Dp(e){let n;return{c(){n=g("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 Tp(e){let n,t,r;return t=new we({props:{path:Hu,class:"cursor-pointer mx-2"}}),t.$on("click",e[3]),{c(){n=g("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||(R(t.$$.fragment,o),r=!0)},o(o){Y(t.$$.fragment,o),r=!1},d(o){o&&F(n),oe(t)}}}function Op(e){let n,t,r,o;const i=[Tp,Dp],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=Xn()},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):(bt(),Y(s[h],1,1,()=>{s[h]=null}),vt(),t=s[n],t?t.p(a,c):(t=s[n]=i[n](a),t.c()),R(t,1),t.m(r.parentNode,r))},i(a){o||(R(t),o=!0)},o(a){Y(t),o=!1},d(a){s[n].d(a),a&&F(r)}}}function Ip(e,n,t){let r,o,i,s,l,a,c,h;k(e,Sn,I=>t(9,i=I)),k(e,qn,I=>t(10,s=I)),k(e,qt,I=>t(11,l=I)),k(e,Ve,I=>t(12,a=I)),k(e,Er,I=>t(13,c=I)),k(e,Eo,I=>t(14,h=I));let{isPrimary:p=!0}=n,d,b=!1,y=!1,S=!1,$=p?Ss:Cs;k(e,$,I=>t(0,o=I)),Ll(()=>(P(),()=>{S=!0,d==null||d.cleanUp()}));function D(I){switch(I){case 0:t(5,y=!1),S=!1;break;case 1:b=!0,t(5,y=!0);break;case 3:const X=p?"primary":"secondary";h&&!S&&b&&(p?s:i)&&(y||!c)&&N(Ve,a={type:"error",message:y?`Lost Connection to ${X} Websocket`:`Unable to connect to ${X} Websocket`,showCancel:!1},a),N(qt,l=!0,l),b=!0,t(5,y=!1),S||(p?$l:Ml).next();break}t(1,r=T(y))}function T(I){return I?`Connected with ${p?s:i}`:"Not Connected"}async function P(){o===1&&d?(S=!0,d.disconnect()):(d=d||new Ap(p),d.connect())}return e.$$set=I=>{"isPrimary"in I&&t(4,p=I.isPrimary)},e.$$.update=()=>{e.$$.dirty&32&&t(1,r=T(y)),e.$$.dirty&1&&D(o)},[o,r,$,P,p,y]}class uu extends Mt{constructor(n){super(),$t(this,n,Ip,Op,_t,{isPrimary:4})}}function $p(e){let n,t,r,o,i;return{c(){n=g("div"),t=w(),r=g("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>
|
38
|
+
<span class="sr-only">Loading...</span></div>`,o=w(),i=g("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 Mp extends Mt{constructor(n){super(),$t(this,n,null,$p,_t,{})}}function Np(e){let n=(e[2]??"")+"",t,r,o=(e[3]??"")+"",i,s,l,a,c,h,p;return{c(){t=ht(n),r=w(),i=ht(o),s=w(),l=g("div"),a=g("div"),c=ht(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,b){j(d,t,b),j(d,r,b),j(d,i,b),j(d,s,b),j(d,l,b),u(l,a),u(a,c),e[16](l),h||(p=L(l,"pointerleave",e[7]),h=!0)},p(d,[b]){b&4&&n!==(n=(d[2]??"")+"")&&It(t,n),b&8&&o!==(o=(d[3]??"")+"")&&It(i,o),b&2&&It(c,d[1]),b&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 Rp=/[^0-9A-Z○◯々-〇〻ぁ-ゖゝ-ゞァ-ヺー0-9A-Zヲ-ン\p{Radical}\p{Unified_Ideograph}]+/gimu;function Hp(e){return e?Vp(e.replace(Rp,"")):0}function Vp(e){return Array.from(e).length}function Fp(e,n,t){let r,o,i,s,l,a,c,h,p,d,b,y,S,$;k(e,_o,H=>t(10,r=H)),k(e,yo,H=>t(11,o=H)),k(e,vo,H=>t(12,i=H)),k(e,bo,H=>t(13,s=H)),k(e,an,H=>t(14,l=H)),k(e,qt,H=>t(19,a=H)),k(e,Co,H=>t(20,c=H)),k(e,So,H=>t(21,h=H)),k(e,Yn,H=>t(22,p=H)),k(e,eo,H=>t(23,d=H)),k(e,Ge,H=>t(15,b=H)),k(e,wo,H=>t(4,$=H));let D=0,T=0;const P=qt.pipe(qo(H=>H?(T=0,Go):(D=performance.now(),nh(1e3))),Hn(W),Fn());k(e,P,H=>t(2,y=H));const I=Yf([qt,Yn]).pipe(qo(([H,J])=>H||J<1?Go:rh(_r,Un(window,"pointermove"),Un(document,"selectionchange")).pipe(ih(!0),sh(1e3),Hn(()=>T=performance.now()+p*1e3),ws(p*1e3))),Fn());k(e,I,H=>t(3,S=H));let X,G=0,U=0,B="";function x(){const H=window.getSelection();H!=null&&H.toString()&&H.getRangeAt(0).intersectsNode(X)&&H.removeAllRanges()}function W(){const H=T?Math.min(T,performance.now()):performance.now(),J=Math.round((H-D+Number.EPSILON)/1e3);T&&H>=T?(N(qt,a=!0,a),d?N(an,l=Math.max(0,l+J-p),l):N(an,l+=J,l),h&&(document.body.style.filter="blur(8px)",document.body.style.pointerEvents="none",document.addEventListener("dblclick",M=>{M.stopPropagation(),window.getSelection().removeAllRanges(),document.body.style.filter=null,document.body.style.pointerEvents="auto",c&&N(qt,a=!1,a)},{once:!0,capture:!1}))):(D=H,N(an,l+=J,l))}function A(H,J,M,ne){let K="";s&&(K+=dh(H)),i&&(K+=` (${J}/h) `),r&&(K+=` ${M}`),o&&(K+=r?" /":"",K+=` ${ne}`),t(1,B=K.replace(/[ ]+/g," ").trim())}function q(H){pt[H?"unshift":"push"](()=>{X=H,t(0,X)})}return e.$$.update=()=>{if(e.$$.dirty&50688&&r&&b){let H=0;for(let J=0,{length:M}=b;J<M;J+=1)H+=Hp(b[J].text);t(9,U=H),t(8,G=l?Math.ceil(3600*U/l):0)}e.$$.dirty&65280&&(l>-1&&(s||i||r||o)?A(l,G,U,b.length):t(1,B=""))},[X,B,y,S,$,P,I,x,G,U,r,o,i,s,l,b,q]}class jp extends Mt{constructor(n){super(),$t(this,n,Fp,Np,_t,{})}}const{window:Up}=gc;function Ja(e,n,t){const r=e.slice();return r[88]=n[t],r[89]=n,r[90]=t,r}function Qa(e){let n,t;return n=new Mp({}),{c(){se(n.$$.fragment)},m(r,o){re(n,r,o),t=!0},i(r){t||(R(n.$$.fragment,r),t=!0)},o(r){Y(n.$$.fragment,r),t=!1},d(r){oe(n,r)}}}function ec(e){let n,t;return n=new uu({}),{c(){se(n.$$.fragment)},m(r,o){re(n,r,o),t=!0},i(r){t||(R(n.$$.fragment,r),t=!0)},o(r){Y(n.$$.fragment,r),t=!1},d(r){oe(n,r)}}}function tc(e){let n,t;return n=new uu({props:{isPrimary:!1}}),{c(){se(n.$$.fragment)},m(r,o){re(n,r,o),t=!0},i(r){t||(R(n.$$.fragment,r),t=!0)},o(r){Y(n.$$.fragment,r),t=!1},d(r){oe(n,r)}}}function Bp(e){let n,t,r;return t=new we({props:{path:zu,width:e[8],height:e[8]}}),t.$on("click",e[46]),{c(){n=g("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]&256&&(s.width=o[8]),i[0]&256&&(s.height=o[8]),t.$set(s)},i(o){r||(R(t.$$.fragment,o),r=!0)},o(o){Y(t.$$.fragment,o),r=!1},d(o){o&&F(n),oe(t)}}}function Wp(e){let n,t,r;return t=new we({props:{path:Gu,width:e[8],height:e[8]}}),t.$on("click",e[45]),{c(){n=g("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]&256&&(s.width=o[8]),i[0]&256&&(s.height=o[8]),t.$set(s)},i(o){r||(R(t.$$.fragment,o),r=!0)},o(o){Y(t.$$.fragment,o),r=!1},d(o){o&&F(n),oe(t)}}}function nc(e){let n,t,r,o,i,s;return t=new we({props:{path:Ho,width:e[8],height:e[8]}}),t.$on("click",e[35]),i=new we({props:{path:vc,width:e[8],height:e[8]}}),i.$on("click",e[36]),{c(){n=g("div"),se(t.$$.fragment),r=w(),o=g("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]&256&&(c.width=l[8]),a[0]&256&&(c.height=l[8]),t.$set(c);const h={};a[0]&256&&(h.width=l[8]),a[0]&256&&(h.height=l[8]),i.$set(h)},i(l){s||(R(t.$$.fragment,l),R(i.$$.fragment,l),s=!0)},o(l){Y(t.$$.fragment,l),Y(i.$$.fragment,l),s=!1},d(l){l&&F(n),oe(t),l&&F(r),l&&F(o),oe(i)}}}function rc(e,n){let t,r,o=n[90],i;const s=()=>n[56](r,o),l=()=>n[56](null,o);let a={line:n[88],index:n[90],isLast:n[10].length-1===n[90]};return r=new Dh({props:a}),s(),r.$on("selected",n[57]),r.$on("deselected",n[58]),r.$on("edit",n[38]),{key:e,first:null,c(){t=Xn(),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[90]&&(l(),o=n[90],s());const p={};h[0]&1024&&(p.line=n[88]),h[0]&1024&&(p.index=n[90]),h[0]&1024&&(p.isLast=n[10].length-1===n[90]),r.$set(p)},i(c){i||(R(r.$$.fragment,c),i=!0)},o(c){Y(r.$$.fragment,c),i=!1},d(c){c&&F(t),l(),oe(r,c)}}}function oc(e){let n,t,r,o;return t=new Ih({}),{c(){n=g("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||(R(t.$$.fragment,i),i&&(r||yr(()=>{r=mc(n,Yc,{x:100,duration:100,easing:ch}),r.start()})),o=!0)},o(i){Y(t.$$.fragment,i),o=!1},d(i){i&&F(n),oe(t)}}}function zp(e){let n=(e[17]??"")+"",t,r,o=(e[18]??"")+"",i,s,l=(e[19]??"")+"",a,c,h=(e[20]??"")+"",p,d,b=(e[21]??"")+"",y,S,$,D,T,P,I,X,G,U,B,x,W,A,q,H,J,M,ne,K,de,ge,qe,Oe,Xe,dt,_e,be,We,rt,Me,$e,ae,Ke,Ze,Ie=[],Je=new Map,mt,Ue,Fe,Qe,st,me,Ct,ze,Pe=e[9]&&Qa();D=new Lh({}),I=new jp({});let ke=e[22]&&ec(),v=e[23]&&tc();const Se=[Wp,Bp],Ae=[];function Ne(C,V){return C[15]?0:1}B=Ne(e),x=Ae[B]=Se[B](e),q=new we({props:{path:Fu,width:e[8],height:e[8]}}),q.$on("click",e[34]),M=new we({props:{path:Nu,width:e[8],height:e[8]}}),M.$on("click",e[33]);let ye=e[1].length&&nc(e);ge=new we({props:{path:Wu,width:e[8],height:e[8]}}),ge.$on("click",e[47]);function Et(C){e[48](C)}let jt={class:"cursor-pointer mr-1 hover:text-primary md:mr-2",path:Ru,width:e[8],height:e[8]};e[3]!==void 0&&(jt.element=e[3]),Oe=new we({props:jt}),pt.push(()=>Fl(Oe,"element",Et,e[3])),Oe.$on("click",e[49]);function xt(C){e[50](C)}function Ut(C){e[51](C)}let Nt={settingsElement:e[3]};e[4]!==void 0&&(Nt.settingsOpen=e[4]),e[1]!==void 0&&(Nt.selectedLineIds=e[1]),_e=new Pp({props:Nt}),pt.push(()=>Fl(_e,"settingsOpen",xt,e[4])),pt.push(()=>Fl(_e,"selectedLineIds",Ut,e[1])),e[52](_e),_e.$on("applyReplacements",e[53]),_e.$on("layoutChange",e[37]),_e.$on("maxLinesChange",e[54]),Me=new Xc({props:{isQuickSwitch:!0}}),Me.$on("layoutChange",e[37]);let Pt=e[10];const et=C=>C[88].id;for(let C=0;C<Pt.length;C+=1){let V=Ja(e,Pt,C),He=et(V);Je.set(He,Ie[C]=rc(He,V))}let Re=e[16]&&oc();return{c(){t=ht(n),r=w(),i=ht(o),s=w(),a=ht(l),c=w(),p=ht(h),d=w(),y=ht(b),S=w(),Pe&&Pe.c(),$=w(),se(D.$$.fragment),T=w(),P=g("header"),se(I.$$.fragment),X=w(),ke&&ke.c(),G=w(),v&&v.c(),U=w(),x.c(),W=w(),A=g("div"),se(q.$$.fragment),H=w(),J=g("div"),se(M.$$.fragment),ne=w(),ye&&ye.c(),K=w(),de=g("div"),se(ge.$$.fragment),qe=w(),se(Oe.$$.fragment),dt=w(),se(_e.$$.fragment),rt=w(),se(Me.$$.fragment),$e=w(),ae=g("main"),Ke=new uc(!1),Ze=w();for(let C=0;C<Ie.length;C+=1)Ie[C].c();mt=w(),Ue=g("div"),Fe=g("input"),Qe=w(),Re&&Re.c(),st=Xn(),f(A,"role","button"),f(A,"title","Delete last Line"),f(A,"class","mr-1 hover:text-primary sm:mr-2"),te(A,"opacity-50",!e[10].length),te(A,"cursor-not-allowed",!e[10].length),te(A,"hover:text-primary",e[10].length),f(J,"role","button"),f(J,"title","Undo last Action"),f(J,"class","mr-1 hover:text-primary sm:mr-2"),te(J,"opacity-50",!e[11].length),te(J,"cursor-not-allowed",!e[11].length),te(J,"hover:text-primary",e[11].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"),Ke.a=Ze,f(ae,"class","flex flex-col flex-1 break-all px-4 w-full h-full overflow-auto"),te(ae,"py-16",!e[13]),te(ae,"py-8",e[13]),te(ae,"opacity-50",e[16]),te(ae,"flex-col-reverse",e[14]),ve(ae,"font-size",`${e[24]}px`),ve(ae,"font-family",e[25]!==Bn.OFF?e[25]:void 0),ve(ae,"writing-mode",e[13]?"vertical-rl":"horizontal-tb"),f(Fe,"type","text"),f(Fe,"placeholder","TL"),f(Fe,"class","w-8 h-6 text-xs p-1 border border-gray-300 rounded text-center bg-base-100"),f(Fe,"title","Press Enter to translate a number of lines"),f(Ue,"class","fixed bottom-2 right-2 z-50")},m(C,V){j(C,t,V),j(C,r,V),j(C,i,V),j(C,s,V),j(C,a,V),j(C,c,V),j(C,p,V),j(C,d,V),j(C,y,V),j(C,S,V),Pe&&Pe.m(C,V),j(C,$,V),re(D,C,V),j(C,T,V),j(C,P,V),re(I,P,null),u(P,X),ke&&ke.m(P,null),u(P,G),v&&v.m(P,null),u(P,U),Ae[B].m(P,null),u(P,W),u(P,A),re(q,A,null),u(P,H),u(P,J),re(M,J,null),u(P,ne),ye&&ye.m(P,null),u(P,K),u(P,de),re(ge,de,null),u(P,qe),re(Oe,P,null),u(P,dt),re(_e,P,null),u(P,rt),re(Me,P,null),e[55](P),j(C,$e,V),j(C,ae,V),Ke.m(qc,ae),u(ae,Ze);for(let He=0;He<Ie.length;He+=1)Ie[He].m(ae,null);e[59](ae),j(C,mt,V),j(C,Ue,V),u(Ue,Fe),ft(Fe,e[7]),j(C,Qe,V),Re&&Re.m(C,V),j(C,st,V),me=!0,Ct||(ze=[L(Up,"keyup",e[32]),L(Fe,"input",e[60]),L(Fe,"keydown",e[61])],Ct=!0)},p(C,V){(!me||V[0]&131072)&&n!==(n=(C[17]??"")+"")&&It(t,n),(!me||V[0]&262144)&&o!==(o=(C[18]??"")+"")&&It(i,o),(!me||V[0]&524288)&&l!==(l=(C[19]??"")+"")&&It(a,l),(!me||V[0]&1048576)&&h!==(h=(C[20]??"")+"")&&It(p,h),(!me||V[0]&2097152)&&b!==(b=(C[21]??"")+"")&&It(y,b),C[9]?Pe?V[0]&512&&R(Pe,1):(Pe=Qa(),Pe.c(),R(Pe,1),Pe.m($.parentNode,$)):Pe&&(bt(),Y(Pe,1,1,()=>{Pe=null}),vt()),C[22]?ke?V[0]&4194304&&R(ke,1):(ke=ec(),ke.c(),R(ke,1),ke.m(P,G)):ke&&(bt(),Y(ke,1,1,()=>{ke=null}),vt()),C[23]?v?V[0]&8388608&&R(v,1):(v=tc(),v.c(),R(v,1),v.m(P,U)):v&&(bt(),Y(v,1,1,()=>{v=null}),vt());let He=B;B=Ne(C),B===He?Ae[B].p(C,V):(bt(),Y(Ae[He],1,1,()=>{Ae[He]=null}),vt(),x=Ae[B],x?x.p(C,V):(x=Ae[B]=Se[B](C),x.c()),R(x,1),x.m(P,W));const en={};V[0]&256&&(en.width=C[8]),V[0]&256&&(en.height=C[8]),q.$set(en),(!me||V[0]&1024)&&te(A,"opacity-50",!C[10].length),(!me||V[0]&1024)&&te(A,"cursor-not-allowed",!C[10].length),(!me||V[0]&1024)&&te(A,"hover:text-primary",C[10].length);const Bt={};V[0]&256&&(Bt.width=C[8]),V[0]&256&&(Bt.height=C[8]),M.$set(Bt),(!me||V[0]&2048)&&te(J,"opacity-50",!C[11].length),(!me||V[0]&2048)&&te(J,"cursor-not-allowed",!C[11].length),(!me||V[0]&2048)&&te(J,"hover:text-primary",C[11].length),C[1].length?ye?(ye.p(C,V),V[0]&2&&R(ye,1)):(ye=nc(C),ye.c(),R(ye,1),ye.m(P,K)):ye&&(bt(),Y(ye,1,1,()=>{ye=null}),vt());const At={};V[0]&256&&(At.width=C[8]),V[0]&256&&(At.height=C[8]),ge.$set(At);const at={};V[0]&256&&(at.width=C[8]),V[0]&256&&(at.height=C[8]),!Xe&&V[0]&8&&(Xe=!0,at.element=C[3],Hl(()=>Xe=!1)),Oe.$set(at);const ct={};V[0]&8&&(ct.settingsElement=C[3]),!be&&V[0]&16&&(be=!0,ct.settingsOpen=C[4],Hl(()=>be=!1)),!We&&V[0]&2&&(We=!0,ct.selectedLineIds=C[1],Hl(()=>We=!1)),_e.$set(ct),V[0]&1090|V[1]&128&&(Pt=C[10],bt(),Ie=Po(Ie,V,et,1,C,Pt,Je,ae,bc,rc,null,Ja),vt()),(!me||V[0]&8192)&&te(ae,"py-16",!C[13]),(!me||V[0]&8192)&&te(ae,"py-8",C[13]),(!me||V[0]&65536)&&te(ae,"opacity-50",C[16]),(!me||V[0]&16384)&&te(ae,"flex-col-reverse",C[14]),V[0]&16777216&&ve(ae,"font-size",`${C[24]}px`),V[0]&33554432&&ve(ae,"font-family",C[25]!==Bn.OFF?C[25]:void 0),V[0]&8192&&ve(ae,"writing-mode",C[13]?"vertical-rl":"horizontal-tb"),V[0]&128&&Fe.value!==C[7]&&ft(Fe,C[7]),C[16]?Re?V[0]&65536&&R(Re,1):(Re=oc(),Re.c(),R(Re,1),Re.m(st.parentNode,st)):Re&&(bt(),Y(Re,1,1,()=>{Re=null}),vt())},i(C){if(!me){R(Pe),R(D.$$.fragment,C),R(I.$$.fragment,C),R(ke),R(v),R(x),R(q.$$.fragment,C),R(M.$$.fragment,C),R(ye),R(ge.$$.fragment,C),R(Oe.$$.fragment,C),R(_e.$$.fragment,C),R(Me.$$.fragment,C);for(let V=0;V<Pt.length;V+=1)R(Ie[V]);R(Re),me=!0}},o(C){Y(Pe),Y(D.$$.fragment,C),Y(I.$$.fragment,C),Y(ke),Y(v),Y(x),Y(q.$$.fragment,C),Y(M.$$.fragment,C),Y(ye),Y(ge.$$.fragment,C),Y(Oe.$$.fragment,C),Y(_e.$$.fragment,C),Y(Me.$$.fragment,C);for(let V=0;V<Ie.length;V+=1)Y(Ie[V]);Y(Re),me=!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(y),C&&F(S),Pe&&Pe.d(C),C&&F($),oe(D,C),C&&F(T),C&&F(P),oe(I),ke&&ke.d(),v&&v.d(),Ae[B].d(),oe(q),oe(M),ye&&ye.d(),oe(ge),oe(Oe),e[52](null),oe(_e),oe(Me),e[55](null),C&&F($e),C&&F(ae);for(let V=0;V<Ie.length;V+=1)Ie[V].d();e[59](null),C&&F(mt),C&&F(Ue),C&&F(Qe),Re&&Re.d(C),C&&F(st),Ct=!1,St(ze)}}}const Yp=/[\p{scx=Hira}\p{scx=Kana}\p{scx=Han}]/imu;function Gp(e,n,t){let r,o,i,s,l,a,c,h,p,d,b,y,S,$,D,T,P,I,X,G,U,B,x,W,A,q,H,J,M,ne,K,de,ge,qe,Oe,Xe;k(e,il,_=>t(65,o=_)),k(e,ho,_=>t(67,s=_)),k(e,ll,_=>t(9,l=_)),k(e,Ge,_=>t(10,a=_)),k(e,Ve,_=>t(68,c=_)),k(e,mr,_=>t(69,h=_)),k(e,Vn,_=>t(11,p=_)),k(e,vr,_=>t(70,d=_)),k(e,kr,_=>t(71,b=_)),k(e,bl,_=>t(72,y=_)),k(e,go,_=>t(73,S=_)),k(e,as,_=>t(12,$=_)),k(e,gr,_=>t(74,D=_)),k(e,ss,_=>t(75,T=_)),k(e,Sr,_=>t(13,P=_)),k(e,Cr,_=>t(14,I=_)),k(e,Xt,_=>t(44,X=_)),k(e,po,_=>t(76,G=_)),k(e,qt,_=>t(15,U=_)),k(e,fo,_=>t(77,B=_)),k(e,uo,_=>t(78,x=_)),k(e,co,_=>t(79,W=_)),k(e,ao,_=>t(80,A=_)),k(e,_l,_=>t(81,q=_)),k(e,vl,_=>t(16,H=_)),k(e,qn,_=>t(22,ge=_)),k(e,Sn,_=>t(23,qe=_)),k(e,br,_=>t(24,Oe=_)),k(e,Qr,_=>t(25,Xe=_));let dt=!1,_e,be=[],We,rt,Me=!1,$e,ae=[],Ke=!1,Ze=!1,Ie=null;Pe();const Je="wakeLock"in navigator,mt=kr.pipe(Tl(_=>_?new Set(a.map(Q=>Q.text)):new Set));k(e,mt,_=>t(66,i=_));const Ue=_r.pipe(Ol(([_,Q,ie])=>{const fe=Q===Yt.RESETCHECKBOXES,pe=Q===Yt.PASTE,ot=!pe||!H&&!q&&!Me&&!Ke,Zt=Ze&&Q===Yt.EXTERNAL;return Zt&&(Ze=!1),fe?(ke(),!1):(!U||(A||x)&&pe||(W||B)&&!pe)&&ot&&!Zt?(U&&(x&&pe||B&&!pe)&&N(qt,U=!1,U),!0):(!Zt&&ot&&G&&Et(),!1)}),Hn(_=>{const[Q]=_,ie=_.at(1)||Yt.SOCKET,fe=jt(Q,ie!==Yt.TL),pe=_.at(2)||gh();ie!==Yt.TL&&N(il,o=[...o,pe],o),fe&&N(Ge,a=Pt([...Ut(1),{id:pe,text:fe}]),a)}),Fn());k(e,Ue,_=>t(18,M=_));const Fe=lo.pipe(qo(_=>_?Un(document,"paste"):Go),Hn(_=>_r.next([_.clipboardData.getData("text/plain"),Yt.PASTE,""])),Fn());k(e,Fe,_=>t(19,ne=_));const Qe=Un(document,"visibilitychange").pipe(Hn(()=>{Je&&Ie!==null&&document.visibilityState==="visible"&&(Ie=navigator.wakeLock.request("screen").then(_=>_).catch(_=>(console.error(`Unable to aquire screen lock: ${_.message}`),null)))}),Fn());k(e,Qe,_=>t(17,J=_));const st=so.pipe(qo(_=>(Ze=!1,_?Un(document,"copy"):Go)),Hn(()=>Ze=!0),Fn());k(e,st,_=>t(20,K=_));const me=Un(window,"resize").pipe(ws(500),Hn(Ct),Fn());k(e,me,_=>t(21,de=_)),Ll(()=>{Ct(),Je&&(Ie=navigator.wakeLock.request("screen").then(_=>_).catch(_=>(console.error(`Unable to aquire screen lock: ${_.message}`),null)))});function Ct(){t(43,dt=window.matchMedia("(min-width: 640px)").matches),ye()}function ze(_){var Q;if(_.key==="Delete"){if((Q=window.getSelection())!=null&&Q.toString().trim()){const ie=window.getSelection().getRangeAt(0);for(let fe=0,{length:pe}=ae;fe<pe;fe+=1){const ot=ae[fe],Zt=ot==null?void 0:ot.getIdIfSelected(ie);Zt&&be.push(Zt)}}be.length?Ae():_.altKey&&Se()}else be.length&&_.key==="Escape"?Ne():_.altKey&&_.key==="a"?_e.handleReset(!1):_.altKey&&_.key==="q"&&_e.handleReset(!0)}function Pe(){setInterval(async()=>{try{const _=await fetch("/get_ids");if(!_.ok)throw new Error(`HTTP error! Status: ${_.status}`);N(il,o=await _.json(),o)}catch(_){console.error("Failed to fetch ids:",_)}},1e3)}function ke(){a.forEach(_=>{const Q=document.getElementById(`multi-line-checkbox-${_.id}`);Q&&typeof Q.checked=="boolean"?Q.checked=!1:console.warn(`Checkbox with ID 'multi-line-checkbox-${_.id}' not found or is not a valid checkbox element.`)})}async function v(){if(!p.length)return;const _=p.pop();let Q=_.pop();for(;Q;){const ie=jt(Q.text,!1);if(ie){const{id:fe,index:pe}=Q;pe>a.length-1?a.push({id:fe,text:ie}):a[pe].id===fe?N(Ge,a[pe]={id:fe,text:ie},a):a.splice(pe,0,{id:fe,text:ie})}Q=_.pop()}await Yo(),N(Ge,a=Pt(Ut()),a),Vn.set(p)}function Se(){if(!a.length)return;const[_]=a.splice(a.length-1,1);t(1,be=be.filter(Q=>Q!==_.id)),Ge.set(a),N(Vn,p=[...p,[{..._,index:a.length}]],p),i.delete(_.text)}function Ae(){const _=new Set(be),Q=[];N(Ge,a=a.filter((ie,fe)=>{const pe=_.has(ie.id);return _.delete(ie.id),pe&&(Q.push({...ie,index:fe-Q.length}),i.delete(ie.text)),!pe}),a),t(1,be=_.size?[..._]:[]),Q.length&&N(Vn,p=[...p,Q],p)}function Ne(){var _;for(let Q=0,{length:ie}=ae;Q<ie;Q+=1)(_=ae[Q])==null||_.deselect();t(1,be=[])}function ye(){Es(window,$e,I,P)}function Et(){clearTimeout(T),D===Gt.GARDEN&&(We.classList.add("bg-base-200"),We.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]"),N(ss,T=window.setTimeout(()=>{D===Gt.GARDEN&&(We.classList.add("bg-base-100"),We.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),T)}function jt(_,Q=!0){const ie=Q?Gc(_,$):_;let fe=!0,pe=S?ie.replace(/\s/gm,"").trim():ie;return y&&!pe.match(Yp)&&(pe=""),pe?b?(fe=!i.has(pe),i.add(pe)):d&&a.length&&(fe=a.slice(-d).every(ot=>ot.text!==pe)):fe=!1,fe?pe:void 0}function xt(_){const{inEdit:Q,data:ie}=_.detail;if(ie&&ie.originalText!==ie.newText){const fe=jt(ie.newText);N(Ge,a[ie.lineIndex]={id:ie.line.id,text:fe},a),fe?(N(Vn,p=[...p,[{...ie.line,index:ie.lineIndex}]],p),i.delete(ie.originalText),i.add(fe)):Yo().then(()=>N(Ge,a[ie.lineIndex]={id:ie.line.id,text:ie.originalText},a))}Ke=Q}function Ut(_=0){const Q=new Set,ie=h?a.length-h+_:0,fe=ie>0?a.filter((pe,ot)=>ot<ie?(Q.add(pe.id),i.delete(pe.text),!1):!0):a;return Q.size&&t(1,be=be.filter(pe=>!Q.has(pe))),fe}function Nt(_){if(_){N(ll,l=!0,l);try{for(let Q=0,{length:ie}=a;Q<ie;Q+=1){const fe=a[Q],pe=jt(fe.text);pe&&pe!==fe.text&&(i.delete(fe.text),N(Ge,a[Q]={...fe,text:pe},a))}N(Ve,c={message:"Operation executed",showCancel:!1},c)}catch({message:Q}){N(Ve,c={type:"error",message:`An Error occured: ${Q}`,showCancel:!1},c)}N(Ge,a=Pt(Ut()),a),N(ll,l=!1,l)}}function Pt(_){if(!s||_.length<2)return _;const Q=_.length-1,ie=Q-1,fe=_[Q],pe=_[ie].text;return fe.text.startsWith(pe)&&(i.delete(pe),t(1,be=be.filter(ot=>ot!==_[ie].id)),_.splice(ie,2,fe)),_}let et="";async function Re(){if(et.trim())try{let _=o;Number(et)<_.length&&(_=_.slice(-Number(et)));const Q=await fetch("/translate-multiple",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:_})});if(Q.ok){const ie=await Q.text();_r.next([ie,Yt.TL,""])}}catch(_){console.error("Translation failed:",_)}}const C=()=>N(qt,U=!1,U),V=()=>N(qt,U=!0,U),He=()=>N(vl,H=!0,H);function en(_){rt=_,t(3,rt)}const Bt=()=>t(4,Me=!Me);function At(_){Me=_,t(4,Me)}function at(_){be=_,t(1,be)}function ct(_){pt[_?"unshift":"push"](()=>{_e=_,t(0,_e)})}const xr=()=>Nt(!!$.length),Pr=()=>N(Ge,a=Ut(),a);function Pn(_){pt[_?"unshift":"push"](()=>{We=_,t(2,We)})}function Ar(_,Q){pt[_?"unshift":"push"](()=>{ae[Q]=_,t(6,ae)})}const Rt=({detail:_})=>{t(1,be=[...be,_])},An=({detail:_})=>{t(1,be=be.filter(Q=>Q!==_))};function tn(_){pt[_?"unshift":"push"](()=>{$e=_,t(5,$e)})}function Dr(){et=this.value,t(7,et)}const Ht=_=>_.key==="Enter"&&Re();return e.$$.update=()=>{e.$$.dirty[1]&4096&&t(8,r=dt?"1.5rem":"1.25rem"),e.$$.dirty[1]&8192&&N(as,$=X.filter(_=>_.enabled),$)},[_e,be,We,rt,Me,$e,ae,et,r,l,a,p,$,P,I,U,H,J,M,ne,K,de,ge,qe,Oe,Xe,mt,Ue,Fe,Qe,st,me,ze,v,Se,Ae,Ne,ye,xt,Ut,Nt,Re,Pe,dt,X,C,V,He,en,Bt,At,at,ct,xr,Pr,Pn,Ar,Rt,An,tn,Dr,Ht]}class qp extends Mt{constructor(n){super(),$t(this,n,Gp,zp,_t,{startIdPolling:42},null,[-1,-1,-1])}get startIdPolling(){return this.$$.ctx[42]}}new qp({target:document.body});
|
39
39
|
|
40
40
|
</script>
|
41
41
|
<style>
|
42
|
-
*,: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)}
|
42
|
+
*,: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}.bottom-2{bottom:.5rem}.right-2{right:.5rem}.top-12{top:3rem}.top-11{top:2.75rem}.z-50{z-index:50}.z-\[60\]{z-index:60}.z-30{z-index:30}.z-10{z-index:10}.z-20{z-index:20}.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-6{height:1.5rem}.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-8{width:2rem}.w-48{width:12rem}.w-3{width:.75rem}.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{border-radius:.25rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-2{border-width:2px}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.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-1{padding:.25rem}.p-4{padding:1rem}.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}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-xs{font-size:.75rem;line-height:1rem}.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)}
|
43
43
|
|
44
44
|
</style>
|
45
45
|
</head>
|