import{aS as O,u as P,a4 as Z}from"./entry.EUMWLz5Y.js";import"./swiper-vue.w40geAFS.js";const C="3.7.5",N=C,V=typeof atob=="function",j=typeof btoa=="function",f=typeof Buffer=="function",p=typeof TextDecoder=="function"?new TextDecoder:void 0,g=typeof TextEncoder=="function"?new TextEncoder:void 0,L="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c=Array.prototype.slice.call(L),d=(t=>{let e={};return t.forEach((r,n)=>e[r]=n),e})(c),J=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,o=String.fromCharCode.bind(String),_=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),U=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),S=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),F=t=>{let e,r,n,s,a="";const x=t.length%3;for(let u=0;u<t.length;){if((r=t.charCodeAt(u++))>255||(n=t.charCodeAt(u++))>255||(s=t.charCodeAt(u++))>255)throw new TypeError("invalid character found");e=r<<16|n<<8|s,a+=c[e>>18&63]+c[e>>12&63]+c[e>>6&63]+c[e&63]}return x?a.slice(0,x-3)+"===".substring(x):a},y=j?t=>btoa(t):f?t=>Buffer.from(t,"binary").toString("base64"):F,h=f?t=>Buffer.from(t).toString("base64"):t=>{let r=[];for(let n=0,s=t.length;n<s;n+=4096)r.push(o.apply(null,t.subarray(n,n+4096)));return y(r.join(""))},l=(t,e=!1)=>e?U(h(t)):h(t),H=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?o(192|e>>>6)+o(128|e&63):o(224|e>>>12&15)+o(128|e>>>6&63)+o(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return o(240|e>>>18&7)+o(128|e>>>12&63)+o(128|e>>>6&63)+o(128|e&63)}},M=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,D=t=>t.replace(M,H),m=f?t=>Buffer.from(t,"utf8").toString("base64"):g?t=>h(g.encode(t)):t=>y(D(t)),i=(t,e=!1)=>e?U(m(t)):m(t),B=t=>i(t,!0),$=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,q=t=>{switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),r=e-65536;return o((r>>>10)+55296)+o((r&1023)+56320);case 3:return o((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return o((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},R=t=>t.replace($,q),E=t=>{if(t=t.replace(/\s+/g,""),!J.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(t.length&3));let e,r="",n,s;for(let a=0;a<t.length;)e=d[t.charAt(a++)]<<18|d[t.charAt(a++)]<<12|(n=d[t.charAt(a++)])<<6|(s=d[t.charAt(a++)]),r+=n===64?o(e>>16&255):s===64?o(e>>16&255,e>>8&255):o(e>>16&255,e>>8&255,e&255);return r},A=V?t=>atob(S(t)):f?t=>Buffer.from(t,"base64").toString("binary"):E,v=f?t=>_(Buffer.from(t,"base64")):t=>_(A(t).split("").map(e=>e.charCodeAt(0))),w=t=>v(I(t)),G=f?t=>Buffer.from(t,"base64").toString("utf8"):p?t=>p.decode(v(t)):t=>R(A(t)),I=t=>S(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),b=t=>G(I(t)),K=t=>{if(typeof t!="string")return!1;const e=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(e)||!/[^\s0-9a-zA-Z\-_]/.test(e)},T=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),k=function(){const t=(e,r)=>Object.defineProperty(String.prototype,e,T(r));t("fromBase64",function(){return b(this)}),t("toBase64",function(e){return i(this,e)}),t("toBase64URI",function(){return i(this,!0)}),t("toBase64URL",function(){return i(this,!0)}),t("toUint8Array",function(){return w(this)})},z=function(){const t=(e,r)=>Object.defineProperty(Uint8Array.prototype,e,T(r));t("toBase64",function(e){return l(this,e)}),t("toBase64URI",function(){return l(this,!0)}),t("toBase64URL",function(){return l(this,!0)})},Q=()=>{k(),z()},W={version:C,VERSION:N,atob:A,atobPolyfill:E,btoa:y,btoaPolyfill:F,fromBase64:b,toBase64:i,encode:i,encodeURI:B,encodeURL:B,utob:D,btou:R,decode:b,isValid:K,fromUint8Array:l,toUint8Array:w,extendString:k,extendUint8Array:z,extendBuiltins:Q},tt=O(()=>{const t=P(),e=Z();if(t.hash!==void 0){let r=null;try{r=JSON.parse(W.decode(decodeURIComponent(t.hash.substring(1))))}catch{}if(r!==null&&r.error!==void 0)switch(r.error){case"email_already_registered":e.error("同じメールアドレスですでにお客様情報が登録されています");break;case"account_inactivated":e.error("このアカウントは現在利用できません。サポートにお問い合わせください");break;case"socialaccount_connection_failed":e.error("アカウント連携に失敗しました");break;case"cancelled":e.error("アカウント連携がキャンセルされました");break;case"invalid_freee_company_id":e.error("不正な事業所IDが与えられました");break}}});export{tt as default};
