@vkontakte/videoplayer 1.1.55-dev.7131fb97.0 → 1.1.55-dev.74e495c6.0

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.
package/evergreen.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.55-dev.7131fb97.0
3
- * Mon, 03 Feb 2025 12:51:57 GMT
2
+ * @vkontakte/videoplayer v1.1.55-dev.74e495c6.0
3
+ * Wed, 05 Feb 2025 12:51:40 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-55/doc/
5
5
  */
6
6
  var $o=Symbol("$state"),Or=Symbol("$state metadata"),kl=Symbol("legacy props"),Gf=Symbol("");var _p=globalThis.process?.env?.NODE_ENV;_p||console.warn("If bundling, conditions should include development or production. If not bundling, conditions or NODE_ENV should include development or production. See https://www.npmjs.com/package/esm-env for tips on setting conditions in popular bundlers and runtimes.");var Oe=_p&&!_p.toLowerCase().includes("prod");var pr=Array.isArray,Yf=Array.prototype.indexOf,Tl=Array.from,$p=Object.keys,Hi=Object.defineProperty,Cn=Object.getOwnPropertyDescriptor,uc=Object.getOwnPropertyDescriptors,bp=Object.prototype,jf=Array.prototype,Hr=Object.getPrototypeOf;function Is(t){return typeof t=="function"}var Ut=()=>{};function Zf(t){return t()}function ns(t){for(var e=0;e<t.length;e++)t[e]()}var pc=!1,Jf=!1,yp=[],Xf=[];function em(){pc=!1;let t=yp.slice();yp=[],ns(t)}function Ih(){Jf=!1;let t=Xf.slice();Xf=[],ns(t)}function Jo(t){pc||(pc=!0,queueMicrotask(em)),yp.push(t)}function tm(){pc&&em(),Jf&&Ih()}var Es="font-weight: bold",Ps="font-weight: normal";function im(t,e,i){Oe?console.warn(`%c[svelte] hydration_attribute_changed
@@ -42,7 +42,7 @@ ${n.map(f=>`
42
42
  ${c}in ${f}`).join("")}
43
43
  `}),Hi(t,"component_stack",{value:n});let p=t.stack;if(p){let f=p.split(`
44
44
  `),m=[];for(let h=0;h<f.length;h++){let v=f[h];v.includes("svelte/src/internal")||m.push(v)}Hi(t,"stack",{value:m.join(`
45
- `)})}if(Em(t,e),Pm(e))throw t}function hc(t){var e=so,i=kn,o=zr,n=Mt,s=Qr,a=fr,l=Ct,c=t.f;so=null,kn=0,zr=null,Mt=c&96?null:t,Qr=!Wr&&(c&256)!==0,fr=null,Ct=t.ctx,yc++;try{var p=(0,t.fn)(),f=t.deps;if(so!==null){var m;if(Bs(t,kn),f!==null&&kn>0)for(f.length=kn+so.length,m=0;m<so.length;m++)f[kn+m]=so[m];else t.deps=f=so;if(!Qr)for(m=kn;m<f.length;m++)(f[m].reactions??=[]).push(t)}else f!==null&&kn<f.length&&(Bs(t,kn),f.length=kn);return n!==null&&yc++,p}finally{so=e,kn=i,zr=o,Mt=n,Qr=s,fr=a,Ct=l}}function Dh(t,e){let i=e.reactions;if(i!==null){var o=Yf.call(i,t);if(o!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[o]=i[n],i.pop())}}i===null&&e.f&2&&(so===null||!so.includes(e))&&(Bo(e,4096),e.f&768||(e.f^=512),Bs(e,0))}function Bs(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)Dh(t,i[o])}function Vs(t){var e=t.f;if(!(e&16384)){Bo(t,1024);var i=$t,o=Ct;if($t=t,Oe){var n=Ro;Ro=t.component_function}try{e&16?Dm(t):Fp(t),Hp(t),Op(t);var s=hc(t);t.teardown=typeof s=="function"?s:null,t.wv=Rm;var a=t.deps;if(Oe&&Tr&&t.f&2048&&a!==null)for(let c=0;c<a.length;c++){var l=a[c];l.trace_need_increase&&(l.wv=Pl(),l.trace_need_increase=void 0,l.trace_v=void 0)}Oe&&Ll.push(t)}catch(c){wa(c,t,i,o||t.ctx)}finally{$t=i,Oe&&(Ro=n)}}}function Am(){console.error("Last ten effects were: ",Ll.slice(-10).map(t=>t.fn)),Ll=[]}function Vm(){if(ya>1e3){ya=0;try{mm()}catch(t){if(Oe&&Hi(t,"stack",{value:""}),ba!==null)if(Oe)try{wa(t,ba,null,null)}catch(e){throw Am(),e}else wa(t,ba,null,null);else throw Oe&&Am(),t}}ya++}function Bm(t){var e=t.length;if(e!==0){Vm();var i=Wr;Wr=!0;try{for(var o=0;o<e;o++){var n=t[o];n.f&1024||(n.f^=1024);var s=[];Nm(n,s),Oh(s)}}finally{Wr=i}}}function Oh(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];if(!(o.f&24576))try{ss(o)&&(Vs(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Up(o):o.fn=null))}catch(n){wa(n,o,null,o.ctx)}}}function Hh(){if(Ml=!1,ya>1001)return;let t=Ns;Ns=[],Bm(t),Ml||(ya=0,ba=null,Oe&&(Ll=[]))}function _a(t){$c===Lm&&(Ml||(Ml=!0,queueMicrotask(Hh))),ba=t;for(var e=t;e.parent!==null;){e=e.parent;var i=e.f;if(i&96){if(!(i&1024))return;e.f^=1024}}Ns.push(e)}function Nm(t,e){var i=t.first,o=[];e:for(;i!==null;){var n=i.f,s=(n&32)!==0,a=s&&(n&1024)!==0,l=i.next;if(!a&&!(n&8192))if(n&8){if(s)i.f^=1024;else try{ss(i)&&Vs(i)}catch(m){wa(m,i,null,i.ctx)}var c=i.first;if(c!==null){i=c;continue}}else n&4&&o.push(i);if(l===null){let m=i.parent;for(;m!==null;){if(t===m)break e;var p=m.next;if(p!==null){i=p;continue e}m=m.parent}}i=l}for(var f=0;f<o.length;f++)c=o[f],e.push(c),Nm(c,e)}function d(t){var e=$c,i=Ns;try{Vm();let n=[];$c=Nh,Ns=n,Ml=!1,Bm(i);var o=t?.();return tm(),(Ns.length>0||n.length>0)&&d(),ya=0,ba=null,Oe&&(Ll=[]),o}finally{$c=e,Ns=i}}async function Ki(){await Promise.resolve(),d()}function r(t){var e=t.f,i=(e&2)!==0;if(i&&e&16384){var o=Rp(t);return Al(t),o}if(El!==null&&El.add(t),Mt!==null){fr!==null&&fr.includes(t)&&ym();var n=Mt.deps;t.rv<yc&&(t.rv=yc,so===null&&n!==null&&n[kn]===t?kn++:so===null?so=[t]:so.push(t),zr!==null&&$t!==null&&$t.f&1024&&!($t.f&32)&&zr.includes(t)&&(Bo($t,2048),_a($t)))}else if(i&&t.deps===null)for(var s=t,a=s.parent,l=s;a!==null;)if(a.f&2){var c=a;l=c,a=c.parent}else{var p=a;p.deriveds?.includes(l)||(p.deriveds??=[]).push(l);break}if(i&&(s=t,ss(s)&&Vp(s)),Oe&&Tr&&Il!==null&&Mt!==null&&Il.reaction===Mt){if(t.debug)t.debug();else if(t.created){var f=Il.entries.get(t);f===void 0&&(f={read:[]},Il.entries.set(t,f)),f.read.push(Ur("TracedAt"))}}return t.v}function ni(t){let e=Mt;try{return Mt=null,t()}finally{Mt=e}}var Fh=-7169;function Bo(t,e){t.f=t.f&Fh|e}function Ds(t){let i=Dp("getContext").get(t);if(Oe){let o=Ct.function;o&&vc(i,o,!0)}return i}function Os(t,e){return Dp("setContext").set(t,e),e}function Sa(){let t=Dp("getAllContexts");if(Oe){let e=Ct?.function;if(e)for(let i of t.values())vc(i,e,!0)}return t}function Dp(t){return Ct===null&&$a(t),Ct.c??=new Map(Uh(Ct)||void 0)}function Uh(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}function Cc(t,e=1){var i=r(t),o=e===1?i++:i--;return q(t,i),o}function T(t,e=!1,i){Ct={p:Ct,c:null,e:null,m:!1,s:t,x:null,l:null},kr&&!e&&(Ct.l={s:null,u:null,r1:[],r2:xi(!1)}),Oe&&(Ct.function=i,Ro=i)}function I(t){let e=Ct;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=$t,o=Mt;e.e=null;try{for(var n=0;n<a.length;n++){var s=a[n];Fi(s.effect),No(s.reaction),Tn(s.fn)}}finally{Fi(i),No(o)}}Ct=e.p,Oe&&(Ro=e.p?.function??null),e.m=!0}return t||{}}function Sc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if($o in t)xc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&$o in i&&xc(i)}}}function xc(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let o in t)try{xc(t[o],e)}catch{}let i=Hr(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=uc(i);for(let n in o){let s=o[n].get;if(s)try{s.call(t)}catch{}}}}}if(Oe){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;_m(e)},set:o=>{i=o}})}};zh=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var zh;var at=!1;function tn(t){at=t}var bt;function li(t){if(t===null)throw As(),Fr;return bt=t}function Ii(){return li(ao(bt))}function _(t){if(at){if(ao(bt)!==null)throw As(),Fr;bt=t}}function Te(t=1){if(at){for(var e=t,i=bt;e--;)i=ao(i);bt=i}}function ka(){for(var t=0,e=bt;;){if(e.nodeType===8){var i=e.data;if(i===Ls){if(t===0)return e;t-=1}else(i===ua||i===Ms)&&(t+=1)}var o=ao(e);e.remove(),e=o}}function $e(t,e=null,i){var o=null;if(Oe&&Tr&&(o=Ur("CreatedAt")),typeof t!="object"||t===null||$o in t)return t;let n=Hr(t);if(n!==bp&&n!==jf)return t;var s=new Map,a=pr(t),l=xi(0);a&&s.set("length",xi(t.length,o));var c;if(Oe)if(c={parent:e,owners:null},i){let p=i.v?.[Or]?.owners;c.owners=p?new Set(p):null}else c.owners=e===null?Ct!==null?new Set([Ct.function]):null:new Set;return new Proxy(t,{defineProperty(p,f,m){(!("value"in m)||m.configurable===!1||m.enumerable===!1||m.writable===!1)&&$m();var h=s.get(f);return h===void 0?(h=xi(m.value,o),s.set(f,h)):q(h,$e(m.value,c)),!0},deleteProperty(p,f){var m=s.get(f);if(m===void 0)f in p&&s.set(f,xi(Ti,o));else{if(a&&typeof f=="string"){var h=s.get("length"),v=Number(f);Number.isInteger(v)&&v<h.v&&q(h,v)}q(m,Ti),Om(l)}return!0},get(p,f,m){if(Oe&&f===Or)return c;if(f===$o)return t;var h=s.get(f),v=f in p;if(h===void 0&&(!v||Cn(p,f)?.writable)&&(h=xi($e(v?p[f]:Ti,c),o),s.set(f,h)),h!==void 0){var x=r(h);if(Oe){var w=x?.[Or];w&&w?.parent!==c&&Cp(c,w)}return x===Ti?void 0:x}return Reflect.get(p,f,m)},getOwnPropertyDescriptor(p,f){var m=Reflect.getOwnPropertyDescriptor(p,f);if(m&&"value"in m){var h=s.get(f);h&&(m.value=r(h))}else if(m===void 0){var v=s.get(f),x=v?.v;if(v!==void 0&&x!==Ti)return{enumerable:!0,configurable:!0,value:x,writable:!0}}return m},has(p,f){if(Oe&&f===Or||f===$o)return!0;var m=s.get(f),h=m!==void 0&&m.v!==Ti||Reflect.has(p,f);if(m!==void 0||$t!==null&&(!h||Cn(p,f)?.writable)){m===void 0&&(m=xi(h?$e(p[f],c):Ti,o),s.set(f,m));var v=r(m);if(v===Ti)return!1}return h},set(p,f,m,h){var v=s.get(f),x=f in p;if(a&&f==="length")for(var w=m;w<v.v;w+=1){var A=s.get(w+"");A!==void 0?q(A,Ti):w in p&&(A=xi(Ti,o),s.set(w+"",A))}if(v===void 0?(!x||Cn(p,f)?.writable)&&(v=xi(void 0,o),q(v,$e(m,c)),s.set(f,v)):(x=v.v!==Ti,q(v,$e(m,c))),Oe){var B=m?.[Or];B&&B?.parent!==c&&Cp(c,B),lm(c)}var O=Reflect.getOwnPropertyDescriptor(p,f);if(O?.set&&O.set.call(h,m),!x){if(a&&typeof f=="string"){var R=s.get("length"),K=Number(f);Number.isInteger(K)&&K>=R.v&&q(R,K+1)}Om(l)}return!0},ownKeys(p){r(l);var f=Reflect.ownKeys(p).filter(v=>{var x=s.get(v);return x===void 0||x.v!==Ti});for(var[m,h]of s)h.v!==Ti&&!(m in p)&&f.push(m);return f},setPrototypeOf(){bm()}})}function Om(t,e=1){q(t,t.v+e)}function kc(t){return t!==null&&typeof t=="object"&&$o in t?t[$o]:t}function Hm(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(s,a){let l=i.call(this,s,a);if(l===-1){for(let c=a??0;c<this.length;c+=1)if(kc(this[c])===s){fc("array.indexOf(...)");break}}return l},t.lastIndexOf=function(s,a){let l=o.call(this,s,a??this.length-1);if(l===-1){for(let c=0;c<=(a??this.length-1);c+=1)if(kc(this[c])===s){fc("array.lastIndexOf(...)");break}}return l},t.includes=function(s,a){let l=n.call(this,s,a);if(!l){for(let c=0;c<this.length;c+=1)if(kc(this[c])===s){fc("array.includes(...)");break}}return l},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Hs,Fm,Um,zm;function Tc(){if(Hs===void 0){Hs=window,Fm=document;var t=Element.prototype,e=Node.prototype;Um=Cn(e,"firstChild").get,zm=Cn(e,"nextSibling").get,t.__click=void 0,t.__className="",t.__attributes=null,t.__styles=null,t.__e=void 0,Text.prototype.__t=void 0,Oe&&(t.__svelte_meta=null,Hm())}}function on(t=""){return document.createTextNode(t)}function si(t){return Um.call(t)}function ao(t){return zm.call(t)}function $(t,e){if(!at)return si(t);var i=si(bt);if(i===null)i=bt.appendChild(on());else if(e&&i.nodeType!==3){var o=on();return i?.before(o),li(o),o}return li(i),i}function ye(t,e){if(!at){var i=si(t);return i.nodeType===8&&i.data===""?ao(i):i}if(e&&bt?.nodeType!==3){var o=on();return bt?.before(o),li(o),o}return bt}function V(t,e=1,i=!1){let o=at?bt:t;for(var n;e--;)n=o,o=ao(o);if(!at)return o;var s=o?.nodeType;if(i&&s!==3){var a=on();return o===null?n?.after(a):o.before(a),li(a),a}return li(o),o}function Rl(t){t.textContent=""}function zp(t){$t===null&&Mt===null&&fm(t),Mt!==null&&Mt.f&256&&pm(),wc&&um(t)}function qh(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Fs(t,e,i,o=!0){var n=(t&64)!==0,s=$t;if(Oe)for(;s!==null&&s.f&262144;)s=s.parent;var a={ctx:Ct,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n?null:s,prev:null,teardown:null,transitions:null,wv:0};if(Oe&&(a.component_function=Ro),i){var l=Wr;try{va(!0),Vs(a),a.f|=32768}catch(f){throw Wi(a),f}finally{va(l)}}else e!==null&&_a(a);var c=i&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&1048704)===0;if(!c&&!n&&o&&(s!==null&&qh(a,s),Mt!==null&&Mt.f&2)){var p=Mt;(p.children??=[]).push(a)}return a}function In(t){let e=Fs(8,null,!1);return Bo(e,1024),e.teardown=t,e}function qe(t){zp("$effect");var e=$t!==null&&($t.f&32)!==0&&Ct!==null&&!Ct.m;if(Oe&&Hi(t,"name",{value:"$effect"}),e){var i=Ct;(i.e??=[]).push({fn:t,effect:$t,reaction:Mt})}else{var o=Tn(t);return o}}function pa(t){return zp("$effect.pre"),Oe&&Hi(t,"name",{value:"$effect.pre"}),ro(t)}function Ic(t){let e=Fs(64,t,!0);return()=>{Wi(e)}}function Km(t){let e=Fs(64,t,!0);return(i={})=>new Promise(o=>{i.outro?En(e,()=>{Wi(e),o(void 0)}):(Wi(e),o(void 0))})}function Tn(t){return Fs(4,t,!1)}function ro(t){return Fs(8,t,!0)}function M(t){return Oe&&Hi(t,"name",{value:"{expression}"}),Qi(t)}function Qi(t,e=0){return Fs(24|e,t,!0)}function Ni(t,e=!0){return Fs(40,t,!0,e)}function Op(t){var e=t.teardown;if(e!==null){let i=wc,o=Mt;Np(!0),No(null);try{e.call(null)}finally{Np(i),No(o)}}}function Hp(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var i=0;i<e.length;i+=1)Al(e[i])}}function Fp(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;Wi(i,e),i=o}}function Dm(t){for(var e=t.first;e!==null;){var i=e.next;e.f&32||Wi(e),e=i}}function Wi(t,e=!0){var i=!1;if((e||t.f&524288)&&t.nodes_start!==null){for(var o=t.nodes_start,n=t.nodes_end;o!==null;){var s=o===n?null:ao(o);o.remove(),o=s}i=!0}Fp(t,e&&!i),Hp(t),Bs(t,0),Bo(t,16384);var a=t.transitions;if(a!==null)for(let c of a)c.stop();Op(t);var l=t.parent;l!==null&&l.first!==null&&Up(t),Oe&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Up(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function En(t,e){var i=[];Ec(t,i,!0),qp(i,()=>{Wi(t),e&&e()})}function qp(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function Ec(t,e,i){if(!(t.f&8192)){if(t.f^=8192,t.transitions!==null)for(let a of t.transitions)(a.is_global||i)&&e.push(a);for(var o=t.first;o!==null;){var n=o.next,s=(o.f&65536)!==0||(o.f&32)!==0;Ec(o,e,s?i:!1),o=n}}}function cs(t){Qm(t,!0)}function Qm(t,e){if(t.f&8192){ss(t)&&Vs(t),t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;Qm(i,n?e:!1),i=o}if(t.transitions!==null)for(let s of t.transitions)(s.is_global||e)&&s.in()}}function Wp(t,e){if(e){let i=document.body;t.autofocus=!0,Jo(()=>{document.activeElement===i&&t.focus()})}}function Kp(t){var e=Mt,i=$t;No(null),Fi(null);try{return t()}finally{No(e),Fi(i)}}var Qp=new Set,Pc=new Set;function Us(t){if(!at)return;t.onload&&t.removeAttribute("onload"),t.onerror&&t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Gp(t,e,i,o){function n(s){if(o.capture||Ta.call(e,s),!s.cancelBubble)return Kp(()=>i.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Jo(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function At(t,e,i,o,n){var s={capture:o,passive:n},a=Gp(t,e,i,s);(e===document.body||e===window||e===document)&&In(()=>{e.removeEventListener(t,a,s)})}function gt(t){for(var e=0;e<t.length;e++)Qp.add(t[e]);for(var i of Pc)i(t)}function Ta(t){var e=this,i=e.ownerDocument,o=t.type,n=t.composedPath?.()||[],s=n[0]||t.target,a=0,l=t.__root;if(l){var c=n.indexOf(l);if(c!==-1&&(e===document||e===window)){t.__root=e;return}var p=n.indexOf(e);if(p===-1)return;c<=p&&(a=c)}if(s=n[a]||t.target,s!==e){Hi(t,"currentTarget",{configurable:!0,get(){return s||i}});var f=Mt,m=$t;No(null),Fi(null);try{for(var h,v=[];s!==null;){var x=s.assignedSlot||s.parentNode||s.host||null;try{var w=s["__"+o];if(w!==void 0&&!s.disabled)if(pr(w)){var[A,...B]=w;A.apply(s,[t,...B])}else w.call(s,t)}catch(O){h?v.push(O):h=O}if(t.cancelBubble||x===e||x===null)break;s=x}if(h){for(let O of v)queueMicrotask(()=>{throw O});throw h}}finally{t.__root=e,delete t.currentTarget,No(f),Fi(m)}}}var Kh;function Gm(){Kh=void 0}function Ia(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function lo(t,e){var i=$t;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function D(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,s=!t.startsWith("<!>");return()=>{if(at)return lo(bt,null),bt;n===void 0&&(n=Ia(s?t:"<!>"+t),i||(n=si(n)));var a=o?document.importNode(n,!0):n.cloneNode(!0);if(i){var l=si(a),c=a.lastChild;lo(l,c)}else lo(a,a);return a}}function Ie(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,a;return()=>{if(at)return lo(bt,null),bt;if(!a){var l=Ia(s),c=si(l);if(n)for(a=document.createDocumentFragment();si(c);)a.appendChild(si(c));else a=si(c)}var p=a.cloneNode(!0);if(n){var f=si(p),m=p.lastChild;lo(f,m)}else lo(p,p);return p}}function jn(t=""){if(!at){var e=on(t+"");return lo(e,e),e}var i=bt;return i.nodeType!==3&&(i.before(i=on()),li(i)),lo(i,i),i}function Ke(){if(at)return lo(bt,null),bt;var t=document.createDocumentFragment(),e=document.createComment(""),i=on();return t.append(e,i),lo(e,i),t}function y(t,e){if(at){$t.nodes_end=bt,Ii();return}t!==null&&t.before(e)}var Gh=/\r/g;function jm(t){t=t.replace(Gh,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Zm(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var Yh=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Xm(t){return Yh.includes(t)}var jh=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory"];var Zh={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject"};function Jm(t){return t=t.toLowerCase(),Zh[t]??t}var R5=[...jh,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject"];var Xh=["touchstart","touchmove"];function ev(t){return Xh.includes(t)}function Yp(t){return t?.replace(/\//g,"/\u200B")}var jp=!0;function ke(t,e){var i=e==null?"":typeof e=="object"?e+"":e;i!==(t.__t??=t.nodeValue)&&(t.__t=i,t.nodeValue=i==null?"":i+"")}function Ac(t,e){return tv(t,e)}function Xp(t,e){Tc(),e.intro=e.intro??!1;let i=e.target,o=at,n=bt;try{for(var s=si(i);s&&(s.nodeType!==8||s.data!==ua);)s=ao(s);if(!s)throw Fr;tn(!0),li(s),Ii();let a=tv(t,{...e,anchor:s});if(bt===null||bt.nodeType!==8||bt.data!==Ls)throw As(),Fr;return tn(!1),a}catch(a){if(a===Fr)return e.recover===!1&&vm(),Tc(),Rl(i),tn(!1),Ac(t,e);throw a}finally{tn(o),li(n),Gm()}}var Ea=new Map;function tv(t,{target:e,anchor:i,props:o={},events:n,context:s,intro:a=!0}){Tc();var l=new Set,c=m=>{for(var h=0;h<m.length;h++){var v=m[h];if(!l.has(v)){l.add(v);var x=ev(v);e.addEventListener(v,Ta,{passive:x});var w=Ea.get(v);w===void 0?(document.addEventListener(v,Ta,{passive:x}),Ea.set(v,1)):Ea.set(v,w+1)}}};c(Tl(Qp)),Pc.add(c);var p=void 0,f=Km(()=>{var m=i??e.appendChild(on());return Ni(()=>{if(s){T({});var h=Ct;h.c=s}n&&(o.$$events=n),at&&lo(m,null),jp=a,p=t(m,o)||{},jp=!0,at&&($t.nodes_end=bt),s&&I()}),()=>{for(var h of l){e.removeEventListener(h,Ta);var v=Ea.get(h);--v===0?(document.removeEventListener(h,Ta),Ea.delete(h)):Ea.set(h,v)}Pc.delete(c),m!==i&&m.parentNode?.removeChild(m)}});return Zp.set(p,f),p}var Zp=new WeakMap;function Jp(t,e){let i=Zp.get(t);return i?(Zp.delete(t),i(e)):(Oe&&nm(),Promise.resolve())}var tf;function k(t){return tf=t.target,new ef(t)}var ef=class{#t;#e;constructor(e){var i=new Map,o=(s,a)=>{var l=qr(a);return i.set(s,l),l};let n=new Proxy({...e.props||{},$$events:{}},{get(s,a){return r(i.get(a)??o(a,Reflect.get(s,a)))},has(s,a){return a===kl?!0:(r(i.get(a)??o(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return q(i.get(a)??o(a,l),l),Reflect.set(s,a,l)}});this.#e=(e.hydrate?Xp:Ac)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&d(),this.#t=n.$$events;for(let s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Hi(this,s,{get(){return this.#e[s]},set(a){this.#e[s]=a},enumerable:!0});this.#e.$set=s=>{Object.assign(n,s)},this.#e.$destroy=()=>{Jp(this.#e)}}$set(e){this.#e.$set(e)}$on(e,i){this.#t[e]=this.#t[e]||[];let o=(...n)=>i.call(this,...n);return this.#t[e].push(o),()=>{this.#t[e]=this.#t[e].filter(n=>n!==o)}}$destroy(){this.#e.$destroy()}};var iv="5";typeof window<"u"&&(window.__svelte||={v:new Set}).v.add(iv);var ov=new Map;function nv(t,e){var i=ov.get(t);i||(i=new Set,ov.set(t,i)),i.add(e)}function F(t,e,i=!1){at&&Ii();var o=t,n=null,s=null,a=Ti,l=i?65536:0,c=!1;let p=(m,h=!0)=>{c=!0,f(h,m)},f=(m,h)=>{if(a===(a=m))return;let v=!1;if(at){let x=o.data===Ms;!!a===x&&(o=ka(),li(o),tn(!1),v=!0)}a?(n?cs(n):h&&(n=Ni(()=>h(o))),s&&En(s,()=>{s=null})):(s?cs(s):h&&(s=Ni(()=>h(o))),n&&En(n,()=>{n=null})),v&&tn(!0)};Qi(()=>{c=!1,e(p),c||f(null,null)},l),at&&(o=bt)}function Vl(t,e,i){at&&Ii();var o=t,n=Ti,s,a=rs()?cm:fa;Qi(()=>{a(n,n=e())&&(s&&En(s),s=Ni(()=>i(o)))}),at&&(o=bt)}var Bl=null;function hi(t,e){return e}function d_(t,e,i,o){for(var n=[],s=e.length,a=0;a<s;a++)Ec(e[a].e,n,!0);var l=s>0&&n.length===0&&i!==null;if(l){var c=i.parentNode;Rl(c),c.append(i),o.clear(),ds(t,e[0].prev,e[s-1].next)}qp(n,()=>{for(var p=0;p<s;p++){var f=e[p];l||(o.delete(f.k),ds(t,f.prev,f.next)),Wi(f.e,!l)}})}function ci(t,e,i,o,n,s=null){var a=t,l={flags:e,items:new Map,first:null},c=(e&4)!==0;if(c){var p=t;a=at?li(si(p)):p.appendChild(on())}at&&Ii();var f=null,m=!1,h=Kr(()=>{var v=i();return pr(v)?v:v==null?[]:Tl(v)});Qi(()=>{var v=r(h),x=v.length;if(m&&x===0)return;m=x===0;let w=!1;if(at){var A=a.data===Ms;A!==(x===0)&&(a=ka(),li(a),tn(!1),w=!0)}if(at){for(var B=null,O,R=0;R<x;R++){if(bt.nodeType===8&&bt.data===Ls){a=bt,w=!0,tn(!1);break}var K=v[R],S=o(K,R);O=av(bt,l,B,null,K,S,R,n,e,i),l.items.set(S,O),B=O}x>0&&li(ka())}if(!at){var H=Mt;u_(v,l,a,n,e,(H.f&8192)!==0,o,i)}s!==null&&(x===0?f?cs(f):f=Ni(()=>s(a)):f!==null&&En(f,()=>{f=null})),w&&tn(!0),r(h)}),at&&(a=bt)}function u_(t,e,i,o,n,s,a,l){var c=(n&8)!==0,p=(n&3)!==0,f=t.length,m=e.items,h=e.first,v=h,x,w=null,A,B=[],O=[],R,K,S,H;if(c)for(H=0;H<f;H+=1)R=t[H],K=a(R,H),S=m.get(K),S!==void 0&&(S.a?.measure(),(A??=new Set).add(S));for(H=0;H<f;H+=1){if(R=t[H],K=a(R,H),S=m.get(K),S===void 0){var Q=v?v.e.nodes_start:i;w=av(Q,e,w,w===null?e.first:w.next,R,K,H,o,n,l),m.set(K,w),B=[],O=[],v=w.next;continue}if(p&&p_(S,R,H,n),S.e.f&8192&&(cs(S.e),c&&(S.a?.unfix(),(A??=new Set).delete(S))),S!==v){if(x!==void 0&&x.has(S)){if(B.length<O.length){var W=O[0],X;w=W.prev;var ae=B[0],ve=B[B.length-1];for(X=0;X<B.length;X+=1)rv(B[X],W,i);for(X=0;X<O.length;X+=1)x.delete(O[X]);ds(e,ae.prev,ve.next),ds(e,w,ae),ds(e,ve,W),v=W,w=ve,H-=1,B=[],O=[]}else x.delete(S),rv(S,v,i),ds(e,S.prev,S.next),ds(e,S,w===null?e.first:w.next),ds(e,w,S),w=S;continue}for(B=[],O=[];v!==null&&v.k!==K;)(s||!(v.e.f&8192))&&(x??=new Set).add(v),O.push(v),v=v.next;if(v===null)continue;S=v}B.push(S),w=S,v=S.next}if(v!==null||x!==void 0){for(var Y=x===void 0?[]:Tl(x);v!==null;)(s||!(v.e.f&8192))&&Y.push(v),v=v.next;var ue=Y.length;if(ue>0){var Fe=n&4&&f===0?i:null;if(c){for(H=0;H<ue;H+=1)Y[H].a?.measure();for(H=0;H<ue;H+=1)Y[H].a?.fix()}d_(e,Y,Fe,m)}}c&&Jo(()=>{if(A!==void 0)for(S of A)S.a?.apply()}),$t.first=e.first&&e.first.e,$t.last=w&&w.e}function p_(t,e,i,o){o&1&&ha(t.v,e),o&2?ha(t.i,i):t.i=i}function av(t,e,i,o,n,s,a,l,c,p){var f=Bl,m=(c&1)!==0,h=(c&16)===0,v=m?h?qr(n):xi(n):n,x=c&2?xi(a):a;Oe&&m&&(v.debug=()=>{var A=typeof x=="number"?a:x.v;p()[A]});var w={i:x,v,k:s,a:null,e:null,prev:i,next:o};Bl=w;try{return w.e=Ni(()=>l(t,v,x),at),w.e.prev=i&&i.e,w.e.next=o&&o.e,i===null?e.first=w:(i.next=w,i.e.next=w.e),o!==null&&(o.prev=w,o.e.prev=w.e),w}finally{Bl=f}}function rv(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,s=t.e.nodes_start;s!==o;){var a=ao(s);n.before(s),s=a}}function ds(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function f_(t,e,i){if(!e||e===jm(String(i??"")))return;let o,n=t.__svelte_meta?.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:Ro?.[yi]&&(o=`in ${Ro[yi]}`),om(Yp(o))}function Nl(t,e,i,o,n){var s=t,a="",l;Qi(()=>{if(a===(a=e()??"")){at&&Ii();return}l!==void 0&&(Wi(l),l=void 0),a!==""&&(l=Ni(()=>{if(at){for(var c=bt.data,p=Ii(),f=p;p!==null&&(p.nodeType!==8||p.data!=="");)f=p,p=ao(p);if(p===null)throw As(),Fr;Oe&&!n&&f_(p.parentNode,c,a),lo(bt,f),s=li(p);return}var m=a+"";i?m=`<svg>${m}</svg>`:o&&(m=`<math>${m}</math>`);var h=Ia(m);if((i||o)&&(h=si(h)),lo(si(h),h.lastChild),i||o)for(;si(h);)s.before(si(h));else s.before(h)}))})}function Ve(t,e,i,o,n){at&&Ii();var s=e.$$slots?.[i],a=!1;s===!0&&(s=e[i==="default"?"children":i],a=!0),s===void 0?n!==null&&n(t):s(t,a?()=>o:o)}function Gi(t,e,...i){var o=t,n=Ut,s;Qi(()=>{n!==(n=e())&&(s&&(Wi(s),s=null),Oe&&n==null&&gm(),s=Ni(()=>n(o,...i)))},65536),at&&(o=bt)}function wi(t,e,i){at&&Ii();var o=t,n,s;Qi(()=>{n!==(n=e())&&(s&&(En(s),s=null),n&&(s=Ni(()=>i(o,n))))},65536),at&&(o=bt)}function re(t,e){Jo(()=>{var i=t.getRootNode(),o=(i.host?i:i.head??i.ownerDocument.head)||tf?.parentNode;if(!o?.querySelector("#"+e.hash)){let n=document.createElement("style");n.id=e.hash,n.textContent=e.code,o.appendChild(n),Oe&&nv(e.hash,n)}})}function lv(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=lv(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function cv(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=lv(t))&&(o&&(o+=" "),o+=e);return o}function Dl(t){return typeof t=="object"?cv(t):t??""}function pv(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function fe(t,e,i,o){var n=t.__attributes??={};if(at&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||mv(t,e,i??"");return}n[e]!==(n[e]=i)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[Gf]=i),i==null?t.removeAttribute(e):typeof i!="string"&&fv(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Be(t,e,i,o,n=!1,s=!1,a=!1){var l=e||{},c=t.tagName==="OPTION";for(var p in e)p in i||(i[p]=null);i.class&&(i.class=Dl(i.class)),o!==void 0&&(i.class=i.class?i.class+" "+o:o);var f=fv(t),m=t.__attributes??={};for(let O in i){let R=i[O];if(c&&O==="value"&&R==null){t.value=t.__value="",l[O]=R;continue}var h=l[O];if(R!==h){l[O]=R;var v=O[0]+O[1];if(v!=="$$"){if(v==="on"){let K={},S="$$"+O,H=O.slice(2);var x=Xm(H);if(Zm(H)&&(H=H.slice(0,-7),K.capture=!0),!x&&h){if(R!=null)continue;t.removeEventListener(H,l[S],K),l[S]=null}if(R!=null)if(x)t[`__${H}`]=R,gt([H]);else{let Q=function(W){l[O].call(this,W)};var B=Q;l[S]=Gp(H,t,Q,K)}else x&&(t[`__${H}`]=void 0)}else if(O==="style"&&R!=null)t.style.cssText=R+"";else if(O==="autofocus")Wp(t,!!R);else if(O==="__value"||O==="value"&&R!=null)t.value=t[O]=t.__value=R;else if(O==="selected"&&c)pv(t,R);else{var w=O;n||(w=Jm(w));var A=w==="defaultValue"||w==="defaultChecked";if(R==null&&!s&&!A)if(m[O]=null,w==="value"||w==="checked"){let K=t;if(w==="value"){let S=K.defaultValue;K.removeAttribute(w),K.defaultValue=S}else{let S=K.defaultChecked;K.removeAttribute(w),K.defaultChecked=S}}else t.removeAttribute(O);else A||f.includes(w)&&(s||typeof R!="string")?t[w]=R:typeof R!="function"&&(at&&(w==="src"||w==="href"||w==="srcset")?a||mv(t,w,R??""):fe(t,w,R))}O==="style"&&"__styles"in t&&(t.__styles={})}}}return l}var dv=new Map;function fv(t){var e=dv.get(t.nodeName);if(e)return e;dv.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=uc(o);for(var s in i)i[s].set&&e.push(s);o=Hr(o)}return e}function mv(t,e,i){Oe&&(e==="srcset"&&v_(t,i)||rf(t.getAttribute(e)??"",i)||im(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function rf(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function uv(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function v_(t,e){var i=uv(t.srcset),o=uv(e);return o.length===i.length&&o.every(([n,s],a)=>s===i[a][1]&&(rf(i[a][0],n)||rf(n,i[a][0])))}function Do(t,e,i){var o=t.__className,n=g_(e,i);at&&t.className===n?t.__className=n:(o!==n||at&&t.className!==n)&&(e==null&&!i?t.removeAttribute("class"):t.className=n,t.__className=n)}function g_(t,e){return(t??"")+(e?" "+e:"")}function ie(t,e,i){if(i){if(t.classList.contains(e))return;t.classList.add(e)}else{if(!t.classList.contains(e))return;t.classList.remove(e)}}var sf=class t{#t=new WeakMap;#e;#i;static entries=new WeakMap;constructor(e){this.#i=e}observe(e,i){var o=this.#t.get(e)||new Set;return o.add(i),this.#t.set(e,o),this.#o().observe(e,this.#i),()=>{var n=this.#t.get(e);n.delete(i),n.size===0&&(this.#t.delete(e),this.#e.unobserve(e))}}#o(){return this.#e??(this.#e=new ResizeObserver(e=>{for(var i of e){t.entries.set(i.target,i);for(var o of this.#t.get(i.target)||[])o(i)}}))}};var b_=new sf({box:"border-box"});function zs(t,e,i){var o=b_.observe(t,()=>i(t[e]));Tn(()=>(ni(()=>i(t[e])),o))}function vv(t,e){return t===e||t?.[$o]===e}function ht(t={},e,i,o){return Tn(()=>{var n,s;return ro(()=>{n=s,s=o?.()||[],ni(()=>{t!==i(...s)&&(e(t,...s),n&&vv(i(...n),t)&&e(null,...n))})}),()=>{Jo(()=>{s&&vv(i(...s),t)&&e(null,...s)})}}),t}function mr(t=!1){let e=Ct,i=e.l.u;if(!i)return;let o=()=>Sc(e.s);if(t){let n=0,s={},a=b(()=>{let l=!1,c=e.s;for(let p in c)c[p]!==s[p]&&(s[p]=c[p],l=!0);return l&&n++,n});o=()=>r(a)}i.b.length&&pa(()=>{gv(e,o),ns(i.b)}),qe(()=>{let n=ni(()=>i.m.map(Zf));return()=>{for(let s of n)typeof s=="function"&&s()}}),i.a.length&&qe(()=>{gv(e,o),ns(i.a)})}function gv(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}function E(t,e,i){t.$$events||={},t.$$events[e]||=[],t.$$events[e].push(i)}function P(t){for(var e in t)e in this&&(this[e]=t[e])}function Lt(t){Ct===null&&$a("onMount"),kr&&Ct.l!==null?x_(Ct).m.push(t):qe(()=>{let e=ni(t);if(typeof e=="function")return e})}function Zn(t){Ct===null&&$a("onDestroy"),Lt(()=>()=>ni(t))}function x_(t){var e=t.l;return e.u??={a:[],b:[],m:[]}}function Ol(t,e,i){if(t==null)return e(void 0),i&&i(void 0),Ut;let o=ni(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Pa=[];function Xn(t,e){return{subscribe:xe(t,e).subscribe}}function xe(t,e=Ut){let i=null,o=new Set;function n(l){if(fa(t,l)&&(t=l,i)){let c=!Pa.length;for(let p of o)p[1](),Pa.push(p,t);if(c){for(let p=0;p<Pa.length;p+=2)Pa[p][0](Pa[p+1]);Pa.length=0}}}function s(l){n(l(t))}function a(l,c=Ut){let p=[l,c];return o.add(p),o.size===1&&(i=e(n,s)||Ut),l(t),()=>{o.delete(p),o.size===0&&i&&(i(),i=null)}}return{set:n,update:s,subscribe:a}}function ri(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let s=e.length<2;return Xn(i,(a,l)=>{let c=!1,p=[],f=0,m=Ut,h=()=>{if(f)return;m();let x=e(o?p[0]:p,a,l);s?a(x):m=typeof x=="function"?x:Ut},v=n.map((x,w)=>Ol(x,A=>{p[w]=A,f&=~(1<<w),c&&h()},()=>{f|=1<<w}));return c=!0,h(),function(){ns(v),m(),c=!1}})}function Re(t){let e;return Ol(t,i=>e=i)(),e}var Lc=!1,af=Symbol();function C(t,e,i){let o=i[e]??={store:null,source:qr(void 0),unsubscribe:Ut};if(o.store!==t&&!(af in i))if(o.unsubscribe(),o.store=t??null,t==null)o.source.v=void 0,o.unsubscribe=Ut;else{var n=!0;o.unsubscribe=Ol(t,s=>{n?o.source.v=s:q(o.source,s)}),n=!1}return t&&af in i?Re(t):r(o.source)}function Qe(){let t={};function e(){In(()=>{for(var i in t)t[i].unsubscribe();Hi(t,af,{enumerable:!1,value:!0})})}return[t,e]}function lf(t){var e=Lc;try{return Lc=!1,[t(),Lc]}finally{Lc=e}}var T_={get(t,e){if(!t.exclude.includes(e))return r(t.version),e in t.special?t.special[e]():t.props[e]},set(t,e,i){return e in t.special||(t.special[e]=u({get[e](){return t.props[e]}},e,4)),t.special[e](i),Cc(t.version),!0},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},deleteProperty(t,e){return t.exclude.includes(e)||(t.exclude.push(e),Cc(t.version)),!0},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Ne(t,e){return new Proxy({props:t,exclude:e,special:{},version:xi(0)},T_)}var I_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Is(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let n=t.props[o];Is(n)&&(n=n());let s=Cn(n,e);if(s&&s.set)return s.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Is(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Cn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===$o||e===kl)return!1;for(let i of t.props)if(Is(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){Is(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function Gr(...t){return new Proxy({props:t},I_)}function hv(t){for(var e=$t,i=$t;e!==null&&!(e.f&96);)e=e.parent;try{return Fi(e),t()}finally{Fi(i)}}function u(t,e,i,o){var n=(i&1)!==0,s=!kr||(i&2)!==0,a=(i&8)!==0,l=(i&16)!==0,c=!1,p;a?[p,c]=lf(()=>t[e]):p=t[e];var f=$o in t||kl in t,m=a&&(Cn(t,e)?.set??(f&&e in t&&(Q=>t[e]=Q)))||void 0,h=o,v=!0,x=!1,w=()=>(x=!0,v&&(v=!1,l?h=ni(o):h=o),h);p===void 0&&o!==void 0&&(m&&s&&hm(e),p=w(),m&&m(p));var A;if(s)A=()=>{var Q=t[e];return Q===void 0?w():(v=!0,x=!1,Q)};else{var B=hv(()=>(n?b:Kr)(()=>t[e]));B.f|=131072,A=()=>{var Q=r(B);return Q!==void 0&&(h=void 0),Q===void 0?h:Q}}if(!(i&4))return A;if(m){var O=t.$$legacy;return function(Q,W){return arguments.length>0?((!s||!W||O||c)&&m(W?A():Q),Q):A()}}var R=!1,K=!1,S=qr(p),H=hv(()=>b(()=>{var Q=A(),W=r(S);return R?(R=!1,K=!0,W):(K=!1,S.v=Q)}));return n||(H.equals=ma),function(Q,W){if(El!==null&&(R=K,A(),r(S)),arguments.length>0){let X=W?r(H):s&&a?$e(Q):Q;return H.equals(X)||(R=!0,q(S,X),x&&h!==void 0&&(h=X),ni(()=>r(H))),Q}return r(H)}}var E_;typeof HTMLElement=="function"&&(E_=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){let o=this.$$c.$on(t,e);this.$$l_u.set(e,o)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){let o=this.$$l_u.get(e);o&&(o(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return s=>{let a=document.createElement("slot");n!=="default"&&(a.name=n),y(s,a)}};var t=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let i={},o=P_(this);for(let n of this.$$s)n in o&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),i.default=!0):i[n]=e(n));for(let n of this.attributes){let s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=cf(s,n.value,this.$$p_d,"toProp"))}for(let n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=k({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$host:this}}),this.$$me=Ic(()=>{ro(()=>{this.$$r=!0;for(let n of $p(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];let s=cf(n,this.$$d[n],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,s)}this.$$r=!1})});for(let n in this.$$l)for(let s of this.$$l[n]){let a=this.$$c.$on(n,s);this.$$l_u.set(s,a)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=cf(t,i,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return $p(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function cf(t,e,i,o){let n=i[t]?.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function P_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}import{noop as ep,safeStorage as B4,throttleFn as N4,clientChecker as D4}from"@vkontakte/videoplayer-shared/evergreen";import{SeekAction as O4}from"@vkontakte/videoplayer-statistics/evergreen";import{InterfaceLanguage as M_,fillWithDefault as L_,VideoQuality as $v}from"@vkontakte/videoplayer-shared/evergreen";var R_={isMobile:void 0,defaultLanguage:M_.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:$v.Q_480P,highQualityLimit:$v.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackStateValue:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},bv=t=>L_(t,R_),yv=t=>Os("ui-config",t),Kt=()=>Ds("ui-config");var Hl="vk_player_debug_panel_opened";var xv="videoplayer",wv="videoplayer";var Pr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Cv=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Sv=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),kv=new Set(["ShiftRight","ShiftLeft"]);var Tv=["TIMELINE"],Fl=[...Tv,"GRAPH_BUTTON"],df=[...Tv,"PLAY_BUTTON"],Ul=[...Fl,"PLAY_BUTTON"];var Ar=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(Ar||{}),Ws={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Iv,VERSION as V_}from"@vkontakte/videoplayer-shared/evergreen";import{VERSION as B_}from"@vkontakte/videoplayer-core/evergreen";import{VERSION as N_}from"@vkontakte/videoplayer-statistics/evergreen";var Rc="prod",Aa="1.1.55-dev.7131fb97.0";var Ks=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Ev=Symbol("storeContext"),Pv=Symbol("microStoresContext"),Av=(t,e)=>{Os(Ev,t),Os(Pv,e),Rc==="dev"&&(window.app={store:t,microStores:e})},De=()=>{let t=Ds(Ev);return Iv(t,"Store context is empty!"),t},Oo=()=>{let t=Ds(Pv);return Iv(t,"MicroStores context is empty!"),t},zt=(t,e)=>Bc(t,t.getValue(),e),Bc=(t,e,i)=>Xn(e,o=>{let n=t.subscribe(s=>{o(s),i?.(s)});return()=>n.unsubscribe()}),Mv=(t,e,i)=>{let o=t.info,{width:n,height:s}=Re(i.ui.playerSize),a=o.throughputEstimation$.getValue()?.toFixed(0)??0,l=o.rttEstimation$.getValue()?.toFixed(0)??0,c=o.isAutoQualityEnabled$.getValue()?"auto":"manual",p=`${Aa} (core: ${B_}, stat: ${N_}, shared: ${V_})`,f=Re(i.state.errorLog$),m=f.length?`
45
+ `)})}if(Em(t,e),Pm(e))throw t}function hc(t){var e=so,i=kn,o=zr,n=Mt,s=Qr,a=fr,l=Ct,c=t.f;so=null,kn=0,zr=null,Mt=c&96?null:t,Qr=!Wr&&(c&256)!==0,fr=null,Ct=t.ctx,yc++;try{var p=(0,t.fn)(),f=t.deps;if(so!==null){var m;if(Bs(t,kn),f!==null&&kn>0)for(f.length=kn+so.length,m=0;m<so.length;m++)f[kn+m]=so[m];else t.deps=f=so;if(!Qr)for(m=kn;m<f.length;m++)(f[m].reactions??=[]).push(t)}else f!==null&&kn<f.length&&(Bs(t,kn),f.length=kn);return n!==null&&yc++,p}finally{so=e,kn=i,zr=o,Mt=n,Qr=s,fr=a,Ct=l}}function Dh(t,e){let i=e.reactions;if(i!==null){var o=Yf.call(i,t);if(o!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[o]=i[n],i.pop())}}i===null&&e.f&2&&(so===null||!so.includes(e))&&(Bo(e,4096),e.f&768||(e.f^=512),Bs(e,0))}function Bs(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)Dh(t,i[o])}function Vs(t){var e=t.f;if(!(e&16384)){Bo(t,1024);var i=$t,o=Ct;if($t=t,Oe){var n=Ro;Ro=t.component_function}try{e&16?Dm(t):Fp(t),Hp(t),Op(t);var s=hc(t);t.teardown=typeof s=="function"?s:null,t.wv=Rm;var a=t.deps;if(Oe&&Tr&&t.f&2048&&a!==null)for(let c=0;c<a.length;c++){var l=a[c];l.trace_need_increase&&(l.wv=Pl(),l.trace_need_increase=void 0,l.trace_v=void 0)}Oe&&Ll.push(t)}catch(c){wa(c,t,i,o||t.ctx)}finally{$t=i,Oe&&(Ro=n)}}}function Am(){console.error("Last ten effects were: ",Ll.slice(-10).map(t=>t.fn)),Ll=[]}function Vm(){if(ya>1e3){ya=0;try{mm()}catch(t){if(Oe&&Hi(t,"stack",{value:""}),ba!==null)if(Oe)try{wa(t,ba,null,null)}catch(e){throw Am(),e}else wa(t,ba,null,null);else throw Oe&&Am(),t}}ya++}function Bm(t){var e=t.length;if(e!==0){Vm();var i=Wr;Wr=!0;try{for(var o=0;o<e;o++){var n=t[o];n.f&1024||(n.f^=1024);var s=[];Nm(n,s),Oh(s)}}finally{Wr=i}}}function Oh(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];if(!(o.f&24576))try{ss(o)&&(Vs(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Up(o):o.fn=null))}catch(n){wa(n,o,null,o.ctx)}}}function Hh(){if(Ml=!1,ya>1001)return;let t=Ns;Ns=[],Bm(t),Ml||(ya=0,ba=null,Oe&&(Ll=[]))}function _a(t){$c===Lm&&(Ml||(Ml=!0,queueMicrotask(Hh))),ba=t;for(var e=t;e.parent!==null;){e=e.parent;var i=e.f;if(i&96){if(!(i&1024))return;e.f^=1024}}Ns.push(e)}function Nm(t,e){var i=t.first,o=[];e:for(;i!==null;){var n=i.f,s=(n&32)!==0,a=s&&(n&1024)!==0,l=i.next;if(!a&&!(n&8192))if(n&8){if(s)i.f^=1024;else try{ss(i)&&Vs(i)}catch(m){wa(m,i,null,i.ctx)}var c=i.first;if(c!==null){i=c;continue}}else n&4&&o.push(i);if(l===null){let m=i.parent;for(;m!==null;){if(t===m)break e;var p=m.next;if(p!==null){i=p;continue e}m=m.parent}}i=l}for(var f=0;f<o.length;f++)c=o[f],e.push(c),Nm(c,e)}function d(t){var e=$c,i=Ns;try{Vm();let n=[];$c=Nh,Ns=n,Ml=!1,Bm(i);var o=t?.();return tm(),(Ns.length>0||n.length>0)&&d(),ya=0,ba=null,Oe&&(Ll=[]),o}finally{$c=e,Ns=i}}async function Ki(){await Promise.resolve(),d()}function r(t){var e=t.f,i=(e&2)!==0;if(i&&e&16384){var o=Rp(t);return Al(t),o}if(El!==null&&El.add(t),Mt!==null){fr!==null&&fr.includes(t)&&ym();var n=Mt.deps;t.rv<yc&&(t.rv=yc,so===null&&n!==null&&n[kn]===t?kn++:so===null?so=[t]:so.push(t),zr!==null&&$t!==null&&$t.f&1024&&!($t.f&32)&&zr.includes(t)&&(Bo($t,2048),_a($t)))}else if(i&&t.deps===null)for(var s=t,a=s.parent,l=s;a!==null;)if(a.f&2){var c=a;l=c,a=c.parent}else{var p=a;p.deriveds?.includes(l)||(p.deriveds??=[]).push(l);break}if(i&&(s=t,ss(s)&&Vp(s)),Oe&&Tr&&Il!==null&&Mt!==null&&Il.reaction===Mt){if(t.debug)t.debug();else if(t.created){var f=Il.entries.get(t);f===void 0&&(f={read:[]},Il.entries.set(t,f)),f.read.push(Ur("TracedAt"))}}return t.v}function ni(t){let e=Mt;try{return Mt=null,t()}finally{Mt=e}}var Fh=-7169;function Bo(t,e){t.f=t.f&Fh|e}function Ds(t){let i=Dp("getContext").get(t);if(Oe){let o=Ct.function;o&&vc(i,o,!0)}return i}function Os(t,e){return Dp("setContext").set(t,e),e}function Sa(){let t=Dp("getAllContexts");if(Oe){let e=Ct?.function;if(e)for(let i of t.values())vc(i,e,!0)}return t}function Dp(t){return Ct===null&&$a(t),Ct.c??=new Map(Uh(Ct)||void 0)}function Uh(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}function Cc(t,e=1){var i=r(t),o=e===1?i++:i--;return q(t,i),o}function T(t,e=!1,i){Ct={p:Ct,c:null,e:null,m:!1,s:t,x:null,l:null},kr&&!e&&(Ct.l={s:null,u:null,r1:[],r2:xi(!1)}),Oe&&(Ct.function=i,Ro=i)}function I(t){let e=Ct;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=$t,o=Mt;e.e=null;try{for(var n=0;n<a.length;n++){var s=a[n];Fi(s.effect),No(s.reaction),Tn(s.fn)}}finally{Fi(i),No(o)}}Ct=e.p,Oe&&(Ro=e.p?.function??null),e.m=!0}return t||{}}function Sc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if($o in t)xc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&$o in i&&xc(i)}}}function xc(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let o in t)try{xc(t[o],e)}catch{}let i=Hr(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=uc(i);for(let n in o){let s=o[n].get;if(s)try{s.call(t)}catch{}}}}}if(Oe){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;_m(e)},set:o=>{i=o}})}};zh=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var zh;var at=!1;function tn(t){at=t}var bt;function li(t){if(t===null)throw As(),Fr;return bt=t}function Ii(){return li(ao(bt))}function _(t){if(at){if(ao(bt)!==null)throw As(),Fr;bt=t}}function Te(t=1){if(at){for(var e=t,i=bt;e--;)i=ao(i);bt=i}}function ka(){for(var t=0,e=bt;;){if(e.nodeType===8){var i=e.data;if(i===Ls){if(t===0)return e;t-=1}else(i===ua||i===Ms)&&(t+=1)}var o=ao(e);e.remove(),e=o}}function $e(t,e=null,i){var o=null;if(Oe&&Tr&&(o=Ur("CreatedAt")),typeof t!="object"||t===null||$o in t)return t;let n=Hr(t);if(n!==bp&&n!==jf)return t;var s=new Map,a=pr(t),l=xi(0);a&&s.set("length",xi(t.length,o));var c;if(Oe)if(c={parent:e,owners:null},i){let p=i.v?.[Or]?.owners;c.owners=p?new Set(p):null}else c.owners=e===null?Ct!==null?new Set([Ct.function]):null:new Set;return new Proxy(t,{defineProperty(p,f,m){(!("value"in m)||m.configurable===!1||m.enumerable===!1||m.writable===!1)&&$m();var h=s.get(f);return h===void 0?(h=xi(m.value,o),s.set(f,h)):q(h,$e(m.value,c)),!0},deleteProperty(p,f){var m=s.get(f);if(m===void 0)f in p&&s.set(f,xi(Ti,o));else{if(a&&typeof f=="string"){var h=s.get("length"),v=Number(f);Number.isInteger(v)&&v<h.v&&q(h,v)}q(m,Ti),Om(l)}return!0},get(p,f,m){if(Oe&&f===Or)return c;if(f===$o)return t;var h=s.get(f),v=f in p;if(h===void 0&&(!v||Cn(p,f)?.writable)&&(h=xi($e(v?p[f]:Ti,c),o),s.set(f,h)),h!==void 0){var x=r(h);if(Oe){var w=x?.[Or];w&&w?.parent!==c&&Cp(c,w)}return x===Ti?void 0:x}return Reflect.get(p,f,m)},getOwnPropertyDescriptor(p,f){var m=Reflect.getOwnPropertyDescriptor(p,f);if(m&&"value"in m){var h=s.get(f);h&&(m.value=r(h))}else if(m===void 0){var v=s.get(f),x=v?.v;if(v!==void 0&&x!==Ti)return{enumerable:!0,configurable:!0,value:x,writable:!0}}return m},has(p,f){if(Oe&&f===Or||f===$o)return!0;var m=s.get(f),h=m!==void 0&&m.v!==Ti||Reflect.has(p,f);if(m!==void 0||$t!==null&&(!h||Cn(p,f)?.writable)){m===void 0&&(m=xi(h?$e(p[f],c):Ti,o),s.set(f,m));var v=r(m);if(v===Ti)return!1}return h},set(p,f,m,h){var v=s.get(f),x=f in p;if(a&&f==="length")for(var w=m;w<v.v;w+=1){var A=s.get(w+"");A!==void 0?q(A,Ti):w in p&&(A=xi(Ti,o),s.set(w+"",A))}if(v===void 0?(!x||Cn(p,f)?.writable)&&(v=xi(void 0,o),q(v,$e(m,c)),s.set(f,v)):(x=v.v!==Ti,q(v,$e(m,c))),Oe){var B=m?.[Or];B&&B?.parent!==c&&Cp(c,B),lm(c)}var O=Reflect.getOwnPropertyDescriptor(p,f);if(O?.set&&O.set.call(h,m),!x){if(a&&typeof f=="string"){var R=s.get("length"),K=Number(f);Number.isInteger(K)&&K>=R.v&&q(R,K+1)}Om(l)}return!0},ownKeys(p){r(l);var f=Reflect.ownKeys(p).filter(v=>{var x=s.get(v);return x===void 0||x.v!==Ti});for(var[m,h]of s)h.v!==Ti&&!(m in p)&&f.push(m);return f},setPrototypeOf(){bm()}})}function Om(t,e=1){q(t,t.v+e)}function kc(t){return t!==null&&typeof t=="object"&&$o in t?t[$o]:t}function Hm(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(s,a){let l=i.call(this,s,a);if(l===-1){for(let c=a??0;c<this.length;c+=1)if(kc(this[c])===s){fc("array.indexOf(...)");break}}return l},t.lastIndexOf=function(s,a){let l=o.call(this,s,a??this.length-1);if(l===-1){for(let c=0;c<=(a??this.length-1);c+=1)if(kc(this[c])===s){fc("array.lastIndexOf(...)");break}}return l},t.includes=function(s,a){let l=n.call(this,s,a);if(!l){for(let c=0;c<this.length;c+=1)if(kc(this[c])===s){fc("array.includes(...)");break}}return l},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Hs,Fm,Um,zm;function Tc(){if(Hs===void 0){Hs=window,Fm=document;var t=Element.prototype,e=Node.prototype;Um=Cn(e,"firstChild").get,zm=Cn(e,"nextSibling").get,t.__click=void 0,t.__className="",t.__attributes=null,t.__styles=null,t.__e=void 0,Text.prototype.__t=void 0,Oe&&(t.__svelte_meta=null,Hm())}}function on(t=""){return document.createTextNode(t)}function si(t){return Um.call(t)}function ao(t){return zm.call(t)}function $(t,e){if(!at)return si(t);var i=si(bt);if(i===null)i=bt.appendChild(on());else if(e&&i.nodeType!==3){var o=on();return i?.before(o),li(o),o}return li(i),i}function ye(t,e){if(!at){var i=si(t);return i.nodeType===8&&i.data===""?ao(i):i}if(e&&bt?.nodeType!==3){var o=on();return bt?.before(o),li(o),o}return bt}function V(t,e=1,i=!1){let o=at?bt:t;for(var n;e--;)n=o,o=ao(o);if(!at)return o;var s=o?.nodeType;if(i&&s!==3){var a=on();return o===null?n?.after(a):o.before(a),li(a),a}return li(o),o}function Rl(t){t.textContent=""}function zp(t){$t===null&&Mt===null&&fm(t),Mt!==null&&Mt.f&256&&pm(),wc&&um(t)}function qh(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Fs(t,e,i,o=!0){var n=(t&64)!==0,s=$t;if(Oe)for(;s!==null&&s.f&262144;)s=s.parent;var a={ctx:Ct,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n?null:s,prev:null,teardown:null,transitions:null,wv:0};if(Oe&&(a.component_function=Ro),i){var l=Wr;try{va(!0),Vs(a),a.f|=32768}catch(f){throw Wi(a),f}finally{va(l)}}else e!==null&&_a(a);var c=i&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&1048704)===0;if(!c&&!n&&o&&(s!==null&&qh(a,s),Mt!==null&&Mt.f&2)){var p=Mt;(p.children??=[]).push(a)}return a}function In(t){let e=Fs(8,null,!1);return Bo(e,1024),e.teardown=t,e}function qe(t){zp("$effect");var e=$t!==null&&($t.f&32)!==0&&Ct!==null&&!Ct.m;if(Oe&&Hi(t,"name",{value:"$effect"}),e){var i=Ct;(i.e??=[]).push({fn:t,effect:$t,reaction:Mt})}else{var o=Tn(t);return o}}function pa(t){return zp("$effect.pre"),Oe&&Hi(t,"name",{value:"$effect.pre"}),ro(t)}function Ic(t){let e=Fs(64,t,!0);return()=>{Wi(e)}}function Km(t){let e=Fs(64,t,!0);return(i={})=>new Promise(o=>{i.outro?En(e,()=>{Wi(e),o(void 0)}):(Wi(e),o(void 0))})}function Tn(t){return Fs(4,t,!1)}function ro(t){return Fs(8,t,!0)}function M(t){return Oe&&Hi(t,"name",{value:"{expression}"}),Qi(t)}function Qi(t,e=0){return Fs(24|e,t,!0)}function Ni(t,e=!0){return Fs(40,t,!0,e)}function Op(t){var e=t.teardown;if(e!==null){let i=wc,o=Mt;Np(!0),No(null);try{e.call(null)}finally{Np(i),No(o)}}}function Hp(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var i=0;i<e.length;i+=1)Al(e[i])}}function Fp(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;Wi(i,e),i=o}}function Dm(t){for(var e=t.first;e!==null;){var i=e.next;e.f&32||Wi(e),e=i}}function Wi(t,e=!0){var i=!1;if((e||t.f&524288)&&t.nodes_start!==null){for(var o=t.nodes_start,n=t.nodes_end;o!==null;){var s=o===n?null:ao(o);o.remove(),o=s}i=!0}Fp(t,e&&!i),Hp(t),Bs(t,0),Bo(t,16384);var a=t.transitions;if(a!==null)for(let c of a)c.stop();Op(t);var l=t.parent;l!==null&&l.first!==null&&Up(t),Oe&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Up(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function En(t,e){var i=[];Ec(t,i,!0),qp(i,()=>{Wi(t),e&&e()})}function qp(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function Ec(t,e,i){if(!(t.f&8192)){if(t.f^=8192,t.transitions!==null)for(let a of t.transitions)(a.is_global||i)&&e.push(a);for(var o=t.first;o!==null;){var n=o.next,s=(o.f&65536)!==0||(o.f&32)!==0;Ec(o,e,s?i:!1),o=n}}}function cs(t){Qm(t,!0)}function Qm(t,e){if(t.f&8192){ss(t)&&Vs(t),t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;Qm(i,n?e:!1),i=o}if(t.transitions!==null)for(let s of t.transitions)(s.is_global||e)&&s.in()}}function Wp(t,e){if(e){let i=document.body;t.autofocus=!0,Jo(()=>{document.activeElement===i&&t.focus()})}}function Kp(t){var e=Mt,i=$t;No(null),Fi(null);try{return t()}finally{No(e),Fi(i)}}var Qp=new Set,Pc=new Set;function Us(t){if(!at)return;t.onload&&t.removeAttribute("onload"),t.onerror&&t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Gp(t,e,i,o){function n(s){if(o.capture||Ta.call(e,s),!s.cancelBubble)return Kp(()=>i.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Jo(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function At(t,e,i,o,n){var s={capture:o,passive:n},a=Gp(t,e,i,s);(e===document.body||e===window||e===document)&&In(()=>{e.removeEventListener(t,a,s)})}function gt(t){for(var e=0;e<t.length;e++)Qp.add(t[e]);for(var i of Pc)i(t)}function Ta(t){var e=this,i=e.ownerDocument,o=t.type,n=t.composedPath?.()||[],s=n[0]||t.target,a=0,l=t.__root;if(l){var c=n.indexOf(l);if(c!==-1&&(e===document||e===window)){t.__root=e;return}var p=n.indexOf(e);if(p===-1)return;c<=p&&(a=c)}if(s=n[a]||t.target,s!==e){Hi(t,"currentTarget",{configurable:!0,get(){return s||i}});var f=Mt,m=$t;No(null),Fi(null);try{for(var h,v=[];s!==null;){var x=s.assignedSlot||s.parentNode||s.host||null;try{var w=s["__"+o];if(w!==void 0&&!s.disabled)if(pr(w)){var[A,...B]=w;A.apply(s,[t,...B])}else w.call(s,t)}catch(O){h?v.push(O):h=O}if(t.cancelBubble||x===e||x===null)break;s=x}if(h){for(let O of v)queueMicrotask(()=>{throw O});throw h}}finally{t.__root=e,delete t.currentTarget,No(f),Fi(m)}}}var Kh;function Gm(){Kh=void 0}function Ia(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function lo(t,e){var i=$t;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function D(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,s=!t.startsWith("<!>");return()=>{if(at)return lo(bt,null),bt;n===void 0&&(n=Ia(s?t:"<!>"+t),i||(n=si(n)));var a=o?document.importNode(n,!0):n.cloneNode(!0);if(i){var l=si(a),c=a.lastChild;lo(l,c)}else lo(a,a);return a}}function Ie(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,a;return()=>{if(at)return lo(bt,null),bt;if(!a){var l=Ia(s),c=si(l);if(n)for(a=document.createDocumentFragment();si(c);)a.appendChild(si(c));else a=si(c)}var p=a.cloneNode(!0);if(n){var f=si(p),m=p.lastChild;lo(f,m)}else lo(p,p);return p}}function jn(t=""){if(!at){var e=on(t+"");return lo(e,e),e}var i=bt;return i.nodeType!==3&&(i.before(i=on()),li(i)),lo(i,i),i}function Ke(){if(at)return lo(bt,null),bt;var t=document.createDocumentFragment(),e=document.createComment(""),i=on();return t.append(e,i),lo(e,i),t}function y(t,e){if(at){$t.nodes_end=bt,Ii();return}t!==null&&t.before(e)}var Gh=/\r/g;function jm(t){t=t.replace(Gh,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Zm(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var Yh=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Xm(t){return Yh.includes(t)}var jh=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory"];var Zh={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject"};function Jm(t){return t=t.toLowerCase(),Zh[t]??t}var R5=[...jh,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject"];var Xh=["touchstart","touchmove"];function ev(t){return Xh.includes(t)}function Yp(t){return t?.replace(/\//g,"/\u200B")}var jp=!0;function ke(t,e){var i=e==null?"":typeof e=="object"?e+"":e;i!==(t.__t??=t.nodeValue)&&(t.__t=i,t.nodeValue=i==null?"":i+"")}function Ac(t,e){return tv(t,e)}function Xp(t,e){Tc(),e.intro=e.intro??!1;let i=e.target,o=at,n=bt;try{for(var s=si(i);s&&(s.nodeType!==8||s.data!==ua);)s=ao(s);if(!s)throw Fr;tn(!0),li(s),Ii();let a=tv(t,{...e,anchor:s});if(bt===null||bt.nodeType!==8||bt.data!==Ls)throw As(),Fr;return tn(!1),a}catch(a){if(a===Fr)return e.recover===!1&&vm(),Tc(),Rl(i),tn(!1),Ac(t,e);throw a}finally{tn(o),li(n),Gm()}}var Ea=new Map;function tv(t,{target:e,anchor:i,props:o={},events:n,context:s,intro:a=!0}){Tc();var l=new Set,c=m=>{for(var h=0;h<m.length;h++){var v=m[h];if(!l.has(v)){l.add(v);var x=ev(v);e.addEventListener(v,Ta,{passive:x});var w=Ea.get(v);w===void 0?(document.addEventListener(v,Ta,{passive:x}),Ea.set(v,1)):Ea.set(v,w+1)}}};c(Tl(Qp)),Pc.add(c);var p=void 0,f=Km(()=>{var m=i??e.appendChild(on());return Ni(()=>{if(s){T({});var h=Ct;h.c=s}n&&(o.$$events=n),at&&lo(m,null),jp=a,p=t(m,o)||{},jp=!0,at&&($t.nodes_end=bt),s&&I()}),()=>{for(var h of l){e.removeEventListener(h,Ta);var v=Ea.get(h);--v===0?(document.removeEventListener(h,Ta),Ea.delete(h)):Ea.set(h,v)}Pc.delete(c),m!==i&&m.parentNode?.removeChild(m)}});return Zp.set(p,f),p}var Zp=new WeakMap;function Jp(t,e){let i=Zp.get(t);return i?(Zp.delete(t),i(e)):(Oe&&nm(),Promise.resolve())}var tf;function k(t){return tf=t.target,new ef(t)}var ef=class{#t;#e;constructor(e){var i=new Map,o=(s,a)=>{var l=qr(a);return i.set(s,l),l};let n=new Proxy({...e.props||{},$$events:{}},{get(s,a){return r(i.get(a)??o(a,Reflect.get(s,a)))},has(s,a){return a===kl?!0:(r(i.get(a)??o(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return q(i.get(a)??o(a,l),l),Reflect.set(s,a,l)}});this.#e=(e.hydrate?Xp:Ac)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&d(),this.#t=n.$$events;for(let s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Hi(this,s,{get(){return this.#e[s]},set(a){this.#e[s]=a},enumerable:!0});this.#e.$set=s=>{Object.assign(n,s)},this.#e.$destroy=()=>{Jp(this.#e)}}$set(e){this.#e.$set(e)}$on(e,i){this.#t[e]=this.#t[e]||[];let o=(...n)=>i.call(this,...n);return this.#t[e].push(o),()=>{this.#t[e]=this.#t[e].filter(n=>n!==o)}}$destroy(){this.#e.$destroy()}};var iv="5";typeof window<"u"&&(window.__svelte||={v:new Set}).v.add(iv);var ov=new Map;function nv(t,e){var i=ov.get(t);i||(i=new Set,ov.set(t,i)),i.add(e)}function F(t,e,i=!1){at&&Ii();var o=t,n=null,s=null,a=Ti,l=i?65536:0,c=!1;let p=(m,h=!0)=>{c=!0,f(h,m)},f=(m,h)=>{if(a===(a=m))return;let v=!1;if(at){let x=o.data===Ms;!!a===x&&(o=ka(),li(o),tn(!1),v=!0)}a?(n?cs(n):h&&(n=Ni(()=>h(o))),s&&En(s,()=>{s=null})):(s?cs(s):h&&(s=Ni(()=>h(o))),n&&En(n,()=>{n=null})),v&&tn(!0)};Qi(()=>{c=!1,e(p),c||f(null,null)},l),at&&(o=bt)}function Vl(t,e,i){at&&Ii();var o=t,n=Ti,s,a=rs()?cm:fa;Qi(()=>{a(n,n=e())&&(s&&En(s),s=Ni(()=>i(o)))}),at&&(o=bt)}var Bl=null;function hi(t,e){return e}function d_(t,e,i,o){for(var n=[],s=e.length,a=0;a<s;a++)Ec(e[a].e,n,!0);var l=s>0&&n.length===0&&i!==null;if(l){var c=i.parentNode;Rl(c),c.append(i),o.clear(),ds(t,e[0].prev,e[s-1].next)}qp(n,()=>{for(var p=0;p<s;p++){var f=e[p];l||(o.delete(f.k),ds(t,f.prev,f.next)),Wi(f.e,!l)}})}function ci(t,e,i,o,n,s=null){var a=t,l={flags:e,items:new Map,first:null},c=(e&4)!==0;if(c){var p=t;a=at?li(si(p)):p.appendChild(on())}at&&Ii();var f=null,m=!1,h=Kr(()=>{var v=i();return pr(v)?v:v==null?[]:Tl(v)});Qi(()=>{var v=r(h),x=v.length;if(m&&x===0)return;m=x===0;let w=!1;if(at){var A=a.data===Ms;A!==(x===0)&&(a=ka(),li(a),tn(!1),w=!0)}if(at){for(var B=null,O,R=0;R<x;R++){if(bt.nodeType===8&&bt.data===Ls){a=bt,w=!0,tn(!1);break}var K=v[R],S=o(K,R);O=av(bt,l,B,null,K,S,R,n,e,i),l.items.set(S,O),B=O}x>0&&li(ka())}if(!at){var H=Mt;u_(v,l,a,n,e,(H.f&8192)!==0,o,i)}s!==null&&(x===0?f?cs(f):f=Ni(()=>s(a)):f!==null&&En(f,()=>{f=null})),w&&tn(!0),r(h)}),at&&(a=bt)}function u_(t,e,i,o,n,s,a,l){var c=(n&8)!==0,p=(n&3)!==0,f=t.length,m=e.items,h=e.first,v=h,x,w=null,A,B=[],O=[],R,K,S,H;if(c)for(H=0;H<f;H+=1)R=t[H],K=a(R,H),S=m.get(K),S!==void 0&&(S.a?.measure(),(A??=new Set).add(S));for(H=0;H<f;H+=1){if(R=t[H],K=a(R,H),S=m.get(K),S===void 0){var Q=v?v.e.nodes_start:i;w=av(Q,e,w,w===null?e.first:w.next,R,K,H,o,n,l),m.set(K,w),B=[],O=[],v=w.next;continue}if(p&&p_(S,R,H,n),S.e.f&8192&&(cs(S.e),c&&(S.a?.unfix(),(A??=new Set).delete(S))),S!==v){if(x!==void 0&&x.has(S)){if(B.length<O.length){var W=O[0],X;w=W.prev;var ae=B[0],ve=B[B.length-1];for(X=0;X<B.length;X+=1)rv(B[X],W,i);for(X=0;X<O.length;X+=1)x.delete(O[X]);ds(e,ae.prev,ve.next),ds(e,w,ae),ds(e,ve,W),v=W,w=ve,H-=1,B=[],O=[]}else x.delete(S),rv(S,v,i),ds(e,S.prev,S.next),ds(e,S,w===null?e.first:w.next),ds(e,w,S),w=S;continue}for(B=[],O=[];v!==null&&v.k!==K;)(s||!(v.e.f&8192))&&(x??=new Set).add(v),O.push(v),v=v.next;if(v===null)continue;S=v}B.push(S),w=S,v=S.next}if(v!==null||x!==void 0){for(var Y=x===void 0?[]:Tl(x);v!==null;)(s||!(v.e.f&8192))&&Y.push(v),v=v.next;var ue=Y.length;if(ue>0){var Fe=n&4&&f===0?i:null;if(c){for(H=0;H<ue;H+=1)Y[H].a?.measure();for(H=0;H<ue;H+=1)Y[H].a?.fix()}d_(e,Y,Fe,m)}}c&&Jo(()=>{if(A!==void 0)for(S of A)S.a?.apply()}),$t.first=e.first&&e.first.e,$t.last=w&&w.e}function p_(t,e,i,o){o&1&&ha(t.v,e),o&2?ha(t.i,i):t.i=i}function av(t,e,i,o,n,s,a,l,c,p){var f=Bl,m=(c&1)!==0,h=(c&16)===0,v=m?h?qr(n):xi(n):n,x=c&2?xi(a):a;Oe&&m&&(v.debug=()=>{var A=typeof x=="number"?a:x.v;p()[A]});var w={i:x,v,k:s,a:null,e:null,prev:i,next:o};Bl=w;try{return w.e=Ni(()=>l(t,v,x),at),w.e.prev=i&&i.e,w.e.next=o&&o.e,i===null?e.first=w:(i.next=w,i.e.next=w.e),o!==null&&(o.prev=w,o.e.prev=w.e),w}finally{Bl=f}}function rv(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,s=t.e.nodes_start;s!==o;){var a=ao(s);n.before(s),s=a}}function ds(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function f_(t,e,i){if(!e||e===jm(String(i??"")))return;let o,n=t.__svelte_meta?.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:Ro?.[yi]&&(o=`in ${Ro[yi]}`),om(Yp(o))}function Nl(t,e,i,o,n){var s=t,a="",l;Qi(()=>{if(a===(a=e()??"")){at&&Ii();return}l!==void 0&&(Wi(l),l=void 0),a!==""&&(l=Ni(()=>{if(at){for(var c=bt.data,p=Ii(),f=p;p!==null&&(p.nodeType!==8||p.data!=="");)f=p,p=ao(p);if(p===null)throw As(),Fr;Oe&&!n&&f_(p.parentNode,c,a),lo(bt,f),s=li(p);return}var m=a+"";i?m=`<svg>${m}</svg>`:o&&(m=`<math>${m}</math>`);var h=Ia(m);if((i||o)&&(h=si(h)),lo(si(h),h.lastChild),i||o)for(;si(h);)s.before(si(h));else s.before(h)}))})}function Ve(t,e,i,o,n){at&&Ii();var s=e.$$slots?.[i],a=!1;s===!0&&(s=e[i==="default"?"children":i],a=!0),s===void 0?n!==null&&n(t):s(t,a?()=>o:o)}function Gi(t,e,...i){var o=t,n=Ut,s;Qi(()=>{n!==(n=e())&&(s&&(Wi(s),s=null),Oe&&n==null&&gm(),s=Ni(()=>n(o,...i)))},65536),at&&(o=bt)}function wi(t,e,i){at&&Ii();var o=t,n,s;Qi(()=>{n!==(n=e())&&(s&&(En(s),s=null),n&&(s=Ni(()=>i(o,n))))},65536),at&&(o=bt)}function re(t,e){Jo(()=>{var i=t.getRootNode(),o=(i.host?i:i.head??i.ownerDocument.head)||tf?.parentNode;if(!o?.querySelector("#"+e.hash)){let n=document.createElement("style");n.id=e.hash,n.textContent=e.code,o.appendChild(n),Oe&&nv(e.hash,n)}})}function lv(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=lv(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function cv(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=lv(t))&&(o&&(o+=" "),o+=e);return o}function Dl(t){return typeof t=="object"?cv(t):t??""}function pv(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function fe(t,e,i,o){var n=t.__attributes??={};if(at&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||mv(t,e,i??"");return}n[e]!==(n[e]=i)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[Gf]=i),i==null?t.removeAttribute(e):typeof i!="string"&&fv(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Be(t,e,i,o,n=!1,s=!1,a=!1){var l=e||{},c=t.tagName==="OPTION";for(var p in e)p in i||(i[p]=null);i.class&&(i.class=Dl(i.class)),o!==void 0&&(i.class=i.class?i.class+" "+o:o);var f=fv(t),m=t.__attributes??={};for(let O in i){let R=i[O];if(c&&O==="value"&&R==null){t.value=t.__value="",l[O]=R;continue}var h=l[O];if(R!==h){l[O]=R;var v=O[0]+O[1];if(v!=="$$"){if(v==="on"){let K={},S="$$"+O,H=O.slice(2);var x=Xm(H);if(Zm(H)&&(H=H.slice(0,-7),K.capture=!0),!x&&h){if(R!=null)continue;t.removeEventListener(H,l[S],K),l[S]=null}if(R!=null)if(x)t[`__${H}`]=R,gt([H]);else{let Q=function(W){l[O].call(this,W)};var B=Q;l[S]=Gp(H,t,Q,K)}else x&&(t[`__${H}`]=void 0)}else if(O==="style"&&R!=null)t.style.cssText=R+"";else if(O==="autofocus")Wp(t,!!R);else if(O==="__value"||O==="value"&&R!=null)t.value=t[O]=t.__value=R;else if(O==="selected"&&c)pv(t,R);else{var w=O;n||(w=Jm(w));var A=w==="defaultValue"||w==="defaultChecked";if(R==null&&!s&&!A)if(m[O]=null,w==="value"||w==="checked"){let K=t;if(w==="value"){let S=K.defaultValue;K.removeAttribute(w),K.defaultValue=S}else{let S=K.defaultChecked;K.removeAttribute(w),K.defaultChecked=S}}else t.removeAttribute(O);else A||f.includes(w)&&(s||typeof R!="string")?t[w]=R:typeof R!="function"&&(at&&(w==="src"||w==="href"||w==="srcset")?a||mv(t,w,R??""):fe(t,w,R))}O==="style"&&"__styles"in t&&(t.__styles={})}}}return l}var dv=new Map;function fv(t){var e=dv.get(t.nodeName);if(e)return e;dv.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=uc(o);for(var s in i)i[s].set&&e.push(s);o=Hr(o)}return e}function mv(t,e,i){Oe&&(e==="srcset"&&v_(t,i)||rf(t.getAttribute(e)??"",i)||im(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function rf(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function uv(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function v_(t,e){var i=uv(t.srcset),o=uv(e);return o.length===i.length&&o.every(([n,s],a)=>s===i[a][1]&&(rf(i[a][0],n)||rf(n,i[a][0])))}function Do(t,e,i){var o=t.__className,n=g_(e,i);at&&t.className===n?t.__className=n:(o!==n||at&&t.className!==n)&&(e==null&&!i?t.removeAttribute("class"):t.className=n,t.__className=n)}function g_(t,e){return(t??"")+(e?" "+e:"")}function ie(t,e,i){if(i){if(t.classList.contains(e))return;t.classList.add(e)}else{if(!t.classList.contains(e))return;t.classList.remove(e)}}var sf=class t{#t=new WeakMap;#e;#i;static entries=new WeakMap;constructor(e){this.#i=e}observe(e,i){var o=this.#t.get(e)||new Set;return o.add(i),this.#t.set(e,o),this.#o().observe(e,this.#i),()=>{var n=this.#t.get(e);n.delete(i),n.size===0&&(this.#t.delete(e),this.#e.unobserve(e))}}#o(){return this.#e??(this.#e=new ResizeObserver(e=>{for(var i of e){t.entries.set(i.target,i);for(var o of this.#t.get(i.target)||[])o(i)}}))}};var b_=new sf({box:"border-box"});function zs(t,e,i){var o=b_.observe(t,()=>i(t[e]));Tn(()=>(ni(()=>i(t[e])),o))}function vv(t,e){return t===e||t?.[$o]===e}function ht(t={},e,i,o){return Tn(()=>{var n,s;return ro(()=>{n=s,s=o?.()||[],ni(()=>{t!==i(...s)&&(e(t,...s),n&&vv(i(...n),t)&&e(null,...n))})}),()=>{Jo(()=>{s&&vv(i(...s),t)&&e(null,...s)})}}),t}function mr(t=!1){let e=Ct,i=e.l.u;if(!i)return;let o=()=>Sc(e.s);if(t){let n=0,s={},a=b(()=>{let l=!1,c=e.s;for(let p in c)c[p]!==s[p]&&(s[p]=c[p],l=!0);return l&&n++,n});o=()=>r(a)}i.b.length&&pa(()=>{gv(e,o),ns(i.b)}),qe(()=>{let n=ni(()=>i.m.map(Zf));return()=>{for(let s of n)typeof s=="function"&&s()}}),i.a.length&&qe(()=>{gv(e,o),ns(i.a)})}function gv(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}function E(t,e,i){t.$$events||={},t.$$events[e]||=[],t.$$events[e].push(i)}function P(t){for(var e in t)e in this&&(this[e]=t[e])}function Lt(t){Ct===null&&$a("onMount"),kr&&Ct.l!==null?x_(Ct).m.push(t):qe(()=>{let e=ni(t);if(typeof e=="function")return e})}function Zn(t){Ct===null&&$a("onDestroy"),Lt(()=>()=>ni(t))}function x_(t){var e=t.l;return e.u??={a:[],b:[],m:[]}}function Ol(t,e,i){if(t==null)return e(void 0),i&&i(void 0),Ut;let o=ni(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Pa=[];function Xn(t,e){return{subscribe:xe(t,e).subscribe}}function xe(t,e=Ut){let i=null,o=new Set;function n(l){if(fa(t,l)&&(t=l,i)){let c=!Pa.length;for(let p of o)p[1](),Pa.push(p,t);if(c){for(let p=0;p<Pa.length;p+=2)Pa[p][0](Pa[p+1]);Pa.length=0}}}function s(l){n(l(t))}function a(l,c=Ut){let p=[l,c];return o.add(p),o.size===1&&(i=e(n,s)||Ut),l(t),()=>{o.delete(p),o.size===0&&i&&(i(),i=null)}}return{set:n,update:s,subscribe:a}}function ri(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let s=e.length<2;return Xn(i,(a,l)=>{let c=!1,p=[],f=0,m=Ut,h=()=>{if(f)return;m();let x=e(o?p[0]:p,a,l);s?a(x):m=typeof x=="function"?x:Ut},v=n.map((x,w)=>Ol(x,A=>{p[w]=A,f&=~(1<<w),c&&h()},()=>{f|=1<<w}));return c=!0,h(),function(){ns(v),m(),c=!1}})}function Re(t){let e;return Ol(t,i=>e=i)(),e}var Lc=!1,af=Symbol();function C(t,e,i){let o=i[e]??={store:null,source:qr(void 0),unsubscribe:Ut};if(o.store!==t&&!(af in i))if(o.unsubscribe(),o.store=t??null,t==null)o.source.v=void 0,o.unsubscribe=Ut;else{var n=!0;o.unsubscribe=Ol(t,s=>{n?o.source.v=s:q(o.source,s)}),n=!1}return t&&af in i?Re(t):r(o.source)}function Qe(){let t={};function e(){In(()=>{for(var i in t)t[i].unsubscribe();Hi(t,af,{enumerable:!1,value:!0})})}return[t,e]}function lf(t){var e=Lc;try{return Lc=!1,[t(),Lc]}finally{Lc=e}}var T_={get(t,e){if(!t.exclude.includes(e))return r(t.version),e in t.special?t.special[e]():t.props[e]},set(t,e,i){return e in t.special||(t.special[e]=u({get[e](){return t.props[e]}},e,4)),t.special[e](i),Cc(t.version),!0},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},deleteProperty(t,e){return t.exclude.includes(e)||(t.exclude.push(e),Cc(t.version)),!0},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Ne(t,e){return new Proxy({props:t,exclude:e,special:{},version:xi(0)},T_)}var I_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Is(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let n=t.props[o];Is(n)&&(n=n());let s=Cn(n,e);if(s&&s.set)return s.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Is(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Cn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===$o||e===kl)return!1;for(let i of t.props)if(Is(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){Is(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function Gr(...t){return new Proxy({props:t},I_)}function hv(t){for(var e=$t,i=$t;e!==null&&!(e.f&96);)e=e.parent;try{return Fi(e),t()}finally{Fi(i)}}function u(t,e,i,o){var n=(i&1)!==0,s=!kr||(i&2)!==0,a=(i&8)!==0,l=(i&16)!==0,c=!1,p;a?[p,c]=lf(()=>t[e]):p=t[e];var f=$o in t||kl in t,m=a&&(Cn(t,e)?.set??(f&&e in t&&(Q=>t[e]=Q)))||void 0,h=o,v=!0,x=!1,w=()=>(x=!0,v&&(v=!1,l?h=ni(o):h=o),h);p===void 0&&o!==void 0&&(m&&s&&hm(e),p=w(),m&&m(p));var A;if(s)A=()=>{var Q=t[e];return Q===void 0?w():(v=!0,x=!1,Q)};else{var B=hv(()=>(n?b:Kr)(()=>t[e]));B.f|=131072,A=()=>{var Q=r(B);return Q!==void 0&&(h=void 0),Q===void 0?h:Q}}if(!(i&4))return A;if(m){var O=t.$$legacy;return function(Q,W){return arguments.length>0?((!s||!W||O||c)&&m(W?A():Q),Q):A()}}var R=!1,K=!1,S=qr(p),H=hv(()=>b(()=>{var Q=A(),W=r(S);return R?(R=!1,K=!0,W):(K=!1,S.v=Q)}));return n||(H.equals=ma),function(Q,W){if(El!==null&&(R=K,A(),r(S)),arguments.length>0){let X=W?r(H):s&&a?$e(Q):Q;return H.equals(X)||(R=!0,q(S,X),x&&h!==void 0&&(h=X),ni(()=>r(H))),Q}return r(H)}}var E_;typeof HTMLElement=="function"&&(E_=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){let o=this.$$c.$on(t,e);this.$$l_u.set(e,o)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){let o=this.$$l_u.get(e);o&&(o(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return s=>{let a=document.createElement("slot");n!=="default"&&(a.name=n),y(s,a)}};var t=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let i={},o=P_(this);for(let n of this.$$s)n in o&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),i.default=!0):i[n]=e(n));for(let n of this.attributes){let s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=cf(s,n.value,this.$$p_d,"toProp"))}for(let n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=k({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$host:this}}),this.$$me=Ic(()=>{ro(()=>{this.$$r=!0;for(let n of $p(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];let s=cf(n,this.$$d[n],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,s)}this.$$r=!1})});for(let n in this.$$l)for(let s of this.$$l[n]){let a=this.$$c.$on(n,s);this.$$l_u.set(s,a)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=cf(t,i,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return $p(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function cf(t,e,i,o){let n=i[t]?.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function P_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}import{noop as ep,safeStorage as B4,throttleFn as N4,clientChecker as D4}from"@vkontakte/videoplayer-shared/evergreen";import{SeekAction as O4}from"@vkontakte/videoplayer-statistics/evergreen";import{InterfaceLanguage as M_,fillWithDefault as L_,VideoQuality as $v}from"@vkontakte/videoplayer-shared/evergreen";var R_={isMobile:void 0,defaultLanguage:M_.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:$v.Q_480P,highQualityLimit:$v.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackStateValue:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},bv=t=>L_(t,R_),yv=t=>Os("ui-config",t),Kt=()=>Ds("ui-config");var Hl="vk_player_debug_panel_opened";var xv="videoplayer",wv="videoplayer";var Pr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Cv=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Sv=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),kv=new Set(["ShiftRight","ShiftLeft"]);var Tv=["TIMELINE"],Fl=[...Tv,"GRAPH_BUTTON"],df=[...Tv,"PLAY_BUTTON"],Ul=[...Fl,"PLAY_BUTTON"];var Ar=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(Ar||{}),Ws={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Iv,VERSION as V_}from"@vkontakte/videoplayer-shared/evergreen";import{VERSION as B_}from"@vkontakte/videoplayer-core/evergreen";import{VERSION as N_}from"@vkontakte/videoplayer-statistics/evergreen";var Rc="prod",Aa="1.1.55-dev.74e495c6.0";var Ks=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Ev=Symbol("storeContext"),Pv=Symbol("microStoresContext"),Av=(t,e)=>{Os(Ev,t),Os(Pv,e),Rc==="dev"&&(window.app={store:t,microStores:e})},De=()=>{let t=Ds(Ev);return Iv(t,"Store context is empty!"),t},Oo=()=>{let t=Ds(Pv);return Iv(t,"MicroStores context is empty!"),t},zt=(t,e)=>Bc(t,t.getValue(),e),Bc=(t,e,i)=>Xn(e,o=>{let n=t.subscribe(s=>{o(s),i?.(s)});return()=>n.unsubscribe()}),Mv=(t,e,i)=>{let o=t.info,{width:n,height:s}=Re(i.ui.playerSize),a=o.throughputEstimation$.getValue()?.toFixed(0)??0,l=o.rttEstimation$.getValue()?.toFixed(0)??0,c=o.isAutoQualityEnabled$.getValue()?"auto":"manual",p=`${Aa} (core: ${B_}, stat: ${N_}, shared: ${V_})`,f=Re(i.state.errorLog$),m=f.length?`
46
46
  `+f.map((B,O)=>{let R=`${O}) Type: ${B.id}
47
47
  `,K=`Message: ${B.message} (${B.thrown})
48
48
  `,S=`Trace: ${B.thrown?.stack}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/videoplayer",
3
- "version": "1.1.55-dev.7131fb97.0",
3
+ "version": "1.1.55-dev.74e495c6.0",
4
4
  "author": "vk.com",
5
5
  "description": "Videoplayer based on the vk.com platform",
6
6
  "homepage": "https://vk.com",
@@ -50,9 +50,9 @@
50
50
  ],
51
51
  "dependencies": {
52
52
  "@adtech/rbadman": "^2.2.57",
53
- "@vkontakte/videoplayer-core": "2.0.124-dev.cd2cc8d6.0",
54
- "@vkontakte/videoplayer-interactive": "1.0.30-dev.d7235458.0",
55
- "@vkontakte/videoplayer-shared": "1.0.53-dev.ab1ed90b.0",
56
- "@vkontakte/videoplayer-statistics": "1.0.70-dev.1ecb9e40.0"
53
+ "@vkontakte/videoplayer-core": "2.0.124-dev.b0f19b8d.0",
54
+ "@vkontakte/videoplayer-interactive": "1.0.30-dev.f55796c8.0",
55
+ "@vkontakte/videoplayer-shared": "1.0.53-dev.0d0699bc.0",
56
+ "@vkontakte/videoplayer-statistics": "1.0.70-dev.0b2ba922.0"
57
57
  }
58
58
  }