1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[87686],{27648:function(e,t,r){"use strict";r.d(t,{default:function(){return a.a}});var n=r(72972),a=r.n(n)},99376:function(e,t,r){"use strict";var n=r(35475);r.o(n,"permanentRedirect")&&r.d(t,{permanentRedirect:function(){return n.permanentRedirect}}),r.o(n,"useParams")&&r.d(t,{useParams:function(){return n.useParams}}),r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}})},40257:function(e,t,r){"use strict";var n,a;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(a=r.g.process)?void 0:a.env)?r.g.process:r(44227)},44227:function(e){!function(){var t={229:function(e){var t,r,n,a=e.exports={};function s(){throw Error("setTimeout has not been defined")}function l(){throw Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===s||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:s}catch(e){t=s}try{r="function"==typeof clearTimeout?clearTimeout:l}catch(e){r=l}}();var o=[],c=!1,u=-1;function d(){c&&n&&(c=!1,n.length?o=n.concat(o):u=-1,o.length&&h())}function h(){if(!c){var e=i(d);c=!0;for(var t=o.length;t;){for(n=o,o=[];++u<t;)n&&n[u].run();u=-1,t=o.length}n=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===l||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}a.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];o.push(new p(e,t)),1!==o.length||c||i(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=m,a.addListener=m,a.once=m,a.off=m,a.removeListener=m,a.removeAllListeners=m,a.emit=m,a.prependListener=m,a.prependOnceListener=m,a.listeners=function(e){return[]},a.binding=function(e){throw Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw Error("process.chdir is not supported")},a.umask=function(){return 0}}},r={};function n(e){var a=r[e];if(void 0!==a)return a.exports;var s=r[e]={exports:{}},l=!0;try{t[e](s,s.exports,n),l=!1}finally{l&&delete r[e]}return s.exports}n.ab="//";var a=n(229);e.exports=a}()},53611:function(e,t,r){"use strict";r.d(t,{HomeCategoryBrowser:function(){return o}});var n=r(57437),a=r(2265),s=r(73320),l=r(45860),i=r(91339);function o(e){var t;let{chips:r}=e,[o,c]=(0,a.useState)(null),[u,d]=(0,a.useState)(null),[h,p]=(0,a.useState)(!1),m=(0,a.useRef)(!1),f=(0,a.useCallback)(async()=>{if(o)return o;if(m.current)return null;m.current=!0;try{var e;let t=await fetch("/api/public/nav");if(!t.ok)return null;let r=await t.json(),n=(null!==(e=null==r?void 0:r.categories)&&void 0!==e?e:[]).map(e=>{var t,r,n;let a=t=>{var r,n;return(null!==(n=null===(r=e.groups)||void 0===r?void 0:r[t])&&void 0!==n?n:[]).map(e=>{var t;return{...e,href:(0,s.gu)(null==e?void 0:e.slug,null==e?void 0:e.label,null!==(t=null==e?void 0:e.href)&&void 0!==t?t:null)}}).filter(e=>(null==e?void 0:e.href)&&(null==e?void 0:e.linkable)!==!1).map(e=>{var r,n,a,s;return{slug:String(e.slug),label:String(e.label),brand:null!==(r=e.brand)&&void 0!==r?r:null,state:String(null!==(n=e.state)&&void 0!==n?n:t),stateLabel:null!==(a=e.stateLabel)&&void 0!==a?a:null,href:e.href,linkable:!0,price:null!==(s=e.price)&&void 0!==s?s:null,reportDates:Array.isArray(e.reportDates)?e.reportDates:[]}})};return{l1:String(null!==(t=e.l1)&&void 0!==t?t:""),label:String(null!==(r=e.label)&&void 0!==r?r:""),href:String(null!==(n=e.href)&&void 0!==n?n:""),available:a("out_now"),upcoming:[...a("announced"),...a("rumoured")]}});return c(n),n}catch(e){return null}finally{m.current=!1}}
1,[o]),g=(0,a.useCallback)(async(e,t)=>{if(!e.metaKey&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&0===e.button){if(e.preventDefault(),p(!1),u===t){d(null);return}if(!await f()){window.location.href=t;return}d(t)}},[u,f]),b=null!==(t=null==o?void 0:o.find(e=>e.href===u))&&void 0!==t?t:null,v=b?[...b.available,...b.upcoming]:[],x=h?v:v.slice(0,4);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("nav",{className:"ah-wrap ah-chips","aria-label":"Browse by category",children:r.map(e=>(0,n.jsx)("a",{className:"ah-chip".concat(u===e.href?" is-on":""),href:e.href,"aria-expanded":u===e.href,onClick:t=>void g(t,e.href),children:e.label},e.href))}),b&&v.length>0?(0,n.jsxs)("div",{className:"ah-wrap ah-tray",role:"region","aria-label":"".concat(b.label," preview"),children:[(0,n.jsxs)("div",{className:"plc-grid",children:[x.map(e=>(0,n.jsx)(l.vr,{it:e},e.slug)),(0,n.jsx)(i.default,{},"".concat(null!=u?u:"",":").concat(x.length))]}),(0,n.jsxs)("div",{className:"ah-tray-foot",children:[!h&&v.length>4?(0,n.jsxs)("button",{type:"button",onClick:()=>p(!0),children:["See all ",v.length," ",b.label.toLowerCase()," inline"]}):null,(0,n.jsxs)("a",{href:b.href,children:["Explore all ",b.label," â"]})]})]}):null]})}},319:function(e,t,r){"use strict";r.d(t,{HomeSearch:function(){return u}});var n=r(57437),a=r(2265),s=r(73320),l=r(99376),i=r(84285);r(49950);let o={official:"Official",reported:"Reported",estimated:"iDevice estimate",expected:"Expected"};function c(e){var t,r,n;let a=(t=e.navState,r=e.timingDisplayState,"rumoured"!==t&&"announced"!==t?null:"tbd"===r?"Timing not known yet":r&&null!==(n=o[r])&&void 0!==n?n:null);return{slug:e.slug,name:e.label,href:e.href,brand:e.brand,category:e.category,timingLabel:a,timingState:a&&"tbd"!==e.timingDisplayState?e.timingDisplayState:null,score:e.score}}function u(){let{trending:e=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,l.useRouter)(),[r,o]=(0,a.useState)(""),[u,d]=(0,a.useState)(null),[h,p]=(0,a.useState)(!1),[m,f]=(0,a.useState)(-1),g=(0,a.useRef)(null),b=(0,a.useRef)(null),v=(0,a.useCallback)(async()=>{if(null===u)try{var e,t,r,n,a,l,i;let o=await fetch("/api/public/nav");if(!o.ok){d([]);return}let c=await o.json(),u=[];for(let o of null!==(e=null==c?void 0:c.categories)&&void 0!==e?e:[]){let e=null!==(t=null==o?void 0:o.groups)&&void 0!==t?t:{};for(let t of Object.values(e))for(let e of null!=t?t:[]){let t=(0,s.gu)(null==e?void 0:e.slug,null==e?void 0:e.label,null!==(r=null==e?void 0:e.href)&&void 0!==r?r:null);t&&(null==e?void 0:e.linkable)!==!1&&u.push({slug:e.slug,label:e.label,brand:null!==(n=e.brand)&&void 0!==n?n:null,category:null!==(a=o.label)&&void 0!==a?a:"",href:t,navState:null!==(l=e.state)&&void 0!==l?l:null,timingDisplayState:null!==(i=e.timingDisplayState)&&void 0!==i?i:null,score:"number"==typeof e.score?e.score:null})}}let h=new Set;d(u.filter(e=>!h.has(e.slug)&&h.add(e.slug)))}catch(e){d([])}},[u]),x=(0,a.useMemo)(()=>{let e=new Map;for(let t of null!=u?u:[])e.set(t.slug,t);return e},[u]),w=(0,a.useMemo)(()=>{let e=r.trim().toLowerCase();if(e.length<1||!(null==u?void 0:u.length))return[];let t=e.split(/\s+/).filter(Boolean),n=u.map(r=>{var n;let a="".concat(null!==(n=r.brand)&&void 0!==n?n:""," ").concat(r.label).toLowerCase().split(/\s+/).filter(Boolean);if(!t.every(e=>a.some(t=>t.startsWith(e))))return null;let s=r.label.toLowerCase().startsWith(e)?0:1;return{it:r,lead:s,len:r.label.length}}).filter(Boolean);return n.sort((e,t)=>e.lead-t.lead||e.len-t.len||e.it.label.localeCompare(t.it.label)),n.slice(0,6).map(e=>c(e.it))},[r,u]),y=r.trim().length>=1,k=(0,a.useMemo)(()=>e.slice(0,6).map(e=>{let t=x.get(e.slug);return t?c(t):{slug:e.slug,name:e.name,href:e.href,brand:null,category:null,timingLabel:null,timingState:null,score:null}}),[e,x]),j=y?w:k,N=h&&(y||k.length>0);(0,a.useEffect)(()=>{f(-1)},[r]),(0,a.useEffect)(()=>{let e=e=>{g.current&&!g.current.contains(e.target)&&p(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,a.useEffect)(()=>{var e,t;m<0||null===(t=b.current)||void 0===t||null===(e=t.querySelectorAll("[role=option]")[m])||void 0===e||e.scrollIntoView({block:"nearest"})},[m]);let S=e=>
1{p(!1),o(""),t.push(e.href)},_=()=>{let e=r.trim();e&&(p(!1),t.push("/search?q=".concat(encodeURIComponent(e))))},C=m>=0&&j[m]?j[m]:y&&1===w.length?w[0]:null,q=y?w.length?"Best matches":"No close matches":"Popular right now";return(0,n.jsxs)("div",{className:"ah-searchwrap",ref:g,children:[(0,n.jsxs)("form",{className:"ah-search",action:"/search",method:"get",role:"search",children:[(0,n.jsx)("label",{className:"ah-sr",htmlFor:"ah-q",children:"Search iDevice"}),(0,n.jsxs)("svg",{className:"ah-search-ic",width:"17",height:"17",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[(0,n.jsx)("circle",{cx:"11",cy:"11",r:"7",stroke:"currentColor",strokeWidth:"2"}),(0,n.jsx)("path",{d:"m16.5 16.5 4 4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),(0,n.jsx)("input",{id:"ah-q",name:"q",value:r,autoComplete:"off",placeholder:"What are you thinking about buying?",role:"combobox","aria-expanded":N,"aria-controls":"ah-sugg","aria-autocomplete":"list","aria-activedescendant":m>=0&&j[m]?"ah-sugg-".concat(j[m].slug):void 0,onFocus:()=>{p(!0),v()},onChange:e=>{o(e.target.value),p(!0),v()},onKeyDown:e=>{if("Escape"===e.key){p(!1),f(-1);return}if("ArrowDown"===e.key||"ArrowUp"===e.key){if(h||(p(!0),v()),!j.length)return;e.preventDefault(),f(t=>"ArrowDown"===e.key?(t+1)%j.length:(t<=0?j.length:t)-1);return}"Enter"===e.key&&h&&m>=0&&j[m]&&(e.preventDefault(),S(j[m]))}}),(0,n.jsx)("button",{type:"button",className:"ah-search-go",disabled:!C,"aria-disabled":!C,title:C?"Open the ".concat(C.name," guide"):"Choose a product to open its guide",onClick:()=>{C&&S(C)},children:"See the guide"})]}),N?(0,n.jsxs)("div",{className:"ah-search-dropdown",children:[(0,n.jsxs)("div",{className:"ah-search-dropdown-head",children:[(0,n.jsx)("span",{children:q}),(0,n.jsx)("kbd",{className:"ah-search-kbd","aria-hidden":"true",children:"ââ Enter"})]}),(0,n.jsx)("ul",{className:"ah-search-result-list",id:"ah-sugg",ref:b,role:"listbox","aria-label":y?"Product suggestions":"Popular products",children:j.length?j.map((e,t)=>{var r;return(0,n.jsxs)("li",{id:"ah-sugg-".concat(e.slug),role:"option","aria-selected":t===m,className:"ah-search-result".concat(t===m?" is-active":""),onMouseDown:t=>{t.preventDefault(),S(e)},onMouseEnter:()=>f(t),children:[(0,n.jsx)("span",{className:"ah-search-thumb","aria-hidden":"true",children:(()=>{let t=(0,i.D3)(e.slug);return t?(0,n.jsx)("img",{src:t.src,alt:"",width:46,height:46,loading:"lazy",decoding:"async"}):null})()}),(0,n.jsxs)("span",{className:"ah-search-result-copy",children:[(0,n.jsx)("span",{className:"ah-search-result-name",children:e.name}),(0,n.jsxs)("span",{className:"ah-search-result-meta",children:[e.timingLabel?(0,n.jsx)("span",{className:"ah-search-timing","data-state":null!==(r=e.timingState)&&void 0!==r?r:void 0,children:e.timingLabel}):null,null!=e.score?(0,n.jsxs)("span",{className:"ah-search-score",children:[e.score.toFixed(1),"â¯â
"]}):null,(0,n.jsx)("span",{children:[e.brand,e.category].filter(Boolean).join(" \xb7 ")})]})]}),(0,n.jsx)("span",{className:"ah-search-arrow","aria-hidden":"true",children:"âº"})]},e.slug)}):(0,n.jsx)("li",{className:"ah-search-none",role:"option","aria-selected":!1,"aria-disabled":"true",children:"No product matches. Press Enter to search everything."})}),y&&w.length?(0,n.jsxs)("button",{type:"button",className:"ah-search-all",onMouseDown:e=>{e.preventDefault(),_()},children:["See all results for â",r.trim(),"â â"]}):null]}):null]})}},12104:function(e,t,r){"use strict";r.d(t,{LaunchCountdown:function(){return s}});var n=r(57437),a=r(2265);function s(e){let{eventAt:t}=e,[r,s]=(0,a.useState)(null);if((0,a.useEffect)(()=>{s(Date.now());let e=setInterval(()=>s(Date.now()),1e3);return()=>clearInterval(e)},[]),null==r)return(0,n.jsx)("span",{className:"ah-launch-cd","aria-hidden":"true",children:"\xa0"});let l=Date.parse(t)-r;if(l<=0)return(0,n.jsx)("span",{className:"ah-launch-cd ah-launch-cd--live",children:"Happening today"});let i=Math.floor(l/1e3),o=Math.floor(i/86400),c=Math.floor(i%86400/3600),u=Math.floor(i%3600/60),d=i%60,h=e=>String(e).padStart(2,"0"),p=o>0;return(0,n.jsx)("span",{className:"ah-launch-cd"+(p?" ah-launch-cd--far":""),role:"timer","aria-label":p?"".concat(o," days ").concat(c," hours to go"):"".concat(c," hours ").concat(u," minutes ").concat(d," seconds to go"),children:p?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("b",{children:o}),"d ",(0,n.jsx)("b",{children:h(c)}),"h"]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("b",{children:h(c)}),"h ",(0,n.jsx)("b",{children:h(u)}),"m ",(0,n.jsx)("b",{children:h(d)}),"s"]})})}},77779:function(e,t,r){"use strict";r.d(t,{NewSinceLastVisit:function(){return s}});var n=r(2265),a=r(96603);function s(){return(0,n.useEffect)(()=>{let e=(0,a.P9)("home"),t=(0,a.w5)("home");return e&&document.querySelectorAll("[data-new-since] [data-pub]").forEach(t=>{if(!(0,a.ql)(Date.parse(t.dataset.pub||""),e))return;let r=t.querySelector(".ah-new");r&&(r.hidden=!1)}),t},[]),null}},91339:function(e,t,r){"use strict";var n=r(2265),a=r(77739),s=r(4667);t.default=function(){return(0,n.useEffect)(()=>{let e={};try{let t=window.localStorage.getItem(s.Nk),r=t?JSON.parse(t):null;r&&"object"==typeof r&&!Array.isArray(r)&&(e=r)}catch(e){}let t=new Date().toISOString().slice(0,10),r=(0,s.Mm)(s.fJ);for(let s of Array.from(document.querySelectorAll("[data-card-new-items]"))){var n,l;let i=s.getAttribute("data-product-slug"),o=s.querySelector("[data-card-new]");if(!i||!o)continue;let c="string"==typeof(null===(n=e[i])||void 0===n?void 0:n.updates)?e[i].updates:null,u=(null!==(l=s.getAttribute("data-card-new-items"))&&void 0!==l?l:"").split(",").filter(
1Boolean).flatMap(e=>{let t=e.indexOf("|");return t>0?[{id:e.slice(0,t),date:e.slice(t+1)}]:[]}),d=(0,a._0)(u,t,c,r,{cap:!1}),h=o.querySelector("[data-card-new-n]");h&&(h.textContent=String(d.count)),o.hidden=0===d.count;let p=o.querySelector(".plc-sronly");if(p){let e=1===d.count?"report":"reports";p.textContent="since_visit"===d.mode?" ".concat(e," since your last visit"):" ".concat(e," in the last ").concat(a.L4," days")}}},[]),null}},45860:function(e,t,r){"use strict";r.d(t,{rk:function(){return d},vr:function(){return h}});var n=r(57437),a=r(73879),s=r(63209),l=r(27648),i=r(6278),o=r(84285),c=r(77739);let u=e=>e&&/^https?:\/\//.test(e)?{target:"_blank",rel:"noopener",prefetch:!1}:{},d=" .plc-grid{--plc-paper:#fff;--plc-ink:#16181d;--plc-muted:#667085;--plc-line:#dfe5ec;--plc-blue:#1668d6;display:grid;grid-template-columns:repeat(auto-fill,minmax(232px,1fr));gap:12px}.plc-grid[hidden]{display:none!important}.plc-card{display:flex;flex-direction:column;border:1px solid var(--plc-line);border-radius:16px;background:var(--plc-paper);overflow:hidden}.plc-thumb{display:flex;align-items:center;justify-content:center;width:100%;height:180px;padding:18px;background:".concat(a.RoU,";margin-bottom:0}.plc-thumb img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}.plc-body{display:flex;flex-direction:column;gap:3px;min-width:0;padding:15px 16px 13px;flex:1}").concat((0,i.B1)(".plc-badge")," .plc-badge{margin-bottom:7px}.plc-media{position:relative;display:block}.plc-media .plc-tags{position:absolute;top:10px;left:10px;z-index:1;margin-bottom:0}.plc-media--nopic{padding:15px 16px 0}.plc-media--nopic .plc-tags{position:static;margin-bottom:0}.plc-media--nopic + .plc-body{padding-top:8px}.plc-tags{display:flex;align-items:center;gap:6px;margin-bottom:7px;flex-wrap:wrap}.plc-tags .plc-badge{margin-bottom:0}.plc-lbl{position:relative;display:inline-block}.plc-new{position:absolute;right:-9px;top:-9px;z-index:2;display:inline-flex;align-items:center;justify-content:center;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:").concat(a.AFZ,";color:").concat(a.yp7,";border:").concat(a.zt3,";font-size:10px;font-weight:800;line-height:1;letter-spacing:0;box-shadow:").concat(a.L91,";pointer-events:none}.plc-new[hidden]{display:none!important}.plc-sronly{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.plc-brand{color:var(--plc-muted);font-size:12px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}.plc-row{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:9px}.plc-name{flex:1 1 auto;min-width:0;font-size:14.5px;font-weight:700;letter-spacing:-.015em;color:var(--plc-ink)}.plc-price{flex:0 0 auto;color:var(--plc-muted);font-size:12px;white-space:nowrap}").concat((0,i.Uu)(".plc-acts")," .plc-card{transition:border-color .16s ease,box-shadow .16s ease,transform .16s cubic-bezier(.22,.61,.36,1)}.plc-card:hover{border-color:#c9d6e6;box-shadow:0 6px 18px rgba(35,52,75,.07);transform:translateY(-1px)}@media (prefers-reduced-motion:reduce){.plc-card,.plc-card:hover{transform:none;transition:none}}.plc-none{grid-column:1/-1;color:var(--plc-muted,#667085);font-size:13.5px;margin:0}@media (max-width:560px){.plc-grid{grid-template-columns:1fr}}");function h(e){var t,r;let{it:a}=e,i="out_now"!==a.state,d=(0,o.D3)(a.slug),h=a.linkable&&a.href,p=null!==(t=a.reportDates)&&void 0!==t?t:[],m=p.flatMap(e=>{let t=e.indexOf("|");return t>0?[{id:e.slice(0,t),date:e.slice(t+1)}]:[]}),f=(0,c._0)(m,new Date().toISOString().slice(0,10),null,null,{cap:!1}).count,g=d?(0,n.jsx)("img",{src:(0,o.Xe)(d.src),srcSet:(0,s.S)((0,o.Xe)(d.src),320),alt:"",loading:"lazy",decoding:"async"}):null;return(0,n.jsxs)("div",{className:"plc-card","data-product-card":!0,"data-product-slug":a.slug,"data-card-new-items":m.length>0?p.join(","):void 0,children:[(0,n.jsxs)("span",{className:g?"plc-media":"plc-media plc-media--nopic",children:[g?h?(0,n.jsx)(l.default,{href:a.href,...u(a.href),className:"plc-thumb",tabIndex:-1,"aria-hidden":"true",children:g}):(0,n.jsx)("span",{className:"plc-thumb",children:g}):null,(0,n.jsx)("span",{className:"plc-tags",children:(0,n.jsx)("span",{className:"plc-badge","data-s":i?"upcoming":"available",children:i?null!==(r=a.stateLabel)&&void 0!==r?r:"Upcoming":"Available now"})})]}),(0,n.jsxs)("span",{className:"plc-body",children:[a.brand?(0,n.jsx)("span",{className:"plc-brand",children:a.brand}):null,(0,n.jsxs)("span",{className:"plc-row",children:[(0,n.jsx)("span",{className:"plc-name",children:a.label}),a.price?(0,n.jsx)("span",{className:"plc-price",children:a.price}):null]})]}),h&&a.singleActionLabel?(0,n.jsx)("span",{className:"plc-acts",children:(0,n.jsxs)(l.default,{href:a.href,...u(a.href),children:[a.singleActionLabel," ",(0,n.jsx)("span",{className:"plc-ar","aria-hidden":"true",children:"â"})]})}):h?(0,n.jsxs)("span",{className:"plc-acts",children:[(0,n.jsxs)(l.default,{href:a.href,...u(a.href),children:[(0,n.jsxs)("span",{className:"plc-lbl",children:["Guide",m.length>0?(0,n.jsxs)("span",{className:"plc-new",hidden:0===f,"data-card-new":!0,children:[(0,n.jsx)("span",{"data-card-new-n":!0,children:f}),(0,n.jsx)("span",{className:"plc-sronly",children:" ".concat(1===f?"report":"reports"," in the last ").concat(c.L4," days")})]}):null]})," ",(0,n.jsx)("span",{className:"plc-ar","aria-hidden":"true",children:"â"})]}),(0,n.jsxs)(l.default,{href:"".concat(a.href,"#latest-news"),children:["News ",(0,n.jsx)("span",{className:"plc-ar","aria-hidden":"true",children:"â"})]})]}):null]})}},13650:function(e,t,r){"use strict";r.d(t,{SiteAskBox:function(){return A}});var n=r(57437),a=r(49402),s=r(2265),l=r(35760),i=r(29788),o=r(73320);let c=e=>" ".concat(e.toLowerCase().normalize("NFKD").replace(/[Ì-ͯ]/g,"").replace(/\+/g," plus ").replace(/\bray[\s-]?bans?\b/g,"ray-ban").replace(/\bairpod\b/g,"airpods").replace(/\bsmart[\s-]?watches\b/g,"smartwatches").replace(/[^a-z0-9]+/g," ").replace(/([a-z])(\d)/g,"$1 $2").replace(/\s+/g," ").trim()," ");function u(e){var t,r,n,a,s,l,u,h,p;let m=[],f=new Set;for(let g of null!==(t=null==e?void 0:e.categories)&&void 0!==t?t:[])for(let e of Object.values(null!==(r=null==g?void 0:g.groups)&&void 0!==r?r:{}))for(let t of null!=e?e:[]){if(!(null==t?void 0:t.slug)||f.has(t.slug))continue;f.add(t.slug);let e=!1===t.linkable?null:(0,o.gu)(t.slug,t.label,null!==(a=t.href)&&void 0!==a?a:null),r=String(null!==(s=t.label)&&void 0!==s?s:t.slug),b=t.brand&&"Other"!==t.brand?String(t.brand):null,v=String(t.slug).replace(/-(curr|\d)$/,"").replace(/-/g," "),x=b&&r.toLowerCase().startsWith(b.toLowerCase()+" ")?r.slice(b.length+1):r,w=x.replace(/\s+(gen(eration)?\s*\d+|\(\d+(st|nd|rd|th) gen\)|\d+(\.\d+)?[a-z]?)$/i,""),y=[],k=null===(n=r.match(/\bSeries \d+\b/))||void 0===n?void 0:n[0];k&&y.push(k,r.replace(/\s*Series\s*/," ")),/^Galaxy \S*\d/.test(x)&&b&&y.push("".concat(b," ").concat(x.slice(7))),/^Ray-Ban Meta\b/.test(r)&&y.push(r.replace(/^Ray-Ban Meta/,"Meta Ray-Ban"),w.replace(/^Ray-Ban Meta/,"Meta Ray-Ban"));let j=[r,b?"".concat(b," ").concat(r):"",x,w,b&&w!==x?"".concat(b," ").concat(w):"",v,...y,...(null!==(l=i.R[t.slug])&&void 0!==l?l:[]).filter(e=>e.includes(" ")||e.length>=6).map(e=>"ray-ban"===e||"rayban"===e?"":e)].map(e=>c(e).trim()).filter(e=>e.length>=3&&!d.has(e)&&(/^series \d+$/.test(e)||e.split(" ").some(e=>e.length>=3&&!/^(gen|generation|series|pro|max|ultra|plus|mini|air|the)$/.test(e)&&!/^\d/.test(e))));m.push({slug:t.slug,label:r,brand:b,l1:String(null!==(u=g.l1)&&void 0!==u?u:""),categoryLabel:String(null!==(h=g.label)&&void 0!==h?h:""),href:e,state:null!==(p=t.state)&&void 0!==p?p:null,line:!t.isGeneration,names:Array.from(new Set(j))})}return m}
1let d=new Set(["pixel","iphone","galaxy","glasses","ring","watch","phone","airpods","apple","google","samsung","meta"]),h={out_now:0,announced:1,rumoured:2,past:3};function p(e,t){let r=c(e),n=[];for(let e of t)for(let t of e.names){let o=0;for(;;){var a,s,l,i;let u=r.indexOf(" ".concat(t," "),o);if(u<0)break;let d=null!==(l=null===(a=c(e.label).match(/ (\d+) (?:[a-z]+ )?$/))||void 0===a?void 0:a[1])&&void 0!==l?l:null,h=null!==(i=null===(s=r.slice(u+t.length+1).match(/^ ?(?:(?:series|gen|generation) )?(\d+)\b/))||void 0===s?void 0:s[1])&&void 0!==i?i:null,p=/\d/.test(t),m=r.slice(u+t.length+1);/^ ?(ultra|pro|max|plus|mini|air|se|fe|lite|classic|fold|flip|edge|xl|display|neo|active)\b/.test(m)&&!c(e.label).includes(" ".concat(t," ").concat(m.trim().split(" ")[0]," "))||h&&!p&&h!==d||n.push({p:e,start:u,end:u+t.length+1,exact:t===c(e.label).trim(),len:t.length,name:t}),o=u+1}}n.sort((e,t)=>{var r,n,a,s;return t.len-e.len||Number(t.exact)-Number(e.exact)||(null!==(n=h[null!==(r=e.p.state)&&void 0!==r?r:""])&&void 0!==n?n:9)-(null!==(s=h[null!==(a=t.p.state)&&void 0!==a?a:""])&&void 0!==s?s:9)||Number(!!t.p.href)-Number(!!e.p.href)||Number(t.p.line)-Number(e.p.line)||e.p.label.length-t.p.label.length});let o=[];for(let e of n)if(!o.some(t=>e.start<t.end&&t.start<e.end)){if(n.find(t=>{var r,n,a,s;return t!==e&&t.p.slug!==e.p.slug&&t.start===e.start&&t.len===e.len&&t.exact===e.exact&&(null!==(n=h[null!==(r=t.p.state)&&void 0!==r?r:""])&&void 0!==n?n:9)===(null!==(s=h[null!==(a=e.p.state)&&void 0!==a?a:""])&&void 0!==s?s:9)&&Number(!!t.p.href)===Number(!!e.p.href)&&t.p.line===e.p.line})&&!o.some(t=>t.start===e.start)){o.push({...e,p:{...e.p,slug:""}});continue}o.push(e)}return o.filter(e=>e.p.slug).sort((e,t)=>e.start-t.start)}let m=[{l1:"rings",re:/\b(smart ?rings?|rings?)\b/,noun:"smart rings"},{l1:"glasses",re:/\b(smart ?glasses|ai glasses|ar glasses|glasses|spectacles|specs)\b/,noun:"smart glasses"},{l1:"earbuds",re:/\b(earbuds?|ear ?buds?|earphones|headphones|buds)\b/,noun:"earbuds"},{l1:"watches",re:/\b(smart ?watch(es)?|watch(es)?)\b/,noun:"smartwatches"},{l1:"phones",re:/\b(phones?|smartphones?|android phones?)\b/,noun:"phones"},{l1:"fitness-trackers",re:/\b(fitness trackers?|trackers?|bands?)\b/,noun:"fitness trackers"},{l1:"spatial-computing",re:/\b(headsets?|vr|xr|mixed reality|spatial)\b/,noun:"headsets"}],f=[{key:"battery",concept:"battery_runtime_hours",dir:"max",label:"battery life",re:/\b(longest|best|most|biggest|great\w*|long(er)?[- ]lasting|last\w* (the )?longest)\b.{0,20}\bbattery\b|\bbattery\b.{0,20}\b(longest|best|last\w* longest|most)\b|\blast\w* (the )?longest\b/},{key:"battery-min",concept:"battery_runtime_hours",dir:"min",label:"battery life",re:/\b(shortest|worst)\b.{0,20}\bbattery\b/},{key:"cheap",concept:"price",dir:"min",label:"price",re:/\b(cheapest|least expensive|most affordable|lowest price\w*|budget|cheaper|inexpensive|affordable)\b/},{key:"dear",concept:"price",dir:"max",label:"price",re:/\b(most expensive|priciest|highest price\w*)\b/},{key:"light",concept:"weight_g",dir:"min",label:"weight",re:/\b(lightest|lighter|least heavy|lowest weight)\b/},{key:"heavy",concept:"weight_g",dir:"max",label:"weight",re:/\b(heaviest)\b/},{key:"water",concept:"water_depth_m",dir:"max",label:"water depth rating",re:/\b(most waterproof|most water ?resistant|deepest|best for swimming|best water)\b/},{key:"bright",concept:"display_peak_brightness_nits",dir:"max",label:"peak brightness",re:/\b(brightest)\b/}],g=e=>t=>t.concept===e&&!0===t.valueBool,b=[{key:"camera",label:"a camera",re:/\b(with|has|have|having) (a |an )?(built[- ]in )?camera\b|\bcamera glasses\b/,test:e=>{var t;return g("rgb_camera_present")(e)||"camera_count"===e.concept&&(null!==(t=e.valueNumeric)&&void 0!==t?t:0)>0}},{key:"display",label:"a display",re:/\b(with|has|have) (a |an )?(built[- ]in |in[- ]lens )?(display|screen|hud)\b/,test:g("display_present")},{key:"gps",label:"built-in GPS",re:/\b(with|has|have) (built[- ]in |on[- ]board )?gps\b|\bgps\b/,test:e=>g("on_device_gps")(e)||g("gps_supported")(e)},{key:"ecg",label:"an ECG",re:/\b(ecg|ekg)\b/,test:g("ecg_sensor")},{key:"spo2",label:"blood oxygen",re:/\b(blood oxygen|spo2|pulse ox\w*)\b/,test:g("blood_oxygen_sensor")},{key:"temp",label:"skin temperature",re:/\b(skin )?temperature\b/,test:g("skin_temperature_sensor")},{key:"rx",label:"prescription lenses",re:/\bprescription\b/,test:e=>g("prescription_support")(e)||g("optical_lens_available")(e)},{key:"nosub",label:"no subscription required",re:/\b(no|without( a)?|free of)( required)? (sub
1scription|membership|monthly fee)\b|\bsubscription[- ]free\b/,test:e=>{var t;return"subscription"===e.concept&&/^(none|not_required|optional)$/.test(null!==(t=e.valueEnum)&&void 0!==t?t:"")}},{key:"bp",label:"blood pressure",describe:["blood_pressure_measurement","blood_pressure_trend","hypertension_alerts","blood_pressure_capability_state"],re:/\bblood pressure\b|\bhypertension\b/,test:e=>["blood_pressure_measurement","blood_pressure_trend","hypertension_alerts"].includes(e.concept)&&!0===e.valueBool},{key:"translate",label:"translation",re:/\btranslat\w*\b/,test:g("translation_supported")}],v=/\b(vs\.?|versus|compared? (to|with)|compare|or|better|difference|differences|against)\b/,x=/\b(what|which|how|does|do|is|are|can|will|when|where|should|why|who|has|have|any)\b|\?/,w=/\b(which|what|best|top|cheapest|longest|lightest|most|least|brightest|deepest|recommend\w*|any|under|below|less than|all)\b/;function y(e,t){var r,n,a,s,i,o,u;let d=e.trim(),h=c(d),g=(0,l.cH)(d);if("injection"===g)return{lane:"refuse",why:"injection"};let y=p(d,t),j=m.find(e=>e.re.test(h)),N=null!==(n=null===(r=t.find(e=>e.brand&&new RegExp("\\b".concat(e.brand.toLowerCase().replace(/[^a-z0-9]+/g," ").trim(),"\\b")).test(h)))||void 0===r?void 0:r.brand)&&void 0!==n?n:null;if("offtopic"===g&&!(y.length||j)||"offtopic"===g&&/\b(poem|haiku|song|lyrics|joke|story|essay|homework|recipe|code|python|javascript|sql)\b/i.test(d))return{lane:"refuse",why:"offtopic"};if(y.length>=2&&v.test(h))return{lane:"cross",products:k(y.map(e=>e.p)).slice(0,3)};if(1===y.length&&v.test(h)){let e=y[0],r=null!==(a=h.slice(e.end).match(/^\s*(vs|versus|or|and|compared to|compared with|against)\s+(\d+[a-z]?)\b/))&&void 0!==a?a:h.slice(0,e.start).match(/\b(\d+[a-z]?)\s+(vs|versus|or)\s*$/),n=r?r[2]&&/\d/.test(r[2])?r[2]:r[1]:null;if(n){let r=function(e,t,r){var n,a;let s=e.label.replace(/\d+[a-z]?(?=\s*$|\s*\))/i,t);return s===e.label?null:null!==(a=null!==(n=r.find(t=>t.slug!==e.slug&&c(t.label)===c(s)))&&void 0!==n?n:r.find(t=>t.slug!==e.slug&&t.names.includes(c(s).trim())))&&void 0!==a?a:null}(e.p,n,t);if(r)return{lane:"cross",products:[e.p,r]}}if(e.p.href&&/\b(vs|versus|compared (to|with)|against|better|difference|or \d)/.test(h))return{lane:"cross",products:[e.p]}}if(y.length>=2)return{lane:"cross",products:k(y.map(e=>e.p)).slice(0,3)};let S=1===y.length&&!/\d/.test(y[0].name)&&/\d/.test(y[0].p.label)&&(f.some(e=>e.re.test(h))||/\b(which|cheapest|longest|lightest|brightest|best)\b/.test(h)),_=S?y[0].name:null;if(j&&(!y.length||S)){let e=null!==(s=f.find(e=>e.re.test(h)))&&void 0!==s?s:null,t=b.filter(e=>e.re.test(h)),r=h.match(/\b(under|below|less than|cheaper than)\s+(\d{2,5})\b/),n=/\b(best|top|recommend\w*|good|should i (buy|get))\b/.test(h),a=h.replace(_?" ".concat(_," "):/$^/," ").replace(j.re," ").replace(null!==(i=null==e?void 0:e.re)&&void 0!==i?i:/$^/," ").replace(/\b(which|what|whats|is|are|the|a|an|best|top|good|to|buy|get|right|now|in|20\d\d|should|i|me|for|one|ones|you|do|does|have|has|with|that|of|most|any|we|recommend\w*|smart|cheapest|under|below|less|than|\d+|there|out|available|on|sale|work|works|without|no)\b/g," ").trim(),l=t.reduce((e,t)=>e.replace(RegExp(t.re.source,"g")," "),a).replace(/\b(camera|display|screen|gps|ecg|ekg|blood|oxygen|spo2|temperature|skin|prescription|subscription|membership|translat\w*|pressure|lenses|lens)\b/g," ").trim();if(!(!e&&!t.length&&null==r&&l.split(/\s+/).filter(e=>e.length>=3&&!(N&&N.toLowerCase().includes(e))&&!/^(pixel|iphone|galaxy|airpods|fenix|forerunner|viture|xreal|rayneo)$/.test(e)).length>0)&&(e||t.length||r||w.test(h)&&x.test(h)||n))return{lane:"category",l1:j.l1,noun:j.noun,measure:e?{key:e.key,concept:e.concept,dir:e.dir,label:e.label}:null,features:t.map(e=>({key:e.key,label:e.label,test:e.test,describe:e.describe})),brand:N,family:null!==(u=null!=_?_:null===(o=h.match(/\b(pixel|iphone|galaxy|airpods|fenix|forerunner|viture|xreal|rayneo)\b/))||void 0===o?void 0:o[1])&&void 0!==u?u:null,under:r?Number(r[2]):null,wantsBest:n}}if(1===y.length){let e=y[0],t=(h.slice(0,e.start)+" "+h.slice(e.end)).replace(/\b(the|a|an|guide|review|reviews|news)\b/g," ").trim();return t&&e.p.href&&(x.test(h)||"ok"===(0,l.cH)(t)||t.split(/\s+/).length>=2)?{lane:"product",product:e.p,question:d}:{lane:"search",products:[e.p]}}return"offtopic"!==g||j?{lane:"search",products:[]}:{lane:"refuse",why:"offtopic"}}let k=e=>e.filter((t,r)=>e.findIndex(e=>e.slug===t.slug)===r),j=["Does the Oura Ring 5 work with Strava?","Which smart ring has the longest battery?","Cheapest smart glasses with a camera","Oura Ring 5 vs RingConn Gen 3","How much does the Apple Watch Series 12 cost?","Which smartwatch has blood oxygen?"];function N(e,t){let r=c(e).trim();if(!r)return[];let n=r.split(" "),a=n[n.length-1],s=[],l=p(e,t);if(1===l.length&&l[0].p.href){let e=l[0].p.label;for(let t of["Does the ".concat(e," work with iPhone?"),"How much does the ".concat(e," cost?"),"What's in the ".concat(e," box?"),"".concat(e," battery life")])c(t).includes(" ".concat(a))&&s.push({kind:"question",text:t})}for(let e of t){var i;if(!e.href||s.length>=6)continue;let t=c("".concat(null!==(i=e.brand)&&void 0!==i?i:""," ").concat(e.label)).trim().split(" "),r=n.slice(-3);r.every((e,n)=>n===r.length-1?t.some(t=>
1t.startsWith(e)):t.includes(e))&&!/^(the|a|does|do|is|how|what|which)$/.test(a)&&s.push({kind:"product",text:e.label,href:e.href})}for(let e of j)s.length<6&&n.every((t,r)=>r===n.length-1?c(e).includes(" ".concat(t)):c(e).includes(" ".concat(t," ")))&&s.push({kind:"question",text:e});return s.slice(0,6)}let S=/^\s*(and|but|also|so|what about|how about|which of|of those|those|them|these|is that|are they|does it|do they|is it|it|they|same|and the|what('| i)s the difference)\b|\b(of (those|them|these)|that one|the other one|the cheaper one|the first one|the second one|both of them|either of them)\b/i;function _(e){var t,r,n,a;return"product"===e.lane?null!==(r=e.miss)&&void 0!==r?r:"".concat(e.product.label,": ").concat(null!==(t=e.body)&&void 0!==t?t:""," ").concat(e.extra.join(" ")).trim():"cross"===e.lane?null!==(n=e.miss)&&void 0!==n?n:"".concat(e.summary," ").concat(e.rows.map(e=>"".concat(e.label,": ").concat(e.values.map(e=>e.text).join(" vs "))).join("; ")):"category"===e.lane?null!==(a=e.miss)&&void 0!==a?a:"".concat(e.title,": ").concat(e.rows.map(e=>"".concat(e.product.label," ").concat(e.value)).join("; ")):"search"===e.lane?"Guides: ".concat(e.guides.map(e=>e.label).join(", ")):""}let C=e=>"refuse"!==e.lane&&"search"!==e.lane&&!("miss"in e&&e.miss);async function q(e,t,r){var n,a,s,i,o,u;if("refuse"===y(e,r.index).lane)return{kind:"refuse"};let d=function(e,t,r){if(!t.length)return!1;if(S.test(e))return!0;let n=c(e);return!p(e,r).length&&!m.some(e=>e.re.test(n))}(e,t.history,r.index),h=null,f=t.slugs;if(d){let n=p(e,r.index).map(e=>e.p.slug);n.length&&(f=Array.from(new Set([...n,...t.slugs])).slice(0,4))}else{let t="cross"===(h=await r.answer(e)).lane&&!h.miss&&function(e,t){let r=c(e);for(let n of p(e,t).sort((e,t)=>t.start-e.start))r=r.slice(0,n.start)+" "+r.slice(n.end);return r.replace(/\b(vs|versus|or|and|the|a|an|is|are|which|what|better|best|compare|compared|to|with|than|difference|differences|between|how|do|does|should|i|get|buy|one|of|them|it|against|ring|rings|watch|watches|glasses|phone|phones|earbuds|\d+)\b/g," ").split(/\s+/).filter(e=>e.length>=3)}(e,r.index).length>0;if(C(h)&&!t)return{kind:"router",router:h,text:_(h),slugs:null!==(a=h.slugs)&&void 0!==a?a:[]};f=null!==(s=h.slugs)&&void 0!==s?s:[]}let g=(0,l.Rx)(e);if(!f.length&&"general"!==g)return{kind:"miss",text:"We don't have that in what we've checked.",slugs:f,router:h,reason:"no_products"};let b=await r.chat({question:e,slugs:f,lane:f.length&&"product"===g?"product":g,history:t.history});if(b.ok&&b.answer)return{kind:"chat",reply:b,text:b.answer.replace(/\s*\[F\d+\]/g,"").replace(/\bthe FACTS\b/g,"what we've checked").replace(/\s*\n+\s*/g," "),slugs:null!==(i=null===(n=b.products)||void 0===n?void 0:n.map(e=>e.slug))&&void 0!==i?i:f,router:h};if(h&&C(h))return{kind:"router",router:h,text:_(h),slugs:null!==(o=h.slugs)&&void 0!==o?o:[]};let v=null!==(u=b.reason)&&void 0!==u?u:"no_answer";return{kind:"miss",text:"signin_required"===v?"Sign in to keep asking.":"member_daily_cap"===v?"You've reached today's chat limit. It resets tomorrow.":"daily_cap"===v?"The chat has reached today's limit. The answers above still work.":"rate_limited"===v?"That's a lot of questions at once. Try again in a few minutes.":/^(model_error|relay_error|http_|bad_request)/.test(v)?"Something went wrong on our side, so there's no answer this time. Try again in a moment.":"We don't have that in what we've checked. We only answer from what we've checked.",slugs:f,router:h,reason:v}}var O=r(60057),D=r(75257),L=r(50877),P=r(21399),E=r(39121);let R=()=>(0,D.c)(window.location.pathname);function A(){let{mode:e="box"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"chat"===e?(0,n.jsx)(W,{}):(0,n.jsx)(T,{})}function T(){let[e,t]=(0,s.useState)(""),[r,l]=(0,s.useState)(""),[i,o]=(0,s.useState)(null),[c,d]=(0,s.useState)(null),h=(0,s.useRef)(null),p=(0,s.useRef)(0),m=(0,s.useCallback)(()=>i?Promise.resolve(i):(h.current||(h.current=fetch("/api/public/nav").then(e=>e.ok?e.json():null).then(e=>{let t=u(e);return o(t),t}).catch(()=>(h.current=null,[]))),h.current),[i]),f=(0,s.useRef)(!1),g=async function(e){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];f.current=r;let n=e.trim();if(t(e),l(n),!n){d(null);return}let a=++p.current,s=y(n,await m());if("refuse"===s.lane){a===p.current&&d({lane:"refuse",why:s.why});return}d({lane:"loading"});try{let e=await fetch("/api/site-ask/answer?q=".concat(encodeURIComponent(n))),t=e.ok?await e.json():{lane:"error"};a===p.current&&d(t)}catch(e){a===p.current&&d({lane:"error"})}},b=e.trim()!==r,v=(0,s.useMemo)(()=>i&&b?N(e,i):[],[e,i,b]),x=(0,s.useRef)("");(0,s.useEffect)(()=>{var e;if(!c||!r||"loading"===c.lane||x.current===r)return;x.current=r;let t="refuse"===c.lane||"error"===c.lane||!!c.miss,n="refuse"===c.lane?"off_topic":t?"no_answer":"answered_doc",s="product"===c.lane?String(null!==(e=c.plan)&&void 0!==e?e:"").replace(/^product:/,""):void 0;(0,a.v)("ask",{question:r.slice(0,300),mode:"box",outcome:n,matched:String(c.lane),chip:f.current},s||null)},[c,r]);let w=(0,s.useRef)("");return(0,s.useEffect)(()=>{var e;if(!c||!r||w.current===r||R()||!("refuse"===c.lane||("product"===c.lane||"cross"===c.lane||"category"===c.lane)&&c.miss))return;w.current=r;let t="product"===c.lane?(null!==(e=c.plan)&&void 0!==e?e:"").replace(/^product:/,""):"site";(0,O.j)("capability_unrecognised",{query:r.slice(0,120),product:t||"site",shape:c.lane,placement:"home"}),"product"===c.lane&&fetch("/api/public/guide-ask/miss",{method:"POST",keepalive:!0,headers:{"content-type":"application/json"},body:JSON.stringify({slug:t,question:r.slice(0,300),outcome:"no_answer",mode:"box"})}).catch(()=>{})},[c,r]),(0,n.jsxs)("div",{className:"sak",children:[(0,n.jsx)("style",{dangerouslySetInnerHTML:{__html:L.L}}),(0,n.jsxs)("form",{className:"sak-field",role:"search",action:"/search",method:"get",onSubmit:t=>{t.preventDefault(),g(e)},children:[(0,n.jsx)("div",{className:"sak-glow","aria-hidden":"true"}),(0,n.jsx)("div",{className:"sak-sweep","aria-hidden":"true"}),(0,n.jsxs)("div",{className:"sak-inner",children:[(0,n.jsx)("label",{className:"sak-sr",htmlFor:"sak-q",children:"Ask or search iDevice"}),(0,n.jsxs)("svg",{className:"sak-ic",viewBox:"0 0 24 24",width:"18",height:"18",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":"true",children:[(0,n.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,n.jsx)("path",{d:"m20 20-3.5-3.5",strokeLinecap:"round"})]}),(0,n.jsx)("input",{id:"sak-q",name:"q",className:"sak-input",value:e,autoComplete:"off",enterKeyHint:"search",placeholder:"Ask anything, or name a product",onFocus:()=>{m()},onChange:e=>{t(e.target.value),m()}}),e?(0,n.jsx)("button",{type:"button",className:"sak-x","aria-label":"Clear",onClick:()=>{t(""),l(""),d(null)},children:"\xd7"}):null,(0,n.jsx)("button",{type:"submit",className:"sak-go",children:"Ask"})]})]}),e.trim()?b?(0,n.jsx)("div",{className:"sak-sugg",role:"listbox","aria-label":"Suggestions",children:v.length?v.map(e=>"product"===e.kind&&e.href?(0,n.jsxs)("a",{className:"sak-chip",href:e.href,role:"option","aria-selected":!1,children:[e.text,(0,n.jsx)("span",{"aria-hidden":"true",children:" âº"})]},e.text):(0,n.jsx)("button",{type:"button",className:"sak-chip",role:"option","aria-selected":!1,onClick:()=>void g(e.text,!0),children:e.text},e.text)):(0,n.jsx)("span",{className:"sak-hint",children:"Press Enter to ask."})}):null:(0,n.jsx)("div",{className:"sak-chips",children:j.slice(0,4).map(e=>(0,n.jsx)("button",{type:"button",className:"sak-chip",onClick:()=>void g(e,!0),children:e},e))}),(0,n.jsx)("div",{className:"sak-out","aria-live":"polite",children:r&&!b&&c?(0,n.jsx)(z,{r:c,onPick:e=>void g(e)}):null})]})}
1function W(){let[e,t]=(0,s.useState)(""),[r,l]=(0,s.useState)([]),[i,o]=(0,s.useState)(null),c=(0,s.useRef)({history:[],slugs:[]}),d=(0,s.useCallback)(async()=>{if(i)return i;let e=u(await fetch("/api/public/nav").then(e=>e.ok?e.json():null).catch(()=>null));return o(e),e},[i]),h=(0,s.useRef)(0),p=async e=>{let r=e.trim();if(!r)return;let n=++h.current;t(""),l(e=>[...e.filter(e=>null!==e.r),{q:r,r:null,id:n}]);let s=await d(),i=await q(r,c.current,{index:s,answer:e=>fetch("/api/site-ask/answer?q=".concat(encodeURIComponent(e))).then(e=>e.json()).catch(()=>({lane:"search",guides:[],news:[],more:{label:"",href:"/search"}})),chat:e=>fetch(window.location.pathname.startsWith("/lab/")?"/lab/site-ask/chat":"/api/site-ask/chat",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)}).then(e=>e.json()).catch(()=>({ok:!1,reason:"relay_error"}))});n===h.current&&((0,a.v)(c.current.history.length?"ask_followup":"ask",{question:r.slice(0,300),mode:"chat",outcome:"chat"===i.kind?"answered_model":"router"===i.kind?"answered_doc":"refuse"===i.kind?"off_topic":"no_answer",matched:"router"===i.kind||"chat"===i.kind?i.slugs.slice(0,3).join(","):void 0},("router"===i.kind||"chat"===i.kind)&&1===i.slugs.length?i.slugs[0]:null),("router"===i.kind||"chat"===i.kind)&&(c.current={history:[...c.current.history,{q:r,a:i.text}].slice(-3),slugs:i.slugs.length?i.slugs:c.current.slugs}),"miss"!==i.kind&&"refuse"!==i.kind||R()||(0,O.j)("capability_unrecognised",{query:r.slice(0,120),product:"site",shape:"refuse"===i.kind?"refuse":"chat",placement:"home"}),l(e=>e.map(e=>e.id===n?{...e,r:i}:e)))},m=(0,s.useMemo)(()=>i&&e.trim()?N(e,i):[],[e,i]),f=r[r.length-1],g=(null==f?void 0:f.r)&&("router"===f.r.kind||"chat"===f.r.kind)&&i?function(e,t,r){let n=e.map(e=>{var r;return null===(r=t.find(t=>t.slug===e))||void 0===r?void 0:r.label}).filter(e=>!!e);return n.length?(n.length>1?["Which of those works with iPhone?","Which of those is cheapest?","Does the ".concat(n[0]," come with a charger?")]:["How much does the ".concat(n[0]," cost?"),"Does the ".concat(n[0]," work with Android?"),"How long does the ".concat(n[0]," battery last?")]).filter(e=>e.toLowerCase()!==r.trim().toLowerCase()).slice(0,3):[]}(f.r.slugs,i,f.q):[];return(0,n.jsxs)("div",{className:"sak sak--chat",children:[(0,n.jsx)("style",{dangerouslySetInnerHTML:{__html:L.L}}),r.length?(0,n.jsx)("ol",{className:"sak-thread","aria-live":"polite",children:r.map((e,t)=>(0,n.jsxs)("li",{className:"sak-turn",children:[(0,n.jsx)("p",{className:"sak-you",children:e.q}),e.r?"refuse"===e.r.kind?(0,n.jsx)(z,{r:{lane:"refuse",why:"offtopic"},onPick:e=>void p(e)}):"router"===e.r.kind?(0,n.jsx)(z,{r:e.r.router,onPick:e=>void p(e)}):"chat"===e.r.kind?(0,n.jsx)(I,{r:e.r,index:null!=i?i:[]}):(0,n.jsxs)("div",{className:"sak-card",children:[(0,n.jsx)("p",{className:"sak-b",children:e.r.text}),"signin_required"===e.r.reason?(0,n.jsxs)("div",{className:"mbr-gate",children:[(0,n.jsx)(E.fG,{}),(0,n.jsx)(P.K,{heading:"Sign in to keep asking",sub:"Members get 100 questions a day. We'll email you a 6-digit code; no password.",idPrefix:"sgate-".concat(t)})]}):null,e.r.router&&"search"===e.r.router.lane&&e.r.router.guides.length?(0,n.jsxs)("p",{className:"sak-ql",children:["Guides that may help: ",e.r.router.guides.map((e,t)=>(0,n.jsxs)("span",{children:[t?", ":"",(0,n.jsx)("a",{href:e.href,children:e.label})]},e.href)),"."]}):null]}):(0,n.jsx)("div",{className:"sak-card",children:(0,n.jsx)("p",{className:"sak-hint",children:"Checking what we holdâ¦"})})]},t))}):null,(0,n.jsxs)("form",{className:"sak-field",role:"search",action:"/search",method:"get",onSubmit:t=>{t.preventDefault(),p(e)},children:[(0,n.jsx)("div",{className:"sak-glow","aria-hidden":"true"}),(0,n.jsx)("div",{className:"sak-sweep","aria-hidden":"true"}),(0,n.jsxs)("div",{className:"sak-inner",children:[(0,n.jsx)("label",{className:"sak-sr",htmlFor:"sak-c",children:"Ask iDevice"}),(0,n.jsxs)("svg",{className:"sak-ic",viewBox:"0 0 24 24",width:"18",height:"18",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":"true",children:[(0,n.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,n.jsx)("path",{d:"m20 20-3.5-3.5",strokeLinecap:"round"})]}),(0,n.jsx)("input",{id:"sak-c",name:"q",className:"sak-input",value:e,autoComplete:"off",enterKeyHint:"send",placeholder:r.length?"Ask a follow-up":"Ask anything about phones and wearables",onFocus:()=>{d()},onChange:e=>t(e.target.value)}),(0,n.jsx)("button",{type:"submit",className:"sak-go",children:"Ask"})]})]}),e.trim()&&m.length?(0,n.jsx)("div",{className:"sak-sugg",role:"listbox","aria-label":"Suggestions",children:m.map(e=>"product"===e.kind&&e.href?(0,n.jsxs)("a",{className:"sak-chip",href:e.href,role:"option","aria-selected":!1,children:[e.text,(0,n.jsx)("span",{"aria-hidden":"true",children:" âº"})]},e.text):(0,n.jsx)("button",{type:"button",className:"sak-chip",role:"option","aria-selected":!1,onClick:()=>void p(e.text),children:e.text},e.text))}):null,(0,n.jsx)("div",{className:"sak-chips",hidden:!!e.trim(),children:(r.length?g:j.slice(0,4)).map(e=>(0,n.jsx)("button",{type:"button",className:"sak-chip",onClick:()=>void p(e),children:e},e))})]})}function I(e){var t,r;let{r:a,index:s}=e,l="general"===a.reply.lane,i=(null!==(t=a.reply.products)&&void 0!==t?t:[]).map(e=>{var t,r;return{name:e.name,href:null!==(r=null===(t=s.find(t=>t.slug===e.slug))||void 0===t?void 0:t.href)&&void 0!==r?r:null}}).filter(e=>!!e.href).sort((e,t)=>
1t.name.length-e.name.length),o=[a.text];for(let e of i)for(let t=0;t<o.length;t++){let r=o[t];if("string"!=typeof r)continue;let n=r.indexOf(e.name);if(!(n<0)){o.splice(t,1,r.slice(0,n),e,r.slice(n+e.name.length));break}}let c=(null!==(r=a.reply.sources)&&void 0!==r?r:[]).filter((e,t,r)=>r.findIndex(t=>t.label===e.label&&t.url===e.url)===t);return(0,n.jsxs)("div",{className:"sak-card",children:[(0,n.jsx)("div",{className:"sak-top",children:(0,n.jsx)("span",{className:"sak-t ".concat(l?"sak-t--reported":"sak-t--feature"),children:l?"General answer, not checked by iDevice":"From checked facts"})}),(0,n.jsx)("p",{className:"sak-b",children:o.map((e,t)=>"string"==typeof e?e:(0,n.jsx)("a",{className:"sak-prod",href:e.href,children:e.name},t))}),c.length?(0,n.jsxs)("div",{className:"sak-src",children:["Sources: ",c.map((e,t)=>(0,n.jsxs)("span",{children:[t?" \xb7 ":"",e.url?(0,n.jsx)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",children:e.label}):e.label]},t))]}):null]})}function M(e){let{s:t}=e;return t?t.href?(0,n.jsx)("a",{href:t.href,target:t.href.startsWith("/")?void 0:"_blank",rel:t.href.startsWith("/")?void 0:"noopener noreferrer",children:t.label}):(0,n.jsx)("strong",{children:t.label}):null}function z(e){let{r:t,onPick:r}=e;return"loading"===t.lane?(0,n.jsx)("div",{className:"sak-card",children:(0,n.jsx)("p",{className:"sak-hint",children:"Checking what we holdâ¦"})}):"error"===t.lane?(0,n.jsx)("div",{className:"sak-card",children:(0,n.jsxs)("p",{children:["We couldn't answer that just now. Try again, or ",(0,n.jsx)("a",{href:"/search",children:"search the site"}),"."]})}):"refuse"===t.lane?(0,n.jsxs)("div",{className:"sak-card",children:[(0,n.jsx)("p",{children:"I can only answer questions about the phones, wearables and devices we cover. Try one of these:"}),(0,n.jsx)("div",{className:"sak-chips",children:j.slice(0,4).map(e=>(0,n.jsx)("button",{type:"button",className:"sak-chip",onClick:()=>r(e),children:e},e))})]}):"product"===t.lane?(0,n.jsxs)("div",{className:"sak-card",children:[(0,n.jsxs)("div",{className:"sak-top",children:[t.type?(0,n.jsx)("span",{className:"sak-t sak-t--".concat(t.type.replace(/\s+/g,"").toLowerCase()),children:t.type}):null,(0,n.jsx)("a",{className:"sak-prod",href:t.product.href,children:t.product.label})]}),t.miss?(0,n.jsx)("p",{className:"sak-b",children:t.miss}):(0,n.jsxs)(n.Fragment,{children:[t.question?(0,n.jsx)("p",{className:"sak-q",children:t.question}):null,(0,n.jsx)("p",{className:"sak-b",children:t.body}),t.extra.map(e=>(0,n.jsx)("p",{className:"sak-ql",children:e},e)),t.sources.length?(0,n.jsxs)("div",{className:"sak-src",children:["Source: ",t.sources.map((e,t)=>(0,n.jsxs)("span",{children:[t?" \xb7 ":"",(0,n.jsx)(M,{s:e})]},e.label))]}):null]}),(0,n.jsxs)("a",{className:"sak-more",href:t.open.href,children:[t.open.label,(0,n.jsx)("span",{"aria-hidden":"true",children:" â"})]})]}):"cross"===t.lane?(0,n.jsxs)("div",{className:"sak-card",children:[(0,n.jsxs)("div",{className:"sak-top",children:[(0,n.jsx)("span",{className:"sak-t sak-t--comparison",children:"Comparison"}),(0,n.jsx)("span",{className:"sak-q",children:t.products.map((e,t)=>(0,n.jsxs)("span",{children:[t?" vs ":"",(0,n.jsx)("a",{href:e.href,children:e.label})]},e.href))})]}),t.miss?(0,n.jsx)("p",{className:"sak-b",children:t.miss}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:"sak-ql",children:t.summary}),(0,n.jsxs)("table",{className:"sak-tbl",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{scope:"col",children:(0,n.jsx)("span",{className:"sak-sr",children:"Measure"})}),t.products.map(e=>(0,n.jsx)("th",{scope:"col",children:e.label},e.href))]})}),(0,n.jsx)("tbody",{children:t.rows.map(e=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{scope:"row",children:e.label}),e.values.map((e,t)=>(0,n.jsxs)("td",{children:[e.text,e.source?(0,n.jsxs)("span",{className:"sak-cite",children:[" ",(0,n.jsx)(M,{s:e.source})]}):null]},t))]},e.label))})]})]}),t.compare?(0,n.jsxs)("a",{className:"sak-more",href:t.compare.href,children:[t.compare.label,(0,n.jsx)("span",{"aria-hidden":"true",children:" â"})]}):null]}):"category"===t.lane?(0,n.jsxs)("div",{className:"sak-card",children:[(0,n.jsxs)("div",{className:"sak-top",children:[(0,n.jsx)("span",{className:"sak-t sak-t--comparison",children:"Across Guides"}),(0,n.jsx)("span",{className:"sak-q",children:F(t.title)})]}),t.miss?(0,n.jsx)("p",{className:"sak-b",children:t.miss}
1):(0,n.jsx)("ol",{className:"sak-rank",children:t.rows.map(e=>(0,n.jsxs)("li",{children:[(0,n.jsx)("a",{className:"sak-prod",href:e.product.href,children:e.product.label}),(0,n.jsxs)("span",{className:"sak-val",children:[e.value,e.detail?(0,n.jsxs)("span",{className:"sak-ql",children:[" (",e.detail,")"]}):null]}),(0,n.jsxs)("span",{className:"sak-src",children:["Source: ",(0,n.jsx)(M,{s:e.source})]})]},e.product.href))}),t.note?(0,n.jsx)("p",{className:"sak-ql",children:t.note}):null,t.unstated.length?(0,n.jsxs)("p",{className:"sak-ql",children:["No checked figure yet: ",t.unstated.map((e,t)=>(0,n.jsxs)("span",{children:[t?", ":"",(0,n.jsx)("a",{href:e.href,children:e.label})]},e.href)),"."]}):null]}):(0,n.jsxs)("div",{className:"sak-card",children:[t.note?(0,n.jsx)("p",{className:"sak-b",children:t.note}):null,t.guides.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:"sak-hd",children:"Guides"}),(0,n.jsx)("ul",{className:"sak-list",children:t.guides.map(e=>(0,n.jsxs)("li",{children:[(0,n.jsx)("a",{href:e.href,children:e.label}),e.meta?(0,n.jsxs)("span",{className:"sak-meta",children:[" \xb7 ",e.meta]}):null]},e.href))})]}):null,t.news.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:"sak-hd",children:"News and reporting"}),(0,n.jsx)("ul",{className:"sak-list",children:t.news.map(e=>(0,n.jsxs)("li",{children:[(0,n.jsx)("a",{href:e.href,...e.external?{target:"_blank",rel:"noopener noreferrer"}:{},children:e.label}),e.meta?(0,n.jsxs)("span",{className:"sak-meta",children:[" \xb7 ",e.meta]}):null]},e.href))})]}):null,t.guides.length||t.news.length?null:(0,n.jsx)("p",{children:"Nothing on the site matches that yet."}),(0,n.jsxs)("a",{className:"sak-more",href:t.more.href,children:[t.more.label,(0,n.jsx)("span",{"aria-hidden":"true",children:" â"})]})]})}let F=e=>e.charAt(0).toUpperCase()+e.slice(1)},60057:function(e,t,r){"use strict";function n(e,t){window.gtag&&window.gtag("event",e,null!=t?t:{})}r.d(t,{j:function(){return n}})},63209:function(e,t,r){"use strict";r.d(t,{S:function(){return i},v:function(){return l}});let n=[64,96,128,160,192,256,320,384,480,640,750,828,1080,1200,1280,1440,1920];function a(e){return!e||e.includes("?")||e.startsWith("/_next/")||e.startsWith("data:")||!/\.(webp|png|jpe?g)$/i.test(e)||e.startsWith("/products/card/")||e.startsWith("/products/nav/")?null:e.startsWith("/api/public/")?"https://workspaceapi-server-production-f6d7.up.railway.app"+e:e.startsWith("/api/")?null:e.startsWith("/")?e:null}function s(e){for(let t of n)if(t>=e)return t;return n[n.length-1]}function l(e,t){if(!e)return e;let r=a(e);return r?"/_next/image?url=".concat(encodeURIComponent(r),"&w=").concat(s(2*t),"&q=80"):e}function i(e,t){if(!e)return;let r=a(e);if(!r)return;let n=encodeURIComponent(r),l=s(t),i=s(2*t);return"/_next/image?url=".concat(n,"&w=").concat(l,"&q=80 1x, /_next/image?url=").concat(n,"&w=").concat(i,"&q=80 2x")}},96603:function(e,t,r){"use strict";r.d(t,{P9:function(){return p},ql:function(){return f},w5:function(){return m}});let n="idev:lastvisit:v1",a="idev:lv:prev:",s="idev:lv:done:",l={home:["idevice:home:lastVisitAt"],news:["idevice_tracker_last_visit"],cluster:["wearablenews_last_visit"]},i=(e,t)=>{try{return e?e.getItem(t):null}catch(e){return null}},o=(e,t,r)=>{try{e&&e.setItem(t,r)}catch(e){}};function c(e){try{let t=i(e,n),r=t?JSON.parse(t):null;if(!r||"object"!=typeof r||Array.isArray(r))return{};let a={};for(let[e,t]of Object.entries(r))"string"==typeof t&&(a[e]=t);return a}catch(e){return{}}}let u=(e,t)=>{if(!e)return null;let r=Date.parse(e);return Number.isFinite(r)&&r<=t+3e5?r:null},d=null,h=()=>null!=d?d:d=function(e){let t=new Map,r=new Set;function d(r){var n,s;if(t.has(r))return null!==(n=t.get(r))&&void 0!==n?n:null;let d=i(e.session,a+r);if(null!==d){let e="-"===d?null:new Date(d),n=e&&Number.isFinite(e.getTime())?e:null;return t.set(r,n),n}let h=e.now(),p=u(c(e.local)[r],h);if(null==p)for(let t of null!==(s=l[r])&&void 0!==s?s:[]){let r=u(i(e.local,t),h);null!=r&&(null==p||r<p)&&(p=r)}let m=null==p?null:new Date(p);return t.set(r,m),o(e.session,a+r,m?m.toISOString():"-"),m}return{previousVisit:d,commitVisit:function(t){if(r.has(t)||"1"===i(e.session,s+t)){r.add(t);return}d(t),r.add(t),o(e.session,s+t,"1");let a=c(e.local);a[t]=new Date(e.now()).toISOString();let l=Object.keys(a).filter(e=>e.startsWith("guide:"));if(l.length>200)for(let e of(l.sort((e,t)=>
1a[e].localeCompare(a[t])),l.slice(0,l.length-200)))delete a[e];o(e.local,n,JSON.stringify(a))}}}(function(){let e=null,t=null;try{e=window.localStorage}catch(t){e=null}try{t=window.sessionStorage}catch(e){t=null}return{local:e,session:t,now:()=>Date.now()}}());function p(e){return h().previousVisit(e)}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3,r=setTimeout(()=>h().commitVisit(e),t);return()=>clearTimeout(r)}function f(e,t){return null!=t&&Number.isFinite(e)&&e>t.getTime()}},4667:function(e,t,r){"use strict";r.d(t,{GO:function(){return i},Mm:function(){return s},Nk:function(){return a},eo:function(){return l},fJ:function(){return n}});let n="idev:reportseen:v1",a="idev:tabseen:v1";function s(e){try{let t=localStorage.getItem(e);return t?new Set(JSON.parse(t)):new Set}catch(e){return new Set}}function l(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:500;try{let n=[];t.forEach(e=>n.push(e)),localStorage.setItem(e,JSON.stringify(n.slice(-r)))}catch(e){}}function i(e){try{if("1"!==new URLSearchParams(window.location.search).get("resetSeen"))return!1;for(let t of e)localStorage.removeItem(t);return!0}catch(e){return!1}}},75257:function(e,t,r){"use strict";function n(e){if(e.startsWith("/admin"))return!0;try{return function(e){let t=new URLSearchParams(e).get("notrack");if(null===t)return!1;let r=t.trim().toLowerCase();return"0"!==r&&"false"!==r}(window.location.search)&&localStorage.setItem("idevice_notrack","1"),"1"===localStorage.getItem("idevice_notrack")}catch(e){return!0}}r.d(t,{c:function(){return n}})},46231:function(e,t,r){"use strict";r.d(t,{w_:function(){return u}});var n=r(2265),a={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},s=n.createContext&&n.createContext(a),l=["attr","size","title"];function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){var n,a;n=t,a=r[t],(n=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(n))in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(e){return t=>n.createElement(d,i({attr:c({},e.attr)},t),function e(t){return t&&t.map((t,r)=>n.createElement(t.tag,c({key:r},t.attr),e(t.child)))}(e.child))}function d(e){var t=t=>{var r,a=e.attr,s=e.size,o=e.title,u=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)r=s[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,l),d=s||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),n.createElement("svg",i({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,a,u,{className:r,style:c(c({color:e.color||t.color},t.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),o&&n.createElement("title",null,o),e.children)};return void 0!==s?n.createElement(s.Consumer,null,e=>t(e)):t(a)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.