UNPKG

react-cowsay

Version:

A react wrapper for cowsay-browser

1 lines 33.9 kB
!function(n,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react")):"function"==typeof define&&define.amd?define(["react"],r):"object"==typeof exports?exports.ReactComponentBoilerplate=r(require("react")):n.ReactComponentBoilerplate=r(n.React)}(this,function(n){return function(n){function r(t){if(_[t])return _[t].exports;var e=_[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var _={};return r.m=n,r.c=_,r.i=function(n){return n},r.d=function(n,_,t){r.o(n,_)||Object.defineProperty(n,_,{configurable:!1,enumerable:!0,get:t})},r.n=function(n){var _=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(_,"a",_),_},r.o=function(n,r){return Object.prototype.hasOwnProperty.call(n,r)},r.p="",r(r.s=2)}([function(n,r,_){function t(n,r){var _=o.get(n.f||"default"),t=u(n);return t.thoughts=r?"\\":"o",e[r?"say":"think"](n.text||n._.join(" "),n.n?null:n.W)+"\n"+_(t)}var e=_(3),o=_(5),u=_(6);r.say=function(n){return t(n,!0)},r.think=function(n){return t(n,!1)},r.list=o.list},function(r,_){r.exports=n},function(n,r,_){"use strict";function t(n){return n&&n.__esModule?n:{default:n}}function e(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}function o(n,r){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||"object"!=typeof r&&"function"!=typeof r?n:r}function u(n,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);n.prototype=Object.create(r&&r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(n,r):n.__proto__=r)}Object.defineProperty(r,"__esModule",{value:!0});var s=function(){function n(n,r){for(var _=0;r.length>_;_++){var t=r[_];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}return function(r,_,t){return _&&n(r.prototype,_),t&&n(r,t),r}}(),h=_(1),i=t(h),c=_(0),a=t(c);r.default=function(n){function r(){return e(this,r),o(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return u(r,n),s(r,[{key:"componentDidMount",value:function(){}},{key:"getText",value:function(){var n=this.props.children||this.props.text;return void 0===n?"Cowsay needs some text! Please add some to the text prop or as children.":"string"!=typeof n?"Cowsay can only accept a string x.x":n}},{key:"getAction",value:function(){return void 0!==this.props.think?"think":"say"}},{key:"getOptions",value:function(){return Object.assign({text:this.getText()},{W:40},this.props)}},{key:"render",value:function(){var n=a.default[this.getAction()](this.getOptions());return i.default.createElement("pre",{style:{textAlign:"left"}},n)}}]),r}(i.default.Component),n.exports=r.default},function(n,r,_){function t(n,r,_){var t,i=e(n,r),c=o(i);if(1===i.length)t=[" "+s(c),_.only[0]+" "+i[0]+" "+_.only[1]," "+h(c)];else{t=[" "+s(c)];for(var a=0,$=i.length;$>a;a+=1){var l;l=0===a?_.first:a===$-1?_.last:_.middle,t.push(l[0]+" "+u(i[a],c)+" "+l[1])}t.push(" "+h(c))}return t.join("\n")}function e(n,r){n=n.replace(/\r\n?|[\n\u2028\u2029]/g,"\n").replace(/^\uFEFF/,"");var _=[];if(r)for(var t=0;n.length>t;){var e=n.indexOf("\n",t),o=Math.min(t+r,-1===e?n.length:e);_.push(n.substring(t,o)),t=o,"\n"===n.charAt(t)&&(t+=1)}else _=n.split("\n");return _}function o(n){for(var r=0,_=0,t=n.length;t>_;_+=1)n[_].length>r&&(r=n[_].length);return r}function u(n,r){return n+Array(r-n.length+1).join(" ")}function s(n){return Array(n+3).join("_")}function h(n){return Array(n+3).join("-")}_(9);r.say=function(n,r){return delimiters={first:["/","\\"],middle:["|","|"],last:["\\","/"],only:["<",">"]},t(n,r,delimiters)},r.think=function(n,r){return delimiters={first:["(",")"],middle:["(",")"],last:["(",")"],only:["(",")"]},t(n,r,delimiters)}},function(n,r){r.cowdefs={"beavis.zen":"##\r\n## Beavis, with Zen philosophy removed.\r\n##\r\n$the_cow = <<EOC;\r\n $thoughts __------~~-,\r\n $thoughts ,' ,\r\n / \\\\\r\n / :\r\n | '\r\n | |\r\n | |\r\n | _-- |\r\n _| =-. .-. ||\r\n o|/o/ _. |\r\n / ~ \\\\ |\r\n (____\\@) ___~ |\r\n |_===~~~.` |\r\n _______.--~ |\r\n \\\\________ |\r\n \\\\ |\r\n __/-___-- -__\r\n / _ \\\\\r\nEOC\r\n","bud-frogs":"##\r\n## The Budweiser frogs\r\n##\r\n$the_cow = <<EOC;\r\n $thoughts\r\n $thoughts\r\n oO)-. .-(Oo\r\n /__ _\\\\ /_ __\\\\\r\n \\\\ \\\\( | ()~() | )/ /\r\n \\\\__|\\\\ | (-___-) | /|__/\r\n ' '--' ==`-'== '--' '\r\nEOC\r\n",bunny:"##\r\n## A cute little wabbit\r\n##\r\n$the_cow = <<EOC;\r\n $thoughts\r\n $thoughts \\\\\r\n \\\\ /\\\\\r\n ( )\r\n .( o ).\r\nEOC\r\n",cheese:"##\r\n## The cheese from milk & cheese\r\n##\r\n$the_cow = <<EOC;\r\n $thoughts\r\n $thoughts\r\n _____ _________\r\n / \\\\_/ |\r\n | ||\r\n | ||\r\n | ###\\\\ /### | |\r\n | 0 \\\\/ 0 | |\r\n /| | |\r\n / | < |\\\\ \\\\\r\n| /| | | |\r\n| | \\\\_______/ | | |\r\n| | | / /\r\n/|| /|||\r\n ----------------|\r\n | | | |\r\n *** ***\r\n /___\\\\ /___\\\\\r\nEOC\r\n",chick:"$the_cow = <<\"EOC\";\r\n$thoughts\r\n $thoughts\r\n\r\n .---.\r\n _ / ' .---.\r\n >| o ` `\\\r\n ` \\ .---._ '._ ,\r\n '-.; /` /'\r\n \\ '._.' /\r\n '. .'\r\n `\";--\\_/\r\n jgs _/_ |\r\n -'`/ .--;--\r\n ' .'\r\n\r\nEOC\r\n","chicken-and-egg":'$the_cow = <<"EOC";\r\n$thoughts\r\n $thoughts\r\n\r\n\r\n /\'._ _,\r\n \\ ;__.\' }\r\n (`-._;-" _.--.}\'\r\n /_\' /` _} _.--"""-.\r\n `. \\_._.; .\' \\\r\n \'-.__ / / |\r\n jgs _/ `\\ \\ /\r\n ^` ^` \'._ .\'\r\n `"""""`\r\nEOC\r\n',cower:"##\r\n## A cowering cow\r\n##\r\n$the_cow = <<EOC;\r\n $thoughts\r\n $thoughts\r\n ,__, | | \r\n (oo)\\\\| |___\r\n (__)\\\\| | )\\\\_\r\n | |_w | \\\\\r\n | | || *\r\n\r\n Cower....\r\nEOC\r\n",daemon:"##\r\n## 4.4 >> 5.4\r\n##\r\n$the_cow = <<EOC;\r\n $thoughts , ,\r\n $thoughts /( )`\r\n $thoughts \\\\ \\\\___ / |\r\n /- _ `-/ '\r\n (/\\\\/ \\\\ \\\\ /\\\\\r\n / / | ` \\\\\r\n O O ) / |\r\n `-^--'`< '\r\n (_.) _ ) /\r\n `.___/` /\r\n `-----' /\r\n<----. __ / __ \\\\\r\n<----|====O)))==) \\\\) /====\r\n<----' `--' `.__,' \\\\\r\n | |\r\n \\\\ /\r\n ______( (_ / \\\\______\r\n ,' ,-----' | \\\\\r\n `--{__________) \\\\/\r\nEOC\r\n",default:'$the_cow = <<"EOC";\r\n $thoughts ^__^\r\n $thoughts ($eyes)\\\\_______\r\n (__)\\\\ )\\\\/\\\\\r\n $tongue ||----w |\r\n || ||\r\nEOC\r\n',doge:"##\r\n## Doge\r\n##\r\n$the_cow = <<EOC;\r\n $thoughts\r\n $thoughts\r\n\r\n _ _\r\n / /. _-//\r\n / /// _- /\r\n //_-//========= /\r\n _/// //_ || ./\r\n _| -__-||\r\n | __ - \\\\ \\\r\n | |#- _-|_ |\r\n | |#||| _ | \r\n | _==_ ||\r\n- ==|.=.=|_ = |\r\n| |-|- ___ |\r\n| --__ _ /\r\n|| === |\r\n | _. //\r\n ||_ __- _- _|\r\n \\_______/ ___/ _|\r\n --*\r\nEOC\r\n","dragon-and-cow":"##\r\n## A dragon smiting a cow, possible credit to kube@csua.berkeley.edu\r\n##\r\n$the_cow = <<EOC;\r\n $thoughts ^ /^\r\n $thoughts / \\\\ // \\\\\r\n $thoughts |\\\\___/| / \\\\// .\\\\\r\n $thoughts /O O \\\\__ / // | \\\\ \\\\ *----*\r\n / / \\\\/_/ // | \\\\ \\\\ \\\\ |\r\n \\@___\\@` \\\\/_ // | \\\\ \\\\ \\\\/\\\\ \\\\\r\n 0/0/| \\\\/_ // | \\\\ \\\\ \\\\ \\\\\r\n 0/0/0/0/| \\\\/// | \\\\ \\\\ | |\r\n 0/0/0/0/0/_|_ / ( // | \\\\ _\\\\ | /\r\n 0/0/0/0/0/0/`/,_ _ _/ ) ; -. | _ _\\\\.-~ / /\r\n ,-} _ *-.|.-~-. .~ ~\r\n \\\\ \\\\__/ `/\\\\ / ~-. _ .-~ /\r\n \\\\____($eyes) *. } { /\r\n ( (--) .----~-.\\\\ \\\\-` .~\r\n //__\\\\\\\\ \\\\__ Ack! ///.----..< \\\\ _ -~\r\n // \\\\\\\\ ///-._ _ _ _ _ _ _{^ - - - - ~\r\nEOC\r\n",dragon:"##\r\n## The Whitespace Dragon\r\n##\r\n$the_cow = <<EOC;\r\n $thoughts / \\\\ //\\\\\r\n $thoughts |\\\\___/| / \\\\// \\\\\\\\\r\n /0 0 \\\\__ / // | \\\\ \\\\ \r\n / / \\\\/_/ // | \\\\ \\\\ \r\n \\@_^_\\@'/ \\\\/_ // | \\\\ \\\\ \r\n //_^_/ \\\\/_ // | \\\\ \\\\\r\n ( //) | \\\\/// | \\\\ \\\\\r\n ( / /) _|_ / ) // | \\\\ _\\\\\r\n ( // /) '/,_ _ _/ ( ; -. | _ _\\\\.-~ .-~~~^-.\r\n (( / / )) ,-{ _ `-.|.-~-. .~ `.\r\n (( // / )) '/\\\\ / ~-. _ .-~ .-~^-. \\\\\r\n (( /// )) `. { } / \\\\ \\\\\r\n (( / )) .----~-.\\\\ \\\\-' .~ \\\\ `. \\\\^-.\r\n ///.----..> \\\\ _ -~ `. ^-` ^-_\r\n ///-._ _ _ _ _ _ _}^ - - - - ~ ~-- ,.-~\r\n /.-~\r\nEOC\r\n","elephant-in-snake":"##\r\n## Do we need to explain this?\r\n##\r\n$the_cow = <<EOC;\r\n $thoughts\r\n $thoughts .... \r\n ........ . \r\n . . \r\n . . \r\n......... .......\r\n..............................\r\n\r\nElephant inside ASCII snake\r\nEOC\r\n",elephant:"##\r\n## An elephant out and about\r\n##\r\n$the_cow = <<EOC;\r\n $thoughts /\\\\ ___ /\\\\\r\n $thoughts // \\\\/ \\\\/ \\\\\\\\\r\n (( O O ))\r\n \\\\\\\\ / \\\\ //\r\n \\\\/ | | \\\\/ \r\n | | | | \r\n | | | | \r\n | o | \r\n | | | | \r\n |m| |m| \r\nEOC\r\n",eyes:'##\r\n## Evil-looking eyes\r\n##\r\n$the_cow = <<EOC;\r\n $thoughts\r\n $thoughts\r\n .::!!!!!!!:.\r\n .!!!!!:. .:!!!!!!!!!!!!\r\n ~~~~!!!!!!. .:!!!!!!!!!UWWW\\$\\$\\$ \r\n :\\$\\$NWX!!: .:!!!!!!XUWW\\$\\$\\$\\$\\$\\$\\$\\$\\$P \r\n \\$\\$\\$\\$\\$##WX!: .<!!!!UW\\$\\$\\$\\$" \\$\\$\\$\\$\\$\\$\\$\\$# \r\n \\$\\$\\$\\$\\$ \\$\\$\\$UX :!!UW\\$\\$\\$\\$\\$\\$\\$\\$\\$ 4\\$\\$\\$\\$\\$* \r\n ^\\$\\$\\$B \\$\\$\\$\\$\\\\ \\$\\$\\$\\$\\$\\$\\$\\$\\$\\$\\$\\$ d\\$\\$R" \r\n "*\\$bd\\$\\$\\$\\$ \'*\\$\\$\\$\\$\\$\\$\\$\\$\\$\\$\\$o+#" \r\n """" """"""" \r\nEOC\r\n',"flaming-sheep":"##\r\n## The flaming sheep, contributed by Geordan Rosario (geordan@csua.berkeley.edu)\r\n##\r\n$the_cow = <<EOC;\r\n $thoughts . . . \r\n $thoughts . . . ` , \r\n $thoughts .; . : .' : : : . \r\n $thoughts i..`: i` i.i.,i i . \r\n $thoughts `,--.|i |i|ii|ii|i: \r\n U${eyes}U\\\\.'\\@\\@\\@\\@\\@\\@`.||' \r\n \\\\__/(\\@\\@\\@\\@\\@\\@\\@\\@\\@\\@)' \r\n (\\@\\@\\@\\@\\@\\@\\@\\@) \r\n `YY~~~~YY' \r\n || || \r\nEOC\r\n",ghostbusters:'##\r\n## Ghostbusters!\r\n##\r\n$the_cow = <<EOC;\r\n $thoughts\r\n $thoughts\r\n $thoughts __---__\r\n _- /--______\r\n __--( / \\\\ )XXXXXXXXXXX\\\\v.\r\n .-XXX( O O )XXXXXXXXXXXXXXX-\r\n /XXX( U ) XXXXXXX\\\\\r\n /XXXXX( )--_ XXXXXXXXXXX\\\\\r\n /XXXXX/ ( O ) XXXXXX \\\\XXXXX\\\\\r\n XXXXX/ / XXXXXX \\\\__ \\\\XXXXX\r\n XXXXXX__/ XXXXXX \\\\__----\x3e\r\n ---___ XXX__/ XXXXXX \\\\__ /\r\n \\\\- --__/ ___/\\\\ XXXXXX / ___--/=\r\n \\\\-\\\\ ___/ XXXXXX \'--- XXXXXX\r\n \\\\-\\\\/XXX\\\\ XXXXXX /XXXXX\r\n \\\\XXXXXXXXX \\\\ /XXXXX/\r\n \\\\XXXXXX > _/XXXXX/\r\n \\\\XXXXX--__/ __-- XXXX/\r\n -XXXXXXXX--------------- XXXXXX-\r\n \\\\XXXXXXXXXXXXXXXXXXXXXXXXXX/\r\n ""VXXXXXXXXXXXXXXXXXXV""\r\nEOC\r\n',hellokitty:"##\r\n## Hello Kitty\r\n##\r\n$the_cow = <<EOC;\r\n $thoughts\r\n $thoughts\r\n /\\\\_)o<\r\n | \\\\\r\n | O . O|\r\n \\\\_____/\r\nEOC\r\n",kiss:"##\r\n## A lovers' empbrace\r\n##\r\n$the_cow = <<EOC;\r\n $thoughts\r\n $thoughts\r\n ,;;;;;;;,\r\n ;;;;;;;;;;;,\r\n ;;;;;'_____;'\r\n ;;;(/))))|((\\\\\r\n _;;((((((|))))\r\n / |_\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\r\n .--~( \\\\ ~))))))))))))\r\n / \\\\ `\\\\-(((((((((((\\\\\\\\\r\n | | `\\\\ ) |\\\\ /|)\r\n | | `. _/ \\\\_____/ |\r\n | , `\\\\~ /\r\n | \\\\ \\\\ /\r\n | `. `\\\\| /\r\n | ~- `\\\\ /\r\n \\\\____~._/~ -_, (\\\\\r\n |-----|\\\\ \\\\ ';;\r\n | | :;;;' \\\\\r\n | / | |\r\n | | |\r\nEOC\r\n",kitty:"##\r\n## A kitten of sorts, I think\r\n##\r\n$the_cow = <<EOC;\r\n $thoughts\r\n $thoughts\r\n (\"`-' '-/\") .___..--' ' \"`-._\r\n ` *_ * ) `-. ( ) .`-.__. `)\r\n (_Y_.) ' ._ ) `._` ; `` -. .-'\r\n _.. `--'_..-_/ /--' _ .' ,4\r\n ( i l ),-'' ( l i),' ( ( ! .-' \r\nEOC\r\n",koala:"##\r\n## From the canonical koala collection\r\n##\r\n$the_cow = <<EOC;\r\n $thoughts\r\n $thoughts\r\n ___ \r\n {~._.~}\r\n ( Y )\r\n ()~*~() \r\n (_)-(_) \r\nEOC\r\n",kosh:"##\r\n## It's a Kosh Cow!\r\n##\r\n$the_cow = <<EOC;\r\n $thoughts\r\n $thoughts\r\n $thoughts\r\n ___ _____ ___\r\n / \\\\ / /| / \\\\\r\n| | / / | | |\r\n| | /____/ | | | \r\n| | | | | | |\r\n| | | {} | / | |\r\n| | |____|/ | |\r\n| | |==| | |\r\n| \\\\___________/ |\r\n| |\r\n| |\r\nEOC\r\n","luke-koala":"##\r\n## From the canonical koala collection\r\n##\r\n$the_cow = <<EOC;\r\n $thoughts\r\n $thoughts .\r\n ___ //\r\n {~._.~}// \r\n ( Y )K/ \r\n ()~*~() \r\n (_)-(_) \r\n Luke \r\n Sywalker\r\n koala \r\nEOC\r\n","mech-and-cow":" ,-----.\r\n | |\r\n ,--| |-.\r\n __,----| | | |\r\n ,;:: | `_____' |\r\n `._______| i^i |\r\n `----| |---'| .\r\n ,-------._| |== ||//\r\n | |_|P`. /'/\r\n `-------' 'Y Y/'/'\r\n .==\\ /_\\\r\n ^__^ / /'| `i\r\n (oo)\\_______ /' / | |\r\n (__)\\ )\\/\\ /' / | `i\r\n ||----w | ___,;`----'.___L_,-'`\\__\r\n || || i_____;----\\.____i\"\"\\____\\\r\n\r\n\r\n\r\n\r\n\r\n",meow:"##\r\n## A meowing tiger?\r\n##\r\n$the_cow = <<EOC;\r\n $thoughts\r\n $thoughts , _ ___.--'''`--''//-,-_--_.\r\n \\\\`\"' ` || \\\\\\\\ \\\\ \\\\\\\\/ / // / ,-\\\\\\\\`,_\r\n /'` \\\\ \\\\ || Y | \\\\|/ / // / - |__ `-,\r\n /\\@\"\\\\ ` \\\\ `\\\\ | | ||/ // | \\\\/ \\\\ `-._`-,_.,\r\n / _.-. `.-\\\\,___/\\\\ _/|_/_\\\\_\\\\/|_/ | `-._._)\r\n `-'``/ / | // \\\\__/\\\\__ / \\\\__/ \\\\\r\n `-' /-\\\\/ | -| \\\\__ \\\\ |-' |\r\n __/\\\\ / _/ \\\\/ __,-' ) ,' _|'\r\n (((__/(((_.' ((___..-'((__,'\r\nEOC\r\n",milk:"##\r\n## Milk from Milk and Cheese\r\n##\r\n$the_cow = <<EOC;\r\n $thoughts ____________ \r\n $thoughts |__________|\r\n / /\\\\\r\n / / \\\\\r\n /___________/___/|\r\n | | |\r\n | ==\\\\ /== | |\r\n | O O | \\\\ \\\\ |\r\n | < | \\\\ \\\\|\r\n /| | \\\\ \\\\\r\n / | \\\\_____/ | / /\r\n / /| | / /|\r\n/||\\\\| | /||\\\\/\r\n -------------| \r\n | | | | \r\n <__/ \\\\__>\r\nEOC\r\n",moofasa:"##\r\n## MOOfasa.\r\n##\r\n$the_cow = <<EOC;\r\n $thoughts ____\r\n $thoughts / \\\\\r\n | ^__^ |\r\n | ($eyes) |______\r\n | (__) | )\\\\/\\\\\r\n \\\\____/|----w |\r\n || ||\r\n\r\n\t Moofasa\r\nEOC\r\n",moose:"$the_cow = <<EOC;\r\n $thoughts\r\n $thoughts \\\\_\\\\_ _/_/\r\n $thoughts \\\\__/\r\n ($eyes)\\\\_______\r\n (__)\\\\ )\\\\/\\\\\r\n $tongue ||----w |\r\n || ||\r\nEOC\r\n",mutilated:"##\r\n## A mutilated cow, from aspolito@csua.berkeley.edu\r\n##\r\n$the_cow = <<EOC;\r\n $thoughts \\\\_______\r\n v__v $thoughts \\\\ O )\r\n ($eyes) ||----w |\r\n (__) || || \\\\/\\\\\r\n $tongue\r\nEOC\r\n",ren:"##\r\n## Ren \r\n##\r\n$the_cow = <<EOC;\r\n $thoughts\r\n $thoughts\r\n ____ \r\n /# /_\\\\_\r\n | |/o\\\\o\\\\\r\n | \\\\\\\\_/_/\r\n / |_ | \r\n| ||\\\\_ ~| \r\n| ||| \\\\/ \r\n| |||_ \r\n \\\\// | \r\n || | \r\n ||_ \\\\ \r\n \\\\_| o| \r\n /\\\\___/ \r\n / ||||__ \r\n (___)_)\r\nEOC\r\n",rooster:"$the_cow = <<\"EOC\";\r\n$thoughts\r\n $thoughts\r\n\r\n.\".\".\".\r\n(` `) _.-=-.\r\n'._.--.-; .-` -' '.\r\n.-'`.o ) \\ / .-_.--' `\\\r\n`;---) \\ ; / / ;' _-_.-' `\r\n`;\"` ; \\ ; . .' _-' \\\r\n( ) | | / .-.-' -`\r\n '-.-' \\ | .' ` '.-'-\\`\r\n /_./\\_.|\\_\\ ; ' .'-'.-.\r\n / '-._ \\` / _;-,\r\n | .-=-.;-._ \\ -'-,\r\n \\ / `\";`-`,-\"`)\r\n \\ \\ '-- `\\.\\\r\n '. '._ '-- '--'/\r\n `-._ `'----'`;\r\n `\"\"\"--.____,/\r\n \\\\ \\\r\n // /`\r\n ___// /__\r\n jgs (`(`(---\"-`)\r\n\r\nEOC\r\n",satanic:"##\r\n## Satanic cow, source unknown.\r\n##\r\n$the_cow = <<EOC;\r\n $thoughts\r\n $thoughts (__) \r\n (\\\\/) \r\n /-------\\\\/ \r\n / | 666 || \r\n* ||----|| \r\n ~~ ~~ \r\nEOC\r\n",sheep:"##\r\n## The non-flaming sheep.\r\n##\r\n$the_cow = <<EOC\r\n $thoughts\r\n $thoughts\r\n __ \r\n U${eyes}U\\\\.'\\@\\@\\@\\@\\@\\@`.\r\n \\\\__/(\\@\\@\\@\\@\\@\\@\\@\\@\\@\\@)\r\n (\\@\\@\\@\\@\\@\\@\\@\\@)\r\n `YY~~~~YY'\r\n || ||\r\nEOC\r\n",skeleton:"##\r\n## This 'Scowleton' brought to you by one of \r\n## {appel,kube,rowe}@csua.berkeley.edu\r\n##\r\n$the_cow = <<EOC;\r\n $thoughts (__) \r\n $thoughts /$eyes| \r\n $thoughts (_\"_)*+++++++++*\r\n //I#\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\I\\\\\r\n I[I|I|||||I I `\r\n I`I'///'' I I\r\n I I I I\r\n ~ ~ ~ ~\r\n Scowleton\r\nEOC\r\n",small:'##\r\n## A small cow, artist unknown\r\n##\r\n$eyes = ".." unless ($eyes);\r\n$the_cow = <<EOC;\r\n $thoughts ,__,\r\n $thoughts ($eyes)____\r\n (__) )\\\\\r\n $tongue||--|| *\r\nEOC\r\n',squirrel:"$the_cow = <<EOC;\r\n $thoughts\r\n $thoughts\r\n _ _\r\n | \\__/| .~ ~.\r\n /$eyes `./ .'\r\n {o__, \\ {\r\n / . . ) \\\r\n `-` '-' \\ }\r\n .( _( )_.'\r\n '---.~_ _ _|\r\n \r\nEOC\r\n",stegosaurus:"##\r\n## A stegosaur with a top hat?\r\n##\r\n$the_cow = <<EOC;\r\n$thoughts . .\r\n $thoughts / `. .' \" \r\n $thoughts .---. < > < > .---.\r\n $thoughts | \\\\ \\\\ - ~ ~ - / / |\r\n _____ ..-~ ~-..-~\r\n | | \\\\~~~\\\\.' `./~~~/\r\n --------- \\\\__/ \\\\__/\r\n .' O \\\\ / / \\\\ \" \r\n (_____, `._.' | } \\\\/~~~/\r\n `----. / } | / \\\\__/\r\n `-. | / | / `. ,~~|\r\n ~-.__| /_ - ~ ^| /- _ `..-' \r\n | / | / ~-. `-. _ _ _\r\n |_____| |_____| ~ - . _ _ _ _ _>\r\nEOC\r\n",stimpy:"##\r\n## Stimpy!\r\n##\r\n$the_cow = <<EOC;\r\n $thoughts . _ . \r\n $thoughts |\\\\_|/__/| \r\n / / \\\\/ \\\\ \\\\ \r\n /__|O||O|__ \\\\ \r\n |/_ \\\\_/\\\\_/ _\\\\ | \r\n | | (____) | || \r\n \\\\/\\\\___/\\\\__/ // \r\n (_/ ||\r\n | ||\r\n | ||\\\\ \r\n \\\\ //_/ \r\n \\\\______//\r\n __ || __||\r\n (____(____)\r\nEOC\r\n",supermilker:"##\r\n## A cow being milked, probably from Lars Smith (lars@csua.berkeley.edu)\r\n##\r\n$the_cow = <<EOC;\r\n $thoughts ^__^\r\n $thoughts ($eyes)\\\\_______ ________\r\n (__)\\\\ )\\\\/\\\\ |Super |\r\n $tongue ||----W | |Milker|\r\n || UDDDDDDDDD|______|\r\nEOC\r\n",surgery:"##\r\n## A cow operation, artist unknown\r\n##\r\n$the_cow = <<EOC;\r\n $thoughts \\\\ / \r\n $thoughts \\\\/ \r\n (__) /\\\\ \r\n ($eyes) O O \r\n _\\\\/_ // \r\n * ( ) // \r\n \\\\ (\\\\\\\\ // \r\n \\\\( \\\\\\\\ ) \r\n ( \\\\\\\\ ) /\\\\ \r\n ___[\\\\______/^^^^^^^\\\\__/) o-)__ \r\n |\\\\__[=======______//________)__\\\\ \r\n \\\\|_______________//____________| \r\n ||| || //|| |||\r\n ||| || @.|| ||| \r\n || \\\\/ .\\\\/ || \r\n . . \r\n '.'.` \r\n\r\n COW-OPERATION \r\nEOC\r\n",turkey:"##\r\n## Turkey!\r\n##\r\n$the_cow = <<EOC;\r\n $thoughts ,+*^^*+___+++_\r\n $thoughts ,*^^^^ )\r\n $thoughts _+* ^**+_\r\n $thoughts +^ _ _++*+_+++_, )\r\n _+^^*+_ ( ,+*^ ^ \\\\+_ )\r\n { ) ( ,( ,_+--+--, ^) ^\\\\\r\n { (\\@) } f ,( ,+-^ __*_*_ ^^\\\\_ ^\\\\ )\r\n {:;-/ (_+*-+^^^^^+*+*<_ _++_)_ ) ) /\r\n ( / ( ( ,___ ^*+_+* ) < < \\\\\r\n U _/ ) *--< ) ^\\\\-----++__) ) ) )\r\n ( ) _(^)^^)) ) )\\\\^^^^^))^*+/ / /\r\n ( / (_))_^)) ) ) ))^^^^^))^^^)__/ +^^\r\n ( ,/ (^))^)) ) ) ))^^^^^^^))^^) _)\r\n *+__+* (_))^) ) ) ))^^^^^^))^^^^^)____*^\r\n \\\\ \\\\_)^)_)) ))^^^^^^^^^^))^^^^)\r\n (_ ^\\\\__^^^^^^^^^^^^))^^^^^^^)\r\n ^\\\\___ ^\\\\__^^^^^^))^^^^^^^^)\\\\\\\\\r\n ^^^^^\\\\uuu/^^\\\\uuu/^^^^\\\\^\\\\^\\\\^\\\\^\\\\^\\\\^\\\\^\\\\\r\n ___) >____) >___ ^\\\\_\\\\_\\\\_\\\\_\\\\_\\\\_\\\\)\r\n ^^^//\\\\\\\\_^^//\\\\\\\\_^ ^(\\\\_\\\\_\\\\_\\\\)\r\n ^^^ ^^ ^^^ ^\r\nEOC\r\n",turtle:"##\r\n## A mysterious turtle...\r\n##\r\n$the_cow = <<EOC;\r\n $thoughts ___-------___\r\n $thoughts _-~~ ~~-_\r\n $thoughts _-~ /~-_\r\n /^\\\\__/^\\\\ /~ \\\\ / \\\\\r\n /| O|| O| / \\\\_______________/ \\\\\r\n | |___||__| / / \\\\ \\\\\r\n | \\\\ / / \\\\ \\\\\r\n | (_______) /______/ \\\\_________ \\\\\r\n | / / \\\\ / \\\\\r\n \\\\ \\\\^\\\\\\\\ \\\\ / \\\\ /\r\n \\\\ || \\\\______________/ _-_ //\\\\__//\r\n \\\\ ||------_-~~-_ ------------- \\\\ --/~ ~\\\\ || __/\r\n ~-----||====/~ |==================| |/~~~~~\r\n (_(__/ ./ / \\\\_\\\\ \\\\.\r\n (_(___/ \\\\_____)_)\r\nEOC\r\n",tux:"##\r\n## TuX\r\n## (c) pborys@p-soft.silesia.linux.org.pl \r\n##\r\n$the_cow = <<EOC;\r\n $thoughts\r\n $thoughts\r\n .--.\r\n |o_o |\r\n |:_/ |\r\n // \\\\ \\\\\r\n (| | )\r\n /'\\\\_ _/`\\\\\r\n \\\\___)=(___/\r\n\r\nEOC\r\n","vader-koala":"##\r\n## Another canonical koala?\r\n##\r\n$the_cow = <<EOC;\r\n $thoughts\r\n $thoughts .\r\n .---. //\r\n Y|o o|Y// \r\n /_(i=i)K/ \r\n ~()~*~()~ \r\n (_)-(_) \r\n\r\n Darth \r\n Vader \r\n koala \r\nEOC\r\n",vader:"##\r\n## Cowth Vader, from geordan@csua.berkeley.edu\r\n##\r\n$the_cow = <<EOC;\r\n $thoughts ,-^-.\r\n $thoughts !oYo!\r\n $thoughts /./=\\\\.\\\\______\r\n ## )\\\\/\\\\\r\n ||-----w||\r\n || ||\r\n\r\n Cowth Vader\r\nEOC\r\n",www:"##\r\n## A cow wadvertising the World Wide Web, from lim@csua.berkeley.edu\r\n##\r\n$the_cow = <<EOC;\r\n $thoughts ^__^\r\n $thoughts ($eyes)\\\\_______\r\n (__)\\\\ )\\\\/\\\\\r\n $tongue ||--WWW |\r\n || ||\r\nEOC\r\n"}},function(n,r,_){var t=(_(10),_(7)),e=_(4).cowdefs;r.get=function(n){var r=e[n];return r||(r=e.default),function(n){return t(r,n)}},r.list=function(n){var r=[];for(var _ in e)r.push(_);n(null,r)}},function(n,r){var _={b:{eyes:"==",tongue:" "},d:{eyes:"xx",tongue:"U "},g:{eyes:"$$",tongue:" "},p:{eyes:"@@",tongue:" "},s:{eyes:"**",tongue:"U "},t:{eyes:"--",tongue:" "},w:{eyes:"OO",tongue:" "},y:{eyes:"..",tongue:" "}};n.exports=function(n){for(var r in _)if(!0===n[r])return _[r];return{eyes:n.e||"oo",tongue:n.T||" "}}},function(n,r){function _(n){return n&&n.replace?n.replace(/\$/g,"$$$$"):n}function t(n){n=n.replace(/\r\n?|[\n\u2028\u2029]/g,"\n").replace(/^\uFEFF/,"");var r=/\$the_cow\s*=\s*<<"*EOC"*;*\n([\s\S]+)\nEOC\n/.exec(n);return r?r[1].replace(/\\{2}/g,"\\").replace(/\\@/g,"@").replace(/\\\$/g,"$"):(console.error("Cannot parse cow file\n",n),n)}n.exports=function(n,r){var e=_(r.eyes),o=_(r.tongue);return-1!==n.indexOf("$the_cow")&&(n=t(n)),n.replace(/\$thoughts/g,r.thoughts).replace(/\$eyes/g,e).replace(/\$tongue/g,o).replace(/\$\{eyes\}/g,e).replace(/\$\{tongue\}/g,o)}},function(n,r){function _(){throw Error("setTimeout has not been defined")}function t(){throw Error("clearTimeout has not been defined")}function e(n){if(c===setTimeout)return setTimeout(n,0);if((c===_||!c)&&setTimeout)return c=setTimeout,setTimeout(n,0);try{return c(n,0)}catch(r){try{return c.call(null,n,0)}catch(r){return c.call(this,n,0)}}}function o(n){if(a===clearTimeout)return clearTimeout(n);if((a===t||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(n);try{return a(n)}catch(r){try{return a.call(null,n)}catch(r){return a.call(this,n)}}}function u(){g&&l&&(g=!1,l.length?X=l.concat(X):f=-1,X.length&&s())}function s(){if(!g){var n=e(u);g=!0;for(var r=X.length;r;){for(l=X,X=[];++f<r;)l&&l[f].run();f=-1,r=X.length}l=null,g=!1,o(n)}}function h(n,r){this.fun=n,this.array=r}function i(){}var c,a,$=n.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:_}catch(n){c=_}try{a="function"==typeof clearTimeout?clearTimeout:t}catch(n){a=t}}();var l,X=[],g=!1,f=-1;$.nextTick=function(n){var r=Array(arguments.length-1);if(arguments.length>1)for(var _=1;arguments.length>_;_++)r[_-1]=arguments[_];X.push(new h(n,r)),1!==X.length||g||e(s)},h.prototype.run=function(){this.fun.apply(null,this.array)},$.title="browser",$.browser=!0,$.env={},$.argv=[],$.version="",$.versions={},$.on=i,$.addListener=i,$.once=i,$.off=i,$.removeListener=i,$.removeAllListeners=i,$.emit=i,$.binding=function(n){throw Error("process.binding is not supported")},$.cwd=function(){return"/"},$.chdir=function(n){throw Error("process.chdir is not supported")},$.umask=function(){return 0}},function(n,r){r.endianness=function(){return"LE"},r.hostname=function(){return"undefined"!=typeof location?location.hostname:""},r.loadavg=function(){return[]},r.uptime=function(){return 0},r.freemem=function(){return Number.MAX_VALUE},r.totalmem=function(){return Number.MAX_VALUE},r.cpus=function(){return[]},r.type=function(){return"Browser"},r.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},r.networkInterfaces=r.getNetworkInterfaces=function(){return{}},r.arch=function(){return"javascript"},r.platform=function(){return"browser"},r.tmpdir=r.tmpDir=function(){return"/tmp"},r.EOL="\n"},function(n,r,_){(function(n){function _(n,r){for(var _=0,t=n.length-1;t>=0;t--){var e=n[t];"."===e?n.splice(t,1):".."===e?(n.splice(t,1),_++):_&&(n.splice(t,1),_--)}if(r)for(;_--;_)n.unshift("..");return n}function t(n,r){if(n.filter)return n.filter(r);for(var _=[],t=0;n.length>t;t++)r(n[t],t,n)&&_.push(n[t]);return _}var e=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,o=function(n){return e.exec(n).slice(1)};r.resolve=function(){for(var r="",e=!1,o=arguments.length-1;o>=-1&&!e;o--){var u=0>o?n.cwd():arguments[o];if("string"!=typeof u)throw new TypeError("Arguments to path.resolve must be strings");u&&(r=u+"/"+r,e="/"===u.charAt(0))}return r=_(t(r.split("/"),function(n){return!!n}),!e).join("/"),(e?"/":"")+r||"."},r.normalize=function(n){var e=r.isAbsolute(n),o="/"===u(n,-1);return n=_(t(n.split("/"),function(n){return!!n}),!e).join("/"),n||e||(n="."),n&&o&&(n+="/"),(e?"/":"")+n},r.isAbsolute=function(n){return"/"===n.charAt(0)},r.join=function(){var n=Array.prototype.slice.call(arguments,0);return r.normalize(t(n,function(n,r){if("string"!=typeof n)throw new TypeError("Arguments to path.join must be strings");return n}).join("/"))},r.relative=function(n,_){function t(n){for(var r=0;n.length>r&&""===n[r];r++);for(var _=n.length-1;_>=0&&""===n[_];_--);return r>_?[]:n.slice(r,_-r+1)}n=r.resolve(n).substr(1),_=r.resolve(_).substr(1);for(var e=t(n.split("/")),o=t(_.split("/")),u=Math.min(e.length,o.length),s=u,h=0;u>h;h++)if(e[h]!==o[h]){s=h;break}for(var i=[],h=s;e.length>h;h++)i.push("..");return i=i.concat(o.slice(s)),i.join("/")},r.sep="/",r.delimiter=":",r.dirname=function(n){var r=o(n),_=r[0],t=r[1];return _||t?(t&&(t=t.substr(0,t.length-1)),_+t):"."},r.basename=function(n,r){var _=o(n)[2];return r&&_.substr(-1*r.length)===r&&(_=_.substr(0,_.length-r.length)),_},r.extname=function(n){return o(n)[3]};var u="b"==="ab".substr(-1)?function(n,r,_){return n.substr(r,_)}:function(n,r,_){return 0>r&&(r=n.length+r),n.substr(r,_)}}).call(r,_(8))}])});