tungsten 0.1.53 → 0.1.54

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6db11d824a05c84b52e587c9714f751007edae1f
4
- data.tar.gz: 2e6b8979d29b3bafaa97766fa00b403a97cf7dff
3
+ metadata.gz: 395efb7d7c4f47261f1427a44a84fffe51b71d8d
4
+ data.tar.gz: ece1c6868e510172ab88015c3d2ef6d04c7dee9c
5
5
  SHA512:
6
- metadata.gz: 73d29181c19682eca24fd769d585f8a43c716dbd4eb214f8b935d54d1d2f55c5a19876323aeb9f89c92aa98bab763cf7c2a2de11dd8c02d700d45a950ee688f1
7
- data.tar.gz: 55e3c7759b3216a5eaf228e4fe15fa29f62379d553cf55fbc0e52e358078b5f7ea365af4305fe9ff354d7bbcb8665c4ea27f8721fc7b1c7a61a3f7758d74d589
6
+ metadata.gz: c636f777e60abd3fbfaccdae8164f332eb2136368af9077d9b1442de3d5b46c9a104cff80cd55ff630b450a63f0181a935ea7aa1b90ebf4789901453aa139fc8
7
+ data.tar.gz: 1519e212244375e13bbe2635ef06c524cc6b8806df44fa3330c261c6997f9ee9c89332bac0e787c9d7a7be5e59ebc30184d762dc70d45a4f9c10d16c860960db
@@ -61,9 +61,9 @@
61
61
  }
62
62
  }
63
63
  &-continue {
64
- @extend .button.primary;
64
+ @extend .button, .primary;
65
65
  &.destructive {
66
- @extend .button.primary-destructive;
66
+ @extend .button, .primary-destructive;
67
67
  }
68
68
  }
69
69
  }
@@ -1,11 +1,11 @@
1
1
  // Solid color classes
2
2
  @each $name, $color in $colors {
3
3
  // Assign a `.[color]-text` class with a color of [color]
4
- .#{$name}-text {
4
+ .#{"" + $name}-text {
5
5
  color: $color;
6
6
  }
7
7
 
8
- .#{$name}-bg {
8
+ .#{"" + $name}-bg {
9
9
  background-color: $color;
10
10
  }
11
11
  }
@@ -14,7 +14,7 @@
14
14
  $start: nth($colors, 1);
15
15
  $end: nth($colors, 2);
16
16
 
17
- .#{$name}-gradient-bg {
17
+ .#{"" + $name}-gradient-bg {
18
18
  background: linear-gradient(135deg, #{$start}, #{$end}) left top/100% 100% no-repeat;
19
19
  }
20
- }
20
+ }
@@ -72,8 +72,12 @@ module Tungsten
72
72
  time_tag(date, options)
73
73
  end
74
74
 
75
+ def parse_date(date)
76
+ DateTime.parse(date.to_s).new_offset(0).iso8601
77
+ end
78
+
75
79
  def time_tag(date, options={})
76
- iso_date = DateTime.parse(date.to_s).new_offset(0).iso8601
80
+ iso_date = parse_date(date)
77
81
 
78
82
  options[:datetime] = iso_date
79
83
 
@@ -1,3 +1,3 @@
1
1
  module Tungsten
2
- VERSION = "0.1.53"
2
+ VERSION = "0.1.54"
3
3
  end
