@htmlbricks/hb-modal-video 0.50.0-alpha.19 → 0.50.0-alpha.9
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/main.iife.js +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
var zn=Object.defineProperty;var $r=y=>{throw TypeError(y)};var Jn=(y,b,O)=>b in y?zn(y,b,{enumerable:!0,configurable:!0,writable:!0,value:O}):y[b]=O;var Y=(y,b,O)=>Jn(y,typeof b!="symbol"?b+"":b,O),gr=(y,b,O)=>b.has(y)||$r("Cannot "+O);var x=(y,b,O)=>(gr(y,b,"read from private field"),O?O.call(y):b.get(y)),mt=(y,b,O)=>b.has(y)?$r("Cannot add the same private member more than once"):b instanceof WeakSet?b.add(y):b.set(y,O),$t=(y,b,O,Ie)=>(gr(y,b,"write to private field"),Ie?Ie.call(y,O):b.set(y,O),O);(function(y){"use strict";var Q,M;const b="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(b);const O=1,Ie=2,gt="[",pt="[!",wt="]",Se={},C=Symbol(),Ze=!1,q=2,yt=4,Le=8,Qe=16,z=32,_e=64,De=128,L=256,Me=512,R=1024,J=2048,de=4096,he=8192,je=16384,pr=32768,et=65536,wr=1<<19,Et=1<<20,tt=Symbol("$state"),yr=Symbol("legacy props"),Er=Symbol("");var bt=Array.isArray,br=Array.prototype.indexOf,Tr=Array.from,Fe=Object.keys,qe=Object.defineProperty,me=Object.getOwnPropertyDescriptor,Nr=Object.getOwnPropertyDescriptors,Or=Object.prototype,Rr=Array.prototype,Tt=Object.getPrototypeOf;function Ar(e){for(var t=0;t<e.length;t++)e[t]()}let Ve=!1,rt=[];function Nt(){Ve=!1;const e=rt.slice();rt=[],Ar(e)}function Ot(e){Ve||(Ve=!0,queueMicrotask(Nt)),rt.push(e)}function Sr(){Ve&&Nt()}function Rt(e){return e===this.v}function Cr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function xr(e){return!Cr(e,this.v)}function kr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Pr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ir(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Lr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Dr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Mr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function jr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Fr(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function qr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let Vr=!1;function H(e,t){var r={f:0,v:e,reactions:null,equals:Rt,rv:0,wv:0};return r}function At(e){return Yr(H(e))}function St(e,t=!1){const r=H(e);return t||(r.equals=xr),r}function Yr(e){return g!==null&&!B&&g.f&q&&(W===null?zr([e]):W.push(e)),e}function D(e,t){return g!==null&&!B&&ur()&&g.f&(q|Qe)&&(W===null||!W.includes(e))&&qr(),Hr(e,t)}function Hr(e,t){return e.equals(t)||(e.v,e.v=t,e.wv=Gt(),Ct(e,J),p!==null&&p.f&R&&!(p.f&(z|_e))&&(Z===null?Jr([e]):Z.push(e))),t}function Ct(e,t){var r=e.reactions;if(r!==null)for(var i=r.length,n=0;n<i;n++){var l=r[n],s=l.f;s&J||(X(l,t),s&(R|L)&&(s&q?Ct(l,de):Xe(l)))}}function xt(e){var t=q|J,r=g!==null&&g.f&q?g:null;return p===null||r!==null&&r.f&L?t|=L:p.f|=Et,{ctx:I,deps:null,effects:null,equals:Rt,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:r??p}}function kt(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)se(t[r])}}function Br(e){for(var t=e.parent;t!==null;){if(!(t.f&q))return t;t=t.parent}return null}function Gr(e){var t,r=p;U(Br(e));try{kt(e),t=Wt(e)}finally{U(r)}return t}function Pt(e){var t=Gr(e),r=(ie||e.f&L)&&e.deps!==null?de:R;X(e,r),e.equals(t)||(e.v=t,e.wv=Gt())}function nt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let T=!1;function ee(e){T=e}let E;function te(e){if(e===null)throw nt(),Se;return E=e}function Ye(){return te(ne(E))}function $e(e){if(T){if(ne(E)!==null)throw nt(),Se;E=e}}function It(e=1){if(T){for(var t=e,r=E;t--;)r=ne(r);E=r}}function Ur(){for(var e=0,t=E;;){if(t.nodeType===8){var r=t.data;if(r===wt){if(e===0)return t;e-=1}else(r===gt||r===pt)&&(e+=1)}var i=ne(t);t.remove(),t=i}}function re(e,t=null,r){if(typeof e!="object"||e===null||tt in e)return e;const i=Tt(e);if(i!==Or&&i!==Rr)return e;var n=new Map,l=bt(e),s=H(0);l&&n.set("length",H(e.length));var u;return new Proxy(e,{defineProperty(o,a,c){(!("value"in c)||c.configurable===!1||c.enumerable===!1||c.writable===!1)&&Mr();var v=n.get(a);return v===void 0?(v=H(c.value),n.set(a,v)):D(v,re(c.value,u)),!0},deleteProperty(o,a){var c=n.get(a);if(c===void 0)a in o&&n.set(a,H(C));else{if(l&&typeof a=="string"){var v=n.get("length"),f=Number(a);Number.isInteger(f)&&f<v.v&&D(v,f)}D(c,C),Lt(s)}return!0},get(o,a,c){var $;if(a===tt)return e;var v=n.get(a),f=a in o;if(v===void 0&&(!f||($=me(o,a))!=null&&$.writable)&&(v=H(re(f?o[a]:C,u)),n.set(a,v)),v!==void 0){var _=P(v);return _===C?void 0:_}return Reflect.get(o,a,c)},getOwnPropertyDescriptor(o,a){var c=Reflect.getOwnPropertyDescriptor(o,a);if(c&&"value"in c){var v=n.get(a);v&&(c.value=P(v))}else if(c===void 0){var f=n.get(a),_=f==null?void 0:f.v;if(f!==void 0&&_!==C)return{enumerable:!0,configurable:!0,value:_,writable:!0}}return c},has(o,a){var _;if(a===tt)return!0;var c=n.get(a),v=c!==void 0&&c.v!==C||Reflect.has(o,a);if(c!==void 0||p!==null&&(!v||(_=me(o,a))!=null&&_.writable)){c===void 0&&(c=H(v?re(o[a],u):C),n.set(a,c));var f=P(c);if(f===C)return!1}return v},set(o,a,c,v){var N;var f=n.get(a),_=a in o;if(l&&a==="length")for(var $=c;$<f.v;$+=1){var h=n.get($+"");h!==void 0?D(h,C):$ in o&&(h=H(C),n.set($+"",h))}f===void 0?(!_||(N=me(o,a))!=null&&N.writable)&&(f=H(void 0),D(f,re(c,u)),n.set(a,f)):(_=f.v!==C,D(f,re(c,u)));var S=Reflect.getOwnPropertyDescriptor(o,a);if(S!=null&&S.set&&S.set.call(v,c),!_){if(l&&typeof a=="string"){var j=n.get("length"),d=Number(a);Number.isInteger(d)&&d>=j.v&&D(j,d+1)}Lt(s)}return!0},ownKeys(o){P(s);var a=Reflect.ownKeys(o).filter(f=>{var _=n.get(f);return _===void 0||_.v!==C});for(var[c,v]of n)v.v!==C&&!(c in o)&&a.push(c);return a},setPrototypeOf(){jr()}})}function Lt(e,t=1){D(e,e.v+t)}var Dt,Mt,jt,Ft;function it(){if(Dt===void 0){Dt=window,Mt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype;jt=me(t,"firstChild").get,Ft=me(t,"nextSibling").get,e.__click=void 0,e.__className="",e.__attributes=null,e.__styles=null,e.__e=void 0,Text.prototype.__t=void 0}}function ge(e=""){return document.createTextNode(e)}function pe(e){return jt.call(e)}function ne(e){return Ft.call(e)}function we(e,t){if(!T)return pe(e);var r=pe(E);return r===null&&(r=E.appendChild(ge())),te(r),r}function Wr(e,t){if(!T){var r=pe(e);return r instanceof Comment&&r.data===""?ne(r):r}return E}function qt(e,t=1,r=!1){let i=T?E:e;for(var n;t--;)n=i,i=ne(i);if(!T)return i;var l=i==null?void 0:i.nodeType;if(r&&l!==3){var s=ge();return i===null?n==null||n.after(s):i.before(s),te(s),s}return te(i),i}function Xr(e){e.textContent=""}const Vt=0,Kr=1;let He=!1,Be=Vt,Ce=!1,xe=null,ye=!1,lt=!1;function Yt(e){ye=e}function Ht(e){lt=e}let ae=[],Ee=0,Zn=[],g=null,B=!1;function G(e){g=e}let p=null;function U(e){p=e}let W=null;function zr(e){W=e}let A=null,k=0,Z=null;function Jr(e){Z=e}let Bt=1,Ge=0,ie=!1;function Gt(){return++Bt}function ke(e){var v;var t=e.f;if(t&J)return!0;if(t&de){var r=e.deps,i=(t&L)!==0;if(r!==null){var n,l,s=(t&Me)!==0,u=i&&p!==null&&!ie,o=r.length;if(s||u){var a=e,c=a.parent;for(n=0;n<o;n++)l=r[n],(s||!((v=l==null?void 0:l.reactions)!=null&&v.includes(a)))&&(l.reactions??(l.reactions=[])).push(a);s&&(a.f^=Me),u&&c!==null&&!(c.f&L)&&(a.f^=L)}for(n=0;n<o;n++)if(l=r[n],ke(l)&&Pt(l),l.wv>e.wv)return!0}(!i||p!==null&&!ie)&&X(e,R)}return!1}function Zr(e,t){for(var r=t;r!==null;){if(r.f&De)try{r.fn(e);return}catch{r.f^=De}r=r.parent}throw He=!1,e}function Qr(e){return(e.f&je)===0&&(e.parent===null||(e.parent.f&De)===0)}function Ue(e,t,r,i){if(He){if(r===null&&(He=!1),Qr(t))throw e;return}r!==null&&(He=!0);{Zr(e,t);return}}function Ut(e,t,r=!0){var i=e.reactions;if(i!==null)for(var n=0;n<i.length;n++){var l=i[n];l.f&q?Ut(l,t,!1):t===l&&(r?X(l,J):l.f&R&&X(l,de),Xe(l))}}function Wt(e){var _;var t=A,r=k,i=Z,n=g,l=ie,s=W,u=I,o=B,a=e.f;A=null,k=0,Z=null,g=a&(z|_e)?null:e,ie=(a&L)!==0&&(!ye||n===null||o),W=null,ir(e.ctx),B=!1,Ge++;try{var c=(0,e.fn)(),v=e.deps;if(A!==null){var f;if(We(e,k),v!==null&&k>0)for(v.length=k+A.length,f=0;f<A.length;f++)v[k+f]=A[f];else e.deps=v=A;if(!ie)for(f=k;f<v.length;f++)((_=v[f]).reactions??(_.reactions=[])).push(e)}else v!==null&&k<v.length&&(We(e,k),v.length=k);if(ur()&&Z!==null&&!B&&v!==null&&!(e.f&(q|de|J)))for(f=0;f<Z.length;f++)Ut(Z[f],e);return n!==null&&Ge++,c}finally{A=t,k=r,Z=i,g=n,ie=l,W=s,ir(u),B=o}}function en(e,t){let r=t.reactions;if(r!==null){var i=br.call(r,e);if(i!==-1){var n=r.length-1;n===0?r=t.reactions=null:(r[i]=r[n],r.pop())}}r===null&&t.f&q&&(A===null||!A.includes(t))&&(X(t,de),t.f&(L|Me)||(t.f^=Me),kt(t),We(t,0))}function We(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)en(e,r[i])}function st(e){var t=e.f;if(!(t&je)){X(e,R);var r=p,i=I;p=e;try{t&Qe?dn(e):Qt(e),Zt(e);var n=Wt(e);e.teardown=typeof n=="function"?n:null,e.wv=Bt;var l=e.deps,s;Ze&&Vr&&e.f&J}catch(u){Ue(u,e,r,i||e.ctx)}finally{p=r}}}function Xt(){if(Ee>1e3){Ee=0;try{Lr()}catch(e){if(xe!==null)Ue(e,xe,null);else throw e}}Ee++}function Kt(e){var t=e.length;if(t!==0){Xt();var r=ye;ye=!0;try{for(var i=0;i<t;i++){var n=e[i];n.f&R||(n.f^=R);var l=nn(n);tn(l)}}finally{ye=r}}}function tn(e){var t=e.length;if(t!==0)for(var r=0;r<t;r++){var i=e[r];if(!(i.f&(je|he)))try{ke(i)&&(st(i),i.deps===null&&i.first===null&&i.nodes_start===null&&(i.teardown===null?er(i):i.fn=null))}catch(n){Ue(n,i,null,i.ctx)}}}function rn(){if(Ce=!1,Ee>1001)return;const e=ae;ae=[],Kt(e),Ce||(Ee=0,xe=null)}function Xe(e){Be===Vt&&(Ce||(Ce=!0,queueMicrotask(rn))),xe=e;for(var t=e;t.parent!==null;){t=t.parent;var r=t.f;if(r&(_e|z)){if(!(r&R))return;t.f^=R}}ae.push(t)}function nn(e){var t=[],r=e.first;e:for(;r!==null;){var i=r.f,n=(i&z)!==0,l=n&&(i&R)!==0,s=r.next;if(!l&&!(i&he)){if(i&yt)t.push(r);else if(n)r.f^=R;else{var u=g;try{g=r,ke(r)&&st(r)}catch(c){Ue(c,r,null,r.ctx)}finally{g=u}}var o=r.first;if(o!==null){r=o;continue}}if(s===null){let c=r.parent;for(;c!==null;){if(e===c)break e;var a=c.next;if(a!==null){r=a;continue e}c=c.parent}}r=s}return t}function le(e){var t=Be,r=ae;try{Xt();const n=[];Be=Kr,ae=n,Ce=!1,Kt(r);var i=e==null?void 0:e();return Sr(),(ae.length>0||n.length>0)&&le(),Ee=0,xe=null,i}finally{Be=t,ae=r}}function P(e){var t=e.f,r=(t&q)!==0;if(g!==null&&!B){W!==null&&W.includes(e)&&Fr();var i=g.deps;e.rv<Ge&&(e.rv=Ge,A===null&&i!==null&&i[k]===e?k++:A===null?A=[e]:(!ie||!A.includes(e))&&A.push(e))}else if(r&&e.deps===null&&e.effects===null){var n=e,l=n.parent;l!==null&&!(l.f&L)&&(n.f^=L)}return r&&(n=e,ke(n)&&Pt(n)),e.v}function ln(e){var t=B;try{return B=!0,e()}finally{B=t}}const sn=-7169;function X(e,t){e.f=e.f&sn|t}function un(e){p===null&&g===null&&Ir(),g!==null&&g.f&L&&p===null&&Pr(),lt&&kr()}function an(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function oe(e,t,r,i=!0){var n=(e&_e)!==0,l=p,s={ctx:I,deps:null,nodes_start:null,nodes_end:null,f:e|J,first:null,fn:t,last:null,next:null,parent:n?null:l,prev:null,teardown:null,transitions:null,wv:0};if(r){var u=ye;try{Yt(!0),st(s),s.f|=pr}catch(c){throw se(s),c}finally{Yt(u)}}else t!==null&&Xe(s);var o=r&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&(Et|De))===0;if(!o&&!n&&i&&(l!==null&&an(s,l),g!==null&&g.f&q)){var a=g;(a.effects??(a.effects=[])).push(s)}return s}function on(e){const t=oe(Le,null,!1);return X(t,R),t.teardown=e,t}function fn(e){un();var t=p!==null&&(p.f&z)!==0&&I!==null&&!I.m;if(t){var r=I;(r.e??(r.e=[])).push({fn:e,effect:p,reaction:g})}else{var i=zt(e);return i}}function cn(e){const t=oe(_e,e,!0);return()=>{se(t)}}function vn(e){const t=oe(_e,e,!0);return(r={})=>new Promise(i=>{r.outro?at(t,()=>{se(t),i(void 0)}):(se(t),i(void 0))})}function zt(e){return oe(yt,e,!1)}function _n(e){return oe(Le,e,!0)}function be(e,t=[],r=xt){const i=t.map(r);return Jt(()=>e(...i.map(P)))}function Jt(e,t=0){return oe(Le|Qe|t,e,!0)}function ut(e,t=!0){return oe(Le|z,e,!0,t)}function Zt(e){var t=e.teardown;if(t!==null){const r=lt,i=g;Ht(!0),G(null);try{t.call(null)}finally{Ht(r),G(i)}}}function Qt(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){var i=r.next;se(r,t),r=i}}function dn(e){for(var t=e.first;t!==null;){var r=t.next;t.f&z||se(t),t=r}}function se(e,t=!0){var r=!1;if((t||e.f&wr)&&e.nodes_start!==null){for(var i=e.nodes_start,n=e.nodes_end;i!==null;){var l=i===n?null:ne(i);i.remove(),i=l}r=!0}Qt(e,t&&!r),We(e,0),X(e,je);var s=e.transitions;if(s!==null)for(const o of s)o.stop();Zt(e);var u=e.parent;u!==null&&u.first!==null&&er(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function er(e){var t=e.parent,r=e.prev,i=e.next;r!==null&&(r.next=i),i!==null&&(i.prev=r),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=r))}function at(e,t){var r=[];tr(e,r,!0),hn(r,()=>{se(e),t&&t()})}function hn(e,t){var r=e.length;if(r>0){var i=()=>--r||t();for(var n of e)n.out(i)}else t()}function tr(e,t,r){if(!(e.f&he)){if(e.f^=he,e.transitions!==null)for(const s of e.transitions)(s.is_global||r)&&t.push(s);for(var i=e.first;i!==null;){var n=i.next,l=(i.f&et)!==0||(i.f&z)!==0;tr(i,t,l?r:!1),i=n}}}function rr(e){nr(e,!0)}function nr(e,t){if(e.f&he){e.f^=he,e.f&R||(e.f^=R),ke(e)&&(X(e,J),Xe(e));for(var r=e.first;r!==null;){var i=r.next,n=(r.f&et)!==0||(r.f&z)!==0;nr(r,n?t:!1),r=i}if(e.transitions!==null)for(const l of e.transitions)(l.is_global||t)&&l.in()}}let I=null;function ir(e){I=e}function lr(e,t=!1,r){I={p:I,c:null,e:null,m:!1,s:e,x:null,l:null}}function sr(e){const t=I;if(t!==null){e!==void 0&&(t.x=e);const s=t.e;if(s!==null){var r=p,i=g;t.e=null;try{for(var n=0;n<s.length;n++){var l=s[n];U(l.effect),G(l.reaction),zt(l.fn)}}finally{U(r),G(i)}}I=t.p,t.m=!0}return e||{}}function ur(){return!0}const mn=["touchstart","touchmove"];function $n(e){return mn.includes(e)}function gn(e){var t=g,r=p;G(null),U(null);try{return e()}finally{G(t),U(r)}}const pn=new Set,ar=new Set;function wn(e,t,r,i={}){function n(l){if(i.capture||Pe.call(t,l),!l.cancelBubble)return gn(()=>r==null?void 0:r.call(this,l))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Ot(()=>{t.addEventListener(e,n,i)}):t.addEventListener(e,n,i),n}function yn(e,t,r,i,n){var l={capture:i,passive:n},s=wn(e,t,r,l);(t===document.body||t===window||t===document)&&on(()=>{t.removeEventListener(e,s,l)})}function Pe(e){var d;var t=this,r=t.ownerDocument,i=e.type,n=((d=e.composedPath)==null?void 0:d.call(e))||[],l=n[0]||e.target,s=0,u=e.__root;if(u){var o=n.indexOf(u);if(o!==-1&&(t===document||t===window)){e.__root=t;return}var a=n.indexOf(t);if(a===-1)return;o<=a&&(s=o)}if(l=n[s]||e.target,l!==t){qe(e,"currentTarget",{configurable:!0,get(){return l||r}});var c=g,v=p;G(null),U(null);try{for(var f,_=[];l!==null;){var $=l.assignedSlot||l.parentNode||l.host||null;try{var h=l["__"+i];if(h!==void 0&&!l.disabled)if(bt(h)){var[S,...j]=h;S.apply(l,[e,...j])}else h.call(l,e)}catch(N){f?_.push(N):f=N}if(e.cancelBubble||$===t||$===null)break;l=$}if(f){for(let N of _)queueMicrotask(()=>{throw N});throw f}}finally{e.__root=t,delete e.currentTarget,G(c),U(v)}}}function En(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function ue(e,t){var r=p;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function Ke(e,t){var r=(t&O)!==0,i=(t&Ie)!==0,n,l=!e.startsWith("<!>");return()=>{if(T)return ue(E,null),E;n===void 0&&(n=En(l?e:"<!>"+e),r||(n=pe(n)));var s=i||Mt?document.importNode(n,!0):n.cloneNode(!0);if(r){var u=pe(s),o=s.lastChild;ue(u,o)}else ue(s,s);return s}}function bn(e=""){if(!T){var t=ge(e+"");return ue(t,t),t}var r=E;return r.nodeType!==3&&(r.before(r=ge()),te(r)),ue(r,r),r}function Tn(){if(T)return ue(E,null),E;var e=document.createDocumentFragment(),t=document.createComment(""),r=ge();return e.append(t,r),ue(t,r),e}function fe(e,t){if(T){p.nodes_end=E,Ye();return}e!==null&&e.before(t)}function Nn(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=r,e.nodeValue=r+"")}function or(e,t){return fr(e,t)}function On(e,t){it(),t.intro=t.intro??!1;const r=t.target,i=T,n=E;try{for(var l=pe(r);l&&(l.nodeType!==8||l.data!==gt);)l=ne(l);if(!l)throw Se;ee(!0),te(l),Ye();const s=fr(e,{...t,anchor:l});if(E===null||E.nodeType!==8||E.data!==wt)throw nt(),Se;return ee(!1),s}catch(s){if(s===Se)return t.recover===!1&&Dr(),it(),Xr(r),ee(!1),or(e,t);throw s}finally{ee(i),te(n)}}const Te=new Map;function fr(e,{target:t,anchor:r,props:i={},events:n,context:l,intro:s=!0}){it();var u=new Set,o=v=>{for(var f=0;f<v.length;f++){var _=v[f];if(!u.has(_)){u.add(_);var $=$n(_);t.addEventListener(_,Pe,{passive:$});var h=Te.get(_);h===void 0?(document.addEventListener(_,Pe,{passive:$}),Te.set(_,1)):Te.set(_,h+1)}}};o(Tr(pn)),ar.add(o);var a=void 0,c=vn(()=>{var v=r??t.appendChild(ge());return ut(()=>{if(l){lr({});var f=I;f.c=l}n&&(i.$$events=n),T&&ue(v,null),a=e(v,i)||{},T&&(p.nodes_end=E),l&&sr()}),()=>{var $;for(var f of u){t.removeEventListener(f,Pe);var _=Te.get(f);--_===0?(document.removeEventListener(f,Pe),Te.delete(f)):Te.set(f,_)}ar.delete(o),v!==r&&(($=v.parentNode)==null||$.removeChild(v))}});return ot.set(a,c),a}let ot=new WeakMap;function Rn(e,t){const r=ot.get(e);return r?(ot.delete(e),r(t)):Promise.resolve()}function ft(e,t,r=!1){T&&Ye();var i=e,n=null,l=null,s=C,u=r?et:0,o=!1;const a=(v,f=!0)=>{o=!0,c(f,v)},c=(v,f)=>{if(s===(s=v))return;let _=!1;if(T){const $=i.data===pt;!!s===$&&(i=Ur(),te(i),ee(!1),_=!0)}s?(n?rr(n):f&&(n=ut(()=>f(i))),l&&at(l,()=>{l=null})):(l?rr(l):f&&(l=ut(()=>f(i))),n&&at(n,()=>{n=null})),_&&ee(!0)};Jt(()=>{o=!1,t(a),o||c(null,null)},u),T&&(i=E)}function An(e,t,r,i,n){var u;T&&Ye();var l=(u=t.$$slots)==null?void 0:u[r],s=!1;l===!0&&(l=t[r],s=!0),l===void 0?n!==null&&n(e):l(e,s?()=>i:i)}function Sn(e,t){Ot(()=>{var r=e.getRootNode(),i=r.host?r:r.head??r.ownerDocument.head;if(!i.querySelector("#"+t.hash)){const n=document.createElement("style");n.id=t.hash,n.textContent=t.code,i.appendChild(n)}})}function ct(e,t,r,i){var n=e.__attributes??(e.__attributes={});T&&(n[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||n[t]!==(n[t]=r)&&(t==="style"&&"__styles"in e&&(e.__styles={}),t==="loading"&&(e[Er]=r),r==null?e.removeAttribute(t):typeof r!="string"&&cr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function vt(e,t,r){var i=g,n=p;let l=T;T&&ee(!1),G(null),U(null);try{(_t.has(e.nodeName)||!customElements||customElements.get(e.tagName.toLowerCase())?cr(e).includes(t):r&&typeof r=="object")?e[t]=r:ct(e,t,r==null?r:String(r))}finally{G(i),U(n),l&&ee(!0)}}var _t=new Map;function cr(e){var t=_t.get(e.nodeName);if(t)return t;_t.set(e.nodeName,t=[]);for(var r,i=e,n=Element.prototype;n!==i;){r=Nr(i);for(var l in r)r[l].set&&t.push(l);i=Tt(i)}return t}function Ne(e,t,r,i){var n;n=e[t];var l=i,s=!0,u=!1,o=()=>(u=!0,s&&(s=!1,l=i),l);n===void 0&&i!==void 0&&(n=o());var a;a=()=>{var _=e[t];return _===void 0?o():(s=!0,u=!1,_)};var c=!1,v=St(n),f=xt(()=>{var _=a(),$=P(v);return c?(c=!1,$):v.v=_});return function(_,$){if(arguments.length>0){const h=$?P(f):_;return f.equals(h)||(c=!0,D(v,h),u&&l!==void 0&&(l=h),ln(()=>P(f))),_}return P(f)}}function Cn(e){return new xn(e)}class xn{constructor(t){mt(this,Q);mt(this,M);var l;var r=new Map,i=(s,u)=>{var o=St(u);return r.set(s,o),o};const n=new Proxy({...t.props||{},$$events:{}},{get(s,u){return P(r.get(u)??i(u,Reflect.get(s,u)))},has(s,u){return u===yr?!0:(P(r.get(u)??i(u,Reflect.get(s,u))),Reflect.has(s,u))},set(s,u,o){return D(r.get(u)??i(u,o),o),Reflect.set(s,u,o)}});$t(this,M,(t.hydrate?On:or)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((l=t==null?void 0:t.props)!=null&&l.$$host)||t.sync===!1)&&le(),$t(this,Q,n.$$events);for(const s of Object.keys(x(this,M)))s==="$set"||s==="$destroy"||s==="$on"||qe(this,s,{get(){return x(this,M)[s]},set(u){x(this,M)[s]=u},enumerable:!0});x(this,M).$set=s=>{Object.assign(n,s)},x(this,M).$destroy=()=>{Rn(x(this,M))}}$set(t){x(this,M).$set(t)}$on(t,r){x(this,Q)[t]=x(this,Q)[t]||[];const i=(...n)=>r.call(this,...n);return x(this,Q)[t].push(i),()=>{x(this,Q)[t]=x(this,Q)[t].filter(n=>n!==i)}}$destroy(){x(this,M).$destroy()}}Q=new WeakMap,M=new WeakMap;let vr;typeof HTMLElement=="function"&&(vr=class extends HTMLElement{constructor(t,r,i){super();Y(this,"$$ctor");Y(this,"$$s");Y(this,"$$c");Y(this,"$$cn",!1);Y(this,"$$d",{});Y(this,"$$r",!1);Y(this,"$$p_d",{});Y(this,"$$l",{});Y(this,"$$l_u",new Map);Y(this,"$$me");this.$$ctor=t,this.$$s=r,i&&this.attachShadow({mode:"open"})}addEventListener(t,r,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const n=this.$$c.$on(t,r);this.$$l_u.set(r,n)}super.addEventListener(t,r,i)}removeEventListener(t,r,i){if(super.removeEventListener(t,r,i),this.$$c){const n=this.$$l_u.get(r);n&&(n(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(n){return l=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),fe(l,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},i=kn(this);for(const n of this.$$s)n in i&&(n==="default"&&!this.$$d.children?(this.$$d.children=t(n),r.default=!0):r[n]=t(n));for(const n of this.attributes){const l=this.$$g_p(n.name);l in this.$$d||(this.$$d[l]=ze(l,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Cn({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=cn(()=>{_n(()=>{var n;this.$$r=!0;for(const l of Fe(this.$$c)){if(!((n=this.$$p_d[l])!=null&&n.reflect))continue;this.$$d[l]=this.$$c[l];const s=ze(l,this.$$d[l],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,s)}this.$$r=!1})});for(const n in this.$$l)for(const l of this.$$l[n]){const s=this.$$c.$on(n,l);this.$$l_u.set(l,s)}this.$$l={}}}attributeChangedCallback(t,r,i){var n;this.$$r||(t=this.$$g_p(t),this.$$d[t]=ze(t,i,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return Fe(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function ze(e,t,r,i){var l;const n=(l=r[e])==null?void 0:l.type;if(t=n==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!r[e])return t;if(i==="toAttribute")switch(n){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(n){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function kn(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Pn(e,t,r,i,n,l){let s=class extends vr{constructor(){super(e,r,n),this.$$p_d=t}static get observedAttributes(){return Fe(t).map(u=>(t[u].attribute||u).toLowerCase())}};return Fe(t).forEach(u=>{qe(s.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(o){var v;o=ze(u,o,t),this.$$d[u]=o;var a=this.$$c;if(a){var c=(v=me(a,u))==null?void 0:v.get;c?a[u]=o:a.$set({[u]:o})}}})}),i.forEach(u=>{qe(s.prototype,u,{get(){var o;return(o=this.$$c)==null?void 0:o[u]}})}),e.element=s,s}function In(e,t){var i,n;let r="";if(e&&(t!=null&&t.length)&&((i=Object.keys(e))!=null&&i.length)&&((n=t==null?void 0:t.filter(l=>Object.keys(e).includes(l.name)))!=null&&n.length))for(const l of Object.keys(e))(t==null?void 0:t.filter(u=>u.name===l&&u.defaultValue!==e[l]))&&(r+=`${l}:${e[l]};`);return r}function Ln(e){var i;const t=((i=e==null?void 0:e.repoName.split("/"))==null?void 0:i[1])||(e==null?void 0:e.repoName);if(!t)throw new Error("wrong componentPath "+(e==null?void 0:e.repoName));if(!(e!=null&&e.version))throw new Error("wrong version "+(e==null?void 0:e.version));const r=(e==null?void 0:e.iifePath)||"main.iife.js";if(!document.getElementById(t+"-script"))try{const n=document.createElement("script");n.id=t+"-script",n.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${r}`,e!=null&&e.local&&location.href.includes("localhost")&&(n.src=`${e.local}`),document.head.appendChild(n)}catch(n){console.warn(n)}}function Dn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Oe={},dt,_r;function Mn(){if(_r)return dt;_r=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,n=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,u=/^\s+|\s+$/g,o=`
|
|
2
|
-
`,a="/",c="*",v="",f="comment",_="declaration";dt=function(h,S){if(typeof h!="string")throw new TypeError("First argument must be a string");if(!h)return[];S=S||{};var j=1,d=1;function N(w){var m=w.match(t);m&&(j+=m.length);var V=w.lastIndexOf(o);d=~V?w.length-V:d+w.length}function Re(){var w={line:j,column:d};return function(m){return m.position=new Ae(w),K(),m}}function Ae(w){this.start=w,this.end={line:j,column:d},this.source=S.source}Ae.prototype.content=h;function ce(w){var m=new Error(S.source+":"+j+":"+d+": "+w);if(m.reason=w,m.filename=S.source,m.line=j,m.column=d,m.source=h,!S.silent)throw m}function F(w){var m=w.exec(h);if(m){var V=m[0];return N(V),h=h.slice(V.length),m}}function K(){F(r)}function ve(w){var m;for(w=w||[];m=Je();)m!==!1&&w.push(m);return w}function Je(){var w=Re();if(!(a!=h.charAt(0)||c!=h.charAt(1))){for(var m=2;v!=h.charAt(m)&&(c!=h.charAt(m)||a!=h.charAt(m+1));)++m;if(m+=2,v===h.charAt(m-1))return ce("End of comment missing");var V=h.slice(2,m-2);return d+=2,N(V),h=h.slice(m),d+=2,w({type:f,comment:V})}}function Wn(){var w=Re(),m=F(i);if(m){if(Je(),!F(n))return ce("property missing ':'");var V=F(l),Kn=w({type:_,property:$(m[0].replace(e,v)),value:V?$(V[0].replace(e,v)):v});return F(s),Kn}}function Xn(){var w=[];ve(w);for(var m;m=Wn();)m!==!1&&(w.push(m),ve(w));return w}return K(),Xn()};function $(h){return h?h.replace(u,v):v}return dt}var dr;function jn(){if(dr)return Oe;dr=1;var e=Oe&&Oe.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.default=r;var t=e(Mn());function r(i,n){var l=null;if(!i||typeof i!="string")return l;var s=(0,t.default)(i),u=typeof n=="function";return s.forEach(function(o){if(o.type==="declaration"){var a=o.property,c=o.value;u?n(a,c,o):c&&(l=l||{},l[a]=c)}}),l}return Oe}var Fn=jn();const hr=Dn(Fn),qn=hr.default||hr,ht={vars:[{name:"--bs-primary",valueType:"color",theme:"bootstrap",defaultValue:"#07689f"},{name:"--bs-secondary",valueType:"color",theme:"bootstrap",defaultValue:"#c9d6df"},{name:"--bs-success",valueType:"color",theme:"bootstrap",defaultValue:"#11d3bc"},{name:"--bs-info",valueType:"color",theme:"bootstrap",defaultValue:"#a2d5f2"},{name:"--bs-warning",valueType:"color",theme:"bootstrap",defaultValue:"#ffc107"},{name:"--bs-danger",valueType:"color",theme:"bootstrap",defaultValue:"#f67280"},{name:"--hb-modal-max-width",valueType:"htmlsize",defaultValue:"500px"}]},Vn={version:"0.50.0-alpha.
|
|
2
|
+
`,a="/",c="*",v="",f="comment",_="declaration";dt=function(h,S){if(typeof h!="string")throw new TypeError("First argument must be a string");if(!h)return[];S=S||{};var j=1,d=1;function N(w){var m=w.match(t);m&&(j+=m.length);var V=w.lastIndexOf(o);d=~V?w.length-V:d+w.length}function Re(){var w={line:j,column:d};return function(m){return m.position=new Ae(w),K(),m}}function Ae(w){this.start=w,this.end={line:j,column:d},this.source=S.source}Ae.prototype.content=h;function ce(w){var m=new Error(S.source+":"+j+":"+d+": "+w);if(m.reason=w,m.filename=S.source,m.line=j,m.column=d,m.source=h,!S.silent)throw m}function F(w){var m=w.exec(h);if(m){var V=m[0];return N(V),h=h.slice(V.length),m}}function K(){F(r)}function ve(w){var m;for(w=w||[];m=Je();)m!==!1&&w.push(m);return w}function Je(){var w=Re();if(!(a!=h.charAt(0)||c!=h.charAt(1))){for(var m=2;v!=h.charAt(m)&&(c!=h.charAt(m)||a!=h.charAt(m+1));)++m;if(m+=2,v===h.charAt(m-1))return ce("End of comment missing");var V=h.slice(2,m-2);return d+=2,N(V),h=h.slice(m),d+=2,w({type:f,comment:V})}}function Wn(){var w=Re(),m=F(i);if(m){if(Je(),!F(n))return ce("property missing ':'");var V=F(l),Kn=w({type:_,property:$(m[0].replace(e,v)),value:V?$(V[0].replace(e,v)):v});return F(s),Kn}}function Xn(){var w=[];ve(w);for(var m;m=Wn();)m!==!1&&(w.push(m),ve(w));return w}return K(),Xn()};function $(h){return h?h.replace(u,v):v}return dt}var dr;function jn(){if(dr)return Oe;dr=1;var e=Oe&&Oe.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.default=r;var t=e(Mn());function r(i,n){var l=null;if(!i||typeof i!="string")return l;var s=(0,t.default)(i),u=typeof n=="function";return s.forEach(function(o){if(o.type==="declaration"){var a=o.property,c=o.value;u?n(a,c,o):c&&(l=l||{},l[a]=c)}}),l}return Oe}var Fn=jn();const hr=Dn(Fn),qn=hr.default||hr,ht={vars:[{name:"--bs-primary",valueType:"color",theme:"bootstrap",defaultValue:"#07689f"},{name:"--bs-secondary",valueType:"color",theme:"bootstrap",defaultValue:"#c9d6df"},{name:"--bs-success",valueType:"color",theme:"bootstrap",defaultValue:"#11d3bc"},{name:"--bs-info",valueType:"color",theme:"bootstrap",defaultValue:"#a2d5f2"},{name:"--bs-warning",valueType:"color",theme:"bootstrap",defaultValue:"#ffc107"},{name:"--bs-danger",valueType:"color",theme:"bootstrap",defaultValue:"#f67280"},{name:"--hb-modal-max-width",valueType:"htmlsize",defaultValue:"500px"}]},Vn={version:"0.50.0-alpha.009"};var Yn=Ke('<span slot="title"><!></span>'),Hn=Ke('<div style="ratio:16/9;width:100%;text-align: center;"><iframe style="border:0;aspect-ratio: 16 / 9;width:100%" title="YouTube video" allowfullscreen=""></iframe></div>'),Bn=Ke('<div style="aspect-ratio: 16 / 9;width:100%;text-align: center;background-color: black;"><video controls style="aspect-ratio: 16 / 9;width:100%"><track kind="captions"> <source type="video/mp4"> Your browser does not support the video tag.</video></div>',2),Gn=Ke('<hb-dialog><!> <div slot="body-content"><!></div> <span slot="modal-footer"></span></hb-dialog>',2);const Un={hash:"svelte-40i2eu",code:'@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host {font-family:"Roboto", sans-serif;}'};function mr(e,t){lr(t,!0),Sn(e,Un);function r(d,N){t.$$host.dispatchEvent(new CustomEvent(d,{detail:N}))}Ln({repoName:"@htmlbricks/hb-dialog",version:Vn.version});let i=At(""),n=At(re({})),l=Ne(t,"id",7,""),s=Ne(t,"style",7,""),u=Ne(t,"item",7,"defaultItem"),o=Ne(t,"uri",7,""),a=Ne(t,"title",7,""),c=Ne(t,"provider",7,"");fn(()=>{s()&&(D(n,re(qn(s()))),D(i,re(In(P(n),ht==null?void 0:ht.vars))))});function v(d){d.show?u(d.id):(u(""),o(""),a("")),r("videoModalEvent",{id:u(),show:d.show})}var f=Gn();be(()=>vt(f,"style",P(i))),be(()=>vt(f,"id",u())),be(()=>vt(f,"show",o()?"yes":"no"));var _=we(f);{var $=d=>{var N=Yn(),Re=we(N);An(Re,t,"title",{},Ae=>{var ce=bn();be(()=>Nn(ce,`Video: ${a()??""}`)),fe(Ae,ce)}),$e(N),fe(d,N)};ft(_,d=>{a()&&d($)})}var h=qt(_,2),S=we(h);{var j=d=>{var N=Tn(),Re=Wr(N);{var Ae=F=>{var K=Hn(),ve=we(K);$e(K),be(()=>ct(ve,"src",o())),fe(F,K)},ce=F=>{var K=Bn(),ve=we(K),Je=qt(we(ve),2);It(),$e(ve),$e(K),be(()=>ct(Je,"src",o())),fe(F,K)};ft(Re,F=>{c()==="youtube"?F(Ae):F(ce,!1)})}fe(d,N)};ft(S,d=>{o()&&d(j)})}return $e(h),It(2),$e(f),yn("modalShow",f,d=>v(d.detail)),fe(e,f),sr({get id(){return l()},set id(d=""){l(d),le()},get style(){return s()},set style(d=""){s(d),le()},get item(){return u()},set item(d="defaultItem"){u(d),le()},get uri(){return o()},set uri(d=""){o(d),le()},get title(){return a()},set title(d=""){a(d),le()},get provider(){return c()},set provider(d=""){c(d),le()}})}customElements.define("hb-modal-video",Pn(mr,{id:{},style:{},item:{},uri:{},title:{},provider:{}},["title"],[],!0)),y.Component=mr,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})})(this["modal-video"]=this["modal-video"]||{});
|
package/manifest.json
CHANGED