{I" class:ETI"ProcessedAsset;FI"logical_path;TI"#radioactive/radioactive.min.js;FI" pathname;TI"m/Users/michelsonmartinez/Documents/ruby/postino/vendor/assets/javascripts/radioactive/radioactive.min.js;FI"content_type;TI"application/javascript;TI" mtime;Tl+§@UI" length;TimI" digest;TI"%82eb2ef03153656bf703771d0767648a;FI" source;TI"m(function(){var Base,BasicEventEmitter,BasicEventEmitterHandler,DEBUG,DEFAULT_LOOP_DELAY,EQUALS,GLOBAL,Iterator,LOOP_ITERATIONS_TO_SURVIVE,Monitor,MonitorListenerProxy,Notifier,NotifierPool,NotifierPoolWithValue,PartialResultMarker,PendingSignal,ReactiveEval,ReactiveEvalResult,ReactiveLoop,StackVal,StopSignal,Token,Try,VERSION,WIKI_URL,build_cell,build_public_api,compare_semver,conditional_build,debug_error,delay,distinct,fork,intercept,is_pending,is_special_error,loop_with_callback,next_tick,poll,promise_xor_callback,radioactive_data,rxjs,serial,syncify,tap,throttle,throttler,__hasProp={}.hasOwnProperty,__extends=function(child,parent){for(var key in parent){if(__hasProp.call(parent,key))child[key]=parent[key]}function ctor(){this.constructor=child}ctor.prototype=parent.prototype;child.prototype=new ctor;child.__super__=parent.prototype;return child},__bind=function(fn,me){return function(){return fn.apply(me,arguments)}};VERSION="1.0.0";serial=function(){var ii;ii=0;return function(){return ii++}}();WIKI_URL="https://github.com/radioactive/radioactive/wiki";DEBUG=true;DEFAULT_LOOP_DELAY=10;LOOP_ITERATIONS_TO_SURVIVE=2;is_special_error=function(e){return e instanceof PendingSignal||e instanceof StopSignal};debug_error=function(e){if(DEBUG&&e!=null&&!is_special_error(e)){return console.log(e)}};next_tick=function(f){return setTimeout(f,1)};tap=function(v){return function(f){f(v);return v}};delay=function(){return setTimeout(arguments[1],arguments[0])};EQUALS=function(a,b){return a===b};throttler=function(ms){var t;t=void 0;return function(f){if(t!=null){clearTimeout(t)}if(f!=null){return t=setTimeout(f,ms)}}};PendingSignal=function(_super){__extends(PendingSignal,_super);function PendingSignal(){PendingSignal.__super__.constructor.call(this,"PendingSignal")}return PendingSignal}(Error);StopSignal=function(_super){__extends(StopSignal,_super);function StopSignal(){StopSignal.__super__.constructor.call(this)}return StopSignal}(Error);BasicEventEmitter=function(){function BasicEventEmitter(){this._request_cleanup=false;this._handlers=[]}BasicEventEmitter.prototype.emit=function(type,payload){this._handlers.forEach(function(_this){return function(h){if(h.type===type&&0===h.fire(payload)){return _this._request_cleanup=true}}}(this));return this._cleanup()};BasicEventEmitter.prototype.on=function(type,f){return this._upsert(type,f,-1)};BasicEventEmitter.prototype.once=function(type,f){return this._upsert(type,f,1)};BasicEventEmitter.prototype.off=function(type,f){return this._upsert(type,f,0)};BasicEventEmitter.prototype.removeListener=function(type,f){return this.off(type,f)};BasicEventEmitter.prototype.removeAllListeners=function(){return this._handlers=[]};BasicEventEmitter.prototype._cleanup=function(){var h;if(this._request_cleanup){this._request_cleanup=false;return this._handlers=function(){var _i,_len,_ref,_results;_ref=this._handlers;_results=[];for(_i=0,_len=_ref.length;_i<_len;_i++){h=_ref[_i];if(h.remaining!==0){_results.push(h)}}return _results}.call(this)}};BasicEventEmitter.prototype._find_handler=function(type,f){var h,_i,_len,_ref;_ref=this._handlers;for(_i=0,_len=_ref.length;_i<_len;_i++){h=_ref[_i];if(h.equals(type,f)){return h}}return void 0};BasicEventEmitter.prototype._upsert=function(type,f,q){var x;if((x=this._find_handler(type,f))!=null){x.update(q)}else{if(q===0){return}this._handlers.push(new BasicEventEmitterHandler(type,f,q))}if(q===0){this._request_cleanup=true;return this._cleanup()}};return BasicEventEmitter}();BasicEventEmitterHandler=function(){function BasicEventEmitterHandler(type,func,remaining){this.type=type;this.func=func;this.remaining=remaining!=null?remaining:-1}BasicEventEmitterHandler.prototype.update=function(q){if(this.remaining<0&&q===1){return}return this.remaining=q};BasicEventEmitterHandler.prototype.fire=function(e){if(this.remaining!==0){this.remaining--;this.func(e)}return this.remaining};BasicEventEmitterHandler.prototype.equals=function(type,func){if(type instanceof BasicEventEmitterHandler){func=type.func;type=type.type}return this.type===type&&this.func===func};return BasicEventEmitterHandler}();StackVal=function(){function StackVal(){this.stack=[]}StackVal.prototype.defined=function(){return this.stack.length>0};StackVal.prototype.run=function(expr,build){try{this.stack.push(build());return expr()}finally{this.stack.pop()}};StackVal.prototype.get=function(){if(this.defined()){return this.stack[this.stack.length-1]}else{throw new Error("No value found upstack")}};return StackVal}();Base=function(_super){__extends(Base,_super);function Base(){Base.__super__.constructor.call(this)}return Base}(BasicEventEmitter);Notifier=function(_super){__extends(Notifier,_super);function Notifier(monitor){this.monitor=monitor;Notifier.__super__.constructor.call(this)}Notifier.prototype.fire=function(){return this.monitor.fire(this)};Notifier.prototype.cancel=function(){};Notifier.prototype.is_active=function(){return true};Notifier.prototype.public_api=function(){var api;api=function(_this){return function(){return _this.fire()}}(this);api.once=function(_this){return function(h){return _this.once(h)}}(this);api.off=function(_this){return function(h){return _this.off(h)}}(this);return api};return Notifier}(Base);NotifierPool=function(_super){__extends(NotifierPool,_super);function NotifierPool(){NotifierPool.__super__.constructor.call(this);this.notifiers=[]}NotifierPool.prototype.allocate=function(){if(ReactiveEval.active()){return this.notifiers.push(ReactiveEval.notifier())}};NotifierPool.prototype.cancel=function(){return this._each(function(n){return n.cancel()})};NotifierPool.prototype.fire=function(){return this._each(function(n){return n.fire()})};NotifierPool.prototype.monitor_cancelled=function(){return this._each(function(n){return n.monitor_cancelled()})};NotifierPool.prototype.sibling_fired=function(){return this._each(function(n){return n.sibling_fired()})};NotifierPool.prototype.is_active=function(){var n,_i,_len,_ref;_ref=this.notifiers;for(_i=0,_len=_ref.length;_i<_len;_i++){n=_ref[_i];if(n.is_active()){return true}}return false};NotifierPool.prototype._each=function(f){var ns;ns=this.notifiers;this.notifiers=[];return ns.forEach(f)};return NotifierPool}(Base);NotifierPoolWithValue=function(){function NotifierPoolWithValue(){this.notifiers=new NotifierPool;this.current=Try["null"]}NotifierPoolWithValue.prototype.allocate=function(){};NotifierPoolWithValue.prototype.set=function(e,r){this.current=Try.resolve(e,r);return this.notifiers.fire()};NotifierPoolWithValue.prototype.get=function(){this.notifiers.allocate();return this.current.get()};return NotifierPoolWithValue}();Monitor=function(_super){__extends(Monitor,_super);function Monitor(){Monitor.__super__.constructor.call(this);this.notifiers=[]}Monitor.prototype.notifier=function(){var n;this.notifiers.push(n=new Notifier(this));return n};Monitor.prototype.cancel=function(){};Monitor.prototype.fire=function(){return next_tick(function(_this){return function(){return _this.emit("fire")}}(this))};Monitor.prototype.bubble=function(){var n;if(ReactiveEval.active()){n=ReactiveEval.notifier();return this.once("fire",function(){return n.fire()})}};Monitor.join=function(monitors){var cb,len,notifier;if(ReactiveEval.active()){notifier=ReactiveEval.notifier();len=monitors.length;cb=function(){if(--len===0){return notifier.fire()}};return monitors.forEach(function(m){return m.once("fire",cb)})}};return Monitor}(Base);MonitorListenerProxy=function(){function MonitorListenerProxy(handler){this.handler=handler}MonitorListenerProxy.prototype.swap=function(m){var _ref,_ref1;if((_ref=this.monitor)!=null){_ref.off("fire",this.handler)}this.monitor=m;return(_ref1=this.monitor)!=null?_ref1.once("fire",this.handler):void 0};return MonitorListenerProxy}();Try=function(){function Try(error,result){this.error=error;this.result=result}Try.prototype.get=function(){if(this.error!=null){throw this.error}return this.result};Try.prototype.equals=function(other,comparator){if(comparator==null){comparator=void 0}if(comparator==null){comparator=function(a,b){return a===b}}if(!(other instanceof Try)){return false}if(other.error!=null||this.error!=null){return comparator(other.error,this.error)}else{return comparator(other.result,this.result)}};Try.prototype.merge=function(){if(this.error!=null){return this.error}else{return this.result}};Try["eval"]=function(expr){var e;try{return new Try(null,expr())}catch(_error){e=_error;return new Try(e)}};Try.err=function(v){return new Try(v,null)};Try.res=function(v){return new Try(null,v)};Try.resolve=function(e,r){if(e instanceof Try){return e}if(e!=null){return new Try(e,null)}else{return new Try(null,r)}};Try.one=function(x){if(x instanceof Error){return new Try(x)}else{return new Try(null,x)}};Try["null"]=new Try(null,null);return Try}();Token=function(){function Token(){}Token.prototype.result=null;Token.prototype.partial=false;Token.prototype.monitor=null;return Token}();Iterator=function(_super){__extends(Iterator,_super);Iterator.prototype.expired=true;Iterator.prototype.last_token=null;Iterator.prototype.iteration_count=0;function Iterator(expr){this.add_to_stack=__bind(this.add_to_stack,this);this.update_counters=__bind(this.update_counters,this);this.invalidate_service_caches=__bind(this.invalidate_service_caches,this);Iterator.__super__.constructor.call(this);this.expr=this.add_to_stack(this.invalidate_service_caches(this.mark_partials(this.attach_monitors(this.update_counters(this.tokenize(expr))))));this.monitor_listener=new MonitorListenerProxy(function(_this){return function(){_this.expired=true;return _this.emit("change")}}(this));this.cache={}}Iterator.prototype.refresh=function(){var t,_ref,_ref1;if(this.expired){this.expired=false;t=this.expr();this.monitor_listener.swap(t.monitor);this.last_token=t;debug_error((_ref=t.result)!=null?(_ref1=_ref.result)!=null?_ref1.error:void 0:void 0);return true}else{return false}};Iterator.prototype.current=function(){if(this.pending()){return Try["null"]}else{return this.last_token.result}};Iterator.prototype.pending=function(){return this.last_token.result.error instanceof PendingSignal};Iterator.prototype.expireable=function(){if(this.last_token!=null){return this.last_token.monitor!=null}else{return true}};Iterator.prototype.close=function(){var _ref,_ref1;if((_ref=this.last_token)!=null){if((_ref1=_ref.monitor)!=null){_ref1.cancel()}}this.monitor_listener.swap(null);return this.cache={}};Iterator.prototype.tokenize=function(expr){return function(){return tap(new Token)(function(t){return t.result=Try["eval"](expr)})}};Iterator.prototype.attach_monitors=function(stream){return function(){var r;r=ReactiveEval["eval"](stream);return tap(r.result)(function(t){return t.monitor=r.monitor})}};Iterator.prototype.mark_partials=function(stream){return function(){var prm;prm=new PartialResultMarker;return tap(prm.run(stream))(function(t){return t.partial=prm.marked})}};Iterator.prototype.invalidate_service_caches=function(stream){return function(_this){return function(){return tap(stream())(function(t){if(!(t.partial||t.result.error instanceof PendingSignal)){return _this.cache={}}})}}(this)};Iterator.prototype.update_counters=function(stream){return function(_this){return function(){return tap(stream())(function(){return _this.iteration_count++})}}(this)};Iterator.prototype.add_to_stack=function(stream){return function(_this){return function(){return Iterator.stack.run(stream,function(){return _this})}}(this)};Iterator.stack=new StackVal;Iterator.current_cache=function(){return this.stack.get().cache};return Iterator}(Base);ReactiveLoop=function(_super){__extends(ReactiveLoop,_super);function ReactiveLoop(expr,opts){var _base,_base1;this.opts=opts!=null?opts:null;this.stop=__bind(this.stop,this);this._loop=__bind(this._loop,this);ReactiveLoop.__super__.constructor.call(this);if(this.opts==null){this.opts={}}if((_base=this.opts).debounce==null){_base.debounce=DEFAULT_LOOP_DELAY}if((_base1=this.opts).detached==null){_base1.detached=true}this.iter=new Iterator(function(_this){return function(){return ReactiveLoop.stack.run(expr,function(){return _this})}}(this));this._attach_to_parent();this._request_loop()}ReactiveLoop.prototype._request_loop=function(){if(this.loop_timeout!=null){clearTimeout(this.loop_timeout)}return this.loop_timeout=setTimeout(this._loop,this.opts.debounce)};ReactiveLoop.prototype._loop=function(){var err;if(this._eol_heuristics()){this.iter.refresh();err=this.iter.current().error;if(err instanceof StopSignal){return this.stop()}else{if(err!=null){try{console.log(err)}catch(_error){}}return this.iter.once("change",function(_this){return function(){return _this._request_loop()}}(this))}}else{return this.stop()}};ReactiveLoop.prototype.iteration_count=function(){return this.iter.iteration_count};ReactiveLoop.prototype.stop=function(){if(this.loop_timeout!=null){clearTimeout(this.loop_timeout)}return this.iter.close()};ReactiveLoop.prototype._eol_heuristics=function(){var iterations_we_have_lived;if(this.parent!=null){iterations_we_have_lived=this.parent.iteration_count()-this.parent_iteration_count;if(iterations_we_have_lived>LOOP_ITERATIONS_TO_SURVIVE){return false}}return true};ReactiveLoop.prototype.parent=void 0;ReactiveLoop.prototype.parent_iteration_count=void 0;ReactiveLoop.prototype._attach_to_parent=function(){if(!this.opts.detached){if(ReactiveLoop.stack.defined()){this.parent=ReactiveLoop.stack.get;return this.parent_iteration_count=this.parent.iteration_count()}}};ReactiveLoop.stack=new StackVal;return ReactiveLoop}(Base);promise_xor_callback=function(async_func,cb){var cb2,ready,_ref;ready=false;cb2=function(e,r){if(!ready){cb(e,r)}return ready=true};return(_ref=async_func(cb2))!=null?typeof _ref.then==="function"?_ref.then(function(r){return cb2(void 0,r)},function(e){return cb2(e)}):void 0:void 0};syncify=function(opts){var api,cache,id,instance_scoped_cache_lazy;if(typeof opts==="function"){opts={func:opts}}if(opts.global==null){opts.global=false}if(opts.ttl==null){opts.ttl=0}if(opts.hasher==null){opts.hasher=JSON.stringify}id=serial();instance_scoped_cache_lazy=void 0;cache=function(){var build,instance_scoped,iteration_scoped;build=function(){var cells,get,reset,reset_cell;cells={};get=function(args){var key;if(args.length!==opts.func.length-1){throw new Error("Wrong number of arguments for syncified function "+opts.func.toString())}key=opts.hasher(args);return(cells[key]!=null?cells[key]:cells[key]=function(){var c;c=build_cell(new PendingSignal);c.___args=args;if(opts.ttl!==0){c.___timeout=delay(opts.ttl,function(){return reset_cell(key)})}promise_xor_callback(function(cb){return opts.func.apply(null,args.concat([cb]))},c);return c}())()};reset_cell=function(key){var cell;if((cell=cells[key])!=null){delete cells[key];if(cell.___timeout){clearTimeout(cell.___timeout)}if(cell.monitored()){return cell({})}}};reset=function(filter){var cell,k,_results;_results=[];for(k in cells){if(!__hasProp.call(cells,k))continue;cell=cells[k];if(filter==null||filter(cell.___args)){_results.push(reset_cell(k))}}return _results};return{get:get,reset:reset}};iteration_scoped=function(){var _base;return(_base=Iterator.current_cache())[id]!=null?_base[id]:_base[id]=build()};instance_scoped=function(){return instance_scoped_cache_lazy!=null?instance_scoped_cache_lazy:instance_scoped_cache_lazy=build()};if(opts.global){return instance_scoped()}else{return iteration_scoped()}};api=function(){return cache().get(Array.prototype.slice.apply(arguments))};api.reset=function(filter){return instance_scoped_cache().reset(filter)};return api};fork=function(){var api,monitors,pending;pending=0;monitors=[];api=function(expr){var res;res=ReactiveEval["eval"](expr);if(res.result.error instanceof PendingSignal){if(res.monitor==null){throw new Error("You cannot throw a PendingSignal from a non reactive function - it will never resolve")}pending++;monitors.push(res.monitor);return null}else{return res.unbox()}};api.join=function(){Monitor.join(monitors);if(pending>0){throw new PendingSignal}return void 0};return api};PartialResultMarker=function(){function PartialResultMarker(){this.mark=__bind(this.mark,this)}PartialResultMarker.prototype.flag=false;PartialResultMarker.prototype.run=function(expr){return PartialResultMarker.stack.run(expr,function(_this){return function(){return _this}}(this))};PartialResultMarker.prototype.mark=function(){return this.flag=true};PartialResultMarker.prototype.marked=function(){return this.flag};PartialResultMarker.stack=new StackVal;PartialResultMarker.mark=function(){return this.stack.get().mark()};return PartialResultMarker}();ReactiveEval=function(){function ReactiveEval(expr){this.expr=expr}ReactiveEval.prototype.lazy_monitor=function(){return this._monitor!=null?this._monitor:this._monitor=new Monitor};ReactiveEval.prototype.run=function(){var t;t=Try["eval"](this.expr);return new ReactiveEvalResult(t,this._monitor)};ReactiveEval.prototype.allocate_notifier=function(){return this.lazy_monitor().notifier()};ReactiveEval.stack=[];ReactiveEval.notifier=function(){var _ref;return(_ref=this.stack[this.stack.length-1])!=null?_ref.allocate_notifier():void 0};ReactiveEval.active=function(){return this.stack.length>0};ReactiveEval.mute=function(expr){return function(){var res,_ref;res=ReactiveEval["eval"](expr);if((_ref=res.monitor)!=null){_ref.cancel()}if(is_special_error(res.result.error)){delete res.result.error}return res.result.get()}};ReactiveEval["eval"]=function(expr){var r,rev;rev=new ReactiveEval(expr);this.stack.push(rev);r=rev.run();this.stack.pop();return r};return ReactiveEval}();ReactiveEvalResult=function(){function ReactiveEvalResult(result,monitor){this.result=result;this.monitor=monitor}ReactiveEvalResult.prototype.unbox=function(){var _ref;if((_ref=this.monitor)!=null){_ref.bubble()}return this.result.get()};return ReactiveEvalResult}();build_cell=function(initial_value,opts){var api,doget,doset,doset_throttled,notifiers,throttle_timeout,value;if(opts==null){opts={}}if(opts.comparator==null){opts.comparator=EQUALS}if(opts.throttle==null){opts.throttle=0}value=void 0;notifiers=new NotifierPool;throttle_timeout=void 0;doget=function(){notifiers.allocate();return value!=null?value.get():void 0};doset_throttled=function(v){if(opts.throttle===0){return doset(v)}else{if(throttle_timeout){clearTimeout(throttle_timeout);throttle_timeout=void 0}return throttle_timeout=delay(opts.throttle,function(){return doset(v)})}};doset=function(v){var new_t;new_t=v instanceof Error?new Try(v):new Try(null,v);if(new_t.equals(value,opts.comparator)){return}value=new_t;return notifiers.fire()};api=function(){var a;a=arguments;switch(a.length){case 0:return doget();case 1:return doset_throttled(a[0]);case 2:return doset_throttled(a[0]||a[1])}};api.monitored=function(){return notifiers.is_active()};if(initial_value!=null){doset(initial_value)}return api};poll=function(interval,expr){var iter,notifier,res,reval;if(typeof interval==="function"){expr=interval;interval=300}reval=function(exp){var r,_ref;r=ReactiveEval["eval"](exp);if((_ref=r.monitor)!=null){_ref.cancel()}return r.result};if(!ReactiveEval.active()){return expr()}else{notifier=ReactiveEval.notifier();res=reval(expr);(iter=function(){return delay(interval,function(){if(notifier.is_active()){if(res.equals(reval(expr))){return iter()}else{return notifier.fire()}}})})();return res.get()}};throttle=function(delay,expr){var iter,notifier,res,th;if(typeof delay==="function"){expr=delay;delay=300}if(!ReactiveEval.active()){return expr()}res=ReactiveEval["eval"](expr);if(res.monitor!=null){th=throttler(delay);notifier=ReactiveEval.notifier();res.monitor.once("fire",iter=function(){var r,_ref;th(function(){return notifier.fire()});r=ReactiveEval["eval"](expr);return(_ref=r.monitor)!=null?_ref.once("fire",iter):void 0})}return res.result.get()};distinct=function(expr,comparator){var v;if(comparator==null){comparator=EQUALS}v=intercept(expr,function(r){return!r.equals(v,comparator)});return v.get()};intercept=function(expr,predicate){var iter,notifier,res;if(!ReactiveEval.active()){return Try["eval"](expr)}res=ReactiveEval["eval"](expr);if(res.monitor!=null){notifier=ReactiveEval.notifier();res.monitor.once("fire",iter=function(){var r,_ref,_ref1;r=ReactiveEval["eval"](expr);if(predicate(r.result)){if((_ref=r.monitor)!=null){_ref.cancel()}return next_tick(function(){return notifier.fire()})}else{return(_ref1=r.monitor)!=null?_ref1.once("fire",iter):void 0}})}return res.result};radioactive_data=function(){var firebase_cache,get_firebase,get_html_elm_val,get_json,json_service;json_service=function(){var cached;cached=void 0;return function(){return cached!=null?cached:cached=function(){if(typeof jQuery==="undefined"||jQuery===null){throw new Error("radioactive.data requires jQuery to issue Ajax calls")}return syncify(function(url,cb){return jQuery.ajax({dataType:"json",url:url,success:function(data){return cb(null,data)},error:function(x,y,err){return cb(err)}})})}()}}();get_json=function(url,opts){return function(){return json_service()(url)}};firebase_cache={};get_firebase=function(url){return firebase_cache[url]!=null?firebase_cache[url]:firebase_cache[url]=function(){var cell,ref;if(typeof Firebase==="undefined"||Firebase===null){throw new Error("cannot find Firebase client library")}ref=new Firebase(url);cell=build_cell(new PendingSignal);ref.on("value",function(snap){return cell(snap.val())});return function(){if(arguments.length===0){return cell()}else{return ref.update(arguments[1])}}}()};get_html_elm_val=function($elm){var c,key;if(typeof jQuery==="undefined"||jQuery===null){throw new Error("radioactive.data requires jQuery to issue read HTML UI Element values")}$elm.val();key="radioactive-cell";if((c=$elm.data(key))==null){$elm.data(key,c=build_cell($elm.val()));switch($elm[0].tagName){case"INPUT":$elm.on("keyup",function(){return c($elm.val())});break;case"SELECT":$elm.on("change",function(){return c($elm.val())})}}return function(){if(arguments.length===0){return c()}else{return $elm.val(arguments[0])}}};return function(){var a,_ref;a=arguments;switch(typeof a[0]){case"string":if((_ref=a[0][0])==="."||_ref==="#"){return get_html_elm_val($(a[0]))}else if(-1!==a[0].indexOf("firebaseio.com")){return get_firebase(a[0])}else{return get_json(a[0],a[1])}break;case"object":if($(a)[0].ownerDocument!=null){return get_html_elm_val($(a[0]))}break;default:throw new Error("Unknown datasource. Check "+WIKI_URL+"/radioactive.data for a list of built-in datasources")}}}();rxjs=function(){var expr_roundtrip,from_rx,obs_roundtrip,resolve_rx_module,rx_module,to_rx;rx_module=void 0;resolve_rx_module=function(){return rx_module!=null?rx_module:rx_module=function(){var e;return tap(function(){try{return require("r"+"x")}catch(_error){e=_error;return Rx}}())(function(m){if(m==null){throw new Error("Rx-JS not found")}})}()};from_rx=function(rx_observable){if(typeof rx_observable.subscribe!=="function"){throw new Error("Not an instance of Rx.Observable")}return rx_observable.__radioactive_expression!=null?rx_observable.__radioactive_expression:rx_observable.__radioactive_expression=function(){var npv,on_complete,on_err,on_next;npv=new NotifierPoolWithValue;npv.set(new PendingSignal);on_next=function(x){return npv.set(null,x)};on_err=function(x){return npv.set(x,null)};on_complete=function(){};rx_observable.subscribe(on_next,on_err,on_complete);return function(){return npv.get()}}()};to_rx=function(expr){return expr.__rx_observable!=null?expr.__rx_observable:expr.__rx_observable=function(){return resolve_rx_module().Observable.create(function(observer){return radioactive.react(expr,function(e,r){if(e!=null){return observer.onError(e)}else{return observer.onNext(r)}})})}()};expr_roundtrip=function(expr,process_obs){return from_rx(process_obs(to_rx(expr)))};obs_roundtrip=function(obs,process_expr){return to_rx(process_expr(from_rx(obs)))};return function(a,b){switch(typeof a+" "+typeof b){case"function undefined":return to_rx(a);case"object undefined":return from_rx(a);case"function function":return expr_roundtrip(a,b);case"object function":return obs_roundtrip(a,b)}}}();loop_with_callback=function(expr,cb){var stop;stop=false;radioactive.react(function(){var e;if(stop){radioactive.stop()}try{return cb(null,expr())}catch(_error){e=_error;if(is_special_error(e)){throw e}return cb(e)}});return function(){return stop=true}};is_pending=function(expr){var e;try{expr();return false}catch(_error){e=_error;if(e instanceof PendingSignal){PartialResultMarker.mark();return true}else{return false}}};build_public_api=function(){var internals,radioactive;radioactive=function(a,b){switch(typeof a+" "+typeof b){case"function undefined":return radioactive.react(a);case"function function":return radioactive.react(a,b);default:return build_cell(a)}};radioactive.data=radioactive_data;radioactive.cell=build_cell;radioactive.cell.pending=function(){return build_cell(new PendingSignal)};radioactive.active=function(){return ReactiveEval.active()};radioactive.notifier=function(callback){var n,_ref;n=(_ref=ReactiveEval.notifier())!=null?_ref.public_api():void 0;if(callback!=null){if(n!=null){return callback(n)}}else{return n}};radioactive.stop=function(){throw new StopSignal};radioactive.fork=fork;radioactive.mute=function(expr){return ReactiveEval.mute(expr)};radioactive.poll=poll;radioactive.react=function(a,b){switch(typeof a+" "+typeof b){case"function undefined":return new ReactiveLoop(a);case"function function":return loop_with_callback(a,b)}};radioactive.once=function(expr){return radioactive.react(function(){expr();return radioactive.stop()})};radioactive.pending=function(expr,defv){switch(arguments.length){case 0:throw new PendingSignal;break;case 1:return is_pending(expr);case 2:if(is_pending(expr)){if(typeof defv==="function"){return defv()}else{return defv}}else{return expr()}}};radioactive.syncify=syncify;radioactive.echo=function(delay_ms){var cells;if(delay_ms==null){delay_ms=1e3}cells={};return function(message){return(cells[message]!=null?cells[message]:cells[message]=function(){var c;delay(delay_ms,function(){return c(message)});return c=build_cell(new PendingSignal)}())()}};radioactive.time=function(interval){if(interval==null){interval=1e3}if(interval>0&&ReactiveEval.active()){setTimeout(radioactive.notifier(),interval)}return(new Date).getTime()};radioactive.PendingSignal=PendingSignal;radioactive.rx=rxjs;radioactive.distinct=distinct;radioactive.throttle=throttle;radioactive.safecatch=function(error){if(is_special_error(error)){throw error}};radioactive._internals=internals={};internals.Monitor=Monitor;internals.Notifier=Notifier;internals.ReactiveEval=ReactiveEval;internals.BasicEventEmitter=BasicEventEmitter;return radioactive};compare_semver=function(v1,v2){var arr,i,x,x1,x2,_i,_len;v1=function(){var _i,_len,_ref,_results;_ref=v1.split(".");_results=[];for(_i=0,_len=_ref.length;_i<_len;_i++){x=_ref[_i];_results.push(Number(x))}return _results}();v2=function(){var _i,_len,_ref,_results;_ref=v2.split(".");_results=[];for(_i=0,_len=_ref.length;_i<_len;_i++){x=_ref[_i];_results.push(Number(x))}return _results}();arr=function(){var _i,_len,_results;_results=[];for(i=_i=0,_len=v1.length;_i<_len;i=++_i){x1=v1[i];x2=v2[i];if(x1>x2){_results.push("GT")}else if(x1