@@ -1,6 +1,6 @@
1
1
  (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.tungsten = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
2
2
  "use strict";var event=require("compose-toolbox").event,highlighter=require("compose-code-highlighter");require("codemirror/mode/htmlmixed/htmlmixed"),require("codemirror/mode/slim/slim"),require("codemirror/mode/javascript/javascript"),require("codemirror/mode/css/css"),require("codemirror/mode/sql/sql"),require("codemirror/mode/php/php"),require("codemirror/mode/ruby/ruby"),require("codemirror/mode/shell/shell"),require("codemirror/mode/go/go"),require("codemirror/mode/python/python"),require("codemirror/mode/yaml/yaml"),require("codemirror/mode/clike/clike"),require("codemirror/addon/runmode/runmode"),require("codemirror/addon/edit/matchbrackets"),event.change(highlighter.highlight);
3
- },{"codemirror/addon/edit/matchbrackets":3,"codemirror/addon/runmode/runmode":4,"codemirror/mode/clike/clike":6,"codemirror/mode/css/css":7,"codemirror/mode/go/go":8,"codemirror/mode/htmlmixed/htmlmixed":9,"codemirror/mode/javascript/javascript":10,"codemirror/mode/php/php":11,"codemirror/mode/python/python":12,"codemirror/mode/ruby/ruby":13,"codemirror/mode/shell/shell":14,"codemirror/mode/slim/slim":15,"codemirror/mode/sql/sql":16,"codemirror/mode/yaml/yaml":18,"compose-code-highlighter":19,"compose-toolbox":35}],2:[function(require,module,exports){
3
+ },{"codemirror/addon/edit/matchbrackets":3,"codemirror/addon/runmode/runmode":4,"codemirror/mode/clike/clike":6,"codemirror/mode/css/css":7,"codemirror/mode/go/go":8,"codemirror/mode/htmlmixed/htmlmixed":9,"codemirror/mode/javascript/javascript":10,"codemirror/mode/php/php":11,"codemirror/mode/python/python":12,"codemirror/mode/ruby/ruby":13,"codemirror/mode/shell/shell":14,"codemirror/mode/slim/slim":15,"codemirror/mode/sql/sql":16,"codemirror/mode/yaml/yaml":18,"compose-code-highlighter":19,"compose-toolbox":36}],2:[function(require,module,exports){
4
4
  !function(e,t,n){"undefined"!=typeof module&&module.exports?module.exports=n():"function"==typeof define&&define.amd?define(n):t.bean=n()}(0,this,function(e,t){e=e||"bean",t=t||this;var n,r=window,o=t[e],i=/[^\.]*(?=\..*)\.|.*/,a=/\..*/,l="addEventListener",u=document||{},c=u.documentElement||{},s=c[l],p=s?l:"attachEvent",f={},h=Array.prototype.slice,g=function(e,t){return e.split(t||" ")},d=function(e){return"string"==typeof e},m=function(e){return"function"==typeof e},v=function(e){return"object"==typeof e},y=function(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);if(!v(t))return n;for(r in n)n.hasOwnProperty(r)&&t.hasOwnProperty(r)&&(n[r]=t[r]);return n},b=function(e,t,n){for(n=0;n<t.length;n++)t[n]&&(e[t[n]]=1);return e}({},g("click dblclick mouseup mousedown contextmenu mousewheel mousemultiwheel DOMMouseScroll mouseover mouseout mousemove selectstart selectend keydown keypress keyup orientationchange focus blur change reset select submit load unload beforeunload resize move DOMContentLoaded readystatechange message error abort scroll "+(s?"show input invalid touchstart touchmove touchend touchcancel gesturestart gesturechange gestureend textinput readystatechange pageshow pagehide popstate hashchange offline online afterprint beforeprint dragstart dragenter dragover dragleave drag drop dragend loadstart progress suspend emptied stalled loadmetadata loadeddata canplay canplaythrough playing waiting seeking seeked ended durationchange timeupdate play pause ratechange volumechange cuechange checking noupdate downloading cached updateready obsolete ":""))),w=function(){var e="compareDocumentPosition"in c?function(e,t){return t.compareDocumentPosition&&16==(16&t.compareDocumentPosition(e))}:"contains"in c?function(e,t){return(t=9===t.nodeType||t===window?c:t)!==e&&t.contains(e)}:function(e,t){for(;e=e.parentNode;)if(e===t)return 1;return 0},t=function(t){var n=t.relatedTarget;return n?n!==this&&"xul"!==n.prefix&&!/document/.test(this.toString())&&!e(n,this):null==n};return{mouseenter:{base:"mouseover",condition:t},mouseleave:{base:"mouseout",condition:t},mousewheel:{base:/Firefox/.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel"}}}(),E=function(){var e=g("altKey attrChange attrName bubbles cancelable ctrlKey currentTarget detail eventPhase getModifierState isTrusted metaKey relatedNode relatedTarget shiftKey srcElement target timeStamp type view which propertyName path"),t=e.concat(g("button buttons clientX clientY dataTransfer fromElement offsetX offsetY pageX pageY screenX screenY toElement movementX movementY region")),n=t.concat(g("wheelDelta wheelDeltaX wheelDeltaY wheelDeltaZ axis")),o=e.concat(g("char charCode key keyCode keyIdentifier keyLocation location isComposing code")),i=e.concat(g("data")),a=e.concat(g("touches targetTouches changedTouches scale rotation")),l=e.concat(g("data origin source")),s=e.concat(g("state")),p=/over|out/,f=[{reg:/key/i,fix:function(e,t){return t.keyCode=e.keyCode||e.which,o}},{reg:/click|mouse(?!(.*wheel|scroll))|menu|drag|drop/i,fix:function(e,n,r){return n.rightClick=3===e.which||2===e.button,n.pos={x:0,y:0},e.pageX||e.pageY?(n.clientX=e.pageX,n.clientY=e.pageY):(e.clientX||e.clientY)&&(n.clientX=e.clientX+u.body.scrollLeft+c.scrollLeft,n.clientY=e.clientY+u.body.scrollTop+c.scrollTop),p.test(r)&&(n.relatedTarget=e.relatedTarget||e[("mouseover"==r?"from":"to")+"Element"]),t}},{reg:/mouse.*(wheel|scroll)/i,fix:function(){return n}},{reg:/^text/i,fix:function(){return i}},{reg:/^touch|^gesture/i,fix:function(){return a}},{reg:/^message$/i,fix:function(){return l}},{reg:/^popstate$/i,fix:function(){return s}},{reg:/.*/,fix:function(){return e}}],h={},d=function(e,t,n){if(arguments.length&&(e=e||((t.ownerDocument||t.document||t).parentWindow||r).event,this.originalEvent=e,this.isNative=n,this.isBean=!0,e)){var o,i,a,l,u,c=e.type,s=e.target||e.srcElement;if(this.target=s&&3===s.nodeType?s.parentNode:s,n){if(!(u=h[c]))for(o=0,i=f.length;o<i;o++)if(f[o].reg.test(c)){h[c]=u=f[o].fix;break}for(l=u(e,this,c),o=l.length;o--;)!((a=l[o])in this)&&a in e&&(this[a]=e[a])}}};return d.prototype.preventDefault=function(){this.originalEvent.preventDefault?this.originalEvent.preventDefault():this.originalEvent.returnValue=!1},d.prototype.stopPropagation=function(){this.originalEvent.stopPropagation?this.originalEvent.stopPropagation():this.originalEvent.cancelBubble=!0},d.prototype.stop=function(){this.preventDefault(),this.stopPropagation(),this.stopped=!0},d.prototype.stopImmediatePropagation=function(){this.originalEvent.stopImmediatePropagation&&this.originalEvent.stopImmediatePropagation(),this.isImmediatePropagationStopped=function(){return!0}},d.prototype.isImmediatePropagationStopped=function(){return this.originalEvent.isImmediatePropagationStopped&&this.originalEvent.isImmediatePropagationStopped()},d.prototype.clone=function(e){var t=new d(this,this.element,this.isNative);return t.currentTarget=e,t},d}(),T=function(e,t){return s||t||e!==u&&e!==r?e:c},D=function(){var e=function(e,t,n,r){var o=function(n,o){return t.apply(e,r?h.call(o,n?0:1).concat(r):o)},i=function(n,r){return t.__beanDel?t.__beanDel.ft(n.target,e):r},a=n?function(e){var t=i(e,this);if(n.apply(t,arguments))return e&&(e.currentTarget=t),o(e,arguments)}:function(e){return t.__beanDel&&(e=e.clone(i(e))),o(e,arguments)};return a.__beanDel=t.__beanDel,a},t=function(t,n,r,o,i,a,l){var u,c=w[n];"unload"==n&&(r=C(N,t,n,r,o)),c&&(c.condition&&(r=e(t,r,c.condition,a)),n=c.base||n),this.isNative=u=b[n]&&!!t[p],this.customType=!s&&!u&&n,this.element=t,this.type=n,this.original=o,this.namespaces=i,this.eventType=s||u?n:"propertychange",this.target=T(t,u),this[p]=!!this.target[p],this.root=l,this.handler=e(t,r,null,a)};return t.prototype.inNamespaces=function(e){var t,n,r=0;if(!e)return!0;if(!this.namespaces)return!1;for(t=e.length;t--;)for(n=this.namespaces.length;n--;)e[t]==this.namespaces[n]&&r++;return e.length===r},t.prototype.matches=function(e,t,n){return!(this.element!==e||t&&this.original!==t||n&&this.handler!==n)},t}(),P=function(){var e={},t=function(n,r,o,i,a,l){var u=a?"r":"$";if(r&&"*"!=r){var c,s=0,p=e[u+r],f="*"==n;if(!p)return;for(c=p.length;s<c;s++)if((f||p[s].matches(n,o,i))&&!l(p[s],p,s,r))return}else for(var h in e)h.charAt(0)==u&&t(n,h.substr(1),o,i,a,l)};return{has:function(t,n,r,o){var i,a=e[(o?"r":"$")+n];if(a)for(i=a.length;i--;)if(!a[i].root&&a[i].matches(t,r,null))return!0;return!1},get:function(e,n,r,o){var i=[];return t(e,n,r,null,o,function(e){return i.push(e)}),i},put:function(t){var n=!t.root&&!this.has(t.element,t.type,null,!1),r=(t.root?"r":"$")+t.type;return(e[r]||(e[r]=[])).push(t),n},del:function(n){t(n.element,n.type,null,n.handler,n.root,function(t,n,r){return n.splice(r,1),t.removed=!0,0===n.length&&delete e[(t.root?"r":"$")+t.type],!1})},entries:function(){var t,n=[];for(t in e)"$"==t.charAt(0)&&(n=n.concat(e[t]));return n}}}(),x=function(e){n=arguments.length?e:u.querySelectorAll?function(e,t){return t.querySelectorAll(e)}:function(){throw new Error("Bean: No selector engine installed")}},k=function(e,t){if(s||!t||!e||e.propertyName=="_on"+t){var n=P.get(this,t||e.type,null,!1),r=n.length,o=0;for(e=new E(e,this,!0),t&&(e.type=t);o<r&&!e.isImmediatePropagationStopped();o++)n[o].removed||n[o].handler.call(this,e)}},_=s?function(e,t,n,r,o){e[n?l:"removeEventListener"](t,k,o)}:function(e,t,n,r){var o;n?(P.put(o=new D(e,r||t,function(t){k.call(e,t,r)},k,null,null,!0)),r&&null==e["_on"+r]&&(e["_on"+r]=0),o.target.attachEvent("on"+o.eventType,o.handler)):(o=P.get(e,r||t,k,!0)[0])&&(o.target.detachEvent("on"+o.eventType,o.handler),P.del(o))},C=function(e,t,n,r,o){return function(){r.apply(this,arguments),e(t,n,o)}},N=function(e,t,n,r,o){var i,l,u=t&&t.replace(a,""),c=P.get(e,u,null,!1),s={};for(i=0,l=c.length;i<l;i++)n&&c[i].original!==n||!c[i].inNamespaces(r)||(P.del(c[i]),!s[c[i].eventType]&&c[i][p]&&(s[c[i].eventType]={t:c[i].eventType,c:c[i].type}));for(i in s)P.has(e,s[i].t,null,!1)||_(e,s[i].t,!1,s[i].c,o)},S=function(e,t){var r=function(t,r){for(var o,i=d(e)?n(e,r):e;t&&t!==r;t=t.parentNode)for(o=i.length;o--;)if(i[o]===t)return t},o=function(e){var n=r(e.target,this);n&&t.apply(n,arguments)};return o.__beanDel={ft:r,selector:e},o},X=s?function(e,t,n){var o=u.createEvent(e?"HTMLEvents":"UIEvents");o[e?"initEvent":"initUIEvent"](t,!0,!0,r,1),n.dispatchEvent(o)}:function(e,t,n){n=T(n,e),e?n.fireEvent("on"+t,u.createEventObject()):n["_on"+t]++},Y=function(e,t,n){var r,o,l,u,c=d(t),s={useCapture:!1},p=y(s,arguments[arguments.length-1]);if(c&&t.indexOf(" ")>0){for(t=g(t),u=t.length;u--;)Y(e,t[u],n);return e}if(o=c&&t.replace(a,""),o&&w[o]&&(o=w[o].base),!t||c)(l=c&&t.replace(i,""))&&(l=g(l,".")),N(e,o,n,l,p.useCapture);else if(m(t))N(e,null,t,null,p.useCapture);else for(r in t)t.hasOwnProperty(r)&&Y(e,r,t[r]);return e},I=function(e,t,n,r){var o,l,u,c,s,d,v,b,w={useCapture:!1};{if(void 0!==n||"object"!=typeof t){for(m(n)?(s=h.call(arguments,3),r=o=n):(o=r,s=h.call(arguments,4),r=S(n,o)),b=y(w,s[s.length-1]),u=g(t),this===f&&(r=C(Y,e,t,r,o)),c=u.length;c--;)v=P.put(d=new D(e,u[c].replace(a,""),r,o,g(u[c].replace(i,""),"."),s,!1)),d[p]&&v&&_(e,d.eventType,!0,d.customType,b.useCapture);return e}for(l in t)t.hasOwnProperty(l)&&I.call(this,e,l,t[l])}},O=function(e,t,n,r,o){return I.apply(null,d(n)?[e,n,t,r].concat(arguments.length>3?h.call(arguments,4):[]):h.call(arguments))},L=function(){return I.apply(f,arguments)},M=function(e,t,n){var r,o,l,u,c,s=g(t);for(r=s.length;r--;)if(t=s[r].replace(a,""),(u=s[r].replace(i,""))&&(u=g(u,".")),u||n||!e[p])for(c=P.get(e,t,null,!1),n=[!1].concat(n),o=0,l=c.length;o<l;o++)c[o].inNamespaces(u)&&c[o].handler.apply(e,n);else X(b[t],t,e);return e},$=function(e,t,n){for(var r,o,i=P.get(t,n,null,!1),a=i.length,l=0;l<a;l++)i[l].original&&(r=[e,i[l].type],(o=i[l].handler.__beanDel)&&r.push(o.selector),r.push(i[l].original),I.apply(null,r));return e},A={on:I,add:O,one:L,off:Y,remove:Y,clone:$,fire:M,Event:E,setSelectorEngine:x,noConflict:function(){return t[e]=o,this}};if(r.attachEvent){var K=function(){var e,t=P.entries();for(e in t)t[e].type&&"unload"!==t[e].type&&Y(t[e].element,t[e].type);r.detachEvent("onunload",K),r.CollectGarbage&&r.CollectGarbage()};r.attachEvent("onunload",K)}return x(),A});
5
5
  },{}],3:[function(require,module,exports){
6
6
  !function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){function t(e,t,r){var i=e.getLineHandle(t.line),o=t.ch-1,l=r&&r.afterCursor;null==l&&(l=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var f=!l&&o>=0&&c[i.text.charAt(o)]||c[i.text.charAt(++o)];if(!f)return null;var s=">"==f.charAt(1)?1:-1;if(r&&r.strict&&s>0!=(o==t.ch))return null;var u=e.getTokenTypeAt(a(t.line,o+1)),h=n(e,a(t.line,o+(s>0?1:0)),s,u||null,r);return null==h?null:{from:a(t.line,o),to:h&&h.pos,match:h&&h.ch==f.charAt(0),forward:s>0}}function n(e,t,n,r,i){for(var o=i&&i.maxScanLineLength||1e4,l=i&&i.maxScanLines||1e3,f=[],s=i&&i.bracketRegex?i.bracketRegex:/[(){}[\]]/,u=n>0?Math.min(t.line+l,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-l),h=t.line;h!=u;h+=n){var m=e.getLine(h);if(m){var d=n>0?0:m.length-1,g=n>0?m.length:-1;if(!(m.length>o))for(h==t.line&&(d=t.ch-(n<0?1:0));d!=g;d+=n){var p=m.charAt(d);if(s.test(p)&&(void 0===r||e.getTokenTypeAt(a(h,d+1))==r)){var v=c[p];if(">"==v.charAt(1)==n>0)f.push(p);else{if(!f.length)return{pos:a(h,d),ch:p};f.pop()}}}}}return h-n!=(n>0?e.lastLine():e.firstLine())&&null}function r(e,n,r){for(var i=e.state.matchBrackets.maxHighlightLineLength||1e3,c=[],l=e.listSelections(),f=0;f<l.length;f++){var s=l[f].empty()&&t(e,l[f].head,r);if(s&&e.getLine(s.from.line).length<=i){var u=s.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";c.push(e.markText(s.from,a(s.from.line,s.from.ch+1),{className:u})),s.to&&e.getLine(s.to.line).length<=i&&c.push(e.markText(s.to,a(s.to.line,s.to.ch+1),{className:u}))}}if(c.length){o&&e.state.focused&&e.focus();var h=function(){e.operation(function(){for(var e=0;e<c.length;e++)c[e].clear()})};if(!n)return h;setTimeout(h,800)}}function i(e){e.operation(function(){l&&(l(),l=null),l=r(e,!1,e.state.matchBrackets)})}var o=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),a=e.Pos,c={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<"},l=null;e.defineOption("matchBrackets",!1,function(t,n,r){r&&r!=e.Init&&(t.off("cursorActivity",i),l&&(l(),l=null)),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",i))}),e.defineExtension("matchBrackets",function(){r(this,!0)}),e.defineExtension("findMatchingBracket",function(e,n,r){return(r||"boolean"==typeof n)&&(r?(r.strict=n,n=r):n=n?{strict:!0}:null),t(this,e,n)}),e.defineExtension("scanForBracket",function(e,t,r,i){return n(this,e,t,r,i)})});
@@ -43,11 +43,11 @@ builtin:i("bigint int8 bigserial serial8 bit varying varbit boolean bool box byt
43
43
  },{"../../lib/codemirror":5}],19:[function(require,module,exports){
44
44
  var CodeMirror=require("codemirror");require("codemirror/addon/runmode/runmode.js");var Highlighter={aliases:{bash:"text/x-sh",c:"text/x-csrc",html:"text/html",js:"text/javascript",json:"application/json",java:"text/x-java",markup:"text/html",sass:"text/x-sass",scss:"text/x-scss",sh:"text/x-sh"},addAlias:function(a){for(var s in a)self.aliases[s]=a[s]},aliasLang:function(a){return self.aliases[a]||a},process:function(a,s,t){var e={json:!1};"json"==s&&(e.json=!0),CodeMirror.runMode(a,self.aliasLang(s),t,e)},highlightEl:function(a){var s=a.dataset.lang||a.dataset.language;if(!s){if(classMatch=a.className.match(/lang.*?-(\S+)/),!classMatch)return;s=classMatch[1]}a.classList.contains("language-"+s)&&a.classList.remove("language-"+s),a.classList.add("lang-"+s),a.classList.add("highlighted");var t=a.textContent.trim();self.process(t,s,a),a.innerHTML="<code class='highlighted-code static-code cm-s-default'>"+a.innerHTML+"</code>"},highlight:function(a){a=a||'[class*="language-"], [class*="lang-"], [data-lang], [data-language]';var s=document.querySelectorAll(a);Array.prototype.forEach.call(s,function(a){self.highlightEl(a)})}};module.exports=self=Highlighter;
45
45
  },{"codemirror":5,"codemirror/addon/runmode/runmode.js":4}],20:[function(require,module,exports){
46
- function on(){setEvent("on",slice.call(arguments))}function off(){setEvent("off",slice.call(arguments))}function one(){setEvent("one",slice.call(arguments))}function fire(){args=slice.call(arguments);var e=(args[0],[]);args[1].split(" ").forEach(function(n){var n=animationEvent.transform(n);isEmpty(n)||e.push(n)}),isEmpty(e)||(args[1]=e.join(" "),bean.fire.apply(this,args))}function submit(e){var n=new CustomEvent("submit",{bubbles:!0,cancelable:!0,detail:{triggered:!0}});e.dispatchEvent(n),n.defaultPrevented||e.submit()}function setEvent(e,n){transformArgs(n).forEach(function(n){bean[e].apply(null,n)})}function keyOne(e,n,t){"function"==typeof n&&(t=n,n="all"),key(e,n,function(r){key.unbind(e,n),t(r)})}function afterAnimation(e,n,t){if(!window.getComputedStyle(e).getPropertyValue("animation-duration"))n();else if(t){var r="number"==typeof t?t:20,a=delay(n,r);one(e,"animationstart",function(t){a.stop(),one(e,"animationend",n)})}else one(e,"animationend",n)}function transformArgs(e){var n=[],t={},r=e.shift(),a=e.shift();if("function"!=typeof e[0])var i=e.shift();if("string"==typeof a){var o={};o[a]=e.shift(),a=o}for(event in a)if(a.hasOwnProperty(event)){var l=a[event];event.split(" ").forEach(function(e){e=animationEvent.transform(e),isEmpty(e)?l():e.match(/tap/)?t.touchstart=tap(l):t[e]=l})}for(event in t){var s=[];s.push(r,event),i&&s.push(i),s.push(t[event]),n.push(s.concat(e))}return n}function isEmpty(e){var n=Object.prototype.hasOwnProperty;if(null==e||0===e.length)return!0;if(0<e.length)return!1;for(var t in e)if(n.call(e,t))return!1;return!0}require("./lib/shims/custom-event");var bean=require("bean"),key=require("keymaster"),animationEvent=require("./lib/animation-events"),page=require("./lib/page"),tap=require("./lib/tap-events"),debounce=require("./lib/debounce"),throttle=require("./lib/throttle"),delay=require("./lib/delay"),repeat=require("./lib/repeat"),bubbleFormEvents=require("./lib/bubble-form-events"),scroll=require("./lib/scroll"),resize=require("./lib/resize"),callbackManager=require("./lib/callback-manager"),media=require("./lib/media"),slice=Array.prototype.slice,formBubbling=!1;module.exports={on:on,off:off,one:one,fire:fire,clone:bean.clone,ready:page.ready,change:page.change,afterAnimation:afterAnimation,media:media,key:key,keyOn:key,keyOff:key.unbind,keyOne:keyOne,debounce:debounce,throttle:throttle,delay:delay,repeat:repeat,scroll:scroll,resize:resize,callbackManager:callbackManager,callback:callbackManager.callback,bubbleFormEvents:bubbleFormEvents,submit:submit};
47
- },{"./lib/animation-events":21,"./lib/bubble-form-events":22,"./lib/callback-manager":23,"./lib/debounce":24,"./lib/delay":25,"./lib/media":26,"./lib/page":28,"./lib/repeat":29,"./lib/resize":30,"./lib/scroll":31,"./lib/shims/custom-event":32,"./lib/tap-events":33,"./lib/throttle":34,"bean":2,"keymaster":41}],21:[function(require,module,exports){
46
+ function on(){setEvent("on",slice.call(arguments))}function off(){setEvent("off",slice.call(arguments))}function one(){setEvent("one",slice.call(arguments))}function fire(){args=slice.call(arguments);var e=(args[0],[]);args[1].split(" ").forEach(function(n){var n=animationEvent.transform(n);isEmpty(n)||e.push(n)}),isEmpty(e)||(args[1]=e.join(" "),bean.fire.apply(this,args))}function setEvent(e,n){transformArgs(n).forEach(function(n){bean[e].apply(null,n)})}function keyOne(e,n,t){"function"==typeof n&&(t=n,n="all"),key(e,n,function(r){key.unbind(e,n),t(r)})}function afterAnimation(e,n,t){if(!window.getComputedStyle(e).getPropertyValue("animation-duration"))n();else if(t){var r="number"==typeof t?t:20,i=delay(n,r);one(e,"animationstart",function(t){i.stop(),one(e,"animationend",n)})}else one(e,"animationend",n)}function transformArgs(e){var n=[],t={},r=e.shift(),i=e.shift();if("function"!=typeof e[0])var a=e.shift();if("string"==typeof i){var o={};o[i]=e.shift(),i=o}for(event in i)if(i.hasOwnProperty(event)){var l=i[event];event.split(" ").forEach(function(e){e=animationEvent.transform(e),isEmpty(e)?l():e.match(/tap/)?t.touchstart=tap(l):t[e]=l})}for(event in t){var s=[];s.push(r,event),a&&s.push(a),s.push(t[event]),n.push(s.concat(e))}return n}function isEmpty(e){var n=Object.prototype.hasOwnProperty;if(null==e||0===e.length)return!0;if(0<e.length)return!1;for(var t in e)if(n.call(e,t))return!1;return!0}require("./lib/shims/custom-event");var bean=require("bean"),key=require("keymaster"),animationEvent=require("./lib/animation-events"),page=require("./lib/page"),tap=require("./lib/tap-events"),debounce=require("./lib/debounce"),throttle=require("./lib/throttle"),delay=require("./lib/delay"),repeat=require("./lib/repeat"),bubbleFormEvents=require("./lib/bubble-form-events"),submit=require("./lib/submit"),scroll=require("./lib/scroll"),resize=require("./lib/resize"),callbackManager=require("./lib/callback-manager"),media=require("./lib/media"),slice=Array.prototype.slice,formBubbling=!1;module.exports={on:on,off:off,one:one,fire:fire,clone:bean.clone,ready:page.ready,change:page.change,afterAnimation:afterAnimation,media:media,key:key,keyOn:key,keyOff:key.unbind,keyOne:keyOne,debounce:debounce,throttle:throttle,delay:delay,repeat:repeat,scroll:scroll,resize:resize,callbackManager:callbackManager,callback:callbackManager.callback,bubbleFormEvents:bubbleFormEvents,submit:submit};
47
+ },{"./lib/animation-events":21,"./lib/bubble-form-events":22,"./lib/callback-manager":23,"./lib/debounce":24,"./lib/delay":25,"./lib/media":26,"./lib/page":28,"./lib/repeat":29,"./lib/resize":30,"./lib/scroll":31,"./lib/shims/custom-event":32,"./lib/submit":33,"./lib/tap-events":34,"./lib/throttle":35,"bean":2,"keymaster":42}],21:[function(require,module,exports){
48
48
  function camelCaseEventTypes(n){return n=n||"",{animationstart:n+"AnimationStart",animationend:n+"AnimationEnd",animationiteration:n+"AnimationIteration"}}function lowerCaseEventTypes(n){return n=n||"",{animationstart:n+"animationstart",animationend:n+"animationend",animationiteration:n+"animationiteration"}}function getAnimationEventTypes(){var n=["webkit","Moz","O",""],t=document.documentElement.style;if(void 0!==t.animationName)return lowerCaseEventTypes();for(var e,i=0,a=n.length;i<a;i++)if(e=n[i],void 0!==t[e+"AnimationName"]){if(0===i)return camelCaseEventTypes(e.toLowerCase());if(1===i)return lowerCaseEventTypes();if(2===i)return lowerCaseEventTypes(e.toLowerCase())}return{}}function transformAnimationEvents(n){return n.match(/animation/i)?cssAnimEventTypes[n]?cssAnimEventTypes[n]:("test"!=window.env&&console.error('"'+n+'" is not a supported animation event'),""):n}var cssAnimEventTypes=getAnimationEventTypes(),supported=void 0!==cssAnimEventTypes.animationstart;module.exports={transform:transformAnimationEvents};
49
49
  },{}],22:[function(require,module,exports){
50
- var Event=require("bean"),page=require("./page"),formEls,formBubbling=!1,fireBubble=function(e){if(e.detail&&e.detail.triggered)return!1;var t=new CustomEvent(e.type,{bubbles:!0,cancelable:!0,detail:{triggered:!0}});e.stopImmediatePropagation(),e.target.dispatchEvent(t),t.defaultPrevented&&e.preventDefault()},eventType=function(e){return"FORM"==e.tagName?"submit":"focus blur"},bubbleOn=function(e){Event.on(e,eventType(e),fireBubble)},bubbleOff=function(e){Event.off(e,eventType(e),fireBubble)},bubbleFormEvents=function(){if(!e){page.change(function(){formEls&&Array.prototype.forEach.call(formEls,bubbleOff),formEls=document.querySelectorAll("form, input"),Array.prototype.forEach.call(formEls,bubbleOn)});var e=!0}};module.exports=bubbleFormEvents;
50
+ var Event=require("bean"),page=require("./page"),formEls,formBubbling=!1,fireBubble=function(e){if(e.detail&&e.detail.triggered)return!1;var t=new CustomEvent(e.type,{bubbles:!0,cancelable:!0,detail:{triggered:!0}});"submit"==e.type&&e.stopImmediatePropagation(),e.target.dispatchEvent(t),t.defaultPrevented&&e.preventDefault()},eventType=function(e){return"FORM"==e.tagName?"submit":"focus blur"},bubbleOn=function(e){Event.on(e,eventType(e),fireBubble)},bubbleOff=function(e){Event.off(e,eventType(e),fireBubble)},bubbleFormEvents=function(){if(!e){page.change(function(){formEls&&Array.prototype.forEach.call(formEls,bubbleOff),formEls=document.querySelectorAll("form, input"),Array.prototype.forEach.call(formEls,bubbleOn)});var e=!0}};module.exports=bubbleFormEvents;
51
51
  },{"./page":28,"bean":2}],23:[function(require,module,exports){
52
52
  var Manager={new:function(){var n={callbacks:[],add:function(a){var c=Manager.callback.new(a);return n.callbacks.push(c),c},stop:function(){n.callbacks.forEach(function(n){n.stop()})},start:function(){n.callbacks.forEach(function(n){n.start()})},toggle:function(a){n.callbacks.forEach(function(n){n.toggle(a)})},remove:function(){n.callbacks=[]},fire:function(){var a=Array.prototype.slice.call(arguments);n.callbacks.forEach(function(n){n.apply(this,a)})}};return n},callback:{new:function(n){var a=function(){a.enabled&&n.apply(n,arguments)};return a.stop=function(){a.enabled=!1},a.start=function(){a.enabled=!0},a.toggle=function(n){a.enabled=0 in arguments?n:!a.enabled},a.enabled=!0,a}}};module.exports=Manager;
53
53
  },{}],24:[function(require,module,exports){
@@ -58,7 +58,7 @@ var now=function(){return Date.now()},delay=function(e,a){var t=null!=a?2:1,n={}
58
58
  function parseQuery(i,n){var e={};return"string"==typeof i?i:(e.min=size(i.min,"min-"+n),e.max=size(i.max,"max-"+n),e.min&&e.max&&(e.query=e.min+" and "+e.max),e.query||e.min||e.max)}function size(i,n){return i?"("+n+": "+toPx(i)+")":null}function toPx(i){return"number"==typeof i?i+"px":i}var media={width:function(i,n){return media.listen(parseQuery(i,"width"),n)},minWidth:function(i,n){return media.width({min:i},n)},maxWidth:function(i,n){return media.width({max:i},n)},height:function(i,n){return media.listen(parseQuery(i,"height"),n)},minHeight:function(i,n){return media.height({min:i},n)},maxHeight:function(i,n){return media.height({max:i},n)},listen:function(i,n){var e=window.matchMedia(i);return n&&(n(e),e.addListener(n)),e}};module.exports=media;
59
59
  },{}],27:[function(require,module,exports){
60
60
  var Event=require("bean"),callbackManager=require("./callback-manager"),throttle=require("./throttle"),debounce=require("./debounce"),optimizedEventManager={new:function(e){var n={run:callbackManager.new(),start:callbackManager.new(),stop:callbackManager.new()},t=throttle(n.run.fire),r=debounce({leading:n.start.fire,trailing:!1,wait:150}),a=debounce(n.stop.fire,150);Event.on(window,e,function(){t(),r(),a()});var i=function(e){return n.run.add(e)};return i.start=function(e){return n.start.add(e)},i.stop=function(e){return n.stop.add(e)},i(function(){Event.fire(window,"optimized"+e[0].toUpperCase()+e.substring(1))}),i.start(function(){Event.fire(window,e+"Start")}),i.stop(function(){Event.fire(window,e+"Stop")}),i}};module.exports=optimizedEventManager;
61
- },{"./callback-manager":23,"./debounce":24,"./throttle":34,"bean":2}],28:[function(require,module,exports){
61
+ },{"./callback-manager":23,"./debounce":24,"./throttle":35,"bean":2}],28:[function(require,module,exports){
62
62
  var Event=require("bean"),callbackManager=require("./callback-manager"),manager={ready:callbackManager.new(),change:callbackManager.new(),readyAlready:!1,changed:!1};manager.ready.add(function(){manager.readyAlready=!0}),manager.ready.add(function(){window.Turbolinks||manager.changed||(manager.changed=!0,manager.change.fire())});var ready=function(a){return manager.readyAlready&&a(),manager.ready.add(a)},change=function(a){return manager.changed&&a(),manager.change.add(a)};ready.fire=function(){manager.ready.fire(),manager.ready.stop()},change.fire=function(){manager.change.fire()},Event.on(document,"DOMContentLoaded",ready.fire),Event.on(document,"page:change turbolinks:load",change.fire),module.exports={ready:ready,change:change};
63
63
  },{"./callback-manager":23,"bean":2}],29:[function(require,module,exports){
64
64
  var delay=require("./delay"),repeat=function(e,r,a){var l=1,t=delay(e,r);return null!=a?l=3:null!=r&&(l=2),t.repeat=a||-1,t.args=Array.prototype.slice.call(arguments,l),t.stop=t.cancel,t};module.exports=repeat;
@@ -69,25 +69,27 @@ var manager=require("./optimized-event-manager"),scroll=manager.new("scroll");sc
69
69
  },{"./optimized-event-manager":27}],32:[function(require,module,exports){
70
70
  !function(){function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}if("function"==typeof window.CustomEvent)return!1;t.prototype=window.Event.prototype,window.CustomEvent=t}();
71
71
  },{}],33:[function(require,module,exports){
72
- function Tap(e,t){function n(t){function n(n){if(t!==n&&(a(),!n.defaultPrevented)){var o=t.preventDefault,r=t.stopPropagation;t.stopPropagation=function(){r.call(t),r.call(n)},t.preventDefault=function(){o.call(t),o.call(n)},e.apply(u,i)}}function a(e){t!==e&&(clearTimeout(c),r.removeEventListener("touchmove",a),endEvents.forEach(function(e){r.removeEventListener(e,n)}))}if(t.touches&&!(t.touches.length>1)){var r=t.target,u=this,i=arguments,c=setTimeout(a,o);r.addEventListener("touchmove",a),endEvents.forEach(function(e){r.addEventListener(e,n)})}}t=t||{};var o=t.timeout||Tap.timeout;return n.handler=e,n}var endEvents=["touchend"];module.exports=Tap,Tap.timeout=200;
72
+ function submit(e){if(!e.tagName||"FORM"!=e.tagName)return console.error("Trigger this event on a form element");var t=new CustomEvent("submit",{bubbles:!0,cancelable:!0,detail:{triggered:!0}});e.dispatchEvent(t),t.defaultPrevented||e.submit()}module.exports=submit;
73
73
  },{}],34:[function(require,module,exports){
74
+ function Tap(e,t){function n(t){function n(n){if(t!==n&&(a(),!n.defaultPrevented)){var o=t.preventDefault,r=t.stopPropagation;t.stopPropagation=function(){r.call(t),r.call(n)},t.preventDefault=function(){o.call(t),o.call(n)},e.apply(u,i)}}function a(e){t!==e&&(clearTimeout(c),r.removeEventListener("touchmove",a),endEvents.forEach(function(e){r.removeEventListener(e,n)}))}if(t.touches&&!(t.touches.length>1)){var r=t.target,u=this,i=arguments,c=setTimeout(a,o);r.addEventListener("touchmove",a),endEvents.forEach(function(e){r.addEventListener(e,n)})}}t=t||{};var o=t.timeout||Tap.timeout;return n.handler=e,n}var endEvents=["touchend"];module.exports=Tap,Tap.timeout=200;
75
+ },{}],35:[function(require,module,exports){
74
76
  var debounce=require("./debounce"),throttle=function(e,t,a){return"object"==typeof e?(a=e,e=void 0):a=a||{},a.wait=a.wait||t||0,a.max=a.max||a.wait,a.callback=a.callback||e,a.leading=!0,a.trailing=!0,debounce(a)};module.exports=throttle;
75
- },{"./debounce":24}],35:[function(require,module,exports){
77
+ },{"./debounce":24}],36:[function(require,module,exports){
76
78
  require("./lib/shims/_classlist");var merge=require("./lib/shims/_object.assign"),event=require("compose-event"),scrollTo=require("./lib/scrollto"),fromTop=require("./lib/fromtop"),ease=require("./lib/ease"),toolbox={event:event,scrollTo:scrollTo,fromTop:fromTop,merge:merge,ease:ease,getClosest:function(e,r){for(;e&&e!==document;e=e.parentNode)if(toolbox.matches(e,r))return e;return!1},childOf:function(e,r){for(;e&&e!==document;e=e.parentNode)if(e==r)return!0;return!1},getNext:function(e,r){for(;e&&e!==document;e=e.parentNode)if(e.querySelector(r))return e.querySelector(r);return!1},matches:function(e,r){return(e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector).call(e,r)},wordCount:function(e){var r=e.match(/\S+/g);return r?r.length:0},slice:function(e,r){return Array.prototype.slice.call(e,r)},each:function(e,r){return Array.prototype.forEach.call(e,r)},formData:function(e){var r=new FormData,o=e.querySelectorAll("input[name]");return toolbox.each(o,function(e){r.append(e.name,e.value)}),r}};module.exports=toolbox;
77
- },{"./lib/ease":36,"./lib/fromtop":37,"./lib/scrollto":38,"./lib/shims/_classlist":39,"./lib/shims/_object.assign":40,"compose-event":20}],36:[function(require,module,exports){
79
+ },{"./lib/ease":37,"./lib/fromtop":38,"./lib/scrollto":39,"./lib/shims/_classlist":40,"./lib/shims/_object.assign":41,"compose-event":20}],37:[function(require,module,exports){
78
80
  var ease={inOutQuad:function(t,u,n,e){return(t/=e/2)<1?n/2*t*t+u:(t--,-n/2*(t*(t-2)-1)+u)},inOutCubic:function(t,u,n,e){return(t/=e/2)<1?n/2*t*t*t+u:(t-=2,n/2*(t*t*t+2)+u)},inOutQuint:function(t,u,n,e){var r=(t/=e)*t,i=r*t;return u+n*(6*i*r+-15*r*r+10*i)},inOutCirc:function(t,u,n,e){return(t/=e/2)<1?-n/2*(Math.sqrt(1-t*t)-1)+u:(t-=2,n/2*(Math.sqrt(1-t*t)+1)+u)}};ease.default=ease.inOutQuad,module.exports=ease;
79
- },{}],37:[function(require,module,exports){
80
- module.exports=function(t){return Math.round(t.getBoundingClientRect().top+window.pageYOffset)};
81
81
  },{}],38:[function(require,module,exports){
82
+ module.exports=function(t){return Math.round(t.getBoundingClientRect().top+window.pageYOffset)};
83
+ },{}],39:[function(require,module,exports){
82
84
  function move(o){document.documentElement.scrollTop=o,document.body.parentNode.scrollTop=o,document.body.scrollTop=o}function position(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function scrollTo(o,e,n){"object"==typeof o&&(o=fromTop(o)),"number"==typeof e&&(n=e,e=null),n=void 0===n?500:n;var t=position(),r=o-t,c=0,l=function(){c+=20,move(ease.default(c,t,r,n)),c<n?requestAnimationFrame(l):e&&"function"==typeof e&&e()};l()}var ease=require("./ease"),fromTop=require("./fromtop");module.exports=scrollTo;
83
- },{"./ease":36,"./fromtop":37}],39:[function(require,module,exports){
85
+ },{"./ease":37,"./fromtop":38}],40:[function(require,module,exports){
84
86
  "document"in self&&("classList"in document.createElement("_")?function(){"use strict";var t=document.createElement("_");if(t.classList.add("c1","c2"),!t.classList.contains("c2")){var e=function(t){var e=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){var n,i=arguments.length;for(n=0;n<i;n++)t=arguments[n],e.call(this,t)}};e("add"),e("remove")}if(t.classList.toggle("c3",!1),t.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:n.call(this,t)}}t=null}():function(t){"use strict";if("Element"in t){var e=t.Element.prototype,n=Object,i=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},s=Array.prototype.indexOf||function(t){for(var e=0;e<this.length;e++)if(e in this&&this[e]===t)return e;return-1},r=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},o=function(t,e){if(""===e)throw new r("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(e))throw new r("INVALID_CHARACTER_ERR","String contains an invalid character");return s.call(t,e)},a=function(t){for(var e=i.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],s=0;s<n.length;s++)this.push(n[s]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},c=a.prototype=[],l=function(){return new a(this)};if(r.prototype=Error.prototype,c.item=function(t){return this[t]||null},c.contains=function(t){return t+="",-1!==o(this,t)},c.add=function(){var t,e=arguments,n=0,i=e.length,s=!1;do{t=e[n]+"",-1===o(this,t)&&(this.push(t),s=!0)}while(++n<i);s&&this._updateClassName()},c.remove=function(){var t,e,n=arguments,i=0,s=n.length,r=!1;do{for(t=n[i]+"",e=o(this,t);-1!==e;)this.splice(e,1),r=!0,e=o(this,t)}while(++i<s);r&&this._updateClassName()},c.toggle=function(t,e){t+="";var n=this.contains(t),i=n?!0!==e&&"remove":!1!==e&&"add";return i&&this[i](t),!0===e||!1===e?e:!n},c.toString=function(){return this.join(" ")},n.defineProperty){var u={get:l,enumerable:!0,configurable:!0};try{n.defineProperty(e,"classList",u)}catch(t){-2146823252===t.number&&(u.enumerable=!1,n.defineProperty(e,"classList",u))}}else n.prototype.__defineGetter__&&e.__defineGetter__("classList",l)}}(self));
85
- },{}],40:[function(require,module,exports){
86
- "function"!=typeof Object.assign&&function(){Object.assign=function(t){"use strict";if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(t),e=1;e<arguments.length;e++){var n=arguments[e];if(void 0!==n&&null!==n)for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r}}();var merge=function(){var t=[{}].concat(Array.prototype.slice.call(arguments));return Object.assign.apply(this,t)};module.exports=merge;
87
87
  },{}],41:[function(require,module,exports){
88
+ "function"!=typeof Object.assign&&function(){Object.assign=function(t){"use strict";if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(t),e=1;e<arguments.length;e++){var n=arguments[e];if(void 0!==n&&null!==n)for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r}}();var merge=function(){var t=[{}].concat(Array.prototype.slice.call(arguments));return Object.assign.apply(this,t)};module.exports=merge;
89
+ },{}],42:[function(require,module,exports){
88
90
  !function(e){function n(e,n){for(var t=e.length;t--;)if(e[t]===n)return t;return-1}function t(e,n){if(e.length!=n.length)return!1;for(var t=0;t<e.length;t++)if(e[t]!==n[t])return!1;return!0}function o(e){for(m in b)b[m]=e[T[m]]}function r(e){var t,r,i,l,c,u;if(t=e.keyCode,-1==n(S,t)&&S.push(t),93!=t&&224!=t||(t=91),t in b){b[t]=!0;for(i in C)C[i]==t&&(f[i]=!0)}else if(o(e),f.filter.call(this,e)&&t in E)for(u=p(),l=0;l<E[t].length;l++)if(r=E[t][l],r.scope==u||"all"==r.scope){c=r.mods.length>0;for(i in b)(!b[i]&&n(r.mods,+i)>-1||b[i]&&-1==n(r.mods,+i))&&(c=!1);(0!=r.mods.length||b[16]||b[18]||b[17]||b[91])&&!c||!1===r.method(e,r)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function i(e){var t,o=e.keyCode,r=n(S,o);if(r>=0&&S.splice(r,1),93!=o&&224!=o||(o=91),o in b){b[o]=!1;for(t in C)C[t]==o&&(f[t]=!1)}}function l(){for(m in b)b[m]=!1;for(m in C)f[m]=!1}function f(e,n,t){var o,r;o=g(e),void 0===t&&(t=n,n="all");for(var i=0;i<o.length;i++)r=[],e=o[i].split("+"),e.length>1&&(r=v(e),e=[e[e.length-1]]),e=e[0],e=P(e),e in E||(E[e]=[]),E[e].push({shortcut:o[i],scope:n,method:t,key:o[i],mods:r})}function c(e,n){var o,r,i,l,f,c=[];for(o=g(e),l=0;l<o.length;l++){if(r=o[l].split("+"),r.length>1&&(c=v(r),e=r[r.length-1]),e=P(e),void 0===n&&(n=p()),!E[e])return;for(i=0;i<E[e].length;i++)f=E[e][i],f.scope===n&&t(f.mods,c)&&(E[e][i]={})}}function u(e){return"string"==typeof e&&(e=P(e)),-1!=n(S,e)}function a(){return S.slice(0)}function s(e){var n=(e.target||e.srcElement).tagName;return!("INPUT"==n||"SELECT"==n||"TEXTAREA"==n)}function d(e){w=e||"all"}function p(){return w||"all"}function h(e){var n,t,o;for(n in E)for(t=E[n],o=0;o<t.length;)t[o].scope===e?t.splice(o,1):o++}function g(e){var n;return e=e.replace(/\s/g,""),n=e.split(","),""==n[n.length-1]&&(n[n.length-2]+=","),n}function v(e){for(var n=e.slice(0,e.length-1),t=0;t<n.length;t++)n[t]=C[n[t]];return n}function y(e,n,t){e.addEventListener?e.addEventListener(n,t,!1):e.attachEvent&&e.attachEvent("on"+n,function(){t(window.event)})}function k(){var n=e.key;return e.key=A,n}var m,E={},b={16:!1,18:!1,17:!1,91:!1},w="all",C={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,command:91},K={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,home:36,end:35,pageup:33,pagedown:34,",":188,".":190,"/":191,"`":192,"-":189,"=":187,";":186,"'":222,"[":219,"]":221,"\\":220},P=function(e){return K[e]||e.toUpperCase().charCodeAt(0)},S=[];for(m=1;m<20;m++)K["f"+m]=111+m;var T={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey"};for(m in C)f[m]=!1;y(document,"keydown",function(e){r(e)}),y(document,"keyup",i),y(window,"focus",l);var A=e.key;e.key=f,e.key.setScope=d,e.key.getScope=p,e.key.deleteScope=h,e.key.filter=s,e.key.isPressed=u,e.key.getPressedKeyCodes=a,e.key.noConflict=k,e.key.unbind=c,"undefined"!=typeof module&&(module.exports=f)}(this);
89
91
  },{}]},{},[1])(1)
90
92
  });
91
93
 
92
94
 
93
- //# sourceMappingURL=/assets/tungsten/code-0.1.53.map.json
95
+ //# sourceMappingURL=/assets/tungsten/code-0.1.54.map.json
Binary file