Socket
Socket
Sign inDemoInstall

nobj-app-channel

Package Overview
Dependencies
0
Maintainers
1
Versions
180
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.38 to 0.4.39

80

lib.js
/*
(C) 2000 - 2020 Nebular Streams - All Rights Reserved.
*/
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(f){return f.raw=f};$jscomp.createTemplateTagFirstArgWithRaw=function(f,l){f.raw=l;return f};$jscomp.arrayIteratorImpl=function(f){var l=0;return function(){return l<f.length?{done:!1,value:f[l++]}:{done:!0}}};$jscomp.arrayIterator=function(f){return{next:$jscomp.arrayIteratorImpl(f)}};$jscomp.makeIterator=function(f){var l="undefined"!=typeof Symbol&&Symbol.iterator&&f[Symbol.iterator];return l?l.call(f):$jscomp.arrayIterator(f)};
$jscomp.arrayFromIterator=function(f){for(var l,p=[];!(l=f.next()).done;)p.push(l.value);return p};$jscomp.arrayFromIterable=function(f){return f instanceof Array?f:$jscomp.arrayFromIterator($jscomp.makeIterator(f))};$jscomp.checkStringArgs=function(f,l,p){if(null==f)throw new TypeError("The 'this' value for String.prototype."+p+" must not be null or undefined");if(l instanceof RegExp)throw new TypeError("First argument to String.prototype."+p+" must not be a regular expression");return f+""};
$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(f,l,p){if(f==Array.prototype||f==Object.prototype)return f;f[l]=p.value;return f};
$jscomp.getGlobal=function(f){f=["object"==typeof globalThis&&globalThis,f,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var l=0;l<f.length;++l){var p=f[l];if(p&&p.Math==Math)return p}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};
$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(f,l){var p=$jscomp.propertyToPolyfillSymbol[l];if(null==p)return f[l];p=f[p];return void 0!==p?p:f[l]};$jscomp.polyfill=function(f,l,p,r){l&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(f,l,p,r):$jscomp.polyfillUnisolated(f,l,p,r))};
$jscomp.polyfillUnisolated=function(f,l,p,r){p=$jscomp.global;f=f.split(".");for(r=0;r<f.length-1;r++){var n=f[r];if(!(n in p))return;p=p[n]}f=f[f.length-1];r=p[f];l=l(r);l!=r&&null!=l&&$jscomp.defineProperty(p,f,{configurable:!0,writable:!0,value:l})};
$jscomp.polyfillIsolated=function(f,l,p,r){var n=f.split(".");f=1===n.length;r=n[0];r=!f&&r in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var R=0;R<n.length-1;R++){var m=n[R];if(!(m in r))return;r=r[m]}n=n[n.length-1];p=$jscomp.IS_SYMBOL_NATIVE&&"es6"===p?r[n]:null;l=l(p);null!=l&&(f?$jscomp.defineProperty($jscomp.polyfills,n,{configurable:!0,writable:!0,value:l}):l!==p&&($jscomp.propertyToPolyfillSymbol[n]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(n):$jscomp.POLYFILL_PREFIX+n,n=
$jscomp.propertyToPolyfillSymbol[n],$jscomp.defineProperty(r,n,{configurable:!0,writable:!0,value:l})))};$jscomp.polyfill("String.prototype.startsWith",function(f){return f?f:function(l,p){var r=$jscomp.checkStringArgs(this,l,"startsWith");l+="";var n=r.length,R=l.length;p=Math.max(0,Math.min(p|0,r.length));for(var m=0;m<R&&p<n;)if(r[p++]!=l[m++])return!1;return m>=R}},"es6","es3");$jscomp.FORCE_POLYFILL_PROMISE=!1;
$jscomp.polyfill("Promise",function(f){function l(){this.batch_=null}function p(m){return m instanceof n?m:new n(function(v,C){v(m)})}if(f&&!$jscomp.FORCE_POLYFILL_PROMISE)return f;l.prototype.asyncExecute=function(m){if(null==this.batch_){this.batch_=[];var v=this;this.asyncExecuteFunction(function(){v.executeBatch_()})}this.batch_.push(m)};var r=$jscomp.global.setTimeout;l.prototype.asyncExecuteFunction=function(m){r(m,0)};l.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var m=
this.batch_;this.batch_=[];for(var v=0;v<m.length;++v){var C=m[v];m[v]=null;try{C()}catch(J){this.asyncThrow_(J)}}}this.batch_=null};l.prototype.asyncThrow_=function(m){this.asyncExecuteFunction(function(){throw m;})};var n=function(m){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];var v=this.createResolveAndReject_();try{m(v.resolve,v.reject)}catch(C){v.reject(C)}};n.prototype.createResolveAndReject_=function(){function m(J){return function(Q){C||(C=!0,J.call(v,Q))}}var v=this,C=!1;
return{resolve:m(this.resolveTo_),reject:m(this.reject_)}};n.prototype.resolveTo_=function(m){if(m===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(m instanceof n)this.settleSameAsPromise_(m);else{a:switch(typeof m){case "object":var v=null!=m;break a;case "function":v=!0;break a;default:v=!1}v?this.resolveToNonPromiseObj_(m):this.fulfill_(m)}};n.prototype.resolveToNonPromiseObj_=function(m){var v=void 0;try{v=m.then}catch(C){this.reject_(C);return}"function"==typeof v?
this.settleSameAsThenable_(v,m):this.fulfill_(m)};n.prototype.reject_=function(m){this.settle_(2,m)};n.prototype.fulfill_=function(m){this.settle_(1,m)};n.prototype.settle_=function(m,v){if(0!=this.state_)throw Error("Cannot settle("+m+", "+v+"): Promise already settled in state"+this.state_);this.state_=m;this.result_=v;this.executeOnSettledCallbacks_()};n.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var m=0;m<this.onSettledCallbacks_.length;++m)R.asyncExecute(this.onSettledCallbacks_[m]);
this.onSettledCallbacks_=null}};var R=new l;n.prototype.settleSameAsPromise_=function(m){var v=this.createResolveAndReject_();m.callWhenSettled_(v.resolve,v.reject)};n.prototype.settleSameAsThenable_=function(m,v){var C=this.createResolveAndReject_();try{m.call(v,C.resolve,C.reject)}catch(J){C.reject(J)}};n.prototype.then=function(m,v){function C(U,V){return"function"==typeof U?function(O){try{J(U(O))}catch(Y){Q(Y)}}:V}var J,Q,Z=new n(function(U,V){J=U;Q=V});this.callWhenSettled_(C(m,J),C(v,Q));return Z};
n.prototype.catch=function(m){return this.then(void 0,m)};n.prototype.callWhenSettled_=function(m,v){function C(){switch(J.state_){case 1:m(J.result_);break;case 2:v(J.result_);break;default:throw Error("Unexpected state: "+J.state_);}}var J=this;null==this.onSettledCallbacks_?R.asyncExecute(C):this.onSettledCallbacks_.push(C)};n.resolve=p;n.reject=function(m){return new n(function(v,C){C(m)})};n.race=function(m){return new n(function(v,C){for(var J=$jscomp.makeIterator(m),Q=J.next();!Q.done;Q=J.next())p(Q.value).callWhenSettled_(v,
C)})};n.all=function(m){var v=$jscomp.makeIterator(m),C=v.next();return C.done?p([]):new n(function(J,Q){function Z(O){return function(Y){U[O]=Y;V--;0==V&&J(U)}}var U=[],V=0;do U.push(void 0),V++,p(C.value).callWhenSettled_(Z(U.length-1),Q),C=v.next();while(!C.done)})};return n},"es6","es3");$jscomp.owns=function(f,l){return Object.prototype.hasOwnProperty.call(f,l)};
$jscomp.assign=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.assign?Object.assign:function(f,l){for(var p=1;p<arguments.length;p++){var r=arguments[p];if(r)for(var n in r)$jscomp.owns(r,n)&&(f[n]=r[n])}return f};$jscomp.polyfill("Object.assign",function(f){return f||$jscomp.assign},"es6","es3");$jscomp.initSymbol=function(){};
$jscomp.polyfill("Symbol",function(f){if(f)return f;var l=function(n,R){this.$jscomp$symbol$id_=n;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:R})};l.prototype.toString=function(){return this.$jscomp$symbol$id_};var p=0,r=function(n){if(this instanceof r)throw new TypeError("Symbol is not a constructor");return new l("jscomp_symbol_"+(n||"")+"_"+p++,n)};return r},"es6","es3");$jscomp.initSymbolIterator=function(){};
$jscomp.polyfill("Symbol.iterator",function(f){if(f)return f;f=Symbol("Symbol.iterator");for(var l="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),p=0;p<l.length;p++){var r=$jscomp.global[l[p]];"function"===typeof r&&"function"!=typeof r.prototype[f]&&$jscomp.defineProperty(r.prototype,f,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return f},"es6",
"es3");$jscomp.initSymbolAsyncIterator=function(){};$jscomp.iteratorPrototype=function(f){f={next:f};f[Symbol.iterator]=function(){return this};return f};$jscomp.iteratorFromArray=function(f,l){f instanceof String&&(f+="");var p=0,r={next:function(){if(p<f.length){var n=p++;return{value:l(n,f[n]),done:!1}}r.next=function(){return{done:!0,value:void 0}};return r.next()}};r[Symbol.iterator]=function(){return r};return r};
$jscomp.polyfill("Array.prototype.keys",function(f){return f?f:function(){return $jscomp.iteratorFromArray(this,function(l){return l})}},"es6","es3");
(function(f,l,p,r,n,R,m,v,C,J,Q,Z){(function(U,V,O,Y,ia,ja,ka,la,ma,na,oa,pa,qa,ra,sa,ta,ea){O=function(){function G(a){function h(N,P){var S=(N&65535)+(P&65535);return(N>>16)+(P>>16)+(S>>16)<<16|S&65535}function k(N,P,S,E,D,F){N=h(h(P,N),h(E,F));return h(N<<D|N>>>32-D,S)}function z(N,P,S,E,D,F,T){return k(P&S|~P&E,N,P,D,F,T)}function H(N,P,S,E,D,F,T){return k(P&E|S&~E,N,P,D,F,T)}function K(N,P,S,E,D,F,T){return k(S^(P|~E),N,P,D,F,T)}for(var c="",b,W="",X="",d=-1,e;++d<a.length;)b=a.charCodeAt(d),
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(f){return f.raw=f};$jscomp.createTemplateTagFirstArgWithRaw=function(f,m){f.raw=m;return f};$jscomp.arrayIteratorImpl=function(f){var m=0;return function(){return m<f.length?{done:!1,value:f[m++]}:{done:!0}}};$jscomp.arrayIterator=function(f){return{next:$jscomp.arrayIteratorImpl(f)}};$jscomp.makeIterator=function(f){var m="undefined"!=typeof Symbol&&Symbol.iterator&&f[Symbol.iterator];return m?m.call(f):$jscomp.arrayIterator(f)};
$jscomp.arrayFromIterator=function(f){for(var m,p=[];!(m=f.next()).done;)p.push(m.value);return p};$jscomp.arrayFromIterable=function(f){return f instanceof Array?f:$jscomp.arrayFromIterator($jscomp.makeIterator(f))};$jscomp.checkStringArgs=function(f,m,p){if(null==f)throw new TypeError("The 'this' value for String.prototype."+p+" must not be null or undefined");if(m instanceof RegExp)throw new TypeError("First argument to String.prototype."+p+" must not be a regular expression");return f+""};
$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(f,m,p){if(f==Array.prototype||f==Object.prototype)return f;f[m]=p.value;return f};
$jscomp.getGlobal=function(f){f=["object"==typeof globalThis&&globalThis,f,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var m=0;m<f.length;++m){var p=f[m];if(p&&p.Math==Math)return p}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};
$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(f,m){var p=$jscomp.propertyToPolyfillSymbol[m];if(null==p)return f[m];p=f[p];return void 0!==p?p:f[m]};$jscomp.polyfill=function(f,m,p,r){m&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(f,m,p,r):$jscomp.polyfillUnisolated(f,m,p,r))};
$jscomp.polyfillUnisolated=function(f,m,p,r){p=$jscomp.global;f=f.split(".");for(r=0;r<f.length-1;r++){var n=f[r];if(!(n in p))return;p=p[n]}f=f[f.length-1];r=p[f];m=m(r);m!=r&&null!=m&&$jscomp.defineProperty(p,f,{configurable:!0,writable:!0,value:m})};
$jscomp.polyfillIsolated=function(f,m,p,r){var n=f.split(".");f=1===n.length;r=n[0];r=!f&&r in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var S=0;S<n.length-1;S++){var k=n[S];if(!(k in r))return;r=r[k]}n=n[n.length-1];p=$jscomp.IS_SYMBOL_NATIVE&&"es6"===p?r[n]:null;m=m(p);null!=m&&(f?$jscomp.defineProperty($jscomp.polyfills,n,{configurable:!0,writable:!0,value:m}):m!==p&&($jscomp.propertyToPolyfillSymbol[n]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(n):$jscomp.POLYFILL_PREFIX+n,n=
$jscomp.propertyToPolyfillSymbol[n],$jscomp.defineProperty(r,n,{configurable:!0,writable:!0,value:m})))};$jscomp.polyfill("String.prototype.startsWith",function(f){return f?f:function(m,p){var r=$jscomp.checkStringArgs(this,m,"startsWith");m+="";var n=r.length,S=m.length;p=Math.max(0,Math.min(p|0,r.length));for(var k=0;k<S&&p<n;)if(r[p++]!=m[k++])return!1;return k>=S}},"es6","es3");$jscomp.FORCE_POLYFILL_PROMISE=!1;
$jscomp.polyfill("Promise",function(f){function m(){this.batch_=null}function p(k){return k instanceof n?k:new n(function(v,C){v(k)})}if(f&&!$jscomp.FORCE_POLYFILL_PROMISE)return f;m.prototype.asyncExecute=function(k){if(null==this.batch_){this.batch_=[];var v=this;this.asyncExecuteFunction(function(){v.executeBatch_()})}this.batch_.push(k)};var r=$jscomp.global.setTimeout;m.prototype.asyncExecuteFunction=function(k){r(k,0)};m.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var k=
this.batch_;this.batch_=[];for(var v=0;v<k.length;++v){var C=k[v];k[v]=null;try{C()}catch(J){this.asyncThrow_(J)}}}this.batch_=null};m.prototype.asyncThrow_=function(k){this.asyncExecuteFunction(function(){throw k;})};var n=function(k){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];var v=this.createResolveAndReject_();try{k(v.resolve,v.reject)}catch(C){v.reject(C)}};n.prototype.createResolveAndReject_=function(){function k(J){return function(Q){C||(C=!0,J.call(v,Q))}}var v=this,C=!1;
return{resolve:k(this.resolveTo_),reject:k(this.reject_)}};n.prototype.resolveTo_=function(k){if(k===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(k instanceof n)this.settleSameAsPromise_(k);else{a:switch(typeof k){case "object":var v=null!=k;break a;case "function":v=!0;break a;default:v=!1}v?this.resolveToNonPromiseObj_(k):this.fulfill_(k)}};n.prototype.resolveToNonPromiseObj_=function(k){var v=void 0;try{v=k.then}catch(C){this.reject_(C);return}"function"==typeof v?
this.settleSameAsThenable_(v,k):this.fulfill_(k)};n.prototype.reject_=function(k){this.settle_(2,k)};n.prototype.fulfill_=function(k){this.settle_(1,k)};n.prototype.settle_=function(k,v){if(0!=this.state_)throw Error("Cannot settle("+k+", "+v+"): Promise already settled in state"+this.state_);this.state_=k;this.result_=v;this.executeOnSettledCallbacks_()};n.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var k=0;k<this.onSettledCallbacks_.length;++k)S.asyncExecute(this.onSettledCallbacks_[k]);
this.onSettledCallbacks_=null}};var S=new m;n.prototype.settleSameAsPromise_=function(k){var v=this.createResolveAndReject_();k.callWhenSettled_(v.resolve,v.reject)};n.prototype.settleSameAsThenable_=function(k,v){var C=this.createResolveAndReject_();try{k.call(v,C.resolve,C.reject)}catch(J){C.reject(J)}};n.prototype.then=function(k,v){function C(U,V){return"function"==typeof U?function(O){try{J(U(O))}catch(Y){Q(Y)}}:V}var J,Q,Z=new n(function(U,V){J=U;Q=V});this.callWhenSettled_(C(k,J),C(v,Q));return Z};
n.prototype.catch=function(k){return this.then(void 0,k)};n.prototype.callWhenSettled_=function(k,v){function C(){switch(J.state_){case 1:k(J.result_);break;case 2:v(J.result_);break;default:throw Error("Unexpected state: "+J.state_);}}var J=this;null==this.onSettledCallbacks_?S.asyncExecute(C):this.onSettledCallbacks_.push(C)};n.resolve=p;n.reject=function(k){return new n(function(v,C){C(k)})};n.race=function(k){return new n(function(v,C){for(var J=$jscomp.makeIterator(k),Q=J.next();!Q.done;Q=J.next())p(Q.value).callWhenSettled_(v,
C)})};n.all=function(k){var v=$jscomp.makeIterator(k),C=v.next();return C.done?p([]):new n(function(J,Q){function Z(O){return function(Y){U[O]=Y;V--;0==V&&J(U)}}var U=[],V=0;do U.push(void 0),V++,p(C.value).callWhenSettled_(Z(U.length-1),Q),C=v.next();while(!C.done)})};return n},"es6","es3");$jscomp.owns=function(f,m){return Object.prototype.hasOwnProperty.call(f,m)};
$jscomp.assign=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.assign?Object.assign:function(f,m){for(var p=1;p<arguments.length;p++){var r=arguments[p];if(r)for(var n in r)$jscomp.owns(r,n)&&(f[n]=r[n])}return f};$jscomp.polyfill("Object.assign",function(f){return f||$jscomp.assign},"es6","es3");$jscomp.initSymbol=function(){};
$jscomp.polyfill("Symbol",function(f){if(f)return f;var m=function(n,S){this.$jscomp$symbol$id_=n;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:S})};m.prototype.toString=function(){return this.$jscomp$symbol$id_};var p=0,r=function(n){if(this instanceof r)throw new TypeError("Symbol is not a constructor");return new m("jscomp_symbol_"+(n||"")+"_"+p++,n)};return r},"es6","es3");$jscomp.initSymbolIterator=function(){};
$jscomp.polyfill("Symbol.iterator",function(f){if(f)return f;f=Symbol("Symbol.iterator");for(var m="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),p=0;p<m.length;p++){var r=$jscomp.global[m[p]];"function"===typeof r&&"function"!=typeof r.prototype[f]&&$jscomp.defineProperty(r.prototype,f,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return f},"es6",
"es3");$jscomp.initSymbolAsyncIterator=function(){};$jscomp.iteratorPrototype=function(f){f={next:f};f[Symbol.iterator]=function(){return this};return f};$jscomp.iteratorFromArray=function(f,m){f instanceof String&&(f+="");var p=0,r={next:function(){if(p<f.length){var n=p++;return{value:m(n,f[n]),done:!1}}r.next=function(){return{done:!0,value:void 0}};return r.next()}};r[Symbol.iterator]=function(){return r};return r};
$jscomp.polyfill("Array.prototype.keys",function(f){return f?f:function(){return $jscomp.iteratorFromArray(this,function(m){return m})}},"es6","es3");
(function(f,m,p,r,n,S,k,v,C,J,Q,Z){(function(U,V,O,Y,ia,ja,ka,la,ma,na,oa,pa,qa,ra,sa,ta,ea){O=function(){function G(a){function h(N,P){var R=(N&65535)+(P&65535);return(N>>16)+(P>>16)+(R>>16)<<16|R&65535}function l(N,P,R,E,D,F){N=h(h(P,N),h(E,F));return h(N<<D|N>>>32-D,R)}function z(N,P,R,E,D,F,T){return l(P&R|~P&E,N,P,D,F,T)}function H(N,P,R,E,D,F,T){return l(P&E|R&~E,N,P,D,F,T)}function K(N,P,R,E,D,F,T){return l(R^(P|~E),N,P,D,F,T)}for(var c="",b,W="",X="",d=-1,e;++d<a.length;)b=a.charCodeAt(d),
e=d+1<a.length?a.charCodeAt(d+1):0,55296<=b&&56319>=b&&56320<=e&&57343>=e&&(b=65536+((b&1023)<<10)+(e&1023),d++),127>=b?c+=String.fromCharCode(b):2047>=b?c+=String.fromCharCode(192|b>>>6&31,128|b&63):65535>=b?c+=String.fromCharCode(224|b>>>12&15,128|b>>>6&63,128|b&63):2097151>=b&&(c+=String.fromCharCode(240|b>>>18&7,128|b>>>12&63,128|b>>>6&63,128|b&63));b=8*c.length;a=Array(c.length>>2);for(d=0;d<a.length;d++)a[d]=0;for(d=0;d<b;d+=8)a[d>>5]|=(c.charCodeAt(d/8)&255)<<d%32;a[b>>5]|=128<<b%32;a[(b+64>>>
9<<4)+14]=b;c=1732584193;b=-271733879;e=-1732584194;var g=271733878;for(d=0;d<a.length;d+=16){var aa=c,ba=b,ca=e,da=g;c=z(c,b,e,g,a[d],7,-680876936);g=z(g,c,b,e,a[d+1],12,-389564586);e=z(e,g,c,b,a[d+2],17,606105819);b=z(b,e,g,c,a[d+3],22,-1044525330);c=z(c,b,e,g,a[d+4],7,-176418897);g=z(g,c,b,e,a[d+5],12,1200080426);e=z(e,g,c,b,a[d+6],17,-1473231341);b=z(b,e,g,c,a[d+7],22,-45705983);c=z(c,b,e,g,a[d+8],7,1770035416);g=z(g,c,b,e,a[d+9],12,-1958414417);e=z(e,g,c,b,a[d+10],17,-42063);b=z(b,e,g,c,a[d+
11],22,-1990404162);c=z(c,b,e,g,a[d+12],7,1804603682);g=z(g,c,b,e,a[d+13],12,-40341101);e=z(e,g,c,b,a[d+14],17,-1502002290);b=z(b,e,g,c,a[d+15],22,1236535329);c=H(c,b,e,g,a[d+1],5,-165796510);g=H(g,c,b,e,a[d+6],9,-1069501632);e=H(e,g,c,b,a[d+11],14,643717713);b=H(b,e,g,c,a[d],20,-373897302);c=H(c,b,e,g,a[d+5],5,-701558691);g=H(g,c,b,e,a[d+10],9,38016083);e=H(e,g,c,b,a[d+15],14,-660478335);b=H(b,e,g,c,a[d+4],20,-405537848);c=H(c,b,e,g,a[d+9],5,568446438);g=H(g,c,b,e,a[d+14],9,-1019803690);e=H(e,g,
c,b,a[d+3],14,-187363961);b=H(b,e,g,c,a[d+8],20,1163531501);c=H(c,b,e,g,a[d+13],5,-1444681467);g=H(g,c,b,e,a[d+2],9,-51403784);e=H(e,g,c,b,a[d+7],14,1735328473);b=H(b,e,g,c,a[d+12],20,-1926607734);c=k(b^e^g,c,b,a[d+5],4,-378558);g=k(c^b^e,g,c,a[d+8],11,-2022574463);e=k(g^c^b,e,g,a[d+11],16,1839030562);b=k(e^g^c,b,e,a[d+14],23,-35309556);c=k(b^e^g,c,b,a[d+1],4,-1530992060);g=k(c^b^e,g,c,a[d+4],11,1272893353);e=k(g^c^b,e,g,a[d+7],16,-155497632);b=k(e^g^c,b,e,a[d+10],23,-1094730640);c=k(b^e^g,c,b,a[d+
13],4,681279174);g=k(c^b^e,g,c,a[d],11,-358537222);e=k(g^c^b,e,g,a[d+3],16,-722521979);b=k(e^g^c,b,e,a[d+6],23,76029189);c=k(b^e^g,c,b,a[d+9],4,-640364487);g=k(c^b^e,g,c,a[d+12],11,-421815835);e=k(g^c^b,e,g,a[d+15],16,530742520);b=k(e^g^c,b,e,a[d+2],23,-995338651);c=K(c,b,e,g,a[d],6,-198630844);g=K(g,c,b,e,a[d+7],10,1126891415);e=K(e,g,c,b,a[d+14],15,-1416354905);b=K(b,e,g,c,a[d+5],21,-57434055);c=K(c,b,e,g,a[d+12],6,1700485571);g=K(g,c,b,e,a[d+3],10,-1894986606);e=K(e,g,c,b,a[d+10],15,-1051523);
c,b,a[d+3],14,-187363961);b=H(b,e,g,c,a[d+8],20,1163531501);c=H(c,b,e,g,a[d+13],5,-1444681467);g=H(g,c,b,e,a[d+2],9,-51403784);e=H(e,g,c,b,a[d+7],14,1735328473);b=H(b,e,g,c,a[d+12],20,-1926607734);c=l(b^e^g,c,b,a[d+5],4,-378558);g=l(c^b^e,g,c,a[d+8],11,-2022574463);e=l(g^c^b,e,g,a[d+11],16,1839030562);b=l(e^g^c,b,e,a[d+14],23,-35309556);c=l(b^e^g,c,b,a[d+1],4,-1530992060);g=l(c^b^e,g,c,a[d+4],11,1272893353);e=l(g^c^b,e,g,a[d+7],16,-155497632);b=l(e^g^c,b,e,a[d+10],23,-1094730640);c=l(b^e^g,c,b,a[d+
13],4,681279174);g=l(c^b^e,g,c,a[d],11,-358537222);e=l(g^c^b,e,g,a[d+3],16,-722521979);b=l(e^g^c,b,e,a[d+6],23,76029189);c=l(b^e^g,c,b,a[d+9],4,-640364487);g=l(c^b^e,g,c,a[d+12],11,-421815835);e=l(g^c^b,e,g,a[d+15],16,530742520);b=l(e^g^c,b,e,a[d+2],23,-995338651);c=K(c,b,e,g,a[d],6,-198630844);g=K(g,c,b,e,a[d+7],10,1126891415);e=K(e,g,c,b,a[d+14],15,-1416354905);b=K(b,e,g,c,a[d+5],21,-57434055);c=K(c,b,e,g,a[d+12],6,1700485571);g=K(g,c,b,e,a[d+3],10,-1894986606);e=K(e,g,c,b,a[d+10],15,-1051523);
b=K(b,e,g,c,a[d+1],21,-2054922799);c=K(c,b,e,g,a[d+8],6,1873313359);g=K(g,c,b,e,a[d+15],10,-30611744);e=K(e,g,c,b,a[d+6],15,-1560198380);b=K(b,e,g,c,a[d+13],21,1309151649);c=K(c,b,e,g,a[d+4],6,-145523070);g=K(g,c,b,e,a[d+11],10,-1120210379);e=K(e,g,c,b,a[d+2],15,718787259);b=K(b,e,g,c,a[d+9],21,-343485551);c=h(c,aa);b=h(b,ba);e=h(e,ca);g=h(g,da)}a=[c,b,e,g];for(d=0;d<32*a.length;d+=8)W+=String.fromCharCode(a[d>>5]>>>d%32&255);for(d=0;d<W.length;d++)b=W.charCodeAt(d),X+="0123456789abcdef".charAt(b>>>
4&15)+"0123456789abcdef".charAt(b&15);return X}function u(a,h){var k=0;h&&(0===h.indexOf("components/")&&(k=11),0<h.indexOf("/",k)&&(h=h.substring(k,h.indexOf("/",k))));return(h=M[a+"/index.js"]||M[h+"/deps/"+a+"/index.js"])?"components/"+h.substring(0,h.length-3):a}function L(a,h){var k=[];h=(x.test(h)?a+"/"+h:h).split("/");for(var z=0,H=h.length;z<H;z++)a=h[z],".."===a?k.pop():"."!==a&&""!==a&&k.push(a);return k.join("/")}function q(a,h){null==h&&(h="/");var k=u(a,h);if(I.call(t,k))return t[k].exports;
if(I.call(y,k))return w(k,y[k]);var z=G(a);z=u(z,h);if(I.call(t,z))return t[z].exports;if(I.call(y,z))return w(z,y[z]);k=L(k,"./index");if(I.call(t,k))return t[k].exports;if(I.call(y,k))return w(k,y[k]);k=L(z,"./index");if(I.call(t,k))return t[k].exports;if(I.call(y,k))return w(k,y[k]);throw Error('Cannot find module "'+a+'" from "'+h+'"');}function A(a){return function(h){h=L(a.split("/").slice(0,-1).join("/"),h);return q(h,a)}}function w(a,h){var k={id:a,exports:{}};t[a]=k;h(k.exports,A(a),k);return k.exports}
var B=window;if("function"===typeof B.require)return B.require;var y={},t={},M={},I={}.hasOwnProperty,x=/^\.\.?(\/|$)/;q.alias=function(a,h){M[h]=a};q.register=q.define=function(a,h){if("object"===typeof a)for(var k in a)I.call(a,k)&&(y[k]=a[k]);else y[a]=h};q.list=function(){var a=[],h;for(h in y)I.call(y,h)&&a.push(h);return a};q.brunch=!0;q._cache=t;return B.require=q}().register;O(f,function(G,u,L){var q=this;"undefined"===typeof Element.prototype.clearChildren&&Object.defineProperty(Element.prototype,
"clearChildren",{configurable:!0,enumerable:!1,value:function(){for(;q.firstChild;)q.removeChild(q.lastChild)}})});O(l,function(G,u,L){V(G,{id:"channel",title:"Create your channel",error:"There is a problem ...",actions:["create"],params:{name:{defaultValue:"",caption:"Channel Name",hint:"type a name",help:"This name will be displayed to your friends.",required:"Please type in a name for your channel.",className:"isfull"},tos:{type:"check",defaultValue:"",caption:"Terms of service",hint:"I agree to be bound by Quarantune Terms of service",
required:"You need to accept the TOS to create your channel."},privacy:{type:"check",defaultValue:"",caption:"Privacy Policy",hint:"I have read and understand the Privacy Policy",required:"You need to read the privacy policy"}}})});O(p,function(G,u,L){var q=u("mithril"),A=u("nobj.auth"),w=u("nobj.fire"),B=u(R),y=u(Q).setRoute,t={},M=null,I={config:function(x){M=x},oninit:function(x){var a=x.attrs;x=x.state;try{var h=w.validate(a.channel)}catch(k){h=null}x.inited&&x.inited===h?y(a.requestedPath,x):
(V(x,{loading:!1,user:null,requestedPath:a.requestedPath,requestedChannel:h}),A.config(Object.assign({},M,h&&{channel:h})))},view:function(x){x=x.attrs;return t.user?q(".h-100.flexcol.flexcenter",[q(".flexcol",[t.user.image?[q("img",{src:t.user.image})]:[],q("h1",t.user.name||t.user.id)].concat(ea.arrayFromIterable(t.error?[q(".errormessage",t.error.message)]:[])))]):q(B,Object.assign({},{config:M,requestedChannel:t.requestedChannel,requestedPath:t.requestedPath},x))},onmatch:function(x,a,h,k,z){console.log("[AutoLoginWidget]",
"OnMatch: routeParams",x,"repaths",a,h,"routeOptions",k);if(a===z.routeSelf&&t.inited)y(z.routeChannel,t);else if(h=A.session?A.session():null,h=!h||!h.user().id(),!h&&x.channel&&t.inited&&x.channel!==t.inited)history.pushState(null,null,"#!"+a),window.location.reload();else if(h)return console.log("[AutoLoginWidget]","unauth - failed, launch login"),{view:function(H){return q(I,Object.assign({},z||{},k||{},H.attrs,{requestedPath:a}))}};return null}};L.exports=I});O(r,function(G,u,L){function q(x,
a){console.warn("accept",x);B.channel().create(x).then(a.runAuthenticated).catch(function(h){t("Error",h.message)})}function A(){console.warn("cancel")}var w=u("mithril"),B=u(J);G=u("app.widgets");var y=G.Dialog,t=G.Alert,M=u("nobj.auth"),I=u(l);L.exports={oninit:function(x){return B.channel().init()},view:function(x){var a=x.attrs;x=M.session().user().info();return B.channel().exists()?w(".widget.flexcol.flexcenter.shadow",[w("h1",x.name),w("h2","id "+x.id)]):w(".flexrow.flexaround",[w(".flexcol.flex-al-center.marg-4",
[w("img.avatar",{src:x.image}),w("h1",x.name),w("h6.idchannel",x.id)]),w(y,{className:"bg-accent-light",meta:[I],onAction:function(h){return q(h,a)},onCancel:A})])}}});O(n,function(G,u,L){var q=u("nobj.auth"),A=u("mithril");L.exports={view:function(w){w=w.state;try{w.user=q.session().user().info()}catch(B){}try{w.channel=q.session().channel().info()}catch(B){}return w.channel&&w.user?A(".flexrow.loggedinwidget.font-75",[A(".flexcol.flexcenter.al-right",[A(".channelname",w.channel.name),A(".username",
w.user.name)]),w.user.image?[A("img",{src:w.user.image})]:[]]):A(".nologin.loggedinwidget")}}});O(R,function(G,u,L){var q=u("mithril"),A=u("nobj.auth"),w=u("nobj.fire"),B=u("rt.channel"),y=u("app.widgets").Dialog,t=u(C),M=u(Q).setRoute,I=u(J),x=u(r),a={};L.exports=function(h){function k(E){a.loading=E;q.redraw()}function z(E,D){M(!E||E.startsWith(W.routeSelf)?g:E,a)}function H(){a.inited=S.id();delete a.create;k(!1);z(ca||g,{channel:a.inited})}function K(E,D){if(D)a.error=D,k(!1);else try{k(!0),N.hasRealtime()?
w.init().then(function(){var F=new B(w.current(),Object.assign({},X,{redraw:function(){return q.redraw()}}));I.input(F);F.init(X).then(H).catch(function(T){console.error(T);k(!1);S.isOwner()?(V(a,{inited:S.id(),create:!0}),q.redraw()):z(aa)})}).catch(function(F){delete a.inited;delete a.create;a.error=F;k(!1)}):H()}catch(F){a.error=F,k(!1)}}function c(E,D){var F=X.profiles[D];return new U(function(T,ha){a.error=null;a.loading=!0;q.redraw();A.login(F.profile,E,F.flow).then(function(){K(!0,null);T()}).catch(function(fa){K(!1,
fa);ha(fa)})})}function b(E){a.loading=!0;a.error=null;A.recover({channel:E,refresh:!!X.refresh}).then(function(){return K(!0)}).catch(function(D){return K(!1,D)})}var W=h.attrs;h=W;var X=h.config,d=h.profile,e=h.backgroundUrl,g=h.routeChannel,aa=h.routeNotFound,ba=h.requestedChannel,ca=h.requestedPath,da=d&&"string"===typeof d?[d]:d&&d.length?d:[null],N=A.session(),P=N.user(),S=N.channel();return{oninit:function(E){E=E.attrs;try{if(a.inited){if(E.channel&&a.inited!==E.channel)throw Error("already inited for channel "+
a.inited);}else if(X.remember)return b(ba)}catch(D){console.log("[LoginWidget]",D.message),z(aa)}},view:function(){try{P.info()}catch(D){}var E=W.channel?t.map(W.channel,"login/visitor.jpg"):e;return q(".fullheight.fullwidth.flexcol.loginwidget.flexcenter"+(a.loading?".loading":""),{style:Object.assign({},E&&{backgroundImage:"url("+E+")"})},a.loading?[q(".throbber",[q(".line"),q(".subline.inc"),q(".subline.dec")])]:a.create?[q(x,{runAuthenticated:H})]:[].concat(ea.arrayFromIterable(a.error?[q(".errormessage.marg-2.pad-2.bg-accent.shadow",
a.error.message||"")]:[]),[q(".flexcol.fullheight.flexcenter.logincard",q(".card",da.map(function(D){var F=X.profiles[D];return F.flow?q("button.loginbutton.grows",{className:"profile_"+D,onclick:function(){return c({channel:W.channel},D)}},F.caption||(F.flow?"Login With "+F.flow:F.profile)):F.dialog?(F.dialog.id=D,q(y,{class:".logindialog",meta:[F.dialog],actions:[F.caption||"login"],onAction:function(T){return c(Object.assign({},T,{channel:W.channel}),D)},noCancel:!0})):q("button.loginbutton.grows",
Object.assign({},D&&{className:"profile_"+D},{onclick:function(){c({},D).then(function(){return K(!0)}).catch(function(T){return K(!1,T)})}}))})))]))}}}});O(m,function(G,u,L){G=u(r);var q=u(p);u=u(n);L.exports={CreateChannelWidget:G,LoggedInWidget:u,AutoLoginWidget:q}});O(v,function(G,u,L){G=window.NIPC||null;var q=!!G;u=G?G.send:function(y,t,M,I){document.dispatchEvent(new CustomEvent("on_nip",{bubbles:!0,detail:{message:y,payload:t,sourceWin:I||window}}))};var A={},w=G?G.on:function(y,t){function M(x,
a){window.console.log("FNIPC","listen",x);var h=A[x];h||(h=A[x]=[]);h.push(a)}if("string"===typeof y)M(y,t);else for(var I in y)M(I,y[I])},B=!0;G||(window.console.log("FNIPC","init fake nipc"),document.addEventListener("on_nip",function(y){var t=y.detail;window.console.log("FNIPC","incoming",t);y=t.message;var M=t.payload;t=t.sourceWin;if(B||t!==window){if(A[y]){t=0;for(var I=A[y].length;t<I;t++)try{A[y][t](M)}catch(x){window.console.log("FNIPC",x)}}}else window.document.dispatchEvent(new CustomEvent("on_"+
4&15)+"0123456789abcdef".charAt(b&15);return X}function u(a,h){var l=0;h&&(0===h.indexOf("components/")&&(l=11),0<h.indexOf("/",l)&&(h=h.substring(l,h.indexOf("/",l))));return(h=M[a+"/index.js"]||M[h+"/deps/"+a+"/index.js"])?"components/"+h.substring(0,h.length-3):a}function L(a,h){var l=[];h=(x.test(h)?a+"/"+h:h).split("/");for(var z=0,H=h.length;z<H;z++)a=h[z],".."===a?l.pop():"."!==a&&""!==a&&l.push(a);return l.join("/")}function q(a,h){null==h&&(h="/");var l=u(a,h);if(I.call(t,l))return t[l].exports;
if(I.call(y,l))return w(l,y[l]);var z=G(a);z=u(z,h);if(I.call(t,z))return t[z].exports;if(I.call(y,z))return w(z,y[z]);l=L(l,"./index");if(I.call(t,l))return t[l].exports;if(I.call(y,l))return w(l,y[l]);l=L(z,"./index");if(I.call(t,l))return t[l].exports;if(I.call(y,l))return w(l,y[l]);throw Error('Cannot find module "'+a+'" from "'+h+'"');}function A(a){return function(h){h=L(a.split("/").slice(0,-1).join("/"),h);return q(h,a)}}function w(a,h){var l={id:a,exports:{}};t[a]=l;h(l.exports,A(a),l);return l.exports}
var B=window;if("function"===typeof B.require)return B.require;var y={},t={},M={},I={}.hasOwnProperty,x=/^\.\.?(\/|$)/;q.alias=function(a,h){M[h]=a};q.register=q.define=function(a,h){if("object"===typeof a)for(var l in a)I.call(a,l)&&(y[l]=a[l]);else y[a]=h};q.list=function(){var a=[],h;for(h in y)I.call(y,h)&&a.push(h);return a};q.brunch=!0;q._cache=t;return B.require=q}().register;O(f,function(G,u,L){var q=this;"undefined"===typeof Element.prototype.clearChildren&&Object.defineProperty(Element.prototype,
"clearChildren",{configurable:!0,enumerable:!1,value:function(){for(;q.firstChild;)q.removeChild(q.lastChild)}})});O(m,function(G,u,L){var q=u("mithril"),A=u("nobj.auth"),w=u("nobj.fire"),B=u(n),y=u(Q).setRoute,t={},M=null,I={config:function(x){M=x},oninit:function(x){var a=x.attrs;x=x.state;try{var h=w.validate(a.channel)}catch(l){h=null}x.inited&&x.inited===h?y(a.requestedPath,x):(V(x,{loading:!1,user:null,requestedPath:a.requestedPath,requestedChannel:h}),A.config(Object.assign({},M,h&&{channel:h})))},
view:function(x){x=x.attrs;return t.user?q(".h-100.flexcol.flexcenter",[q(".flexcol",[t.user.image?[q("img",{src:t.user.image})]:[],q("h1",t.user.name||t.user.id)].concat(ea.arrayFromIterable(t.error?[q(".errormessage",t.error.message)]:[])))]):q(B,Object.assign({},{config:M,requestedChannel:t.requestedChannel,requestedPath:t.requestedPath},x))},onmatch:function(x,a,h,l,z){console.log("[AutoLoginWidget]","OnMatch: routeParams",x,"repaths",a,h,"routeOptions",l);if(a===z.routeSelf&&t.inited)y(z.routeChannel,
t);else if(h=A.session?A.session():null,h=!h||!h.user().id(),!h&&x.channel&&t.inited&&x.channel!==t.inited)history.pushState(null,null,"#!"+a),window.location.reload();else if(h)return console.log("[AutoLoginWidget]","unauth - failed, launch login"),{view:function(H){return q(I,Object.assign({},z||{},l||{},H.attrs,{requestedPath:a}))}};return null}};L.exports=I});O(p,function(G,u,L){function q(x,a){console.warn("accept",x);B.channel().create(x).then(a.runAuthenticated).catch(function(h){t("Error",
h.message)})}function A(){console.warn("cancel")}var w=u("mithril"),B=u(J);G=u("app.widgets");var y=G.Dialog,t=G.Alert,M=u("nobj.auth"),I=u(k);L.exports={oninit:function(x){return B.channel().init()},view:function(x){var a=x.attrs;x=M.session().user().info();return B.channel().exists()?w(".widget.flexcol.flexcenter.shadow",[w("h1",x.name),w("h2","id "+x.id)]):w(".flexrow.flexaround",[w(".flexcol.flex-al-center.marg-4",[w("img.avatar",{src:x.image}),w("h1",x.name),w("h6.idchannel",x.id)]),w(y,{className:"bg-accent-light",
meta:[I],onAction:function(h){return q(h,a)},onCancel:A})])}}});O(r,function(G,u,L){var q=u("nobj.auth"),A=u("mithril");L.exports={view:function(w){w=w.state;try{w.user=q.session().user().info()}catch(B){}try{w.channel=q.session().channel().info()}catch(B){}return w.channel&&w.user?A(".flexrow.loggedinwidget.font-75",[A(".flexcol.flexcenter.al-right",[A(".channelname",w.channel.name),A(".username",w.user.name)]),w.user.image?[A("img",{src:w.user.image})]:[]]):A(".nologin.loggedinwidget")}}});O(n,
function(G,u,L){var q=u("mithril"),A=u("nobj.auth"),w=u("nobj.fire"),B=u("rt.channel"),y=u("app.widgets").Dialog,t=u(C),M=u(Q).setRoute,I=u(J),x=u(p),a={};L.exports=function(h){function l(E){a.loading=E;q.redraw()}function z(E,D){M(!E||E.startsWith(W.routeSelf)?g:E,a)}function H(){a.inited=R.id();delete a.create;l(!1);z(ca||g,{channel:a.inited})}function K(E,D){if(D)a.error=D,l(!1);else try{l(!0),N.hasRealtime()?w.init().then(function(){var F=new B(w.current(),Object.assign({},X,{redraw:function(){return q.redraw()}}));
I.input(F);F.init(X).then(H).catch(function(T){console.error(T);l(!1);R.isOwner()?(V(a,{inited:R.id(),create:!0}),q.redraw()):z(aa)})}).catch(function(F){delete a.inited;delete a.create;a.error=F;l(!1)}):H()}catch(F){a.error=F,l(!1)}}function c(E,D){var F=X.profiles[D];return new U(function(T,ha){a.error=null;a.loading=!0;q.redraw();A.login(F.profile,E,F.flow).then(function(){K(!0,null);T()}).catch(function(fa){K(!1,fa);ha(fa)})})}function b(E){a.loading=!0;a.error=null;A.recover({channel:E,refresh:!!X.refresh}).then(function(){return K(!0)}).catch(function(D){return K(!1,
D)})}var W=h.attrs;h=W;var X=h.config,d=h.profile,e=h.backgroundUrl,g=h.routeChannel,aa=h.routeNotFound,ba=h.requestedChannel,ca=h.requestedPath,da=d&&"string"===typeof d?[d]:d&&d.length?d:[null],N=A.session(),P=N.user(),R=N.channel();return{oninit:function(E){E=E.attrs;try{if(a.inited){if(E.channel&&a.inited!==E.channel)throw Error("already inited for channel "+a.inited);}else X.remember&&b(ba)}catch(D){console.log("[LoginWidget]",D.message),z(aa)}},view:function(){try{P.info()}catch(D){}var E=W.channel?
t.map(W.channel,"login/visitor.jpg"):e;return q(".fullheight.fullwidth.flexcol.loginwidget.flexcenter"+(a.loading?".loading":""),{style:Object.assign({},E&&{backgroundImage:"url("+E+")"})},a.loading?[q(".throbber",[q(".line"),q(".subline.inc"),q(".subline.dec")])]:a.create?[q(x,{runAuthenticated:H})]:[].concat(ea.arrayFromIterable(a.error?[q(".errormessage.marg-2.pad-2.bg-accent.shadow",a.error.message||"")]:[]),[q(".flexcol.fullheight.flexcenter.logincard",q(".card",da.map(function(D){var F=X.profiles[D];
return F.flow?q("button.loginbutton.grows",{className:"profile_"+D,onclick:function(){return c({channel:W.channel},D)}},F.caption||(F.flow?"Login With "+F.flow:F.profile)):F.dialog?(F.dialog.id=D,q(y,{class:".logindialog",meta:[F.dialog],actions:[F.caption||"login"],onAction:function(T){return c(Object.assign({},T,{channel:W.channel}),D)},noCancel:!0})):q("button.loginbutton.grows",Object.assign({},D&&{className:"profile_"+D},{onclick:function(){c({},D).then(function(){return K(!0)}).catch(function(T){return K(!1,
T)})}}))})))]))}}}});O(S,function(G,u,L){G=u(p);var q=u(m);u=u(r);L.exports={CreateChannelWidget:G,LoggedInWidget:u,AutoLoginWidget:q}});O(k,function(G,u,L){V(G,{id:"channel",title:"Create your channel",error:"There is a problem ...",actions:["create"],params:{name:{defaultValue:"",caption:"Channel Name",hint:"type a name",help:"This name will be displayed to your friends.",required:"Please type in a name for your channel.",className:"isfull"},tos:{type:"check",defaultValue:"",caption:"Terms of service",
hint:"I agree to be bound by Quarantune Terms of service",required:"You need to accept the TOS to create your channel."},privacy:{type:"check",defaultValue:"",caption:"Privacy Policy",hint:"I have read and understand the Privacy Policy",required:"You need to read the privacy policy"}}})});O(v,function(G,u,L){G=window.NIPC||null;var q=!!G;u=G?G.send:function(y,t,M,I){document.dispatchEvent(new CustomEvent("on_nip",{bubbles:!0,detail:{message:y,payload:t,sourceWin:I||window}}))};var A={},w=G?G.on:function(y,
t){function M(x,a){window.console.log("FNIPC","listen",x);var h=A[x];h||(h=A[x]=[]);h.push(a)}if("string"===typeof y)M(y,t);else for(var I in y)M(I,y[I])},B=!0;G||(window.console.log("FNIPC","init fake nipc"),document.addEventListener("on_nip",function(y){var t=y.detail;window.console.log("FNIPC","incoming",t);y=t.message;var M=t.payload;t=t.sourceWin;if(B||t!==window){if(A[y]){t=0;for(var I=A[y].length;t<I;t++)try{A[y][t](M)}catch(x){window.console.log("FNIPC",x)}}}else window.document.dispatchEvent(new CustomEvent("on_"+
y,{bubbles:!0,detail:M}))}));L.exports={on:w,enableSameWindow:function(){B=!0},disableSameWindow:function(){B=!1},send:u,native:function(){return q}}});O(C,function(G,u,L){var q="https://quarantune.club";L.exports={map:function(A,w){return q+"/cdn/"+(A||"all")+"/"+w},init:function(A){q=A}}});O(J,function(G,u,L){var q={},A=null;L.exports={get:function(w,B){return q[w]||(void 0===B?null:B)},set:function(w,B){q[w]=B},input:function(w){A=w},channel:function(){return A},sessionMgr:function(){return A?
A.sessionMgr():null}}});O(Q,function(G,u,L){var q=u("mithril"),A=u("nobj.auth"),w=u("tokenizer").tokenizeStrict;L.exports={setRoute:function(B,y){try{"function"===typeof B&&(B=B({channel:y.inited,token:A.token(!0)})),0<=B.indexOf("$")&&(B=w(B,{channel:y.inited,token:A.token(!0)})),console.log("[app-channel]","Set Route",B),q.route.set(B,0<=B.indexOf(":channel")?{channel:y.inited}:null)}catch(t){y.error=t,q.redraw()}}}})})(Promise,Object.assign,Object.keys,window.setTimeout,window.clearTimeout,window.location,
window.addEventListener,document,document.body,document.documentElement,document.documentElement.classList,window,window.NIPC||null,Error,JSON.parse,JSON.stringify,$jscomp)})("131b5289ac9efcbc3eb0ffa56aac71b6","416a377690c8ca15839264f163c1b7b8","4bb26c56120d1141f4926e259e6704c4","94ebdb7093e0b623c5e09e943b48280f","f693fe58bb0ccc78ae1d246014c776e6","feff86eb384a55ccdbdc22d3e66c9c1e","0fc26d52f1934b71c931779e2a2dbfde","83fb692dc47d7b3f7fbbc3d8515ac7eb","681fad3dbf8e7e687063e771749b96f0","f794516f70d9247da1be53032c73ade4",
window.addEventListener,document,document.body,document.documentElement,document.documentElement.classList,window,window.NIPC||null,Error,JSON.parse,JSON.stringify,$jscomp)})("131b5289ac9efcbc3eb0ffa56aac71b6","4bb26c56120d1141f4926e259e6704c4","94ebdb7093e0b623c5e09e943b48280f","f693fe58bb0ccc78ae1d246014c776e6","feff86eb384a55ccdbdc22d3e66c9c1e","0fc26d52f1934b71c931779e2a2dbfde","416a377690c8ca15839264f163c1b7b8","83fb692dc47d7b3f7fbbc3d8515ac7eb","681fad3dbf8e7e687063e771749b96f0","f794516f70d9247da1be53032c73ade4",
"bb6f7ca1eedb69bfeebd3b76f874c60a",0);
{
"name": "nobj-app-channel",
"version": "0.4.38",
"version": "0.4.39",
"description": "Realtime channel skeleton for nobj-app",

@@ -5,0 +5,0 @@ "main": "lib.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc