PageSourceSearch

https://www.courier.com/_next/static/chunks/3536.cc0213bf0de34a9b.js

js courier.com collected 2026-09-24 09:01:21 UTC 8,930 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3536],{39423:(e,t,s)=>{s.d(t,{Jr:()=>n,M1:()=>c,cD:()=>p,fi:()=>o});let a=new Set("@\xa3$\xa5\xe8\xe9\xf9\xec\xf2\xc7\n\xd8\xf8\r\xc5\xe5Δ_ΦΓΛΩΠΨΣΘΞ\x1b\xc6\xe6\xdf\xc9 !\"#\xa4%&'()*+,-./0123456789:;<=>?\xa1ABCDEFGHIJKLMNOPQRSTUVWXYZ\xc4\xd6\xd1\xdc\xa7\xbfabcdefghijklmnopqrstuvwxyz\xe4\xf6\xf1\xfc\xe0".split("")),l=new Set("^{}\\[~]|€\f".split("")),r={"GSM-7":{single:160,multi:153},"UCS-2":{single:70,multi:67}},n=e=>e.split("").every(e=>a.has(e)||l.has(e)),i=e=>{let t=n(e)?"GSM-7":"UCS-2",s="GSM-7"===t?e.split("").reduce((e,t)=>e+(l.has(t)?2:1),0):e.length,{single:a,multi:i}=r[t];if(0===s)return{encoding:t,segments:0,units:0,remaining:a};if(s<=a)return{encoding:t,segments:1,units:s,remaining:a-s};let o=Math.ceil(s/i);return{encoding:t,segments:o,units:s,remaining:o*i-s}},o=e=>e.reduce((e,t)=>e+i(t).segments,0),c=e=>{let t=i(e),s=[],n=[],o=new Set;for(let t of Array.from(e))!o.has(t)&&(o.add(t),l.has(t)?n.push(t):a.has(t)||s.push(t));let{single:c,multi:p}=r[t.encoding];return{...t,visibleChars:(e=>"undefined"!=typeof Intl&&"Segmenter"in Intl?Array.from(new Intl.Segmenter().segment(e)).length:Array.from(e).length)(e),perSegment:t.segments>1?p:c,ucs2Culprits:"UCS-2"===t.encoding?s:[],doubleCostChars:"GSM-7"===t.encoding?n:[],hasSurrogatePairs:/[\uD800-\uDBFF]/.test(e)}},p=e=>`U+${(e.codePointAt(0)??0).toString(16).toUpperCase().padStart(4,"0")}`},53536:(e,t,s)=>{s.r(t),s.d(t,{default:()=>h});var a=s(37876),l=s(14232),r=s(12559),n=s(15648),i=s(65457),o=s(39423);let c=[{label:"Plain English",text:"Your verification code is 482193. It expires in 10 minutes. Do not share it with anyone."},{label:"One curly quote",text:"Your order’s on the way! Track it at example.com/t/4821"},{label:"Chinese",text:"您的验证码是 482193,10分钟内有效,请勿泄露给他人。"},{label:"Emoji",text:"Package delivered! \uD83D\uDCE6✅ Rate your driver \uD83D\uDC4D"}],p=({label:e,value:t,detail:s})=>(0,a.jsxs)(i.u6,{label:e,children:[(0,a.jsx)("span",{className:(0,r.AH)({fontWeight:600}),children:t}),s?(0,a.jsxs)("span",{className:(0,r.AH)({color:"#6B645C"}),children:[" ",s]}):null]}),h=()=>{let[e,t]=(0,l.useState)(c[0].text),s=(0,o.M1)(e),h="GSM-7"===s.encoding,u=s.visibleChars!==s.units;return(0,a.jsx)(n.xP,{outputLabel:"Count",controls:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.D0,{label:"Message text",hint:"Counted as you type. Nothing you write leaves the page.",children:(0,a.jsx)(n.fs,{rows:
17,value:e,onChange:e=>t(e.target.value),maxLength:2e3})}),(0,a.jsx)("div",{className:(0,r.AH)({display:"flex",flexWrap:"wrap",gap:"6px",mt:"10px"}),children:c.map(e=>(0,a.jsx)("button",{type:"button",onClick:()=>t(e.text),className:(0,r.AH)({fontSize:"12px",color:"#3B352F",bg:"#F5F3F0",border:"1px solid #E4E0DA",borderRadius:"999px",px:"10px",py:"4px",cursor:"pointer",_hover:{borderColor:"#BFB8AE"}}),children:e.label},e.label))})]}),output:(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:(0,r.AH)({display:"flex",alignItems:"center",gap:"10px",mb:"6px"}),children:[(0,a.jsx)(i.qs,{status:h?"pass":"info",children:s.encoding}),(0,a.jsx)("span",{className:(0,r.AH)({fontSize:"13px",color:"#6B645C"}),children:h?"Every character fits the GSM-7 alphabet.":"At least one character is outside GSM-7, so the whole message is billed as UCS-2."})]}),(0,a.jsx)(p,{label:"Segments",value:String(s.segments),detail:s.segments>1?`billed ${s.segments}x, ${s.perSegment} units each after the concatenation header`:1===s.segments?`of ${s.perSegment} units available`:void 0}),(0,a.jsx)(p,{label:"Billable units",value:String(s.units),detail:h?"septets":"UTF-16 code units, which is how carriers count UCS-2"}),(0,a.jsx)(p,{label:"Visible characters",value:String(s.visibleChars),detail:u?s.hasSurrogatePairs?"fewer than the billable count: this message contains characters outside the Basic Multilingual Plane, which cost 2 units each":"fewer than the billable count: some characters here cost more than one unit":void 0}),(0,a.jsx)(p,{label:"Room left",value:String(s.remaining),detail:`units before segment ${s.segments+1||1}`}),s.ucs2Culprits.length>0&&(0,a.jsxs)("div",{className:(0,r.AH)({mt:"14px"}),children:[(0,a.jsx)("p",{className:(0,r.AH)({fontSize:"11.5px",letterSpacing:"0.06em",textTransform:"uppercase",color:"#6B645C",mb:"6px"}),style:{fontFamily:n.iP},children:"Characters forcing UCS-2"}),(0,a.jsxs)("div",{className:(0,r.AH)({display:"flex",flexWrap:"wrap",gap:"6px"}),children:[s.ucs2Culprits.slice(0,24).map(e=>(0,a.jsxs)("span",{className:(0,r.AH)({display:"inline-flex",alignItems:"center",gap:"6px",fontSize:"12.5px",bg:"white",border:"1px solid #E4E0DA",borderRadius:"6px",px:"8px",py:"3px"}),children:[(0,a.jsx)("span",{className:(0,r.AH)({fontSize:"15px"}),children:e}),(0,a.jsx)("span",{className:(0,r.AH)({color:"#6B645C",fontSize:"11px"}),style:{fontFamily:n.iP},children:(0,o.cD)(e)})]},e)),s.ucs2Culprits.length>24&&(0,a.jsxs)("span",{className:(0,r.AH)({fontSize:"12px",color:"#6B645C"}),children:["and ",s.ucs2Culprits.length-24," more"]})]}),s.ucs2Culprits.length<=2&&(0,a.jsxs)("p",{className:(0,r.AH)({fontSize:"12.5px",color:"#6B645C",mt:"8px",lineHeight:"1.5"}),children:["Replacing"," ",1===s.ucs2Culprits.length?"this one character":"these two characters"," ","with GSM equivalents (a straight quote for a curly one, for instance) returns the whole message to GSM-7 and more than doubles the per-segment budget."]})]}),s.doubleCostChars.length>0&&(0,a.jsxs)("p",{className:(0,r.AH)({fontSize:"12.5px",color:"#6B645C",mt:"12px",lineHeight:"1.5"}),children:["Costing 2 septets each:"," ",(0,a.jsx)("span",{style:{fontFamily:n.iP},children:s.doubleCostChars.join(" ")}),". These are GSM extension characters, sent as an escape plus the character."]})]})})}},59225:(e,t,s)=>{s.d(t,{Z:()=>l,x:()=>a});let a=e=>{let t;try{t=new URLSearchParams(e.startsWith("?")?e.slice(1):e)}catch{return{value:null,selector:null}}let s=(t.get("domain")??t.get("email")??"").trim(),a=s.length>0&&s.length<=253&&/^[a-zA-Z0-9._@+-]+$/.test(s)&&s.includes(".")?s:null,l=(t.get("selector")??"").trim();return{value:a,selector:l.length>0&&l.length<=63&&/^[a-zA-Z0-9._-]+$/.test(l)?l:null}},l=(e,t)=>{let s=e.trim();if(!s)return"";let a=new URLSearchParams;return a.set("domain",s),t&&t.trim()&&a.set("selector",t.trim()),`?${a.toString()}`}},65457:(e,t,s)=>{s.d(t,{FM:()=>u,gh:()=>h,qs:()=>c,rM:()=>d,u6:()=>p});var a=s(37876),l=s(14232),r=s(12559),n=s(15648),i=s(59225);let o={pass:{bg:"#DCF5EC",fg:"#0E8A6D"},warn:{bg:"#FDF0DC",fg:"#B45309"},fail:{bg:"#FDE4E1",fg:"#C0392B"},info:{bg:"#EDE7FD",fg:"#6D3FE0"}},c=({status:e,children:t})=>(0,a.jsx)("span",{className:(0,r.AH)({display:"inline-block",fontSize:"11.5px",fontWeight:600,letterSpacing:"0.04em",textTransform:"uppercase",borderRadius:"999px",px:"10px",py:"3px",whiteSpace:"nowrap"}),style:{background:o[e].bg,color:o[e].fg},children:t}),p=({label:e,children:t,mono:s})=>(0,a.jsxs)("div",{className:(0,r.AH)({display:"grid",gridTemplateColumns:{base:"1fr",customSm:"150px 1fr"},gap:{base:"2px",customSm:"16px"},py:"10px",borderBottom:"1px solid #E4E0DA",_last:{borderBottom:"none"},fontSize:"13.5px",lineHeight:"1.55"}),children:[(0,a.jsx)("span",{className:(0,r.AH)({color:"#6B645C",fontSize:"11.5px",letterSpacing:"0.06em",textTransform:"uppercase",pt:"2px"}),style:{fontFamily:n.iP},children:e}),(0,a.jsx)("span",{className:(0,r.AH)({color:"#1C1815",wordBreak:"break-word",minWidth:0}),style:s?{fontFamily:n.iP,fontSize:"12.5px"}:void 0,children:t})]}),h=({value:e})=>(0,a.jsx)("pre",{className:(0,r.AH)({fontSize:"12px",lineHeight:"1.6",color:"#1C1815",bg:"#F5F3F0",border:"1px solid #E4E0DA",borderRadius:"8px",p:"12px",whiteSpace:"pre-wrap",wordBreak:"break-all",mt:"8px"}),style:{fontFamily:n.iP},children:e}),u=({label:e,placeholder:t,buttonLabel:s,hint:o,onCheck:c,children:p,extraParam:h})=>{let[u,d]=(0,l.useState)(""),[m,x]=(0,l.useState)(!1),[g,f]=(0,l.useState)(""),b=async e=>{x(!0),f("");try{await c(e);{let t=(0,i.Z)(e,h??null);window.history.replaceState(null,"",`${window.location.pathname}${t}`)}}catch(e){f(e instanceof Error&&e.message?e.message:"Lookup failed. Check the value and try again.")}finally{x(!1)}},S=async e=>{e.preventDefault(),u.trim()&&!m&&await b(u)},C=(0,l.useRef)(!1);return(0,l.useEffect)(()=>
1{if(C.current)return;C.current=!0;let{value:e}=(0,i.x)(window.location.search);e&&(d(e),b(e))},[]),(0,a.jsxs)("form",{onSubmit:S,children:[(0,a.jsx)(n.D0,{label:e,hint:o,children:(0,a.jsx)(n.ks,{placeholder:t,value:u,onChange:e=>d(e.target.value),autoCapitalize:"none",autoCorrect:"off",spellCheck:!1})}),p,(0,a.jsx)(n.jn,{type:"submit",disabled:m||!u.trim(),children:m?"Checking...":s}),g?(0,a.jsx)("p",{className:(0,r.AH)({fontSize:"13px",color:"#C0392B",mt:"10px"}),children:g}):null]})},d=({children:e})=>(0,a.jsx)("p",{className:(0,r.AH)({fontSize:"13.5px",color:"#A39C93",lineHeight:"1.6"}),children:e})}}]);

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.