!function(e,t){sumo.define("plugins/css",[],function(){if("undefined"==typeof window)return{load:function(e,t,r){r()}};var e=document.getElementsByTagName("head")[0],t=window.navigator.userAgent.match(/Trident\/([^ ;]*)|AppleWebKit\/([^ ;]*)|Opera\/([^ ;]*)|rv\:([^ ;]*)(.*?)Gecko\/([^ ;]*)|MSIE\s([^ ;]*)/)||0,r=!1,i=!0;t[1]||t[7]?r=parseInt(t[1])<6||parseInt(t[7])<=9:t[2]?i=!1:t[4]&&(r=parseInt(t[4])<18);var n={};n.pluginBuilder="./css-builder";var a,s=function(){a=document.createElement("style"),e.appendChild(a)},o=function(e,t){s();var r=a.styleSheet||a.sheet;if(r&&r.addImport)r.addImport(e),a.onload=t;else{a.textContent='@import "'+e+'";';var i=setInterval(function(){try{a.sheet.cssRules,clearInterval(i),t()}catch(e){}},10)}},l=function(t,r){var n=document.createElement("link");if(n.type="text/css",n.rel="stylesheet",i)n.onload=function(){n.onload=function(){},setTimeout(r,7)};else var a=setInterval(function(){for(var e=0;e/im,r=/]*>\s*([\s\S]+)\s*<\/body>/im,i="undefined"!=typeof location&&location.href,n=i&&location.protocol&&location.protocol.replace(/\:/,""),a=i&&location.hostname,s=i&&(location.port||void 0),o=[];sumo.define("plugins/text",[],function(){var l,h,u;return"undefined"!=typeof window&&window.navigator&&window.document?h=function(e,t){var r=l.createXhr();r.open("GET",e,!0),r.onreadystatechange=function(){4===r.readyState&&t(r.responseText)},r.send(null)}:"undefined"!=typeof process&&process.versions&&process.versions.node?(u=require.nodeRequire("fs"),h=function(e,t){t(u.readFileSync(e,"utf8"))}):"undefined"!=typeof Packages&&(h=function(e,t){var r=new java.io.File(e),i=java.lang.System.getProperty("line.separator"),r=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(r),"utf-8")),n,a,s="";try{for(n=new java.lang.StringBuffer,(a=r.readLine())&&a.length()&&65279===a.charAt(0)&&(a=a.substring(1)),n.append(a);null!==(a=r.readLine());)n.append(i),n.append(a);s=String(n.toString())}finally{r.close()}t(s)}),l={version:"1.0.2",strip:function(e){if(e){var e=e.replace(t,""),i=e.match(r);i&&(e=i[1])}else e="";return e},jsEscape:function(e){return e.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")},createXhr:function(){var t,r,i;if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;for(r=0;3>r;r++){i=e[r];try{t=new ActiveXObject(i)}catch(n){}if(t){e=[i];break}}if(!t)throw Error("createXhr(): XMLHttpRequest not available");return t},get:h,parseName:function(e){var t=!1,r=e.indexOf("."),i=e.substring(0,r),e=e.substring(r+1,e.length),r=e.indexOf("!");return-1!==r&&(t=e.substring(r+1,e.length),t="strip"===t,e=e.substring(0,r)),{moduleName:i,ext:e,strip:t}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(e,t,r,i){var n=l.xdRegExp.exec(e),a;return n?(e=n[2],n=n[3],n=n.split(":"),a=n[1],n=n[0],!(e&&e!==t||n&&n!==r||(a||n)&&a!==i)):!0},finishLoad:function(e,t,r,i,n){r=t?l.strip(r):r,n.isBuild&&(o[e]=r),i(r)},load:function(e,t,r,o){if(o.isBuild&&!o.inlineText)r();else{var h=l.parseName(e),u=h.moduleName+"."+h.ext,c=t.toUrl(u),d=o&&o.text&&o.text.useXhr||l.useXhr;!i||d(c,n,a,s)?l.get(c,function(t){l.finishLoad(e,h.strip,t,r,o)}):t([u],function(e){l.finishLoad(h.moduleName+"."+h.ext,h.strip,e,r,o)})}},write:function(e,t,r){if(t in o){var i=l.jsEscape(o[t]);r.asModule(e+"!"+t,"define(function () { return '"+i+"';});\n")}},writeFile:function(e,t,r,i,n){var t=l.parseName(t),a=t.moduleName+"."+t.ext,s=r.toUrl(t.moduleName+"."+t.ext)+".js";l.load(a,r,function(){var t=function(e){return i(s,e)};t.asModule=function(e,t){return i.asModule(e,s,t)},l.write(e,a,t,n)},n)}}})}(),sumo.define("plugins/text!331c6750-848e-4469-b1bb-bfbb4fa4cd99/templates/highlighter.html",[],function(){return'\n'}),sumo.define("plugins/text!331c6750-848e-4469-b1bb-bfbb4fa4cd99/templates/highlighter_mobile.html",[],function(){return'\n'}),sumo.define("twitter-text",[],function(){function e(e,t){return t=t||"","string"!=typeof e&&(e.global&&t.indexOf("g")<0&&(t+="g"),e.ignoreCase&&t.indexOf("i")<0&&(t+="i"),e.multiline&&t.indexOf("m")<0&&(t+="m"),e=e.source),new RegExp(e.replace(/#\{(\w+)\}/g,function(e,t){var i=r.txt.regexen[t]||"";return"string"!=typeof i&&(i=i.source),i}),t)}function t(e,t){return e.replace(/#\{(\w+)\}/g,function(e,r){return t[r]||""})}var r={};return r.txt={},r.txt.regexen={},r.txt.regexSupplant=e,r.txt.stringSupplant=t,r.txt.regexen.spaces_group=/\x09-\x0D\x20\x85\xA0\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000/,r.txt.regexen.invalid_chars_group=/\uFFFE\uFEFF\uFFFF\u202A-\u202E/,r.txt.regexen.punct=/\!'#%&'\(\)*\+,\\\-\.\/:;<=>\?@\[\]\^_{|}~\$/,r.txt.regexen.non_bmp_code_pairs=/[\uD800-\uDBFF][\uDC00-\uDFFF]/gm,r.txt.regexen.latinAccentChars=/\xC0-\xD6\xD8-\xF6\xF8-\xFF\u0100-\u024F\u0253\u0254\u0256\u0257\u0259\u025B\u0263\u0268\u026F\u0272\u0289\u028B\u02BB\u0300-\u036F\u1E00-\u1EFF/,r.txt.regexen.validUrlPrecedingChars=e(/(?:[^A-Za-z0-9@@$###{invalid_chars_group}]|^)/),r.txt.regexen.invalidUrlWithoutProtocolPrecedingChars=/[-_.\/]$/,r.txt.regexen.invalidDomainChars=t("#{punct}#{spaces_group}#{invalid_chars_group}",r.txt.regexen),r.txt.regexen.validDomainChars=e(/[^#{invalidDomainChars}]/),r.txt.regexen.validSubdomain=e(/(?:(?:#{validDomainChars}(?:[_-]|#{validDomainChars})*)?#{validDomainChars}\.)/),r.txt.regexen.validDomainName=e(/(?:(?:#{validDomainChars}(?:-|#{validDomainChars})*)?#{validDomainChars}\.)/),r.txt.regexen.validGTLD=e(RegExp("(?:(?:삼성|닷컴|닷넷|香格里拉|餐厅|食品|飞利浦|電訊盈科|集团|通販|购物|谷歌|诺基亚|联通|网络|网站|网店|网址|组织机构|移动|珠宝|点看|游戏|淡马锡|机构|書籍|时尚|新闻|政府|政务|手表|手机|我爱你|慈善|微博|广东|工行|家電|娱乐|天主教|大拿|大众汽车|在线|嘉里大酒店|嘉里|商标|商店|商城|公益|公司|八卦|健康|信息|佛山|企业|中文网|中信|世界|ポイント|ファッション|セール|ストア|コム|グーグル|クラウド|みんな|คอม|संगठन|नेट|कॉम|همراه|موقع|موبايلي|كوم|كاثوليك|شبكة|بيتك|بازار|العليان|ارامكو|ابوظبي|קום|сайт|рус|орг|онлайн|москва|ком|католик|дети|zuerich|zone|zippo|zip|zero|zara|zappos|yun|youtube|you|yokohama|yoga|yodobashi|yandex|yamaxun|yahoo|yachts|xyz|xxx|xperia|xin|xihuan|xfinity|xerox|xbox|wtf|wtc|wow|world|works|work|woodside|wolterskluwer|wme|winners|wine|windows|win|williamhill|wiki|wien|whoswho|weir|weibo|wedding|wed|website|weber|webcam|weatherchannel|weather|watches|watch|warman|wanggou|wang|walter|walmart|wales|vuelos|voyage|voto|voting|vote|volvo|volkswagen|vodka|vlaanderen|vivo|viva|vistaprint|vista|vision|visa|virgin|vip|vin|villas|viking|vig|video|viajes|vet|versicherung|vermögensberatung|vermögensberater|verisign|ventures|vegas|vanguard|vana|vacations|ups|uol|uno|university|unicom|uconnect|ubs|ubank|tvs|tushu|tunes|tui|tube|trv|trust|travelersinsurance|travelers|travelchannel|travel|training|trading|trade|toys|toyota|town|tours|total|toshiba|toray|top|tools|tokyo|today|tmall|tkmaxx|tjx|tjmaxx|tirol|tires|tips|tiffany|tienda|tickets|tiaa|theatre|theater|thd|teva|tennis|temasek|telefonica|telecity|tel|technology|tech|team|tdk|tci|taxi|tax|tattoo|tatar|tatamotors|target|taobao|talk|taipei|tab|systems|symantec|sydney|swiss|swiftcover|swatch|suzuki|surgery|surf|support|supply|supplies|sucks|style|study|studio|stream|store|storage|stockholm|stcgroup|stc|statoil|statefarm|statebank|starhub|star|staples|stada|srt|srl|spreadbetting|spot|spiegel|space|soy|sony|song|solutions|solar|sohu|software|softbank|social|soccer|sncf|smile|smart|sling|skype|sky|skin|ski|site|singles|sina|silk|shriram|showtime|show|shouji|shopping|shop|shoes|shiksha|shia|shell|shaw|sharp|shangrila|sfr|sexy|sex|sew|seven|ses|services|sener|select|seek|security|secure|seat|scot|scor|scjohnson|science|schwarz|schule|school|scholarships|schmidt|schaeffler|scb|sca|sbs|sbi|saxo|save|sas|sarl|sapo|sap|sanofi|sandvikcoromant|sandvik|samsung|samsclub|salon|sale|sakura|safety|safe|saarland|ryukyu|rwe|run|ruhr|rsvp|room|rogers|rodeo|rocks|rocher|rmit|rip|rio|ril|rightathome|ricoh|richardli|rich|rexroth|reviews|review|restaurant|rest|republican|report|repair|rentals|rent|ren|reliance|reit|reisen|reise|rehab|redumbrella|redstone|red|recipes|realty|realtor|realestate|read|raid|radio|racing|qvc|quest|quebec|qpon|pwc|pub|prudential|pru|protection|property|properties|promo|progressive|prof|productions|prod|pro|prime|press|praxi|pramerica|post|porn|politie|poker|pohl|pnc|plus|plumbing|playstation|play|place|pizza|pioneer|pink|ping|pin|pid|pictures|pictet|pics|piaget|physio|photos|photography|photo|phone|philips|pharmacy|pfizer|pet|pccw|pay|passagens|party|parts|partners|pars|paris|panerai|panasonic|pamperedchef|page|ovh|ott|otsuka|osaka|origins|orientexpress|organic|org|orange|oracle|open|ooo|onyourside|online|onl|ong|one|omega|ollo|oldnavy|olayangroup|olayan|okinawa|office|off|observer|obi|nyc|ntt|nrw|nra|nowtv|nowruz|now|norton|northwesternmutual|nokia|nissay|nissan|ninja|nikon|nike|nico|nhk|ngo|nfl|nexus|nextdirect|next|news|newholland|new|neustar|network|netflix|netbank|net|nec|nba|navy|natura|nationwide|name|nagoya|nadex|nab|mutuelle|mutual|museum|mtr|mtpc|mtn|msd|movistar|movie|mov|motorcycles|moto|moscow|mortgage|mormon|mopar|montblanc|monster|money|monash|mom|moi|moe|moda|mobily|mobile|mobi|mma|mls|mlb|mitsubishi|mit|mint|mini|mil|microsoft|miami|metlife|meo|menu|men|memorial|meme|melbourne|meet|media|med|mckinsey|mcdonalds|mcd|mba|mattel|maserati|marshalls|marriott|markets|marketing|market|mango|management|man|makeup|maison|maif|madrid|macys|luxury|luxe|lupin|lundbeck|ltda|ltd|lplfinancial|lpl|love|lotto|lotte|london|lol|loft|locus|locker|loans|loan|lixil|living|live|lipsy|link|linde|lincoln|limo|limited|lilly|like|lighting|lifestyle|lifeinsurance|life|lidl|liaison|lgbt|lexus|lego|legal|lefrak|leclerc|lease|lds|lawyer|law|latrobe|latino|lat|lasalle|lanxess|landrover|land|lancome|lancia|lancaster|lamer|lamborghini|ladbrokes|lacaixa|kyoto|kuokgroup|kred|krd|kpn|kpmg|kosher|komatsu|koeln|kiwi|kitchen|kindle|kinder|kim|kia|kfh|kerryproperties|kerrylogistics|kerryhotels|kddi|kaufen|juniper|juegos|jprs|jpmorgan|joy|jot|joburg|jobs|jnj|jmp|jll|jlc|jio|jewelry|jetzt|jeep|jcp|jcb|java|jaguar|iwc|iveco|itv|itau|istanbul|ist|ismaili|iselect|irish|ipiranga|investments|intuit|international|intel|int|insure|insurance|institute|ink|ing|info|infiniti|industries|immobilien|immo|imdb|imamat|ikano|iinet|ifm|ieee|icu|ice|icbc|ibm|hyundai|hyatt|hughes|htc|hsbc|how|house|hotmail|hoteles|hot|hosting|host|hospital|horse|honeywell|honda|homesense|homes|homegoods|homedepot|holiday|holdings|hockey|hkt|hiv|hitachi|hisamitsu|hiphop|hgtv|hermes|here|helsinki|help|healthcare|health|hdfcbank|hdfc|hbo|haus|hangout|hamburg|hair|guru|guitars|guide|guge|gucci|guardian|group|gripe|green|gratis|graphics|grainger|gov|got|gop|google|goog|goodyear|goodhands|goo|golf|goldpoint|gold|godaddy|gmx|gmo|gmbh|gmail|globo|global|gle|glass|glade|giving|gives|gifts|gift|ggee|george|genting|gent|gea|gdn|gbiz|garden|gap|games|game|gallup|gallo|gallery|gal|fyi|futbol|furniture|fund|fun|fujixerox|fujitsu|ftr|frontier|frontdoor|frogans|frl|fresenius|free|fox|foundation|forum|forsale|forex|ford|football|foodnetwork|food|foo|fly|flsmidth|flowers|florist|flir|flights|flickr|fitness|fit|fishing|fish|firmdale|firestone|fire|financial|finance|final|film|fido|fidelity|fiat|ferrero|ferrari|feedback|fedex|fast|fashion|farmers|farm|fans|fan|family|faith|fairwinds|fail|fage|extraspace|express|exposed|expert|exchange|everbank|events|eus|eurovision|esurance|estate|esq|erni|ericsson|equipment|epson|epost|enterprises|engineering|engineer|energy|emerck|email|education|edu|edeka|eco|eat|earth|dvr|dvag|durban|dupont|duns|dunlop|duck|dubai|dtv|drive|download|dot|doosan|domains|doha|dog|dodge|doctor|docs|dnp|diy|dish|discover|discount|directory|direct|digital|diet|diamonds|dhl|dev|design|desi|dentist|dental|democrat|delta|deloitte|dell|delivery|degree|deals|dealer|deal|dds|dclk|day|datsun|dating|date|data|dance|dad|dabur|cyou|cymru|cuisinella|csc|cruises|cruise|crs|crown|cricket|creditunion|creditcard|credit|courses|coupons|coupon|country|corsica|coop|cool|cookingchannel|cooking|contractors|contact|consulting|construction|condos|comsec|computer|compare|company|community|commbank|comcast|com|cologne|college|coffee|codes|coach|clubmed|club|cloud|clothing|clinique|clinic|click|cleaning|claims|cityeats|city|citic|citi|citadel|cisco|circle|cipriani|church|chrysler|chrome|christmas|chloe|chintai|cheap|chat|chase|channel|chanel|cfd|cfa|cern|ceo|center|ceb|cbs|cbre|cbn|cba|catholic|catering|cat|casino|cash|caseih|case|casa|cartier|cars|careers|career|care|cards|caravan|car|capitalone|capital|capetown|canon|cancerresearch|camp|camera|cam|calvinklein|call|cal|cafe|cab|bzh|buzz|buy|business|builders|build|bugatti|budapest|brussels|brother|broker|broadway|bridgestone|bradesco|box|boutique|bot|boston|bostik|bosch|boots|booking|book|boo|bond|bom|bofa|boehringer|boats|bnpparibas|bnl|bmw|bms|blue|bloomberg|blog|blockbuster|blanco|blackfriday|black|biz|bio|bingo|bing|bike|bid|bible|bharti|bet|bestbuy|best|berlin|bentley|beer|beauty|beats|bcn|bcg|bbva|bbt|bbc|bayern|bauhaus|basketball|baseball|bargains|barefoot|barclays|barclaycard|barcelona|bar|bank|band|bananarepublic|banamex|baidu|baby|azure|axa|aws|avianca|autos|auto|author|auspost|audio|audible|audi|auction|attorney|athleta|associates|asia|asda|arte|art|arpa|army|archi|aramco|aquarelle|apple|app|apartments|aol|anz|anquan|android|analytics|amsterdam|amica|amfam|amex|americanfamily|americanexpress|alstom|alsace|ally|allstate|allfinanz|alipay|alibaba|alfaromeo|akdn|airtel|airforce|airbus|aigo|aig|agency|agakhan|afl|afamilycompany|aetna|aero|aeg|adult|ads|adac|actor|active|aco|accountants|accountant|accenture|academy|abudhabi|abogado|able|abc|abbvie|abbott|abb|abarth|aarp|aaa|onion)(?=[^0-9a-zA-Z@]|$))")),r.txt.regexen.validCCTLD=e(RegExp("(?:(?:한국|香港|澳門|新加坡|台灣|台湾|中國|中国|გე|ไทย|ලංකා|ഭാരതം|ಭಾರತ|భారత్|சிங்கப்பூர்|இலங்கை|இந்தியா|ଭାରତ|ભારત|ਭਾਰਤ|ভাৰত|ভারত|বাংলা|भारोत|भारतम्|भारत|ڀارت|پاکستان|مليسيا|مصر|قطر|فلسطين|عمان|عراق|سورية|سودان|تونس|بھارت|بارت|ایران|امارات|المغرب|السعودية|الجزائر|الاردن|հայ|қаз|укр|срб|рф|мон|мкд|ею|бел|бг|ελ|zw|zm|za|yt|ye|ws|wf|vu|vn|vi|vg|ve|vc|va|uz|uy|us|um|uk|ug|ua|tz|tw|tv|tt|tr|tp|to|tn|tm|tl|tk|tj|th|tg|tf|td|tc|sz|sy|sx|sv|su|st|ss|sr|so|sn|sm|sl|sk|sj|si|sh|sg|se|sd|sc|sb|sa|rw|ru|rs|ro|re|qa|py|pw|pt|ps|pr|pn|pm|pl|pk|ph|pg|pf|pe|pa|om|nz|nu|nr|np|no|nl|ni|ng|nf|ne|nc|na|mz|my|mx|mw|mv|mu|mt|ms|mr|mq|mp|mo|mn|mm|ml|mk|mh|mg|mf|me|md|mc|ma|ly|lv|lu|lt|ls|lr|lk|li|lc|lb|la|kz|ky|kw|kr|kp|kn|km|ki|kh|kg|ke|jp|jo|jm|je|it|is|ir|iq|io|in|im|il|ie|id|hu|ht|hr|hn|hm|hk|gy|gw|gu|gt|gs|gr|gq|gp|gn|gm|gl|gi|gh|gg|gf|ge|gd|gb|ga|fr|fo|fm|fk|fj|fi|eu|et|es|er|eh|eg|ee|ec|dz|do|dm|dk|dj|de|cz|cy|cx|cw|cv|cu|cr|co|cn|cm|cl|ck|ci|ch|cg|cf|cd|cc|ca|bz|by|bw|bv|bt|bs|br|bq|bo|bn|bm|bl|bj|bi|bh|bg|bf|be|bd|bb|ba|az|ax|aw|au|at|as|ar|aq|ao|an|am|al|ai|ag|af|ae|ad|ac)(?=[^0-9a-zA-Z@]|$))")),r.txt.regexen.validPunycode=/(?:xn--[0-9a-z]+)/,r.txt.regexen.validSpecialCCTLD=/(?:(?:co|tv)(?=[^0-9a-zA-Z@]|$))/,r.txt.regexen.validDomain=e(/(?:#{validSubdomain}*#{validDomainName}(?:#{validGTLD}|#{validCCTLD}|#{validPunycode}))/),r.txt.regexen.validAsciiDomain=e(/(?:(?:[\-a-z0-9#{latinAccentChars}]+)\.)+(?:#{validGTLD}|#{validCCTLD}|#{validPunycode})/gi),r.txt.regexen.invalidShortDomain=e(/^#{validDomainName}#{validCCTLD}$/i),r.txt.regexen.validSpecialShortDomain=e(/^#{validDomainName}#{validSpecialCCTLD}$/i),r.txt.regexen.validPortNumber=/[0-9]+/,r.txt.regexen.cyrillicLettersAndMarks=/\u0400-\u04FF/,r.txt.regexen.validGeneralUrlPathChars=e(/[a-z#{cyrillicLettersAndMarks}0-9!\*';:=\+,\.\$\/%#\[\]\-_~@\|&#{latinAccentChars}]/i),r.txt.regexen.validUrlBalancedParens=e("\\((?:#{validGeneralUrlPathChars}+|(?:#{validGeneralUrlPathChars}*\\(#{validGeneralUrlPathChars}+\\)#{validGeneralUrlPathChars}*))\\)","i"),r.txt.regexen.validUrlPathEndingChars=e(/[\+\-a-z#{cyrillicLettersAndMarks}0-9=_#\/#{latinAccentChars}]|(?:#{validUrlBalancedParens})/i),r.txt.regexen.validUrlPath=e("(?:(?:#{validGeneralUrlPathChars}*(?:#{validUrlBalancedParens}#{validGeneralUrlPathChars}*)*#{validUrlPathEndingChars})|(?:@#{validGeneralUrlPathChars}+/))","i"),r.txt.regexen.validUrlQueryChars=/[a-z0-9!?\*'@\(\);:&=\+\$\/%#\[\]\-_\.,~|]/i,r.txt.regexen.validUrlQueryEndingChars=/[a-z0-9_&=#\/]/i,r.txt.regexen.extractUrl=e("((#{validUrlPrecedingChars})((https?:\\/\\/)?(#{validDomain})(?::(#{validPortNumber}))?(\\/#{validUrlPath}*)?(\\?#{validUrlQueryChars}*#{validUrlQueryEndingChars})?))","gi"),r.txt.regexen.validTcoUrl=/^https?:\/\/t\.co\/[a-z0-9]+/i,r.txt.regexen.urlHasHttps=/^https:\/\//i,r.txt.extractUrlsWithIndices=function(e,t){if(t||(t={extractUrlsWithoutProtocol:!0}),!e||(t.extractUrlsWithoutProtocol?!e.match(/\./):!e.match(/:/)))return[];for(var i=[];r.txt.regexen.extractUrl.exec(e);){var n=RegExp.$2,a=RegExp.$3,s=RegExp.$4,o=RegExp.$5,l=RegExp.$7,h=r.txt.regexen.extractUrl.lastIndex,u=h-a.length;if(s)a.match(r.txt.regexen.validTcoUrl)&&(a=RegExp.lastMatch,h=u+a.length),i.push({url:a,indices:[u,h]});else{if(!t.extractUrlsWithoutProtocol||n.match(r.txt.regexen.invalidUrlWithoutProtocolPrecedingChars))continue;var c=null,d=0;if(o.replace(r.txt.regexen.validAsciiDomain,function(e){var t=o.indexOf(e,d);d=t+e.length,c={url:e,indices:[u+t,u+d]},(l||e.match(r.txt.regexen.validSpecialShortDomain)||!e.match(r.txt.regexen.invalidShortDomain))&&i.push(c)}),null==c)continue;l&&(c.url=a.replace(o,c.url),c.indices[1]=h)}}return i},r.txt.modifyIndicesFromUTF16ToUnicode=function(e,t){r.txt.convertUnicodeIndices(e,t,!0)},r.txt.getUnicodeTextLength=function(e){return e.replace(r.txt.regexen.non_bmp_code_pairs," ").length},r.txt.convertUnicodeIndices=function(e,t,r){if(0!=t.length){var i=0,n=0;t.sort(function(e,t){return e.indices[0]-t.indices[0]});for(var a=0,s=t[0];i=55296&&56319>=l&&i=56320&&57343>=l&&i++),n++,i++}}},r.txt.getTweetLength=function(e,t){t||(t={short_url_length:23,short_url_length_https:23});var i=r.txt.getUnicodeTextLength(e),n=r.txt.extractUrlsWithIndices(e);r.txt.modifyIndicesFromUTF16ToUnicode(e,n);for(var a=0;ai;i++)r[t[i]]=!0;else r[t]=!0;for(i=0,n=e.length;n>i;i++)void 0!==r[e[i]]&&(e.splice(i,1),n--,i--);return e}function h(e,t){var r,i;if(o(t)){for(r=0,i=t.length;i>r;r++)if(!h(e,t[r]))return!1;return!0}var n=s(t);for(r=0,i=e.length;i>r;r++)if("RegExp"===n){if("string"==typeof e[r]&&e[r].match(t))return!0}else if(e[r]===t)return!0;return!1}function u(e,t){if(!o(e)||!o(t))return!1;if(e.length!==t.length)return!1;e.sort(),t.sort();for(var r=0,i=e.length;i>r;r++)if(e[r]!==t[r])return!1;return!0}function c(e){return escape(e)}function d(e){return encodeURIComponent(e).replace(/[!'()*]/g,c).replace(/\*/g,"%2A")}var p=i&&i.URI;n.version="1.12.0";var g=n.prototype,f=Object.prototype.hasOwnProperty;n._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,duplicateQueryParameters:n.duplicateQueryParameters,escapeQuerySpace:n.escapeQuerySpace}},n.duplicateQueryParameters=!1,n.escapeQuerySpace=!0,n.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,n.idn_expression=/[^a-z0-9\.-]/i,n.punycode_expression=/(xn--)/i,n.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,n.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,n.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi,n.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/},n.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},n.invalid_hostname_characters=/[^a-zA-Z0-9\.-]/,n.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src"},n.getDomAttribute=function(e){if(e&&e.nodeName){var t=e.nodeName.toLowerCase();if("input"!==t||"image"===e.type)return n.domAttributes[t]}},n.encode=d,n.decode=decodeURIComponent,n.iso8859=function(){n.encode=escape,n.decode=unescape},n.unicode=function(){n.encode=d,n.decode=decodeURIComponent},n.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}}},n.encodeQuery=function(e,t){var r=n.encode(e+"");return t?r.replace(/%20/g,"+"):r},n.decodeQuery=function(e,t){e+="";try{return n.decode(t?e.replace(/\+/g,"%20"):e)}catch(r){return e}},n.recodePath=function(e){for(var t=(e+"").split("/"),r=0,i=t.length;i>r;r++)t[r]=n.encodePathSegment(n.decode(t[r]));return t.join("/")},n.decodePath=function(e){for(var t=(e+"").split("/"),r=0,i=t.length;i>r;r++)t[r]=n.decodePathSegment(t[r]);return t.join("/")};var m={encode:"encode",decode:"decode"},v,_=function(e,t){return function(r){return n[t](r+"").replace(n.characters[e][t].expression,function(r){return n.characters[e][t].map[r]})}};for(v in m)n[v+"PathSegment"]=_("pathname",m[v]);n.encodeReserved=_("reserved","encode"),n.parse=function(e,t){var r;return t||(t={}),r=e.indexOf("#"),r>-1&&(t.fragment=e.substring(r+1)||null,e=e.substring(0,r)),r=e.indexOf("?"),r>-1&&(t.query=e.substring(r+1)||null,e=e.substring(0,r)),"//"===e.substring(0,2)?(t.protocol=null,e=e.substring(2),e=n.parseAuthority(e,t)):(r=e.indexOf(":"),r>-1&&(t.protocol=e.substring(0,r)||null,t.protocol&&!t.protocol.match(n.protocol_expression)?t.protocol=void 0:"file"===t.protocol?e=e.substring(r+3):"//"===e.substring(r+1,r+3)?(e=e.substring(r+3),e=n.parseAuthority(e,t)):(e=e.substring(r+1),t.urn=!0))),t.path=e,t},n.parseHost=function(e,t){var r=e.indexOf("/"),i,n;return-1===r&&(r=e.length),"["===e.charAt(0)?(i=e.indexOf("]"),t.hostname=e.substring(1,i)||null,t.port=e.substring(i+2,r)||null):e.indexOf(":")!==e.lastIndexOf(":")?(t.hostname=e.substring(0,r)||null,t.port=null):(n=e.substring(0,r).split(":"),t.hostname=n[0]||null,t.port=n[1]||null),t.hostname&&"/"!==e.substring(r).charAt(0)&&(r++,e="/"+e),e.substring(r)||"/"},n.parseAuthority=function(e,t){return e=n.parseUserinfo(e,t),n.parseHost(e,t)},n.parseUserinfo=function(e,t){var r=e.indexOf("/"),i=r>-1?e.lastIndexOf("@",r):e.indexOf("@"),a;return i>-1&&(-1===r||r>i)?(a=e.substring(0,i).split(":"),t.username=a[0]?n.decode(a[0]):null,a.shift(),t.password=a[0]?n.decode(a.join(":")):null,e=e.substring(i+1)):(t.username=null,t.password=null),e},n.parseQuery=function(e,t){if(!e)return{};if(e=e.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,""),!e)return{};for(var r={},i=e.split("&"),a=i.length,s,o,l,h=0;a>h;h++)s=i[h].split("="),o=n.decodeQuery(s.shift(),t),l=s.length?n.decodeQuery(s.join("="),t):null,r[o]?("string"==typeof r[o]&&(r[o]=[r[o]]),r[o].push(l)):r[o]=l;return r},n.build=function(e){var t="";return e.protocol&&(t+=e.protocol+":"),e.urn||!t&&!e.hostname||(t+="//"),t+=n.buildAuthority(e)||"","string"==typeof e.path&&("/"!==e.path.charAt(0)&&"string"==typeof e.hostname&&(t+="/"),t+=e.path),"string"==typeof e.query&&e.query&&(t+="?"+e.query),"string"==typeof e.fragment&&e.fragment&&(t+="#"+e.fragment),t},n.buildHost=function(e){var t="";return e.hostname?(n.ip6_expression.test(e.hostname)?t+=e.port?"["+e.hostname+"]:"+e.port:e.hostname:(t+=e.hostname,e.port&&(t+=":"+e.port)),t):""},n.buildAuthority=function(e){return n.buildUserinfo(e)+n.buildHost(e)},n.buildUserinfo=function(e){var t="";return e.username&&(t+=n.encode(e.username),e.password&&(t+=":"+n.encode(e.password)),t+="@"),t},n.buildQuery=function(e,t,r){var i="",a,s,l,h;for(s in e)if(f.call(e,s)&&s)if(o(e[s]))for(a={},l=0,h=e[s].length;h>l;l++)void 0!==e[s][l]&&void 0===a[e[s][l]+""]&&(i+="&"+n.buildQueryParameter(s,e[s][l],r),t!==!0&&(a[e[s][l]+""]=!0));else void 0!==e[s]&&(i+="&"+n.buildQueryParameter(s,e[s],r));return i.substring(1)},n.buildQueryParameter=function(e,t,r){return n.encodeQuery(e,r)+(null!==t?"="+n.encodeQuery(t,r):"")},n.addQuery=function(e,t,r){if("object"==typeof t)for(var i in t)f.call(t,i)&&n.addQuery(e,i,t[i]);else{if("string"!=typeof t)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");if(void 0===e[t])return void(e[t]=r);"string"==typeof e[t]&&(e[t]=[e[t]]),o(r)||(r=[r]),e[t]=e[t].concat(r)}},n.removeQuery=function(e,t,r){var i,a,s;if(o(t))for(i=0,a=t.length;a>i;i++)e[t[i]]=void 0;else if("object"==typeof t)for(s in t)f.call(t,s)&&n.removeQuery(e,s,t[s]);else{if("string"!=typeof t)throw new TypeError("URI.addQuery() accepts an object, string as the first parameter");void 0!==r?e[t]===r?e[t]=void 0:o(e[t])&&(e[t]=l(e[t],r)):e[t]=void 0}},n.hasQuery=function(e,t,r,i){if("object"==typeof t){for(var a in t)if(f.call(t,a)&&!n.hasQuery(e,a,t[a]))return!1;return!0}if("string"!=typeof t)throw new TypeError("URI.hasQuery() accepts an object, string as the name parameter");switch(s(r)){case"Undefined":return t in e;case"Boolean":var l=Boolean(o(e[t])?e[t].length:e[t]);return r===l;case"Function":return!!r(e[t],t,e);case"Array":if(!o(e[t]))return!1;var c=i?h:u;return c(e[t],r);case"RegExp":return o(e[t])?i?h(e[t],r):!1:Boolean(e[t]&&e[t].match(r));case"Number":r=String(r);case"String":return o(e[t])?i?h(e[t],r):!1:e[t]===r;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},n.commonPath=function(e,t){var r=Math.min(e.length,t.length),i;for(i=0;r>i;i++)if(e.charAt(i)!==t.charAt(i)){i--;break}return 1>i?e.charAt(0)===t.charAt(0)&&"/"===e.charAt(0)?"/":"":(("/"!==e.charAt(i)||"/"!==t.charAt(i))&&(i=e.substring(0,i).lastIndexOf("/")),e.substring(0,i+1))},n.withinString=function(e,t,r){r||(r={});var i=r.start||n.findUri.start,a=r.end||n.findUri.end,s=r.trim||n.findUri.trim,o=/[a-z0-9-]=["']?$/i;for(i.lastIndex=0;;){var l=i.exec(e);if(!l)break;var h=l.index;if(r.ignoreHtml){var u=e.slice(Math.max(h-3,0),h);if(u&&o.test(u))continue}var c=h+e.slice(h).search(a),d=e.slice(h,c).replace(s,"");if(!r.ignore||!r.ignore.test(d)){c=h+d.length;var p=t(d,h,c,e);e=e.slice(0,h)+p+e.slice(c),i.lastIndex=h+p.length}}return i.lastIndex=0,e},n.ensureValidHostname=function(t){if(t.match(n.invalid_hostname_characters)){if(!e)throw new TypeError("Hostname '"+t+"' contains characters other than [A-Z0-9.-] and Punycode.js is not available");if(e.toASCII(t).match(n.invalid_hostname_characters))throw new TypeError("Hostname '"+t+"' contains characters other than [A-Z0-9.-]")}},n.noConflict=function(e){if(e){var r={URI:this.noConflict() };return URITemplate&&"function"==typeof URITemplate.noConflict&&(r.URITemplate=URITemplate.noConflict()),t&&"function"==typeof t.noConflict&&(r.IPv6=t.noConflict()),SecondLevelDomains&&"function"==typeof SecondLevelDomains.noConflict&&(r.SecondLevelDomains=SecondLevelDomains.noConflict()),r}return i.URI===this&&(i.URI=p),this},g.build=function(e){return e===!0?this._deferred_build=!0:(void 0===e||this._deferred_build)&&(this._string=n.build(this._parts),this._deferred_build=!1),this},g.clone=function(){return new n(this)},g.valueOf=g.toString=function(){return this.build(!1)._string},m={protocol:"protocol",username:"username",password:"password",hostname:"hostname",port:"port"},_=function(e){return function(t,r){return void 0===t?this._parts[e]||"":(this._parts[e]=t||null,this.build(!r),this)}};for(v in m)g[v]=_(m[v]);m={query:"?",fragment:"#"},_=function(e,t){return function(r,i){return void 0===r?this._parts[e]||"":(null!==r&&(r+="",r.charAt(0)===t&&(r=r.substring(1))),this._parts[e]=r,this.build(!i),this)}};for(v in m)g[v]=_(v,m[v]);m={search:["?","query"],hash:["#","fragment"]},_=function(e,t){return function(r,i){var n=this[e](r,i);return"string"==typeof n&&n.length?t+n:n}};for(v in m)g[v]=_(m[v][1],m[v][0]);g.pathname=function(e,t){if(void 0===e||e===!0){var r=this._parts.path||(this._parts.hostname?"/":"");return e?n.decodePath(r):r}return this._parts.path=e?n.recodePath(e):"/",this.build(!t),this},g.path=g.pathname,g.href=function(e,t){var r;if(void 0===e)return this.toString();this._string="",this._parts=n._parts();var i=e instanceof n,a="object"==typeof e&&(e.hostname||e.path||e.pathname);if(e.nodeName){var s=n.getDomAttribute(e);e=e[s]||"",a=!1}if(!i&&a&&void 0!==e.pathname&&(e=e.toString()),"string"==typeof e)this._parts=n.parse(e,this._parts);else{if(!i&&!a)throw new TypeError("invalid input");var o=i?e._parts:e;for(r in o)f.call(this._parts,r)&&(this._parts[r]=o[r])}return this.build(!t),this},g.is=function(e){var t=!1,i=!1,a=!1,s=!1,o=!1,l=!1,h=!1,u=!this._parts.urn;switch(this._parts.hostname&&(u=!1,i=n.ip4_expression.test(this._parts.hostname),a=n.ip6_expression.test(this._parts.hostname),t=i||a,s=!t,o=s&&r&&r.has(this._parts.hostname),l=s&&n.idn_expression.test(this._parts.hostname),h=s&&n.punycode_expression.test(this._parts.hostname)),e.toLowerCase()){case"relative":return u;case"absolute":return!u;case"domain":case"name":return s;case"sld":return o;case"ip":return t;case"ip4":case"ipv4":case"inet4":return i;case"ip6":case"ipv6":case"inet6":return a;case"idn":return l;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return h}return null};var w=g.protocol,b=g.port,y=g.hostname;g.protocol=function(e,t){if(void 0!==e&&e&&(e=e.replace(/:(\/\/)?$/,""),!e.match(n.protocol_expression)))throw new TypeError("Protocol '"+e+"' contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return w.call(this,e,t)},g.scheme=g.protocol,g.port=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0!==e&&(0===e&&(e=null),e&&(e+="",":"===e.charAt(0)&&(e=e.substring(1)),e.match(/[^0-9]/))))throw new TypeError("Port '"+e+"' contains characters other than [0-9]");return b.call(this,e,t)},g.hostname=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0!==e){var r={};n.parseHost(e,r),e=r.hostname}return y.call(this,e,t)},g.host=function(e,t){return this._parts.urn?void 0===e?"":this:void 0===e?this._parts.hostname?n.buildHost(this._parts):"":(n.parseHost(e,this._parts),this.build(!t),this)},g.authority=function(e,t){return this._parts.urn?void 0===e?"":this:void 0===e?this._parts.hostname?n.buildAuthority(this._parts):"":(n.parseAuthority(e,this._parts),this.build(!t),this)},g.userinfo=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){if(!this._parts.username)return"";var r=n.buildUserinfo(this._parts);return r.substring(0,r.length-1)}return"@"!==e[e.length-1]&&(e+="@"),n.parseUserinfo(e,this._parts),this.build(!t),this},g.resource=function(e,t){var r;return void 0===e?this.path()+this.search()+this.hash():(r=n.parse(e),this._parts.path=r.path,this._parts.query=r.query,this._parts.fragment=r.fragment,this.build(!t),this)},g.subdomain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,r)||""}var i=this._parts.hostname.length-this.domain().length,s=this._parts.hostname.substring(0,i),o=new RegExp("^"+a(s));return e&&"."!==e.charAt(e.length-1)&&(e+="."),e&&n.ensureValidHostname(e),this._parts.hostname=this._parts.hostname.replace(o,e),this.build(!t),this},g.domain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.match(/\./g);if(r&&r.length<2)return this._parts.hostname;var i=this._parts.hostname.length-this.tld(t).length-1;return i=this._parts.hostname.lastIndexOf(".",i-1)+1,this._parts.hostname.substring(i)||""}if(!e)throw new TypeError("cannot set domain empty");if(n.ensureValidHostname(e),!this._parts.hostname||this.is("IP"))this._parts.hostname=e;else{var s=new RegExp(a(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(s,e)}return this.build(!t),this},g.tld=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var i=this._parts.hostname.lastIndexOf("."),n=this._parts.hostname.substring(i+1);return t!==!0&&r&&r.list[n.toLowerCase()]?r.get(this._parts.hostname)||n:n}var s;if(!e)throw new TypeError("cannot set TLD empty");if(e.match(/[^a-zA-Z0-9-]/)){if(!r||!r.is(e))throw new TypeError("TLD '"+e+"' contains characters other than [A-Z0-9]");s=new RegExp(a(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(s,e)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");s=new RegExp(a(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(s,e)}return this.build(!t),this},g.directory=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||e===!0){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var r=this._parts.path.length-this.filename().length-1,i=this._parts.path.substring(0,r)||(this._parts.hostname?"/":"");return e?n.decodePath(i):i}var s=this._parts.path.length-this.filename().length,o=this._parts.path.substring(0,s),l=new RegExp("^"+a(o));return this.is("relative")||(e||(e="/"),"/"!==e.charAt(0)&&(e="/"+e)),e&&"/"!==e.charAt(e.length-1)&&(e+="/"),e=n.recodePath(e),this._parts.path=this._parts.path.replace(l,e),this.build(!t),this},g.filename=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||e===!0){if(!this._parts.path||"/"===this._parts.path)return"";var r=this._parts.path.lastIndexOf("/"),i=this._parts.path.substring(r+1);return e?n.decodePathSegment(i):i}var s=!1;"/"===e.charAt(0)&&(e=e.substring(1)),e.match(/\.?\//)&&(s=!0);var o=new RegExp(a(this.filename())+"$");return e=n.recodePath(e),this._parts.path=this._parts.path.replace(o,e),s?this.normalizePath(t):this.build(!t),this},g.suffix=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||e===!0){if(!this._parts.path||"/"===this._parts.path)return"";var r=this.filename(),i=r.lastIndexOf("."),s,o;return-1===i?"":(s=r.substring(i+1),o=/^[a-z0-9%]+$/i.test(s)?s:"",e?n.decodePathSegment(o):o)}"."===e.charAt(0)&&(e=e.substring(1));var l=this.suffix(),h;if(l)h=e?new RegExp(a(l)+"$"):new RegExp(a("."+l)+"$");else{if(!e)return this;this._parts.path+="."+n.recodePath(e)}return h&&(e=n.recodePath(e),this._parts.path=this._parts.path.replace(h,e)),this.build(!t),this},g.segment=function(e,t,r){var i=this._parts.urn?":":"/",n=this.path(),a="/"===n.substring(0,1),s=n.split(i);if(void 0!==e&&"number"!=typeof e&&(r=t,t=e,e=void 0),void 0!==e&&"number"!=typeof e)throw new Error("Bad segment '"+e+"', must be 0-based integer");if(a&&s.shift(),0>e&&(e=Math.max(s.length+e,0)),void 0===t)return void 0===e?s:s[e];if(null===e||void 0===s[e])if(o(t)){s=[];for(var l=0,h=t.length;h>l;l++)(t[l].length||s.length&&s[s.length-1].length)&&(s.length&&!s[s.length-1].length&&s.pop(),s.push(t[l]))}else(t||"string"==typeof t)&&(""===s[s.length-1]?s[s.length-1]=t:s.push(t));else t||"string"==typeof t&&t.length?s[e]=t:s.splice(e,1);return a&&s.unshift(""),this.path(s.join(i),r)},g.segmentCoded=function(e,t,r){var i,a,s;if("number"!=typeof e&&(r=t,t=e,e=void 0),void 0===t){if(i=this.segment(e,t,r),o(i))for(a=0,s=i.length;s>a;a++)i[a]=n.decode(i[a]);else i=void 0!==i?n.decode(i):void 0;return i}if(o(t))for(a=0,s=t.length;s>a;a++)t[a]=n.decode(t[a]);else t="string"==typeof t?n.encode(t):t;return this.segment(e,t,r)};var x=g.query;return g.query=function(e,t){if(e===!0)return n.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("function"==typeof e){var r=n.parseQuery(this._parts.query,this._parts.escapeQuerySpace),i=e.call(this,r);return this._parts.query=n.buildQuery(i||r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this}return void 0!==e&&"string"!=typeof e?(this._parts.query=n.buildQuery(e,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this):x.call(this,e,t)},g.setQuery=function(e,t,r){var i=n.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("object"==typeof e)for(var a in e)f.call(e,a)&&(i[a]=e[a]);else{if("string"!=typeof e)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");i[e]=void 0!==t?t:null}return this._parts.query=n.buildQuery(i,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(r=t),this.build(!r),this},g.addQuery=function(e,t,r){var i=n.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return n.addQuery(i,e,void 0===t?null:t),this._parts.query=n.buildQuery(i,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(r=t),this.build(!r),this},g.removeQuery=function(e,t,r){var i=n.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return n.removeQuery(i,e,t),this._parts.query=n.buildQuery(i,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(r=t),this.build(!r),this},g.hasQuery=function(e,t,r){var i=n.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return n.hasQuery(i,e,t,r)},g.setSearch=g.setQuery,g.addSearch=g.addQuery,g.removeSearch=g.removeQuery,g.hasSearch=g.hasQuery,g.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},g.normalizeProtocol=function(e){return"string"==typeof this._parts.protocol&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!e)),this},g.normalizeHostname=function(r){return this._parts.hostname&&(this.is("IDN")&&e?this._parts.hostname=e.toASCII(this._parts.hostname):this.is("IPv6")&&t&&(this._parts.hostname=t.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!r)),this},g.normalizePort=function(e){return"string"==typeof this._parts.protocol&&this._parts.port===n.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!e)),this},g.normalizePath=function(e){if(this._parts.urn)return this;if(!this._parts.path||"/"===this._parts.path)return this;var t,r=this._parts.path,i="",a,s;for("/"!==r.charAt(0)&&(t=!0,r="/"+r),r=r.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),t&&(i=r.substring(1).match(/^(\.\.\/)+/)||"",i&&(i=i[0]));;){if(a=r.indexOf("/.."),-1===a)break;0!==a?(s=r.substring(0,a).lastIndexOf("/"),-1===s&&(s=a),r=r.substring(0,s)+r.substring(a+3)):r=r.substring(3)}return t&&this.is("relative")&&(r=i+r.substring(1)),r=n.recodePath(r),this._parts.path=r,this.build(!e),this},g.normalizePathname=g.normalizePath,g.normalizeQuery=function(e){return"string"==typeof this._parts.query&&(this._parts.query.length?this.query(n.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!e)),this},g.normalizeFragment=function(e){return this._parts.fragment||(this._parts.fragment=null,this.build(!e)),this},g.normalizeSearch=g.normalizeQuery,g.normalizeHash=g.normalizeFragment,g.iso8859=function(){var e=n.encode,t=n.decode;return n.encode=escape,n.decode=decodeURIComponent,this.normalize(),n.encode=e,n.decode=t,this},g.unicode=function(){var e=n.encode,t=n.decode;return n.encode=d,n.decode=unescape,this.normalize(),n.encode=e,n.decode=t,this},g.readable=function(){var t=this.clone();t.username("").password("").normalize();var r="";if(t._parts.protocol&&(r+=t._parts.protocol+"://"),t._parts.hostname&&(t.is("punycode")&&e?(r+=e.toUnicode(t._parts.hostname),t._parts.port&&(r+=":"+t._parts.port)):r+=t.host()),t._parts.hostname&&t._parts.path&&"/"!==t._parts.path.charAt(0)&&(r+="/"),r+=t.path(!0),t._parts.query){for(var i="",a=0,s=t._parts.query.split("&"),o=s.length;o>a;a++){var l=(s[a]||"").split("=");i+="&"+n.decodeQuery(l[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"),void 0!==l[1]&&(i+="="+n.decodeQuery(l[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}r+="?"+i.substring(1)}return r+=n.decodeQuery(t.hash(),!0)},g.absoluteTo=function(e){var t=this.clone(),r=["protocol","username","password","hostname","port"],i,a,s;if(this._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(e instanceof n||(e=new n(e)),t._parts.protocol||(t._parts.protocol=e._parts.protocol),this._parts.hostname)return t;for(a=0;s=r[a];a++)t._parts[s]=e._parts[s];return t._parts.path?".."===t._parts.path.substring(-2)&&(t._parts.path+="/"):(t._parts.path=e._parts.path,t._parts.query||(t._parts.query=e._parts.query)),"/"!==t.path().charAt(0)&&(i=e.directory(),t._parts.path=(i?i+"/":"")+t._parts.path,t.normalizePath()),t.build(),t},g.relativeTo=function(e){var t=this.clone().normalize(),r,i,a,s,o;if(t._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(e=new n(e).normalize(),r=t._parts,i=e._parts,s=t.path(),o=e.path(),"/"!==s.charAt(0))throw new Error("URI is already relative");if("/"!==o.charAt(0))throw new Error("Cannot calculate a URI relative to another relative URI");if(r.protocol===i.protocol&&(r.protocol=null),r.username!==i.username||r.password!==i.password)return t.build();if(null!==r.protocol||null!==r.username||null!==r.password)return t.build();if(r.hostname!==i.hostname||r.port!==i.port)return t.build();if(r.hostname=null,r.port=null,s===o)return r.path="",t.build();if(a=n.commonPath(t.path(),e.path()),!a)return t.build();var l=i.path.substring(a.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");return r.path=l+r.path.substring(a.length),t.build()},g.equals=function(e){var t=this.clone(),r=new n(e),i={},a={},s={},l,h,c;if(t.normalize(),r.normalize(),t.toString()===r.toString())return!0;if(l=t.query(),h=r.query(),t.query(""),r.query(""),t.toString()!==r.toString())return!1;if(l.length!==h.length)return!1;i=n.parseQuery(l,this._parts.escapeQuerySpace),a=n.parseQuery(h,this._parts.escapeQuerySpace);for(c in i)if(f.call(i,c)){if(o(i[c])){if(!u(i[c],a[c]))return!1}else if(i[c]!==a[c])return!1;s[c]=!0}for(c in a)if(f.call(a,c)&&!s[c])return!1;return!0},g.duplicateQueryParameters=function(e){return this._parts.duplicateQueryParameters=!!e,this},g.escapeQuerySpace=function(e){return this._parts.escapeQuerySpace=!!e,this},n}),sumo.define("jquery.article",["jquery"],function(e){e.expr[":"].emptytext=e.expr.createPseudo(function(t){return function(t){return""===e.trim(e(t).text())}}),e.fn.findIncludeSelf=function(t,r){var i;return i=":has(> p + p + p)"==t?this.find("p + p + p").parent():this.find(t),e(this).is(r)?i:i.addBack(t)},e.fn.exists=function(){return 0!==this.length},e.fn.findLeaves=function(r,i){var n=e(this),a=n.findIncludeSelf(r,"body").filter(i);return a=a.filter(t),a.filter(function(){return!e(this).find(a).exists()})},e.fn.findTrunks=function(r,i){var n=e(this),a=n.findIncludeSelf(r,"body").filter(i);return a=a.filter(t),a.filter(function(){return!e(this).parents().filter(a).exists()})};var t=function(){if(this._header||(this._header=i(e(this))),this._titleText||(this._titleText=s(this)),this._header){var t=.666*e(this).outerHeight();if(t&&this._header.outerHeight()>=t)return!1}return!0},r=function(t){var r=t||e("body").find("main, [role=main]").eq(0).get(0)||"body",i=e(),n=':not("[class^=comment],[id^=comment],[class*=footer],.sidebar:not(body) *,aside *,#sidebar *,footer *,[class*=footer]:not(body, [class*=not-footer]) *,#comments *,#livefyre-comments *,[class^=fyre] *,[class^=comment],[id^=comment] *,[class*=related-post]:not(body) *,.archive-page,.aside,.hentry-metro,.hrf-entry,:emptytext,.tve-leads-lightbox article")',a=[];a.push("article"),a.push(".post"),a.push(".entry-content"),a.push(".post-content"),a.push(".post_box"),a.push(".post-item"),a.push(".blog-post-wrapper"),a.push(".type-post"),a.push("#content"),a.push(".blog_content"),"body"!=r?(a.push(".hentry"),a.push(".content")):(a.push("main .hentry"),a.push("[role=main] .hentry"),a.push("main .content"),a.push("[role=main] .content")),a.push("#post-content"),a.push("#blog-content"),a.push(".blog-post");for(var s=[":has(> p + p + p)"],o=0;o0)return i;for(var o=0;o0)return i;var i,l,h,u;return i},i=function(t){var r=null,i=[".main-title","header",".post-header",".post-title","h1","h2","h3","h4","h5","h6",".title",".headline"],n={};try{i.forEach(function(i){if(r=e(t).find(i),r.length>0)throw n})}catch(a){if(a===n)return r.eq(0);throw a}return null},n=function(t){var r=null,i=[".fyre","footer",".post-footer",".footer",".entry-footer",'[class^="comment"]:not(.post-meta-info *, [class^=comment-count], [class^=comments-link], [class^=comments-number], li)',".fb-comments","iframe[title=Disqus]","#disqus_thread"],n={};try{i.forEach(function(i){if(r=e(t).find(i),r.length>0)throw n})}catch(a){if(a===n)return r.eq(0).hasClass("fb-comments")&&r.eq(0).prev("h3 + p").length>0?r.eq(0).prev("h3 + p").prev("h3"):r.eq(0);throw a}return null},a=function(e){return i(e)},s=function(e){var t=null;return!e._title&&e._header&&(e._title=e._header),e._title&&(t=e._title.text().trim()),t},o=function(t){var r=null,i=["a[rel=bookmark]","h1 > a","h2 > a","h3 > a","header > a"],n={};try{i.forEach(function(i){if(r=e(t).find(i).filter("[href]"),r.length>0)throw n})}catch(a){if(a===n)return r.eq(0);throw a}return null};e.articles=function(t){if("__smCache"in window&&"articles"in window.__smCache)return window.__smCache.articles;var l=r(t);return l.each(function(){this._header||(this._header=i(e(this))),this._footer=n(e(this)),this._title=this._header?a(this._header):null,this._titleText||(this._titleText=s(this));var t=this._header?o(this._header):null;t?this._anchor=t:this._anchor=o(e(this)),this._anchor?this._url=this._anchor.attr("href"):this._url=null,this._url||(this._url=window.location.href)}),"__smDebug"in window&&window.__smDebug&&l.each(function(){e(this).css("background","rgba(0,0,255,.5)"),this._header&&this._header.css("background","rgba(0,255,0,.5)"),this._title&&this._title.css("background","rgba(255,0,0,.5)"),this._footer&&this._footer.css("background","rgba(255,255,0,.5)")}),"__smCache"in window||(window.__smCache={}),window.__smCache.articles=l,setTimeout(function(){"__smCache"in window&&delete window.__smCache.articles},1e4),l},e.article=function(){return e.articles().eq(0)}}),sumo.define("jquery.displayrules",["jquery","URI","jquery.article"],function(e,t){e.isCurrentUrlAllowed=function(r,i,n,a){function s(e,t,r,i){var n=[];if(e&&e.length)for(var a=0;an;n++)i[n]=[t[n],e[t[n]]];return i},u=function(e){var t=h(e),r=t.length;return function(e){if(null==e)return!r;e=new Object(e);for(var i=0;r>i;i++){var n=t[i],a=n[0];if(n[1]!==e[a]||!(a in e))return!1}return!0}},c=function(e){var e=e.substr(1).split("&");if(""==e)return{};for(var t={},r=0;r=0))return!1;for(var s=!0,o=Object.keys(i),l=0;l=0&&h==e.substring(e.lastIndexOf(h))&&0==n[e].indexOf(d)&&(p=!0)}),!p)return!1}else{if(h in n)continue;for(var g=Object.keys(n),p=!1,f=0;f=parseFloat(e.filter_value))&&(t=!0);else if("views_lt"==e.filter_type)(isNaN(e.pageviews)||ae.pageviews)&&(t=!0);else if("countryis"==e.filter_type)n==e.filter_value.toLowerCase()&&(t=!0);else if("countryisnot"==e.filter_type)n&&n==e.filter_value.toLowerCase()||(t=!0);else if("c_exists"==e.filter_type)k.indexOf(e.filter_value)>=0&&(t=!0);else if("c_dne"==e.filter_type)k.indexOf(e.filter_value)<0&&(t=!0);else if("c_equals"==e.filter_type)k.indexOf(e.filter_value)>=0&&x[e.filter_value]==e.param_value&&(t=!0);else if("c_notequals"==e.filter_type)(k.indexOf(e.filter_value)<0||x[e.filter_value]!=e.param_value)&&(t=!0);else if("c_contains"==e.filter_type)k.indexOf(e.filter_value)>=0&&x[e.filter_value].indexOf(e.param_value)>=0&&(t=!0);else if("c_notcontains"==e.filter_type)(k.indexOf(e.filter_value)<0||x[e.filter_value].indexOf(e.param_value)<0)&&(t=!0);else if("mt_equals"===e.filter_type)for(var r=0;r=0&&(t=!0);else if("q_notcontains"==e.filter_type)(!w||!w[e.filter_value]||w[e.filter_value].indexOf(e.param_value)<0)&&(t=!0);else if("exact"==e.filter_type){var h=d(e,_,v);h&&(e.full_url?m==e.match_url&&(t=!0):null==e.match_url&&h?t=!0:(m==e.match_url||f==e.match_url)&&(t=!0))}else if("beginning"==e.filter_type){var h=d(e,_,v);h&&(e.full_url?0==m.indexOf(e.match_url.toLowerCase())&&(t=!0):null==e.match_url&&h?t=!0:(0==m.indexOf(e.match_url.toLowerCase())||0==f.indexOf(e.match_url.toLowerCase()))&&(t=!0))}else if("containing"==e.filter_type){var h=d(e,_,v);h&&(e.full_url?m.indexOf(e.match_url.toLowerCase())>=0&&(t=!0):null==e.match_url&&h?t=!0:m.indexOf(e.match_url.toLowerCase())>=0&&(t=!0))}else if(P&&["r_url_exact","r_domain_exact","r_url_beginning","r_domain_beginning","r_url_containing","r_domain_containing"].indexOf(e.filter_type)>=0)if("r_url_exact"==e.filter_type){var h=d(e,z,L);e.full_url?h&&j==e.match_url.toLowerCase()&&(t=!0):h&&j==e.match_url.toLowerCase()?t=!0:null==e.match_url&&h&&(t=!0)}else if("r_domain_exact"==e.filter_type)e.host?e.host==E&&(t=!0):e.filter_value==E&&(t=!0);else if("r_url_beginning"==e.filter_type){var h=d(e,z,L);e.full_url?h&&0==j.indexOf(e.match_url)&&(t=!0):h&&0==j.indexOf(e.match_url)?t=!0:null==e.match_url&&h&&(t=!0)}else if("r_domain_beginning"==e.filter_type)e.host&&0==E.indexOf(e.host)?t=!0:0==E.indexOf(e.filter_value)&&(t=!0);else if("r_url_containing"==e.filter_type){var h=d(e,z,L);e.full_url?h&&j.indexOf(e.match_url)>=0&&(t=!0):h&&j.indexOf(e.match_url)>=0?t=!0:null==e.match_url&&h&&(t=!0)}else"r_domain_containing"==e.filter_type&&(e.host&&E.indexOf(e.host)>=0?t=!0:E.indexOf(e.filter_value)>=0&&(t=!0));else if("ua_os"==e.filter_type&&p&&p.compareOS){var u=[e.filter_value];"winmobile"==e.filter_value?u=["windows mobile","windows phone"]:"macos"==e.filter_value?u=["mac os"]:"windesktop"==e.filter_value&&(u=["windows"]),u.indexOf(p.compareOS)>=0&&(t=!0)}else if("ua_browser"==e.filter_type&&p&&p.compareBrowser){var u=[e.filter_value];"chrome"==e.filter_value?u=["chrome","chromium"]:"ie"==e.filter_value?u=["ie","ie mobile"]:"opera"==e.filter_value?u=["opera","opera mini","opera mobile","opera tablet"]:"safari"==e.filter_value&&(u=["safari","mobile safari"]),u.indexOf(p.compareBrowser)>=0&&(t=!0)}else if("ua_exact"==e.filter_type)e.filter_value.toLowerCase()==navigator.userAgent.toLowerCase()&&(t=!0);else if("ua_beginning"==e.filter_type)0==navigator.userAgent.toLowerCase().indexOf(e.filter_value.toLowerCase())&&(t=!0);else if("ua_containing"==e.filter_type)navigator.userAgent.toLowerCase().indexOf(e.filter_value.toLowerCase())>=0&&(t=!0);else if("hash_exact"==e.filter_type){var c="#"==e.filter_value[0]?e.filter_value:"#"+e.filter_value;c.toLowerCase()==_.toLowerCase()&&(t=!0)}else if("hash_beginning"==e.filter_type){var c="#"==e.filter_value[0]?e.filter_value:"#"+e.filter_value;0==_.toLowerCase().indexOf(c.toLowerCase())&&(t=!0)}else if("hash_containing"==e.filter_type){var c="#"==e.filter_value[0]?e.filter_value:"#"+e.filter_value;_.toLowerCase().indexOf(c.toLowerCase())>=0&&(t=!0)}else"all"==e.filter_type&&(t=!0);t||(i=!0)}),i?void 0:(r=!0,!1)}),r},N=s(r,"rule_type","include",!1);if(N&&N.length){var D={},Q=0;N.forEach(function(e){e.group_id&&e.group_id.length?D.hasOwnProperty(e.group_id)?D[e.group_id].push(e):D[e.group_id]=[e]:(D[Q]=[e],Q+=1)}),currentUrlIncluded=U(D)}else currentUrlIncluded=!0;if(!currentUrlIncluded)return!1;var F=s(r,"rule_type","exclude",!1),H=!1;if(!F||!F.length)return!0;var $={},Q=0;return F.forEach(function(e){e.group_id&&e.group_id.length?$.hasOwnProperty(e.group_id)?$[e.group_id].push(e):$[e.group_id]=[e]:($[Q]=[e],Q+=1)}),H=U($),H?!1:!0}return!0}}),sumo.define("selectorator",["jquery"],function(e){var t,r,i,n,a,s,o,l;return o=e.map,a=e.extend,s=e.inArray,i=function(e,t){return-1!==s(e,t)},n=function(e){return e.replace(/([\!\"\#\$\%\&'\(\)\*\+\,\.\/\:\;<\=>\?\@\[\\\]\^\`\{\|\}\~])/g,"\\$1")},r=function(e,t){return o(e,function(e){return e===t?null:e})},l=function(e){return o(e,function(t,r){return parseInt(r,10)===parseInt(e.indexOf(t),10)?t:null})},t=function(){function t(t,r){this.element=t,this.options=a(a({},e.selectorator.options),r),this.cachedResults={}}return t.prototype.query=function(t){var r;return(r=this.cachedResults)[t]||(r[t]=e(t.replace(/#([^\s]+)/g,"[id='$1']")))},t.prototype.getProperTagName=function(){return this.element[0]?"span"==this.element[0].tagName.toLowerCase()&&this.getIgnore("class")&&i(this.element.attr("class"),this.getIgnore("class"))?this.hasParent()?this.element.parent()[0].tagName.toLowerCase():null:this.element[0].tagName.toLowerCase():null},t.prototype.hasParent=function(){return this.element&&0 ":" ",e=t+a+e,s=this.query(e),r&&1i;i++)if(e=a[i],t=l(r(e.call(this))),t&&t.length>0)return t;return l(t)},t.prototype.generateText=function(){var e,t,i,n,a;if(!(this.element&&this.hasParent()&&this.isElement()))return[""];for(t=[],a=[this.generateTextSelector],i=0,n=a.length;n>i;i++)if(e=a[i],t=l(r(e.call(this))),t&&t.length>0)return t;return l(t)},t.prototype.generateAncestor=function(){var r,i,n,a,s,o,l,h,u,c,d,p,g,f;for(s=[],f=this.element.parents(),h=0,d=f.length;d>h;h++){for(i=f[h],r=!0,l=this.generateSimple(null,!1),u=0,p=l.length;p>u;u++)for(o=l[u],a=new t(e(i),this.options).generateSimple(null,!1),c=0,g=a.length;g>c;c++)n=a[c],e.merge(s,this.generateSimple(n,!0,r));r=!1}return s},t.prototype.generateSimple=function(e,t,i){var n,a,s,l,h,u,c,d;for(s=this,l=s.getProperTagName(),h=function(r){return s.validate(r,e,t,i)},d=[[s.getIdSelector],[s.getClassSelector],[s.getIdSelector,!0],[s.getClassSelector,!0],[s.getNameSelector],[function(){return[s.getProperTagName()]}]],u=0,c=d.length;c>u;u++)if(n=d[u],a=n[0].call(s,n[1])||[],a=r(o(a,h)),a.length>0)return a;return[]},t.prototype.generateTextSelector=function(e,t,i){var n,a,s,o,l,h,u,c;for(s=this,o=s.getProperTagName(),l=function(r){return s.validate(r,e,t,i)},c=[[s.getIdSelector],[s.getTextSelector,!0],[function(){return[s.getProperTagName()]}]],h=0,u=c.length;u>h;h++)if(n=c[h],a=n[0].call(s,n[1])||[],a=r(a),a.length>0)return a;return[]},t.prototype.generateRecursive=function(){var e,r,i,n;return n=this.getProperTagName(), -1!==n.indexOf(":")&&(n="*"),r=this.element.parent(),i=new t(r).generate()[0],e=r.children(n).index(this.element),n=""+n+":eq("+e+")",""!==i&&(n=i+" > "+n),[n]},t.prototype.getIdSelector=function(e){var t;return null==e&&(e=!1),e=e?this.getProperTagName():"",t=this.element.attr("id"),"string"==typeof t&&t.trim().length&&!i(t,this.getIgnore("id"))&&0!=t.indexOf("yui")?[""+e+"#"+n(t)]:null},t.prototype.getTextSelector=function(r){var i="";if(this.hasParent()){var n=this.element.parent()[0];r=r?n.tagName.toLowerCase():"",n=e(n);var a=n.text();"string"==typeof a&&a.length>0&&(i=r+":similar("+a+")")}var s=this.element.prev();if(s.length){var o=new t(s).generateSimple(null,!1);o&&(i+=" > "+o)}return i?[i]:null},t.prototype.getClassSelector=function(e){var t,r,a;return null==e&&(e=!1),a=this.getProperTagName(),/^(body|html)$/.test(a)?null:(e=e?a:"",r=this.getIgnore("class"),t=(this.element.attr("class")||"").replace(/\{.*\}/,"").split(/\s/),o(t,function(t){return t&&!i(t,r)?""+e+"."+n(t):null}))},t.prototype.getNameSelector=function(){var e,t;return t=this.getProperTagName(),e=this.element.attr("name"),e&&!i(e,this.getIgnore("name"))?[""+t+"[name='"+e+"']"]:null},t.prototype.getIgnore=function(e){var t,r,i;return r=this.options.ignore||{},t="class"===e?"classes":""+e+"s",i=r[e]||r[t],"string"==typeof i?[i]:i},t}(),e.selectorator={options:{},unique:l,clean:r,escapeSelector:n},e.fn.selectorator=function(r){return new t(e(this),r)},e.fn.getSelector=function(e){return this.selectorator(e).generate()},e.fn.getTextSelector=function(e){return this.selectorator(e).generateText()},this}),sumo.define("range",["jquery"],function(e){var t=function(e){return e.fn.compare=function(e){try{e=e.jquery?e[0]:e}catch(t){return null}if(window.HTMLElement){var r=HTMLElement.prototype.toString.call(e);if("[xpconnect wrapped native prototype]"==r||"[object XULElement]"==r||"[object Window]"===r)return null}if(this[0].compareDocumentPosition)return this[0].compareDocumentPosition(e);if(this[0]==document&&e!=document)return 8;var i=(this[0]!==e&&this[0].contains(e)&&16)+(this[0]!=e&&e.contains(this[0])&&8),n=document.documentElement;return this[0].sourceIndex&&(i+=this[0].sourceIndexe.sourceIndex&&2,i+=(this[0].ownerDocument!==e.ownerDocument||this[0]!=n&&this[0].sourceIndex<=0||e!=n&&e.sourceIndex<=0)&&1),i},e}(e),r=function(e){e.fn.range=function(){return e.Range(this[0])};var t=function(e){return e.replace(/([a-z])([a-z]+)/gi,function(e,t,r){return t+r.toLowerCase()}).replace(/_/g,"")},r=function(e){return e.replace(/^([a-z]+)_TO_([a-z]+)/i,function(e,t,r){return r+"_TO_"+t})},i=function(e){return e?e.ownerDocument.defaultView||e.ownerDocument.parentWindow:window},n=function(e,t,r){},a={};e.Range=function(t){return this.constructor!==e.Range?new e.Range(t):(t&&t.jquery&&(t=t[0]),void(!t||t.nodeType?(this.win=i(t),this.win.document.createRange?this.range=this.win.document.createRange():this.win&&this.win.document.body&&this.win.document.body.createTextRange&&(this.range=this.win.document.body.createTextRange()),t&&this.select(t)):null!=t.clientX||null!=t.pageX||null!=t.left?this.moveToPoint(t):t.originalEvent&&t.originalEvent.touches&&t.originalEvent.touches.length?this.moveToPoint(t.originalEvent.touches[0]):t.originalEvent&&t.originalEvent.changedTouches&&t.originalEvent.changedTouches.length?this.moveToPoint(t.originalEvent.changedTouches[0]):this.range=t))},e.Range.current=function(t){var r=i(t),n;return r.getSelection?(n=r.getSelection(),new e.Range(n.rangeCount?n.getRangeAt(0):r.document.createRange())):new e.Range(r.document.selection.createRange())},e.extend(e.Range.prototype,{moveToPoint:function(t){var r=t.clientX,i=t.clientY;if(!r){var n=v();r=(t.pageX||t.left||0)-n.left,i=(t.pageY||t.top||0)-n.top}if(a.moveToPoint)return this.range=e.Range().range,this.range.moveToPoint(r,i),this;for(var o=document.elementFromPoint(r,i),l=0;ld;d++){var p=u.end(d).rect();if(p.left<=r&&p.left+p.width>=r&&p.top<=i&&p.top+p.height>=i)return u.start(d-1),this.range=u.range,this}}var g;s(o.childNodes,function(r){var i=e.Range(r);return i.rect().top>t.clientY?!1:void(g=i)}),g?(g.start(g.toString().length),this.range=g.range):this.range=e.Range(o).range},window:function(){return this.win||window},overlaps:function(t){t.nodeType&&(t=e.Range(t).select(t));var r=this.compare("START_TO_START",t),i=this.compare("END_TO_END",t);return 0>=r&&i>=0?!0:r>=0&&this.compare("START_TO_END",t)<=0?!0:this.compare("END_TO_START",t)>=0&&0>=i?!0:!1},collapse:function(e){return this.range.collapse(void 0===e?!0:e),this},toString:function(){return"string"==typeof this.range.text?this.range.text:this.range.toString()},start:function(t){if(void 0===t){if(this.range.startContainer)return{container:this.range.startContainer,offset:this.range.startOffset};var r=this.clone().collapse().parent(),i=e.Range(r).select(r).collapse();return i.move("END_TO_START",this),{container:r,offset:i.toString().length}}if(this.range.setStart)if("number"==typeof t)this.range.setStart(this.range.startContainer,t);else if("string"==typeof t){var n=c(this.range.startContainer,this.range.startOffset,parseInt(t,10));this.range.setStart(n.node,n.offset)}else this.range.setStart(t.container,t.offset);else if("string"==typeof t)this.range.moveStart("character",parseInt(t,10));else{var a=this.start().container,s;"number"==typeof t?s=t:(a=t.container,s=t.offset);var o=e.Range(a).collapse();o.range.move(s),this.move("START_TO_START",o)}return this},end:function(t){if(void 0===t){if(this.range.startContainer)return{container:this.range.endContainer,offset:this.range.endOffset};var r=this.clone().collapse(!1).parent(),i=e.Range(r).select(r).collapse();return i.move("END_TO_END",this),{container:r,offset:i.toString().length}}if(this.range.setEnd)if("number"==typeof t)this.range.setEnd(this.range.endContainer,t);else if("string"==typeof t){var n=c(this.range.endContainer,this.range.endOffset,parseInt(t,10));this.range.setEnd(n.node,n.offset)}else this.range.setEnd(t.container,t.offset);else if("string"==typeof t)this.range.moveEnd("character",parseInt(t,10));else{var a=this.end().container,s;"number"==typeof t?s=t:(a=t.container,s=t.offset);var o=e.Range(a).collapse();o.range.move(s),this.move("END_TO_START",o)}return this},parent:function(){if(this.range.commonAncestorContainer)return this.range.commonAncestorContainer;var t=this.range.parentElement(),r=this.range;return s(t.childNodes,function(i){return e.Range(i).range.inRange(r)?(t=i,!1):void 0}),t},rect:function(t){var r=this.range.getBoundingClientRect();if(r.height||r.width||(r=this.range.getClientRects()[0]),"page"===t){var i=v();r=e.extend({},r),r.top+=i.top,r.left+=i.left}return r},rects:function(t){for(var r=e.map(e.makeArray(this.range.getClientRects()).sort(function(e,t){return t.width*t.height-e.width*e.height}),function(t){return e.extend({},t)}),i=0,n,a=r.length;ir?u:h;return o(e)?0>t+r?d(i(e),t+r):d(e,t+r):(e=e.childNodes[t]?e.childNodes[t]:e.lastChild,o(e)||(e=i(e)),d(e,r))},d=function(e,t){var r=0>t?u:h;for(t=Math.abs(t);e&&t>=e.nodeValue.length;)t-=e.nodeValue.length,e=r(e);return{node:e,offset:r===h?t:e.nodeValue.length-t}},p,g=function(e){return null==p&&(p="isElementContentWhitespace"in e),p?e.isElementContentWhitespace:3===e.nodeType&&""==e.data.trim()},f=function(e,t){return e.left<=t.clientX&&e.left+e.width>=t.clientX&&e.top<=t.clientY&&e.top+e.height>=t.clientY},m=function(e,t){return f(e,{clientX:t.left,clientY:t.top})&&f(e,{clientX:t.left+t.width,clientY:t.top})&&f(e,{clientX:t.left,clientY:t.top+t.height})&&f(e,{clientX:t.left+t.width,clientY:t.top+t.height})},v=function(e){var e=e||window;return doc=e.document.documentElement,body=e.document.body,{left:(doc&&doc.scrollLeft||body&&body.scrollLeft||0)+(doc.clientLeft||0),top:(doc&&doc.scrollTop||body&&body.scrollTop||0)+(doc.clientTop||0)}};return a.moveToPoint=!!e.Range().range.moveToPoint,e}(e,t)}),Function.prototype.debounce=function(e){var t=this,r=null,i=e;return function(){function e(){t.apply(n,a),r=null}var n=this,a=arguments;r&&clearTimeout(r),r=setTimeout(e,i)}},Function.prototype.throttle=function(e){var t=this,r=null,i=e;return function(){var e=this,n=arguments,a=Date.now();(!r||a-r>=i)&&(r=a,t.apply(e,n))}},sumo.define("limit",function(){}),sumo.define("331c6750-848e-4469-b1bb-bfbb4fa4cd99/highlighter",["jquery","jquery.cookie","plugins/text!331c6750-848e-4469-b1bb-bfbb4fa4cd99/templates/highlighter.html","plugins/text!331c6750-848e-4469-b1bb-bfbb4fa4cd99/templates/highlighter_mobile.html","twitter-text","jquery.style","jquery.displayrules","selectorator","range","limit"],function(e,t,r,i,n){function a(){return e.browser.mobile&&("ontouchstart"in window||!!navigator.msMaxTouchPoints)}function s(t,r){var i=e._data(t,"events");return i&&i[r]||t.onclick?!0:!1}function o(t,r){function i(e,t){var r=n.substring(e,t).search(l);r>-1&&(anyHTMLmatch=n.substring(e+r,t).match(l)[0],n=n.substring(0,r+e)+A+anyHTMLmatch+C+n.substring(e+r+anyHTMLmatch.length),e+=r+C.length+anyHTMLmatch.length+A.length,t+=C.length+A.length,i(e,t))}var n=e(t).html(),a=e(t).html(),s=[],o=[],l=/<[^>]*>/,u=/<[^>]*>| /,c=/(<[^>]*>)/,d=/^<([-A-Za-z0-9_]+)((?:\s+\w+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,p=/^<\/([-A-Za-z0-9_]+)[^>]*>/,g=/([-A-Za-z0-9_]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,f=["a","abbr","acronym","applet","b","basefont","bdo","big","br","button","cite","code","del","dfn","em","font","i","iframe","img","input","ins","kbd","label","map","object","q","s","samp","script","select","small","span","strike","strong","sub","sup","textarea","tt","u"],m=/ /,v=r.entry;v=v.replace(/\xA0/g," ");var _=/<[^>]*>|\ /i,w;if(s=n.match(/<[^>]*>| /gi),o=[],s)for(var b=0;b").html(v).text().trim();v=v.replace(/\xA0/g," ");var T=n.indexOf(v);if(T>-1){var C="",S=""+(0===r.share_count?"":h(r.share_count))+"",A="",P=T+v.length;n=n.substring(0,T)+C+n.substring(T,P)+S+n.substring(P);for(var I=0,E=0,k=o[b],R=0,O=0,j=[],L=[],z=[],b=o.length-1;b>=0;b--){var k=o[b];T>k&&(R+=s[b].length," "==s[b].toLowerCase()&&(R-=1)),P>k&&(o[b]>=T&&(j.push(s[b]),L.push(k-T+C.length)),O+=s[b].length," "==s[b].toLowerCase()&&(O-=1))}for(var q=n.substring(T,P+C.length+S.length),b=0;b-1&&U>-1&&(i(k,U),t.innerHTML=n,e(t).find(".sumo_twilighter_highlighted").invert())}}function l(){return window.getSelection?window.getSelection().toString():document.selection?document.selection.createRange().text:""}function h(e){var t=e.toString().split(".");return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),t.join(".")}function u(){var t=window.location.href;return!U||Q?(Q&&(t=Q),t):void e.ajax({type:"POST",dataType:"json",url:q.properties.sumoUrl+"/apps/twilighter/shorten",data:{site_id:q.properties.siteId,href:t},xhrFields:{withCredentials:!1},crossDomain:!0}).done(function(e){return e.success?(t=e.url,Q=e.url,t):t})}function c(t){var r=window.location.href,i=("https:"===location.protocol,23),n=0,s=!0;if(N){var o=t.split(" ").reverse();o.forEach(function(e){n||e.match(/^https?:\/\//i)&&(n=e.length)}),(t.match(/https?:\/\//i)||t.match(/ via @/i))&&(s=!1)}if(U&&!Q)e.ajax({type:"POST",dataType:"json",url:q.properties.sumoUrl+"/apps/twilighter/shorten",data:{site_id:q.properties.siteId,href:r},xhrFields:{withCredentials:!1},crossDomain:!0}).done(function(o){o.success&&(r=o.url,Q=o.url);var l=140-i+n;F&&(N&&t.match(/ via @/i)||(l-=("@"==F[0]?5:6)+F.length));var h=t.trim();h=h.replace(/\r\n|\n|\r/g," "),(N&&s||!N&&h.length+1>l)&&(h=h.substr(0,l-2)+"…");var u=F?" via "+("@"==F[0]?"":"@")+F:"";N&&(h.match(/https?:\/\//i)&&(r=""),h.match(/ via @/i)&&(u="")),(r||u)&&(h=h+(r?" "+r:"")+u),e("#sumo_twilighter_input").val(h).data({"sumome-twilighter-url":r,"sumome-twilighter-via":u,"sumome-twilighter-msg":h}),a()||T()});else{Q&&(r=Q);var l=140-i+n;F&&(N&&t.match(/ via @/i)||(l-=("@"==F[0]?5:6)+F.length));var h=t.trim();h=h.replace(/\r\n|\n|\r/g," "),(N&&s||!N&&h.length+1>l)&&(h=h.substr(0,l-2)+"…");var u=F?" via "+("@"==F[0]?"":"@")+F:"";N&&(h.match(/https?:\/\//i)&&(r=""),h.match(/ via @/i)&&(u="")),(r||u)&&(h=h+(r?" "+r:"")+u),e("#sumo_twilighter_input").val(h).data({"sumome-twilighter-url":r,"sumome-twilighter-via":u,"sumome-twilighter-msg":h}),a()||T()}}function d(e){var t="https://twitter.com/intent/tweet",r=t+"?text="+encodeURIComponent(e)+"&related="+encodeURIComponent("thesumome For your own twitter highlighter plugin");return r}function p(t){var r="",i=document.title,n=u();if(e('meta[property="og:description"]').attr("content")&&(i=e('meta[property="og:description"]').attr("content")),e('meta[property="og:image"]').attr("content")&&(r=e('meta[property="og:image"]').attr("content")),N){var a=e("#sumo_twilighter_input").data("sumome-twilighter-msg");if(a.indexOf(n)<0&&a.match(/https?:\/\//i)){var s=a.split(" ").reverse();s.forEach(function(e){e.match(/^https?:\/\//i)&&(n=e)})}}var o="https://www.facebook.com/dialog/feed?app_id=214248668771590&display=popup",l=o+"&link="+encodeURIComponent(n)+"&caption="+t+"&name="+encodeURIComponent(document.title)+"&description="+encodeURIComponent(i)+"&redirect_uri="+encodeURIComponent("http:"+q.properties.sumoUrl)+"/apps/twilighter/fbshared&picture="+r;return l}function g(t){if(t&&t.length){var r=t.shift(),i=!1,n=!1;e(".sumo_twilighter_highlighted").each(function(t){e(e(".sumo_twilighter_highlighted")[t]).text().indexOf(r.entry)>-1?i=!0:e(e(".sumo_twilighter_highlighted")[t]).closest("[rel~=noshare]").length&&(n=!0)});var a;if(e(r.selector)&&e(r.selector).length)var a=e(r.selector);else if(r.selector){var s=/\#[^\s]+\./g,l=/\#[^\s]+/g,h=r.selector,u=h.match(s);if(u)for(var c=0,d=u.length;d>c;c++)h=h.replace(/\#[^\s]+\./,"[id="+u[c].substring(1,u[c].length-1)+"].");var u=h.match(l);if(u)for(var c=0,d=u.length;d>c;c++)h=h.replace(/\#[^\s]+/,"[id="+u[c].substring(1)+"]");e(h).length&&(a=e(h))}if(a&&!i&&!n){var p=a.html();o(a[0],r),e(".twilighter-"+r.hash).hover(function(){e(".twilighter-"+r.hash).css({cursor:"pointer"}).invert("0.3")},function(){e(".twilighter-"+r.hash).css({cursor:"inherit"}).invert()})}window.setTimeout(function(){g(t)},0)}else e(".sumo_twilighter_shares").mousedown(function(){return!1})}function f(){e(".sumo_twilighter_highlighted").contents().unwrap()}function m(e){return 140-n.txt.getTweetLength(e)}function v(t){for(var r=e(t).attr("class").split(" "),i=0;i