UNPKG

@tindtechnologies/universalviewer

Version:

The Universal Viewer is a community-developed open source project on a mission to help you share your 📚📜📰📽️📻🗿 with the 🌎

2 lines (1 loc) 1.63 kB
import{a as o}from"./chunk-RQUDVHEA.js";var h=function(l,u,n,r){return new(n||(n=Promise))(function(i,t){function c(e){try{f(r.next(e))}catch(a){t(a)}}function s(e){try{f(r.throw(e))}catch(a){t(a)}}function f(e){e.done?i(e.value):new n(function(a){a(e.value)}).then(c,s)}f((r=r.apply(l,u||[])).next())})},v=function(l,u){var n={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]},r,i,t,c;return c={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function s(e){return function(a){return f([e,a])}}function f(e){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(t=e[0]&2?i.return:e[0]?i.throw||((t=i.return)&&t.call(i),0):i.next)&&!(t=t.call(i,e[1])).done)return t;switch(i=0,t&&(e=[e[0]&2,t.value]),e[0]){case 0:case 1:t=e;break;case 4:return n.label++,{value:e[1],done:!1};case 5:n.label++,i=e[1],e=[0];continue;case 7:e=n.ops.pop(),n.trys.pop();continue;default:if(t=n.trys,!(t=t.length>0&&t[t.length-1])&&(e[0]===6||e[0]===2)){n=0;continue}if(e[0]===3&&(!t||e[1]>t[0]&&e[1]<t[3])){n.label=e[1];break}if(e[0]===6&&n.label<t[1]){n.label=t[1],t=e;break}if(t&&n.label<t[2]){n.label=t[2],n.ops.push(e);break}t[2]&&n.ops.pop(),n.trys.pop();continue}e=u.call(l,n)}catch(a){e=[6,a],i=0}finally{r=t=0}if(e[0]&5)throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}},y=void 0,w=function(l){return h(y,void 0,void 0,function(){var u,n;return v(this,function(r){switch(r.label){case 0:return[4,o.get(l)];case 1:return u=r.sent(),n=u,n?[4,u.isActive()]:[3,3];case 2:n=r.sent(),r.label=3;case 3:return[2,!!n]}})})};export{w as a};