1"use strict";(globalThis.webpackChunk_atlas_docs_zen=globalThis.webpackChunk_atlas_docs_zen||[]).push([[5841],{1571(e,r,o){o.d(r,{n:()=>h,u:()=>c});var n=o(4888),t=o(9741),a=o(1850);const i='body {\n font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;\n margin: 0;\n padding: 1.5rem;\n background-color: #f9fafb;\n color: #111827;\n font-size: 14px;\n line-height: 1.5;\n display: flex;\n justify-content: center;\n}\nform {\n width: 100%;\n max-width: 24rem;\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n}\ninput + label { margin-top: 0.5rem; }\nlabel {\n display: block;\n font-size: 0.8125rem;\n font-weight: 500;\n color: #374151;\n}\ninput, textarea {\n width: 100%;\n padding: 0.5rem 0.75rem;\n font-size: 0.875rem;\n font-family: inherit;\n color: #111827;\n background-color: #ffffff;\n border: 1px solid #d1d5db;\n border-radius: 0.375rem;\n box-sizing: border-box;\n transition: border-color 150ms ease, box-shadow 150ms ease;\n}\ntextarea { min-height: 5rem; resize: vertical; line-height: 1.5; }\ninput:focus, textarea:focus {\n outline: none;\n border-color: #2933e6;\n box-shadow: 0 0 0 3px rgba(41, 51, 230, 0.15);\n}\n[data-theme="dark"] body { background-color: #1f1f1f; color: #e5e7eb; }\n[data-theme="dark"] label { color: #d1d5db; }\n[data-theme="dark"] input, [data-theme="dark"] textarea {\n background-color: #2a2a2a;\n border-color: #444950;\n color: #e5e7eb;\n}\n[data-theme="dark"] input:focus, [data-theme="dark"] textarea:focus {\n border-color: #545ceb;\n box-shadow: 0 0 0 3px rgba(84, 92, 235, 0.25);\n}\n\n/* Postcode Lookup widget default chrome \u2014 matches form input styling.\n Wrapped in :where() so user-supplied .idpc-* rules always win regardless of\n load order. */\n:where(.idpc-input) {\n border-color: #2933e6;\n box-shadow: 0 0 0 1px rgba(41, 51, 230, 0.1);\n}\n:where(.idpc-input:focus) { border-color: #2933e6; box-shadow: 0 0 0 3px rgba(41, 51, 230, 0.2); }\n:where([data-theme="dark"] .idpc-input) { border-color: #545ceb; box-shadow: 0 0 0 1px rgba(84, 92, 235, 0.15); }\n:where([data-theme="dark"] .idpc-input:focus) { border-color: #545ceb; box-shadow: 0 0 0 3px rgba(84, 92, 235, 0.3); }\n:where(.idpc-button) {\n margin-top: 0.5rem;\n padding: 0.5rem 1rem;\n font-size: 0.875rem;\n font-weight: 500;\n color: #ffffff;\n background-color: #2933e6;\n border: 1px solid #2933e6;\n border-radius: 0.375rem;\n cursor: pointer;\n transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;\n}\n:where(.idpc-button:hover) { background-color: #1f29c4; border-color: #1f29c4; }\n:where(.idpc-button:focus) { outline: none; box-shadow: 0 0 0 3px rgba(41, 51, 230, 0.25); }\n:where(.idpc-select-container) { margin-top: 0.5rem; }\n:where(.idpc-select-container select) {\n width: 100%;\n padding: 0.5rem 2.25rem 0.5rem 0.75rem;\n font-size: 0.875rem;\n color: #111827;\n background-color: #ffffff;\n background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 20 20\' fill=\'%236b7280\'%3E%3Cpath fill-rule=\'evenodd\' d=\'M5.23 7.21a.75.75 0 011.06.02L10 11.06l3.71-3.83a.75.75 0 111.08 1.04l-4.25 4.39a.75.75 0 01-1.08 0L5.21 8.27a.75.75 0 01.02-1.06z\' clip-rule=\'evenodd\'/%3E%3C/svg%3E");\n background-repeat: no-repeat;\n background-position: right 0.625rem center;\n background-size: 1rem;\n border: 1px solid #d1d5db;\n border-radius: 0.375rem;\n box-sizing: border-box;\n cursor: pointer;\n appearance: none;\n -webkit-appearance: none;\n transition: border-color 150ms ease, box-shadow 150ms ease;\n}\n:where(.idpc-select-container select:focus) {\n outline: none;\n border-color: #2933e6;\n box-shadow: 0 0 0 3px rgba(41, 51, 230, 0.15);\n}\n:where(.idpc-error) { margin-top: 0.5rem; font-size: 0.8125rem; color: #b91c1c; }\n:where(.idpc-unhide) {\n display: block;\n width: fit-content;\n margin-top: 1rem;\n margin-bottom: 0.5rem;\n padding: 0.375rem 0.75rem;\n font-size: 0.8125rem;\n font-weight: 500;\n color: #2933e6;\n background-color: transparent;\n border: 1px solid #2933e6;\n border-radius: 0.375rem;\n cursor: pointer;\n user-select: none;\n transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;\n}\n:where(.idpc-unhide:hover) { background-color: #2933e6; color: #ffffff; }\n:where(.idpc-unhide:focus) { outline: none; box-shadow: 0 0 0 3px rgba(41, 51, 230, 0.25); }\n:where([data-theme="dark"] .idpc-unhide) { color: #545ceb; border-color: #545ceb; }\n:where([data-theme="dark"] .idpc-unhide:hover) { background-color: #545ceb; color: #ffffff; }\n/* Separate the widget context from address fields that follow it. */\n:where(form >
1 div:has(> .idpc-input)), :where(form > div:has(> .idpc-button)) { margin-bottom: 0.75rem; }\n:where([data-theme="dark"] .idpc-button) { background-color: #545ceb; border-color: #545ceb; }\n:where([data-theme="dark"] .idpc-button:hover) { background-color: #4047d6; border-color: #4047d6; }\n:where([data-theme="dark"] .idpc-select-container select) {\n background-color: #2a2a2a;\n border-color: #444950;\n color: #e5e7eb;\n background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 20 20\' fill=\'%239ca3af\'%3E%3Cpath fill-rule=\'evenodd\' d=\'M5.23 7.21a.75.75 0 011.06.02L10 11.06l3.71-3.83a.75.75 0 111.08 1.04l-4.25 4.39a.75.75 0 01-1.08 0L5.21 8.27a.75.75 0 01.02-1.06z\' clip-rule=\'evenodd\'/%3E%3C/svg%3E");\n}\n:where([data-theme="dark"] .idpc-select-container select:focus) {\n border-color: #545ceb;\n box-shadow: 0 0 0 3px rgba(84, 92, 235, 0.25);\n}\n:where([data-theme="dark"] .idpc-error) { color: #f87171; }\n\n/* Address Finder / Postcode Lookup dropdown \u2014 dark variant.\n Targets v5.0.4\'s actual selectors (idpc_af is the dropdown wrapper).\n Once the unreleased beta with --idpc-* variables ships, swap to variable\n overrides for cleaner theming. */\nhtml[data-theme="dark"] div.idpc_autocomplete {\n color: #e5e7eb !important;\n}\nhtml[data-theme="dark"] div.idpc_af {\n background: #2a2a2a !important;\n border-color: rgba(255, 255, 255, 0.15) !important;\n box-shadow: 0.05em 0.2em 0.6em rgba(0, 0, 0, 0.6) !important;\n}\nhtml[data-theme="dark"] div.idpc_af > ul > li:hover {\n background-color: #3a3a3a !important;\n}\nhtml[data-theme="dark"] div.idpc_af > ul > li.idpc_error,\nhtml[data-theme="dark"] div.idpc_af > ul > li.idpc_error:hover {\n background-color: #2a2a2a !important;\n color: #9ca3af !important;\n}\nhtml[data-theme="dark"] div.idpc_af > ul > li[aria-selected="true"] {\n background-color: #545ceb !important;\n color: #ffffff !important;\n}\nhtml[data-theme="dark"] div.idpc_toolbar {\n border-top-color: rgba(255, 255, 255, 0.15) !important;\n}\n/* Country toggle: source CSS sets hover bg to #e5e4e2 (light grey) which\n reads as bright white-on-white in dark mode. Tone it down and ensure the\n country-name text stays legible when it expands on hover. */\nhtml[data-theme="dark"] div.idpc_autocomplete > div > div > span:hover {\n background-color: #3a3a3a !important;\n}\nhtml[data-theme="dark"] div.idpc_toolbar > span span.idpc_country {\n color: #e5e7eb !important;\n}';var s=o(5723);const d={border:"1px solid var(--ifm-color-emphasis-300)",borderRadius:"var(--ifm-card-border-radius)",backgroundColor:"var(--ifm-background-surface-color)"},l=(e={})=>{const{imports:r={},mode:o="simple",themeColor:n,editor:l,editorTheme:c,fontFamily:p,baseCss:h=i}=e;return function({html:e,js:i,css:u,scripts:m,stylesheets:f,head:b,baseCss:g=h,imports:w,height:v="500px",view:y="split",mode:k=o,loading:x="lazy",activeEditor:C,className:j,style:_,editorTheme:A=c,theme:S="light"}){const z="dark"===S;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.A,{fallback:(0,s.jsx)("div",{style:{height:v},children:"Loading..."}),children:()=>{const o=[g&&`<style>${g}</style>`,b].filter(Boolean).join("\n");return(0,s.jsx)(a.A,{height:v,loading:x,className:j,style:{...d,..._},config:{mode:k,view:y,theme:z?"dark":"light",htmlAttrs:{"data-theme":z?"dark":"light"},markup:{language:"html",content:e},...i&&{script:{language:"javascript",content:i}},...u&&{style:{language:"css",content:u}},languages:[...i?["javascript"]:[],"html",...u?["css"]:[]],activeEditor:C??(i?"script":"markup"),lineNumbers:!1,wordWrap:!0,useTabs:!1,tabSize:2,...m&&{scripts:m},...f&&{stylesheets:f},...o&&{head:o},imports:{...r,...w},...A&&{editorTheme:A},...n&&{themeColor:z?n.dark:n.light},...l&&{editor:l},...p&&{fontFamily:p}}})}}),(0,s.jsxs)("div",{style:{display:"none"},"aria-hidden":"true",children:[(0,s.jsx)("pre",{children:e}),i&&(0,s.jsx)("pre",{children:i}),u&&(0,s.jsx)("pre",{children:u})]})]})}},c=(l(),'@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600&display=swap");\nbody {\n font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;\n margin: 0;\n padding: 1.5rem;\n background-color: #f5efe2;\n color: #1d1a17;\n font-size: 14px;\n line-height: 1.5;\n display: flex;\n justify-content: center;\n}\nform {\n width: 100%;\n max-width: 24rem;\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n}\ninput + label { margin-top: 0.5rem; }\nlabel {\n display: block;\n font-size: 0.8125rem;\n font-weight: 500;\n color: #5f5a50;\n}\ninput, textarea {\n width: 100%;\n padding: 0.5rem 0.75rem;\n font-size: 0.875rem;\n font-family: inherit;\n color: #1d1a17;\n background-color: #fbf7ee;\n border: 1px solid rgba(29, 26, 23, 0.18);\n border-radius: 8px;\n box-sizing: border-box;\n transition: border-color 150ms ease, box-shadow 150ms ease;\n}\ntextarea { min-height: 5rem; resize: vertical; line-height: 1.5; }\ninput:focus, textarea:focus {\n outline: none;\n border-color: #c13b2a;\n box-shadow: 0 0 0 3px rgba(193, 59, 42, 0.16);\n}\n[data-theme="dark"] body { background-color: #1d1a17; color: #f7f2e9; }\n[data-theme="dark"] label { color: #a8a093; }\n[data-theme="dark"] input, [data-theme="dark"] textarea {\n background-color: #262220;\n border-color: rgba(247, 242, 233, 0.16);\n color: #f7f2e9;\n}\n[data-theme="dark"] input:focus, [data-theme="dark"] textarea:focus {\n border-color: #e
10a196;\n box-shadow: 0 0 0 3px rgba(224, 161, 150, 0.25);\n}\n\n/* Widget default chrome \u2014 matches the form inputs. Wrapped in :where() so\n user-supplied .idpc-* rules always win regardless of load order. */\n:where(.idpc-input) {\n border-color: #c13b2a;\n box-shadow: 0 0 0 1px rgba(193, 59, 42, 0.1);\n}\n:where(.idpc-input:focus) { border-color: #c13b2a; box-shadow: 0 0 0 3px rgba(193, 59, 42, 0.2); }\n:where([data-theme="dark"] .idpc-input) { border-color: #e0a196; box-shadow: 0 0 0 1px rgba(224, 161, 150, 0.15); }\n:where([data-theme="dark"] .idpc-input:focus) { border-color: #e0a196; box-shadow: 0 0 0 3px rgba(224, 161, 150, 0.3); }\n:where(.idpc-button) {\n margin-top: 0.5rem;\n padding: 0.5rem 1rem;\n font-size: 0.875rem;\n font-weight: 500;\n color: #f5efe2;\n background-color: #c13b2a;\n border: 1px solid #c13b2a;\n border-radius: 100px;\n cursor: pointer;\n transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;\n}\n:where(.idpc-button:hover) { background-color: #a83224; border-color: #a83224; }\n:where(.idpc-button:focus) { outline: none; box-shadow: 0 0 0 3px rgba(193, 59, 42, 0.25); }\n:where(.idpc-select-container) { margin-top: 0.5rem; }\n:where(.idpc-select-container select) {\n width: 100%;\n padding: 0.5rem 2.25rem 0.5rem 0.75rem;\n font-size: 0.875rem;\n color: #1d1a17;\n background-color: #fbf7ee;\n background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 20 20\' fill=\'%238a8375\'%3E%3Cpath fill-rule=\'evenodd\' d=\'M5.23 7.21a.75.75 0 011.06.02L10 11.06l3.71-3.83a.75.75 0 111.08 1.04l-4.25 4.39a.75.75 0 01-1.08 0L5.21 8.27a.75.75 0 01.02-1.06z\' clip-rule=\'evenodd\'/%3E%3C/svg%3E");\n background-repeat: no-repeat;\n background-position: right 0.625rem center;\n background-size: 1rem;\n border: 1px solid rgba(29, 26, 23, 0.18);\n border-radius: 8px;\n box-sizing: border-box;\n cursor: pointer;\n appearance: none;\n -webkit-appearance: none;\n transition: border-color 150ms ease, box-shadow 150ms ease;\n}\n:where(.idpc-select-container select:focus) {\n outline: none;\n border-color: #c13b2a;\n box-shadow: 0 0 0 3px rgba(193, 59, 42, 0.16);\n}\n:where(.idpc-error) { margin-top: 0.5rem; font-size: 0.8125rem; color: #a83224; }\n:where(.idpc-unhide) {\n display: block;\n width: fit-content;\n margin-top: 1rem;\n margin-bottom: 0.5rem;\n padding: 0.375rem 0.75rem;\n font-size: 0.8125rem;\n font-weight: 500;\n color: #c13b2a;\n background-color: transparent;\n border: 1px solid #c13b2a;\n border-radius: 100px;\n cursor: pointer;\n user-select: none;\n transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;\n}\n:where(.idpc-unhide:hover) { background-color: #c13b2a; color: #f5efe2; }\n:where(.idpc-unhide:focus) { outline: none; box-shadow: 0 0 0 3px rgba(193, 59, 42, 0.25); }\n:where([data-theme="dark"] .idpc-unhide) { color: #e0a196; border-color: #e0a196; }\n:where([data-theme="dark"] .idpc-unhide:hover) { background-color: #e0a196; color: #1d1a17; }\n/* Separate the widget context from address fields that follow it. */\n:where(form > div:has(> .idpc-input)), :where(form > div:has(> .idpc-button)) { margin-bottom: 0.75rem; }\n:where([data-theme="dark"] .idpc-button) { background-color: #e0a196; border-color: #e0a196; color: #1d1a17; }\n:where([data-theme="dark"] .idpc-button:hover) { background-color: #d48b7e; border-color: #d48b7e; }\n:where([data-theme="dark"] .idpc-select-container select) {\n background-color: #262220;\n border-color: rgba(247, 242, 233, 0.16);\n color: #f7f2e9;\n background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 20 20\' fill=\'%23a8a093\'%3E%3Cpath fill-rule=\'evenodd\' d=\'M5.23 7.21a.75.75 0 011.06.02L10 11.06l3.71-3.83a.75.75 0 111.08 1.04l-4.25 4.39a.75.75 0 01-1.08 0L5.21 8.27a.75.75 0 01.02-1.06z\' clip-rule=\'evenodd\'/%3E%3C/svg%3E");\n}\n:where([data-theme="dark"] .idpc-select-container select:focus) {\n border-color: #e0a196;\n box-shadow: 0 0 0 3px rgba(224, 161, 150, 0.25);\n}
1\n:where([data-theme="dark"] .idpc-error) { color: #e0a196; }\n\n/* Address Lookup dropdown \u2014 dark variant. Targets the widget\'s own selectors\n (idpc_af is the dropdown wrapper). */\nhtml[data-theme="dark"] div.idpc_autocomplete {\n color: #f7f2e9 !important;\n}\nhtml[data-theme="dark"] div.idpc_af {\n background: #262220 !important;\n border-color: rgba(247, 242, 233, 0.16) !important;\n box-shadow: 0.05em 0.2em 0.6em rgba(0, 0, 0, 0.6) !important;\n}\nhtml[data-theme="dark"] div.idpc_af > ul > li:hover {\n background-color: #33302b !important;\n}\nhtml[data-theme="dark"] div.idpc_af > ul > li.idpc_error,\nhtml[data-theme="dark"] div.idpc_af > ul > li.idpc_error:hover {\n background-color: #262220 !important;\n color: #a8a093 !important;\n}\nhtml[data-theme="dark"] div.idpc_af > ul > li[aria-selected="true"] {\n background-color: #e0a196 !important;\n color: #1d1a17 !important;\n}\nhtml[data-theme="dark"] div.idpc_toolbar {\n border-top-color: rgba(247, 242, 233, 0.16) !important;\n}\nhtml[data-theme="dark"] div.idpc_autocomplete > div > div > span:hover {\n background-color: #33302b !important;\n}\nhtml[data-theme="dark"] div.idpc_toolbar > span span.idpc_country {\n color: #f7f2e9 !important;\n}'),p=l({mode:"focus",imports:{"@addresszen/address-lookup":"https://esm.sh/@addresszen/address-lookup@2"},themeColor:{light:"hsl(40, 10%, 55%)",dark:"hsl(40, 12%, 50%)"},editorTheme:["solarized-light@light","gruvbox-dark@dark"],fontFamily:"IBM Plex Mono",baseCss:c});function h(e){const{isDarkTheme:r}=(0,n.G)();return(0,s.jsx)(p,{...e,theme:r?"dark":"light"})}},1850(e,r,o){o.d(r,{A:()=>b});var n,t,a=o(2155),i=o(5723),s=Object.create,d=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,p=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,u=(n=(e,r)=>{var o=function(){var e=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",n={};function t(e,r){if(!n[e]){n[e]={};for(var o=0;o<e.length;o++)n[e][e.charAt(o)]=o}return n[e][r]}var a={compressToBase64:function(e){if(null==e)return"";var o=a._compress(e,6,function(e){return r.charAt(e)});switch(o.length%4){default:case 0:return o;case 1:return o+"===";case 2:return o+"==";case 3:return o+"="}},decompressFromBase64:function(e){return null==e?"":""==e?null:a._decompress(e.length,32,function(o){return t(r,e.charAt(o))})},compressToUTF16:function(r){return null==r?"":a._compress(r,15,function(r){return e(r+32)})+" "},decompressFromUTF16:function(e){return null==e?"":""==e?null:a._decompress(e.length,16384,function(r){return e.charCodeAt(r)-32})},compressToUint8Array:function(e){for(var r=a.compress(e),o=new Uint8Array(2*r.length),n=0,t=r.length;n<t;n++){var i=r.charCodeAt(n);o[2*n]=i>>>8,o[2*n+1]=i%256}return o},decompressFromUint8Array:function(r){if(null==r)return a.decompress(r);for(var o=new Array(r.length/2),n=0,t=o.length;n<t;n++)o[n]=256*r[2*n]+r[2*n+1];var i=[];return o.forEach(function(r){i.push(e(r))}),a.decompress(i.join(""))},compressToEncodedURIComponent:function(e){return null==e?"":a._compress(e,6,function(e){return o.charAt(e)})},decompressFromEncodedURIComponent:function(e){return null==e?"":""==e?null:(e=e.replace(/ /g,"+"),a._decompress(e.length,32,function(r){return t(o,e.charAt(r))}))},compress:function(r){return a._compress(r,16,function(r){return e(r)})},_compress:function(e,r,o){if(null==e)return"";var n,t,a,i={},s={},d="",l="",c="",p=2,h=3,u=2,m=[],f=0,b=0;for(a=0;a<e.length;a+=1)if(d=e.charAt(a),Object.prototype.hasOwnProperty.call(i,d)||(i[d]=h++,s[d]=!0),l=c+d,Object.prototype.hasOwnProperty.call(i,l))c=l;else{if(Object.prototype.hasOwnProperty.call(s,c)){if(c.charCodeAt(0)<256){for(n=0;n<u;n++)f<<=1,b==r-1?(b=0,m.push(o(f)),f=0):b++;for(t=c.charCodeAt(0),n=0;n<8;n++)f=f<<1|1&t,b==r-1?(b=0,m.push(o(f)),f=0):b++,t>>=1}else{for(t=1,n=0;n<u;n++)f=f<<1|t,b==r-1?(b=0,m.push(o(f)),f=0):b++,t=0;for(t=c.charCodeAt(0),n=0;n<16;n++)f=f<<1|1&t,b==r-1?(b=0,m.push(o(f)),f=0):b++,t>>=1}0==--p&&(p=Math.pow(2,u),u++),delete s[c]}else for(t=i[c],n=0;n<u;n++)f=f<<1|1&t,b==r-1?(b=0,m.push(o(f)),f=0):b++,t>>=1;0==--p&&(p=Math.pow(2,u),u++),i[l]=h++,c=String(d)}if(""!==c){if(Object.prototype.hasOwnProperty.call(s,c)){if(c.charCodeAt(0)<256){for(n=0;n<u;n++)f<<=1,b==r-1?(b=0,m.push(o(f)),f=0):b++;for(t=c.charCodeAt(0),n=0;n<8;n++)f=f<<1|1&t,b==r-1?(b=0,m.push(o(f)),f=0):b++,t>>=1}else{for(t=1,n=0;n<u;n++)f=f<<1|t,b==r-1?(b=0,m.push(o(f)),f=0):b++,t=0;for(t=c.charCodeAt(0),n=0;n<16;n++)f=f<<1|1&t,b==r-1?(b=0,m.push(o(f)),f=0):b++,t>>=1}0==--p&&(p=Math.pow(2,u),u++),delete s[c]}else for(t=i[c],n=0;n<u;n++)f=f<<1|1&t,b==r-1?(b=0,m.push(o(f)),f=0):b++,t>>=1;0==--p&&(p=Math.pow(2,u),u++)}for(t=2,n=0;n<u;n++)f=f<<1|1&t,b==r-1?(b=0,m.push(o(f)),f=0):b++,t>>=1;for(;;){if(f<<=1,b==r-1){m.push(o(f));break}b++}return m.join("")},decompress:function(e){return null==e?"":""==e?null:a._decompress(e.length,32768,function(r){return e.charCodeAt(r)})},_decompress:function(r,o,n){var t,a,i,s,d,l,c,p=[],h=4,u=4,m=3,f="",b=[],g={val:n(0),position:o,index:1};for(t=0;t<3;t+=1)p[t]=t;for(i=0,d=Math.pow(2,2),l=1;l!=d;)s=g.val&g.position,g.position>>=1,0==g.position&&(g.position=o,g.val=n(g.index++)),i|=(s>
10?1:0)*l,l<<=1;switch(i){case 0:for(i=0,d=Math.pow(2,8),l=1;l!=d;)s=g.val&g.position,g.position>>=1,0==g.position&&(g.position=o,g.val=n(g.index++)),i|=(s>0?1:0)*l,l<<=1;c=e(i);break;case 1:for(i=0,d=Math.pow(2,16),l=1;l!=d;)s=g.val&g.position,g.position>>=1,0==g.position&&(g.position=o,g.val=n(g.index++)),i|=(s>0?1:0)*l,l<<=1;c=e(i);break;case 2:return""}for(p[3]=c,a=c,b.push(c);;){if(g.index>r)return"";for(i=0,d=Math.pow(2,m),l=1;l!=d;)s=g.val&g.position,g.position>>=1,0==g.position&&(g.position=o,g.val=n(g.index++)),i|=(s>0?1:0)*l,l<<=1;switch(c=i){case 0:for(i=0,d=Math.pow(2,8),l=1;l!=d;)s=g.val&g.position,g.position>>=1,0==g.position&&(g.position=o,g.val=n(g.index++)),i|=(s>0?1:0)*l,l<<=1;p[u++]=e(i),c=u-1,h--;break;case 1:for(i=0,d=Math.pow(2,16),l=1;l!=d;)s=g.val&g.position,g.position>>=1,0==g.position&&(g.position=o,g.val=n(g.index++)),i|=(s>0?1:0)*l,l<<=1;p[u++]=e(i),c=u-1,h--;break;case 2:return b.join("")}if(0==h&&(h=Math.pow(2,m),m++),p[c])f=p[c];else{if(c!==u)return null;f=a+a.charAt(0)}b.push(f),p[u++]=a+f.charAt(0),a=f,0==--h&&(h=Math.pow(2,m),m++)}}};return a}();void 0!==r&&null!=r&&(r.exports=o)},()=>(t||n((t={exports:{}}).exports,t),t.exports)),m=((e,r,o)=>(o=null!=e?s(p(e)):{},((e,r,o,n)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let t of c(r))!h.call(e,t)&&t!==o&&d(e,t,{get:()=>r[t],enumerable:!(n=l(r,t))||n.enumerable});return e})(!r&&e&&e.__esModule?o:d(o,"default",{value:e,enumerable:!0}),e)))(u());async function f(e,r={}){"object"==typeof e&&!(e instanceof HTMLElement)&&(e.headless||"headless"===e.view)&&(r=e,e=null);let{config:o={},headless:n,loading:t="lazy",view:a}=r,i=n||"headless"===a,s=null,d=null;if("string"==typeof e)s=document.querySelector(e);else if(e instanceof HTMLElement)s=e;else if(!i||"object"!=typeof e)throw new Error("A valid container element is required.");if(!s){if(!i)throw new Error(`Cannot find element: "${e}"`);s=document.createElement("div"),_(s),document.body.appendChild(s)}let l=new URL(function(e={}){let r,{appUrl:o="https://livecodes.io",params:n={},config:t={},headless:a,import:i,lite:s,view:d,...l}=e;try{r=new URL(o)}catch(h){throw new Error(`${o} is not a valid URL.`)}let c=new URLSearchParams;Object.entries(l).forEach(([e,o])=>{void 0!==o&&r.searchParams.set(e,String(o))});let p="headless"===e.view||a;if(s&&(console.warn('Deprecation notice: "lite" option is deprecated. Use "config: { mode: \'lite\' }" instead.'),"object"==typeof t&&null==t.mode?t.mode="lite":r.searchParams.set("lite","true")),d&&(console.warn('Deprecation notice: The "view" option has been moved to "config.view". For headless mode use "headless: true".'),"object"==typeof t&&null==t.view&&"headless"!==d?t.view=d:r.searchParams.set("view",d)),"string"==typeof t)try{new URL(t),r.searchParams.set("config",encodeURIComponent(t))}catch(h){throw new Error('"config" is not a valid URL or configuration object.')}else t&&"object"==typeof t&&Object.keys(t).length>0&&(t.title&&"Untitled Project"!==t.title&&r.searchParams.set("title",t.title),t.description&&t.description.length>0&&r.searchParams.set("description",t.description),c.set("config","code/"+(0,m.compressToEncodedURIComponent)(JSON.stringify(t))));if(n&&"object"==typeof n&&Object.keys(n).length>0)try{c.set("params",(0,m.compressToEncodedURIComponent)(JSON.stringify(n)))}catch(h){Object.keys(n).forEach(e=>{r.searchParams.set(e,encodeURIComponent(String(n[e])))})}return i&&r.searchParams.set("x",encodeURIComponent(i)),p&&r.searchParams.set("headless","true"),c.toString().length>0&&(r.hash=c.toString()),r.href}(r)),c=l.origin;l.searchParams.set("embed","true"),l.searchParams.set("loading",i?"eager":t),l.searchParams.set("sdkVersion","0.13.0"),"object"==typeof o&&Object.keys(o).length>0&&l.searchParams.set("config","sdk");let p=r.params;"object"==typeof p&&Object.keys(p).length>0&&JSON.stringify(p).length<1800&&Object.keys(p).forEach(e=>{l.searchParams.set(e,encodeURIComponent(String(p[e])))});let h=!1,u="Cannot call API methods after calling `destroy()`.",f=[],b=(e,r="message")=>{addEventListener(r,e),f.push(e)},g=await new Promise(e=>{var r,n,a,p,h,u,m,f,g;if(!s)return;let w=s.dataset.height||s.style.height;if(w&&!i){let e=isNaN(Number(w))?w:w+"px";s.style.height=e}
1"false"!==s.dataset.defaultStyles&&!i&&((r=s.style).backgroundColor||(r.backgroundColor="#fff"),(n=s.style).border||(n.border="1px solid black"),(a=s.style).borderRadius||(a.borderRadius="8px"),(p=s.style).boxSizing||(p.boxSizing="border-box"),(h=s.style).padding||(h.padding="0"),(u=s.style).width||(u.width="100%"),(m=s.style).height||(m.height=s.style.height||"300px"),s.style.minHeight="200px",s.style.flexGrow="1",(f=s.style).overflow||(f.overflow="hidden"),(g=s.style).resize||(g.resize="vertical"));let v="livecodes",y=s.querySelector(`iframe.${v}`),k=y||document.createElement("iframe");k.classList.add(v),k.setAttribute("allow","accelerometer; camera; encrypted-media; display-capture; geolocation; gyroscope; microphone; midi; clipboard-read; clipboard-write; web-share"),k.setAttribute("allowtransparency","true"),k.setAttribute("allowpaymentrequest","true"),k.setAttribute("allowfullscreen","true"),k.setAttribute("sandbox","allow-same-origin allow-downloads allow-forms allow-modals allow-orientation-lock allow-pointer-lock allow-popups allow-presentation allow-scripts");let x="eager"===t?"eager":"lazy";k.setAttribute("loading",x),i?_(k):(k.style.height="100%",k.style.minHeight="200px",k.style.width="100%",k.style.margin="0",k.style.border="0",k.style.borderRadius=s.style.borderRadius),b(function e(r){var o;r.source!==k.contentWindow||r.origin!==c||"livecodes-init"!==(null==(o=r.data)?void 0:o.type)||(removeEventListener("message",e),d=Number(r.data.payload.appVersion.replace(/^v/,"")))}),(!d||d<46)&&b(function e(r){var n,t;r.source!==k.contentWindow||r.origin!==c||"livecodes-get-config"!==(null==(n=r.data)?void 0:n.type)||(removeEventListener("message",e),null==(t=k.contentWindow)||t.postMessage({type:"livecodes-config",payload:o},c))}),k.onload=()=>{e(k)},k.src=l.href,y||s.appendChild(k)}),w=new Promise(e=>{b(function r(o){var n;o.source!==g.contentWindow||o.origin!==c||"livecodes-ready"!==(null==(n=o.data)?void 0:n.type)||(removeEventListener("message",r),e(),w.settled=!0)})}),v=()=>h?Promise.reject(u):new Promise(async e=>{var r;w.settled&&e();null==(r=g.contentWindow)||r.postMessage({type:"livecodes-load"},c),await w,e()}),y=(e,r)=>new Promise(async(o,n)=>{var t;if(h)return n(u);await v();let a=A();b(function r(t){var i,s;if(t.source===g.contentWindow&&t.origin===c&&"livecodes-api-response"===(null==(i=t.data)?void 0:i.type)&&(null==(s=t.data)?void 0:s.id)===a&&t.data.method===e){removeEventListener("message",r);let e=t.data.payload;null!=e&&e.error?n(e.error):o(e)}}),null==(t=g.contentWindow)||t.postMessage({method:e,id:a,args:r},c)}),k={},x=["load","ready","code","console","tests","destroy"],C=(e,r)=>{var o;if(h)throw new Error(u);return x.includes(e)?(y("watch",[e]),k[e]||(k[e]=[]),null==(o=k[e])||o.push(r),{remove:()=>{var o,n;k[e]=null==(o=k[e])?void 0:o.filter(e=>e!==r),0===(null==(n=k[e])?void 0:n.length)&&y("watch",[e,"unsubscribe"])}}):{remove:()=>{}}};b(async function(e){var r,o,n,t;let a={"livecodes-app-loaded":"load","livecodes-ready":"ready","livecodes-change":"code","livecodes-console":"console","livecodes-test-results":"tests","livecodes-destroy":"destroy"}[null!=(o=null==(r=e.data)?void 0:r.type)?o:""];if(e.source!==g.contentWindow||e.origin!==c||!a||!k[a])return;let i=null==(n=e.data)?void 0:n.payload;null==(t=k[a])||t.forEach(e=>{e(i)})});let j;function _(e){e.style.position="absolute",e.style.top="0",e.style.visibility="hidden",e.style.opacity="0"}"lazy"===t&&"IntersectionObserver"in window&&(j=new IntersectionObserver((e,r)=>{e.forEach(async e=>{e.isIntersecting&&(await v(),r.unobserve(s))})},{rootMargin:"150px"}),j.observe(s));let A=()=>(String(Math.random())+Date.now().toFixed()).replace("0.","");return{load:()=>v(),run:()=>y("run"),format:e=>y("format",[e]),getShareUrl:e=>y("getShareUrl",[e]),getConfig:e=>y("getConfig",[e]),setConfig:e=>y("setConfig",[e]),getCode:()=>y("getCode"),show:(e,r)=>y("show",[e,r]),runTests:()=>y("runTests"),onChange:e=>C("code",e),watch:C,exec:(e,...r)=>y("exec",[e,...r]),destroy:()=>{return h?Promise.reject(u):(null==(e=null==g?void 0:g.remove)||e.call(g),Object.values(k).forEac
1h(e=>{e.length=0}),f.forEach(e=>removeEventListener("message",e)),f.length=0,j&&s&&j.unobserve(s),h=!0,Promise.resolve());var e}}}function b(e){let r=(0,a.useRef)(null),[o,n]=(0,a.useState)(e.className||""),[t,s]=(0,a.useState)(e.style||{}),[d,l]=(0,a.useState)(e.height),[c,p]=(0,a.useState)(),[h,u]=(0,a.useState)(JSON.stringify(e.config||"")),[m,b]=(0,a.useState)("");return(0,a.useEffect)(()=>{if(!r.current)return;let{className:o,style:t,height:a,sdkReady:i,config:d,...g}=e;if(n(o||""),s(t||{}),l(a),c&&m===JSON.stringify(g)){if(h===JSON.stringify(d))return;u(JSON.stringify(d)),"string"==typeof d?fetch(d).then(e=>e.json()).then(e=>{null==c||c.setConfig(e)}):d&&c.setConfig(d)}else b(JSON.stringify(g)),null==c||c.destroy(),f(r.current,{config:d,...g}).then(e=>{p(e),"function"==typeof i&&i(e)})},[e]),(0,a.useEffect)(()=>()=>{null==c||c.destroy()},[]),(0,i.jsx)("div",{ref:r,className:o,style:t,"data-height":d})}},4056(e,r,o){o.d(r,{R:()=>i,x:()=>s});var n=o(2155);const t={},a=n.createContext(t);function i(e){const r=n.useContext(a);return n.useMemo(function(){return"function"==typeof e?e(r):{...r,...e}},[r,e])}function s(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:i(e.components),n.createElement(a.Provider,{value:r},e.children)}},9741(e,r,o){o.d(r,{A:()=>a});o(2155);var n=o(1950),t=o(5723);function a({children:e,fallback:r}){return(0,n.A)()?(0,t.jsx)(t.Fragment,{children:e?.()}):r??null}},9766(e,r,o){o.r(r),o.d(r,{assets:()=>l,contentTitle:()=>d,default:()=>h,frontMatter:()=>s,metadata:()=>n,toc:()=>c});const n=JSON.parse('{"id":"address-lookup/separate-input","title":"Separate Input from Address","description":"Specify an inputField to apply the Address Lookup to a field other than the first line of the address.","source":"@site/docs/address-lookup/separate-input.mdx","sourceDirName":"address-lookup","slug":"/address-lookup/separate-input","permalink":"/docs/address-lookup/separate-input","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"title":"Separate Input from Address","sidebar_label":"Separate Input from Address"},"sidebar":"addressfinder","previous":{"title":"Accessibility","permalink":"/docs/address-lookup/accessibility"},"next":{"title":"Attach Multiple Instances","permalink":"/docs/address-lookup/multiple"}}');var t=o(5723),a=o(4056),i=o(1571);const s={title:"Separate Input from Address",sidebar_label:"Separate Input from Address"},d=void 0,l={},c=[];function p(e){const r={code:"code",p:"p",...(0,a.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(r.p,{children:["Specify an ",(0,t.jsx)(r.code,{children:"inputField"})," to apply the Address Lookup to a field other than the first line of the address."]}),"\n",(0,t.jsx)(i.n,{html:'<form>\n<label for="input">Search Your Address</label>\n<input type="text" id="input" placeholder="Start typing address here" />\n<hr />\n<label for="line_1">Address First Line</label>\n<input type="text" id="line_1" />\n<label for="line_2">Address Second Line</label>\n<input type="text" id="line_2" />\n<label for="city">City</label>\n<input type="text" id="city" />\n<label for="state">State</label>\n<input type="text" id="state" />\n<label for="zipcode">Zip Code</label>\n<input type="text" id="zipcode" />\n</form>',js:'\nimport { AddressLookup } from "@addresszen/address-lookup";\n\nAddressLookup.setup({\n apiKey: "ak_test",\n inputField: "#input",\n outputFields: {\n line_1: "#line_1",\n line_2: "#line_2",\n city: "#city",\n state: "#state",\n zip_plus_4_code: "#zipcode",\n },\n});\n',css:'\nlabel[for="input"] {\n font-size: 0.9375rem;\n font-weight: 600;\n}\n#input {\n padding: 0.625rem 0.875rem;\n font-size: 0.9375rem;\n border-width: 2px;\n}\nhr {\n border: 0;\n border-top: 1px solid #e5e7eb;\n margin: 1.25rem 0 0.5rem;\n}\n[data-theme="dark"] hr {\n border-top-color: #374151;\n}\n'})]})}function h(e={}){const{wrapper:r}={...(0,a.R)(),...e.components};return r?(0,t.jsx)(r,{...e,children:(0,t.jsx)(p,{...e})}):p(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.