YUI.add("search-url",(function(e,r){var s,t,a=require("hermes-core/flog")(r),h=/^\/search(?:\/.*)?$/,i=/^bw|blackandwhite$/;function o(e){return"number"==typeof e?e.toString():"boolean"==typeof e?e?"1":"0":"string"==typeof e?e:void 0}s=YUI.Env.isServer?require("querystring").stringify:e.QueryString.stringify,(t=function(r,s,h){var i,p,c,n,l;if(this.appContext=s,"string"==typeof r){if(l=r.split("?"),h?this.searchType=h:(c=-1!==(p=l[0].split("/"))[0].indexOf("http")?3:1,n="/"+p.slice(c).join("/"),this.searchType=this.getSearchTypeFromPathname(n)),l=l.length>1?l[1]:"",this.params={},l)try{l=e.QueryString.parse(l),this.params=e.SearchHelper.mapClassicSearchToAPI(l,s)}catch(e){a.warn("malformed query",{err:e,query:l})}}else this.params=e.merge(r),this.searchType=h;for(i in this.params)this.params.hasOwnProperty(i)&&(this.params[i]=o(this.params[i]));this.params.color_codes&&(this.colors=this.params.color_codes.toString().split(",")),this.searchType||this.setSearchType(t.searchTypes.UNDEFINED)}).prototype.setSearchType=function(r){var s=this.getSearchTerm();return this.searchType=r,this.params=this.validateParams(this.params,this.searchType),this.params=e.merge(this.getDefaultParams(this.searchType),this.params),s&&this.setSearchTerm(s),this},t.prototype.getSearchTypeFromPathname=function(e){switch(e=(e=(e=e||this.pathname).toLowerCase()).split("/").join("")){case"searchpeople":return t.searchTypes.PEOPLE;case"searchgroups":return t.searchTypes.GROUPS;default:return t.searchTypes.PHOTOS}},t.prototype.getPathname=function(){var e="/search/";switch(this.searchType){case t.searchTypes.PEOPLE:e+="people/";break;case t.searchTypes.GROUPS:e+="groups/";break;case t.searchTypes.CLASSIC_GROUPS:e="/search_groups.gne";case t.searchTypes.PHOTOS:}return e},t.prototype.validateParams=function(r,s){var a,h,i,o={};switch(r=e.merge(r),s){case t.searchTypes.PEOPLE:(a=e.merge(e.SearchHelper.PEOPLE_SEARCH_API)).text="text";break;case t.searchTypes.GROUPS:a=e.merge(e.SearchHelper.GROUPS_SEARCH_API);break;case t.searchTypes.PHOTOS:a=e.merge(e.SearchHelper.API,e.SearchHelper.UNIFIED_STATE_PARAMS);break;case t.searchTypes.UNDEFINED:default:return r}if(a)for(h in a)void 0!==r[i=a[h]]&&(o[i]=r[i]);return o},t.prototype.getDefaultParams=function(r){var s={};switch(r){case t.searchTypes.PEOPLE:e.SearchHelper.addPeopleParamDefaults(s);break;case t.searchTypes.GROUPS:e.SearchHelper.addGroupsParamDefaults(s);break;case t.searchTypes.PHOTOS:e.SearchHelper.addParamDefaults(s);case t.searchTypes.UNDEFINED:}return s},t.prototype.getAPIParams=function(){return e.merge(this.params)},t.prototype.getAPIParam=function(e){return this.params[e]},t.prototype.setAPIParam=function(e,r){return this.params[e]=o(r),this},t.prototype.removeAPIParam=function(e){return delete this.params[e],this},t.prototype.removeAllAPIParams=function(){return this.params={},this},t.prototype.getSearchTerm=function(){var r=this.params[this.getSearchTermKey(this.searchType)];return r||(r=this.params[e.SearchHelper.API.tags]),r||""},t.prototype.setSearchTerm=function(r){var s=this.getSearchTermKey(this.searchType);return delete this.params[e.SearchHelper.PEOPLE_SEARCH_API.username],delete this.params[e.SearchHelper.GROUPS_SEARCH_API.text],delete this.params[e.SearchHelper.API.text],delete this.params[e.SearchHelper.API.tags],delete this.params.q,this.params[s]=r,this},t.prototype.getSearchTermKey=function(r){switch(r){case t.searchTypes.PEOPLE:return e.SearchHelper.PEOPLE_SEARCH_API.username;case t.searchTypes.GROUPS:return e.SearchHelper.GROUPS_SEARCH_API.text;case t.searchTypes.PHOTOS:default:return this.params[e.SearchHelper.API.tags]||""===this.params[e.SearchHelper.API.tags]?e.SearchHelper.API.tags:e.SearchHelper.API.text}},t.prototype.removeScope=function(){return e.SearchHelper.SEARCH_SCOPE_PARAMS.forEach(function(e){this.removeAPIParam(e)}.bind(this)),this.removeAPIParam(e.SearchHelper.API.excludeUserId),this},t.prototype.resetToUnified=function(){return this.params[e.SearchHelper.UNIFIED_STATE_PARAMS.viewAll]&&(this.removeAPIParam(e.SearchHelper.API.userId),this.removeAPIParam(e.SearchHelper.API.contacts),this.removeAPIParam(e.SearchHelper.API.groupId),this.removeAPIParam(e.SearchHelper.UNIFIED_STATE_PARAMS.albums)),this.removeAPIParam(e.SearchHelper.API.similarityId),this.removeAPIParam(e.SearchHelper.UNIFIED_STATE_PARAMS.viewAll),this},t.prototype.hasAdvancedParams=function(r){return Object.keys(this.params).some((function(s){return-1!==e.SearchHelper.UNIFIED_ADVANCED_PARAMS.indexOf(s)||!r&&-1!==e.SearchHelper.UNIFIED_QUICK_FILTER_PARAMS.indexOf(s)||!r&&-1!==e.SearchHelper.UNIFIED_TOOLBAR_PARAMS.indexOf(s)}))},t.prototype.createNewSearch=function(e){return this.setSearchTerm(e),this.removeScope(),this.searchType!==t.searchTypes.UNDEFINED&&this.searchType!==t.searchTypes.PHOTOS||this.resetToUnified(),this},t.prototype.getURL=function(){var e=this.getId(),r=this.getPathname();return e===t.EMPTY_SEARCH_ID?r:r+"?"+e},t.prototype.getId=function(){var r,a={},h=e.SearchHelper.API;for(r in this.params)h[r]?a[h[r]]=this.params[r]:a[r]=this.params[r];return s(a)||t.EMPTY_SEARCH_ID},t.prototype.clone=function(){return new t(this.params,this.appContext,this.searchType)},t.prototype.setMedia=function(r,s){var t;r||(r=!1),s||(s=!1),t=r&&s?"all":r?"photos":"videos",this.setAPIParam(e.SearchHelper.API.mediaType,t)},t.prototype._syncColors=function(){this.colors&&this.colors.length>0?this.params.color_codes=this.colors.join(","):this.removeAPIParam("color_codes")},t.prototype.addColorCode=function(e){if(e&&e.match(i))return this.clearColorCodes(),this.colors=["bw"],void this._syncColors();this.colors&&-1!==this.colors.indexOf("bw")&&(this.colors=[]),this.colors||(this.colors=[]),-1===this.colors.indexOf(e)&&(this.colors.push(e),this._syncColors())},t.prototype.removeColorCode=function(e){var r;this.colors&&-1!==(r=this.colors.indexOf(e))&&(this.colors.splice(r,1),this._syncColors())},t.prototype.clearColorCodes=function(){this.colors=[],this._syncColors()},t.isSearchUrl=function(e){return h.test(e)},t.prototype.hasSameParams=function(e){if(Object.keys(this.params).length!==Object.keys(e.params).length)return!1;for(let r in this.params)if(!(r in e.params)||e.params[r]!==this.params[r])return!1;return!0},t.searchTypes={UNDEFINED:0,PHOTOS:1,PEOPLE:2,GROUPS:3,CLASSIC_GROUPS:4},t.EMPTY_SEARCH_ID="-1",e.SearchUrl=t}),"@VERSION@",{requires:["search-helper","querystring-parse-simple","querystring-stringify-simple"],optionalRequires:["hermes-core"]});YUI.add("hermes-template-search-pill",(function(l,n){var e=l.Template.Handlebars.revive({1:function(l,n,e,a,t){var o,r,s=null!=n?n:l.nullContext||{},i=l.hooks.helperMissing,c="function",u=l.escapeExpression,m=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return'<li class="search-pill" '+(null!=(o=m(e,"if").call(s,null!=n?m(n,"id"):n,{name:"if",hash:{},fn:l.program(2,t,0),inverse:l.noop,data:t,loc:{start:{line:2,column:24},end:{line:2,column:50}}}))?o:"")+' title="'+u(typeof(r=null!=(r=m(e,"name")||(null!=n?m(n,"name"):n))?r:i)===c?r.call(s,{name:"name",hash:{},data:t,loc:{start:{line:2,column:58},end:{line:2,column:66}}}):r)+'">\n\t<span class="search-pill-name">'+u(typeof(r=null!=(r=m(e,"name")||(null!=n?m(n,"name"):n))?r:i)===c?r.call(s,{name:"name",hash:{},data:t,loc:{start:{line:3,column:32},end:{line:3,column:40}}}):r)+'</span>\n\t<div class="search-pill-divider"></div>\n\t<span class="search-pill-second-name" title="'+u(typeof(r=null!=(r=m(e,"secondName")||(null!=n?m(n,"secondName"):n))?r:i)===c?r.call(s,{name:"secondName",hash:{},data:t,loc:{start:{line:5,column:46},end:{line:5,column:60}}}):r)+'">'+u(typeof(r=null!=(r=m(e,"secondName")||(null!=n?m(n,"secondName"):n))?r:i)===c?r.call(s,{name:"secondName",hash:{},data:t,loc:{start:{line:5,column:62},end:{line:5,column:76}}}):r)+'</span>\n\t<i class="search-pill-remover"></i>\n</li>\n'},2:function(l,n,e,a,t){var o,r=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return"id="+l.escapeExpression("function"==typeof(o=null!=(o=r(e,"id")||(null!=n?r(n,"id"):n))?o:l.hooks.helperMissing)?o.call(null!=n?n:l.nullContext||{},{name:"id",hash:{},data:t,loc:{start:{line:2,column:37},end:{line:2,column:43}}}):o)},4:function(l,n,e,a,t){var o,r,s=null!=n?n:l.nullContext||{},i=l.hooks.helperMissing,c="function",u=l.escapeExpression,m=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return'<li class="search-pill" '+(null!=(o=m(e,"if").call(s,null!=n?m(n,"id"):n,{name:"if",hash:{},fn:l.program(2,t,0),inverse:l.noop,data:t,loc:{start:{line:9,column:24},end:{line:9,column:50}}}))?o:"")+' title="'+u(typeof(r=null!=(r=m(e,"name")||(null!=n?m(n,"name"):n))?r:i)===c?r.call(s,{name:"name",hash:{},data:t,loc:{start:{line:9,column:58},end:{line:9,column:66}}}):r)+'"><span class="search-pill-name">'+u(typeof(r=null!=(r=m(e,"name")||(null!=n?m(n,"name"):n))?r:i)===c?r.call(s,{name:"name",hash:{},data:t,loc:{start:{line:9,column:99},end:{line:9,column:107}}}):r)+'</span><i class="search-pill-remover"></i></li>\n'},compiler:[8,">= 4.3.0"],main:function(l,n,e,a,t){var o,r=l.lookupProperty||function(l,n){if(Object.prototype.hasOwnProperty.call(l,n))return l[n]};return null!=(o=r(e,"if").call(null!=n?n:l.nullContext||{},null!=n?r(n,"combo"):n,{name:"if",hash:{},fn:l.program(1,t,0),inverse:l.program(4,t,0),data:t,loc:{start:{line:1,column:0},end:{line:10,column:7}}}))?o:""},useData:!0}),a={};l.Array.each([],(function(n){var e=l.Template.get("hermes/"+n);e&&(a[n]=e)})),l.Template.register("hermes/search-pill",(function(n,t){return(t=t||{}).partials=t.partials?l.merge(a,t.partials):a,e(n,t)}))}),"@VERSION@",{requires:["template-base","handlebars-base"]});YUI.add("hermes-template-search-autosuggest-field",(function(e,l){var a=e.Template.Handlebars.revive({1:function(e,l,a,n,t){return'data-autosuggest="disabled"'},3:function(e,l,a,n,t){var s,r=e.lookupProperty||function(e,l){if(Object.prototype.hasOwnProperty.call(e,l))return e[l]};return null!=(s=e.invokePartial(r(n,"search-pill"),l,{name:"search-pill",data:t,indent:"\t\t",helpers:a,partials:n,decorators:e.decorators}))?s:""},5:function(e,l,a,n,t){var s=e.lookupProperty||function(e,l){if(Object.prototype.hasOwnProperty.call(e,l))return e[l]};return"\t\t"+e.escapeExpression((s(a,"outlet")||l&&s(l,"outlet")||e.hooks.helperMissing).call(null!=l?l:e.nullContext||{},null!=l?s(l,"search-w-navselecta-view"):l,{name:"outlet",hash:{},data:t,loc:{start:{line:13,column:2},end:{line:13,column:37}}}))+"\n"},7:function(e,l,a,n,t){var s,r,o=null!=l?l:e.nullContext||{},i=e.hooks.helperMissing,c=e.escapeExpression,u=e.lookupProperty||function(e,l){if(Object.prototype.hasOwnProperty.call(e,l))return e[l]};return'\t\t<input type="text" id="search-field" class="autosuggest-selectable-item"'+(null!=(s=u(a,"unless").call(o,null!=l?u(l,"hasPills"):l,{name:"unless",hash:{},fn:e.program(8,t,0),inverse:e.noop,data:t,loc:{start:{line:15,column:74},end:{line:15,column:177}}}))?s:"")+' name="text" value="'+c("function"==typeof(r=null!=(r=u(a,"searchTerm")||(null!=l?u(l,"searchTerm"):l))?r:i)?r.call(o,{name:"searchTerm",hash:{},data:t,loc:{start:{line:15,column:197},end:{line:15,column:211}}}):r)+'" autocomplete="off" aria-label="'+c((u(a,"intlMessage")||l&&u(l,"intlMessage")||i).call(o,{name:"intlMessage",hash:{intlName:"search.SEARCH"},data:t,loc:{start:{line:15,column:244},end:{line:15,column:284}}}))+'" role="textbox">\n'},8:function(e,l,a,n,t){var s=e.lookupProperty||function(e,l){if(Object.prototype.hasOwnProperty.call(e,l))return e[l]};return' placeholder="'+e.escapeExpression((s(a,"intlMessage")||l&&s(l,"intlMessage")||e.hooks.helperMissing).call(null!=l?l:e.nullContext||{},{name:"intlMessage",hash:{intlName:"search.PHOTOS_PEOPLE_OR_GROUPS"},data:t,loc:{start:{line:15,column:108},end:{line:15,column:165}}}))+'"'},compiler:[8,">= 4.3.0"],main:function(e,l,a,n,t){var s,r,o,i=null!=l?l:e.nullContext||{},c=e.hooks.helperMissing,u=e.escapeExpression,h=e.lookupProperty||function(e,l){if(Object.prototype.hasOwnProperty.call(e,l))return e[l]},p='<form method="get" action="/search/" role="search" class="search-form" '+(null!=(s=h(a,"if").call(i,null!=l?h(l,"hasPills"):l,{name:"if",hash:{},fn:e.program(1,t,0),inverse:e.noop,data:t,loc:{start:{line:1,column:71},end:{line:1,column:121}}}))?s:"")+'>\n\t<label data-track="gnSearchSearchIcon" aria-label="'+u((h(a,"intlMessage")||l&&h(l,"intlMessage")||c).call(i,{name:"intlMessage",hash:{intlName:"search.SEARCH"},data:t,loc:{start:{line:2,column:52},end:{line:2,column:92}}}))+'">\n\t\t<svg class="icon search-icon" style="width: 22px; height: 22px;" data-track="gnSearchSearchIcon" aria-label="'+u((h(a,"intlMessage")||l&&h(l,"intlMessage")||c).call(i,{name:"intlMessage",hash:{intlName:"search.SEARCH"},data:t,loc:{start:{line:4,column:111},end:{line:4,column:151}}}))+'"><use xlink:href="#icon-search"></use></svg>\n\t\t<input type="submit" data-track="gnSearchSearchIcon" class="search-icon-button" tabindex="-1" aria-label="'+u((h(a,"intlMessage")||l&&h(l,"intlMessage")||c).call(i,{name:"intlMessage",hash:{intlName:"search.SEARCH"},data:t,loc:{start:{line:5,column:108},end:{line:5,column:148}}}))+'" role="button">\n\t</label>\n\t<ul class="search-pillbox">\n';return r=null!=(r=h(a,"pills")||(null!=l?h(l,"pills"):l))?r:c,o={name:"pills",hash:{},fn:e.program(3,t,0),inverse:e.noop,data:t,loc:{start:{line:8,column:1},end:{line:10,column:11}}},s="function"==typeof r?r.call(i,o):r,h(a,"pills")||(s=e.hooks.blockHelperMissing.call(l,s,o)),null!=s&&(p+=s),p+"\t</ul>\n"+(null!=(s=(h(a,"isFlipped")||l&&h(l,"isFlipped")||c).call(i,"enable-nav-selecta",{name:"isFlipped",hash:{},fn:e.program(5,t,0),inverse:e.program(7,t,0),data:t,loc:{start:{line:12,column:1},end:{line:16,column:15}}}))?s:"")+"</form>\n\n"+u((h(a,"outlet")||l&&h(l,"outlet")||c).call(i,null!=l?h(l,"search-autosuggest-items-list-view"):l,{name:"outlet",hash:{},data:t,loc:{start:{line:19,column:0},end:{line:19,column:45}}}))+"\n"},usePartial:!0,useData:!0}),n={};e.Array.each(["search-pill"],(function(l){var a=e.Template.get("hermes/"+l);a&&(n[l]=a)})),e.Template.register("hermes/search-autosuggest-field",(function(l,t){return(t=t||{}).partials=t.partials?e.merge(n,t.partials):n,a(l,t)}))}),"@VERSION@",{requires:["template-base","handlebars-base","hermes-template-search-pill"]});YUI.add("hermes-lang-autosuggest_zh-hk",(function(e,O){e.Intl.add("hermes/autosuggest","zh-HK",{MEMBER:[{type:0,value:"1 位會員"}],MEMBERS:[{type:2,value:"count",style:null},{type:0,value:" 會員"}],SEARCH_PEOPLE:[{type:0,value:"搜尋其他人"}],SEARCH_GROUPS:[{type:0,value:"搜尋群組"}],SEARCH_PHOTOS:[{type:0,value:"搜尋相片"}],MORE:[{type:0,value:"更多"}],MORE_SEARCH_TYPES:[{type:0,value:"更多搜尋類型"}],MORE_OPTIONS:[{type:0,value:"更多選項"}],SEARCH_YOUR_PHOTOS:[{type:0,value:"搜尋你的相片"}],SEARCH_EVERYONES_PHOTOS:[{type:0,value:"搜尋所有人的相片"}],SEARCH_CONTACTS_PHOTOS:[{type:0,value:"搜尋自己人的相片"}],YOUR_PHOTOS:[{type:0,value:"你的相片"}],EVERYONES_PHOTOS:[{type:0,value:"所有人的相片"}],YOUR_CONTACTS_PHOTOS:[{type:0,value:"自己人的相片"}],SEARCH_USER_PHOTOS:[{type:0,value:"搜尋 "},{type:1,value:"name"},{type:0,value:" 的相片"}],SEARCH_GROUP_PHOTOS:[{type:0,value:"搜尋 "},{type:1,value:"name"},{type:0,value:" 中的相片"}],YOUR_PHOTOSTREAM:[{type:0,value:"你的所有相片"}],YOUR_ALBUMS:[{type:0,value:"你的相簿"}],SETS:[{type:0,value:"相片集"}],CAMERA_ROLL:[{type:0,value:"相機膠卷"}],ORGANIZE:[{type:0,value:"管理"}],YOUR_COLLECTIONS:[{type:0,value:"你的珍藏集"}],YOUR_GALLERIES:[{type:0,value:"你的博覽館"}],YOUR_ARCHIVES:[{type:0,value:"你的封存"}],YOUR_TAGS:[{type:0,value:"你的標籤"}],YOUR_MAP:[{type:0,value:"你的地圖"}],YOUR_FAVORITES:[{type:0,value:"你的最愛"}],YOUR_STATS:[{type:0,value:"你的統計資料"}],GRAPHS:[{type:0,value:"統計圖表"}],REFERRERS:[{type:0,value:"訪客來源"}],VIEWS:[{type:0,value:"檢視次數"}],YOUR_APPS:[{type:0,value:"你的應用程式"}],RECENT_ACTIVITY:[{type:0,value:"近期活動"}],PHOTOS_OF_YOU:[{type:0,value:"你的相片"}],UPLOAD_PHOTOS:[{type:0,value:"上傳相片"}],YOUR_ACCOUNT:[{type:0,value:"你的帳戶"}],SETTINGS:[{type:0,value:"設定"}],PREFERENCES:[{type:0,value:"偏好設定"}],YOUR_PROFILE:[{type:0,value:"你的個人檔案"}],FLICKR_MAIL:[{type:0,value:"FlickrMail"}],ORGANIZR:[{type:0,value:"Organizr"}],CREATE:[{type:0,value:"建立"}],WALL_ART:[{type:0,value:"相片掛畫"}],PHOTO_BOOKS:[{type:0,value:"實體相簿"}],CURATED_COLLECTION:[{type:0,value:"精選授權相片"}],PHOTOS_OF_YOUR_CONTACTS:[{type:0,value:"你聯絡人的相片"}],FOLLOWING:[{type:0,value:"正在追蹤"}],CONTACTS_LIST:[{type:0,value:"聯絡人清單"}],FOLLOWERS:[{type:0,value:"追蹤者"}],FIND_YOUR_FRIENDS:[{type:0,value:"尋找朋友"}],INVITE_YOUR_FRIENDS:[{type:0,value:"邀請朋友"}],INVITE_HISTORY:[{type:0,value:"邀請紀錄"}],GUEST_PASS_HISTORY:[{type:0,value:"遊客身份紀錄"}],YOUR_GROUPS:[{type:0,value:"你的群組"}],RECENT_GROUP_DISCUSSIONS:[{type:0,value:"最近的群組討論"}],CREATE_A_GROUP:[{type:0,value:"建立群組"}],EXPLORE:[{type:0,value:"發掘"}],POPULAR_TAGS:[{type:0,value:"熱門標籤"}],GALLERIES:[{type:0,value:"博覽館"}],ANALOG:[{type:0,value:"類似"}],FILM:[{type:0,value:"菲林 (底片)"}],WORLD_MAP:[{type:0,value:"世界地圖相集"}],PLACES:[{type:0,value:"景點"}],THE_COMMONS:[{type:0,value:"公眾相簿計畫"}],CREATIVE_COMMONS:[{type:0,value:"創用CC"}],CC:[{type:0,value:"CC"}],LICENSE:[{type:0,value:"授權"}],THE_FLICKR_BLOG:[{type:0,value:"Flickr 網誌"}],THE_FLICKR_CODE_BLOG:[{type:0,value:"Flickr Code 網誌"}],THE_APP_GARDEN:[{type:0,value:"App Garden"}],CAMERA_FINDER:[{type:0,value:"相機搜尋器"}],DEVELOPER_GUIDE:[{type:0,value:"開發人員指南"}],API:[{type:0,value:"API"}],PROGRAMMING:[{type:0,value:"程式設計"}],CODE:[{type:0,value:"代碼"}],DOCUMENTATION:[{type:0,value:"說明文件"}],DEVELOPER:[{type:0,value:"開發人員"}],API_DOCUMENTATION:[{type:0,value:"API 說明文件"}],FEEDS:[{type:0,value:"Feed"}],RSS:[{type:0,value:"RSS"}],ATOM:[{type:0,value:"Atom"}],DATA:[{type:0,value:"資料"}],HELP:[{type:0,value:"服務中心"}],COMMUNITY_GUIDELINES:[{type:0,value:"社群指南"}],HELP_FORUM:[{type:0,value:"說明討論區"}],FAQ:[{type:0,value:"常見問題"}],FREQUENTLY_ASKED_QUESTIONS:[{type:0,value:"常見問題"}],TOOLS:[{type:0,value:"工具"}],UPLOAD:[{type:0,value:"上傳"}],MAC:[{type:0,value:"Mac"}],WINDOWS:[{type:0,value:"Windows"}],ABOUT_FLICKR:[{type:0,value:"關於 Flickr"}],STAFF:[{type:0,value:"職員"}],JOBS_AT_FLICKR:[{type:0,value:"Flickr 工作機會"}],CAREER:[{type:0,value:"職業"}],TWENTY_UNDER_TWENTY:[{type:0,value:"20 Under 20"}],ME:[{type:0,value:"我"}],FLICKR_MARKETPLACE:[{type:0,value:"Flickr 市集"}],NOTIFICATIONS:[{type:0,value:"通知"}]})}),"@VERSION@",{requires:["intl"]});YUI.add("text-data-accentfold",function(e,t){e.namespace("Text.Data").AccentFold={0:/[\u2070\u2080\u24EA\uFF10]/gi,1:/[\u00B9\u2081\u2460\uFF11]/gi,2:/[\u00B2\u2082\u2461\uFF12]/gi,3:/[\u00B3\u2083\u2462\uFF13]/gi,4:/[\u2074\u2084\u2463\uFF14]/gi,5:/[\u2075\u2085\u2464\uFF15]/gi,6:/[\u2076\u2086\u2465\uFF16]/gi,7:/[\u2077\u2087\u2466\uFF17]/gi,8:/[\u2078\u2088\u2467\uFF18]/gi,9:/[\u2079\u2089\u2468\uFF19]/gi,a:/[\u00AA\u00E0-\u00E5\u0101\u0103\u0105\u01CE\u01DF\u01E1\u01FB\u0201\u0203\u0227\u1D43\u1E01\u1E9A\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u24D0\uFF41]/gi,b:/[\u1D47\u1E03\u1E05\u1E07\u24D1\uFF42]/gi,c:/[\u00E7\u0107\u0109\u010B\u010D\u1D9C\u1E09\u24D2\uFF43]/gi,d:/[\u010F\u1D48\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u217E\u24D3\uFF44]/gi,e:/[\u00E8-\u00EB\u0113\u0115\u0117\u0119\u011B\u0205\u0207\u0229\u1D49\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u2091\u212F\u24D4\uFF45]/gi,f:/[\u1DA0\u1E1F\u24D5\uFF46]/gi,g:/[\u011D\u011F\u0121\u0123\u01E7\u01F5\u1D4D\u1E21\u210A\u24D6\uFF47]/gi,h:/[\u0125\u021F\u02B0\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E96\u210E\u24D7\uFF48]/gi,i:/[\u00EC-\u00EF\u0129\u012B\u012D\u012F\u0133\u01D0\u0209\u020B\u1D62\u1E2D\u1E2F\u1EC9\u1ECB\u2071\u2139\u2170\u24D8\uFF49]/gi,j:/[\u0135\u01F0\u02B2\u24D9\u2C7C\uFF4A]/gi,k:/[\u0137\u01E9\u1D4F\u1E31\u1E33\u1E35\u24DA\uFF4B]/gi,l:/[\u013A\u013C\u013E\u0140\u01C9\u02E1\u1E37\u1E39\u1E3B\u1E3D\u2113\u217C\u24DB\uFF4C]/gi,m:/[\u1D50\u1E3F\u1E41\u1E43\u217F\u24DC\uFF4D]/gi,n:/[\u00F1\u0144\u0146\u0148\u01F9\u1E45\u1E47\u1E49\u1E4B\u207F\u24DD\uFF4E]/gi,o:/[\u00BA\u00F2-\u00F6\u014D\u014F\u0151\u01A1\u01D2\u01EB\u01ED\u020D\u020F\u022B\u022D\u022F\u0231\u1D52\u1E4D\u1E4F\u1E51\u1E53\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u2092\u2134\u24DE\uFF4F]/gi,p:/[\u1D56\u1E55\u1E57\u24DF\uFF50]/gi,q:/[\u02A0\u24E0\uFF51]/gi,r:/[\u0155\u0157\u0159\u0211\u0213\u02B3\u1D63\u1E59\u1E5B\u1E5D\u1E5F\u24E1\uFF52]/gi,s:/[\u015B\u015D\u015F\u0161\u017F\u0219\u02E2\u1E61\u1E63\u1E65\u1E67\u1E69\u1E9B\u24E2\uFF53]/gi,t:/[\u0163\u0165\u021B\u1D57\u1E6B\u1E6D\u1E6F\u1E71\u1E97\u24E3\uFF54]/gi,u:/[\u00F9-\u00FC\u0169\u016B\u016D\u016F\u0171\u0173\u01B0\u01D4\u01D6\u01D8\u01DA\u01DC\u0215\u0217\u1D58\u1D64\u1E73\u1E75\u1E77\u1E79\u1E7B\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u24E4\uFF55]/gi,v:/[\u1D5B\u1D65\u1E7D\u1E7F\u2174\u24E5\uFF56]/gi,w:/[\u0175\u02B7\u1E81\u1E83\u1E85\u1E87\u1E89\u1E98\u24E6\uFF57]/gi,x:/[\u02E3\u1E8B\u1E8D\u2093\u2179\u24E7\uFF58]/gi,y:/[\u00FD\u00FF\u0177\u0233\u02B8\u1E8F\u1E99\u1EF3\u1EF5\u1EF7\u1EF9\u24E8\uFF59]/gi,z:/[\u017A\u017C\u017E\u1DBB\u1E91\u1E93\u1E95\u24E9\uFF5A]/gi}},"3.16.0",{requires:["yui-base"]});
YUI.add("text-accentfold",function(e,t){var n=e.Array,r=e.Text,i=r.Data.AccentFold,s={canFold:function(e){var t;for(t in i)if(i.hasOwnProperty(t)&&e.search(i[t])!==-1)return!0;return!1},compare:function(e,t,n){var r=s.fold(e),i=s.fold(t);return n?!!n(r,i):r===i},filter:function(e,t){return n.filter(e,function(e){return t(s.fold(e))})},fold:function(t){return e.Lang.isArray(t)?n.map(t,s.fold):(t=t.toLowerCase(),e.Object.each(i,function(e,n){t=t.replace(e,n)}),t)}};r.AccentFold=s},"3.16.0",{requires:["array-extras","text-data-accentfold"]});
YUI.add("autosuggest-context-results-models",(function(t){function e(t){e.superclass.constructor.call(this,t)}t.Models[this.name]=e,t.extend(e,t.FlickrModelRegistry,{name:this.name,langBundles:this.details.langBundles,TAG_ITEM_TYPE:0,PERSON_ITEM_TYPE:1,GROUP_ITEM_TYPE:2,PAGE_ITEM_TYPE:3,processItem:function(e,s){var l;if(e.type=s,e.titleIntlKey&&(e.title=this.intlMessage({intlName:e.titleIntlKey})),e.aliasIntlKeys)for(e.aliases=e.aliases||[],l=0;l<e.aliasIntlKeys.length;l++)e.aliases.push(this.intlMessage({intlName:e.aliasIntlKeys[l]}));return s===this.TAG_ITEM_TYPE||s===this.PAGE_ITEM_TYPE?e.key=e.title:e.key=e.nsid,e.matches&&(e.matches=e.matches.map((function(e){return e.token=t.Text.AccentFold.fold(e.token),e}))),e},remote:{read:function(e){return t.ModelFetchers["flickr-autosuggest-getContextResults-fetcher"].run(e,this.appContext)}},attributes:{contextId:{writeOnce:"initOnly"},contextType:{writeOnce:"initOnly"},tags:{setter:function(t){var e,s;for(e=0,s=t.length;e<s;e++)this.processItem(t[e],this.TAG_ITEM_TYPE);return t}},people:{setter:function(t){var e,s;for(e=0,s=t.length;e<s;e++)this.processItem(t[e],this.PERSON_ITEM_TYPE);return t}},groups:{setter:function(t){var e,s;for(e=0,s=t.length;e<s;e++)this.processItem(t[e],this.GROUP_ITEM_TYPE);return t}},pages:{readOnly:!0,getter:function(t){var e,s;for(e=0,s=t.length;e<s;e++)this.processItem(t[e],this.PAGE_ITEM_TYPE);return t},defaultValue:[{url:"/photos/me/",titleIntlKey:"autosuggest.YOUR_PHOTOSTREAM",aliasIntlKeys:["autosuggest.ME"]},{url:"/me/albums/",titleIntlKey:"autosuggest.YOUR_ALBUMS",aliasIntlKeys:["autosuggest.SETS"]},{url:"/photos/me/collections/",titleIntlKey:"autosuggest.YOUR_COLLECTIONS",aliasIntlKeys:[]},{url:"/photos/me/galleries/",titleIntlKey:"autosuggest.YOUR_GALLERIES",aliasIntlKeys:[]},{url:"/photos/me/archives/",titleIntlKey:"autosuggest.YOUR_ARCHIVES",aliasIntlKeys:[]},{url:"/photos/me/tags/",titleIntlKey:"autosuggest.YOUR_TAGS",aliasIntlKeys:[]},{url:"/photos/me/map/",titleIntlKey:"autosuggest.YOUR_MAP",aliasIntlKeys:[]},{url:"/me/favorites/",titleIntlKey:"autosuggest.YOUR_FAVORITES",aliasIntlKeys:[]},{url:"/photos/me/stats/",titleIntlKey:"autosuggest.YOUR_STATS",aliasIntlKeys:["autosuggest.GRAPHS","autosuggest.REFERRERS","autosuggest.VIEWS"]},{url:"/services/apps/by/me/",titleIntlKey:"autosuggest.YOUR_APPS",aliasIntlKeys:[]},{url:"/notifications/",titleIntlKey:"autosuggest.NOTIFICATIONS",aliasIntlKeys:[]},{url:"/photosof/me/",titleIntlKey:"autosuggest.PHOTOS_OF_YOU",aliasIntlKeys:["autosuggest.ME"]},{url:"/photos/upload/",titleIntlKey:"autosuggest.UPLOAD_PHOTOS",aliasIntlKeys:[]},{url:"/account/",titleIntlKey:"autosuggest.YOUR_ACCOUNT",aliasIntlKeys:["autosuggest.SETTINGS","autosuggest.PREFERENCES"]},{url:"/people/me/",titleIntlKey:"autosuggest.YOUR_PROFILE",aliasIntlKeys:["autosuggest.ME"]},{url:"/photos/organize/",titleIntlKey:"autosuggest.ORGANIZR",aliasIntlKeys:[]},{url:"/photos/contacts/",titleIntlKey:"autosuggest.YOUR_CONTACTS_PHOTOS",aliasIntlKeys:[]},{url:"/photosof/contacts/",titleIntlKey:"autosuggest.PHOTOS_OF_YOUR_CONTACTS",aliasIntlKeys:[]},{url:"/people/me/contacts/",titleIntlKey:"autosuggest.FOLLOWING",aliasIntlKeys:["autosuggest.CONTACTS_LIST"]},{url:"/people/me/contacts/rev/",titleIntlKey:"autosuggest.FOLLOWERS",aliasIntlKeys:[]},{url:"/import/people/",titleIntlKey:"autosuggest.FIND_YOUR_FRIENDS",aliasIntlKeys:[]},{url:"/invite/",titleIntlKey:"autosuggest.INVITE_YOUR_FRIENDS",aliasIntlKeys:[]},{url:"/invite/history/",titleIntlKey:"autosuggest.INVITE_HISTORY",aliasIntlKeys:[]},{url:"/invite/history/guests/",titleIntlKey:"autosuggest.GUEST_PASS_HISTORY",aliasIntlKeys:[]},{url:"/groups/",titleIntlKey:"autosuggest.YOUR_GROUPS",aliasIntlKeys:[]},{url:"/recent.gne/",titleIntlKey:"autosuggest.RECENT_GROUP_DISCUSSIONS",aliasIntlKeys:[]},{url:"/group_create.gne/",titleIntlKey:"autosuggest.CREATE_A_GROUP",aliasIntlKeys:[]},{url:"/explore/",titleIntlKey:"autosuggest.EXPLORE",aliasIntlKeys:[]},{url:"/photos/tags/",titleIntlKey:"autosuggest.POPULAR_TAGS",aliasIntlKeys:[]},{url:"/galleries/",titleIntlKey:"autosuggest.GALLERIES",aliasIntlKeys:[]},{url:"/analog/",titleIntlKey:"autosuggest.ANALOG",aliasIntlKeys:["autosuggest.FILM"]},{url:"/map/",titleIntlKey:"autosuggest.WORLD_MAP",aliasIntlKeys:[]},{url:"/places/",titleIntlKey:"autosuggest.PLACES",aliasIntlKeys:[]},{url:"/marketplace/",titleIntlKey:"autosuggest.FLICKR_MARKETPLACE",aliasIntlKeys:[]},{url:"/commons/",titleIntlKey:"autosuggest.THE_COMMONS",aliasIntlKeys:[]},{url:"/creativecommons/",titleIntlKey:"autosuggest.CREATIVE_COMMONS",aliasIntlKeys:["autosuggest.CC","autosuggest.LICENSE"]},{url:"/services/",titleIntlKey:"autosuggest.THE_APP_GARDEN",aliasIntlKeys:[]},{url:"/cameras/",titleIntlKey:"autosuggest.CAMERA_FINDER",aliasIntlKeys:[]},{url:"/services/api/",titleIntlKey:"autosuggest.API_DOCUMENTATION",aliasIntlKeys:["autosuggest.PROGRAMMING","autosuggest.CODE","autosuggest.DEVELOPER"]},{url:"/services/developer/",titleIntlKey:"autosuggest.DEVELOPER_GUIDE",aliasIntlKeys:["autosuggest.API","autosuggest.PROGRAMMING","autosuggest.CODE","autosuggest.DOCUMENTATION"]},{url:"/services/feeds/",titleIntlKey:"autosuggest.FEEDS",aliasIntlKeys:["autosuggest.RSS","autosuggest.ATOM","autosuggest.DATA"]},{url:"/help/",titleIntlKey:"autosuggest.HELP",aliasIntlKeys:[]},{url:"/help/guidelines/",titleIntlKey:"autosuggest.COMMUNITY_GUIDELINES",aliasIntlKeys:[]},{url:"/help/forum/",titleIntlKey:"autosuggest.HELP_FORUM",aliasIntlKeys:[]},{url:"/tools/",titleIntlKey:"autosuggest.TOOLS",aliasIntlKeys:["autosuggest.UPLOAD","autosuggest.MAC","autosuggest.WINDOWS"]},{url:"/about/",titleIntlKey:"autosuggest.ABOUT_FLICKR",aliasIntlKeys:["autosuggest.STAFF"]},{url:"/mail/",titleIntlKey:"autosuggest.FLICKR_MAIL",aliasIntlKeys:[]},{url:"/create/",titleIntlKey:"autosuggest.CREATE",aliasIntlKeys:["autosuggest.WALL_ART","autosuggest.PHOTO_BOOKS"]},{url:"/cameraroll/",titleIntlKey:"autosuggest.CAMERA_ROLL",aliasIntlKeys:["autosuggest.ORGANIZE"]},{url:"http://blog.flickr.net",titleIntlKey:"autosuggest.THE_FLICKR_BLOG",aliasIntlKeys:[]},{url:"http://code.flickr.net",titleIntlKey:"autosuggest.THE_FLICKR_CODE_BLOG",aliasIntlKeys:["autosuggest.API","autosuggest.PROGRAMMING","autosuggest.CODE","autosuggest.DEVELOPER"]},{url:"/jobs/",titleIntlKey:"autosuggest.JOBS_AT_FLICKR",aliasIntlKeys:["autosuggest.CAREER"]}]}}})}),"@VERSION@",{requires:["flickr-model-registry","flickr-autosuggest-getContextResults-fetcher","text-accentfold"],langBundles:["autosuggest"]});YUI.add("flickr-autosuggest-getContextResults-fetcher",(function(e,t){"use strict";e.namespace("ModelFetchers")["flickr-autosuggest-getContextResults-fetcher"]={run:function(s,r){var o=this,u=this._processParams(s);return e.Promise.all([r.callAPI("flickr.autosuggest.getContextResults",u),r.getModelRegistry("autosuggest-context-results-models")]).then((function(t){return o._processResponse(t,e.merge(u,s))}),e.FetcherErrorLogger(t))},_processParams:function(t){var s=t.id.split("_");return{extras:e.APIHelper.request.getRebootPhotoExtras(),context_id:s[0],context_type:s[1]}},_processResponse:function(e,t){var s,r=e[0],o=e[1];if(s={id:t.id,contextId:t.context_id,contextType:t.context_type,tags:r.results.tags||[],people:r.results.people||[],groups:r.results.groups||[]},!r.results)throw new Error("No `results` property returned by API.");return o.add(s)}}}),"@VERSION@",{requires:["flickr-promise","api-helper"],optional:["autosuggest-context-results-models"]});