-
-
Notifications
You must be signed in to change notification settings - Fork 49
/
firstpr.js
6 lines (6 loc) · 56.4 KB
/
firstpr.js
1
2
3
4
5
6
!function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}(this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){var i;if(t&&e)return-1==(i=(i=this._events=this._events||{})[t]=i[t]||[]).indexOf(e)&&i.push(e),this},e.once=function(t,e){var i;if(t&&e)return this.on(t,e),((i=this._onceEvents=this._onceEvents||{})[t]=i[t]||[])[e]=!0,this},e.off=function(t,e){t=this._events&&this._events[t];if(t&&t.length)return-1!=(e=t.indexOf(e))&&t.splice(e,1),this},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){for(var n=0,o=i[n],s=(e=e||[],this._onceEvents&&this._onceEvents[t]);o;){var r=s&&s[o];r&&(this.off(t,o),delete s[o]),o.apply(this,e),o=i[n+=r?0:1]}return this}},t}),function(e,i){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("ev-emitter")):e.imagesLoaded=i(e,e.EvEmitter)}(window,function(e,t){var n=e.jQuery,o=e.console;function s(t,e){for(var i in e)t[i]=e[i];return t}function r(t,e,i){if(!(this instanceof r))return new r(t,e,i);"string"==typeof t&&(t=document.querySelectorAll(t)),this.elements=function(t){var e=[];if(Array.isArray(t))e=t;else if("number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e}(t),this.options=s({},this.options),"function"==typeof e?i=e:s(this.options,e),i&&this.on("always",i),this.getImages(),n&&(this.jqDeferred=new n.Deferred),setTimeout(function(){this.check()}.bind(this))}(r.prototype=Object.create(t.prototype)).options={},r.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},r.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&h[e]){for(var i=t.querySelectorAll("img"),n=0;n<i.length;n++){var o=i[n];this.addImage(o)}if("string"==typeof this.options.background)for(var s=t.querySelectorAll(this.options.background),n=0;n<s.length;n++){var r=s[n];this.addElementBackgroundImages(r)}}};var h={1:!0,9:!0,11:!0};function i(t){this.img=t}function a(t,e){this.url=t,this.element=e,this.img=new Image}return r.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(e.backgroundImage);null!==n;){var o=n&&n[2];o&&this.addBackground(o,t),n=i.exec(e.backgroundImage)}},r.prototype.addImage=function(t){t=new i(t);this.images.push(t)},r.prototype.addBackground=function(t,e){t=new a(t,e);this.images.push(t)},r.prototype.check=function(){var n=this;function e(t,e,i){setTimeout(function(){n.progress(t,e,i)})}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach(function(t){t.once("progress",e),t.check()}):this.complete()},r.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&o&&o.log("progress: "+i,t,e)},r.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred&&(t=this.hasAnyBroken?"reject":"resolve",this.jqDeferred[t](this))},(i.prototype=Object.create(t.prototype)).check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},i.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},i.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},i.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},i.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},i.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},(a.prototype=Object.create(i.prototype)).check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},a.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},a.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},(r.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((n=t).fn.imagesLoaded=function(t,e){return new r(this,t,e).jqDeferred.promise(n(this))})})(),r});
!function(e,t){"object"==typeof exports&&exports&&"string"!=typeof exports.nodeName?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):(e.Mustache={},t(e.Mustache))}(this,function(S){var t=Object.prototype.toString,V=Array.isArray||function(e){return"[object Array]"===t.call(e)};function p(e){return"function"==typeof e}function C(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function a(e,t){return null!=e&&"object"==typeof e&&t in e}var n=RegExp.prototype.test;var r=/\S/;function A(e){return!n.call(r,e)}var i={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};var I=/\s*/,R=/\s+/,O=/\s*=/,P=/\s*\}/,M=/#|\^|\/|>|\{|&|=|!/;function o(e,t){if(!e)return[];var n,r,i,o=[],s=[],a=[],u=!1,p=!1;function c(e){if("string"==typeof e&&(e=e.split(R,2)),!V(e)||2!==e.length)throw new Error("Invalid tags: "+e);n=new RegExp(C(e[0])+"\\s*"),r=new RegExp("\\s*"+C(e[1])),i=new RegExp("\\s*"+C("}"+e[1]))}c(t||S.tags);for(var l,h,f,d,g,v,w=new $(e);!w.eos();){if(l=w.pos,f=w.scanUntil(n))for(var y=0,x=f.length;y<x;++y)if(A(d=f.charAt(y))?a.push(s.length):p=!0,s.push(["text",d,l,l+1]),l+=1,"\n"===d){if(u&&!p)for(;a.length;)delete s[a.pop()];else a=[];p=u=!1}if(!w.scan(n))break;if(u=!0,h=w.scan(M)||"name",w.scan(I),"="===h?(f=w.scanUntil(O),w.scan(O),w.scanUntil(r)):"{"===h?(f=w.scanUntil(i),w.scan(P),w.scanUntil(r),h="&"):f=w.scanUntil(r),!w.scan(r))throw new Error("Unclosed tag at "+w.pos);if(g=[h,f,l,w.pos],s.push(g),"#"===h||"^"===h)o.push(g);else if("/"===h){if(!(v=o.pop()))throw new Error('Unopened section "'+f+'" at '+l);if(v[1]!==f)throw new Error('Unclosed section "'+v[1]+'" at '+l)}else"name"===h||"{"===h||"&"===h?p=!0:"="===h&&c(f)}if(v=o.pop())throw new Error('Unclosed section "'+v[1]+'" at '+w.pos);for(var k,b=function(e){for(var t,n,r=[],i=0,o=e.length;i<o;++i)(t=e[i])&&("text"===t[0]&&n&&"text"===n[0]?(n[1]+=t[1],n[3]=t[3]):(r.push(t),n=t));return r}(s),m=[],E=m,U=[],T=0,j=b.length;T<j;++T)switch((k=b[T])[0]){case"#":case"^":E.push(k),U.push(k),E=k[4]=[];break;case"/":U.pop()[5]=k[2],E=0<U.length?U[U.length-1][4]:m;break;default:E.push(k)}return m}function $(e){this.string=e,this.tail=e,this.pos=0}function s(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function e(){this.cache={}}$.prototype.eos=function(){return""===this.tail},$.prototype.scan=function(e){var e=this.tail.match(e);return e&&0===e.index?(e=e[0],this.tail=this.tail.substring(e.length),this.pos+=e.length,e):""},$.prototype.scanUntil=function(e){var t,n=this.tail.search(e);switch(n){case-1:t=this.tail,this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=t.length,t},s.prototype.push=function(e){return new s(e,this)},s.prototype.lookup=function(e){var t,n=this.cache;if(n.hasOwnProperty(e))t=n[e];else{for(var r,i,o=this,s=!1;o;){if(0<e.indexOf("."))for(t=o.view,r=e.split("."),i=0;null!=t&&i<r.length;)i===r.length-1&&(s=a(t,r[i])),t=t[r[i++]];else t=o.view[e],s=a(o.view,e);if(s)break;o=o.parent}n[e]=t}return t=p(t)?t.call(this.view):t},e.prototype.clearCache=function(){this.cache={}},e.prototype.parse=function(e,t){var n=this.cache,r=n[e];return r=null==r?n[e]=o(e,t):r},e.prototype.render=function(e,t,n){var r=this.parse(e),t=t instanceof s?t:new s(t);return this.renderTokens(r,t,n,e)},e.prototype.renderTokens=function(e,t,n,r){for(var i,o,s,a="",u=0,p=e.length;u<p;++u)s=void 0,"#"===(o=(i=e[u])[0])?s=this.renderSection(i,t,n,r):"^"===o?s=this.renderInverted(i,t,n,r):">"===o?s=this.renderPartial(i,t,n,r):"&"===o?s=this.unescapedValue(i,t):"name"===o?s=this.escapedValue(i,t):"text"===o&&(s=this.rawValue(i)),void 0!==s&&(a+=s);return a},e.prototype.renderSection=function(e,t,n,r){var i=this,o="",s=t.lookup(e[1]);if(s){if(V(s))for(var a=0,u=s.length;a<u;++a)o+=this.renderTokens(e[4],t.push(s[a]),n,r);else if("object"==typeof s||"string"==typeof s||"number"==typeof s)o+=this.renderTokens(e[4],t.push(s),n,r);else if(p(s)){if("string"!=typeof r)throw new Error("Cannot use higher-order sections without the original template");null!=(s=s.call(t.view,r.slice(e[3],e[5]),function(e){return i.render(e,t,n)}))&&(o+=s)}else o+=this.renderTokens(e[4],t,n,r);return o}},e.prototype.renderInverted=function(e,t,n,r){var i=t.lookup(e[1]);if(!i||V(i)&&0===i.length)return this.renderTokens(e[4],t,n,r)},e.prototype.renderPartial=function(e,t,n){return n&&null!=(e=p(n)?n(e[1]):n[e[1]])?this.renderTokens(this.parse(e),t,n,e):void 0},e.prototype.unescapedValue=function(e,t){t=t.lookup(e[1]);if(null!=t)return t},e.prototype.escapedValue=function(e,t){t=t.lookup(e[1]);if(null!=t)return S.escape(t)},e.prototype.rawValue=function(e){return e[1]},S.name="mustache.js",S.version="2.2.1",S.tags=["{{","}}"];var u=new e;S.clearCache=function(){return u.clearCache()},S.parse=function(e,t){return u.parse(e,t)},S.render=function(e,t,n){if("string"!=typeof e)throw new TypeError('Invalid template! Template should be a "string" but "'+(V(r=e)?"array":typeof r)+'" was given as the first argument for mustache#render(template, view, partials)');var r;return u.render(e,t,n)},S.to_html=function(e,t,n,r){e=S.render(e,t,n);if(!p(r))return e;r(e)},S.escape=function(e){return String(e).replace(/[&<>"'`=\/]/g,function(e){return i[e]})},S.Scanner=$,S.Context=s,S.Writer=e});
!function(e){l=e.window.document,a="+1,-1,100,109,1234,8ball,a,ab,abc,abcd,accept,aerial_tramway,airplane,alarm_clock,alien,ambulance,anchor,angel,anger,angry,anguished,ant,apple,aquarius,aries,arrow_backward,arrow_double_down,arrow_double_up,arrow_down,arrow_down_small,arrow_forward,arrow_heading_down,arrow_heading_up,arrow_left,arrow_lower_left,arrow_lower_right,arrow_right,arrow_right_hook,arrow_up,arrow_up_down,arrow_up_small,arrow_upper_left,arrow_upper_right,arrows_clockwise,arrows_counterclockwise,art,articulated_lorry,astonished,atm,b,baby,baby_bottle,baby_chick,baby_symbol,baggage_claim,balloon,ballot_box_with_check,bamboo,banana,bangbang,bank,bar_chart,barber,baseball,basketball,bath,bathtub,battery,bear,bee,beer,beers,beetle,beginner,bell,bento,bicyclist,bike,bikini,bird,birthday,black_circle,black_joker,black_nib,black_square,black_square_button,blossom,blowfish,blue_book,blue_car,blue_heart,blush,boar,boat,bomb,book,bookmark,bookmark_tabs,books,boom,boot,bouquet,bow,bowling,bowtie,boy,bread,bride_with_veil,bridge_at_night,briefcase,broken_heart,bug,bulb,bullettrain_front,bullettrain_side,bus,busstop,bust_in_silhouette,busts_in_silhouette,cactus,cake,calendar,calling,camel,camera,cancer,candy,capital_abcd,capricorn,car,card_index,carousel_horse,cat,cat2,cd,chart,chart_with_downwards_trend,chart_with_upwards_trend,checkered_flag,cherries,cherry_blossom,chestnut,chicken,children_crossing,chocolate_bar,christmas_tree,church,cinema,circus_tent,city_sunrise,city_sunset,cl,clap,clapper,clipboard,clock1,clock10,clock1030,clock11,clock1130,clock12,clock1230,clock130,clock2,clock230,clock3,clock330,clock4,clock430,clock5,clock530,clock6,clock630,clock7,clock730,clock8,clock830,clock9,clock930,closed_book,closed_lock_with_key,closed_umbrella,cloud,clubs,cn,cocktail,coffee,cold_sweat,collision,computer,confetti_ball,confounded,confused,congratulations,construction,construction_worker,convenience_store,cookie,cool,cop,copyright,corn,couple,couple_with_heart,couplekiss,cow,cow2,credit_card,crocodile,crossed_flags,crown,cry,crying_cat_face,crystal_ball,cupid,curly_loop,currency_exchange,curry,custard,customs,cyclone,dancer,dancers,dango,dart,dash,date,de,deciduous_tree,department_store,diamond_shape_with_a_dot_inside,diamonds,disappointed,disappointed_relieved,dizzy,dizzy_face,do_not_litter,dog,dog2,dollar,dolls,dolphin,donut,door,doughnut,dragon,dragon_face,dress,dromedary_camel,droplet,dvd,e-mail,ear,ear_of_rice,earth_africa,earth_americas,earth_asia,egg,eggplant,eight,eight_pointed_black_star,eight_spoked_asterisk,electric_plug,elephant,email,end,envelope,es,euro,european_castle,european_post_office,evergreen_tree,exclamation,expressionless,eyeglasses,eyes,facepunch,factory,fallen_leaf,family,fast_forward,fax,fearful,feelsgood,feet,ferris_wheel,file_folder,finnadie,fire,fire_engine,fireworks,first_quarter_moon,first_quarter_moon_with_face,fish,fish_cake,fishing_pole_and_fish,fist,five,flags,flashlight,floppy_disk,flower_playing_cards,flushed,foggy,football,fork_and_knife,fountain,four,four_leaf_clover,fr,free,fried_shrimp,fries,frog,frowning,fu,fuelpump,full_moon,full_moon_with_face,game_die,gb,gem,gemini,ghost,gift,gift_heart,girl,globe_with_meridians,goat,goberserk,godmode,golf,grapes,green_apple,green_book,green_heart,grey_exclamation,grey_question,grimacing,grin,grinning,guardsman,guitar,gun,haircut,hamburger,hammer,hamster,hand,handbag,hankey,hash,hatched_chick,hatching_chick,headphones,hear_no_evil,heart,heart_decoration,heart_eyes,heart_eyes_cat,heartbeat,heartpulse,hearts,heavy_check_mark,heavy_division_sign,heavy_dollar_sign,heavy_exclamation_mark,heavy_minus_sign,heavy_multiplication_x,heavy_plus_sign,helicopter,herb,hibiscus,high_brightness,high_heel,hocho,honey_pot,honeybee,horse,horse_racing,hospital,hotel,hotsprings,hourglass,hourglass_flowing_sand,house,house_with_garden,hurtrealbad,hushed,ice_cream,icecream,id,ideograph_advantage,imp,inbox_tray,incoming_envelope,information_desk_person,information_source,innocent,interrobang,iphone,it,izakaya_lantern,jack_o_lantern,japan,japanese_castle,japanese_goblin,japanese_ogre,jeans,joy,joy_cat,jp,key,keycap_ten,kimono,kiss,kissing,kissing_cat,kissing_closed_eyes,kissing_face,kissing_heart,kissing_smiling_eyes,koala,koko,kr,large_blue_circle,large_blue_diamond,large_orange_diamond,last_quarter_moon,last_quarter_moon_with_face,laughing,leaves,ledger,left_luggage,left_right_arrow,leftwards_arrow_with_hook,lemon,leo,leopard,libra,light_rail,link,lips,lipstick,lock,lock_with_ink_pen,lollipop,loop,loudspeaker,love_hotel,love_letter,low_brightness,m,mag,mag_right,mahjong,mailbox,mailbox_closed,mailbox_with_mail,mailbox_with_no_mail,man,man_with_gua_pi_mao,man_with_turban,mans_shoe,maple_leaf,mask,massage,meat_on_bone,mega,melon,memo,mens,metal,metro,microphone,microscope,milky_way,minibus,minidisc,mobile_phone_off,money_with_wings,moneybag,monkey,monkey_face,monorail,moon,mortar_board,mount_fuji,mountain_bicyclist,mountain_cableway,mountain_railway,mouse,mouse2,movie_camera,moyai,muscle,mushroom,musical_keyboard,musical_note,musical_score,mute,nail_care,name_badge,neckbeard,necktie,negative_squared_cross_mark,neutral_face,new,new_moon,new_moon_with_face,newspaper,ng,nine,no_bell,no_bicycles,no_entry,no_entry_sign,no_good,no_mobile_phones,no_mouth,no_pedestrians,no_smoking,non-potable_water,nose,notebook,notebook_with_decorative_cover,notes,nut_and_bolt,o,o2,ocean,octocat,octopus,oden,office,ok,ok_hand,ok_woman,older_man,older_woman,on,oncoming_automobile,oncoming_bus,oncoming_police_car,oncoming_taxi,one,open_file_folder,open_hands,open_mouth,ophiuchus,orange_book,outbox_tray,ox,page_facing_up,page_with_curl,pager,palm_tree,panda_face,paperclip,parking,part_alternation_mark,partly_sunny,passport_control,paw_prints,peach,pear,pencil,pencil2,penguin,pensive,performing_arts,persevere,person_frowning,person_with_blond_hair,person_with_pouting_face,phone,pig,pig2,pig_nose,pill,pineapple,pisces,pizza,plus1,point_down,point_left,point_right,point_up,point_up_2,police_car,poodle,poop,post_office,postal_horn,postbox,potable_water,pouch,poultry_leg,pound,pouting_cat,pray,princess,punch,purple_heart,purse,pushpin,put_litter_in_its_place,question,rabbit,rabbit2,racehorse,radio,radio_button,rage,rage1,rage2,rage3,rage4,railway_car,rainbow,raised_hand,raised_hands,raising_hand,ram,ramen,rat,recycle,red_car,red_circle,registered,relaxed,relieved,repeat,repeat_one,restroom,revolving_hearts,rewind,ribbon,rice,rice_ball,rice_cracker,rice_scene,ring,rocket,roller_coaster,rooster,rose,rotating_light,round_pushpin,rowboat,ru,rugby_football,runner,running,running_shirt_with_sash,sa,sagittarius,sailboat,sake,sandal,santa,satellite,satisfied,saxophone,school,school_satchel,scissors,scorpius,scream,scream_cat,scroll,seat,secret,see_no_evil,seedling,seven,shaved_ice,sheep,shell,ship,shipit,shirt,shit,shoe,shower,signal_strength,six,six_pointed_star,ski,skull,sleeping,sleepy,slot_machine,small_blue_diamond,small_orange_diamond,small_red_triangle,small_red_triangle_down,smile,smile_cat,smiley,smiley_cat,smiling_imp,smirk,smirk_cat,smoking,snail,snake,snowboarder,snowflake,snowman,sob,soccer,soon,sos,sound,space_invader,spades,spaghetti,sparkler,sparkles,sparkling_heart,speak_no_evil,speaker,speech_balloon,speedboat,squirrel,star,star2,stars,station,statue_of_liberty,steam_locomotive,stew,straight_ruler,strawberry,stuck_out_tongue,stuck_out_tongue_closed_eyes,stuck_out_tongue_winking_eye,sun_with_face,sunflower,sunglasses,sunny,sunrise,sunrise_over_mountains,surfer,sushi,suspect,suspension_railway,sweat,sweat_drops,sweat_smile,sweet_potato,swimmer,symbols,syringe,tada,tanabata_tree,tangerine,taurus,taxi,tea,telephone,telephone_receiver,telescope,tennis,tent,thought_balloon,three,thumbsdown,thumbsup,ticket,tiger,tiger2,tired_face,tm,toilet,tokyo_tower,tomato,tongue,top,tophat,tractor,traffic_light,train,train2,tram,triangular_flag_on_post,triangular_ruler,trident,triumph,trolleybus,trollface,trophy,tropical_drink,tropical_fish,truck,trumpet,tshirt,tulip,turtle,tv,twisted_rightwards_arrows,two,two_hearts,two_men_holding_hands,two_women_holding_hands,u5272,u5408,u55b6,u6307,u6708,u6709,u6e80,u7121,u7533,u7981,u7a7a,uk,umbrella,unamused,underage,unlock,up,us,v,vertical_traffic_light,vhs,vibration_mode,video_camera,video_game,violin,virgo,volcano,vs,walking,waning_crescent_moon,waning_gibbous_moon,warning,watch,water_buffalo,watermelon,wave,wavy_dash,waxing_crescent_moon,waxing_gibbous_moon,wc,weary,wedding,whale,whale2,wheelchair,white_check_mark,white_circle,white_flower,white_square,white_square_button,wind_chime,wine_glass,wink,wink2,wolf,woman,womans_clothes,womans_hat,womens,worried,wrench,x,yellow_heart,yen,yum,zap,zero,zzz".split(/,/),r=a.reduce(function(e,a){return e[a]=!0,e},{}),o={named:/:([a-z0-9A-Z_-]+):/,blush:/:-?\)/g,scream:/:-o/gi,smirk:/[:;]-?]/g,smiley:/[:;]-?d/gi,stuck_out_tongue_closed_eyes:/x-d/gi,stuck_out_tongue_winking_eye:/[:;]-?p/gi,rage:/:-?[\[@]/g,disappointed:/:-?\(/g,sob:/:['’]-?\(|:'\(/g,kissing_heart:/:-?\*/g,wink:/;-?\)/g,pensive:/:-?\//g,confounded:/:-?s/gi,flushed:/:-?\|/g,relaxed:/:-?\$/g,mask:/:-x/gi,heart:/<3|<3/g,broken_heart:/<\/3|</3/g,thumbsup:/:\+1:/g,thumbsdown:/:\-1:/g},i=Object.keys(o).map(function(e){return[o[e],e]}),t=i.map(function(e){e=e[0];return"("+(e.source||e).replace(/(^|[^\[])\^/g,"$1")+")"}).join("|"),c=new RegExp(t,"gi"),u={emojify_tag_type:"div",only_crawl_id:null,img_dir:"images/emoji",ignored_tags:{SCRIPT:1,TEXTAREA:1,A:1,PRE:1,CODE:1}},h.prototype={validate:function(e,a,o){function r(){return t.lastEmojiTerminatedAt=i+a,n}var i,t=this,n=g(e);if(n)return e=e[0],i=e.length,2<e.length||0===a||o.length===e.length+a||_(o.charAt(a-1))||_(o.charAt(e.length+a))||this.lastEmojiTerminatedAt===a?r():void 0}};var l,a,r,o,i,t,c,u,n={defaultConfig:u,emojiNames:a,setConfig:function(a){Object.keys(u).forEach(function(e){e in a&&(u[e]=a[e])})},replace:function(e,a){if(!e)return e;a=a||s;var o=new h;return e.replace(c,function(){var e=Array.prototype.slice.call(arguments,0,-2),e=o.validate(e,arguments[arguments.length-2],arguments[arguments.length-1]);return e?a(arguments[0],e):arguments[0]})},run:function(e){void 0===e&&(e=u.only_crawl_id?l.getElementById(u.only_crawl_id):l.body);for(var a,o=u.ignored_tags,r=l.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,function(e){return 1!==e.nodeType?NodeFilter.FILTER_ACCEPT:o[e.tagName]||e.classList.contains("no-emojify")?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_SKIP},!1),i=[];null!==(a=r.nextNode());)i.push(a);i.forEach(function(e){for(var a,o=[],r=new h;null!==(a=c.exec(e.data));)r.validate(a,a.index,a.input)&&o.push(a);for(var i,t,n,_=o.length;0<_--;){var s=g(o[_]);i=e,t=o[_],s=s,n=void 0,(n=l.createElement("img")).setAttribute("title",":"+s+":"),n.setAttribute("alt",":"+s+":"),n.setAttribute("class","emoji"),n.setAttribute("src",u.img_dir+"/"+s+".png"),n.setAttribute("align","absmiddle"),i.splitText(t.index),i.nextSibling.nodeValue=i.nextSibling.nodeValue.substr(t[0].length,i.nextSibling.nodeValue.length),n.appendChild(i.splitText(t.index)),i.parentNode.insertBefore(n,i.nextSibling)}})}};function _(e){return" "===e||"\t"===e||"\r"===e||"\n"===e||""===e}function g(e){if(e[1]&&e[2]){var a=e[2];if(r[a])return a}else for(var o=3;o<e.length-1;o++)if(e[o])return i[o-2][1]}function s(e,a){return"<img title=':"+a+":' alt=':"+a+":' class='emoji' src='"+u.img_dir+"/"+a+".png' align='absmiddle' />"}function h(){this.lastEmojiTerminatedAt=-1}e.emojify=n,"function"==typeof define&&define.amd&&define([],function(){return n})}(this);
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.moment=e()}(this,function(){"use strict";var H;function c(){return H.apply(null,arguments)}function L(t){return"[object Array]"===Object.prototype.toString.call(t)}function I(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function h(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function A(t,e){for(var n in e)h(e,n)&&(t[n]=e[n]);return h(e,"toString")&&(t.toString=e.toString),h(e,"valueOf")&&(t.valueOf=e.valueOf),t}function z(t,e,n,i){return jt(t,e,n,i,!0).utc()}function f(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}),t._pf}function N(t){var e;return null==t._isValid&&(e=f(t),t._isValid=!(isNaN(t._d.getTime())||!(e.overflow<0)||e.empty||e.invalidMonth||e.invalidWeekday||e.nullInput||e.invalidFormat||e.userInvalidated),t._strict)&&(t._isValid=t._isValid&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),t._isValid}function Z(t){var e=z(NaN);return null!=t?A(f(e),t):f(e).userInvalidated=!0,e}var j=c.momentProperties=[];function E(t,e){var n,i,s;if(void 0!==e._isAMomentObject&&(t._isAMomentObject=e._isAMomentObject),void 0!==e._i&&(t._i=e._i),void 0!==e._f&&(t._f=e._f),void 0!==e._l&&(t._l=e._l),void 0!==e._strict&&(t._strict=e._strict),void 0!==e._tzm&&(t._tzm=e._tzm),void 0!==e._isUTC&&(t._isUTC=e._isUTC),void 0!==e._offset&&(t._offset=e._offset),void 0!==e._pf&&(t._pf=f(e)),void 0!==e._locale&&(t._locale=e._locale),0<j.length)for(n in j)void 0!==(s=e[i=j[n]])&&(t[i]=s);return t}var V=!1;function q(t){E(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),!1===V&&(V=!0,c.updateOffset(this),V=!1)}function m(t){return t instanceof q||null!=t&&null!=t._isAMomentObject}function a(t){return t<0?Math.ceil(t):Math.floor(t)}function u(t){var t=+t,e=0;return e=0!=t&&isFinite(t)?a(t):e}function J(t,e,n){for(var i=Math.min(t.length,e.length),s=Math.abs(t.length-e.length),r=0,o=0;o<i;o++)(n&&t[o]!==e[o]||!n&&u(t[o])!==u(e[o]))&&r++;return r+s}function $(){}var R,n={};function B(t){return t&&t.toLowerCase().replace("_","-")}function Q(t){var e;if(!n[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=R._abbr,require("./locale/"+t),X(e)}catch(t){}return n[t]}function X(t,e){return(R=t&&(t=void 0===e?_(t):K(t,e))?t:R)._abbr}function K(t,e){return null!==e?(e.abbr=t,n[t]=n[t]||new $,n[t].set(e),X(t),n[t]):(delete n[t],null)}function _(t){var e;if(!(t=t&&t._locale&&t._locale._abbr?t._locale._abbr:t))return R;if(!L(t)){if(e=Q(t))return e;t=[t]}for(var n,i,s,r,o=t,a=0;a<o.length;){for(n=(r=B(o[a]).split("-")).length,i=(i=B(o[a+1]))?i.split("-"):null;0<n;){if(s=Q(r.slice(0,n).join("-")))return s;if(i&&i.length>=n&&J(r,i,!0)>=n-1)break;n--}a++}return null}var tt={};function t(t,e){var n=t.toLowerCase();tt[n]=tt[n+"s"]=tt[e]=t}function r(t){return"string"==typeof t?tt[t]||tt[t.toLowerCase()]:void 0}function et(t){var e,n,i={};for(n in t)h(t,n)&&(e=r(n))&&(i[e]=t[n]);return i}function nt(e,n){return function(t){return null!=t?(st(this,e,t),c.updateOffset(this,n),this):it(this,e)}}function it(t,e){return t._d["get"+(t._isUTC?"UTC":"")+e]()}function st(t,e,n){t._d["set"+(t._isUTC?"UTC":"")+e](n)}function rt(t,e){if("object"==typeof t)for(var n in t)this.set(n,t[n]);else if("function"==typeof this[t=r(t)])return this[t](e);return this}function ot(t,e,n){var i=""+Math.abs(t);return(0<=t?n?"+":"":"-")+Math.pow(10,Math.max(0,e-i.length)).toString().substr(1)+i}var at=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ut=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,lt={},dt={};function i(t,e,n,i){var s="string"==typeof i?function(){return this[i]()}:i;t&&(dt[t]=s),e&&(dt[e[0]]=function(){return ot(s.apply(this,arguments),e[1],e[2])}),n&&(dt[n]=function(){return this.localeData().ordinal(s.apply(this,arguments),t)})}function ct(t,e){return t.isValid()?(e=ht(e,t.localeData()),lt[e]=lt[e]||function(n){for(var t,i=n.match(at),s=0,r=i.length;s<r;s++)dt[i[s]]?i[s]=dt[i[s]]:i[s]=(t=i[s]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){var e="";for(s=0;s<r;s++)e+=i[s]instanceof Function?i[s].call(t,n):i[s];return e}}(e),lt[e](t)):t.localeData().invalidDate()}function ht(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(ut.lastIndex=0;0<=n&&ut.test(t);)t=t.replace(ut,i),ut.lastIndex=0,--n;return t}var ft=/\d/,e=/\d\d/,s=/\d{3}/,o=/\d{4}/,l=/[+-]?\d{6}/,d=/\d\d?/,mt=/\d{1,3}/,y=/\d{1,4}/,p=/[+-]?\d{1,6}/,_t=/\d+/,yt=/[+-]?\d+/,pt=/Z|[+-]\d\d:?\d\d/gi,g=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,gt={};function D(t,e,n){gt[t]="function"==typeof(t=e)&&"[object Function]"===Object.prototype.toString.call(t)?e:function(t){return t&&n?n:e}}var Dt={};function v(t,n){var e,i=n;for("string"==typeof t&&(t=[t]),"number"==typeof n&&(i=function(t,e){e[n]=u(t)}),e=0;e<t.length;e++)Dt[t[e]]=i}function vt(t,s){v(t,function(t,e,n,i){n._w=n._w||{},s(t,n._w,n,i)})}var M=0,Y=1,w=2,S=3,k=4,T=5,b=6;function Mt(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}i("M",["MM",2],"Mo",function(){return this.month()+1}),i("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),i("MMMM",0,0,function(t){return this.localeData().months(this,t)}),t("month","M"),D("M",d),D("MM",d,e),D("MMM",g),D("MMMM",g),v(["M","MM"],function(t,e){e[Y]=u(t)-1}),v(["MMM","MMMM"],function(t,e,n,i){i=n._locale.monthsParse(t,i,n._strict);null!=i?e[Y]=i:f(n).invalidMonth=t});var Yt="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var wt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function St(t,e){var n;"string"==typeof e&&"number"!=typeof(e=t.localeData().monthsParse(e))||(n=Math.min(t.date(),Mt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n))}function kt(t){return null!=t?(St(this,t),c.updateOffset(this,!0),this):it(this,"Month")}function Tt(t){var e=t._a;return e&&-2===f(t).overflow&&(e=e[Y]<0||11<e[Y]?Y:e[w]<1||e[w]>Mt(e[M],e[Y])?w:e[S]<0||24<e[S]||24===e[S]&&(0!==e[k]||0!==e[T]||0!==e[b])?S:e[k]<0||59<e[k]?k:e[T]<0||59<e[T]?T:e[b]<0||999<e[b]?b:-1,f(t)._overflowDayOfYear&&(e<M||w<e)&&(e=w),f(t).overflow=e),t}function bt(t){!1===c.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function O(t,e){var n=!0;return A(function(){return n&&(bt(t+"\n"+(new Error).stack),n=!1),e.apply(this,arguments)},e)}var Ot={};c.suppressDeprecationWarnings=!1;var Ut=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Wt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],Ct=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],Gt=/^\/?Date\((\-?\d+)/i;function Ft(t){var e,n,i=t._i,s=Ut.exec(i);if(s){for(f(t).iso=!0,e=0,n=Wt.length;e<n;e++)if(Wt[e][1].exec(i)){t._f=Wt[e][0];break}for(e=0,n=Ct.length;e<n;e++)if(Ct[e][1].exec(i)){t._f+=(s[6]||" ")+Ct[e][0];break}i.match(pt)&&(t._f+="Z"),Nt(t)}else t._isValid=!1}function Pt(t,e,n,i,s,r,o){e=new Date(t,e,n,i,s,r,o);return t<1970&&e.setFullYear(t),e}function xt(t){var e=new Date(Date.UTC.apply(null,arguments));return t<1970&&e.setUTCFullYear(t),e}function Ht(t){return Lt(t)?366:365}function Lt(t){return t%4==0&&t%100!=0||t%400==0}c.createFromInputFallback=O("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),i(0,["YY",2],0,function(){return this.year()%100}),i(0,["YYYY",4],0,"year"),i(0,["YYYYY",5],0,"year"),i(0,["YYYYYY",6,!0],0,"year"),t("year","y"),D("Y",yt),D("YY",d,e),D("YYYY",y,o),D("YYYYY",p,l),D("YYYYYY",p,l),v(["YYYYY","YYYYYY"],M),v("YYYY",function(t,e){e[M]=2===t.length?c.parseTwoDigitYear(t):u(t)}),v("YY",function(t,e){e[M]=c.parseTwoDigitYear(t)});var It=nt("FullYear",!(c.parseTwoDigitYear=function(t){return u(t)+(68<u(t)?1900:2e3)}));function U(t,e,n){var e=n-e,n=n-t.day();return e<n&&(n-=7),n<e-7&&(n+=7),e=W(t).add(n,"d"),{week:Math.ceil(e.dayOfYear()/7),year:e.year()}}i("w",["ww",2],"wo","week"),i("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),D("w",d),D("ww",d,e),D("W",d),D("WW",d,e),vt(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=u(t)});function At(t,e,n){return null!=t?t:null!=e?e:n}function zt(t){var e,n,i,s,r,o,a,u,l,d=[];if(!t._d){for(i=t,l=new Date,n=i._useUTC?[l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()]:[l.getFullYear(),l.getMonth(),l.getDate()],t._w&&null==t._a[w]&&null==t._a[Y]&&(null!=(l=(i=t)._w).GG||null!=l.W||null!=l.E?(a=1,u=4,s=At(l.GG,i._a[M],U(W(),1,4).year),r=At(l.W,1),o=At(l.E,1)):(a=i._locale._week.dow,u=i._locale._week.doy,s=At(l.gg,i._a[M],U(W(),a,u).year),r=At(l.w,1),null!=l.d?(o=l.d)<a&&++r:o=null!=l.e?l.e+a:a),l=function(t,e,n,i,s){var r=xt(t,0,1+(i=6+s-i)).getUTCDay();return r<s&&(r+=7),{year:0<(i=1+i+7*(e-1)-r+(n=null!=n?+n:s))?t:t-1,dayOfYear:0<i?i:Ht(t-1)+i}}(s,r,o,u,a),i._a[M]=l.year,i._dayOfYear=l.dayOfYear),t._dayOfYear&&(s=At(t._a[M],n[M]),t._dayOfYear>Ht(s)&&(f(t)._overflowDayOfYear=!0),r=xt(s,0,t._dayOfYear),t._a[Y]=r.getUTCMonth(),t._a[w]=r.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=d[e]=n[e];for(;e<7;e++)t._a[e]=d[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[S]&&0===t._a[k]&&0===t._a[T]&&0===t._a[b]&&(t._nextDay=!0,t._a[S]=0),t._d=(t._useUTC?xt:Pt).apply(null,d),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[S]=24)}}function Nt(t){if(t._f===c.ISO_8601)Ft(t);else{t._a=[],f(t).empty=!0;for(var e,n,i,s,r,o=""+t._i,a=o.length,u=0,l=ht(t._f,t._locale).match(at)||[],d=0;d<l.length;d++)e=l[d],(r=(o.match((r=t,h(gt,s=e)?gt[s](r._strict,r._locale):new RegExp(s.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,s){return e||n||i||s}).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))))||[])[0])&&(0<(s=o.substr(0,o.indexOf(r))).length&&f(t).unusedInput.push(s),o=o.slice(o.indexOf(r)+r.length),u+=r.length),dt[e]?(r?f(t).empty=!1:f(t).unusedTokens.push(e),s=e,i=t,null!=(n=r)&&h(Dt,s)&&Dt[s](n,i._a,i,s)):t._strict&&!r&&f(t).unusedTokens.push(e);f(t).charsLeftOver=a-u,0<o.length&&f(t).unusedInput.push(o),!0===f(t).bigHour&&t._a[S]<=12&&0<t._a[S]&&(f(t).bigHour=void 0),t._a[S]=function(t,e,n){if(null==n)return e;return null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((t=t.isPM(n))&&e<12&&(e+=12),e=t||12!==e?e:0):e}(t._locale,t._a[S],t._meridiem),zt(t),Tt(t)}}function Zt(t){var e,n,i=t._i,s=t._f;if(t._locale=t._locale||_(t._l),null===i||void 0===s&&""===i)return Z({nullInput:!0});if("string"==typeof i&&(t._i=i=t._locale.preparse(i)),m(i))return new q(Tt(i));if(L(s)){var r,o,a,u,l,d=t;if(0===d._f.length)f(d).invalidFormat=!0,d._d=new Date(NaN);else{for(u=0;u<d._f.length;u++)l=0,r=E({},d),null!=d._useUTC&&(r._useUTC=d._useUTC),r._f=d._f[u],Nt(r),N(r)&&(l=(l+=f(r).charsLeftOver)+10*f(r).unusedTokens.length,f(r).score=l,null==a||l<a)&&(a=l,o=r);A(d,o||r)}}else if(s)Nt(t);else if(I(i))t._d=i;else if(void 0===(i=(s=t)._i))s._d=new Date;else I(i)?s._d=new Date(+i):"string"==typeof i?(n=s,null!==(e=Gt.exec(n._i))?n._d=new Date(+e[1]):(Ft(n),!1===n._isValid&&(delete n._isValid,c.createFromInputFallback(n)))):L(i)?(s._a=function(t,e){for(var n=[],i=0;i<t.length;++i)n.push(e(t[i],i));return n}(i.slice(0),function(t){return parseInt(t,10)}),zt(s)):"object"==typeof i?(e=s)._d||(n=et(e._i),e._a=[n.year,n.month,n.day||n.date,n.hour,n.minute,n.second,n.millisecond],zt(e)):"number"==typeof i?s._d=new Date(i):c.createFromInputFallback(s);return t}function jt(t,e,n,i,s){var r={};return"boolean"==typeof n&&(i=n,n=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=s,r._l=n,r._i=t,r._f=e,r._strict=i,(s=new q(Tt(Zt(s=r))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function W(t,e,n,i){return jt(t,e,n,i,!1)}i("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),D("DDD",mt),D("DDDD",s),v(["DDD","DDDD"],function(t,e,n){n._dayOfYear=u(t)}),c.ISO_8601=function(){};var Et=O("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var t=W.apply(null,arguments);return t<this?this:t}),Vt=O("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var t=W.apply(null,arguments);return this<t?this:t});function qt(t,e){var n,i;if(!(e=1===e.length&&L(e[0])?e[0]:e).length)return W();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}function Jt(t){var t=et(t),e=t.year||0,n=t.quarter||0,i=t.month||0,s=t.week||0,r=t.day||0,o=t.hour||0,a=t.minute||0,u=t.second||0,t=t.millisecond||0;this._milliseconds=+t+1e3*u+6e4*a+36e5*o,this._days=+r+7*s,this._months=+i+3*n+12*e,this._data={},this._locale=_(),this._bubble()}function $t(t){return t instanceof Jt}function Rt(t,n){i(t,0,0,function(){var t=this.utcOffset(),e="+";return t<0&&(t=-t,e="-"),e+ot(~~(t/60),2)+n+ot(~~t%60,2)})}Rt("Z",":"),Rt("ZZ",""),D("Z",pt),D("ZZ",pt),v(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Qt(t)});var Bt=/([\+\-]|\d\d)/gi;function Qt(t){var t=(t||"").match(pt)||[],t=((t[t.length-1]||[])+"").match(Bt)||["-",0,0],e=60*t[1]+u(t[2]);return"+"===t[0]?e:-e}function Xt(t,e){var n;return e._isUTC?(e=e.clone(),n=(m(t)||I(t)?+t:+W(t))-+e,e._d.setTime(+e._d+n),c.updateOffset(e,!1),e):W(t).local()}function Kt(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function te(){return this._isUTC&&0===this._offset}c.updateOffset=function(){};var ee=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,ne=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;function C(t,e){var n,i=t;return $t(t)?i={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(i={},e?i[e]=t:i.milliseconds=t):(e=ee.exec(t))?(n="-"===e[1]?-1:1,i={y:0,d:u(e[w])*n,h:u(e[S])*n,m:u(e[k])*n,s:u(e[T])*n,ms:u(e[b])*n}):(e=ne.exec(t))?(n="-"===e[1]?-1:1,i={y:ie(e[2],n),M:ie(e[3],n),d:ie(e[4],n),h:ie(e[5],n),m:ie(e[6],n),s:ie(e[7],n),w:ie(e[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(e=function(t,e){var n;e=Xt(e,t),t.isBefore(e)?n=se(t,e):((n=se(e,t)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(W(i.from),W(i.to)),(i={}).ms=e.milliseconds,i.M=e.months),n=new Jt(i),$t(t)&&h(t,"_locale")&&(n._locale=t._locale),n}function ie(t,e){t=t&&parseFloat(t.replace(",","."));return(isNaN(t)?0:t)*e}function se(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function re(s,r){return function(t,e){var n,i;return null===e||isNaN(+e)||(i="moment()."+(n=r)+"(period, number) is deprecated. Please use moment()."+r+"(number, period).",Ot[n]||(bt(i),Ot[n]=!0),i=t,t=e,e=i),oe(this,C(t="string"==typeof t?+t:t,e),s),this}}function oe(t,e,n,i){var s=e._milliseconds,r=e._days,e=e._months;i=null==i||i,s&&t._d.setTime(+t._d+s*n),r&&st(t,"Date",it(t,"Date")+r*n),e&&St(t,it(t,"Month")+e*n),i&&c.updateOffset(t,r||e)}C.fn=Jt.prototype;var ae=re(1,"add"),ue=re(-1,"subtract");function le(){var t=this.clone().utc();return 0<t.year()&&t.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():ct(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):ct(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function de(t){return void 0===t?this._locale._abbr:(null!=(t=_(t))&&(this._locale=t),this)}c.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";var ce=O("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function he(){return this._locale}function fe(t,e){i(0,[t,t.length],0,e)}function me(t,e,n){return U(W([t,11,31+e-n]),e,n).week}i(0,["gg",2],0,function(){return this.weekYear()%100}),i(0,["GG",2],0,function(){return this.isoWeekYear()%100}),fe("gggg","weekYear"),fe("ggggg","weekYear"),fe("GGGG","isoWeekYear"),fe("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),D("G",yt),D("g",yt),D("GG",d,e),D("gg",d,e),D("GGGG",y,o),D("gggg",y,o),D("GGGGG",p,l),D("ggggg",p,l),vt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=u(t)}),vt(["gg","GG"],function(t,e,n,i){e[i]=c.parseTwoDigitYear(t)}),i("Q",0,0,"quarter"),t("quarter","Q"),D("Q",ft),v("Q",function(t,e){e[Y]=3*(u(t)-1)}),i("D",["DD",2],"Do","date"),t("date","D"),D("D",d),D("DD",d,e),D("Do",function(t,e){return t?e._ordinalParse:e._ordinalParseLenient}),v(["D","DD"],w),v("Do",function(t,e){e[w]=u(t.match(d)[0])});y=nt("Date",!0);i("d",0,"do","day"),i("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),i("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),i("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),i("e",0,0,"weekday"),i("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),D("d",d),D("e",d),D("E",d),D("dd",g),D("ddd",g),D("dddd",g),vt(["dd","ddd","dddd"],function(t,e,n){var i=n._locale.weekdaysParse(t);null!=i?e.d=i:f(n).invalidWeekday=t}),vt(["d","e","E"],function(t,e,n,i){e[i]=u(t)});o="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");p="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");l="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function _e(t,e){i(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function ye(t,e){return e._meridiemParse}i("H",["HH",2],0,"hour"),i("h",["hh",2],0,function(){return this.hours()%12||12}),_e("a",!0),_e("A",!1),t("hour","h"),D("a",ye),D("A",ye),D("H",d),D("h",d),D("HH",d,e),D("hh",d,e),v(["H","HH"],S),v(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),v(["h","hh"],function(t,e,n){e[S]=u(t),f(n).bigHour=!0});var G,g=nt("Hours",!0),pe=(i("m",["mm",2],0,"minute"),t("minute","m"),D("m",d),D("mm",d,e),v(["m","mm"],k),nt("Minutes",!1)),ge=(i("s",["ss",2],0,"second"),t("second","s"),D("s",d),D("ss",d,e),v(["s","ss"],T),nt("Seconds",!1));for(i("S",0,0,function(){return~~(this.millisecond()/100)}),i(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),i(0,["SSS",3],0,"millisecond"),i(0,["SSSS",4],0,function(){return 10*this.millisecond()}),i(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),i(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),i(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),i(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),i(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),t("millisecond","ms"),D("S",mt,ft),D("SS",mt,e),D("SSS",mt,s),G="SSSS";G.length<=9;G+="S")D(G,_t);function De(t,e){e[b]=u(1e3*("0."+t))}for(G="S";G.length<=9;G+="S")v(G,De);ft=nt("Milliseconds",!1);i("z",0,0,"zoneAbbr"),i("zz",0,0,"zoneName");e=q.prototype,e.add=ae,e.calendar=function(t,e){var n=Xt(t=t||W(),this).startOf("day"),n=(n=this.diff(n,"days",!0))<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse";return this.format(e&&e[n]||this.localeData().calendar(n,this,W(t)))},e.clone=function(){return new q(this)},e.diff=function(t,e,n){var i,s=6e4*((t=Xt(t,this)).utcOffset()-this.utcOffset());return"year"===(e=r(e))||"month"===e||"quarter"===e?(i=function(t,e){var n,i=12*(e.year()-t.year())+(e.month()-t.month()),s=t.clone().add(i,"months");t=e-s<0?(n=t.clone().add(i-1,"months"),(e-s)/(s-n)):(n=t.clone().add(1+i,"months"),(e-s)/(n-s));return-(i+t)}(this,t),"quarter"===e?i/=3:"year"===e&&(i/=12)):(t=this-t,i="second"===e?t/1e3:"minute"===e?t/6e4:"hour"===e?t/36e5:"day"===e?(t-s)/864e5:"week"===e?(t-s)/6048e5:t),n?i:a(i)},e.endOf=function(t){return void 0===(t=r(t))||"millisecond"===t?this:this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms")},e.format=function(t){return t=ct(this,t||c.defaultFormat),this.localeData().postformat(t)},e.from=function(t,e){return this.isValid()?C({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},e.fromNow=function(t){return this.from(W(),t)},e.to=function(t,e){return this.isValid()?C({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},e.toNow=function(t){return this.to(W(),t)},e.get=rt,e.invalidAt=function(){return f(this).overflow},e.isAfter=function(t,e){return"millisecond"===(e=r(void 0!==e?e:"millisecond"))?+(t=m(t)?t:W(t))<+this:(m(t)?+t:+W(t))<+this.clone().startOf(e)},e.isBefore=function(t,e){return"millisecond"===(e=r(void 0!==e?e:"millisecond"))?+this<+(t=m(t)?t:W(t)):(t=m(t)?+t:+W(t),+this.clone().endOf(e)<t)},e.isBetween=function(t,e,n){return this.isAfter(t,n)&&this.isBefore(e,n)},e.isSame=function(t,e){return"millisecond"===(e=r(e||"millisecond"))?+this==+(t=m(t)?t:W(t)):(t=+W(t),+this.clone().startOf(e)<=t&&t<=+this.clone().endOf(e))},e.isValid=function(){return N(this)},e.lang=ce,e.locale=de,e.localeData=he,e.max=Vt,e.min=Et,e.parsingFlags=function(){return A({},f(this))},e.set=rt,e.startOf=function(t){switch(t=r(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this},e.subtract=ue,e.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},e.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},e.toDate=function(){return this._offset?new Date(+this):this._d},e.toISOString=le,e.toJSON=le,e.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},e.unix=function(){return Math.floor(+this/1e3)},e.valueOf=function(){return+this._d-6e4*(this._offset||0)},e.year=It,e.isLeapYear=function(){return Lt(this.year())},e.weekYear=function(t){var e=U(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==t?e:this.add(t-e,"y")},e.isoWeekYear=function(t){var e=U(this,1,4).year;return null==t?e:this.add(t-e,"y")},e.quarter=e.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},e.month=kt,e.daysInMonth=function(){return Mt(this.year(),this.month())},e.week=e.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},e.isoWeek=e.isoWeeks=function(t){var e=U(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},e.weeksInYear=function(){var t=this.localeData()._week;return me(this.year(),t.dow,t.doy)},e.isoWeeksInYear=function(){return me(this.year(),1,4)},e.date=y,e.day=e.days=function(t){var e,n,i=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(e=t,n=this.localeData(),t="string"!=typeof e?e:isNaN(e)?"number"==typeof(e=n.weekdaysParse(e))?e:null:parseInt(e,10),this.add(t-i,"d")):i},e.weekday=function(t){var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},e.isoWeekday=function(t){return null==t?this.day()||7:this.day(this.day()%7?t:t-7)},e.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},e.hour=e.hours=g,e.minute=e.minutes=pe,e.second=e.seconds=ge,e.millisecond=e.milliseconds=ft,e.utcOffset=function(t,e){var n,i=this._offset||0;return null!=t?("string"==typeof t&&(t=Qt(t)),Math.abs(t)<16&&(t*=60),!this._isUTC&&e&&(n=Kt(this)),this._offset=t,this._isUTC=!0,null!=n&&this.add(n,"m"),i!==t&&(!e||this._changeInProgress?oe(this,C(t-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,c.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?i:Kt(this)},e.utc=function(t){return this.utcOffset(0,t)},e.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t)&&this.subtract(Kt(this),"m"),this},e.parseZone=function(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(Qt(this._i)),this},e.hasAlignedHourOffset=function(t){return t=t?W(t).utcOffset():0,(this.utcOffset()-t)%60==0},e.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},e.isDSTShifted=function(){var t,e;return void 0===this._isDSTShifted&&(E(t={},this),(t=Zt(t))._a?(e=(t._isUTC?z:W)(t._a),this._isDSTShifted=this.isValid()&&0<J(t._a,e.toArray())):this._isDSTShifted=!1),this._isDSTShifted},e.isLocal=function(){return!this._isUTC},e.isUtcOffset=function(){return this._isUTC},e.isUtc=te,e.isUTC=te,e.zoneAbbr=function(){return this._isUTC?"UTC":""},e.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},e.dates=O("dates accessor is deprecated. Use date instead.",y),e.months=O("months accessor is deprecated. Use month instead",kt),e.years=O("years accessor is deprecated. Use year instead",It),e.zone=O("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",function(t,e){return null!=t?(this.utcOffset(t="string"!=typeof t?-t:t,e),this):-this.utcOffset()}),mt=e;function ve(t){return t}s=$.prototype;function Me(t,e,n,i){var s=_(),i=z().set(i,e);return s[n](i,t)}function Ye(t,e,n,i,s){if("number"==typeof t&&(e=t,t=void 0),t=t||"",null!=e)return Me(t,e,n,s);for(var r=[],o=0;o<i;o++)r[o]=Me(t,o,n,s);return r}s._calendar={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},s.calendar=function(t,e,n){return"function"==typeof(t=this._calendar[t])?t.call(e,n):t},s._longDateFormat={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},s.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},s._invalidDate="Invalid date",s.invalidDate=function(){return this._invalidDate},s._ordinal="%d",s.ordinal=function(t){return this._ordinal.replace("%d",t)},s._ordinalParse=/\d{1,2}/,s.preparse=ve,s.postformat=ve,s._relativeTime={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},s.relativeTime=function(t,e,n,i){var s=this._relativeTime[n];return"function"==typeof s?s(t,e,n,i):s.replace(/%d/i,t)},s.pastFuture=function(t,e){return"function"==typeof(t=this._relativeTime[0<t?"future":"past"])?t(e):t.replace(/%s/i,e)},s.set=function(t){var e,n;for(n in t)"function"==typeof(e=t[n])?this[n]=e:this["_"+n]=e;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},s.months=function(t){return this._months[t.month()]},s._months=Yt,s.monthsShort=function(t){return this._monthsShort[t.month()]},s._monthsShort=wt,s.monthsParse=function(t,e,n){var i,s;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(s=z([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(s="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[i]=new RegExp(s.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},s.week=function(t){return U(t,this._week.dow,this._week.doy).week},s._week={dow:0,doy:6},s.firstDayOfYear=function(){return this._week.doy},s.firstDayOfWeek=function(){return this._week.dow},s.weekdays=function(t){return this._weekdays[t.day()]},s._weekdays=o,s.weekdaysMin=function(t){return this._weekdaysMin[t.day()]},s._weekdaysMin=l,s.weekdaysShort=function(t){return this._weekdaysShort[t.day()]},s._weekdaysShort=p,s.weekdaysParse=function(t){var e,n;for(this._weekdaysParse=this._weekdaysParse||[],e=0;e<7;e++)if(this._weekdaysParse[e]||(n=W([2e3,1]).day(e),n="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[e]=new RegExp(n.replace(".",""),"i")),this._weekdaysParse[e].test(t))return e},s.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},s._meridiemParse=/[ap]\.?m?\.?/i,s.meridiem=function(t,e,n){return 11<t?n?"pm":"PM":n?"am":"AM"},X("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===u(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th")}}),c.lang=O("moment.lang is deprecated. Use moment.locale instead.",X),c.langData=O("moment.langData is deprecated. Use moment.localeData instead.",_);var F=Math.abs;function we(t,e,n,i){e=C(e,n);return t._milliseconds+=i*e._milliseconds,t._days+=i*e._days,t._months+=i*e._months,t._bubble()}function Se(t){return t<0?Math.floor(t):Math.ceil(t)}function ke(t){return 4800*t/146097}function Te(t){return 146097*t/4800}function P(t){return function(){return this.as(t)}}ae=P("ms"),Vt=P("s"),Et=P("m"),ue=P("h"),g=P("d"),pe=P("w"),ge=P("M"),ft=P("y");function be(t){return function(){return this._data[t]}}y=be("milliseconds"),It=be("seconds"),e=be("minutes"),Yt=be("hours"),wt=be("days"),o=be("months"),l=be("years");var Oe=Math.round,x={s:45,m:45,h:22,d:26,M:11};function Ue(t,e,n){var i=C(t).abs(),s=Oe(i.as("s")),r=Oe(i.as("m")),o=Oe(i.as("h")),a=Oe(i.as("d")),u=Oe(i.as("M")),i=Oe(i.as("y")),s=(s<x.s?["s",s]:1===r&&["m"])||(r<x.m?["mm",r]:1===o&&["h"])||(o<x.h?["hh",o]:1===a&&["d"])||(a<x.d?["dd",a]:1===u&&["M"])||(u<x.M?["MM",u]:1===i&&["y"])||["yy",i];return s[2]=e,s[3]=0<+t,s[4]=n,function(t,e,n,i,s){return s.relativeTime(e||1,!!n,t,i)}.apply(null,s)}var We=Math.abs;function Ce(){var t=We(this._milliseconds)/1e3,e=We(this._days),n=We(this._months),i=a(t/60),s=a(i/60),r=(t%=60,i%=60,a(n/12)),n=n%=12,o=this.asSeconds();return o?(o<0?"-":"")+"P"+(r?r+"Y":"")+(n?n+"M":"")+(e?e+"D":"")+(s||i||t?"T":"")+(s?s+"H":"")+(i?i+"M":"")+(t?t+"S":""):"P0D"}p=Jt.prototype;return p.abs=function(){var t=this._data;return this._milliseconds=F(this._milliseconds),this._days=F(this._days),this._months=F(this._months),t.milliseconds=F(t.milliseconds),t.seconds=F(t.seconds),t.minutes=F(t.minutes),t.hours=F(t.hours),t.months=F(t.months),t.years=F(t.years),this},p.add=function(t,e){return we(this,t,e,1)},p.subtract=function(t,e){return we(this,t,e,-1)},p.as=function(t){var e,n,i=this._milliseconds;if("month"===(t=r(t))||"year"===t)return e=this._days+i/864e5,n=this._months+ke(e),"month"===t?n:n/12;switch(e=this._days+Math.round(Te(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},p.asMilliseconds=ae,p.asSeconds=Vt,p.asMinutes=Et,p.asHours=ue,p.asDays=g,p.asWeeks=pe,p.asMonths=ge,p.asYears=ft,p.valueOf=function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*u(this._months/12)},p._bubble=function(){var t=this._milliseconds,e=this._days,n=this._months,i=this._data;return 0<=t&&0<=e&&0<=n||t<=0&&e<=0&&n<=0||(t+=864e5*Se(Te(n)+e),n=e=0),i.milliseconds=t%1e3,t=a(t/1e3),i.seconds=t%60,t=a(t/60),i.minutes=t%60,t=a(t/60),i.hours=t%24,e+=a(t/24),n+=t=a(ke(e)),e-=Se(Te(t)),t=a(n/12),n%=12,i.days=e,i.months=n,i.years=t,this},p.get=function(t){return this[(t=r(t))+"s"]()},p.milliseconds=y,p.seconds=It,p.minutes=e,p.hours=Yt,p.days=wt,p.weeks=function(){return a(this.days()/7)},p.months=o,p.years=l,p.humanize=function(t){var e=this.localeData(),n=Ue(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)},p.toISOString=Ce,p.toString=Ce,p.toJSON=Ce,p.locale=de,p.localeData=he,p.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ce),p.lang=ce,i("X",0,0,"unix"),i("x",0,0,"valueOf"),D("x",yt),D("X",/[+-]?\d+(\.\d{1,3})?/),v("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),v("x",function(t,e,n){n._d=new Date(u(t))}),c.version="2.10.6",H=W,c.fn=mt,c.min=function(){return qt("isBefore",[].slice.call(arguments,0))},c.max=function(){return qt("isAfter",[].slice.call(arguments,0))},c.utc=z,c.unix=function(t){return W(1e3*t)},c.months=function(t,e){return Ye(t,e,"months",12,"month")},c.isDate=I,c.locale=X,c.invalid=Z,c.duration=C,c.isMoment=m,c.weekdays=function(t,e){return Ye(t,e,"weekdays",7,"day")},c.parseZone=function(){return W.apply(null,arguments).parseZone()},c.localeData=_,c.isDuration=$t,c.monthsShort=function(t,e){return Ye(t,e,"monthsShort",12,"month")},c.weekdaysMin=function(t,e){return Ye(t,e,"weekdaysMin",7,"day")},c.defineLocale=K,c.weekdaysShort=function(t,e){return Ye(t,e,"weekdaysShort",7,"day")},c.normalizeUnits=r,c.relativeTimeThreshold=function(t,e){return void 0!==x[t]&&(void 0===e?x[t]:(x[t]=e,!0))},c});
!function(e,a,t,n,g,c){e.GoogleAnalyticsObject=n,e.ga=e.ga||function(){(e.ga.q=e.ga.q||[]).push(arguments)},e.ga.l=+new Date,g=a.createElement(t),c=a.getElementsByTagName(t)[0],g.async=1,g.src="//www.google-analytics.com/analytics.js",c.parentNode.insertBefore(g,c)}(window,document,"script","ga"),ga("create","UA-265870-35","firstpr.me"),ga("send","pageview");
function getLogin(){return window.location.hash.slice(1)}var missingTemplate=$("#missing-template").html(),foundTemplate=$("#found-template").html(),errorTemplate=$("#error-template").html(),requestErrorTemplate=$("#request-error-template").html(),main=$("#main");function render(e,t){main.html(Mustache.render(e,t)),emojify.run($("#title")[0])}function loadData(e,t){e&&(ga("send","event","login","search",e),$.getJSON('https://api.github.com/search/issues?q=type:pr+author:"'+e+'"+-user:"'+e+'"&sort=created&order=asc&per_page=1',function(e){0<e.items.length?$.getJSON(e.items[0].pull_request.url,function(e){t(e)}).error(function(){render(requestErrorTemplate),flappyBoard()}):t(null)}).error(function(){render(errorTemplate,{login:e}),flappyBoard()}))}function renderData(e){e?(render(foundTemplate,e),"undefined"!=typeof twttr&&twttr.widgets.load(),$(".moment-date").each(function(e,t){var t=$(t),r=moment(t.attr("datetime"));t.attr("title",t.text()+" on "+r.format("MMMM Do YYYY, h:mm a")),t.hasClass("sent")&&(t.attr("title",r.format("MMMM Do YYYY, h:mm a")),t.text(r.fromNow()))})):render(missingTemplate,{login:getLogin()}),flappyBoard()}function flappyBoard(){$("#login").val(getLogin()).blur(),imagesLoaded(".result",function(){$(".result").removeClass("hidden").addClass("expanded"),setTimeout(function(){$(".spinner").addClass("hide")},500)})}Mustache.parse(foundTemplate),Mustache.parse(errorTemplate),Mustache.parse(requestErrorTemplate),Mustache.parse(missingTemplate),$(function(){$(window).on("hashchange",function(){loadData(getLogin(),renderData)}),$("#user-form").submit(function(){return $(".spinner").removeClass("hide"),window.location.hash="",window.location.hash=$("#login")[0].value.trim(),!1}),loadData(getLogin(),renderData)});