(()=>{"use strict";var e={991:e=>{e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),t.hash&&(e+=t.hash),t.maybeNeedQuotes&&/[\t\n\f\r "'=<>`]/.test(e)?'"'.concat(e,'"'):e):e}},806:e=>{e.exports="https://cmhf.gnst.jp/img/banner_1.24299094f1dbb7c47566..png"}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}function r(e,t){return function(){return e.apply(t,arguments)}}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.b=document.baseURI||self.location.href;const{toString:o}=Object.prototype,{getPrototypeOf:i}=Object,a=(s=Object.create(null),e=>{const t=o.call(e);return s[t]||(s[t]=t.slice(8,-1).toLowerCase())});var s;const c=e=>(e=e.toLowerCase(),t=>a(t)===e),l=e=>t=>typeof t===e,{isArray:d}=Array,p=l("undefined");const h=c("ArrayBuffer");const u=l("string"),m=l("function"),f=l("number"),g=e=>null!==e&&"object"==typeof e,b=e=>{if("object"!==a(e))return!1;const t=i(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},y=c("Date"),v=c("File"),w=c("Blob"),x=c("FileList"),_=c("URLSearchParams");function k(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),d(e))for(r=0,o=e.length;r0;)if(r=n[o],t===r.toLowerCase())return r;return null}const R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,C=e=>!p(e)&&e!==R;const E=(S="undefined"!=typeof Uint8Array&&i(Uint8Array),e=>S&&e instanceof S);var S;const A=c("HTMLFormElement"),O=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),L=c("RegExp"),T=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};k(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},N="abcdefghijklmnopqrstuvwxyz",U="0123456789",B={DIGIT:U,ALPHA:N,ALPHA_DIGIT:N+N.toUpperCase()+U};const P=c("AsyncFunction"),D={isArray:d,isArrayBuffer:h,isBuffer:function(e){return null!==e&&!p(e)&&null!==e.constructor&&!p(e.constructor)&&m(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||m(e.append)&&("formdata"===(t=a(e))||"object"===t&&m(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&h(e.buffer),t},isString:u,isNumber:f,isBoolean:e=>!0===e||!1===e,isObject:g,isPlainObject:b,isUndefined:p,isDate:y,isFile:v,isBlob:w,isRegExp:L,isFunction:m,isStream:e=>g(e)&&m(e.pipe),isURLSearchParams:_,isTypedArray:E,isFileList:x,forEach:k,merge:function e(){const{caseless:t}=C(this)&&this||{},n={},r=(r,o)=>{const i=t&&j(n,o)||o;b(n[i])&&b(r)?n[i]=e(n[i],r):b(r)?n[i]=e({},r):d(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e(k(t,((t,o)=>{n&&m(t)?e[o]=r(t,n):e[o]=t}),{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,a,s;const c={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)s=o[a],r&&!r(s,e,t)||c[s]||(t[s]=e[s],c[s]=!0);e=!1!==n&&i(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:c,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(d(e))return e;let t=e.length;if(!f(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:A,hasOwnProperty:O,hasOwnProp:O,reduceDescriptors:T,freezeMethods:e=>{T(e,((t,n)=>{if(m(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];m(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return d(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:j,global:R,isContextDefined:C,ALPHABET:B,generateString:(e=16,t=B.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&m(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(g(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=d(e)?[]:{};return k(e,((e,t)=>{const i=n(e,r+1);!p(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:P,isThenable:e=>e&&(g(e)||m(e))&&m(e.then)&&m(e.catch)};function z(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}D.inherits(z,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:D.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const F=z.prototype,H={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{H[e]={value:e}})),Object.defineProperties(z,H),Object.defineProperty(F,"isAxiosError",{value:!0}),z.from=(e,t,n,r,o,i)=>{const a=Object.create(F);return D.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),z.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const M=z;function I(e){return D.isPlainObject(e)||D.isArray(e)}function q(e){return D.endsWith(e,"[]")?e.slice(0,-2):e}function V(e,t,n){return e?e.concat(t).map((function(e,t){return e=q(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const $=D.toFlatObject(D,{},null,(function(e){return/^is[A-Z]/.test(e)}));const J=function(e,t,n){if(!D.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=D.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!D.isUndefined(t[e])}))).metaTokens,o=n.visitor||l,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&D.isSpecCompliantForm(t);if(!D.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(D.isDate(e))return e.toISOString();if(!s&&D.isBlob(e))throw new M("Blob is not supported. Use a Buffer instead.");return D.isArrayBuffer(e)||D.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(D.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(D.isArray(e)&&function(e){return D.isArray(e)&&!e.some(I)}(e)||(D.isFileList(e)||D.endsWith(n,"[]"))&&(s=D.toArray(e)))return n=q(n),s.forEach((function(e,r){!D.isUndefined(e)&&null!==e&&t.append(!0===a?V([n],r,i):null===a?n:n+"[]",c(e))})),!1;return!!I(e)||(t.append(V(o,n,i),c(e)),!1)}const d=[],p=Object.assign($,{defaultVisitor:l,convertValue:c,isVisitable:I});if(!D.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!D.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+r.join("."));d.push(n),D.forEach(n,(function(n,i){!0===(!(D.isUndefined(n)||null===n)&&o.call(t,n,D.isString(i)?i.trim():i,r,p))&&e(n,r?r.concat(i):[i])})),d.pop()}}(e),t};function K(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Z(e,t){this._pairs=[],e&&J(e,this,t)}const W=Z.prototype;W.append=function(e,t){this._pairs.push([e,t])},W.toString=function(e){const t=e?function(t){return e.call(this,t,K)}:K;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const G=Z;function X(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Y(e,t,n){if(!t)return e;const r=n&&n.encode||X,o=n&&n.serialize;let i;if(i=o?o(t,n):D.isURLSearchParams(t)?t.toString():new G(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const Q=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){D.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ee={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},te={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:G,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&("undefined"!=typeof window&&"undefined"!=typeof document)})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]};const ne=function(e){function t(e,n,r,o){let i=e[o++];const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&D.isArray(r)?r.length:i,s)return D.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&D.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&D.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r{t(function(e){return D.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const re={transitional:ee,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=D.isObject(e);o&&D.isHTMLForm(e)&&(e=new FormData(e));if(D.isFormData(e))return r&&r?JSON.stringify(ne(e)):e;if(D.isArrayBuffer(e)||D.isBuffer(e)||D.isStream(e)||D.isFile(e)||D.isBlob(e))return e;if(D.isArrayBufferView(e))return e.buffer;if(D.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return J(e,new te.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return te.isNode&&D.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=D.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return J(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(D.isString(e))try{return(t||JSON.parse)(e),D.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||re.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&D.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw M.from(e,M.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:te.classes.FormData,Blob:te.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};D.forEach(["delete","get","head","post","put","patch"],(e=>{re.headers[e]={}}));const oe=re,ie=D.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ae=Symbol("internals");function se(e){return e&&String(e).trim().toLowerCase()}function ce(e){return!1===e||null==e?e:D.isArray(e)?e.map(ce):String(e)}function le(e,t,n,r,o){return D.isFunction(r)?r.call(this,t,n):(o&&(t=n),D.isString(t)?D.isString(r)?-1!==t.indexOf(r):D.isRegExp(r)?r.test(t):void 0:void 0)}class de{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=se(t);if(!o)throw new Error("header name must be a non-empty string");const i=D.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=ce(e))}const i=(e,t)=>D.forEach(e,((e,n)=>o(e,n,t)));return D.isPlainObject(e)||e instanceof this.constructor?i(e,t):D.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&ie[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&o(t,e,n),this}get(e,t){if(e=se(e)){const n=D.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(D.isFunction(t))return t.call(this,e,n);if(D.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=se(e)){const n=D.findKey(this,e);return!(!n||void 0===this[n]||t&&!le(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=se(e)){const o=D.findKey(n,e);!o||t&&!le(0,n[o],o,t)||(delete n[o],r=!0)}}return D.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!le(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return D.forEach(this,((r,o)=>{const i=D.findKey(n,o);if(i)return t[i]=ce(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=ce(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return D.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&D.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[ae]=this[ae]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=se(e);t[r]||(!function(e,t){const n=D.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return D.isArray(e)?e.forEach(r):r(e),this}}de.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),D.reduceDescriptors(de.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),D.freezeMethods(de);const pe=de;function he(e,t){const n=this||oe,r=t||n,o=pe.from(r.headers);let i=r.data;return D.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function ue(e){return!(!e||!e.__CANCEL__)}function me(e,t,n){M.call(this,null==e?"canceled":e,M.ERR_CANCELED,t,n),this.name="CanceledError"}D.inherits(me,M,{__CANCEL__:!0});const fe=me;const ge=te.isStandardBrowserEnv?{write:function(e,t,n,r,o,i){const a=[];a.push(e+"="+encodeURIComponent(t)),D.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),D.isString(r)&&a.push("path="+r),D.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function be(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const ye=te.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=D.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};const ve=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),l=r[a];o||(o=c),n[i]=s,r[i]=c;let d=a,p=0;for(;d!==i;)p+=n[d++],d%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o{const i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-n,c=r(s);n=i;const l={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:o};l[t?"download":"upload"]=!0,e(l)}}const xe={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const o=pe.from(e.headers).normalize(),i=e.responseType;let a,s;function c(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}D.isFormData(r)&&(te.isStandardBrowserEnv||te.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.getContentType(/^\s*multipart\/form-data/)?D.isString(s=o.getContentType())&&o.setContentType(s.replace(/^\s*(multipart\/form-data);+/,"$1")):o.setContentType("multipart/form-data"));let l=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const d=be(e.baseURL,e.url);function p(){if(!l)return;const r=pe.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new M("Request failed with status code "+n.status,[M.ERR_BAD_REQUEST,M.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),c()}),(function(e){n(e),c()}),{data:i&&"text"!==i&&"json"!==i?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:r,config:e,request:l}),l=null}if(l.open(e.method.toUpperCase(),Y(d,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=p:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(p)},l.onabort=function(){l&&(n(new M("Request aborted",M.ECONNABORTED,e,l)),l=null)},l.onerror=function(){n(new M("Network Error",M.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||ee;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new M(t,r.clarifyTimeoutError?M.ETIMEDOUT:M.ECONNABORTED,e,l)),l=null},te.isStandardBrowserEnv){const t=ye(d)&&e.xsrfCookieName&&ge.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in l&&D.forEach(o.toJSON(),(function(e,t){l.setRequestHeader(t,e)})),D.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),i&&"json"!==i&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",we(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",we(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=t=>{l&&(n(!t||t.type?new fe(null,e,l):t),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const h=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);h&&-1===te.protocols.indexOf(h)?n(new M("Unsupported protocol "+h+":",M.ERR_BAD_REQUEST,e)):l.send(r||null)}))}};D.forEach(xe,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const _e=e=>`- ${e}`,ke=e=>D.isFunction(e)||null===e||!1===e,je=e=>{e=D.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(_e).join("\n"):" "+_e(e[0]):"as no adapter specified";throw new M("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function Re(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new fe(null,e)}function Ce(e){Re(e),e.headers=pe.from(e.headers),e.data=he.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return je(e.adapter||oe.adapter)(e).then((function(t){return Re(e),t.data=he.call(e,e.transformResponse,t),t.headers=pe.from(t.headers),t}),(function(t){return ue(t)||(Re(e),t&&t.response&&(t.response.data=he.call(e,e.transformResponse,t.response),t.response.headers=pe.from(t.response.headers))),Promise.reject(t)}))}const Ee=e=>e instanceof pe?e.toJSON():e;function Se(e,t){t=t||{};const n={};function r(e,t,n){return D.isPlainObject(e)&&D.isPlainObject(t)?D.merge.call({caseless:n},e,t):D.isPlainObject(t)?D.merge({},t):D.isArray(t)?t.slice():t}function o(e,t,n){return D.isUndefined(t)?D.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!D.isUndefined(t))return r(void 0,t)}function a(e,t){return D.isUndefined(t)?D.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(Ee(e),Ee(t),!0)};return D.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=c[r]||o,a=i(e[r],t[r],r);D.isUndefined(a)&&i!==s||(n[r]=a)})),n}const Ae="1.6.0",Oe={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Oe[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Le={};Oe.transitional=function(e,t,n){function r(e,t){return"[Axios v1.6.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new M(r(o," has been removed"+(t?" in "+t:"")),M.ERR_DEPRECATED);return t&&!Le[o]&&(Le[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};const Te={assertOptions:function(e,t,n){if("object"!=typeof e)throw new M("options must be an object",M.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new M("option "+i+" must be "+n,M.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new M("Unknown option "+i,M.ERR_BAD_OPTION)}},validators:Oe},Ne=Te.validators;class Ue{constructor(e){this.defaults=e,this.interceptors={request:new Q,response:new Q}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Se(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Te.assertOptions(n,{silentJSONParsing:Ne.transitional(Ne.boolean),forcedJSONParsing:Ne.transitional(Ne.boolean),clarifyTimeoutError:Ne.transitional(Ne.boolean)},!1),null!=r&&(D.isFunction(r)?t.paramsSerializer={serialize:r}:Te.assertOptions(r,{encode:Ne.function,serialize:Ne.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&D.merge(o.common,o[t.method]);o&&D.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=pe.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const c=[];let l;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let d,p=0;if(!s){const e=[Ce.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,c),d=e.length,l=Promise.resolve(t);p{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new fe(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Pe((function(t){e=t})),cancel:e}}}const De=Pe;const ze={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ze).forEach((([e,t])=>{ze[t]=e}));const Fe=ze;const He=function e(t){const n=new Be(t),o=r(Be.prototype.request,n);return D.extend(o,Be.prototype,n,{allOwnKeys:!0}),D.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(Se(t,n))},o}(oe);He.Axios=Be,He.CanceledError=fe,He.CancelToken=De,He.isCancel=ue,He.VERSION=Ae,He.toFormData=J,He.AxiosError=M,He.Cancel=He.CanceledError,He.all=function(e){return Promise.all(e)},He.spread=function(e){return function(t){return e.apply(null,t)}},He.isAxiosError=function(e){return D.isObject(e)&&!0===e.isAxiosError},He.mergeConfig=Se,He.AxiosHeaders=pe,He.formToJSON=e=>ne(D.isHTMLForm(e)?new FormData(e):e),He.getAdapter=je,He.HttpStatusCode=Fe,He.default=He;const Me=He;function Ie(e){if(!e)return[];const t=e=>"none"===window.getComputedStyle(e).display||!!e?.parentElement&&t(e.parentElement),n=e.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');return Array.from(n).filter((e=>!t(e)))}const qe=e=>{"sc_count"in window?window.sc_count(e):console.log(`sc_count: "${e}"`)},Ve={ロイヤル幹事:{imgSrc:"https://cmhf.gnst.jp/img/icon_rank_royal.d4658e4c535f2ab540f1..svg",altText:"ロイヤル幹事"},エース幹事:{imgSrc:"https://cmhf.gnst.jp/img/icon_rank_ace.aef64ffea69c5e7f98a8..svg",altText:"エース幹事"},レギュラー幹事:{imgSrc:"https://cmhf.gnst.jp/img/icon_rank_regular.cc51d299b3eaa7946613..svg",altText:"レギュラー幹事"},ランクなし:{imgSrc:"",altText:"獲得していません"}};var $e=n(991),Je=n.n($e),Ke=new URL(n(806),n.b);const Ze="gn-header",We=((e,...t)=>{const n=document.createElement("template");return n.innerHTML=`\n \n ${t.join("")}\n `,n})('.root,button{font-feature-settings:"palt";font-family:YakuHanJP,"Helvetica Neue",Arial,"Hiragino Kaku Gothic ProN","Hiragino Sans",Meiryo,sans-serif}header{display:flex;align-items:center;justify-content:space-between;height:100%}.back{color:#333;font-size:10px;height:100%;margin-left:6px;padding:2px 0;align-items:center;-webkit-text-decoration:none;text-decoration:none;margin-right:8px;width:90px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.back[aria-hidden=true]{display:none}.back::before{content:"";display:inline-block;width:7px;height:7px;margin-left:2px;margin-right:8px;border-top:2px solid #7e7e7e;border-right:2px solid #7e7e7e;transform:rotate(-135deg);box-sizing:initial}.back:empty{pointer-events:none}.back:empty::before{display:none}.back:focus{box-shadow:0 0 0 2px #007dd9;outline:none;border-radius:4px}.slot{flex:1;display:block}.headerRecommend,.headerCoupon,.favorite,.mypage{display:block;border:none;background-color:rgba(0,0,0,0);padding:6px 0;margin-left:8px;width:50px;height:100%;text-align:center;cursor:pointer;-webkit-text-decoration:none;text-decoration:none;box-sizing:border-box}.headerRecommend[aria-hidden=true],.headerCoupon[aria-hidden=true],.favorite[aria-hidden=true],.mypage[aria-hidden=true]{display:none}.headerRecommend:focus,.headerCoupon:focus,.favorite:focus,.mypage:focus{box-shadow:0 0 0 2px #007dd9;outline:none;border-radius:4px}.headerRecommend .icon,.headerCoupon .icon,.favorite .icon,.mypage .icon{display:block;width:20px;height:20px;margin:auto;fill:#7e7e7e}.headerRecommend span,.headerCoupon span,.favorite span,.mypage span{display:block;font-size:10px;line-height:1.2;color:#333;margin-top:4px}.headerRecommend{position:relative}.headerRecommend .headerRecommendUnread{position:absolute;display:block;background-color:#e51e00;width:20px;height:20px;top:0;right:5px;border:1px solid #fff;border-radius:50%;font-size:10px;color:#fff;line-height:2;margin-top:0}.headerRecommend .headerRecommendUnread[aria-hidden=true]{display:none}.headerCoupon{position:relative}@media screen and (min-width: 410px)and (max-width: 768px){.headerCoupon{display:none}}.drawer{display:block;visibility:visible;opacity:1;position:fixed;z-index:99999999;top:0;left:0;width:100%;height:100%;padding:0;border:none;background-color:rgba(0,0,0,.75);box-shadow:-260px 0 0 #fff inset;transition:visibility .2s, opacity .2s, box-shadow .2s}.drawer[aria-hidden=true]{box-shadow:0 0 0 #fff inset;visibility:hidden;opacity:0}.drawerClose{display:block;border:none;background-color:rgba(0,0,0,0);padding:0;position:fixed;top:12px;right:274px;animation-fill-mode:forwards;animation-duration:.2s;cursor:pointer}.drawerClose[aria-hidden=false]{animation-name:openDrawerContainer}.drawerClose[aria-hidden=true]{animation-name:closeDrawerContainer}.drawerClose:focus{box-shadow:0 0 0 2px #007dd9;outline:none;border-radius:4px}.drawerClose .icon{display:block;width:32px;height:32px}@keyframes openDrawerContainer{from{transform:translateX(260px)}to{transform:translateX(0);visibility:visible}}@keyframes closeDrawerContainer{from{transform:translateX(0)}to{transform:translateX(260px);visibility:hidden}}.drawerTitle{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.drawerContainer{background-color:#fff;position:absolute;top:0;right:0;height:100%;width:260px;padding:24px;overflow-y:auto;box-sizing:border-box;animation-fill-mode:forwards;animation-duration:.2s}.drawerContainer[aria-hidden=false]{animation-name:openDrawerContainer}.drawerContainer[aria-hidden=true]{animation-name:closeDrawerContainer}.guest{font-size:14px}.guest[aria-hidden=true]{display:none}.name{font-size:16px;word-break:break-all}.name[aria-hidden=true]{display:none}.name a{color:#333;-webkit-text-decoration:none;text-decoration:none}.name a:focus{box-shadow:0 0 0 2px #007dd9;outline:none;border-radius:4px}.point{font-size:12px;line-height:1;margin-top:8px}.point[aria-hidden=true]{display:none}.point a{color:#007dd9;display:flex;align-items:center;-webkit-text-decoration:none;text-decoration:none}.point a:focus{box-shadow:0 0 0 2px #007dd9;outline:none;border-radius:4px}.point .icon{width:15px;height:15px;margin-right:4px}.point .count{color:#007dd9;font-size:16px;font-weight:600;margin-right:4px}.point .unit{color:#0047cc;font-size:12px;font-weight:400}.login{font-size:12px;line-height:1;margin-top:8px}.login[aria-hidden=true]{display:none}.login a{color:#007dd9;-webkit-text-decoration:none;text-decoration:none}.login a:focus{box-shadow:0 0 0 2px #007dd9;outline:none;border-radius:4px}.logout{margin-top:16px;padding:8px 0 0;border-top:1px solid #ccc;text-align:right}.logout[aria-hidden=true]{display:none}.logout a{color:#007dd9;font-size:12px;-webkit-text-decoration:none;text-decoration:none}.logout a:focus{box-shadow:0 0 0 2px #007dd9;outline:none;border-radius:4px}.personal{margin:0;padding:0 0 24px;list-style:none;border-bottom:1px solid #ccc}.personal li{margin-top:24px;font-size:16px;font-weight:600;line-height:1}.personal li[aria-hidden=true]{display:none}.personal li a{display:inline-flex;align-items:center;color:#333;-webkit-text-decoration:none;text-decoration:none}.personal li a:focus{box-shadow:0 0 0 2px #007dd9;outline:none;border-radius:4px}.personal li .icon{width:24px;height:24px;margin-right:8px}.banner{margin-top:24px}.banner:empty{display:none}.banner a{display:inline-block}.banner a:focus{box-shadow:0 0 0 2px #007dd9;outline:none;border-radius:4px}.banner img{vertical-align:bottom}.recommend{margin:0;padding:0;list-style:none}.recommend li{margin-top:24px;font-size:13px;line-height:1}.recommend li a{color:#333;-webkit-text-decoration:none;text-decoration:none}.recommend li a:focus{box-shadow:0 0 0 2px #007dd9;outline:none;border-radius:4px}.kanjiRank{border-bottom:1px solid #ccc;margin-top:16px;padding-bottom:24px}.kanjiRank[aria-hidden=true]{display:none}.kanjiRank .rankContainer{padding:8px;background-color:#fff6c5;display:flex;align-items:center;-webkit-text-decoration:none;text-decoration:none}.kanjiRank .rankContainer::after{content:"";display:inline-block;width:8px;height:8px;border-right:2px solid #7e7e7e;border-bottom:2px solid #7e7e7e;transform:rotate(-45deg);position:relative;top:calc(50% - 4px);right:2px}.kanjiRank .rankIcon{width:34px;height:34px}.kanjiRank .rankIcon img{width:34px;height:34px}.kanjiRank .rankText{color:#333;flex-grow:1;font-size:12px;margin-left:8px}.kanjiRank .rankText p{margin:0}.kanjiRank .rankText p+p{margin-top:4px}.kanjiRank .rankText .rankName{font-size:16px;font-weight:bold}.kanjiRank .rankText .noRank{font-size:12px;font-weight:bold}.kanjiRank .rakutenIdConnect{padding:16px 0 0}.kanjiRank .rakutenIdConnect[aria-hidden=true]{display:none}.kanjiRank .rakutenIdConnect p{color:#333;font-size:12px;margin:0;padding-bottom:8px}.kanjiRank .rakutenIdConnect a{display:block;color:#333;padding:15px 12px;text-align:center;background-color:#fff;border-radius:5px;border:1px solid #ccc;font-size:13px;-webkit-text-decoration:none;text-decoration:none}.kanjiRank .rakutenIdConnect a:hover{background-color:#fcede8}.kanjiRank .disableKanjiRank{color:#333;font-size:12px;margin:0}.root[data-device=pc] header{justify-content:flex-start}.root[data-device=pc] .back{display:none}.root[data-device=pc] .headerRecommend,.root[data-device=pc] .headerCoupon,.root[data-device=pc] .favorite,.root[data-device=pc] .mypage{width:74px;margin-left:0;justify-self:end}.root[data-device=pc] .headerRecommend .icon,.root[data-device=pc] .headerCoupon .icon,.root[data-device=pc] .favorite .icon,.root[data-device=pc] .mypage .icon{width:24px;height:24px}.root[data-device=pc] .headerRecommend span,.root[data-device=pc] .headerCoupon span,.root[data-device=pc] .favorite span,.root[data-device=pc] .mypage span{font-size:12px;line-height:1.4}.root[data-device=pc] .headerRecommend .headerRecommendUnread{top:0;right:20px}@media screen and (min-width: 769px){header{justify-content:flex-start}.back{display:none}.headerRecommend,.headerCoupon,.favorite,.mypage{width:74px;margin-left:0;justify-self:end}.headerRecommend .icon,.headerCoupon .icon,.favorite .icon,.mypage .icon{width:24px;height:24px}.headerRecommend span,.headerCoupon span,.favorite span,.mypage span{font-size:12px;line-height:1.4}.headerRecommend .headerRecommendUnread{top:0;right:20px}.root[data-device=sp] .back{display:flex}.root[data-device=sp] .headerRecommend .icon,.root[data-device=sp] .headerCoupon .icon,.root[data-device=sp] .favorite .icon,.root[data-device=sp] .mypage .icon{width:20px;height:20px}.root[data-device=sp] .headerRecommend span,.root[data-device=sp] .headerCoupon span,.root[data-device=sp] .favorite span,.root[data-device=sp] .mypage span{font-size:10px;line-height:1.2}}@media screen and (max-width: 409px){.headerRecommend,.headerCoupon{display:none}}',' ');class Ge extends HTMLElement{constructor(){super();const e=function(){if(document.cookie.match(/guser_disp=([^\s;]+)/)){const e=decodeURIComponent(RegExp.$1).split("&");return{name:decodeURIComponent(e[4]),point:parseInt(e[6],10).toLocaleString()}}return null}();this.isLogin=Boolean(e),this.userName=e?.name||null,this.userPoint=e?.point||null,this.scrollY=0,this.keyboardBehavior=this.keydown.bind(this)}setBack(){this.elements&&(""!==this.props?.backLabel&&""!==this.props?.backUrl?(this.props?.backLabel&&(this.elements.back.textContent=this.props.backLabel),this.props?.backUrl&&this.elements.back.setAttribute("href",this.props.backUrl),this.props?.backHistory&&this.elements.back.addEventListener("click",(e=>{e.preventDefault(),window.history.back()}))):this.elements.back.setAttribute("aria-hidden","true"))}setRecommend(){if(this.elements&&this.props?.recommend){this.elements.recommend.setAttribute("aria-hidden","false");const e=this.elements.recommend.querySelector(".headerRecommendUnread");if(null===e)return;(async()=>{Me.get("https://cpnt.gnavi.co.jp/header/api/ver-0.0/getCommonHeader.php?callback=g_news_fukidashi_f=true&g_news_icon_f=true&type=json",{xsrfCookieName:"",withCredentials:!0}).then((t=>{const n=t.data.return_data.news_icon_count;n&&(e.setAttribute("aria-hidden","false"),e.textContent=n>99?"99+":n)})).catch((e=>{console.error("getCommonHeader error",e)}))})()}}setCoupon(){this.elements&&this.props?.coupon&&this.elements.coupon.setAttribute("aria-hidden","false")}setFavorite(){this.elements&&this.props?.favorite&&this.elements.favorite.setAttribute("aria-hidden","false")}setMypage(){if(!this.elements)return;const e=this.elements.drawerContainer.querySelector(".user > .guest"),t=this.elements.drawerContainer.querySelector(".user > .name"),n=this.elements.drawerContainer.querySelector(".user > .name > a"),r=this.elements.drawerContainer.querySelector(".user > .point"),o=this.elements.drawerContainer.querySelector(".user > .point .count"),i=this.elements.drawerContainer.querySelector(".user > .kanjiRank"),a=this.elements.drawerContainer.querySelector(".user > .login"),s=this.elements.drawerContainer.querySelector(".personalMypage"),c=this.elements.drawerContainer.querySelector(".logout");null!==e&&null!==t&&null!==n&&null!==r&&null!==o&&null!==i&&null!==a&&null!==s&&null!==c&&(this.isLogin?(n.textContent=`${this.userName}さん`,o.textContent=this.userPoint,e.setAttribute("aria-hidden","true"),a.setAttribute("aria-hidden","true")):(t.setAttribute("aria-hidden","true"),r.setAttribute("aria-hidden","true"),i.setAttribute("aria-hidden","true"),s.setAttribute("aria-hidden","true"),c.setAttribute("aria-hidden","true")),this.elements.mypage.addEventListener("click",(()=>this.openDrawer())),this.elements.drawer.addEventListener("click",(()=>this.closeDrawer())),this.elements.drawerClose.addEventListener("click",(e=>{e.stopPropagation(),this.closeDrawer()})),this.elements.drawerContainer.addEventListener("click",(e=>e.stopPropagation())))}setLink(e){const t=encodeURIComponent(window.location.href),n=this.isLogin?"login":"logout";Object.entries({logout:{headerFavorite:{pc:"https://my.gnavi.co.jp/restaurant/lp/?sc_lid=head_bookmark",sp:"https://my.gnavi.co.jp/restaurant/lp/?sc_lid=head_bookmark"},headerRecommend:{pc:"https://my.gnavi.co.jp/edm/list/?sc_lid=head_recommend",sp:"http://mobile.gnavi.co.jp/iphone/gnrl/gt-news/?sc_lid=head_recommend"},headerCoupon:{pc:"https://member.gnavi.co.jp/mycoupon/?sc_lid=head_mycoupon",sp:"https://member.gnavi.co.jp/mycoupon/?sc_lid=head_mycoupon"},username:{pc:"#",sp:"#"},point:{pc:"#",sp:"#"},login:{pc:"https://my.gnavi.co.jp/authority/login/?cType=gnaviall&sc_cid=head_unlogin_log&rUrl=#{rUrl}",sp:"https://my.gnavi.co.jp/s/login/?cType=GEasy&sc_cid=head_unlogin_log&rUrl=#{rUrl}"},kanjirank:{pc:"#",sp:"#"},rakutenIdConnect:{pc:"#",sp:"#"},reservationHistory:{pc:"https://r.gnavi.co.jp/plan/plan-reserve/plan/user/reservation_history?sc_lid=head_unlogin_reservation_history",sp:"https://r.gnavi.co.jp/plan/plan-reserve/plan/user/reservation_history?sc_lid=head_unlogin_reservation_history"},searchHistory:{pc:"https://my.gnavi.co.jp/history/?sc_lid=head_unlogin_search_history",sp:"https://my.gnavi.co.jp/s/history/?sc_lid=head_unlogin_search_history"},favorite:{pc:"https://my.gnavi.co.jp/restaurant/lp/?sc_lid=head_unlogin_bookmark",sp:"https://my.gnavi.co.jp/restaurant/lp/?sc_lid=head_unlogin_bookmark"},recommend:{pc:"https://my.gnavi.co.jp/edm/list/?sc_lid=head_unlogin_recommend",sp:"http://mobile.gnavi.co.jp/iphone/gnrl/gt-news/?sc_lid=head_unlogin_recommend"},mypage:{pc:"#",sp:"#"},mycoupon:{pc:"https://member.gnavi.co.jp/mycoupon/?sc_lid=head_unlogin_coupon",sp:"https://member.gnavi.co.jp/mycoupon/?sc_lid=head_unlogin_coupon"},banner:{pc:"https://my.gnavi.co.jp/point_platform/rakuten/?sc_lid=head_unlogin_banner_01",sp:"https://my.gnavi.co.jp/point_platform/rakuten/?sc_lid=head_unlogin_banner_01"},campaign:{pc:"https://info.gnavi.co.jp/campaign_list/?sc_lid=head_unlogin_campaign",sp:"https://info.gnavi.co.jp/campaign_list/?sc_lid=head_unlogin_campaign"},businessDinner:{pc:"https://r.gnavi.co.jp/business-dinner/?sc_lid=head_unlogin_nikkei",sp:"https://r.gnavi.co.jp/business-dinner/?sc_lid=head_unlogin_nikkei"},secretary:{pc:"https://secretary.gnavi.co.jp/?sc_lid=head_unlogin_secretary",sp:"https://secretary.gnavi.co.jp/?sc_lid=head_unlogin_secretary"},logout:{pc:"#",sp:"#"}},login:{headerFavorite:{pc:"https://my.gnavi.co.jp/restaurant/?sc_lid=head_bookmark",sp:"https://my.gnavi.co.jp/restaurant/?sc_lid=head_bookmark"},headerRecommend:{pc:"https://my.gnavi.co.jp/edm/list/?sc_lid=head_recommend",sp:"http://mobile.gnavi.co.jp/iphone/gnrl/gt-news/?sc_lid=head_recommend"},headerCoupon:{pc:"https://member.gnavi.co.jp/mycoupon/?sc_lid=head_mycoupon",sp:"https://member.gnavi.co.jp/mycoupon/?sc_lid=head_mycoupon"},username:{pc:"https://my.gnavi.co.jp/?sc_lid=head_login_name",sp:"https://my.gnavi.co.jp/s/?sc_lid=head_login_name"},point:{pc:"https://my.gnavi.co.jp/point/history/hst01/?sc_lid=head_login_point",sp:"https://my.gnavi.co.jp/point/history/hst01/?sc_lid=head_login_point"},login:{pc:"#",sp:"#"},kanjirank:{pc:"https://member.gnavi.co.jp/kanjirank/?sc_lid=head_knjrank#section-current-kanjirank",sp:"https://member.gnavi.co.jp/kanjirank/?sc_lid=head_knjrank#section-current-kanjirank"},rakutenIdConnect:{pc:"https://my.gnavi.co.jp/connects/?page=raf&rUrl=#{rUrl}",sp:"https://my.gnavi.co.jp/connects/?page=raf&rUrl=#{rUrl}"},reservationHistory:{pc:"https://r.gnavi.co.jp/plan/plan-reserve/plan/user/reservation_history?sc_lid=head_login_reservation_history",sp:"https://r.gnavi.co.jp/plan/plan-reserve/plan/user/reservation_history?sc_lid=head_login_reservation_history"},searchHistory:{pc:"https://my.gnavi.co.jp/history/?sc_lid=head_login_search_history",sp:"https://my.gnavi.co.jp/s/history/?sc_lid=head_login_search_history"},favorite:{pc:"https://my.gnavi.co.jp/restaurant/?sc_lid=head_login_bookmark",sp:"https://my.gnavi.co.jp/restaurant/?sc_lid=head_login_bookmark"},recommend:{pc:"https://my.gnavi.co.jp/edm/list/?sc_lid=head_login_recommend",sp:"http://mobile.gnavi.co.jp/iphone/gnrl/gt-news/?sc_lid=head_login_recommend"},mypage:{pc:"https://my.gnavi.co.jp/?sc_cid=head_login_myg",sp:"https://my.gnavi.co.jp/s/?sc_cid=head_login_myg"},mycoupon:{pc:"https://member.gnavi.co.jp/mycoupon/?sc_lid=head_login_coupon",sp:"https://member.gnavi.co.jp/mycoupon/?sc_lid=head_login_coupon"},banner:{pc:"https://my.gnavi.co.jp/point_platform/rakuten/?sc_lid=head_login_banner_01",sp:"https://my.gnavi.co.jp/point_platform/rakuten/?sc_lid=head_login_banner_01"},campaign:{pc:"https://info.gnavi.co.jp/campaign_list/?sc_lid=head_login_campaign",sp:"https://info.gnavi.co.jp/campaign_list/?sc_lid=head_login_campaign"},businessDinner:{pc:"https://r.gnavi.co.jp/business-dinner/?sc_lid=head_login_nikkei",sp:"https://r.gnavi.co.jp/business-dinner/?sc_lid=head_login_nikkei"},secretary:{pc:"https://secretary.gnavi.co.jp/?sc_lid=head_login_secretary",sp:"https://secretary.gnavi.co.jp/?sc_lid=head_login_secretary"},logout:{pc:"https://my.gnavi.co.jp/logout/?rUrl=#{rUrl}",sp:"https://my.gnavi.co.jp/logout/?rUrl=#{rUrl}"}}}[n]).forEach((([n,r])=>{if("back"===n&&this.props?.backUrl)return;const o=r[e].replace(/#\{rUrl\}/g,t),i=this.shadowRoot?.querySelectorAll(`a[data-url-name="${n}"]`);i&&Array.from(i).forEach((e=>{e.setAttribute("href",o)}))}))}openDrawer(){if(!this.elements)return;const e=()=>{const[t]=Ie(this.elements?.drawer);t&&t.focus(),this.elements?.drawerContainer.removeEventListener("animationend",e)};this.scrollY=window.scrollY,document.body.classList.add("gnHeaderModalShown"),document.body.style.top=`-${this.scrollY}px`,this.elements.drawer.setAttribute("aria-hidden","false"),this.elements.drawer.setAttribute("aria-modal","true"),this.elements.drawerClose.setAttribute("aria-hidden","false"),this.elements.drawerContainer.setAttribute("aria-hidden","false"),this.elements.drawerContainer.addEventListener("animationend",e),document.addEventListener("keydown",this.keyboardBehavior),qe("header_menu_open")}closeDrawer(){this.elements&&(window.scrollTo(0,this.scrollY),document.body.classList.remove("gnHeaderModalShown"),document.body.style.top="",document.removeEventListener("keydown",this.keyboardBehavior),this.elements.drawer.setAttribute("aria-hidden","true"),this.elements.drawer.setAttribute("aria-modal","false"),this.elements.drawerClose.setAttribute("aria-hidden","true"),this.elements.drawerContainer.setAttribute("aria-hidden","true"),this.elements.mypage.focus(),qe("header_menu_close"))}keydown(e){if("Escape"===e.key)this.closeDrawer();else if("Tab"===e.key){const t=e.shiftKey;if(this.elements?.drawer){const n=Ie(this.elements.drawer),r=n[0],o=n[n.length-1];t&&this.shadowRoot?.activeElement===r&&(e.preventDefault(),o.focus()),t||this.shadowRoot?.activeElement!==o||(e.preventDefault(),r.focus())}}}setKanjiRank(){if(!this.elements)return;(async()=>{if(this.isLogin){const e=this.shadowRoot?.querySelector(".kanjiRank");try{const t=await Me.get("https://r.gnavi.co.jp/api/my/get/v1/kanjilp/thismonth",{xsrfCookieName:"",withCredentials:!0});if("200"!==t.data.status)return void(e&&(e.innerHTML='\n

今月の幹事ランクの情報を取得できませんでした。
時間をおいて再度お試しください。

'));const n=t.data.kanji_rank_notice_list[0],r=Ve[n.rank]||Ve["ランクなし"],o="ランクなし"!==n.rank?`
${r.altText}
`:"",i=this.shadowRoot?.querySelector(".rankContainer");if(i){const e="ランクなし"!==n.rank?"です":"";i.innerHTML=`\n ${o}\n
\n

今月の幹事ランク

\n

${r.altText}${e}

\n
\n `}if(t.data.rakuten_link||"ランクなし"===n.rank){const e=this.shadowRoot?.querySelector(".rakutenIdConnect");e&&e.setAttribute("aria-hidden","true")}else{const e=this.shadowRoot?.querySelector(".rakutenIdConnect a");e&&e.addEventListener("click",(()=>qe("head_knjrank_rakutenid")))}}catch(t){e&&(e.innerHTML='\n

今月の幹事ランクの情報を取得できませんでした。
時間をおいて再度お試しください。

'),console.error("幹事ランクが取得できませんでした",t)}}})()}connectedCallback(){const e=this.getAttribute("device");if(null!==e&&"pc"!==e&&"sp"!==e)throw new TypeError('"device" attribute has only "pc" or "sp".');if(this.props={device:e,favorite:null!==this.getAttribute("favorite"),recommend:null!==this.getAttribute("recommend"),coupon:null!==this.getAttribute("coupon"),backLabel:this.getAttribute("back-label"),backUrl:this.getAttribute("back-url"),backHistory:null!==this.getAttribute("back-history")},!this.shadowRoot){const e=this.attachShadow({mode:"open"});e.appendChild(We.content.cloneNode(!0));const t=e.getElementById("root"),n=e.getElementById("back"),r=e.getElementById("recommend"),o=e.getElementById("coupon"),i=e.getElementById("favorite"),a=e.getElementById("mypage"),s=e.getElementById("drawer"),c=e.getElementById("drawerContainer"),l=e.getElementById("drawerClose");if(!(t&&n&&r&&o&&i&&a&&s&&c&&l))throw new Error("Target element is not found.");this.elements={root:t,back:n,recommend:r,coupon:o,favorite:i,mypage:a,drawer:s,drawerContainer:c,drawerClose:l};const d=matchMedia("(max-width: 768px)");d.addEventListener("change",(e=>{this.setLink(this.props?.device??e.matches?"sp":"pc")})),this.setBack(),this.setRecommend(),this.setCoupon(),this.setFavorite(),this.setMypage(),this.setKanjiRank(),this.setLink(this.props?.device??d.matches?"sp":"pc"),this.changeBanner(),this.props.device&&(this.elements.root.dataset.device=this.props.device)}}changeBanner(){const e=this.shadowRoot?.querySelector(".changeBanner"),t=this.shadowRoot?.querySelector(".changeBanner > img");this.isLogin?e?.setAttribute("href","//my.gnavi.co.jp/point_platform/rakuten/?sc_lid=head_login_banner_01"):e?.setAttribute("href","//my.gnavi.co.jp/point_platform/rakuten/?sc_lid=head_unlogin_banner_01"),t?.setAttribute("alt","楽天ポイントがネット予約で貯まる")}}void 0===customElements.get(Ze)&&customElements.define(Ze,Ge)})();