@vkontakte/videoplayer 1.1.63 → 1.1.64-dev.3efb4d41.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/es2015.cjs.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.63
3
- * Thu, 05 Jun 2025 08:19:11 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-63/doc/
2
+ * @vkontakte/videoplayer v1.1.64-dev.3efb4d41.0
3
+ * Thu, 05 Jun 2025 11:40:28 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-64/doc/
5
5
  */
6
6
  "use strict";var h0=Object.create;var Al=Object.defineProperty,_0=Object.defineProperties,b0=Object.getOwnPropertyDescriptor,$0=Object.getOwnPropertyDescriptors,y0=Object.getOwnPropertyNames,gv=Object.getOwnPropertySymbols,x0=Object.getPrototypeOf,hv=Object.prototype.hasOwnProperty,w0=Object.prototype.propertyIsEnumerable;var _v=t=>{throw TypeError(t)};var Fu=(t,e,i)=>e in t?Al(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,q=(t,e)=>{for(var i in e||(e={}))hv.call(e,i)&&Fu(t,i,e[i]);if(gv)for(var i of gv(e))w0.call(e,i)&&Fu(t,i,e[i]);return t},Bt=(t,e)=>_0(t,$0(e));var S0=(t,e)=>{for(var i in e)Al(t,i,{get:e[i],enumerable:!0})},bv=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of y0(e))!hv.call(t,n)&&n!==i&&Al(t,n,{get:()=>e[n],enumerable:!(o=b0(e,n))||o.enumerable});return t};var $v=(t,e,i)=>(i=t!=null?h0(x0(t)):{},bv(e||!t||!t.__esModule?Al(i,"default",{value:t,enumerable:!0}):i,t)),C0=t=>bv(Al({},"__esModule",{value:!0}),t);var Hn=(t,e,i)=>Fu(t,typeof e!="symbol"?e+"":e,i),Uu=(t,e,i)=>e.has(t)||_v("Cannot "+i);var Di=(t,e,i)=>(Uu(t,e,"read from private field"),i?i.call(t):e.get(t)),ps=(t,e,i)=>e.has(t)?_v("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),La=(t,e,i,o)=>(Uu(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),yv=(t,e,i)=>(Uu(t,e,"access private method"),i);var Pt=(t,e,i)=>new Promise((o,n)=>{var a=l=>{try{d(i.next(l))}catch(u){n(u)}},s=l=>{try{d(i.throw(l))}catch(u){n(u)}},d=l=>l.done?o(l.value):Promise.resolve(l.value).then(a,s);d((i=i.apply(t,e)).next())});var Bx={};S0(Bx,{ControlButtonType:()=>Ed,GridTypes:()=>Sr,InterfaceLanguage:()=>Cl.InterfaceLanguage,MenuItemType:()=>dl,PlayerPhase:()=>zr,VERSION:()=>ta,VKNumericLanguage:()=>Cl.VKNumericLanguage,VideoFormat:()=>Nu.VideoFormat,VideoQuality:()=>Nu.VideoQuality,loadVKLangPack:()=>Cl.loadVKLangPack,registerPlayerWebComponent:()=>Nx});module.exports=C0(Bx);var fs="[",Ns="[!",Bs="]",Gr={};var Ni=Symbol(),bi=Symbol("filename"),xv=Symbol("hmr"),wv="http://www.w3.org/1999/xhtml",zu="http://www.w3.org/2000/svg";var pc=!0;var Cv,Tv,Sv=(Tv=(Cv=globalThis.process)==null?void 0:Cv.env)==null?void 0:Tv.NODE_ENV,Pe=Sv&&!Sv.toLowerCase().startsWith("prod");var qo=Symbol("$state"),jr=Symbol("$state metadata"),Ml=Symbol("legacy props"),Iv=Symbol("");var hr=Array.isArray,kv=Array.prototype.indexOf,Ll=Array.from,qu=Object.keys,po=Object.defineProperty,Fn=Object.getOwnPropertyDescriptor,fc=Object.getOwnPropertyDescriptors,Wu=Object.prototype,Ev=Array.prototype,Yr=Object.getPrototypeOf;function ms(t){return typeof t=="function"}var oe=()=>{};function Pv(t){return t()}function vs(t){for(var e=0;e<t.length;e++)t[e]()}var Vl=[],Ku=[];function Av(){var t=Vl;Vl=[],vs(t)}function T0(){var t=Ku;Ku=[],vs(t)}function en(t){Vl.length===0&&queueMicrotask(Av),Vl.push(t)}function Qu(){Vl.length>0&&Av(),Ku.length>0&&T0()}function mc(t){return t===this.v}function Va(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Mv(t,e){return t!==e}function Ra(t){return!Va(t,this.v)}function Lv(){if(Pe){let t=new Error(`derived_references_self
7
7
  A derived value cannot reference itself recursively
@@ -45,7 +45,7 @@ ${l}in ${p}`).join("")}
45
45
  `)){let n=(i=N0.exec(o))!=null?i:B0.exec(o);n&&e.push({file:n[1],line:+n[2],column:+n[3]})}return e}function bg(){var e;let t=(e=O0())==null?void 0:e.slice(4);if(!t)return null;for(let i=0;i<t.length;i++){let o=t[i],n=D0[o.file];if(!n){if(i===0)return null;continue}for(let a of n){if(a.end==null)return null;if(a.start.line<o.line&&a.end.line>o.line)return a.component}}return null}var Ec=Symbol("ADD_OWNER");function pp(t,e,i=!1,o=!1){if(t&&!i){let n=an,a=t[jr];if(a&&!fp(a,n)){let s=mp(a);e&&e[bi]!==n[bi]&&!o&&tg(n[bi],e[bi],s[bi])}}Pc(t,e,new Set)}function ip(t,e){if(e.owners!==null)for(;t;){if(t.owners===null){e.owners=null;break}for(let i of t.owners)e.owners.add(i);t=t.parent}}function Pc(t,e,i){var a;let o=t==null?void 0:t[jr];if(o)"owners"in o&&o.owners!=null&&(e?o.owners.add(e):o.owners=null);else if(t&&typeof t=="object"){if(i.has(t))return;if(i.add(t),Ec in t&&t[Ec])Co(()=>{t[Ec](e)});else{var n=Yr(t);if(n===Object.prototype)for(let s in t)if((a=Object.getOwnPropertyDescriptor(t,s))!=null&&a.get){let d=Ni;Co(()=>{let l=t[s];d!==l&&(d=l,Pc(l,e,i))})}else Pc(t[s],e,i);else if(n===Array.prototype)for(let s=0;s<t.length;s+=1)Pc(t[s],e,i)}}}function fp(t,e){return t.owners===null?!0:t.owners.has(e)||bi in e&&[...t.owners].some(i=>i[bi]===e[bi])||t.parent!==null&&fp(t.parent,e)}function mp(t){var e,i;return(i=(e=t==null?void 0:t.owners)==null?void 0:e.values().next().value)!=null?i:mp(t.parent)}var H0=!1;function og(t){if(H0)return;let e=bg();if(e&&!fp(t,e)){let i=mp(t);i[bi]!==e[bi]?tp(e[bi],i[bi]):tp()}}function Wa(t){if(Pe){let e=new Error(`lifecycle_outside_component
46
46
  \`${t}(...)\` can only be used during component initialisation
47
47
  https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Vt=null;function ql(t){Vt=t}var an=null;function Wl(t){an=t}function Ka(t){return vp("getContext").get(t)}function Qa(t,e){let i=vp("setContext");return Pe&&yt(()=>pp(e,null,!0)),i.set(t,e),e}function Ql(){return vp("getAllContexts")}function U(t,e=!1,i){var o=Vt={p:Vt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Nr&&!e&&(Vt.l={s:null,u:null,r1:[],r2:Gi(!1)}),ln(()=>{o.d=!0}),Pe&&(Vt.function=i,an=i)}function z(t){var s,d;let e=Vt;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=It,o=Ft;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];fo(a.effect),wo(a.reaction),wn(a.fn)}}finally{fo(i),wo(o)}}Vt=e.p,Pe&&(an=(d=(s=e.p)==null?void 0:s.function)!=null?d:null),e.m=!0}return t||{}}function Or(){return!Nr||Vt!==null&&Vt.l===null}function vp(t){var e;return Vt===null&&Wa(t),(e=Vt.c)!=null?e:Vt.c=new Map(U0(Vt)||void 0)}function U0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var z0=/\r/g;function $g(t){t=t.replace(z0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function yg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var q0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function xg(t){return q0.includes(t)}var W0=["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","defer","disablepictureinpicture","disableremoteplayback"];var K0={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function wg(t){var e;return t=t.toLowerCase(),(e=K0[t])!=null?e:t}var Ow=[...W0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var Q0=["touchstart","touchmove"];function Sg(t){return Q0.includes(t)}var G0=["textarea","script","style","title"];function Cg(t){return G0.includes(t)}function gp(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Tg=new Map;function Ig(t,e){var i=Tg.get(t);i||(i=new Set,Tg.set(t,i)),i.add(e)}function hp(t,e){if(e){let i=document.body;t.autofocus=!0,en(()=>{document.activeElement===i&&t.focus()})}}function Gl(t){var e=Ft,i=It;wo(null),fo(null);try{return t()}finally{wo(e),fo(i)}}var _p=new Set,Ac=new Set;function Gs(t){if(!Ye)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 bp(t,e,i,o={}){function n(a){if(o.capture||Ga.call(e,a),!a.cancelBubble)return Gl(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?en(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Tt(t,e,i,o,n){var a={capture:o,passive:n},s=bp(t,e,i,a);(e===document.body||e===window||e===document)&&ln(()=>{e.removeEventListener(t,s,a)})}function dt(t){for(var e=0;e<t.length;e++)_p.add(t[e]);for(var i of Ac)i(t)}function Ga(t){var E;var e=this,i=e.ownerDocument,o=t.type,n=((E=t.composedPath)==null?void 0:E.call(t))||[],a=n[0]||t.target,s=0,d=t.__root;if(d){var l=n.indexOf(d);if(l!==-1&&(e===document||e===window)){t.__root=e;return}var u=n.indexOf(e);if(u===-1)return;l<=u&&(s=l)}if(a=n[s]||t.target,a!==e){po(t,"currentTarget",{configurable:!0,get(){return a||i}});var v=Ft,$=It;wo(null),fo(null);try{for(var p,_=[];a!==null;){var w=a.assignedSlot||a.parentNode||a.host||null;try{var y=a["__"+o];if(y!=null&&(!a.disabled||t.target===a))if(hr(y)){var[C,...T]=y;C.apply(a,[t,...T])}else y.call(a,t)}catch(P){p?_.push(P):p=P}if(t.cancelBubble||w===e||w===null)break;a=w}if(p){for(let P of _)queueMicrotask(()=>{throw P});throw p}}finally{t.__root=e,delete t.currentTarget,wo(v),fo($)}}}var Y0;function kg(){Y0=void 0}function ja(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function To(t,e){var i=It;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function L(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,a=!t.startsWith("<!>");return()=>{if(Ye)return To(gt,null),gt;n===void 0&&(n=ja(a?t:"<!>"+t),i||(n=yi(n)));var s=o||Bl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=yi(s),l=s.lastChild;To(d,l)}else To(s,s);return s}}function ye(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,s;return()=>{if(Ye)return To(gt,null),gt;if(!s){var d=ja(a),l=yi(d);if(n)for(s=document.createDocumentFragment();yi(l);)s.appendChild(yi(l));else s=yi(l)}var u=s.cloneNode(!0);if(n){var v=yi(u),$=u.lastChild;To(v,$)}else To(u,u);return u}}function Hr(t=""){if(!Ye){var e=rn(t+"");return To(e,e),e}var i=gt;return i.nodeType!==3&&(i.before(i=rn()),$i(i)),To(i,i),i}function ze(){if(Ye)return To(gt,null),gt;var t=document.createDocumentFragment(),e=document.createComment(""),i=rn();return t.append(e,i),To(e,i),t}function b(t,e){if(Ye){It.nodes_end=gt,zi();return}t!==null&&t.before(e)}var jl=!0;function Mc(t){jl=t}function ge(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function is(t,e){return Pg(t,e)}function yp(t,e){var s;bc(),e.intro=(s=e.intro)!=null?s:!1;let i=e.target,o=Ye,n=gt;try{for(var a=yi(i);a&&(a.nodeType!==8||a.data!==fs);)a=Do(a);if(!a)throw Gr;vo(!0),$i(a),zi();let d=Pg(t,Bt(q({},e),{anchor:a}));if(gt===null||gt.nodeType!==8||gt.data!==Bs)throw qs(),Gr;return vo(!1),d}catch(d){if(d===Gr)return e.recover===!1&&Bv(),bc(),Ol(i),vo(!1),is(t,e);throw d}finally{vo(o),$i(n),kg()}}var Ya=new Map;function Pg(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){bc();var d=new Set,l=$=>{for(var p=0;p<$.length;p++){var _=$[p];if(!d.has(_)){d.add(_);var w=Sg(_);e.addEventListener(_,Ga,{passive:w});var y=Ya.get(_);y===void 0?(document.addEventListener(_,Ga,{passive:w}),Ya.set(_,1)):Ya.set(_,y+1)}}};l(Ll(_p)),Ac.add(l);var u=void 0,v=hg(()=>{var $=i!=null?i:e.appendChild(rn());return ji(()=>{if(a){U({});var p=Vt;p.c=a}n&&(o.$$events=n),Ye&&To($,null),jl=s,u=t($,o)||{},jl=!0,Ye&&(It.nodes_end=gt),a&&z()}),()=>{var w;for(var p of d){e.removeEventListener(p,Ga);var _=Ya.get(p);--_===0?(document.removeEventListener(p,Ga),Ya.delete(p)):Ya.set(p,_)}Ac.delete(l),$!==i&&((w=$.parentNode)==null||w.removeChild($))}});return $p.set(u,v),u}var $p=new WeakMap;function js(t,e){let i=$p.get(t);return i?($p.delete(t),i(e)):(Pe&&eg(),Promise.resolve())}function R(t,e,[i,o]=[0,0]){Ye&&i===0&&zi();var n=t,a=null,s=null,d=Ni,l=i>0?65536:0,u=!1;let v=(p,_=!0)=>{u=!0,$(_,p)},$=(p,_)=>{if(d===(d=p))return;let w=!1;if(Ye&&o!==-1){if(i===0){let C=n.data;C===fs?o=0:C===Ns?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=Ha(),$i(n),vo(!1),w=!0,o=-1)}d?(a?ts(a):_&&(a=ji(()=>_(n))),s&&Sn(s,()=>{s=null})):(s?ts(s):_&&(s=ji(()=>_(n,[i+1,o]))),a&&Sn(a,()=>{a=null})),w&&vo(!0)};go(()=>{u=!1,e(v),u||$(null,null)},l),Ye&&(n=gt)}function Ys(t,e,i){Ye&&zi();var o=t,n=Ni,a,s=Or()?Mv:Va;go(()=>{s(n,n=e())&&(a&&Sn(a),a=ji(()=>i(o)))}),Ye&&(o=gt)}var _s=null;function Sp(t){_s=t}function Yl(t,e){return e}function e_(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)kc(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;Ol(l),l.append(i),o.clear(),hs(t,e[0].prev,e[a-1].next)}up(n,()=>{for(var u=0;u<a;u++){var v=e[u];d||(o.delete(v.k),hs(t,v.prev,v.next)),mo(v.e,!d)}})}function ki(t,e,i,o,n,a=null){var s=t,d={flags:e,items:new Map,first:null},l=(e&4)!==0;if(l){var u=t;s=Ye?$i(yi(u)):u.appendChild(rn())}Ye&&zi();var v=null,$=!1,p=$r(()=>{var _=i();return hr(_)?_:_==null?[]:Ll(_)});go(()=>{var _=r(p),w=_.length;if($&&w===0)return;$=w===0;let y=!1;if(Ye){var C=s.data===Ns;C!==(w===0)&&(s=Ha(),$i(s),vo(!1),y=!0)}if(Ye){for(var T=null,E,P=0;P<w;P++){if(gt.nodeType===8&&gt.data===Bs){s=gt,y=!0,vo(!1);break}var A=_[P],I=o(A,P);E=Lg(gt,d,T,null,A,I,P,n,e,i),d.items.set(I,E),T=E}w>0&&$i(Ha())}Ye||t_(_,d,s,n,e,o,i),a!==null&&(w===0?v?ts(v):v=ji(()=>a(s)):v!==null&&Sn(v,()=>{v=null})),y&&vo(!0),r(p)}),Ye&&(s=gt)}function t_(t,e,i,o,n,a,s){var le,Ve,Me,be;var d=(n&8)!==0,l=(n&3)!==0,u=t.length,v=e.items,$=e.first,p=$,_,w=null,y,C=[],T=[],E,P,A,I;if(d)for(I=0;I<u;I+=1)E=t[I],P=a(E,I),A=v.get(P),A!==void 0&&((le=A.a)==null||le.measure(),(y!=null?y:y=new Set).add(A));for(I=0;I<u;I+=1){if(E=t[I],P=a(E,I),A=v.get(P),A===void 0){var V=p?p.e.nodes_start:i;w=Lg(V,e,w,w===null?e.first:w.next,E,P,I,o,n,s),v.set(P,w),C=[],T=[],p=w.next;continue}if(l&&i_(A,E,I,n),(A.e.f&8192)!==0&&(ts(A.e),d&&((Ve=A.a)==null||Ve.unfix(),(y!=null?y:y=new Set).delete(A))),A!==p){if(_!==void 0&&_.has(A)){if(C.length<T.length){var H=T[0],Y;w=H.prev;var O=C[0],J=C[C.length-1];for(Y=0;Y<C.length;Y+=1)Ag(C[Y],H,i);for(Y=0;Y<T.length;Y+=1)_.delete(T[Y]);hs(e,O.prev,J.next),hs(e,w,O),hs(e,J,H),p=H,w=J,I-=1,C=[],T=[]}else _.delete(A),Ag(A,p,i),hs(e,A.prev,A.next),hs(e,A,w===null?e.first:w.next),hs(e,w,A),w=A;continue}for(C=[],T=[];p!==null&&p.k!==P;)(p.e.f&8192)===0&&(_!=null?_:_=new Set).add(p),T.push(p),p=p.next;if(p===null)continue;A=p}C.push(A),w=A,p=A.next}if(p!==null||_!==void 0){for(var ne=_===void 0?[]:Ll(_);p!==null;)(p.e.f&8192)===0&&ne.push(p),p=p.next;var Z=ne.length;if(Z>0){var me=(n&4)!==0&&u===0?i:null;if(d){for(I=0;I<Z;I+=1)(Me=ne[I].a)==null||Me.measure();for(I=0;I<Z;I+=1)(be=ne[I].a)==null||be.fix()}e_(e,ne,me,v)}}d&&en(()=>{var ae;if(y!==void 0)for(A of y)(ae=A.a)==null||ae.apply()}),It.first=e.first&&e.first.e,It.last=w&&w.e}function i_(t,e,i,o){(o&1)!==0&&Na(t.v,e),(o&2)!==0?Na(t.i,i):t.i=i}function Lg(t,e,i,o,n,a,s,d,l,u){var v=_s,$=(l&1)!==0,p=(l&16)===0,_=$?p?Jr(n):Gi(n):n,w=(l&2)===0?s:Gi(s);Pe&&$&&(_.debug=()=>{var C=typeof w=="number"?s:w.v;u()[C]});var y={i:w,v:_,k:a,a:null,e:null,prev:i,next:o};_s=y;try{return y.e=ji(()=>d(t,_,w,u),Ye),y.e.prev=i&&i.e,y.e.next=o&&o.e,i===null?e.first=y:(i.next=y,i.e.next=y.e),o!==null&&(o.prev=y,o.e.prev=y.e),y}finally{_s=v}}function Ag(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,a=t.e.nodes_start;a!==o;){var s=Do(a);n.before(a),a=s}}function hs(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 o_(t,e,i){var a,s;if(!e||e===$g(String(i!=null?i:"")))return;let o,n=(a=t.__svelte_meta)==null?void 0:a.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(s=an)!=null&&s[bi]&&(o=`in ${an[bi]}`),Jv(gp(o))}function Zl(t,e,i,o,n){var a=t,s="",d;go(()=>{var l;if(s===(s=(l=e())!=null?l:"")){Ye&&zi();return}d!==void 0&&(mo(d),d=void 0),s!==""&&(d=ji(()=>{if(Ye){for(var u=gt.data,v=zi(),$=v;v!==null&&(v.nodeType!==8||v.data!=="");)$=v,v=Do(v);if(v===null)throw qs(),Gr;Pe&&!n&&o_(v.parentNode,u,s),To(gt,$),a=$i(v);return}var p=s+"";i?p=`<svg>${p}</svg>`:o&&(p=`<math>${p}</math>`);var _=ja(p);if((i||o)&&(_=yi(_)),To(yi(_),_.lastChild),i||o)for(;yi(_);)a.before(yi(_));else a.before(_)}))})}function he(t,e,...i){var o=t,n=oe,a;go(()=>{n!==(n=e())&&(a&&(mo(a),a=null),Pe&&n==null&&Ov(),a=ji(()=>n(o,...i)))},65536),Ye&&(o=gt)}function Ei(t,e,i){Ye&&zi();var o=t,n,a;go(()=>{n!==(n=e())&&(a&&(Sn(a),a=null),n&&(a=ji(()=>i(o,n))))},65536),Ye&&(o=gt)}function Zs(t,e,i,o,n,a){var w;let s=Ye;Ye&&zi();var d=Pe&&a&&((w=Vt)==null?void 0:w.function[bi]),l,u,v=null;Ye&&gt.nodeType===1&&(v=gt,zi());var $=Ye?gt:t,p,_=_s;go(()=>{let y=e()||null;var C=n?n():i||y==="svg"?zu:null;if(y!==l){var T=_s;Sp(_),p&&(y===null?Sn(p,()=>{p=null,u=null}):y===u?ts(p):(mo(p),Mc(!1))),y&&y!==u&&(p=ji(()=>{if(v=Ye?v:C?document.createElementNS(C,y):document.createElement(y),Pe&&a&&(v.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),To(v,v),o){Ye&&Cg(y)&&v.append(document.createComment(""));var E=Ye?yi(v):v.appendChild(rn());Ye&&(E===null?vo(!1):$i(E)),o(v,E)}It.nodes_end=v,$.before(v)})),l=y,l&&(u=l),Mc(!0),Sp(T)}},65536),s&&(vo(!0),$i($))}var Tp;function Vg(t){return Tp=t.target,new Cp(t)}var os,sr,Cp=class{constructor(e){ps(this,os);ps(this,sr);var a,s;var i=new Map,o=(d,l)=>{var u=Jr(l);return i.set(d,u),u};let n=new Proxy(Bt(q({},e.props||{}),{$$events:{}}),{get(d,l){var u;return r((u=i.get(l))!=null?u:o(l,Reflect.get(d,l)))},has(d,l){var u;return l===Ml?!0:(r((u=i.get(l))!=null?u:o(l,Reflect.get(d,l))),Reflect.has(d,l))},set(d,l,u){var v;return B((v=i.get(l))!=null?v:o(l,u),u),Reflect.set(d,l,u)}});La(this,sr,(e.hydrate?yp:is)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(a=e.intro)!=null?a:!1,recover:e.recover})),(!((s=e==null?void 0:e.props)!=null&&s.$$host)||e.sync===!1)&&za(),La(this,os,n.$$events);for(let d of Object.keys(Di(this,sr)))d==="$set"||d==="$destroy"||d==="$on"||po(this,d,{get(){return Di(this,sr)[d]},set(l){Di(this,sr)[d]=l},enumerable:!0});Di(this,sr).$set=d=>{Object.assign(n,d)},Di(this,sr).$destroy=()=>{js(Di(this,sr))}}$set(e){Di(this,sr).$set(e)}$on(e,i){Di(this,os)[e]=Di(this,os)[e]||[];let o=(...n)=>i.call(this,...n);return Di(this,os)[e].push(o),()=>{Di(this,os)[e]=Di(this,os)[e].filter(n=>n!==o)}}$destroy(){Di(this,sr).$destroy()}};os=new WeakMap,sr=new WeakMap;function W(t,e){en(()=>{var n,a,s;var i=t.getRootNode(),o=i.host?i:(s=(n=i.head)!=null?n:i.ownerDocument.head)!=null?s:(a=Tp)==null?void 0:a.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Pe&&Ig(e.hash,d)}})}function Rg(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=Rg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Dg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Rg(t))&&(o&&(o+=" "),o+=e);return o}function Xl(t){return typeof t=="object"?Dg(t):t!=null?t:""}var Ng=[...`
48
- \r\f\xA0\v\uFEFF`];function Og(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var a=n.length,s=0;(s=o.indexOf(n,s))>=0;){var d=s+a;(s===0||Ng.includes(o[s-1]))&&(d===o.length||Ng.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function Bg(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var a=t[n];a!=null&&a!==""&&(o+=" "+n+": "+a+i)}return o}function Ip(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Hg(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,s=0,d=!1,l=[];o&&l.push(...Object.keys(o).map(Ip)),n&&l.push(...Object.keys(n).map(Ip));var u=0,v=-1;let y=t.length;for(var $=0;$<y;$++){var p=t[$];if(d?p==="/"&&t[$-1]==="*"&&(d=!1):a?a===p&&(a=!1):p==="/"&&t[$+1]==="*"?d=!0:p==='"'||p==="'"?a=p:p==="("?s++:p===")"&&s--,!d&&a===!1&&s===0){if(p===":"&&v===-1)v=$;else if(p===";"||$===y-1){if(v!==-1){var _=Ip(t.substring(u,v).trim());if(!l.includes(_)){p!==";"&&$++;var w=t.substring(u,$).trim();i+=" "+w+";"}}u=$+1,v=-1}}}}return o&&(i+=Bg(o)),n&&(i+=Bg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function te(t,e,i,o,n,a){var s=t.__className;if(Ye||s!==i){var d=Og(i,o,a);(!Ye||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&n!==a)for(var l in a){var u=!!a[l];(n==null||u!==!!n[l])&&t.classList.toggle(l,u)}return a}function kp(t,e={},i,o){for(var n in i){var a=i[n];e[n]!==a&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,a,o))}}function ot(t,e,i,o){var n=t.__style;if(Ye||n!==e){var a=Hg(e,o);(!Ye||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(kp(t,i==null?void 0:i[0],o[0]),kp(t,i==null?void 0:i[1],o[1],"important")):kp(t,i,o));return o}var Za=Symbol("class"),Xa=Symbol("style"),zg=Symbol("is custom element"),qg=Symbol("is html");function Wg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Fe(t,e,i,o){var n=Kg(t);if(Ye&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||c_(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Iv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Qg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function ke(t,e,i,o,n=!1){var A;var a=Kg(t),s=a[zg],d=!a[qg];let l=Ye&&s;l&&vo(!1);var u=e||{},v=t.tagName==="OPTION";for(var $ in e)$ in i||(i[$]=null);i.class?i.class=Xl(i.class):(o||i[Za])&&(i.class=null),i[Xa]&&((A=i.style)!=null||(i.style=null));var p=Qg(t);for(let I in i){let V=i[I];if(v&&I==="value"&&V==null){t.value=t.__value="",u[I]=V;continue}if(I==="class"){var _=t.namespaceURI==="http://www.w3.org/1999/xhtml";te(t,_,V,o,e==null?void 0:e[Za],i[Za]),u[I]=V,u[Za]=i[Za];continue}if(I==="style"){ot(t,V,e==null?void 0:e[Xa],i[Xa]),u[I]=V,u[Xa]=i[Xa];continue}var w=u[I];if(V!==w){u[I]=V;var y=I[0]+I[1];if(y!=="$$")if(y==="on"){let H={},Y="$$"+I,O=I.slice(2);var C=xg(O);if(yg(O)&&(O=O.slice(0,-7),H.capture=!0),!C&&w){if(V!=null)continue;t.removeEventListener(O,u[Y],H),u[Y]=null}if(V!=null)if(C)t[`__${O}`]=V,dt([O]);else{let J=function(ne){u[I].call(this,ne)};var P=J;u[Y]=bp(O,t,J,H)}else C&&(t[`__${O}`]=void 0)}else if(I==="style")Fe(t,I,V);else if(I==="autofocus")hp(t,!!V);else if(!s&&(I==="__value"||I==="value"&&V!=null))t.value=t.__value=V;else if(I==="selected"&&v)Wg(t,V);else{var T=I;d||(T=wg(T));var E=T==="defaultValue"||T==="defaultChecked";if(V==null&&!s&&!E)if(a[I]=null,T==="value"||T==="checked"){let H=t,Y=e===void 0;if(T==="value"){let O=H.defaultValue;H.removeAttribute(T),H.defaultValue=O,H.value=H.__value=Y?O:null}else{let O=H.defaultChecked;H.removeAttribute(T),H.defaultChecked=O,H.checked=Y?O:!1}}else t.removeAttribute(I);else E||p.includes(T)&&(s||typeof V!="string")?t[T]=V:typeof V!="function"&&Fe(t,T,V,n)}}}return l&&vo(!0),u}function Kg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[zg]:t.nodeName.includes("-"),[qg]:t.namespaceURI===wv}}var Fg=new Map;function Qg(t){var e=Fg.get(t.nodeName);if(e)return e;Fg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=fc(o);for(var a in i)i[a].set&&e.push(a);o=Yr(o)}return e}function c_(t,e,i){var o;Pe&&(e==="srcset"&&u_(t,i)||Ep((o=t.getAttribute(e))!=null?o:"",i)||Xv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Ep(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Ug(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function u_(t,e){var i=Ug(t.srcset),o=Ug(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(Ep(i[s][0],n)||Ep(n,i[s][0])))}var p_=pc?()=>performance.now():()=>Date.now(),xr={tick:t=>(pc?requestAnimationFrame:oe)(t),now:()=>p_(),tasks:new Set};function Gg(){let t=xr.now();xr.tasks.forEach(e=>{e.c(t)||(xr.tasks.delete(e),e.f())}),xr.tasks.size!==0&&xr.tick(Gg)}function jg(t){let e;return xr.tasks.size===0&&xr.tick(Gg),{promise:new Promise(i=>{xr.tasks.add(e={c:t,f:i})}),abort(){xr.tasks.delete(e)}}}function Lc(t,e){Gl(()=>{t.dispatchEvent(new CustomEvent(e))})}function g_(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function Yg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=g_(n.trim());e[s]=a.trim()}return e}var h_=t=>t;function Ap(t,e,i,o){var P;var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",u,v=e.inert,$=e.style.overflow,p,_;function w(){var V;var A=Ft,I=It;wo(null),fo(null);try{return u!=null?u:u=i()(e,(V=o==null?void 0:o())!=null?V:{},{direction:l})}finally{wo(A),fo(I)}}var y={is_global:d,in(){var A;if(e.inert=v,!n){_==null||_.abort(),(A=_==null?void 0:_.reset)==null||A.call(_);return}a||p==null||p.abort(),Lc(e,"introstart"),p=Pp(e,w(),_,1,()=>{Lc(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=$})},out(A){if(!a){A==null||A(),u=void 0;return}e.inert=!0,Lc(e,"outrostart"),_=Pp(e,w(),p,0,()=>{Lc(e,"outroend"),A==null||A()})},stop:()=>{p==null||p.abort(),_==null||_.abort()}},C=It;if(((P=C.transitions)!=null?P:C.transitions=[]).push(y),n&&jl){var T=d;if(!T){for(var E=C.parent;E&&(E.f&65536)!==0;)for(;(E=E.parent)&&(E.f&16)===0;);T=!E||(E.f&32768)!==0}T&&wn(()=>{yt(()=>y.in())})}}function Pp(t,e,i,o,n){var a=o===1;if(ms(e)){var s,d=!1;return en(()=>{if(!d){var C=e({direction:a?"in":"out"});s=Pp(t,C,i,o,n)}}),{abort:()=>{d=!0,s==null||s.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:oe,deactivate:oe,reset:oe,t:()=>o};let{delay:l=0,css:u,tick:v,easing:$=h_}=e;var p=[];if(a&&i===void 0&&(v&&v(0,1),u)){var _=Yg(u(0,1));p.push(_,_)}var w=()=>1-o,y=t.animate(p,{duration:l});return y.onfinish=()=>{var O;var C=(O=i==null?void 0:i.t())!=null?O:1-o;i==null||i.abort();var T=o-C,E=e.duration*Math.abs(T),P=[];if(E>0){var A=!1;if(u)for(var I=Math.ceil(E/16.666666666666668),V=0;V<=I;V+=1){var H=C+T*$(V/I),Y=Yg(u(H,1-H));P.push(Y),A||(A=Y.overflow==="hidden")}A&&(t.style.overflow="hidden"),w=()=>{var J=y.currentTime;return C+T*$(J/E)},v&&jg(()=>{if(y.playState!=="running")return!1;var J=w();return v(J,1-J),!0})}y=t.animate(P,{duration:E,fill:"forwards"}),y.onfinish=()=>{w=()=>o,v==null||v(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=oe)},deactivate:()=>{n=oe},reset:()=>{o===0&&(v==null||v(1,0))},t:()=>w()}}var bs,Ja,Jl,Rc,Zg,Dc=class Dc{constructor(e){ps(this,Rc);ps(this,bs,new WeakMap);ps(this,Ja);ps(this,Jl);La(this,Jl,e)}observe(e,i){var o=Di(this,bs).get(e)||new Set;return o.add(i),Di(this,bs).set(e,o),yv(this,Rc,Zg).call(this).observe(e,Di(this,Jl)),()=>{var n=Di(this,bs).get(e);n.delete(i),n.size===0&&(Di(this,bs).delete(e),Di(this,Ja).unobserve(e))}}};bs=new WeakMap,Ja=new WeakMap,Jl=new WeakMap,Rc=new WeakSet,Zg=function(){var e;return(e=Di(this,Ja))!=null?e:La(this,Ja,new ResizeObserver(i=>{for(var o of i){Dc.entries.set(o.target,o);for(var n of Di(this,bs).get(o.target)||[])n(o)}}))},Hn(Dc,"entries",new WeakMap);var Mp=Dc;var $_=new Mp({box:"border-box"});function Fr(t,e,i){var o=$_.observe(t,()=>i(t[e]));wn(()=>(yt(()=>i(t[e])),o))}function Xg(t,e){return t===e||(t==null?void 0:t[qo])===e}function ft(t={},e,i,o){return wn(()=>{var n,a;return Co(()=>{n=a,a=(o==null?void 0:o())||[],yt(()=>{t!==i(...a)&&(e(t,...a),n&&Xg(i(...n),t)&&e(null,...n))})}),()=>{en(()=>{a&&Xg(i(...a),t)&&e(null,...a)})}}),t}function wr(t=!1){let e=Vt,i=e.l.u;if(!i)return;let o=()=>Cc(e.s);if(t){let n=0,a={},s=m(()=>{let d=!1,l=e.s;for(let u in l)l[u]!==a[u]&&(a[u]=l[u],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&qa(()=>{Jg(e,o),vs(i.b)}),We(()=>{let n=yt(()=>i.m.map(Pv));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&We(()=>{Jg(e,o),vs(i.a)})}function Jg(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(Pe){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Uv(e)},set:o=>{i=o}})}};x_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var x_;function qt(t){Vt===null&&Wa("onMount"),Nr&&Vt.l!==null?y_(Vt).m.push(t):We(()=>{let e=yt(t);if(typeof e=="function")return e})}function Cn(t){Vt===null&&Wa("onDestroy"),qt(()=>()=>yt(t))}function y_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function ed(t,e,i){if(t==null)return e(void 0),i&&i(void 0),oe;let o=yt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var el=[];function ar(t,e){return{subscribe:de(t,e).subscribe}}function de(t,e=oe){let i=null,o=new Set;function n(d){if(Va(t,d)&&(t=d,i)){let l=!el.length;for(let u of o)u[1](),el.push(u,t);if(l){for(let u=0;u<el.length;u+=2)el[u][0](el[u+1]);el.length=0}}}function a(d){n(d(t))}function s(d,l=oe){let u=[d,l];return o.add(u),o.size===1&&(i=e(n,a)||oe),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function xi(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 a=e.length<2;return ar(i,(s,d)=>{let l=!1,u=[],v=0,$=oe,p=()=>{if(v)return;$();let w=e(o?u[0]:u,s,d);a?s(w):$=typeof w=="function"?w:oe},_=n.map((w,y)=>ed(w,C=>{u[y]=C,v&=~(1<<y),l&&p()},()=>{v|=1<<y}));return l=!0,p(),function(){vs(_),$(),l=!1}})}function Te(t){let e;return ed(t,i=>e=i)(),e}var Nc=!1,Lp=Symbol();function S(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:Jr(void 0),unsubscribe:oe};if(o.store!==t&&!(Lp in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=oe;else{var n=!0;o.unsubscribe=ed(t,s=>{n?o.source.v=s:B(o.source,s)}),n=!1}return t&&Lp in i?Te(t):r(o.source)}function Be(){let t={};function e(){ln(()=>{for(var i in t)t[i].unsubscribe();po(t,Lp,{enumerable:!1,value:!0})})}return[t,e]}function Vp(t){var e=Nc;try{return Nc=!1,[t(),Nc]}finally{Nc=e}}var E_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Pe&&Fv(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},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 Ae(t,e,i){return new Proxy(Pe?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},E_)}var P_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ms(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];ms(n)&&(n=n());let a=Fn(n,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ms(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Fn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===qo||e===Ml)return!1;for(let i of t.props)if(ms(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){ms(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function ns(...t){return new Proxy({props:t},P_)}function eh(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function f(t,e,i,o){var H,Y;var n=(i&1)!==0,a=!Nr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,u;s?[u,l]=Vp(()=>t[e]):u=t[e];var v=qo in t||Ml in t,$=s&&((Y=(H=Fn(t,e))==null?void 0:H.set)!=null?Y:v&&e in t&&(O=>t[e]=O))||void 0,p=o,_=!0,w=!1,y=()=>(w=!0,_&&(_=!1,d?p=yt(o):p=o),p);u===void 0&&o!==void 0&&($&&a&&Hv(e),u=y(),$&&$(u));var C;if(a)C=()=>{var O=t[e];return O===void 0?y():(_=!0,w=!1,O)};else{var T=(n?m:$r)(()=>t[e]);T.f|=131072,C=()=>{var O=r(T);return O!==void 0&&(p=void 0),O===void 0?p:O}}if((i&4)===0)return C;if($){var E=t.$$legacy;return function(O,J){return arguments.length>0?((!a||!J||E||l)&&$(J?C():O),O):C()}}var P=!1,A=!1,I=Jr(u),V=m(()=>{var O=C(),J=r(I);return P?(P=!1,A=!0,J):(A=!1,I.v=O)});return s&&r(V),n||(V.equals=Ra),function(O,J){if(Dl!==null&&(P=A,C(),r(I)),arguments.length>0){let ne=J?r(V):a&&s?fe(O):O;if(!V.equals(ne)){if(P=!0,B(I,ne),w&&p!==void 0&&(p=ne),eh(V))return O;yt(()=>r(V))}return O}return eh(V)?V.v:r(V)}}var A_;typeof HTMLElement=="function"&&(A_=class extends HTMLElement{constructor(e,i,o){super();Hn(this,"$$ctor");Hn(this,"$$s");Hn(this,"$$c");Hn(this,"$$cn",!1);Hn(this,"$$d",{});Hn(this,"$$r",!1);Hn(this,"$$p_d",{});Hn(this,"$$l",{});Hn(this,"$$l_u",new Map);Hn(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}connectedCallback(){return Pt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(a){return s=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),b(s,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=M_(this);for(let a of this.$$s)a in n&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),o.default=!0):o[a]=i(a));for(let a of this.attributes){let s=this.$$g_p(a.name);s in this.$$d||(this.$$d[s]=Rp(s,a.value,this.$$p_d,"toProp"))}for(let a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=Vg({component:this.$$ctor,target:this.shadowRoot||this,props:Bt(q({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=Ic(()=>{Co(()=>{var a;this.$$r=!0;for(let s of qu(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=Rp(s,this.$$d[s],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,d)}this.$$r=!1})});for(let a in this.$$l)for(let s of this.$$l[a]){let d=this.$$c.$on(a,s);this.$$l_u.set(s,d)}this.$$l={}}})}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Rp(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return qu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Rp(t,e,i,o){var a;let n=(a=i[t])==null?void 0:a.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?null:e;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 M_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var th="5";var ih,oh,nh;typeof window!="undefined"&&((nh=(oh=(ih=window.__svelte)!=null?ih:window.__svelte={}).v)!=null?nh:oh.v=new Set).add(th);var Cu=require("@vkontakte/videoplayer-core/es2015"),cj=require("@vkontakte/videoplayer-core/es2015"),Ia=require("@vkontakte/videoplayer-shared/es2015"),t0=require("@vkontakte/videoplayer-statistics/es2015");var Xs=require("@vkontakte/videoplayer-shared/es2015");var V_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:Xs.InterfaceLanguage.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:Xs.VideoQuality.Q_480P,highQualityLimit:Xs.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,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,slots:!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,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!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,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},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,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null}},rh=t=>(0,Xs.fillWithDefault)(t,V_),sh=t=>Qa("ui-config",t),Wt=()=>Ka("ui-config");var td="vk_player_debug_panel_opened";var ah="videoplayer",lh="videoplayer";var Ur={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},dh=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),ch=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),uh=new Set(["ShiftRight","ShiftLeft"]);var ph=["TIMELINE"],id=[...ph,"GRAPH_BUTTON"],Dp=[...ph,"PLAY_BUTTON"],od=[...id,"PLAY_BUTTON"];var Sr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Sr||{}),ea={xs:0,s:1,m:2,l:3,xl:4};var nd=require("@vkontakte/videoplayer-shared/es2015"),fh=require("@vkontakte/videoplayer-core/es2015"),mh=require("@vkontakte/videoplayer-statistics/es2015");var Bc="prod",ta="1.1.63";var ia=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var vh=Symbol("storeContext"),gh=Symbol("microStoresContext"),hh=(t,e)=>{Qa(vh,t),Qa(gh,e),Bc==="dev"&&(window.app={store:t,microStores:e})},Ie=()=>{let t=Ka(vh);return(0,nd.assertNonNullable)(t,"Store context is empty!"),t},ho=()=>{let t=Ka(gh);return(0,nd.assertNonNullable)(t,"MicroStores context is empty!"),t},Jt=(t,e)=>Hc(t,t.getValue(),e),Hc=(t,e,i)=>ar(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),_h=(t,e,i)=>{var T,E,P,A,I,V;let o=t.info,{width:n,height:a}=Te(i.ui.playerSize),s=(E=(T=o.throughputEstimation$.getValue())==null?void 0:T.toFixed(0))!=null?E:0,d=(A=(P=o.rttEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?A:0,l=o.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${ta} (core: ${fh.VERSION}, stat: ${mh.VERSION}, shared: ${nd.VERSION})`,v=Te(i.state.errorLog$),$=v.length?`
48
+ \r\f\xA0\v\uFEFF`];function Og(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var a=n.length,s=0;(s=o.indexOf(n,s))>=0;){var d=s+a;(s===0||Ng.includes(o[s-1]))&&(d===o.length||Ng.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function Bg(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var a=t[n];a!=null&&a!==""&&(o+=" "+n+": "+a+i)}return o}function Ip(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Hg(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,s=0,d=!1,l=[];o&&l.push(...Object.keys(o).map(Ip)),n&&l.push(...Object.keys(n).map(Ip));var u=0,v=-1;let y=t.length;for(var $=0;$<y;$++){var p=t[$];if(d?p==="/"&&t[$-1]==="*"&&(d=!1):a?a===p&&(a=!1):p==="/"&&t[$+1]==="*"?d=!0:p==='"'||p==="'"?a=p:p==="("?s++:p===")"&&s--,!d&&a===!1&&s===0){if(p===":"&&v===-1)v=$;else if(p===";"||$===y-1){if(v!==-1){var _=Ip(t.substring(u,v).trim());if(!l.includes(_)){p!==";"&&$++;var w=t.substring(u,$).trim();i+=" "+w+";"}}u=$+1,v=-1}}}}return o&&(i+=Bg(o)),n&&(i+=Bg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function te(t,e,i,o,n,a){var s=t.__className;if(Ye||s!==i){var d=Og(i,o,a);(!Ye||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&n!==a)for(var l in a){var u=!!a[l];(n==null||u!==!!n[l])&&t.classList.toggle(l,u)}return a}function kp(t,e={},i,o){for(var n in i){var a=i[n];e[n]!==a&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,a,o))}}function ot(t,e,i,o){var n=t.__style;if(Ye||n!==e){var a=Hg(e,o);(!Ye||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(kp(t,i==null?void 0:i[0],o[0]),kp(t,i==null?void 0:i[1],o[1],"important")):kp(t,i,o));return o}var Za=Symbol("class"),Xa=Symbol("style"),zg=Symbol("is custom element"),qg=Symbol("is html");function Wg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Fe(t,e,i,o){var n=Kg(t);if(Ye&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||c_(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Iv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Qg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function ke(t,e,i,o,n=!1){var A;var a=Kg(t),s=a[zg],d=!a[qg];let l=Ye&&s;l&&vo(!1);var u=e||{},v=t.tagName==="OPTION";for(var $ in e)$ in i||(i[$]=null);i.class?i.class=Xl(i.class):(o||i[Za])&&(i.class=null),i[Xa]&&((A=i.style)!=null||(i.style=null));var p=Qg(t);for(let I in i){let V=i[I];if(v&&I==="value"&&V==null){t.value=t.__value="",u[I]=V;continue}if(I==="class"){var _=t.namespaceURI==="http://www.w3.org/1999/xhtml";te(t,_,V,o,e==null?void 0:e[Za],i[Za]),u[I]=V,u[Za]=i[Za];continue}if(I==="style"){ot(t,V,e==null?void 0:e[Xa],i[Xa]),u[I]=V,u[Xa]=i[Xa];continue}var w=u[I];if(V!==w){u[I]=V;var y=I[0]+I[1];if(y!=="$$")if(y==="on"){let H={},Y="$$"+I,O=I.slice(2);var C=xg(O);if(yg(O)&&(O=O.slice(0,-7),H.capture=!0),!C&&w){if(V!=null)continue;t.removeEventListener(O,u[Y],H),u[Y]=null}if(V!=null)if(C)t[`__${O}`]=V,dt([O]);else{let J=function(ne){u[I].call(this,ne)};var P=J;u[Y]=bp(O,t,J,H)}else C&&(t[`__${O}`]=void 0)}else if(I==="style")Fe(t,I,V);else if(I==="autofocus")hp(t,!!V);else if(!s&&(I==="__value"||I==="value"&&V!=null))t.value=t.__value=V;else if(I==="selected"&&v)Wg(t,V);else{var T=I;d||(T=wg(T));var E=T==="defaultValue"||T==="defaultChecked";if(V==null&&!s&&!E)if(a[I]=null,T==="value"||T==="checked"){let H=t,Y=e===void 0;if(T==="value"){let O=H.defaultValue;H.removeAttribute(T),H.defaultValue=O,H.value=H.__value=Y?O:null}else{let O=H.defaultChecked;H.removeAttribute(T),H.defaultChecked=O,H.checked=Y?O:!1}}else t.removeAttribute(I);else E||p.includes(T)&&(s||typeof V!="string")?t[T]=V:typeof V!="function"&&Fe(t,T,V,n)}}}return l&&vo(!0),u}function Kg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[zg]:t.nodeName.includes("-"),[qg]:t.namespaceURI===wv}}var Fg=new Map;function Qg(t){var e=Fg.get(t.nodeName);if(e)return e;Fg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=fc(o);for(var a in i)i[a].set&&e.push(a);o=Yr(o)}return e}function c_(t,e,i){var o;Pe&&(e==="srcset"&&u_(t,i)||Ep((o=t.getAttribute(e))!=null?o:"",i)||Xv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Ep(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Ug(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function u_(t,e){var i=Ug(t.srcset),o=Ug(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(Ep(i[s][0],n)||Ep(n,i[s][0])))}var p_=pc?()=>performance.now():()=>Date.now(),xr={tick:t=>(pc?requestAnimationFrame:oe)(t),now:()=>p_(),tasks:new Set};function Gg(){let t=xr.now();xr.tasks.forEach(e=>{e.c(t)||(xr.tasks.delete(e),e.f())}),xr.tasks.size!==0&&xr.tick(Gg)}function jg(t){let e;return xr.tasks.size===0&&xr.tick(Gg),{promise:new Promise(i=>{xr.tasks.add(e={c:t,f:i})}),abort(){xr.tasks.delete(e)}}}function Lc(t,e){Gl(()=>{t.dispatchEvent(new CustomEvent(e))})}function g_(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function Yg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=g_(n.trim());e[s]=a.trim()}return e}var h_=t=>t;function Ap(t,e,i,o){var P;var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",u,v=e.inert,$=e.style.overflow,p,_;function w(){var V;var A=Ft,I=It;wo(null),fo(null);try{return u!=null?u:u=i()(e,(V=o==null?void 0:o())!=null?V:{},{direction:l})}finally{wo(A),fo(I)}}var y={is_global:d,in(){var A;if(e.inert=v,!n){_==null||_.abort(),(A=_==null?void 0:_.reset)==null||A.call(_);return}a||p==null||p.abort(),Lc(e,"introstart"),p=Pp(e,w(),_,1,()=>{Lc(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=$})},out(A){if(!a){A==null||A(),u=void 0;return}e.inert=!0,Lc(e,"outrostart"),_=Pp(e,w(),p,0,()=>{Lc(e,"outroend"),A==null||A()})},stop:()=>{p==null||p.abort(),_==null||_.abort()}},C=It;if(((P=C.transitions)!=null?P:C.transitions=[]).push(y),n&&jl){var T=d;if(!T){for(var E=C.parent;E&&(E.f&65536)!==0;)for(;(E=E.parent)&&(E.f&16)===0;);T=!E||(E.f&32768)!==0}T&&wn(()=>{yt(()=>y.in())})}}function Pp(t,e,i,o,n){var a=o===1;if(ms(e)){var s,d=!1;return en(()=>{if(!d){var C=e({direction:a?"in":"out"});s=Pp(t,C,i,o,n)}}),{abort:()=>{d=!0,s==null||s.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:oe,deactivate:oe,reset:oe,t:()=>o};let{delay:l=0,css:u,tick:v,easing:$=h_}=e;var p=[];if(a&&i===void 0&&(v&&v(0,1),u)){var _=Yg(u(0,1));p.push(_,_)}var w=()=>1-o,y=t.animate(p,{duration:l});return y.onfinish=()=>{var O;var C=(O=i==null?void 0:i.t())!=null?O:1-o;i==null||i.abort();var T=o-C,E=e.duration*Math.abs(T),P=[];if(E>0){var A=!1;if(u)for(var I=Math.ceil(E/16.666666666666668),V=0;V<=I;V+=1){var H=C+T*$(V/I),Y=Yg(u(H,1-H));P.push(Y),A||(A=Y.overflow==="hidden")}A&&(t.style.overflow="hidden"),w=()=>{var J=y.currentTime;return C+T*$(J/E)},v&&jg(()=>{if(y.playState!=="running")return!1;var J=w();return v(J,1-J),!0})}y=t.animate(P,{duration:E,fill:"forwards"}),y.onfinish=()=>{w=()=>o,v==null||v(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=oe)},deactivate:()=>{n=oe},reset:()=>{o===0&&(v==null||v(1,0))},t:()=>w()}}var bs,Ja,Jl,Rc,Zg,Dc=class Dc{constructor(e){ps(this,Rc);ps(this,bs,new WeakMap);ps(this,Ja);ps(this,Jl);La(this,Jl,e)}observe(e,i){var o=Di(this,bs).get(e)||new Set;return o.add(i),Di(this,bs).set(e,o),yv(this,Rc,Zg).call(this).observe(e,Di(this,Jl)),()=>{var n=Di(this,bs).get(e);n.delete(i),n.size===0&&(Di(this,bs).delete(e),Di(this,Ja).unobserve(e))}}};bs=new WeakMap,Ja=new WeakMap,Jl=new WeakMap,Rc=new WeakSet,Zg=function(){var e;return(e=Di(this,Ja))!=null?e:La(this,Ja,new ResizeObserver(i=>{for(var o of i){Dc.entries.set(o.target,o);for(var n of Di(this,bs).get(o.target)||[])n(o)}}))},Hn(Dc,"entries",new WeakMap);var Mp=Dc;var $_=new Mp({box:"border-box"});function Fr(t,e,i){var o=$_.observe(t,()=>i(t[e]));wn(()=>(yt(()=>i(t[e])),o))}function Xg(t,e){return t===e||(t==null?void 0:t[qo])===e}function ft(t={},e,i,o){return wn(()=>{var n,a;return Co(()=>{n=a,a=(o==null?void 0:o())||[],yt(()=>{t!==i(...a)&&(e(t,...a),n&&Xg(i(...n),t)&&e(null,...n))})}),()=>{en(()=>{a&&Xg(i(...a),t)&&e(null,...a)})}}),t}function wr(t=!1){let e=Vt,i=e.l.u;if(!i)return;let o=()=>Cc(e.s);if(t){let n=0,a={},s=m(()=>{let d=!1,l=e.s;for(let u in l)l[u]!==a[u]&&(a[u]=l[u],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&qa(()=>{Jg(e,o),vs(i.b)}),We(()=>{let n=yt(()=>i.m.map(Pv));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&We(()=>{Jg(e,o),vs(i.a)})}function Jg(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(Pe){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Uv(e)},set:o=>{i=o}})}};x_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var x_;function qt(t){Vt===null&&Wa("onMount"),Nr&&Vt.l!==null?y_(Vt).m.push(t):We(()=>{let e=yt(t);if(typeof e=="function")return e})}function Cn(t){Vt===null&&Wa("onDestroy"),qt(()=>()=>yt(t))}function y_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function ed(t,e,i){if(t==null)return e(void 0),i&&i(void 0),oe;let o=yt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var el=[];function ar(t,e){return{subscribe:de(t,e).subscribe}}function de(t,e=oe){let i=null,o=new Set;function n(d){if(Va(t,d)&&(t=d,i)){let l=!el.length;for(let u of o)u[1](),el.push(u,t);if(l){for(let u=0;u<el.length;u+=2)el[u][0](el[u+1]);el.length=0}}}function a(d){n(d(t))}function s(d,l=oe){let u=[d,l];return o.add(u),o.size===1&&(i=e(n,a)||oe),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function xi(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 a=e.length<2;return ar(i,(s,d)=>{let l=!1,u=[],v=0,$=oe,p=()=>{if(v)return;$();let w=e(o?u[0]:u,s,d);a?s(w):$=typeof w=="function"?w:oe},_=n.map((w,y)=>ed(w,C=>{u[y]=C,v&=~(1<<y),l&&p()},()=>{v|=1<<y}));return l=!0,p(),function(){vs(_),$(),l=!1}})}function Te(t){let e;return ed(t,i=>e=i)(),e}var Nc=!1,Lp=Symbol();function S(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:Jr(void 0),unsubscribe:oe};if(o.store!==t&&!(Lp in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=oe;else{var n=!0;o.unsubscribe=ed(t,s=>{n?o.source.v=s:B(o.source,s)}),n=!1}return t&&Lp in i?Te(t):r(o.source)}function Be(){let t={};function e(){ln(()=>{for(var i in t)t[i].unsubscribe();po(t,Lp,{enumerable:!1,value:!0})})}return[t,e]}function Vp(t){var e=Nc;try{return Nc=!1,[t(),Nc]}finally{Nc=e}}var E_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Pe&&Fv(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},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 Ae(t,e,i){return new Proxy(Pe?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},E_)}var P_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ms(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];ms(n)&&(n=n());let a=Fn(n,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ms(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Fn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===qo||e===Ml)return!1;for(let i of t.props)if(ms(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){ms(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function ns(...t){return new Proxy({props:t},P_)}function eh(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function f(t,e,i,o){var H,Y;var n=(i&1)!==0,a=!Nr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,u;s?[u,l]=Vp(()=>t[e]):u=t[e];var v=qo in t||Ml in t,$=s&&((Y=(H=Fn(t,e))==null?void 0:H.set)!=null?Y:v&&e in t&&(O=>t[e]=O))||void 0,p=o,_=!0,w=!1,y=()=>(w=!0,_&&(_=!1,d?p=yt(o):p=o),p);u===void 0&&o!==void 0&&($&&a&&Hv(e),u=y(),$&&$(u));var C;if(a)C=()=>{var O=t[e];return O===void 0?y():(_=!0,w=!1,O)};else{var T=(n?m:$r)(()=>t[e]);T.f|=131072,C=()=>{var O=r(T);return O!==void 0&&(p=void 0),O===void 0?p:O}}if((i&4)===0)return C;if($){var E=t.$$legacy;return function(O,J){return arguments.length>0?((!a||!J||E||l)&&$(J?C():O),O):C()}}var P=!1,A=!1,I=Jr(u),V=m(()=>{var O=C(),J=r(I);return P?(P=!1,A=!0,J):(A=!1,I.v=O)});return s&&r(V),n||(V.equals=Ra),function(O,J){if(Dl!==null&&(P=A,C(),r(I)),arguments.length>0){let ne=J?r(V):a&&s?fe(O):O;if(!V.equals(ne)){if(P=!0,B(I,ne),w&&p!==void 0&&(p=ne),eh(V))return O;yt(()=>r(V))}return O}return eh(V)?V.v:r(V)}}var A_;typeof HTMLElement=="function"&&(A_=class extends HTMLElement{constructor(e,i,o){super();Hn(this,"$$ctor");Hn(this,"$$s");Hn(this,"$$c");Hn(this,"$$cn",!1);Hn(this,"$$d",{});Hn(this,"$$r",!1);Hn(this,"$$p_d",{});Hn(this,"$$l",{});Hn(this,"$$l_u",new Map);Hn(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}connectedCallback(){return Pt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(a){return s=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),b(s,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=M_(this);for(let a of this.$$s)a in n&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),o.default=!0):o[a]=i(a));for(let a of this.attributes){let s=this.$$g_p(a.name);s in this.$$d||(this.$$d[s]=Rp(s,a.value,this.$$p_d,"toProp"))}for(let a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=Vg({component:this.$$ctor,target:this.shadowRoot||this,props:Bt(q({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=Ic(()=>{Co(()=>{var a;this.$$r=!0;for(let s of qu(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=Rp(s,this.$$d[s],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,d)}this.$$r=!1})});for(let a in this.$$l)for(let s of this.$$l[a]){let d=this.$$c.$on(a,s);this.$$l_u.set(s,d)}this.$$l={}}})}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Rp(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return qu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Rp(t,e,i,o){var a;let n=(a=i[t])==null?void 0:a.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?null:e;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 M_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var th="5";var ih,oh,nh;typeof window!="undefined"&&((nh=(oh=(ih=window.__svelte)!=null?ih:window.__svelte={}).v)!=null?nh:oh.v=new Set).add(th);var Cu=require("@vkontakte/videoplayer-core/es2015"),cj=require("@vkontakte/videoplayer-core/es2015"),Ia=require("@vkontakte/videoplayer-shared/es2015"),t0=require("@vkontakte/videoplayer-statistics/es2015");var Xs=require("@vkontakte/videoplayer-shared/es2015");var V_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:Xs.InterfaceLanguage.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:Xs.VideoQuality.Q_480P,highQualityLimit:Xs.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,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,slots:!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,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!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,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},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,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null}},rh=t=>(0,Xs.fillWithDefault)(t,V_),sh=t=>Qa("ui-config",t),Wt=()=>Ka("ui-config");var td="vk_player_debug_panel_opened";var ah="videoplayer",lh="videoplayer";var Ur={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},dh=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),ch=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),uh=new Set(["ShiftRight","ShiftLeft"]);var ph=["TIMELINE"],id=[...ph,"GRAPH_BUTTON"],Dp=[...ph,"PLAY_BUTTON"],od=[...id,"PLAY_BUTTON"];var Sr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Sr||{}),ea={xs:0,s:1,m:2,l:3,xl:4};var nd=require("@vkontakte/videoplayer-shared/es2015"),fh=require("@vkontakte/videoplayer-core/es2015"),mh=require("@vkontakte/videoplayer-statistics/es2015");var Bc="prod",ta="1.1.64-dev.3efb4d41.0";var ia=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var vh=Symbol("storeContext"),gh=Symbol("microStoresContext"),hh=(t,e)=>{Qa(vh,t),Qa(gh,e),Bc==="dev"&&(window.app={store:t,microStores:e})},Ie=()=>{let t=Ka(vh);return(0,nd.assertNonNullable)(t,"Store context is empty!"),t},ho=()=>{let t=Ka(gh);return(0,nd.assertNonNullable)(t,"MicroStores context is empty!"),t},Jt=(t,e)=>Hc(t,t.getValue(),e),Hc=(t,e,i)=>ar(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),_h=(t,e,i)=>{var T,E,P,A,I,V;let o=t.info,{width:n,height:a}=Te(i.ui.playerSize),s=(E=(T=o.throughputEstimation$.getValue())==null?void 0:T.toFixed(0))!=null?E:0,d=(A=(P=o.rttEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?A:0,l=o.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${ta} (core: ${fh.VERSION}, stat: ${mh.VERSION}, shared: ${nd.VERSION})`,v=Te(i.state.errorLog$),$=v.length?`
49
49
  `+v.map((H,Y)=>{var Z;let O=`${Y}) Type: ${H.id}
50
50
  `,J=`Message: ${H.message} (${H.thrown})
51
51
  `,ne=`Trace: ${(Z=H.thrown)==null?void 0:Z.stack}
package/es2015.esm.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.63
3
- * Thu, 05 Jun 2025 08:19:11 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-63/doc/
2
+ * @vkontakte/videoplayer v1.1.64-dev.3efb4d41.0
3
+ * Thu, 05 Jun 2025 11:40:28 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-64/doc/
5
5
  */
6
6
  var z1=Object.defineProperty,q1=Object.defineProperties;var W1=Object.getOwnPropertyDescriptors;var Qm=Object.getOwnPropertySymbols;var K1=Object.prototype.hasOwnProperty,Q1=Object.prototype.propertyIsEnumerable;var Gm=t=>{throw TypeError(t)};var yu=(t,e,i)=>e in t?z1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,q=(t,e)=>{for(var i in e||(e={}))K1.call(e,i)&&yu(t,i,e[i]);if(Qm)for(var i of Qm(e))Q1.call(e,i)&&yu(t,i,e[i]);return t},Dt=(t,e)=>q1(t,W1(e));var Nn=(t,e,i)=>yu(t,typeof e!="symbol"?e+"":e,i),xu=(t,e,i)=>e.has(t)||Gm("Cannot "+i);var Ri=(t,e,i)=>(xu(t,e,"read from private field"),i?i.call(t):e.get(t)),us=(t,e,i)=>e.has(t)?Gm("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),wa=(t,e,i,o)=>(xu(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),jm=(t,e,i)=>(xu(t,e,"access private method"),i);var kt=(t,e,i)=>new Promise((o,n)=>{var a=l=>{try{d(i.next(l))}catch(u){n(u)}},s=l=>{try{d(i.throw(l))}catch(u){n(u)}},d=l=>l.done?o(l.value):Promise.resolve(l.value).then(a,s);d((i=i.apply(t,e)).next())});var ps="[",Vs="[!",Rs="]",Kr={};var Di=Symbol(),_i=Symbol("filename"),Ym=Symbol("hmr"),Zm="http://www.w3.org/1999/xhtml",wu="http://www.w3.org/2000/svg";var Gd=!0;var Jm,ev,Xm=(ev=(Jm=globalThis.process)==null?void 0:Jm.env)==null?void 0:ev.NODE_ENV,Pe=Xm&&!Xm.toLowerCase().startsWith("prod");var Ho=Symbol("$state"),Qr=Symbol("$state metadata"),fl=Symbol("legacy props"),tv=Symbol("");var gr=Array.isArray,iv=Array.prototype.indexOf,ml=Array.from,Su=Object.keys,ao=Object.defineProperty,Bn=Object.getOwnPropertyDescriptor,jd=Object.getOwnPropertyDescriptors,Cu=Object.prototype,ov=Array.prototype,Gr=Object.getPrototypeOf;function fs(t){return typeof t=="function"}var oe=()=>{};function nv(t){return t()}function ms(t){for(var e=0;e<t.length;e++)t[e]()}var vl=[],Tu=[];function rv(){var t=vl;vl=[],ms(t)}function G1(){var t=Tu;Tu=[],ms(t)}function Zo(t){vl.length===0&&queueMicrotask(rv),vl.push(t)}function Iu(){vl.length>0&&rv(),Tu.length>0&&G1()}function Yd(t){return t===this.v}function Sa(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function sv(t,e){return t!==e}function Ca(t){return!Sa(t,this.v)}function av(){if(Pe){let t=new Error(`derived_references_self
7
7
  A derived value cannot reference itself recursively
@@ -45,7 +45,7 @@ ${l}in ${p}`).join("")}
45
45
  `)){let n=(i=r0.exec(o))!=null?i:s0.exec(o);n&&e.push({file:n[1],line:+n[2],column:+n[3]})}return e}function Qv(){var e;let t=(e=a0())==null?void 0:e.slice(4);if(!t)return null;for(let i=0;i<t.length;i++){let o=t[i],n=n0[o.file];if(!n){if(i===0)return null;continue}for(let a of n){if(a.end==null)return null;if(a.start.line<o.line&&a.end.line>o.line)return a.component}}return null}var uc=Symbol("ADD_OWNER");function Ku(t,e,i=!1,o=!1){if(t&&!i){let n=nn,a=t[Qr];if(a&&!Qu(a,n)){let s=Gu(a);e&&e[_i]!==n[_i]&&!o&&Ev(n[_i],e[_i],s[_i])}}pc(t,e,new Set)}function Du(t,e){if(e.owners!==null)for(;t;){if(t.owners===null){e.owners=null;break}for(let i of t.owners)e.owners.add(i);t=t.parent}}function pc(t,e,i){var a;let o=t==null?void 0:t[Qr];if(o)"owners"in o&&o.owners!=null&&(e?o.owners.add(e):o.owners=null);else if(t&&typeof t=="object"){if(i.has(t))return;if(i.add(t),uc in t&&t[uc])yo(()=>{t[uc](e)});else{var n=Gr(t);if(n===Object.prototype)for(let s in t)if((a=Object.getOwnPropertyDescriptor(t,s))!=null&&a.get){let d=Di;yo(()=>{let l=t[s];d!==l&&(d=l,pc(l,e,i))})}else pc(t[s],e,i);else if(n===Array.prototype)for(let s=0;s<t.length;s+=1)pc(t[s],e,i)}}}function Qu(t,e){return t.owners===null?!0:t.owners.has(e)||_i in e&&[...t.owners].some(i=>i[_i]===e[_i])||t.parent!==null&&Qu(t.parent,e)}function Gu(t){var e,i;return(i=(e=t==null?void 0:t.owners)==null?void 0:e.values().next().value)!=null?i:Gu(t.parent)}var l0=!1;function Av(t){if(l0)return;let e=Qv();if(e&&!Qu(t,e)){let i=Gu(t);i[_i]!==e[_i]?Ru(e[_i],i[_i]):Ru()}}function Ra(t){if(Pe){let e=new Error(`lifecycle_outside_component
46
46
  \`${t}(...)\` can only be used during component initialisation
47
47
  https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Mt=null;function Cl(t){Mt=t}var nn=null;function Tl(t){nn=t}function Da(t){return ju("getContext").get(t)}function Na(t,e){let i=ju("setContext");return Pe&&bt(()=>Ku(e,null,!0)),i.set(t,e),e}function kl(){return ju("getAllContexts")}function U(t,e=!1,i){var o=Mt={p:Mt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Rr&&!e&&(Mt.l={s:null,u:null,r1:[],r2:Ki(!1)}),rn(()=>{o.d=!0}),Pe&&(Mt.function=i,nn=i)}function z(t){var s,d;let e=Mt;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=Ct,o=Ot;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];lo(a.effect),bo(a.reaction),bn(a.fn)}}finally{lo(i),bo(o)}}Mt=e.p,Pe&&(nn=(d=(s=e.p)==null?void 0:s.function)!=null?d:null),e.m=!0}return t||{}}function Nr(){return!Rr||Mt!==null&&Mt.l===null}function ju(t){var e;return Mt===null&&Ra(t),(e=Mt.c)!=null?e:Mt.c=new Map(c0(Mt)||void 0)}function c0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var u0=/\r/g;function Gv(t){t=t.replace(u0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function jv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var p0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Yv(t){return p0.includes(t)}var f0=["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","defer","disablepictureinpicture","disableremoteplayback"];var m0={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Zv(t){var e;return t=t.toLowerCase(),(e=m0[t])!=null?e:t}var L6=[...f0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var v0=["touchstart","touchmove"];function Xv(t){return v0.includes(t)}var g0=["textarea","script","style","title"];function Jv(t){return g0.includes(t)}function Yu(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var eg=new Map;function tg(t,e){var i=eg.get(t);i||(i=new Set,eg.set(t,i)),i.add(e)}function Zu(t,e){if(e){let i=document.body;t.autofocus=!0,Zo(()=>{document.activeElement===i&&t.focus()})}}function El(t){var e=Ot,i=Ct;bo(null),lo(null);try{return t()}finally{bo(e),lo(i)}}var Xu=new Set,fc=new Set;function Ws(t){if(!je)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 Ju(t,e,i,o={}){function n(a){if(o.capture||Ba.call(e,a),!a.cancelBubble)return El(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Zo(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function St(t,e,i,o,n){var a={capture:o,passive:n},s=Ju(t,e,i,a);(e===document.body||e===window||e===document)&&rn(()=>{e.removeEventListener(t,s,a)})}function lt(t){for(var e=0;e<t.length;e++)Xu.add(t[e]);for(var i of fc)i(t)}function Ba(t){var E;var e=this,i=e.ownerDocument,o=t.type,n=((E=t.composedPath)==null?void 0:E.call(t))||[],a=n[0]||t.target,s=0,d=t.__root;if(d){var l=n.indexOf(d);if(l!==-1&&(e===document||e===window)){t.__root=e;return}var u=n.indexOf(e);if(u===-1)return;l<=u&&(s=l)}if(a=n[s]||t.target,a!==e){ao(t,"currentTarget",{configurable:!0,get(){return a||i}});var v=Ot,$=Ct;bo(null),lo(null);try{for(var p,_=[];a!==null;){var w=a.assignedSlot||a.parentNode||a.host||null;try{var y=a["__"+o];if(y!=null&&(!a.disabled||t.target===a))if(gr(y)){var[C,...T]=y;C.apply(a,[t,...T])}else y.call(a,t)}catch(P){p?_.push(P):p=P}if(t.cancelBubble||w===e||w===null)break;a=w}if(p){for(let P of _)queueMicrotask(()=>{throw P});throw p}}finally{t.__root=e,delete t.currentTarget,bo(v),lo($)}}}var _0;function ig(){_0=void 0}function Oa(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function xo(t,e){var i=Ct;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function L(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,a=!t.startsWith("<!>");return()=>{if(je)return xo(vt,null),vt;n===void 0&&(n=Oa(a?t:"<!>"+t),i||(n=$i(n)));var s=o||bl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=$i(s),l=s.lastChild;xo(d,l)}else xo(s,s);return s}}function ye(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,s;return()=>{if(je)return xo(vt,null),vt;if(!s){var d=Oa(a),l=$i(d);if(n)for(s=document.createDocumentFragment();$i(l);)s.appendChild($i(l));else s=$i(l)}var u=s.cloneNode(!0);if(n){var v=$i(u),$=u.lastChild;xo(v,$)}else xo(u,u);return u}}function Br(t=""){if(!je){var e=tn(t+"");return xo(e,e),e}var i=vt;return i.nodeType!==3&&(i.before(i=tn()),bi(i)),xo(i,i),i}function ze(){if(je)return xo(vt,null),vt;var t=document.createDocumentFragment(),e=document.createComment(""),i=tn();return t.append(e,i),xo(e,i),t}function b(t,e){if(je){Ct.nodes_end=vt,Fi();return}t!==null&&t.before(e)}var Pl=!0;function mc(t){Pl=t}function ge(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function es(t,e){return ng(t,e)}function tp(t,e){var s;tc(),e.intro=(s=e.intro)!=null?s:!1;let i=e.target,o=je,n=vt;try{for(var a=$i(i);a&&(a.nodeType!==8||a.data!==ps);)a=Lo(a);if(!a)throw Kr;uo(!0),bi(a),Fi();let d=ng(t,Dt(q({},e),{anchor:a}));if(vt===null||vt.nodeType!==8||vt.data!==Rs)throw Fs(),Kr;return uo(!1),d}catch(d){if(d===Kr)return e.recover===!1&&pv(),tc(),$l(i),uo(!1),es(t,e);throw d}finally{uo(o),bi(n),ig()}}var Ha=new Map;function ng(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){tc();var d=new Set,l=$=>{for(var p=0;p<$.length;p++){var _=$[p];if(!d.has(_)){d.add(_);var w=Xv(_);e.addEventListener(_,Ba,{passive:w});var y=Ha.get(_);y===void 0?(document.addEventListener(_,Ba,{passive:w}),Ha.set(_,1)):Ha.set(_,y+1)}}};l(ml(Xu)),fc.add(l);var u=void 0,v=Wv(()=>{var $=i!=null?i:e.appendChild(tn());return Qi(()=>{if(a){U({});var p=Mt;p.c=a}n&&(o.$$events=n),je&&xo($,null),Pl=s,u=t($,o)||{},Pl=!0,je&&(Ct.nodes_end=vt),a&&z()}),()=>{var w;for(var p of d){e.removeEventListener(p,Ba);var _=Ha.get(p);--_===0?(document.removeEventListener(p,Ba),Ha.delete(p)):Ha.set(p,_)}fc.delete(l),$!==i&&((w=$.parentNode)==null||w.removeChild($))}});return ep.set(u,v),u}var ep=new WeakMap;function Ks(t,e){let i=ep.get(t);return i?(ep.delete(t),i(e)):(Pe&&kv(),Promise.resolve())}function R(t,e,[i,o]=[0,0]){je&&i===0&&Fi();var n=t,a=null,s=null,d=Di,l=i>0?65536:0,u=!1;let v=(p,_=!0)=>{u=!0,$(_,p)},$=(p,_)=>{if(d===(d=p))return;let w=!1;if(je&&o!==-1){if(i===0){let C=n.data;C===ps?o=0:C===Vs?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=Pa(),bi(n),uo(!1),w=!0,o=-1)}d?(a?Jr(a):_&&(a=Qi(()=>_(n))),s&&$n(s,()=>{s=null})):(s?Jr(s):_&&(s=Qi(()=>_(n,[i+1,o]))),a&&$n(a,()=>{a=null})),w&&uo(!0)};po(()=>{u=!1,e(v),u||$(null,null)},l),je&&(n=vt)}function Qs(t,e,i){je&&Fi();var o=t,n=Di,a,s=Nr()?sv:Sa;po(()=>{s(n,n=e())&&(a&&$n(a),a=Qi(()=>i(o)))}),je&&(o=vt)}var hs=null;function np(t){hs=t}function Al(t,e){return e}function x0(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)cc(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;$l(l),l.append(i),o.clear(),gs(t,e[0].prev,e[a-1].next)}Wu(n,()=>{for(var u=0;u<a;u++){var v=e[u];d||(o.delete(v.k),gs(t,v.prev,v.next)),co(v.e,!d)}})}function Ii(t,e,i,o,n,a=null){var s=t,d={flags:e,items:new Map,first:null},l=(e&4)!==0;if(l){var u=t;s=je?bi($i(u)):u.appendChild(tn())}je&&Fi();var v=null,$=!1,p=br(()=>{var _=i();return gr(_)?_:_==null?[]:ml(_)});po(()=>{var _=r(p),w=_.length;if($&&w===0)return;$=w===0;let y=!1;if(je){var C=s.data===Vs;C!==(w===0)&&(s=Pa(),bi(s),uo(!1),y=!0)}if(je){for(var T=null,E,P=0;P<w;P++){if(vt.nodeType===8&&vt.data===Rs){s=vt,y=!0,uo(!1);break}var A=_[P],I=o(A,P);E=ag(vt,d,T,null,A,I,P,n,e,i),d.items.set(I,E),T=E}w>0&&bi(Pa())}je||w0(_,d,s,n,e,o,i),a!==null&&(w===0?v?Jr(v):v=Qi(()=>a(s)):v!==null&&$n(v,()=>{v=null})),y&&uo(!0),r(p)}),je&&(s=vt)}function w0(t,e,i,o,n,a,s){var le,Ve,Me,be;var d=(n&8)!==0,l=(n&3)!==0,u=t.length,v=e.items,$=e.first,p=$,_,w=null,y,C=[],T=[],E,P,A,I;if(d)for(I=0;I<u;I+=1)E=t[I],P=a(E,I),A=v.get(P),A!==void 0&&((le=A.a)==null||le.measure(),(y!=null?y:y=new Set).add(A));for(I=0;I<u;I+=1){if(E=t[I],P=a(E,I),A=v.get(P),A===void 0){var V=p?p.e.nodes_start:i;w=ag(V,e,w,w===null?e.first:w.next,E,P,I,o,n,s),v.set(P,w),C=[],T=[],p=w.next;continue}if(l&&S0(A,E,I,n),(A.e.f&8192)!==0&&(Jr(A.e),d&&((Ve=A.a)==null||Ve.unfix(),(y!=null?y:y=new Set).delete(A))),A!==p){if(_!==void 0&&_.has(A)){if(C.length<T.length){var H=T[0],Y;w=H.prev;var O=C[0],J=C[C.length-1];for(Y=0;Y<C.length;Y+=1)rg(C[Y],H,i);for(Y=0;Y<T.length;Y+=1)_.delete(T[Y]);gs(e,O.prev,J.next),gs(e,w,O),gs(e,J,H),p=H,w=J,I-=1,C=[],T=[]}else _.delete(A),rg(A,p,i),gs(e,A.prev,A.next),gs(e,A,w===null?e.first:w.next),gs(e,w,A),w=A;continue}for(C=[],T=[];p!==null&&p.k!==P;)(p.e.f&8192)===0&&(_!=null?_:_=new Set).add(p),T.push(p),p=p.next;if(p===null)continue;A=p}C.push(A),w=A,p=A.next}if(p!==null||_!==void 0){for(var ne=_===void 0?[]:ml(_);p!==null;)(p.e.f&8192)===0&&ne.push(p),p=p.next;var Z=ne.length;if(Z>0){var me=(n&4)!==0&&u===0?i:null;if(d){for(I=0;I<Z;I+=1)(Me=ne[I].a)==null||Me.measure();for(I=0;I<Z;I+=1)(be=ne[I].a)==null||be.fix()}x0(e,ne,me,v)}}d&&Zo(()=>{var ae;if(y!==void 0)for(A of y)(ae=A.a)==null||ae.apply()}),Ct.first=e.first&&e.first.e,Ct.last=w&&w.e}function S0(t,e,i,o){(o&1)!==0&&Ia(t.v,e),(o&2)!==0?Ia(t.i,i):t.i=i}function ag(t,e,i,o,n,a,s,d,l,u){var v=hs,$=(l&1)!==0,p=(l&16)===0,_=$?p?Zr(n):Ki(n):n,w=(l&2)===0?s:Ki(s);Pe&&$&&(_.debug=()=>{var C=typeof w=="number"?s:w.v;u()[C]});var y={i:w,v:_,k:a,a:null,e:null,prev:i,next:o};hs=y;try{return y.e=Qi(()=>d(t,_,w,u),je),y.e.prev=i&&i.e,y.e.next=o&&o.e,i===null?e.first=y:(i.next=y,i.e.next=y.e),o!==null&&(o.prev=y,o.e.prev=y.e),y}finally{hs=v}}function rg(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,a=t.e.nodes_start;a!==o;){var s=Lo(a);n.before(a),a=s}}function gs(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 C0(t,e,i){var a,s;if(!e||e===Gv(String(i!=null?i:"")))return;let o,n=(a=t.__svelte_meta)==null?void 0:a.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(s=nn)!=null&&s[_i]&&(o=`in ${nn[_i]}`),Iv(Yu(o))}function Ml(t,e,i,o,n){var a=t,s="",d;po(()=>{var l;if(s===(s=(l=e())!=null?l:"")){je&&Fi();return}d!==void 0&&(co(d),d=void 0),s!==""&&(d=Qi(()=>{if(je){for(var u=vt.data,v=Fi(),$=v;v!==null&&(v.nodeType!==8||v.data!=="");)$=v,v=Lo(v);if(v===null)throw Fs(),Kr;Pe&&!n&&C0(v.parentNode,u,s),xo(vt,$),a=bi(v);return}var p=s+"";i?p=`<svg>${p}</svg>`:o&&(p=`<math>${p}</math>`);var _=Oa(p);if((i||o)&&(_=$i(_)),xo($i(_),_.lastChild),i||o)for(;$i(_);)a.before($i(_));else a.before(_)}))})}function he(t,e,...i){var o=t,n=oe,a;po(()=>{n!==(n=e())&&(a&&(co(a),a=null),Pe&&n==null&&fv(),a=Qi(()=>n(o,...i)))},65536),je&&(o=vt)}function ki(t,e,i){je&&Fi();var o=t,n,a;po(()=>{n!==(n=e())&&(a&&($n(a),a=null),n&&(a=Qi(()=>i(o,n))))},65536),je&&(o=vt)}function Gs(t,e,i,o,n,a){var w;let s=je;je&&Fi();var d=Pe&&a&&((w=Mt)==null?void 0:w.function[_i]),l,u,v=null;je&&vt.nodeType===1&&(v=vt,Fi());var $=je?vt:t,p,_=hs;po(()=>{let y=e()||null;var C=n?n():i||y==="svg"?wu:null;if(y!==l){var T=hs;np(_),p&&(y===null?$n(p,()=>{p=null,u=null}):y===u?Jr(p):(co(p),mc(!1))),y&&y!==u&&(p=Qi(()=>{if(v=je?v:C?document.createElementNS(C,y):document.createElement(y),Pe&&a&&(v.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),xo(v,v),o){je&&Jv(y)&&v.append(document.createComment(""));var E=je?$i(v):v.appendChild(tn());je&&(E===null?uo(!1):bi(E)),o(v,E)}Ct.nodes_end=v,$.before(v)})),l=y,l&&(u=l),mc(!0),np(T)}},65536),s&&(uo(!0),bi($))}var sp;function lg(t){return sp=t.target,new rp(t)}var ts,rr,rp=class{constructor(e){us(this,ts);us(this,rr);var a,s;var i=new Map,o=(d,l)=>{var u=Zr(l);return i.set(d,u),u};let n=new Proxy(Dt(q({},e.props||{}),{$$events:{}}),{get(d,l){var u;return r((u=i.get(l))!=null?u:o(l,Reflect.get(d,l)))},has(d,l){var u;return l===fl?!0:(r((u=i.get(l))!=null?u:o(l,Reflect.get(d,l))),Reflect.has(d,l))},set(d,l,u){var v;return B((v=i.get(l))!=null?v:o(l,u),u),Reflect.set(d,l,u)}});wa(this,rr,(e.hydrate?tp:es)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(a=e.intro)!=null?a:!1,recover:e.recover})),(!((s=e==null?void 0:e.props)!=null&&s.$$host)||e.sync===!1)&&La(),wa(this,ts,n.$$events);for(let d of Object.keys(Ri(this,rr)))d==="$set"||d==="$destroy"||d==="$on"||ao(this,d,{get(){return Ri(this,rr)[d]},set(l){Ri(this,rr)[d]=l},enumerable:!0});Ri(this,rr).$set=d=>{Object.assign(n,d)},Ri(this,rr).$destroy=()=>{Ks(Ri(this,rr))}}$set(e){Ri(this,rr).$set(e)}$on(e,i){Ri(this,ts)[e]=Ri(this,ts)[e]||[];let o=(...n)=>i.call(this,...n);return Ri(this,ts)[e].push(o),()=>{Ri(this,ts)[e]=Ri(this,ts)[e].filter(n=>n!==o)}}$destroy(){Ri(this,rr).$destroy()}};ts=new WeakMap,rr=new WeakMap;function W(t,e){Zo(()=>{var n,a,s;var i=t.getRootNode(),o=i.host?i:(s=(n=i.head)!=null?n:i.ownerDocument.head)!=null?s:(a=sp)==null?void 0:a.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Pe&&tg(e.hash,d)}})}function dg(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=dg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function cg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=dg(t))&&(o&&(o+=" "),o+=e);return o}function Ll(t){return typeof t=="object"?cg(t):t!=null?t:""}var ug=[...`
48
- \r\f\xA0\v\uFEFF`];function fg(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var a=n.length,s=0;(s=o.indexOf(n,s))>=0;){var d=s+a;(s===0||ug.includes(o[s-1]))&&(d===o.length||ug.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function pg(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var a=t[n];a!=null&&a!==""&&(o+=" "+n+": "+a+i)}return o}function ap(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function mg(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,s=0,d=!1,l=[];o&&l.push(...Object.keys(o).map(ap)),n&&l.push(...Object.keys(n).map(ap));var u=0,v=-1;let y=t.length;for(var $=0;$<y;$++){var p=t[$];if(d?p==="/"&&t[$-1]==="*"&&(d=!1):a?a===p&&(a=!1):p==="/"&&t[$+1]==="*"?d=!0:p==='"'||p==="'"?a=p:p==="("?s++:p===")"&&s--,!d&&a===!1&&s===0){if(p===":"&&v===-1)v=$;else if(p===";"||$===y-1){if(v!==-1){var _=ap(t.substring(u,v).trim());if(!l.includes(_)){p!==";"&&$++;var w=t.substring(u,$).trim();i+=" "+w+";"}}u=$+1,v=-1}}}}return o&&(i+=pg(o)),n&&(i+=pg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function te(t,e,i,o,n,a){var s=t.__className;if(je||s!==i){var d=fg(i,o,a);(!je||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&n!==a)for(var l in a){var u=!!a[l];(n==null||u!==!!n[l])&&t.classList.toggle(l,u)}return a}function lp(t,e={},i,o){for(var n in i){var a=i[n];e[n]!==a&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,a,o))}}function it(t,e,i,o){var n=t.__style;if(je||n!==e){var a=mg(e,o);(!je||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(lp(t,i==null?void 0:i[0],o[0]),lp(t,i==null?void 0:i[1],o[1],"important")):lp(t,i,o));return o}var Fa=Symbol("class"),Ua=Symbol("style"),hg=Symbol("is custom element"),_g=Symbol("is html");function bg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Fe(t,e,i,o){var n=$g(t);if(je&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||M0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[tv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&yg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function ke(t,e,i,o,n=!1){var A;var a=$g(t),s=a[hg],d=!a[_g];let l=je&&s;l&&uo(!1);var u=e||{},v=t.tagName==="OPTION";for(var $ in e)$ in i||(i[$]=null);i.class?i.class=Ll(i.class):(o||i[Fa])&&(i.class=null),i[Ua]&&((A=i.style)!=null||(i.style=null));var p=yg(t);for(let I in i){let V=i[I];if(v&&I==="value"&&V==null){t.value=t.__value="",u[I]=V;continue}if(I==="class"){var _=t.namespaceURI==="http://www.w3.org/1999/xhtml";te(t,_,V,o,e==null?void 0:e[Fa],i[Fa]),u[I]=V,u[Fa]=i[Fa];continue}if(I==="style"){it(t,V,e==null?void 0:e[Ua],i[Ua]),u[I]=V,u[Ua]=i[Ua];continue}var w=u[I];if(V!==w){u[I]=V;var y=I[0]+I[1];if(y!=="$$")if(y==="on"){let H={},Y="$$"+I,O=I.slice(2);var C=Yv(O);if(jv(O)&&(O=O.slice(0,-7),H.capture=!0),!C&&w){if(V!=null)continue;t.removeEventListener(O,u[Y],H),u[Y]=null}if(V!=null)if(C)t[`__${O}`]=V,lt([O]);else{let J=function(ne){u[I].call(this,ne)};var P=J;u[Y]=Ju(O,t,J,H)}else C&&(t[`__${O}`]=void 0)}else if(I==="style")Fe(t,I,V);else if(I==="autofocus")Zu(t,!!V);else if(!s&&(I==="__value"||I==="value"&&V!=null))t.value=t.__value=V;else if(I==="selected"&&v)bg(t,V);else{var T=I;d||(T=Zv(T));var E=T==="defaultValue"||T==="defaultChecked";if(V==null&&!s&&!E)if(a[I]=null,T==="value"||T==="checked"){let H=t,Y=e===void 0;if(T==="value"){let O=H.defaultValue;H.removeAttribute(T),H.defaultValue=O,H.value=H.__value=Y?O:null}else{let O=H.defaultChecked;H.removeAttribute(T),H.defaultChecked=O,H.checked=Y?O:!1}}else t.removeAttribute(I);else E||p.includes(T)&&(s||typeof V!="string")?t[T]=V:typeof V!="function"&&Fe(t,T,V,n)}}}return l&&uo(!0),u}function $g(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[hg]:t.nodeName.includes("-"),[_g]:t.namespaceURI===Zm}}var vg=new Map;function yg(t){var e=vg.get(t.nodeName);if(e)return e;vg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=jd(o);for(var a in i)i[a].set&&e.push(a);o=Gr(o)}return e}function M0(t,e,i){var o;Pe&&(e==="srcset"&&L0(t,i)||dp((o=t.getAttribute(e))!=null?o:"",i)||Tv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function dp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function gg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function L0(t,e){var i=gg(t.srcset),o=gg(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(dp(i[s][0],n)||dp(n,i[s][0])))}var V0=Gd?()=>performance.now():()=>Date.now(),yr={tick:t=>(Gd?requestAnimationFrame:oe)(t),now:()=>V0(),tasks:new Set};function xg(){let t=yr.now();yr.tasks.forEach(e=>{e.c(t)||(yr.tasks.delete(e),e.f())}),yr.tasks.size!==0&&yr.tick(xg)}function wg(t){let e;return yr.tasks.size===0&&yr.tick(xg),{promise:new Promise(i=>{yr.tasks.add(e={c:t,f:i})}),abort(){yr.tasks.delete(e)}}}function vc(t,e){El(()=>{t.dispatchEvent(new CustomEvent(e))})}function B0(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function Sg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=B0(n.trim());e[s]=a.trim()}return e}var O0=t=>t;function up(t,e,i,o){var P;var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",u,v=e.inert,$=e.style.overflow,p,_;function w(){var V;var A=Ot,I=Ct;bo(null),lo(null);try{return u!=null?u:u=i()(e,(V=o==null?void 0:o())!=null?V:{},{direction:l})}finally{bo(A),lo(I)}}var y={is_global:d,in(){var A;if(e.inert=v,!n){_==null||_.abort(),(A=_==null?void 0:_.reset)==null||A.call(_);return}a||p==null||p.abort(),vc(e,"introstart"),p=cp(e,w(),_,1,()=>{vc(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=$})},out(A){if(!a){A==null||A(),u=void 0;return}e.inert=!0,vc(e,"outrostart"),_=cp(e,w(),p,0,()=>{vc(e,"outroend"),A==null||A()})},stop:()=>{p==null||p.abort(),_==null||_.abort()}},C=Ct;if(((P=C.transitions)!=null?P:C.transitions=[]).push(y),n&&Pl){var T=d;if(!T){for(var E=C.parent;E&&(E.f&65536)!==0;)for(;(E=E.parent)&&(E.f&16)===0;);T=!E||(E.f&32768)!==0}T&&bn(()=>{bt(()=>y.in())})}}function cp(t,e,i,o,n){var a=o===1;if(fs(e)){var s,d=!1;return Zo(()=>{if(!d){var C=e({direction:a?"in":"out"});s=cp(t,C,i,o,n)}}),{abort:()=>{d=!0,s==null||s.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:oe,deactivate:oe,reset:oe,t:()=>o};let{delay:l=0,css:u,tick:v,easing:$=O0}=e;var p=[];if(a&&i===void 0&&(v&&v(0,1),u)){var _=Sg(u(0,1));p.push(_,_)}var w=()=>1-o,y=t.animate(p,{duration:l});return y.onfinish=()=>{var O;var C=(O=i==null?void 0:i.t())!=null?O:1-o;i==null||i.abort();var T=o-C,E=e.duration*Math.abs(T),P=[];if(E>0){var A=!1;if(u)for(var I=Math.ceil(E/16.666666666666668),V=0;V<=I;V+=1){var H=C+T*$(V/I),Y=Sg(u(H,1-H));P.push(Y),A||(A=Y.overflow==="hidden")}A&&(t.style.overflow="hidden"),w=()=>{var J=y.currentTime;return C+T*$(J/E)},v&&wg(()=>{if(y.playState!=="running")return!1;var J=w();return v(J,1-J),!0})}y=t.animate(P,{duration:E,fill:"forwards"}),y.onfinish=()=>{w=()=>o,v==null||v(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=oe)},deactivate:()=>{n=oe},reset:()=>{o===0&&(v==null||v(1,0))},t:()=>w()}}var _s,za,Vl,hc,Cg,_c=class _c{constructor(e){us(this,hc);us(this,_s,new WeakMap);us(this,za);us(this,Vl);wa(this,Vl,e)}observe(e,i){var o=Ri(this,_s).get(e)||new Set;return o.add(i),Ri(this,_s).set(e,o),jm(this,hc,Cg).call(this).observe(e,Ri(this,Vl)),()=>{var n=Ri(this,_s).get(e);n.delete(i),n.size===0&&(Ri(this,_s).delete(e),Ri(this,za).unobserve(e))}}};_s=new WeakMap,za=new WeakMap,Vl=new WeakMap,hc=new WeakSet,Cg=function(){var e;return(e=Ri(this,za))!=null?e:wa(this,za,new ResizeObserver(i=>{for(var o of i){_c.entries.set(o.target,o);for(var n of Ri(this,_s).get(o.target)||[])n(o)}}))},Nn(_c,"entries",new WeakMap);var pp=_c;var U0=new pp({box:"border-box"});function Or(t,e,i){var o=U0.observe(t,()=>i(t[e]));bn(()=>(bt(()=>i(t[e])),o))}function Tg(t,e){return t===e||(t==null?void 0:t[Ho])===e}function pt(t={},e,i,o){return bn(()=>{var n,a;return yo(()=>{n=a,a=(o==null?void 0:o())||[],bt(()=>{t!==i(...a)&&(e(t,...a),n&&Tg(i(...n),t)&&e(null,...n))})}),()=>{Zo(()=>{a&&Tg(i(...a),t)&&e(null,...a)})}}),t}function xr(t=!1){let e=Mt,i=e.l.u;if(!i)return;let o=()=>ac(e.s);if(t){let n=0,a={},s=m(()=>{let d=!1,l=e.s;for(let u in l)l[u]!==a[u]&&(a[u]=l[u],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&Va(()=>{Ig(e,o),ms(i.b)}),We(()=>{let n=bt(()=>i.m.map(nv));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&We(()=>{Ig(e,o),ms(i.a)})}function Ig(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(Pe){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;gv(e)},set:o=>{i=o}})}};q0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var q0;function Ut(t){Mt===null&&Ra("onMount"),Rr&&Mt.l!==null?z0(Mt).m.push(t):We(()=>{let e=bt(t);if(typeof e=="function")return e})}function yn(t){Mt===null&&Ra("onDestroy"),Ut(()=>()=>bt(t))}function z0(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function Rl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),oe;let o=bt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var qa=[];function sr(t,e){return{subscribe:de(t,e).subscribe}}function de(t,e=oe){let i=null,o=new Set;function n(d){if(Sa(t,d)&&(t=d,i)){let l=!qa.length;for(let u of o)u[1](),qa.push(u,t);if(l){for(let u=0;u<qa.length;u+=2)qa[u][0](qa[u+1]);qa.length=0}}}function a(d){n(d(t))}function s(d,l=oe){let u=[d,l];return o.add(u),o.size===1&&(i=e(n,a)||oe),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function yi(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 a=e.length<2;return sr(i,(s,d)=>{let l=!1,u=[],v=0,$=oe,p=()=>{if(v)return;$();let w=e(o?u[0]:u,s,d);a?s(w):$=typeof w=="function"?w:oe},_=n.map((w,y)=>Rl(w,C=>{u[y]=C,v&=~(1<<y),l&&p()},()=>{v|=1<<y}));return l=!0,p(),function(){ms(_),$(),l=!1}})}function Te(t){let e;return Rl(t,i=>e=i)(),e}var bc=!1,fp=Symbol();function S(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:Zr(void 0),unsubscribe:oe};if(o.store!==t&&!(fp in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=oe;else{var n=!0;o.unsubscribe=Rl(t,s=>{n?o.source.v=s:B(o.source,s)}),n=!1}return t&&fp in i?Te(t):r(o.source)}function Be(){let t={};function e(){rn(()=>{for(var i in t)t[i].unsubscribe();ao(t,fp,{enumerable:!1,value:!0})})}return[t,e]}function mp(t){var e=bc;try{return bc=!1,[t(),bc]}finally{bc=e}}var Z0={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Pe&&vv(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},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 Ae(t,e,i){return new Proxy(Pe?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},Z0)}var X0={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(fs(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];fs(n)&&(n=n());let a=Bn(n,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(fs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Bn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Ho||e===fl)return!1;for(let i of t.props)if(fs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){fs(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function is(...t){return new Proxy({props:t},X0)}function kg(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function f(t,e,i,o){var H,Y;var n=(i&1)!==0,a=!Rr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,u;s?[u,l]=mp(()=>t[e]):u=t[e];var v=Ho in t||fl in t,$=s&&((Y=(H=Bn(t,e))==null?void 0:H.set)!=null?Y:v&&e in t&&(O=>t[e]=O))||void 0,p=o,_=!0,w=!1,y=()=>(w=!0,_&&(_=!1,d?p=bt(o):p=o),p);u===void 0&&o!==void 0&&($&&a&&mv(e),u=y(),$&&$(u));var C;if(a)C=()=>{var O=t[e];return O===void 0?y():(_=!0,w=!1,O)};else{var T=(n?m:br)(()=>t[e]);T.f|=131072,C=()=>{var O=r(T);return O!==void 0&&(p=void 0),O===void 0?p:O}}if((i&4)===0)return C;if($){var E=t.$$legacy;return function(O,J){return arguments.length>0?((!a||!J||E||l)&&$(J?C():O),O):C()}}var P=!1,A=!1,I=Zr(u),V=m(()=>{var O=C(),J=r(I);return P?(P=!1,A=!0,J):(A=!1,I.v=O)});return s&&r(V),n||(V.equals=Ca),function(O,J){if(hl!==null&&(P=A,C(),r(I)),arguments.length>0){let ne=J?r(V):a&&s?fe(O):O;if(!V.equals(ne)){if(P=!0,B(I,ne),w&&p!==void 0&&(p=ne),kg(V))return O;bt(()=>r(V))}return O}return kg(V)?V.v:r(V)}}var J0;typeof HTMLElement=="function"&&(J0=class extends HTMLElement{constructor(e,i,o){super();Nn(this,"$$ctor");Nn(this,"$$s");Nn(this,"$$c");Nn(this,"$$cn",!1);Nn(this,"$$d",{});Nn(this,"$$r",!1);Nn(this,"$$p_d",{});Nn(this,"$$l",{});Nn(this,"$$l_u",new Map);Nn(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}connectedCallback(){return kt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(a){return s=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),b(s,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=e_(this);for(let a of this.$$s)a in n&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),o.default=!0):o[a]=i(a));for(let a of this.attributes){let s=this.$$g_p(a.name);s in this.$$d||(this.$$d[s]=vp(s,a.value,this.$$p_d,"toProp"))}for(let a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=lg({component:this.$$ctor,target:this.shadowRoot||this,props:Dt(q({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=dc(()=>{yo(()=>{var a;this.$$r=!0;for(let s of Su(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=vp(s,this.$$d[s],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,d)}this.$$r=!1})});for(let a in this.$$l)for(let s of this.$$l[a]){let d=this.$$c.$on(a,s);this.$$l_u.set(s,d)}this.$$l={}}})}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=vp(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Su(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function vp(t,e,i,o){var a;let n=(a=i[t])==null?void 0:a.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?null:e;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 e_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Eg="5";var Pg,Ag,Mg;typeof window!="undefined"&&((Mg=(Ag=(Pg=window.__svelte)!=null?Pg:window.__svelte={}).v)!=null?Mg:Ag.v=new Set).add(Eg);import{clientChecker as Pm}from"@vkontakte/videoplayer-core/es2015";import"@vkontakte/videoplayer-core/es2015";import{noop as I1,safeStorage as Bx,throttleFn as Ox}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as Hx}from"@vkontakte/videoplayer-statistics/es2015";import{InterfaceLanguage as i_,fillWithDefault as o_,VideoQuality as Lg}from"@vkontakte/videoplayer-shared/es2015";var n_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:i_.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:Lg.Q_480P,highQualityLimit:Lg.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,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,slots:!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,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!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,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},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,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null}},Vg=t=>o_(t,n_),Rg=t=>Na("ui-config",t),zt=()=>Da("ui-config");var Dl="vk_player_debug_panel_opened";var Dg="videoplayer",Ng="videoplayer";var Hr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Bg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Og=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Hg=new Set(["ShiftRight","ShiftLeft"]);var Fg=["TIMELINE"],Nl=[...Fg,"GRAPH_BUTTON"],gp=[...Fg,"PLAY_BUTTON"],Bl=[...Nl,"PLAY_BUTTON"];var Fr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Fr||{}),Ys={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Ug,VERSION as r_}from"@vkontakte/videoplayer-shared/es2015";import{VERSION as s_}from"@vkontakte/videoplayer-core/es2015";import{VERSION as a_}from"@vkontakte/videoplayer-statistics/es2015";var $c="prod",Wa="1.1.63";var Zs=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var zg=Symbol("storeContext"),qg=Symbol("microStoresContext"),Wg=(t,e)=>{Na(zg,t),Na(qg,e),$c==="dev"&&(window.app={store:t,microStores:e})},Ie=()=>{let t=Da(zg);return Ug(t,"Store context is empty!"),t},fo=()=>{let t=Da(qg);return Ug(t,"MicroStores context is empty!"),t},Jt=(t,e)=>xc(t,t.getValue(),e),xc=(t,e,i)=>sr(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),Kg=(t,e,i)=>{var T,E,P,A,I,V;let o=t.info,{width:n,height:a}=Te(i.ui.playerSize),s=(E=(T=o.throughputEstimation$.getValue())==null?void 0:T.toFixed(0))!=null?E:0,d=(A=(P=o.rttEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?A:0,l=o.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Wa} (core: ${s_}, stat: ${a_}, shared: ${r_})`,v=Te(i.state.errorLog$),$=v.length?`
48
+ \r\f\xA0\v\uFEFF`];function fg(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var a=n.length,s=0;(s=o.indexOf(n,s))>=0;){var d=s+a;(s===0||ug.includes(o[s-1]))&&(d===o.length||ug.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function pg(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var a=t[n];a!=null&&a!==""&&(o+=" "+n+": "+a+i)}return o}function ap(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function mg(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,s=0,d=!1,l=[];o&&l.push(...Object.keys(o).map(ap)),n&&l.push(...Object.keys(n).map(ap));var u=0,v=-1;let y=t.length;for(var $=0;$<y;$++){var p=t[$];if(d?p==="/"&&t[$-1]==="*"&&(d=!1):a?a===p&&(a=!1):p==="/"&&t[$+1]==="*"?d=!0:p==='"'||p==="'"?a=p:p==="("?s++:p===")"&&s--,!d&&a===!1&&s===0){if(p===":"&&v===-1)v=$;else if(p===";"||$===y-1){if(v!==-1){var _=ap(t.substring(u,v).trim());if(!l.includes(_)){p!==";"&&$++;var w=t.substring(u,$).trim();i+=" "+w+";"}}u=$+1,v=-1}}}}return o&&(i+=pg(o)),n&&(i+=pg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function te(t,e,i,o,n,a){var s=t.__className;if(je||s!==i){var d=fg(i,o,a);(!je||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&n!==a)for(var l in a){var u=!!a[l];(n==null||u!==!!n[l])&&t.classList.toggle(l,u)}return a}function lp(t,e={},i,o){for(var n in i){var a=i[n];e[n]!==a&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,a,o))}}function it(t,e,i,o){var n=t.__style;if(je||n!==e){var a=mg(e,o);(!je||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(lp(t,i==null?void 0:i[0],o[0]),lp(t,i==null?void 0:i[1],o[1],"important")):lp(t,i,o));return o}var Fa=Symbol("class"),Ua=Symbol("style"),hg=Symbol("is custom element"),_g=Symbol("is html");function bg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Fe(t,e,i,o){var n=$g(t);if(je&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||M0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[tv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&yg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function ke(t,e,i,o,n=!1){var A;var a=$g(t),s=a[hg],d=!a[_g];let l=je&&s;l&&uo(!1);var u=e||{},v=t.tagName==="OPTION";for(var $ in e)$ in i||(i[$]=null);i.class?i.class=Ll(i.class):(o||i[Fa])&&(i.class=null),i[Ua]&&((A=i.style)!=null||(i.style=null));var p=yg(t);for(let I in i){let V=i[I];if(v&&I==="value"&&V==null){t.value=t.__value="",u[I]=V;continue}if(I==="class"){var _=t.namespaceURI==="http://www.w3.org/1999/xhtml";te(t,_,V,o,e==null?void 0:e[Fa],i[Fa]),u[I]=V,u[Fa]=i[Fa];continue}if(I==="style"){it(t,V,e==null?void 0:e[Ua],i[Ua]),u[I]=V,u[Ua]=i[Ua];continue}var w=u[I];if(V!==w){u[I]=V;var y=I[0]+I[1];if(y!=="$$")if(y==="on"){let H={},Y="$$"+I,O=I.slice(2);var C=Yv(O);if(jv(O)&&(O=O.slice(0,-7),H.capture=!0),!C&&w){if(V!=null)continue;t.removeEventListener(O,u[Y],H),u[Y]=null}if(V!=null)if(C)t[`__${O}`]=V,lt([O]);else{let J=function(ne){u[I].call(this,ne)};var P=J;u[Y]=Ju(O,t,J,H)}else C&&(t[`__${O}`]=void 0)}else if(I==="style")Fe(t,I,V);else if(I==="autofocus")Zu(t,!!V);else if(!s&&(I==="__value"||I==="value"&&V!=null))t.value=t.__value=V;else if(I==="selected"&&v)bg(t,V);else{var T=I;d||(T=Zv(T));var E=T==="defaultValue"||T==="defaultChecked";if(V==null&&!s&&!E)if(a[I]=null,T==="value"||T==="checked"){let H=t,Y=e===void 0;if(T==="value"){let O=H.defaultValue;H.removeAttribute(T),H.defaultValue=O,H.value=H.__value=Y?O:null}else{let O=H.defaultChecked;H.removeAttribute(T),H.defaultChecked=O,H.checked=Y?O:!1}}else t.removeAttribute(I);else E||p.includes(T)&&(s||typeof V!="string")?t[T]=V:typeof V!="function"&&Fe(t,T,V,n)}}}return l&&uo(!0),u}function $g(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[hg]:t.nodeName.includes("-"),[_g]:t.namespaceURI===Zm}}var vg=new Map;function yg(t){var e=vg.get(t.nodeName);if(e)return e;vg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=jd(o);for(var a in i)i[a].set&&e.push(a);o=Gr(o)}return e}function M0(t,e,i){var o;Pe&&(e==="srcset"&&L0(t,i)||dp((o=t.getAttribute(e))!=null?o:"",i)||Tv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function dp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function gg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function L0(t,e){var i=gg(t.srcset),o=gg(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(dp(i[s][0],n)||dp(n,i[s][0])))}var V0=Gd?()=>performance.now():()=>Date.now(),yr={tick:t=>(Gd?requestAnimationFrame:oe)(t),now:()=>V0(),tasks:new Set};function xg(){let t=yr.now();yr.tasks.forEach(e=>{e.c(t)||(yr.tasks.delete(e),e.f())}),yr.tasks.size!==0&&yr.tick(xg)}function wg(t){let e;return yr.tasks.size===0&&yr.tick(xg),{promise:new Promise(i=>{yr.tasks.add(e={c:t,f:i})}),abort(){yr.tasks.delete(e)}}}function vc(t,e){El(()=>{t.dispatchEvent(new CustomEvent(e))})}function B0(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function Sg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=B0(n.trim());e[s]=a.trim()}return e}var O0=t=>t;function up(t,e,i,o){var P;var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",u,v=e.inert,$=e.style.overflow,p,_;function w(){var V;var A=Ot,I=Ct;bo(null),lo(null);try{return u!=null?u:u=i()(e,(V=o==null?void 0:o())!=null?V:{},{direction:l})}finally{bo(A),lo(I)}}var y={is_global:d,in(){var A;if(e.inert=v,!n){_==null||_.abort(),(A=_==null?void 0:_.reset)==null||A.call(_);return}a||p==null||p.abort(),vc(e,"introstart"),p=cp(e,w(),_,1,()=>{vc(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=$})},out(A){if(!a){A==null||A(),u=void 0;return}e.inert=!0,vc(e,"outrostart"),_=cp(e,w(),p,0,()=>{vc(e,"outroend"),A==null||A()})},stop:()=>{p==null||p.abort(),_==null||_.abort()}},C=Ct;if(((P=C.transitions)!=null?P:C.transitions=[]).push(y),n&&Pl){var T=d;if(!T){for(var E=C.parent;E&&(E.f&65536)!==0;)for(;(E=E.parent)&&(E.f&16)===0;);T=!E||(E.f&32768)!==0}T&&bn(()=>{bt(()=>y.in())})}}function cp(t,e,i,o,n){var a=o===1;if(fs(e)){var s,d=!1;return Zo(()=>{if(!d){var C=e({direction:a?"in":"out"});s=cp(t,C,i,o,n)}}),{abort:()=>{d=!0,s==null||s.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:oe,deactivate:oe,reset:oe,t:()=>o};let{delay:l=0,css:u,tick:v,easing:$=O0}=e;var p=[];if(a&&i===void 0&&(v&&v(0,1),u)){var _=Sg(u(0,1));p.push(_,_)}var w=()=>1-o,y=t.animate(p,{duration:l});return y.onfinish=()=>{var O;var C=(O=i==null?void 0:i.t())!=null?O:1-o;i==null||i.abort();var T=o-C,E=e.duration*Math.abs(T),P=[];if(E>0){var A=!1;if(u)for(var I=Math.ceil(E/16.666666666666668),V=0;V<=I;V+=1){var H=C+T*$(V/I),Y=Sg(u(H,1-H));P.push(Y),A||(A=Y.overflow==="hidden")}A&&(t.style.overflow="hidden"),w=()=>{var J=y.currentTime;return C+T*$(J/E)},v&&wg(()=>{if(y.playState!=="running")return!1;var J=w();return v(J,1-J),!0})}y=t.animate(P,{duration:E,fill:"forwards"}),y.onfinish=()=>{w=()=>o,v==null||v(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=oe)},deactivate:()=>{n=oe},reset:()=>{o===0&&(v==null||v(1,0))},t:()=>w()}}var _s,za,Vl,hc,Cg,_c=class _c{constructor(e){us(this,hc);us(this,_s,new WeakMap);us(this,za);us(this,Vl);wa(this,Vl,e)}observe(e,i){var o=Ri(this,_s).get(e)||new Set;return o.add(i),Ri(this,_s).set(e,o),jm(this,hc,Cg).call(this).observe(e,Ri(this,Vl)),()=>{var n=Ri(this,_s).get(e);n.delete(i),n.size===0&&(Ri(this,_s).delete(e),Ri(this,za).unobserve(e))}}};_s=new WeakMap,za=new WeakMap,Vl=new WeakMap,hc=new WeakSet,Cg=function(){var e;return(e=Ri(this,za))!=null?e:wa(this,za,new ResizeObserver(i=>{for(var o of i){_c.entries.set(o.target,o);for(var n of Ri(this,_s).get(o.target)||[])n(o)}}))},Nn(_c,"entries",new WeakMap);var pp=_c;var U0=new pp({box:"border-box"});function Or(t,e,i){var o=U0.observe(t,()=>i(t[e]));bn(()=>(bt(()=>i(t[e])),o))}function Tg(t,e){return t===e||(t==null?void 0:t[Ho])===e}function pt(t={},e,i,o){return bn(()=>{var n,a;return yo(()=>{n=a,a=(o==null?void 0:o())||[],bt(()=>{t!==i(...a)&&(e(t,...a),n&&Tg(i(...n),t)&&e(null,...n))})}),()=>{Zo(()=>{a&&Tg(i(...a),t)&&e(null,...a)})}}),t}function xr(t=!1){let e=Mt,i=e.l.u;if(!i)return;let o=()=>ac(e.s);if(t){let n=0,a={},s=m(()=>{let d=!1,l=e.s;for(let u in l)l[u]!==a[u]&&(a[u]=l[u],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&Va(()=>{Ig(e,o),ms(i.b)}),We(()=>{let n=bt(()=>i.m.map(nv));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&We(()=>{Ig(e,o),ms(i.a)})}function Ig(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(Pe){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;gv(e)},set:o=>{i=o}})}};q0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var q0;function Ut(t){Mt===null&&Ra("onMount"),Rr&&Mt.l!==null?z0(Mt).m.push(t):We(()=>{let e=bt(t);if(typeof e=="function")return e})}function yn(t){Mt===null&&Ra("onDestroy"),Ut(()=>()=>bt(t))}function z0(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function Rl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),oe;let o=bt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var qa=[];function sr(t,e){return{subscribe:de(t,e).subscribe}}function de(t,e=oe){let i=null,o=new Set;function n(d){if(Sa(t,d)&&(t=d,i)){let l=!qa.length;for(let u of o)u[1](),qa.push(u,t);if(l){for(let u=0;u<qa.length;u+=2)qa[u][0](qa[u+1]);qa.length=0}}}function a(d){n(d(t))}function s(d,l=oe){let u=[d,l];return o.add(u),o.size===1&&(i=e(n,a)||oe),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function yi(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 a=e.length<2;return sr(i,(s,d)=>{let l=!1,u=[],v=0,$=oe,p=()=>{if(v)return;$();let w=e(o?u[0]:u,s,d);a?s(w):$=typeof w=="function"?w:oe},_=n.map((w,y)=>Rl(w,C=>{u[y]=C,v&=~(1<<y),l&&p()},()=>{v|=1<<y}));return l=!0,p(),function(){ms(_),$(),l=!1}})}function Te(t){let e;return Rl(t,i=>e=i)(),e}var bc=!1,fp=Symbol();function S(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:Zr(void 0),unsubscribe:oe};if(o.store!==t&&!(fp in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=oe;else{var n=!0;o.unsubscribe=Rl(t,s=>{n?o.source.v=s:B(o.source,s)}),n=!1}return t&&fp in i?Te(t):r(o.source)}function Be(){let t={};function e(){rn(()=>{for(var i in t)t[i].unsubscribe();ao(t,fp,{enumerable:!1,value:!0})})}return[t,e]}function mp(t){var e=bc;try{return bc=!1,[t(),bc]}finally{bc=e}}var Z0={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Pe&&vv(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},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 Ae(t,e,i){return new Proxy(Pe?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},Z0)}var X0={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(fs(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];fs(n)&&(n=n());let a=Bn(n,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(fs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Bn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Ho||e===fl)return!1;for(let i of t.props)if(fs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){fs(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function is(...t){return new Proxy({props:t},X0)}function kg(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function f(t,e,i,o){var H,Y;var n=(i&1)!==0,a=!Rr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,u;s?[u,l]=mp(()=>t[e]):u=t[e];var v=Ho in t||fl in t,$=s&&((Y=(H=Bn(t,e))==null?void 0:H.set)!=null?Y:v&&e in t&&(O=>t[e]=O))||void 0,p=o,_=!0,w=!1,y=()=>(w=!0,_&&(_=!1,d?p=bt(o):p=o),p);u===void 0&&o!==void 0&&($&&a&&mv(e),u=y(),$&&$(u));var C;if(a)C=()=>{var O=t[e];return O===void 0?y():(_=!0,w=!1,O)};else{var T=(n?m:br)(()=>t[e]);T.f|=131072,C=()=>{var O=r(T);return O!==void 0&&(p=void 0),O===void 0?p:O}}if((i&4)===0)return C;if($){var E=t.$$legacy;return function(O,J){return arguments.length>0?((!a||!J||E||l)&&$(J?C():O),O):C()}}var P=!1,A=!1,I=Zr(u),V=m(()=>{var O=C(),J=r(I);return P?(P=!1,A=!0,J):(A=!1,I.v=O)});return s&&r(V),n||(V.equals=Ca),function(O,J){if(hl!==null&&(P=A,C(),r(I)),arguments.length>0){let ne=J?r(V):a&&s?fe(O):O;if(!V.equals(ne)){if(P=!0,B(I,ne),w&&p!==void 0&&(p=ne),kg(V))return O;bt(()=>r(V))}return O}return kg(V)?V.v:r(V)}}var J0;typeof HTMLElement=="function"&&(J0=class extends HTMLElement{constructor(e,i,o){super();Nn(this,"$$ctor");Nn(this,"$$s");Nn(this,"$$c");Nn(this,"$$cn",!1);Nn(this,"$$d",{});Nn(this,"$$r",!1);Nn(this,"$$p_d",{});Nn(this,"$$l",{});Nn(this,"$$l_u",new Map);Nn(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}connectedCallback(){return kt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(a){return s=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),b(s,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=e_(this);for(let a of this.$$s)a in n&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),o.default=!0):o[a]=i(a));for(let a of this.attributes){let s=this.$$g_p(a.name);s in this.$$d||(this.$$d[s]=vp(s,a.value,this.$$p_d,"toProp"))}for(let a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=lg({component:this.$$ctor,target:this.shadowRoot||this,props:Dt(q({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=dc(()=>{yo(()=>{var a;this.$$r=!0;for(let s of Su(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=vp(s,this.$$d[s],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,d)}this.$$r=!1})});for(let a in this.$$l)for(let s of this.$$l[a]){let d=this.$$c.$on(a,s);this.$$l_u.set(s,d)}this.$$l={}}})}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=vp(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Su(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function vp(t,e,i,o){var a;let n=(a=i[t])==null?void 0:a.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?null:e;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 e_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Eg="5";var Pg,Ag,Mg;typeof window!="undefined"&&((Mg=(Ag=(Pg=window.__svelte)!=null?Pg:window.__svelte={}).v)!=null?Mg:Ag.v=new Set).add(Eg);import{clientChecker as Pm}from"@vkontakte/videoplayer-core/es2015";import"@vkontakte/videoplayer-core/es2015";import{noop as I1,safeStorage as Bx,throttleFn as Ox}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as Hx}from"@vkontakte/videoplayer-statistics/es2015";import{InterfaceLanguage as i_,fillWithDefault as o_,VideoQuality as Lg}from"@vkontakte/videoplayer-shared/es2015";var n_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:i_.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:Lg.Q_480P,highQualityLimit:Lg.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,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,slots:!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,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!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,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},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,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null}},Vg=t=>o_(t,n_),Rg=t=>Na("ui-config",t),zt=()=>Da("ui-config");var Dl="vk_player_debug_panel_opened";var Dg="videoplayer",Ng="videoplayer";var Hr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Bg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Og=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Hg=new Set(["ShiftRight","ShiftLeft"]);var Fg=["TIMELINE"],Nl=[...Fg,"GRAPH_BUTTON"],gp=[...Fg,"PLAY_BUTTON"],Bl=[...Nl,"PLAY_BUTTON"];var Fr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Fr||{}),Ys={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Ug,VERSION as r_}from"@vkontakte/videoplayer-shared/es2015";import{VERSION as s_}from"@vkontakte/videoplayer-core/es2015";import{VERSION as a_}from"@vkontakte/videoplayer-statistics/es2015";var $c="prod",Wa="1.1.64-dev.3efb4d41.0";var Zs=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var zg=Symbol("storeContext"),qg=Symbol("microStoresContext"),Wg=(t,e)=>{Na(zg,t),Na(qg,e),$c==="dev"&&(window.app={store:t,microStores:e})},Ie=()=>{let t=Da(zg);return Ug(t,"Store context is empty!"),t},fo=()=>{let t=Da(qg);return Ug(t,"MicroStores context is empty!"),t},Jt=(t,e)=>xc(t,t.getValue(),e),xc=(t,e,i)=>sr(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),Kg=(t,e,i)=>{var T,E,P,A,I,V;let o=t.info,{width:n,height:a}=Te(i.ui.playerSize),s=(E=(T=o.throughputEstimation$.getValue())==null?void 0:T.toFixed(0))!=null?E:0,d=(A=(P=o.rttEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?A:0,l=o.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Wa} (core: ${s_}, stat: ${a_}, shared: ${r_})`,v=Te(i.state.errorLog$),$=v.length?`
49
49
  `+v.map((H,Y)=>{var Z;let O=`${Y}) Type: ${H.id}
50
50
  `,J=`Message: ${H.message} (${H.thrown})
51
51
  `,ne=`Trace: ${(Z=H.thrown)==null?void 0:Z.stack}
package/es2018.cjs.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.63
3
- * Thu, 05 Jun 2025 08:19:11 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-63/doc/
2
+ * @vkontakte/videoplayer v1.1.64-dev.3efb4d41.0
3
+ * Thu, 05 Jun 2025 11:40:28 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-64/doc/
5
5
  */
6
6
  "use strict";var s0=Object.create;var Il=Object.defineProperty;var a0=Object.getOwnPropertyDescriptor;var l0=Object.getOwnPropertyNames;var d0=Object.getPrototypeOf,c0=Object.prototype.hasOwnProperty;var lv=t=>{throw TypeError(t)};var u0=(t,e,i)=>e in t?Il(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var p0=(t,e)=>{for(var i in e)Il(t,i,{get:e[i],enumerable:!0})},dv=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of l0(e))!c0.call(t,n)&&n!==i&&Il(t,n,{get:()=>e[n],enumerable:!(o=a0(e,n))||o.enumerable});return t};var cv=(t,e,i)=>(i=t!=null?s0(d0(t)):{},dv(e||!t||!t.__esModule?Il(i,"default",{value:t,enumerable:!0}):i,t)),f0=t=>dv(Il({},"__esModule",{value:!0}),t);var Dn=(t,e,i)=>u0(t,typeof e!="symbol"?e+"":e,i),Nu=(t,e,i)=>e.has(t)||lv("Cannot "+i);var Li=(t,e,i)=>(Nu(t,e,"read from private field"),i?i.call(t):e.get(t)),ds=(t,e,i)=>e.has(t)?lv("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Ea=(t,e,i,o)=>(Nu(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),uv=(t,e,i)=>(Nu(t,e,"access private method"),i);var xx={};p0(xx,{ControlButtonType:()=>Cd,GridTypes:()=>yr,InterfaceLanguage:()=>yl.InterfaceLanguage,MenuItemType:()=>rl,PlayerPhase:()=>Hr,VERSION:()=>Zs,VKNumericLanguage:()=>yl.VKNumericLanguage,VideoFormat:()=>Mu.VideoFormat,VideoQuality:()=>Mu.VideoQuality,loadVKLangPack:()=>yl.loadVKLangPack,registerPlayerWebComponent:()=>yx});module.exports=f0(xx);var cs="[",Ls="[!",Vs="]",Wr={};var Vi=Symbol(),hi=Symbol("filename"),pv=Symbol("hmr"),fv="http://www.w3.org/1999/xhtml",Du="http://www.w3.org/2000/svg";var lc=!0;var vv,gv,mv=(gv=(vv=globalThis.process)==null?void 0:vv.env)==null?void 0:gv.NODE_ENV,Ee=mv&&!mv.toLowerCase().startsWith("prod");var Fo=Symbol("$state"),Kr=Symbol("$state metadata"),kl=Symbol("legacy props"),hv=Symbol("");var mr=Array.isArray,_v=Array.prototype.indexOf,El=Array.from,Bu=Object.keys,so=Object.defineProperty,Bn=Object.getOwnPropertyDescriptor,dc=Object.getOwnPropertyDescriptors,Ou=Object.prototype,bv=Array.prototype,Qr=Object.getPrototypeOf;function us(t){return typeof t=="function"}var ie=()=>{};function $v(t){return t()}function ps(t){for(var e=0;e<t.length;e++)t[e]()}var Pl=[],Hu=[];function yv(){var t=Pl;Pl=[],ps(t)}function m0(){var t=Hu;Hu=[],ps(t)}function Zo(t){Pl.length===0&&queueMicrotask(yv),Pl.push(t)}function Fu(){Pl.length>0&&yv(),Hu.length>0&&m0()}function cc(t){return t===this.v}function Pa(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function xv(t,e){return t!==e}function Aa(t){return!Pa(t,this.v)}function wv(){if(Ee){let t=new Error(`derived_references_self
7
7
  A derived value cannot reference itself recursively
@@ -45,7 +45,7 @@ ${l}in ${u}`).join("")}
45
45
  `)){let n=(i=C0.exec(o))!=null?i:T0.exec(o);n&&e.push({file:n[1],line:+n[2],column:+n[3]})}return e}function dg(){var e;let t=(e=I0())==null?void 0:e.slice(4);if(!t)return null;for(let i=0;i<t.length;i++){let o=t[i],n=S0[o.file];if(!n){if(i===0)return null;continue}for(let a of n){if(a.end==null)return null;if(a.start.line<o.line&&a.end.line>o.line)return a.component}}return null}var Cc=Symbol("ADD_OWNER");function sp(t,e,i=!1,o=!1){if(t&&!i){let n=nn,a=t[Kr];if(a&&!ap(a,n)){let s=lp(a);e&&e[hi]!==n[hi]&&!o&&Wv(n[hi],e[hi],s[hi])}}Tc(t,e,new Set)}function Yu(t,e){if(e.owners!==null)for(;t;){if(t.owners===null){e.owners=null;break}for(let i of t.owners)e.owners.add(i);t=t.parent}}function Tc(t,e,i){var a;let o=t==null?void 0:t[Kr];if(o)"owners"in o&&o.owners!=null&&(e?o.owners.add(e):o.owners=null);else if(t&&typeof t=="object"){if(i.has(t))return;if(i.add(t),Cc in t&&t[Cc])xo(()=>{t[Cc](e)});else{var n=Qr(t);if(n===Object.prototype)for(let s in t)if((a=Object.getOwnPropertyDescriptor(t,s))!=null&&a.get){let d=Vi;xo(()=>{let l=t[s];d!==l&&(d=l,Tc(l,e,i))})}else Tc(t[s],e,i);else if(n===Array.prototype)for(let s=0;s<t.length;s+=1)Tc(t[s],e,i)}}}function ap(t,e){return t.owners===null?!0:t.owners.has(e)||hi in e&&[...t.owners].some(i=>i[hi]===e[hi])||t.parent!==null&&ap(t.parent,e)}function lp(t){var e,i;return(i=(e=t==null?void 0:t.owners)==null?void 0:e.values().next().value)!=null?i:lp(t.parent)}var k0=!1;function Qv(t){if(k0)return;let e=dg();if(e&&!ap(t,e)){let i=lp(t);i[hi]!==e[hi]?ju(e[hi],i[hi]):ju()}}function Fa(t){if(Ee){let e=new Error(`lifecycle_outside_component
46
46
  \`${t}(...)\` can only be used during component initialisation
47
47
  https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Mt=null;function Hl(t){Mt=t}var nn=null;function Fl(t){nn=t}function Ua(t){return dp("getContext").get(t)}function za(t,e){let i=dp("setContext");return Ee&&$t(()=>sp(e,null,!0)),i.set(t,e),e}function zl(){return dp("getAllContexts")}function U(t,e=!1,i){var o=Mt={p:Mt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Vr&&!e&&(Mt.l={s:null,u:null,r1:[],r2:Wi(!1)}),rn(()=>{o.d=!0}),Ee&&(Mt.function=i,nn=i)}function z(t){var s,d;let e=Mt;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=Tt,o=Ot;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];ao(a.effect),$o(a.reaction),$n(a.fn)}}finally{ao(i),$o(o)}}Mt=e.p,Ee&&(nn=(d=(s=e.p)==null?void 0:s.function)!=null?d:null),e.m=!0}return t||{}}function Nr(){return!Vr||Mt!==null&&Mt.l===null}function dp(t){var e;return Mt===null&&Fa(t),(e=Mt.c)!=null?e:Mt.c=new Map(P0(Mt)||void 0)}function P0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var A0=/\r/g;function cg(t){t=t.replace(A0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function ug(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var M0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function pg(t){return M0.includes(t)}var L0=["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","defer","disablepictureinpicture","disableremoteplayback"];var V0={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function fg(t){var e;return t=t.toLowerCase(),(e=V0[t])!=null?e:t}var xw=[...L0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var R0=["touchstart","touchmove"];function mg(t){return R0.includes(t)}var N0=["textarea","script","style","title"];function vg(t){return N0.includes(t)}function cp(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var gg=new Map;function hg(t,e){var i=gg.get(t);i||(i=new Set,gg.set(t,i)),i.add(e)}function up(t,e){if(e){let i=document.body;t.autofocus=!0,Zo(()=>{document.activeElement===i&&t.focus()})}}function ql(t){var e=Ot,i=Tt;$o(null),ao(null);try{return t()}finally{$o(e),ao(i)}}var pp=new Set,Ic=new Set;function qs(t){if(!je)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 fp(t,e,i,o={}){function n(a){if(o.capture||qa.call(e,a),!a.cancelBubble)return ql(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Zo(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Ct(t,e,i,o,n){var a={capture:o,passive:n},s=fp(t,e,i,a);(e===document.body||e===window||e===document)&&rn(()=>{e.removeEventListener(t,s,a)})}function lt(t){for(var e=0;e<t.length;e++)pp.add(t[e]);for(var i of Ic)i(t)}function qa(t){var E;var e=this,i=e.ownerDocument,o=t.type,n=((E=t.composedPath)==null?void 0:E.call(t))||[],a=n[0]||t.target,s=0,d=t.__root;if(d){var l=n.indexOf(d);if(l!==-1&&(e===document||e===window)){t.__root=e;return}var p=n.indexOf(e);if(p===-1)return;l<=p&&(s=l)}if(a=n[s]||t.target,a!==e){so(t,"currentTarget",{configurable:!0,get(){return a||i}});var m=Ot,$=Tt;$o(null),ao(null);try{for(var u,_=[];a!==null;){var w=a.assignedSlot||a.parentNode||a.host||null;try{var y=a["__"+o];if(y!=null&&(!a.disabled||t.target===a))if(mr(y)){var[C,...T]=y;C.apply(a,[t,...T])}else y.call(a,t)}catch(P){u?_.push(P):u=P}if(t.cancelBubble||w===e||w===null)break;a=w}if(u){for(let P of _)queueMicrotask(()=>{throw P});throw u}}finally{t.__root=e,delete t.currentTarget,$o(m),ao($)}}}var B0;function _g(){B0=void 0}function Wa(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function wo(t,e){var i=Tt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function L(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,a=!t.startsWith("<!>");return()=>{if(je)return wo(vt,null),vt;n===void 0&&(n=Wa(a?t:"<!>"+t),i||(n=bi(n)));var s=o||Vl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=bi(s),l=s.lastChild;wo(d,l)}else wo(s,s);return s}}function $e(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,s;return()=>{if(je)return wo(vt,null),vt;if(!s){var d=Wa(a),l=bi(d);if(n)for(s=document.createDocumentFragment();bi(l);)s.appendChild(bi(l));else s=bi(l)}var p=s.cloneNode(!0);if(n){var m=bi(p),$=p.lastChild;wo(m,$)}else wo(p,p);return p}}function Dr(t=""){if(!je){var e=tn(t+"");return wo(e,e),e}var i=vt;return i.nodeType!==3&&(i.before(i=tn()),_i(i)),wo(i,i),i}function Ue(){if(je)return wo(vt,null),vt;var t=document.createDocumentFragment(),e=document.createComment(""),i=tn();return t.append(e,i),wo(e,i),t}function b(t,e){if(je){Tt.nodes_end=vt,Fi();return}t!==null&&t.before(e)}var Wl=!0;function kc(t){Wl=t}function ve(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function Jr(t,e){return $g(t,e)}function vp(t,e){var s;vc(),e.intro=(s=e.intro)!=null?s:!1;let i=e.target,o=je,n=vt;try{for(var a=bi(i);a&&(a.nodeType!==8||a.data!==cs);)a=Lo(a);if(!a)throw Wr;co(!0),_i(a),Fi();let d=$g(t,{...e,anchor:a});if(vt===null||vt.nodeType!==8||vt.data!==Vs)throw Hs(),Wr;return co(!1),d}catch(d){if(d===Wr)return e.recover===!1&&kv(),vc(),Rl(i),co(!1),Jr(t,e);throw d}finally{co(o),_i(n),_g()}}var Ka=new Map;function $g(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){vc();var d=new Set,l=$=>{for(var u=0;u<$.length;u++){var _=$[u];if(!d.has(_)){d.add(_);var w=mg(_);e.addEventListener(_,qa,{passive:w});var y=Ka.get(_);y===void 0?(document.addEventListener(_,qa,{passive:w}),Ka.set(_,1)):Ka.set(_,y+1)}}};l(El(pp)),Ic.add(l);var p=void 0,m=ag(()=>{var $=i!=null?i:e.appendChild(tn());return Ki(()=>{if(a){U({});var u=Mt;u.c=a}n&&(o.$$events=n),je&&wo($,null),Wl=s,p=t($,o)||{},Wl=!0,je&&(Tt.nodes_end=vt),a&&z()}),()=>{var w;for(var u of d){e.removeEventListener(u,qa);var _=Ka.get(u);--_===0?(document.removeEventListener(u,qa),Ka.delete(u)):Ka.set(u,_)}Ic.delete(l),$!==i&&((w=$.parentNode)==null||w.removeChild($))}});return mp.set(p,m),p}var mp=new WeakMap;function Ws(t,e){let i=mp.get(t);return i?(mp.delete(t),i(e)):(Ee&&qv(),Promise.resolve())}function R(t,e,[i,o]=[0,0]){je&&i===0&&Fi();var n=t,a=null,s=null,d=Vi,l=i>0?65536:0,p=!1;let m=(u,_=!0)=>{p=!0,$(_,u)},$=(u,_)=>{if(d===(d=u))return;let w=!1;if(je&&o!==-1){if(i===0){let C=n.data;C===cs?o=0:C===Ls?o=1/0:(o=parseInt(C.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=Na(),_i(n),co(!1),w=!0,o=-1)}d?(a?Xr(a):_&&(a=Ki(()=>_(n))),s&&yn(s,()=>{s=null})):(s?Xr(s):_&&(s=Ki(()=>_(n,[i+1,o]))),a&&yn(a,()=>{a=null})),w&&co(!0)};uo(()=>{p=!1,e(m),p||$(null,null)},l),je&&(n=vt)}function Ks(t,e,i){je&&Fi();var o=t,n=Vi,a,s=Nr()?xv:Pa;uo(()=>{s(n,n=e())&&(a&&yn(a),a=Ki(()=>i(o)))}),je&&(o=vt)}var vs=null;function _p(t){vs=t}function Kl(t,e){return e}function U0(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)Sc(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;Rl(l),l.append(i),o.clear(),ms(t,e[0].prev,e[a-1].next)}rp(n,()=>{for(var p=0;p<a;p++){var m=e[p];d||(o.delete(m.k),ms(t,m.prev,m.next)),lo(m.e,!d)}})}function Ci(t,e,i,o,n,a=null){var s=t,d={flags:e,items:new Map,first:null},l=(e&4)!==0;if(l){var p=t;s=je?_i(bi(p)):p.appendChild(tn())}je&&Fi();var m=null,$=!1,u=hr(()=>{var _=i();return mr(_)?_:_==null?[]:El(_)});uo(()=>{var _=r(u),w=_.length;if($&&w===0)return;$=w===0;let y=!1;if(je){var C=s.data===Ls;C!==(w===0)&&(s=Na(),_i(s),co(!1),y=!0)}if(je){for(var T=null,E,P=0;P<w;P++){if(vt.nodeType===8&&vt.data===Vs){s=vt,y=!0,co(!1);break}var A=_[P],I=o(A,P);E=wg(vt,d,T,null,A,I,P,n,e,i),d.items.set(I,E),T=E}w>0&&_i(Na())}je||z0(_,d,s,n,e,o,i),a!==null&&(w===0?m?Xr(m):m=Ki(()=>a(s)):m!==null&&yn(m,()=>{m=null})),y&&co(!0),r(u)}),je&&(s=vt)}function z0(t,e,i,o,n,a,s){var ae,Le,Ae,_e;var d=(n&8)!==0,l=(n&3)!==0,p=t.length,m=e.items,$=e.first,u=$,_,w=null,y,C=[],T=[],E,P,A,I;if(d)for(I=0;I<p;I+=1)E=t[I],P=a(E,I),A=m.get(P),A!==void 0&&((ae=A.a)==null||ae.measure(),(y!=null?y:y=new Set).add(A));for(I=0;I<p;I+=1){if(E=t[I],P=a(E,I),A=m.get(P),A===void 0){var V=u?u.e.nodes_start:i;w=wg(V,e,w,w===null?e.first:w.next,E,P,I,o,n,s),m.set(P,w),C=[],T=[],u=w.next;continue}if(l&&q0(A,E,I,n),(A.e.f&8192)!==0&&(Xr(A.e),d&&((Le=A.a)==null||Le.unfix(),(y!=null?y:y=new Set).delete(A))),A!==u){if(_!==void 0&&_.has(A)){if(C.length<T.length){var H=T[0],j;w=H.prev;var O=C[0],X=C[C.length-1];for(j=0;j<C.length;j+=1)yg(C[j],H,i);for(j=0;j<T.length;j+=1)_.delete(T[j]);ms(e,O.prev,X.next),ms(e,w,O),ms(e,X,H),u=H,w=X,I-=1,C=[],T=[]}else _.delete(A),yg(A,u,i),ms(e,A.prev,A.next),ms(e,A,w===null?e.first:w.next),ms(e,w,A),w=A;continue}for(C=[],T=[];u!==null&&u.k!==P;)(u.e.f&8192)===0&&(_!=null?_:_=new Set).add(u),T.push(u),u=u.next;if(u===null)continue;A=u}C.push(A),w=A,u=A.next}if(u!==null||_!==void 0){for(var oe=_===void 0?[]:El(_);u!==null;)(u.e.f&8192)===0&&oe.push(u),u=u.next;var Y=oe.length;if(Y>0){var fe=(n&4)!==0&&p===0?i:null;if(d){for(I=0;I<Y;I+=1)(Ae=oe[I].a)==null||Ae.measure();for(I=0;I<Y;I+=1)(_e=oe[I].a)==null||_e.fix()}U0(e,oe,fe,m)}}d&&Zo(()=>{var se;if(y!==void 0)for(A of y)(se=A.a)==null||se.apply()}),Tt.first=e.first&&e.first.e,Tt.last=w&&w.e}function q0(t,e,i,o){(o&1)!==0&&La(t.v,e),(o&2)!==0?La(t.i,i):t.i=i}function wg(t,e,i,o,n,a,s,d,l,p){var m=vs,$=(l&1)!==0,u=(l&16)===0,_=$?u?Yr(n):Wi(n):n,w=(l&2)===0?s:Wi(s);Ee&&$&&(_.debug=()=>{var C=typeof w=="number"?s:w.v;p()[C]});var y={i:w,v:_,k:a,a:null,e:null,prev:i,next:o};vs=y;try{return y.e=Ki(()=>d(t,_,w,p),je),y.e.prev=i&&i.e,y.e.next=o&&o.e,i===null?e.first=y:(i.next=y,i.e.next=y.e),o!==null&&(o.prev=y,o.e.prev=y.e),y}finally{vs=m}}function yg(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,a=t.e.nodes_start;a!==o;){var s=Lo(a);n.before(a),a=s}}function ms(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 W0(t,e,i){var a,s;if(!e||e===cg(String(i!=null?i:"")))return;let o,n=(a=t.__svelte_meta)==null?void 0:a.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(s=nn)!=null&&s[hi]&&(o=`in ${nn[hi]}`),zv(cp(o))}function Ql(t,e,i,o,n){var a=t,s="",d;uo(()=>{var l;if(s===(s=(l=e())!=null?l:"")){je&&Fi();return}d!==void 0&&(lo(d),d=void 0),s!==""&&(d=Ki(()=>{if(je){for(var p=vt.data,m=Fi(),$=m;m!==null&&(m.nodeType!==8||m.data!=="");)$=m,m=Lo(m);if(m===null)throw Hs(),Wr;Ee&&!n&&W0(m.parentNode,p,s),wo(vt,$),a=_i(m);return}var u=s+"";i?u=`<svg>${u}</svg>`:o&&(u=`<math>${u}</math>`);var _=Wa(u);if((i||o)&&(_=bi(_)),wo(bi(_),_.lastChild),i||o)for(;bi(_);)a.before(bi(_));else a.before(_)}))})}function ge(t,e,...i){var o=t,n=ie,a;uo(()=>{n!==(n=e())&&(a&&(lo(a),a=null),Ee&&n==null&&Ev(),a=Ki(()=>n(o,...i)))},65536),je&&(o=vt)}function Ti(t,e,i){je&&Fi();var o=t,n,a;uo(()=>{n!==(n=e())&&(a&&(yn(a),a=null),n&&(a=Ki(()=>i(o,n))))},65536),je&&(o=vt)}function Qs(t,e,i,o,n,a){var w;let s=je;je&&Fi();var d=Ee&&a&&((w=Mt)==null?void 0:w.function[hi]),l,p,m=null;je&&vt.nodeType===1&&(m=vt,Fi());var $=je?vt:t,u,_=vs;uo(()=>{let y=e()||null;var C=n?n():i||y==="svg"?Du:null;if(y!==l){var T=vs;_p(_),u&&(y===null?yn(u,()=>{u=null,p=null}):y===p?Xr(u):(lo(u),kc(!1))),y&&y!==p&&(u=Ki(()=>{if(m=je?m:C?document.createElementNS(C,y):document.createElement(y),Ee&&a&&(m.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),wo(m,m),o){je&&vg(y)&&m.append(document.createComment(""));var E=je?bi(m):m.appendChild(tn());je&&(E===null?co(!1):_i(E)),o(m,E)}Tt.nodes_end=m,$.before(m)})),l=y,l&&(p=l),kc(!0),_p(T)}},65536),s&&(co(!0),_i($))}var $p;function Sg(t){return $p=t.target,new bp(t)}var es,or,bp=class{constructor(e){ds(this,es);ds(this,or);var a,s;var i=new Map,o=(d,l)=>{var p=Yr(l);return i.set(d,p),p};let n=new Proxy({...e.props||{},$$events:{}},{get(d,l){var p;return r((p=i.get(l))!=null?p:o(l,Reflect.get(d,l)))},has(d,l){var p;return l===kl?!0:(r((p=i.get(l))!=null?p:o(l,Reflect.get(d,l))),Reflect.has(d,l))},set(d,l,p){var m;return B((m=i.get(l))!=null?m:o(l,p),p),Reflect.set(d,l,p)}});Ea(this,or,(e.hydrate?vp:Jr)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(a=e.intro)!=null?a:!1,recover:e.recover})),(!((s=e==null?void 0:e.props)!=null&&s.$$host)||e.sync===!1)&&Oa(),Ea(this,es,n.$$events);for(let d of Object.keys(Li(this,or)))d==="$set"||d==="$destroy"||d==="$on"||so(this,d,{get(){return Li(this,or)[d]},set(l){Li(this,or)[d]=l},enumerable:!0});Li(this,or).$set=d=>{Object.assign(n,d)},Li(this,or).$destroy=()=>{Ws(Li(this,or))}}$set(e){Li(this,or).$set(e)}$on(e,i){Li(this,es)[e]=Li(this,es)[e]||[];let o=(...n)=>i.call(this,...n);return Li(this,es)[e].push(o),()=>{Li(this,es)[e]=Li(this,es)[e].filter(n=>n!==o)}}$destroy(){Li(this,or).$destroy()}};es=new WeakMap,or=new WeakMap;function q(t,e){Zo(()=>{var n,a,s;var i=t.getRootNode(),o=i.host?i:(s=(n=i.head)!=null?n:i.ownerDocument.head)!=null?s:(a=$p)==null?void 0:a.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Ee&&hg(e.hash,d)}})}function Cg(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=Cg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Tg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Cg(t))&&(o&&(o+=" "),o+=e);return o}function Gl(t){return typeof t=="object"?Tg(t):t!=null?t:""}var Ig=[...`
48
- \r\f\xA0\v\uFEFF`];function Eg(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var a=n.length,s=0;(s=o.indexOf(n,s))>=0;){var d=s+a;(s===0||Ig.includes(o[s-1]))&&(d===o.length||Ig.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function kg(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var a=t[n];a!=null&&a!==""&&(o+=" "+n+": "+a+i)}return o}function yp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Pg(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,s=0,d=!1,l=[];o&&l.push(...Object.keys(o).map(yp)),n&&l.push(...Object.keys(n).map(yp));var p=0,m=-1;let y=t.length;for(var $=0;$<y;$++){var u=t[$];if(d?u==="/"&&t[$-1]==="*"&&(d=!1):a?a===u&&(a=!1):u==="/"&&t[$+1]==="*"?d=!0:u==='"'||u==="'"?a=u:u==="("?s++:u===")"&&s--,!d&&a===!1&&s===0){if(u===":"&&m===-1)m=$;else if(u===";"||$===y-1){if(m!==-1){var _=yp(t.substring(p,m).trim());if(!l.includes(_)){u!==";"&&$++;var w=t.substring(p,$).trim();i+=" "+w+";"}}p=$+1,m=-1}}}}return o&&(i+=kg(o)),n&&(i+=kg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ee(t,e,i,o,n,a){var s=t.__className;if(je||s!==i){var d=Eg(i,o,a);(!je||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&n!==a)for(var l in a){var p=!!a[l];(n==null||p!==!!n[l])&&t.classList.toggle(l,p)}return a}function xp(t,e={},i,o){for(var n in i){var a=i[n];e[n]!==a&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,a,o))}}function it(t,e,i,o){var n=t.__style;if(je||n!==e){var a=Pg(e,o);(!je||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(xp(t,i==null?void 0:i[0],o[0]),xp(t,i==null?void 0:i[1],o[1],"important")):xp(t,i,o));return o}var Qa=Symbol("class"),Ga=Symbol("style"),Lg=Symbol("is custom element"),Vg=Symbol("is html");function Rg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function He(t,e,i,o){var n=Ng(t);if(je&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||X0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[hv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Dg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Ie(t,e,i,o,n=!1){var A;var a=Ng(t),s=a[Lg],d=!a[Vg];let l=je&&s;l&&co(!1);var p=e||{},m=t.tagName==="OPTION";for(var $ in e)$ in i||(i[$]=null);i.class?i.class=Gl(i.class):(o||i[Qa])&&(i.class=null),i[Ga]&&((A=i.style)!=null||(i.style=null));var u=Dg(t);for(let I in i){let V=i[I];if(m&&I==="value"&&V==null){t.value=t.__value="",p[I]=V;continue}if(I==="class"){var _=t.namespaceURI==="http://www.w3.org/1999/xhtml";ee(t,_,V,o,e==null?void 0:e[Qa],i[Qa]),p[I]=V,p[Qa]=i[Qa];continue}if(I==="style"){it(t,V,e==null?void 0:e[Ga],i[Ga]),p[I]=V,p[Ga]=i[Ga];continue}var w=p[I];if(V!==w){p[I]=V;var y=I[0]+I[1];if(y!=="$$")if(y==="on"){let H={},j="$$"+I,O=I.slice(2);var C=pg(O);if(ug(O)&&(O=O.slice(0,-7),H.capture=!0),!C&&w){if(V!=null)continue;t.removeEventListener(O,p[j],H),p[j]=null}if(V!=null)if(C)t[`__${O}`]=V,lt([O]);else{let X=function(oe){p[I].call(this,oe)};var P=X;p[j]=fp(O,t,X,H)}else C&&(t[`__${O}`]=void 0)}else if(I==="style")He(t,I,V);else if(I==="autofocus")up(t,!!V);else if(!s&&(I==="__value"||I==="value"&&V!=null))t.value=t.__value=V;else if(I==="selected"&&m)Rg(t,V);else{var T=I;d||(T=fg(T));var E=T==="defaultValue"||T==="defaultChecked";if(V==null&&!s&&!E)if(a[I]=null,T==="value"||T==="checked"){let H=t,j=e===void 0;if(T==="value"){let O=H.defaultValue;H.removeAttribute(T),H.defaultValue=O,H.value=H.__value=j?O:null}else{let O=H.defaultChecked;H.removeAttribute(T),H.defaultChecked=O,H.checked=j?O:!1}}else t.removeAttribute(I);else E||u.includes(T)&&(s||typeof V!="string")?t[T]=V:typeof V!="function"&&He(t,T,V,n)}}}return l&&co(!0),p}function Ng(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Lg]:t.nodeName.includes("-"),[Vg]:t.namespaceURI===fv}}var Ag=new Map;function Dg(t){var e=Ag.get(t.nodeName);if(e)return e;Ag.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=dc(o);for(var a in i)i[a].set&&e.push(a);o=Qr(o)}return e}function X0(t,e,i){var o;Ee&&(e==="srcset"&&J0(t,i)||wp((o=t.getAttribute(e))!=null?o:"",i)||Uv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function wp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Mg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function J0(t,e){var i=Mg(t.srcset),o=Mg(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(wp(i[s][0],n)||wp(n,i[s][0])))}var e_=lc?()=>performance.now():()=>Date.now(),br={tick:t=>(lc?requestAnimationFrame:ie)(t),now:()=>e_(),tasks:new Set};function Bg(){let t=br.now();br.tasks.forEach(e=>{e.c(t)||(br.tasks.delete(e),e.f())}),br.tasks.size!==0&&br.tick(Bg)}function Og(t){let e;return br.tasks.size===0&&br.tick(Bg),{promise:new Promise(i=>{br.tasks.add(e={c:t,f:i})}),abort(){br.tasks.delete(e)}}}function Ec(t,e){ql(()=>{t.dispatchEvent(new CustomEvent(e))})}function n_(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function Hg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=n_(n.trim());e[s]=a.trim()}return e}var r_=t=>t;function Cp(t,e,i,o){var P;var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",p,m=e.inert,$=e.style.overflow,u,_;function w(){var V;var A=Ot,I=Tt;$o(null),ao(null);try{return p!=null?p:p=i()(e,(V=o==null?void 0:o())!=null?V:{},{direction:l})}finally{$o(A),ao(I)}}var y={is_global:d,in(){var A;if(e.inert=m,!n){_==null||_.abort(),(A=_==null?void 0:_.reset)==null||A.call(_);return}a||u==null||u.abort(),Ec(e,"introstart"),u=Sp(e,w(),_,1,()=>{Ec(e,"introend"),u==null||u.abort(),u=p=void 0,e.style.overflow=$})},out(A){if(!a){A==null||A(),p=void 0;return}e.inert=!0,Ec(e,"outrostart"),_=Sp(e,w(),u,0,()=>{Ec(e,"outroend"),A==null||A()})},stop:()=>{u==null||u.abort(),_==null||_.abort()}},C=Tt;if(((P=C.transitions)!=null?P:C.transitions=[]).push(y),n&&Wl){var T=d;if(!T){for(var E=C.parent;E&&(E.f&65536)!==0;)for(;(E=E.parent)&&(E.f&16)===0;);T=!E||(E.f&32768)!==0}T&&$n(()=>{$t(()=>y.in())})}}function Sp(t,e,i,o,n){var a=o===1;if(us(e)){var s,d=!1;return Zo(()=>{if(!d){var C=e({direction:a?"in":"out"});s=Sp(t,C,i,o,n)}}),{abort:()=>{d=!0,s==null||s.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:ie,deactivate:ie,reset:ie,t:()=>o};let{delay:l=0,css:p,tick:m,easing:$=r_}=e;var u=[];if(a&&i===void 0&&(m&&m(0,1),p)){var _=Hg(p(0,1));u.push(_,_)}var w=()=>1-o,y=t.animate(u,{duration:l});return y.onfinish=()=>{var O;var C=(O=i==null?void 0:i.t())!=null?O:1-o;i==null||i.abort();var T=o-C,E=e.duration*Math.abs(T),P=[];if(E>0){var A=!1;if(p)for(var I=Math.ceil(E/16.666666666666668),V=0;V<=I;V+=1){var H=C+T*$(V/I),j=Hg(p(H,1-H));P.push(j),A||(A=j.overflow==="hidden")}A&&(t.style.overflow="hidden"),w=()=>{var X=y.currentTime;return C+T*$(X/E)},m&&Og(()=>{if(y.playState!=="running")return!1;var X=w();return m(X,1-X),!0})}y=t.animate(P,{duration:E,fill:"forwards"}),y.onfinish=()=>{w=()=>o,m==null||m(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=ie)},deactivate:()=>{n=ie},reset:()=>{o===0&&(m==null||m(1,0))},t:()=>w()}}var gs,ja,jl,Ac,Fg,Mc=class Mc{constructor(e){ds(this,Ac);ds(this,gs,new WeakMap);ds(this,ja);ds(this,jl);Ea(this,jl,e)}observe(e,i){var o=Li(this,gs).get(e)||new Set;return o.add(i),Li(this,gs).set(e,o),uv(this,Ac,Fg).call(this).observe(e,Li(this,jl)),()=>{var n=Li(this,gs).get(e);n.delete(i),n.size===0&&(Li(this,gs).delete(e),Li(this,ja).unobserve(e))}}};gs=new WeakMap,ja=new WeakMap,jl=new WeakMap,Ac=new WeakSet,Fg=function(){var e;return(e=Li(this,ja))!=null?e:Ea(this,ja,new ResizeObserver(i=>{for(var o of i){Mc.entries.set(o.target,o);for(var n of Li(this,gs).get(o.target)||[])n(o)}}))},Dn(Mc,"entries",new WeakMap);var Tp=Mc;var l_=new Tp({box:"border-box"});function Br(t,e,i){var o=l_.observe(t,()=>i(t[e]));$n(()=>($t(()=>i(t[e])),o))}function Ug(t,e){return t===e||(t==null?void 0:t[Fo])===e}function pt(t={},e,i,o){return $n(()=>{var n,a;return xo(()=>{n=a,a=(o==null?void 0:o())||[],$t(()=>{t!==i(...a)&&(e(t,...a),n&&Ug(i(...n),t)&&e(null,...n))})}),()=>{Zo(()=>{a&&Ug(i(...a),t)&&e(null,...a)})}}),t}function $r(t=!1){let e=Mt,i=e.l.u;if(!i)return;let o=()=>yc(e.s);if(t){let n=0,a={},s=v(()=>{let d=!1,l=e.s;for(let p in l)l[p]!==a[p]&&(a[p]=l[p],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&Ha(()=>{zg(e,o),ps(i.b)}),qe(()=>{let n=$t(()=>i.m.map($v));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&qe(()=>{zg(e,o),ps(i.a)})}function zg(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(Ee){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Mv(e)},set:o=>{i=o}})}};c_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var c_;function Ut(t){Mt===null&&Fa("onMount"),Vr&&Mt.l!==null?d_(Mt).m.push(t):qe(()=>{let e=$t(t);if(typeof e=="function")return e})}function xn(t){Mt===null&&Fa("onDestroy"),Ut(()=>()=>$t(t))}function d_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function Yl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ie;let o=$t(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Ya=[];function nr(t,e){return{subscribe:le(t,e).subscribe}}function le(t,e=ie){let i=null,o=new Set;function n(d){if(Pa(t,d)&&(t=d,i)){let l=!Ya.length;for(let p of o)p[1](),Ya.push(p,t);if(l){for(let p=0;p<Ya.length;p+=2)Ya[p][0](Ya[p+1]);Ya.length=0}}}function a(d){n(d(t))}function s(d,l=ie){let p=[d,l];return o.add(p),o.size===1&&(i=e(n,a)||ie),d(t),()=>{o.delete(p),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function $i(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 a=e.length<2;return nr(i,(s,d)=>{let l=!1,p=[],m=0,$=ie,u=()=>{if(m)return;$();let w=e(o?p[0]:p,s,d);a?s(w):$=typeof w=="function"?w:ie},_=n.map((w,y)=>Yl(w,C=>{p[y]=C,m&=~(1<<y),l&&u()},()=>{m|=1<<y}));return l=!0,u(),function(){ps(_),$(),l=!1}})}function Ce(t){let e;return Yl(t,i=>e=i)(),e}var Lc=!1,Ip=Symbol();function S(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:Yr(void 0),unsubscribe:ie};if(o.store!==t&&!(Ip in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=ie;else{var n=!0;o.unsubscribe=Yl(t,s=>{n?o.source.v=s:B(o.source,s)}),n=!1}return t&&Ip in i?Ce(t):r(o.source)}function De(){let t={};function e(){rn(()=>{for(var i in t)t[i].unsubscribe();so(t,Ip,{enumerable:!1,value:!0})})}return[t,e]}function kp(t){var e=Lc;try{return Lc=!1,[t(),Lc]}finally{Lc=e}}var h_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ee&&Av(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},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 Pe(t,e,i){return new Proxy(Ee?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},h_)}var __={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(us(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];us(n)&&(n=n());let a=Bn(n,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(us(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Bn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Fo||e===kl)return!1;for(let i of t.props)if(us(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){us(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function ts(...t){return new Proxy({props:t},__)}function qg(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function f(t,e,i,o){var H,j;var n=(i&1)!==0,a=!Vr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,p;s?[p,l]=kp(()=>t[e]):p=t[e];var m=Fo in t||kl in t,$=s&&((j=(H=Bn(t,e))==null?void 0:H.set)!=null?j:m&&e in t&&(O=>t[e]=O))||void 0,u=o,_=!0,w=!1,y=()=>(w=!0,_&&(_=!1,d?u=$t(o):u=o),u);p===void 0&&o!==void 0&&($&&a&&Pv(e),p=y(),$&&$(p));var C;if(a)C=()=>{var O=t[e];return O===void 0?y():(_=!0,w=!1,O)};else{var T=(n?v:hr)(()=>t[e]);T.f|=131072,C=()=>{var O=r(T);return O!==void 0&&(u=void 0),O===void 0?u:O}}if((i&4)===0)return C;if($){var E=t.$$legacy;return function(O,X){return arguments.length>0?((!a||!X||E||l)&&$(X?C():O),O):C()}}var P=!1,A=!1,I=Yr(p),V=v(()=>{var O=C(),X=r(I);return P?(P=!1,A=!0,X):(A=!1,I.v=O)});return s&&r(V),n||(V.equals=Aa),function(O,X){if(Ml!==null&&(P=A,C(),r(I)),arguments.length>0){let oe=X?r(V):a&&s?pe(O):O;if(!V.equals(oe)){if(P=!0,B(I,oe),w&&u!==void 0&&(u=oe),qg(V))return O;$t(()=>r(V))}return O}return qg(V)?V.v:r(V)}}var b_;typeof HTMLElement=="function"&&(b_=class extends HTMLElement{constructor(e,i,o){super();Dn(this,"$$ctor");Dn(this,"$$s");Dn(this,"$$c");Dn(this,"$$cn",!1);Dn(this,"$$d",{});Dn(this,"$$r",!1);Dn(this,"$$p_d",{});Dn(this,"$$l",{});Dn(this,"$$l_u",new Map);Dn(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(a){return s=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),b(s,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=$_(this);for(let a of this.$$s)a in n&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),o.default=!0):o[a]=i(a));for(let a of this.attributes){let s=this.$$g_p(a.name);s in this.$$d||(this.$$d[s]=Ep(s,a.value,this.$$p_d,"toProp"))}for(let a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=Sg({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=wc(()=>{xo(()=>{var a;this.$$r=!0;for(let s of Bu(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=Ep(s,this.$$d[s],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,d)}this.$$r=!1})});for(let a in this.$$l)for(let s of this.$$l[a]){let d=this.$$c.$on(a,s);this.$$l_u.set(s,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ep(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Bu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Ep(t,e,i,o){var a;let n=(a=i[t])==null?void 0:a.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?null:e;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 $_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Wg="5";var Kg,Qg,Gg;typeof window!="undefined"&&((Gg=(Qg=(Kg=window.__svelte)!=null?Kg:window.__svelte={}).v)!=null?Gg:Qg.v=new Set).add(Wg);var yu=require("@vkontakte/videoplayer-core/es2018"),VQ=require("@vkontakte/videoplayer-core/es2018"),wa=require("@vkontakte/videoplayer-shared/es2018"),W1=require("@vkontakte/videoplayer-statistics/es2018");var Gs=require("@vkontakte/videoplayer-shared/es2018");var x_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:Gs.InterfaceLanguage.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:Gs.VideoQuality.Q_480P,highQualityLimit:Gs.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,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,slots:!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,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!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,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},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,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null}},jg=t=>(0,Gs.fillWithDefault)(t,x_),Yg=t=>za("ui-config",t),zt=()=>Ua("ui-config");var Zl="vk_player_debug_panel_opened";var Zg="videoplayer",Xg="videoplayer";var Or={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Jg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),eh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),th=new Set(["ShiftRight","ShiftLeft"]);var ih=["TIMELINE"],Xl=[...ih,"GRAPH_BUTTON"],Pp=[...ih,"PLAY_BUTTON"],Jl=[...Xl,"PLAY_BUTTON"];var yr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(yr||{}),Ys={xs:0,s:1,m:2,l:3,xl:4};var ed=require("@vkontakte/videoplayer-shared/es2018"),oh=require("@vkontakte/videoplayer-core/es2018"),nh=require("@vkontakte/videoplayer-statistics/es2018");var Vc="prod",Zs="1.1.63";var Xs=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var rh=Symbol("storeContext"),sh=Symbol("microStoresContext"),ah=(t,e)=>{za(rh,t),za(sh,e),Vc==="dev"&&(window.app={store:t,microStores:e})},Te=()=>{let t=Ua(rh);return(0,ed.assertNonNullable)(t,"Store context is empty!"),t},po=()=>{let t=Ua(sh);return(0,ed.assertNonNullable)(t,"MicroStores context is empty!"),t},Yt=(t,e)=>Nc(t,t.getValue(),e),Nc=(t,e,i)=>nr(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),lh=(t,e,i)=>{var T,E,P,A,I,V;let o=t.info,{width:n,height:a}=Ce(i.ui.playerSize),s=(E=(T=o.throughputEstimation$.getValue())==null?void 0:T.toFixed(0))!=null?E:0,d=(A=(P=o.rttEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?A:0,l=o.isAutoQualityEnabled$.getValue()?"auto":"manual",p=`${Zs} (core: ${oh.VERSION}, stat: ${nh.VERSION}, shared: ${ed.VERSION})`,m=Ce(i.state.errorLog$),$=m.length?`
48
+ \r\f\xA0\v\uFEFF`];function Eg(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var a=n.length,s=0;(s=o.indexOf(n,s))>=0;){var d=s+a;(s===0||Ig.includes(o[s-1]))&&(d===o.length||Ig.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function kg(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var a=t[n];a!=null&&a!==""&&(o+=" "+n+": "+a+i)}return o}function yp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Pg(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,s=0,d=!1,l=[];o&&l.push(...Object.keys(o).map(yp)),n&&l.push(...Object.keys(n).map(yp));var p=0,m=-1;let y=t.length;for(var $=0;$<y;$++){var u=t[$];if(d?u==="/"&&t[$-1]==="*"&&(d=!1):a?a===u&&(a=!1):u==="/"&&t[$+1]==="*"?d=!0:u==='"'||u==="'"?a=u:u==="("?s++:u===")"&&s--,!d&&a===!1&&s===0){if(u===":"&&m===-1)m=$;else if(u===";"||$===y-1){if(m!==-1){var _=yp(t.substring(p,m).trim());if(!l.includes(_)){u!==";"&&$++;var w=t.substring(p,$).trim();i+=" "+w+";"}}p=$+1,m=-1}}}}return o&&(i+=kg(o)),n&&(i+=kg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ee(t,e,i,o,n,a){var s=t.__className;if(je||s!==i){var d=Eg(i,o,a);(!je||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&n!==a)for(var l in a){var p=!!a[l];(n==null||p!==!!n[l])&&t.classList.toggle(l,p)}return a}function xp(t,e={},i,o){for(var n in i){var a=i[n];e[n]!==a&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,a,o))}}function it(t,e,i,o){var n=t.__style;if(je||n!==e){var a=Pg(e,o);(!je||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(xp(t,i==null?void 0:i[0],o[0]),xp(t,i==null?void 0:i[1],o[1],"important")):xp(t,i,o));return o}var Qa=Symbol("class"),Ga=Symbol("style"),Lg=Symbol("is custom element"),Vg=Symbol("is html");function Rg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function He(t,e,i,o){var n=Ng(t);if(je&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||X0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[hv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Dg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Ie(t,e,i,o,n=!1){var A;var a=Ng(t),s=a[Lg],d=!a[Vg];let l=je&&s;l&&co(!1);var p=e||{},m=t.tagName==="OPTION";for(var $ in e)$ in i||(i[$]=null);i.class?i.class=Gl(i.class):(o||i[Qa])&&(i.class=null),i[Ga]&&((A=i.style)!=null||(i.style=null));var u=Dg(t);for(let I in i){let V=i[I];if(m&&I==="value"&&V==null){t.value=t.__value="",p[I]=V;continue}if(I==="class"){var _=t.namespaceURI==="http://www.w3.org/1999/xhtml";ee(t,_,V,o,e==null?void 0:e[Qa],i[Qa]),p[I]=V,p[Qa]=i[Qa];continue}if(I==="style"){it(t,V,e==null?void 0:e[Ga],i[Ga]),p[I]=V,p[Ga]=i[Ga];continue}var w=p[I];if(V!==w){p[I]=V;var y=I[0]+I[1];if(y!=="$$")if(y==="on"){let H={},j="$$"+I,O=I.slice(2);var C=pg(O);if(ug(O)&&(O=O.slice(0,-7),H.capture=!0),!C&&w){if(V!=null)continue;t.removeEventListener(O,p[j],H),p[j]=null}if(V!=null)if(C)t[`__${O}`]=V,lt([O]);else{let X=function(oe){p[I].call(this,oe)};var P=X;p[j]=fp(O,t,X,H)}else C&&(t[`__${O}`]=void 0)}else if(I==="style")He(t,I,V);else if(I==="autofocus")up(t,!!V);else if(!s&&(I==="__value"||I==="value"&&V!=null))t.value=t.__value=V;else if(I==="selected"&&m)Rg(t,V);else{var T=I;d||(T=fg(T));var E=T==="defaultValue"||T==="defaultChecked";if(V==null&&!s&&!E)if(a[I]=null,T==="value"||T==="checked"){let H=t,j=e===void 0;if(T==="value"){let O=H.defaultValue;H.removeAttribute(T),H.defaultValue=O,H.value=H.__value=j?O:null}else{let O=H.defaultChecked;H.removeAttribute(T),H.defaultChecked=O,H.checked=j?O:!1}}else t.removeAttribute(I);else E||u.includes(T)&&(s||typeof V!="string")?t[T]=V:typeof V!="function"&&He(t,T,V,n)}}}return l&&co(!0),p}function Ng(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Lg]:t.nodeName.includes("-"),[Vg]:t.namespaceURI===fv}}var Ag=new Map;function Dg(t){var e=Ag.get(t.nodeName);if(e)return e;Ag.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=dc(o);for(var a in i)i[a].set&&e.push(a);o=Qr(o)}return e}function X0(t,e,i){var o;Ee&&(e==="srcset"&&J0(t,i)||wp((o=t.getAttribute(e))!=null?o:"",i)||Uv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function wp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Mg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function J0(t,e){var i=Mg(t.srcset),o=Mg(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(wp(i[s][0],n)||wp(n,i[s][0])))}var e_=lc?()=>performance.now():()=>Date.now(),br={tick:t=>(lc?requestAnimationFrame:ie)(t),now:()=>e_(),tasks:new Set};function Bg(){let t=br.now();br.tasks.forEach(e=>{e.c(t)||(br.tasks.delete(e),e.f())}),br.tasks.size!==0&&br.tick(Bg)}function Og(t){let e;return br.tasks.size===0&&br.tick(Bg),{promise:new Promise(i=>{br.tasks.add(e={c:t,f:i})}),abort(){br.tasks.delete(e)}}}function Ec(t,e){ql(()=>{t.dispatchEvent(new CustomEvent(e))})}function n_(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function Hg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=n_(n.trim());e[s]=a.trim()}return e}var r_=t=>t;function Cp(t,e,i,o){var P;var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",p,m=e.inert,$=e.style.overflow,u,_;function w(){var V;var A=Ot,I=Tt;$o(null),ao(null);try{return p!=null?p:p=i()(e,(V=o==null?void 0:o())!=null?V:{},{direction:l})}finally{$o(A),ao(I)}}var y={is_global:d,in(){var A;if(e.inert=m,!n){_==null||_.abort(),(A=_==null?void 0:_.reset)==null||A.call(_);return}a||u==null||u.abort(),Ec(e,"introstart"),u=Sp(e,w(),_,1,()=>{Ec(e,"introend"),u==null||u.abort(),u=p=void 0,e.style.overflow=$})},out(A){if(!a){A==null||A(),p=void 0;return}e.inert=!0,Ec(e,"outrostart"),_=Sp(e,w(),u,0,()=>{Ec(e,"outroend"),A==null||A()})},stop:()=>{u==null||u.abort(),_==null||_.abort()}},C=Tt;if(((P=C.transitions)!=null?P:C.transitions=[]).push(y),n&&Wl){var T=d;if(!T){for(var E=C.parent;E&&(E.f&65536)!==0;)for(;(E=E.parent)&&(E.f&16)===0;);T=!E||(E.f&32768)!==0}T&&$n(()=>{$t(()=>y.in())})}}function Sp(t,e,i,o,n){var a=o===1;if(us(e)){var s,d=!1;return Zo(()=>{if(!d){var C=e({direction:a?"in":"out"});s=Sp(t,C,i,o,n)}}),{abort:()=>{d=!0,s==null||s.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:ie,deactivate:ie,reset:ie,t:()=>o};let{delay:l=0,css:p,tick:m,easing:$=r_}=e;var u=[];if(a&&i===void 0&&(m&&m(0,1),p)){var _=Hg(p(0,1));u.push(_,_)}var w=()=>1-o,y=t.animate(u,{duration:l});return y.onfinish=()=>{var O;var C=(O=i==null?void 0:i.t())!=null?O:1-o;i==null||i.abort();var T=o-C,E=e.duration*Math.abs(T),P=[];if(E>0){var A=!1;if(p)for(var I=Math.ceil(E/16.666666666666668),V=0;V<=I;V+=1){var H=C+T*$(V/I),j=Hg(p(H,1-H));P.push(j),A||(A=j.overflow==="hidden")}A&&(t.style.overflow="hidden"),w=()=>{var X=y.currentTime;return C+T*$(X/E)},m&&Og(()=>{if(y.playState!=="running")return!1;var X=w();return m(X,1-X),!0})}y=t.animate(P,{duration:E,fill:"forwards"}),y.onfinish=()=>{w=()=>o,m==null||m(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=ie)},deactivate:()=>{n=ie},reset:()=>{o===0&&(m==null||m(1,0))},t:()=>w()}}var gs,ja,jl,Ac,Fg,Mc=class Mc{constructor(e){ds(this,Ac);ds(this,gs,new WeakMap);ds(this,ja);ds(this,jl);Ea(this,jl,e)}observe(e,i){var o=Li(this,gs).get(e)||new Set;return o.add(i),Li(this,gs).set(e,o),uv(this,Ac,Fg).call(this).observe(e,Li(this,jl)),()=>{var n=Li(this,gs).get(e);n.delete(i),n.size===0&&(Li(this,gs).delete(e),Li(this,ja).unobserve(e))}}};gs=new WeakMap,ja=new WeakMap,jl=new WeakMap,Ac=new WeakSet,Fg=function(){var e;return(e=Li(this,ja))!=null?e:Ea(this,ja,new ResizeObserver(i=>{for(var o of i){Mc.entries.set(o.target,o);for(var n of Li(this,gs).get(o.target)||[])n(o)}}))},Dn(Mc,"entries",new WeakMap);var Tp=Mc;var l_=new Tp({box:"border-box"});function Br(t,e,i){var o=l_.observe(t,()=>i(t[e]));$n(()=>($t(()=>i(t[e])),o))}function Ug(t,e){return t===e||(t==null?void 0:t[Fo])===e}function pt(t={},e,i,o){return $n(()=>{var n,a;return xo(()=>{n=a,a=(o==null?void 0:o())||[],$t(()=>{t!==i(...a)&&(e(t,...a),n&&Ug(i(...n),t)&&e(null,...n))})}),()=>{Zo(()=>{a&&Ug(i(...a),t)&&e(null,...a)})}}),t}function $r(t=!1){let e=Mt,i=e.l.u;if(!i)return;let o=()=>yc(e.s);if(t){let n=0,a={},s=v(()=>{let d=!1,l=e.s;for(let p in l)l[p]!==a[p]&&(a[p]=l[p],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&Ha(()=>{zg(e,o),ps(i.b)}),qe(()=>{let n=$t(()=>i.m.map($v));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&qe(()=>{zg(e,o),ps(i.a)})}function zg(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(Ee){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Mv(e)},set:o=>{i=o}})}};c_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var c_;function Ut(t){Mt===null&&Fa("onMount"),Vr&&Mt.l!==null?d_(Mt).m.push(t):qe(()=>{let e=$t(t);if(typeof e=="function")return e})}function xn(t){Mt===null&&Fa("onDestroy"),Ut(()=>()=>$t(t))}function d_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function Yl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ie;let o=$t(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Ya=[];function nr(t,e){return{subscribe:le(t,e).subscribe}}function le(t,e=ie){let i=null,o=new Set;function n(d){if(Pa(t,d)&&(t=d,i)){let l=!Ya.length;for(let p of o)p[1](),Ya.push(p,t);if(l){for(let p=0;p<Ya.length;p+=2)Ya[p][0](Ya[p+1]);Ya.length=0}}}function a(d){n(d(t))}function s(d,l=ie){let p=[d,l];return o.add(p),o.size===1&&(i=e(n,a)||ie),d(t),()=>{o.delete(p),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function $i(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 a=e.length<2;return nr(i,(s,d)=>{let l=!1,p=[],m=0,$=ie,u=()=>{if(m)return;$();let w=e(o?p[0]:p,s,d);a?s(w):$=typeof w=="function"?w:ie},_=n.map((w,y)=>Yl(w,C=>{p[y]=C,m&=~(1<<y),l&&u()},()=>{m|=1<<y}));return l=!0,u(),function(){ps(_),$(),l=!1}})}function Ce(t){let e;return Yl(t,i=>e=i)(),e}var Lc=!1,Ip=Symbol();function S(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:Yr(void 0),unsubscribe:ie};if(o.store!==t&&!(Ip in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=ie;else{var n=!0;o.unsubscribe=Yl(t,s=>{n?o.source.v=s:B(o.source,s)}),n=!1}return t&&Ip in i?Ce(t):r(o.source)}function De(){let t={};function e(){rn(()=>{for(var i in t)t[i].unsubscribe();so(t,Ip,{enumerable:!1,value:!0})})}return[t,e]}function kp(t){var e=Lc;try{return Lc=!1,[t(),Lc]}finally{Lc=e}}var h_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ee&&Av(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},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 Pe(t,e,i){return new Proxy(Ee?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},h_)}var __={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(us(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];us(n)&&(n=n());let a=Bn(n,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(us(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Bn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Fo||e===kl)return!1;for(let i of t.props)if(us(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){us(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function ts(...t){return new Proxy({props:t},__)}function qg(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function f(t,e,i,o){var H,j;var n=(i&1)!==0,a=!Vr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,p;s?[p,l]=kp(()=>t[e]):p=t[e];var m=Fo in t||kl in t,$=s&&((j=(H=Bn(t,e))==null?void 0:H.set)!=null?j:m&&e in t&&(O=>t[e]=O))||void 0,u=o,_=!0,w=!1,y=()=>(w=!0,_&&(_=!1,d?u=$t(o):u=o),u);p===void 0&&o!==void 0&&($&&a&&Pv(e),p=y(),$&&$(p));var C;if(a)C=()=>{var O=t[e];return O===void 0?y():(_=!0,w=!1,O)};else{var T=(n?v:hr)(()=>t[e]);T.f|=131072,C=()=>{var O=r(T);return O!==void 0&&(u=void 0),O===void 0?u:O}}if((i&4)===0)return C;if($){var E=t.$$legacy;return function(O,X){return arguments.length>0?((!a||!X||E||l)&&$(X?C():O),O):C()}}var P=!1,A=!1,I=Yr(p),V=v(()=>{var O=C(),X=r(I);return P?(P=!1,A=!0,X):(A=!1,I.v=O)});return s&&r(V),n||(V.equals=Aa),function(O,X){if(Ml!==null&&(P=A,C(),r(I)),arguments.length>0){let oe=X?r(V):a&&s?pe(O):O;if(!V.equals(oe)){if(P=!0,B(I,oe),w&&u!==void 0&&(u=oe),qg(V))return O;$t(()=>r(V))}return O}return qg(V)?V.v:r(V)}}var b_;typeof HTMLElement=="function"&&(b_=class extends HTMLElement{constructor(e,i,o){super();Dn(this,"$$ctor");Dn(this,"$$s");Dn(this,"$$c");Dn(this,"$$cn",!1);Dn(this,"$$d",{});Dn(this,"$$r",!1);Dn(this,"$$p_d",{});Dn(this,"$$l",{});Dn(this,"$$l_u",new Map);Dn(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(a){return s=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),b(s,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=$_(this);for(let a of this.$$s)a in n&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),o.default=!0):o[a]=i(a));for(let a of this.attributes){let s=this.$$g_p(a.name);s in this.$$d||(this.$$d[s]=Ep(s,a.value,this.$$p_d,"toProp"))}for(let a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=Sg({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=wc(()=>{xo(()=>{var a;this.$$r=!0;for(let s of Bu(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=Ep(s,this.$$d[s],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,d)}this.$$r=!1})});for(let a in this.$$l)for(let s of this.$$l[a]){let d=this.$$c.$on(a,s);this.$$l_u.set(s,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ep(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Bu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Ep(t,e,i,o){var a;let n=(a=i[t])==null?void 0:a.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?null:e;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 $_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Wg="5";var Kg,Qg,Gg;typeof window!="undefined"&&((Gg=(Qg=(Kg=window.__svelte)!=null?Kg:window.__svelte={}).v)!=null?Gg:Qg.v=new Set).add(Wg);var yu=require("@vkontakte/videoplayer-core/es2018"),VQ=require("@vkontakte/videoplayer-core/es2018"),wa=require("@vkontakte/videoplayer-shared/es2018"),W1=require("@vkontakte/videoplayer-statistics/es2018");var Gs=require("@vkontakte/videoplayer-shared/es2018");var x_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:Gs.InterfaceLanguage.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:Gs.VideoQuality.Q_480P,highQualityLimit:Gs.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,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,slots:!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,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!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,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},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,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null}},jg=t=>(0,Gs.fillWithDefault)(t,x_),Yg=t=>za("ui-config",t),zt=()=>Ua("ui-config");var Zl="vk_player_debug_panel_opened";var Zg="videoplayer",Xg="videoplayer";var Or={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Jg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),eh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),th=new Set(["ShiftRight","ShiftLeft"]);var ih=["TIMELINE"],Xl=[...ih,"GRAPH_BUTTON"],Pp=[...ih,"PLAY_BUTTON"],Jl=[...Xl,"PLAY_BUTTON"];var yr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(yr||{}),Ys={xs:0,s:1,m:2,l:3,xl:4};var ed=require("@vkontakte/videoplayer-shared/es2018"),oh=require("@vkontakte/videoplayer-core/es2018"),nh=require("@vkontakte/videoplayer-statistics/es2018");var Vc="prod",Zs="1.1.64-dev.3efb4d41.0";var Xs=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var rh=Symbol("storeContext"),sh=Symbol("microStoresContext"),ah=(t,e)=>{za(rh,t),za(sh,e),Vc==="dev"&&(window.app={store:t,microStores:e})},Te=()=>{let t=Ua(rh);return(0,ed.assertNonNullable)(t,"Store context is empty!"),t},po=()=>{let t=Ua(sh);return(0,ed.assertNonNullable)(t,"MicroStores context is empty!"),t},Yt=(t,e)=>Nc(t,t.getValue(),e),Nc=(t,e,i)=>nr(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),lh=(t,e,i)=>{var T,E,P,A,I,V;let o=t.info,{width:n,height:a}=Ce(i.ui.playerSize),s=(E=(T=o.throughputEstimation$.getValue())==null?void 0:T.toFixed(0))!=null?E:0,d=(A=(P=o.rttEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?A:0,l=o.isAutoQualityEnabled$.getValue()?"auto":"manual",p=`${Zs} (core: ${oh.VERSION}, stat: ${nh.VERSION}, shared: ${ed.VERSION})`,m=Ce(i.state.errorLog$),$=m.length?`
49
49
  `+m.map((H,j)=>{var Y;let O=`${j}) Type: ${H.id}
50
50
  `,X=`Message: ${H.message} (${H.thrown})
51
51
  `,oe=`Trace: ${(Y=H.thrown)==null?void 0:Y.stack}