(()=>{var __webpack_modules__={530:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.allowApiController=void 0;const n=o(81),r=o(18),i=o(887),a=new Map([["exact",{not:!1,match:e=>new RegExp(`^${e}$`)}],["include",{not:!1,match:e=>new RegExp(`${e}`)}],["startWith",{not:!1,match:e=>new RegExp(`^${e}.*`)}],["endWith",{not:!1,match:e=>new RegExp(`.*${e}$`)}],["regExp",{not:!1,match:e=>new RegExp(e)}],["notExact",{not:!0,match:e=>new RegExp(`^${e}$`)}],["notInclude",{not:!0,match:e=>new RegExp(`${e}`)}],["notStartWith",{not:!0,match:e=>new RegExp(`^${e}.*`)}],["notEndWith",{not:!0,match:e=>new RegExp(`.*${e}$`)}],["notRegExp",{not:!0,match:e=>new RegExp(e)}]]),s=(e,t)=>e.map((e=>((e,t)=>{const o=a.get(e.rule);let n=e.value;if(t)switch(e.rule){case"exact":case"startWith":case"notExact":case"notStartWith":if(n.startsWith("http"))break;n=`${t}${n}`}return"regExp"===e.rule||"notRegExp"===e.rule?{not:o.not,reg:o.match(n)}:{not:o.not,reg:o.match(n.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"))}})(e,t)));t.allowApiController=e=>{const t=(()=>{const e={isLimit:!1,isAuto:!0,isUnionHttp:!1,targetList:[],exclusionList:[],cvTargetList:[],cvClickTargetList:[],status:"none"},t="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";if(t.startsWith("XXxx_replace"))return e;try{const o=window.atob(t),n=new Uint8Array(o.length);for(let e=0;ee.map((e=>({orList:s(e.orList,location.origin)}))))),"cvList"in a&&a.cvList.forEach((t=>{if(0===t.filter((e=>e.clickOrList)).length){const o=t.map((e=>s(e.orList,location.origin)));return void e.cvTargetList.push(o)}const o={andList:[],clickAndList:[]};t.forEach((e=>{if(e.clickOrList)o.clickAndList.push(e.clickOrList);else if(e.orList){const t=s(e.orList,location.origin);o.andList.push(t)}})),e.cvClickTargetList.push(o)})),e.status="loaded"}catch(e){}return e})(),{targetList:o,exclusionList:a,cvTargetList:l,cvClickTargetList:d,...c}=t;window._dejam.allow=c;const p=(0,n.clickTargetController)();return{isAllow:()=>{if("none"===c.status)return!0;for(let e=0;e0){if(t.every((e=>(0,i.isRuleMatch)(e.orList,(0,r.getLocationHref)()))))return window._dejam.allowResult="exclusionList",!1}}return c.isAuto,!0},isTarget:()=>{if("none"===c.status)return!0;if(e)return window._dejam.allowResult="lp",!0;if(c.isAuto)return window._dejam.allowResult="isAuto",!0;let t=(0,r.getLocationHref)();try{c.isUnionHttp&&(t=new URL(t.replace(/^(https?:\/\/)?(www\.)?/,"https://")).href)}catch(e){return window._dejam.allowResult="URL error",!1}for(let e=0;e0&&o.every((e=>(0,i.isRuleMatch)(e,t))))return window._dejam.allowResult="cvTarget",!0}const n=(0,i.isRuleMatch)(o,t);return window._dejam.allowResult=`targetList ${n}`,n},getClickCvValue:(e,t)=>{if("none"===c.status)return!0;let o=(0,r.getLocationHref)();try{c.isUnionHttp&&(o=new URL(o.replace(/^(https?:\/\/)?(www\.)?/,"https://")).href)}catch(e){return null}for(let n=0;n(0,i.isRuleMatch)(e,o))))continue;const a=p.getConvertValue(e,t,r.clickAndList[0]);if(a)return window._dejam.allowResult="cvClickTargetList",a}return null},clearCache:()=>p.clearCache()}}},456:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initializeCats=void 0;t.initializeCats=()=>{let e,t=!1,o=!1;const n=()=>{document.querySelectorAll("a").forEach((e=>{e.addEventListener("click",r)}))};function r(t){const n=t.target.closest("a");if(!n)return;const r=new URL(n.href);let i="";o&&(i=r.hash,r.hash="");const a=e.replaceUrlList.findIndex((({matchRule:e,resultPointUrl:t})=>{let o;switch(e){case"exact":o=new RegExp(`^${t}$`);break;case"startWith":o=new RegExp(`^${t}.*`)}return o?.test(r.href)}));if(-1===a)return;t.preventDefault();const{redirectUrl:s}=e.replaceUrlList[a],l=new URL(s);if(e?.isPreserveParams)for(const[e,t]of r.searchParams)l.searchParams.append(e,t);o&&(l.hash=i),window.location.href=l.href}return{setCatsDataCallback:(r,i)=>{t||r&&(e=r,o=!!i,t=!0,e.enable&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",n,{once:!0}):n()))},observeAddCatsListener:t=>{e&&e.enable&&t.forEach((e=>{0!==e.addedNodes.length&&e.addedNodes.forEach((t=>{1===t.nodeType&&e.target.querySelectorAll("a").forEach((e=>{e.addEventListener("click",r)}))}))}))}}}},81:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clickTargetController=void 0;t.clickTargetController=()=>{const e=new Map,t=(t,o)=>{if(!o)return null;try{if(e.has(o))return e.get(o);const n=(e=>{try{return e.ownerDocument.defaultView!==window.top?e.ownerDocument:document}catch(e){return document}})(t),r=n.querySelectorAll(o),i=[];return r.forEach((e=>i.push(e))),0===i.length?null:(e.set(o,i),i)}catch{return null}};return{clearCache:()=>{e.clear()},getConvertValue:(e,o,n)=>{for(let r=0;r0;){if(n.includes(r))return{category:s,value:o};r=r.parentElement}}break}}}return null}}}},436:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setCookieValue=t.getCookieValue=t.isCookiesEnabled=t.removeCookieValue=void 0;const o=new Set;t.removeCookieValue=(e,t)=>{t&&(document.cookie=`${e}=1; Domain=${t}; Max-Age=0;`,o.add(e))};t.isCookiesEnabled=()=>!!document.cookie;t.getCookieValue=e=>{if(!(0,t.isCookiesEnabled)())return null;if(o.has(e))return null;const n=document.cookie.split(";").map((e=>e.trim()));for(const t of n)if(t.substring(0,e.length+1)===e+"=")return decodeURIComponent(t.substring(e.length+1));return null};t.setCookieValue=(e,n,r)=>{if(!(0,t.isCookiesEnabled)()||!r)return;o.delete(e);document.cookie=`${e}=${n}; Path=/; Domain=${r}; Max-Age=3600; SameSite=Lax; Secure=true`}},603:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getChangedLinkPopupList=t.changeHref=t.addUIdToHref=t.getRedirectCrossUrl=t.getCrossUrl=t.getUIdFromUrl=void 0;const o="dejam_uid",n=/(?:.*&)?dejam_uid=(.{32}V[0-9]{0,6})(?:&|#|$)/;t.getUIdFromUrl=()=>{const e=window.self.location.href;if(!e.includes(o))return;const t=e.match(n);return t&&1!==t.length?t[1]:void 0};t.getCrossUrl=(e,t)=>{if((t=t.trim()).startsWith("tel")||t.startsWith("sms"))return t;const{hash:n,search:r}=(e=>{let t=-1;for(let o=e.length-1;o>=0;o--)if("#"===e[o]){t=o;break}const o=t>=0?e.substring(t):"";let n=-1;const r=t>0?t-1:e.length-1;for(let t=r;t>=0;t--)if("?"===e[t]){n=t;break}return{hash:o,search:n>=0?e.substring(n,r):""}})(t);if(!n)return`${t}#${o}=${e}`;const i=t.substring(0,t.length-n.length);return r?`${i}&${o}=${e}${n}`:`${i}?${o}=${e}${n}`};t.getRedirectCrossUrl=(e,o)=>{try{const n=window.self.location;return new URL(o).origin===n.origin?o:(0,t.getCrossUrl)(e,o)}catch{return o}};t.addUIdToHref=(e,n)=>{const r=e.getAttribute("href");if(r&&!r.includes(o))try{const o=new URL(e.href),i=window.self.location;if(o.origin===i.origin)return;e.setAttribute("href",(0,t.getCrossUrl)(n,r))}catch(e){}};t.changeHref=e=>{const o=document.getElementsByTagName("a");for(let n=0;ne.isCrossDomain&&e.popupList?(e.popupList.forEach((e=>{e.link&&!e.link.startsWith("tel:")&&(e.link=(0,t.getCrossUrl)(o,e.link))})),e.popupList):e.popupList},716:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.changeCaptureViewAsync=void 0;const n=o(917),r=o(735);t.changeCaptureViewAsync=async e=>{let t;const o=window.self.location;try{t=new URL(o.href).searchParams}catch(e){return}if(!t.has("dejam_capture")||!t.has("dejam_capture_index"))return;const i=t.get("dejam_capture"),a=t.get("dejam_capture_index"),s={dejamTag:e,dejamCaptureId:i,index:Number(a)};try{const e=await fetch("https://tag.dejam.net",{method:"POST",mode:"cors",credentials:"include",headers:{"Content-Type":"text/plain"},body:JSON.stringify({data:s})}),t=await e.json(),o=()=>{"optimize"===t.templateType&&((0,n.executeOptimize)(document,t.optimizeList),(0,r.insertScriptCodeFromCapture)(t))};"loading"!==document.readyState?o():window.addEventListener("DOMContentLoaded",o)}catch(e){}}},887:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isRuleMatch=t.getPageSize=t.createPopup=void 0;t.createPopup=(e,t,o)=>{const{srcPath:n,mainText:r,subText:i,buttonText:a,color:s,link:l,isDisableImage:d,isDisableMainText:c,isDisableSubText:p,isDisableButton:u,position:m}=t,h=!m||"center"===m,f="rightBottom"===m,g="leftBottom"===m,w="top"===m,y=c&&p&&u,x=o?375:300,b=()=>y?h?``:``:h?``:``,v=()=>{if(d)return"";let e='
';return e+=l?`${b()}`:b(),e+="
",e},_=()=>{if(c)return"";const e="display:block !important; font-family: 'Noto Sans JP', sans-serif; font-style: normal;font-weight: 700;letter-spacing: 0.05em;color: #2B2B2B; margin-bottom:8px; white-space:pre-line;";return h?`${r}`:`${r}`},k=()=>{if(p)return"";const e="display:block;font-family: 'Noto Sans JP', sans-serif; font-style: normal;font-weight: 500;font-size: 12px;line-height: 18px;letter-spacing: 0.05em;color: #111111;white-space:pre-line;";return h?`${i}`:`${i}`},E=()=>{if(u)return"";const t=`cursor:pointer; display:flex;color:white;background: ${s};box-shadow: 0px 8px 28px rgba(0, 0, 0, 0.08);border:none !important;box-sizing:border-box;`;return``},C=()=>{if(y)return"";return{start:h?'
':'
',end:"
",children:[y?"":{start:"
",end:"
",children:[_(),k()]},h?E():{start:'
',end:"
",children:[E()]}]}},L=()=>{if(h){let e="position: relative;display:flex;width:320px;flex-direction:column;background-color:white;max-height: 80%;overflow-y: auto;cursor:pointer;";return y||(e+="border-radius:16px;"),e}let e="display:flex;background-color:white;position:absolute;box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.1);cursor:pointer;max-width: initial;min-width:initial;";return y||(e+="border-radius:4px;"),f?e+`width:${x}px;bottom:8px;right:8px;`:g?e+`width:${x}px;bottom:8px;left:8px;`:(e+="left:-188px;width:375px;",e+="top"===m?"top:8px;":"bottom:8px;",e)},S=e=>{let t=e.start;return e.children.forEach((e=>{t+="string"==typeof e?e:S(e)})),t+=e.end,t};return S({start:`
`,end:`
`,children:[{start:`
`,end:"
",children:[h||y?`
`:`
`,v(),C()]}]}).replace(/<(no)?script(.|\s)*?<\/(no)?script>/gi,"")};t.getPageSize=e=>{const t=e?.documentElement;function o(o){const n=e?.body&&e.body["scroll"+o]||0,r=t&&t["scroll"+o]||0,i=e?.body&&e.body["offset"+o]||0,a=t&&t["offset"+o]||0,s=t&&t["client"+o]||0;return Math.max(n,r,i,a,s)}return{w:o("Width"),h:o("Height"),ih:window.innerHeight,iw:window.innerWidth}};t.isRuleMatch=(e,t)=>{for(const o of e){const e=o.reg.test(t);if(!o.not&&e||o.not&&!e)return!0}return!1}},290:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initializeHeatMap=void 0;const n=o(508),r=o(429),i=o(917),a=o(716),s=o(735),l=o(603),d=o(231),c=o(436),p=o(667),u=o(18),m=o(495),h=o(887);t.initializeHeatMap=({setCatsDataCallback:e,observeAddCatsListener:t})=>{const o="__di",f="_dejam_UID";let g,w,y,x=!1,b=!1;const v={dk:"tzggSsPdtrwfb736se2y",v:"4.5.2",uuid:"",ua:navigator.userAgent,de:(_=navigator.userAgent,_.indexOf("iPhone")>0||_.indexOf("Android")>0&&_.indexOf("Mobile")>0?"SP":"PC"),rl:window._dejam.related||null};var _;const k=`_${v.dk}_f`;let E=null,C={x:0,y:0},L={top:0,left:0},S=!1,T=!1,j=0,P=!1;const N=()=>S||T,$=e=>{if(S=!0,e)return void(T=!0);j++;const t=j;setTimeout((()=>{t===j&&(S=!1)}),1e3)},I=(0,d.postController)("lp"===v.rl?.type),O={scrollTriggerPopupList:[],stayTimePopupTimerList:[],bodyHeight:0},R=()=>{const e="xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".split("");for(let t=0,o=e.length;t{if(!localStorage||!sessionStorage){const e={i:R(),v:1,l:(new Date).getTime()};return{...e,uuid:`${e.i}V${e.v}`}}const e=JSON.parse(localStorage.getItem(o))||{i:R(),l:0,v:0},t=(0,l.getUIdFromUrl)(),n=(0,c.getCookieValue)(f);if(t||n){const{originalUUID:o,visitCnt:r}=(e=>{const t=e.match(/(.{32})V([0-9]{0,6})$/);return{originalUUID:t?t[1]:e,visitCnt:t?t[2]:"1"}})(t||n);e.i=o;const i=Number(r);e.v===i&&0!==e.l||(e.l=(new Date).getTime()),i>e.v&&(e.v=i)}const r=(new Date).getTime(),i=e.l||0;return e.l=r,(0===i||r-i>=36e5)&&(e.v++,(0,p.removeSeq)(E?.topLevelDomain)),localStorage.setItem(o,JSON.stringify(e)),{...e,uuid:`${e.i}V${e.v}`}},A=()=>({...v,seq:(0,p.getAndSaveSeq)(),l:(0,u.getLocation)(),ti:(new Date).getTime()}),z=()=>{try{const e=Math.floor(window.scrollY||document.documentElement?.scrollTop||document.body?.scrollTop||window.pageYOffset||0);return{top:e,left:Math.floor(window.scrollX||document.documentElement?.scrollLeft||document.body?.scrollLeft||window.pageXOffset||0)}}catch(e){return{top:0,left:0}}},U=()=>{const e=z();return{size:(0,h.getPageSize)(document),scrollY:e.top,scrollX:e.left}},H=e=>{const t=(new Date).getTime();if(!b&&t-g>=4e3){const o=z(),n="PC"===v.de?{x:C.x+(o.left-L.left),y:C.y+(o.top-L.top)}:{x:0,y:0},r={...A(),ty:"wait",w:{it:!!e,s:Math.floor((t-g)/10)/100},pa:w,po:n};I.postLog(v,r,!0)}};let D=0;const B=async()=>{try{H(),g=(new Date).getTime(),w=U(),D++;const e=D;if(await new Promise((e=>setTimeout(e,4e3))),e!==D)return;H(!0)}catch(e){const t={...A(),pa:U(),ty:"error",flagKey:window._dejam[k],message:`from:setTimer ${e.message}`};I.postLog(v,t,!0)}};let Z=0,F=0;const q=()=>{B(),(async()=>{const e=U();if(e.scrollY<=Z)return;Z=e.scrollY,F++;const t=F;if(await new Promise((e=>setTimeout(e,1e3))),t!==F)return;const o={...A(),ty:"scroll",pa:e};I.postLog(v,o,!0)})();const{h:e}=(0,h.getPageSize)(document);if(e>0&&O.scrollTriggerPopupList.length){(0,r.popupScrollTriggerInit)(O.scrollTriggerPopupList,v.dk,"PC"===v.de).forEach((e=>{const t=O.scrollTriggerPopupList.findIndex((t=>t.id===e));-1!==t&&O.scrollTriggerPopupList.splice(t,1)}))}};function V(){if(b)return;b=!0;const e=(new Date).getTime(),t={...A(),ty:"last",pa:U(),w:{it:!1,s:Math.floor((e-g)/10)/100}};I.postLog(v,t,!0)}const K=e=>{const t=(e=>{const t=e.composedPath&&e.composedPath()||e.path,o=e.target;if(null!=t)return t;if(o===window)return[window];const n=(e,t)=>{t=t||[];const o=e.parentNode;return o?n(o,t.concat(o)):t};return[o].concat(n(o))})(e),o=e.view||t[t.length-1],n=o?.frameElement?.getClientRects()[0]??{x:0,y:0};return{x:e.pageX+n.x,y:e.pageY+n.y}},W=new Map,X=()=>{if(N())return;$();const e=history.state?JSON.stringify(history.state):"_default";if(W.has(e)){const t=W.get(e);return(0,n.showPopup)(t.info,v.dk,"PC"===v.de),removeEventListener("popstate",t.historyAction),W.delete(e),!1}},J=(e,t)=>{for(let o=0;o{if(P)return;const e=window?._dejam?.onResponse;"function"==typeof e&&e()},G=(e,t,o)=>{if(!e||0===e.length)return;if(J(e,t))return;T=!1,O.bodyHeight=document.body.clientHeight;let r=!1;const a=[],s=[];for(let t=0;t{const e=history.state?JSON.stringify(history.state):"_default";if(W.has(e)){const t=W.get(e);removeEventListener("popstate",t.historyAction)}const t=()=>X();addEventListener("popstate",t),W.set(e,{info:l,historyAction:t});const o=window.self.location,n=o.origin+o.pathname;W.set(n,{info:l,historyAction:t}),r||(history.pushState(null,"",null),history.replaceState(null,"",null),r=!0)}),1e3):"scroll"===l.showLogic?a.push(l):"stayTime"===l.showLogic&&s.push(l):(0,n.showPopup)(l,v.dk,"PC"===v.de):(0,i.executeOptimize)(document,l.optimizeList,o)}O.scrollTriggerPopupList=a,O.stayTimePopupTimerList.length>0&&O.stayTimePopupTimerList.forEach((e=>{e.clearTimer()})),O.stayTimePopupTimerList=s.map((e=>{const t=setTimeout((()=>{(0,n.showPopup)(e,v.dk,"PC"===v.de)}),1e3*e.showLogicValue);return{timerId:t,clearTimer:()=>{clearTimeout(t)}}}))},Q=e=>{try{let t=!1;if("SP"===v.de&&(e.addEventListener("touchstart",(()=>{t=!1})),e.addEventListener("touchmove",(()=>{t||(t=!0)}))),e.addEventListener("click",(e=>{$(),t||(e=>{const t=y||0;y=e.timeStamp,t!==y&&I.postClick(v,e)})(e)}),!0),"PC"!==v.de)return;e.addEventListener("mousemove",(e=>{C=K(e),L=z()}))}catch(e){}},ee=()=>{window._dejam[k]|=8,B(),window.addEventListener("scroll",q,!0),window.addEventListener("pagehide",V,!0),window.addEventListener("beforeunload",(e=>(e=>{if(N())return;const t=window.self.location,o=t.origin+t.pathname;if(W.has(o)){const t=W.get(o);setTimeout((()=>{(0,n.showPopup)(t.info,v.dk,"PC"===v.de)}),500),e.preventDefault(),e.returnValue=!1}})(e))),window.addEventListener("submit",(()=>$(!0)));const e=async()=>{await new Promise((e=>setTimeout(e,100))),I.setLoadType("load");try{I.postLoadOrChange(v).then((e=>e.json())).then((e=>{"isValid"in e&&e.isValid&&G(e.popupList,e.isCrossDomain)})).catch((()=>{}))}catch(e){}};document.addEventListener("visibilitychange",(function(){if("hidden"===document.visibilityState){const e={...A(),ty:"hidden",pa:U()};I.postLog(v,e,!0)}else if("visible"===document.visibilityState){const t=M().uuid;if(v.uuid!==t)return V(),B(),b=!1,v.uuid=t,(0,c.setCookieValue)(f,v.uuid,E?.topLevelDomain),(0,p.removeSeq)(E?.topLevelDomain),(0,p.getAndSaveSeq)(),void e();(0,p.isPageChange)()&&e();const o={...A(),ty:"visible",pa:U()};I.postLog(v,o,!0)}}));const o=e=>{e&&(e[`_${v.dk}`]||(e[`_${v.dk}`]=!0,"IFRAME"===e.tagName?Q(e.contentWindow):Q(e)))};o(window);const r=document.getElementsByTagName("iframe");for(let e=0;e{try{for(let t=0;t{if(E=e??null,I.clearClickCache(),!E?.isValid)return(0,s.insertScriptCode)([]),void(0,c.setCookieValue)(f,v.uuid,E?.topLevelDomain);E.isValid&&(E.popupList=(0,l.getChangedLinkPopupList)(E,v.uuid),G(E.popupList,E.isCrossDomain),(0,c.setCookieValue)(f,v.uuid,E?.topLevelDomain),E.popupList&&(0,s.insertScriptCode)(E.popupList)),E.isCrossDomain&&(0,l.changeHref)(v.uuid)};if(I.isLoadOrChangeTarget())try{I.postLoadOrChange(v).then((e=>e.json())).then((e=>{t(e)})).catch((()=>{}))}catch(n){}else t()}t(e)})).observe(document.body,{childList:!0,subtree:!0}),window._dejam[k]|=16};window._dejam[k]=0;const te=e=>{try{const t=E?.isCrossDomain??!1;if(3!==window._dejam[k])return void(E?.isValid&&E.popupList&&J(E.popupList,t));if(x)return;x=!0,window._dejam[k]|=4,ee(),E?.isValid&&G(E.popupList,t,e),t&&(0,l.changeHref)(v.uuid)}catch(e){const t={...A(),ty:"error",pa:U(),flagKey:window._dejam[k],message:`from:awake ${e.message}`};I.postLog(v,t,!0)}},oe=()=>{1!=(1&window._dejam[k])&&(window._dejam[k]|=1,te())};(()=>{if(window._isLgc&&window._isLgc())return(0,a.changeCaptureViewAsync)(v.dk),void Y();if(!(()=>{const e=new Set(["https:","http:"]),t=(0,u.getLocationHref)();try{const o=new URL(t);if(o.port||o.username||o.password||!o.hostname||"localhost"===o.hostname||!e.has(o.protocol))return!1}catch(e){return!1}return!0})())return;const t=window.self.location,o=new URLSearchParams(t.search);if(o.has("dejam_optimize_view")||o.has("dejam_optimize_preview"))return void Y();if(window._dejam.isLpPreview)return;const n=t=>{if(E=t??null,(0,c.removeCookieValue)(f,E?.topLevelDomain),(0,p.tmpRemoveSeq)(E?.topLevelDomain),!E?.isValid)return window._dejam[k]|=2,te(),void Y();E.popupList=(0,l.getChangedLinkPopupList)(E,v.uuid),(0,c.setCookieValue)(f,v.uuid,E?.topLevelDomain),(0,p.getAndSaveSeq)(),window._dejam[k]|=2,E&&E.isValid&&E.popupList&&(0,s.insertScriptCode)(E.popupList);const o=(0,m.createStackFunc)(Y);te(o),o.execute(),e(E.cats,t?.isCrossDomain)};I.setLoadType("load");const r=M();if(v.uuid=r.uuid,(0,p.getAndSaveSeq)(),I.isLoadOrChangeTarget())try{I.postLoadOrChange(v).then((e=>e.json())).then((e=>{n(e)}))}catch(e){const t={...A(),ty:"error",flagKey:window._dejam[k],message:`from:init ${e.message}`,pa:U()};I.postLog(v,t,!0),Y()}else n()})(),"loading"!==document.readyState&&oe(),window.addEventListener("pageshow",oe),window.addEventListener("load",oe),window.addEventListener("DOMContentLoaded",oe)}},18:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLocation=t.getLocationHref=void 0;const o=/(?:.*)((?:&|\?|#)dejam_uid=.{32}V[0-9]{0,6})(?:&|#|$)/;t.getLocationHref=()=>{let e=window.self.location.href;try{const t=e.match(o);t&&(e=e.replace(t[1],""))}catch(e){}return e};t.getLocation=()=>{const e=window.self.location;return{hr:(0,t.getLocationHref)(),p:e.pathname,s:e.search,ha:e.hash,o:e.origin}}},917:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.executeOptimize=t.forwardClickHref=t.forwardHref=t.forwardInsertElement=t.forwardRemove=t.forwardImage=t.forwardTextFromContents=t.forwardText=void 0;const n=o(213);t.forwardText=(e,t)=>{t.list.forEach((t=>{try{const o=e.querySelector(t.path),n=t.to.map((t=>"text"===t.type?e.createTextNode(t.value):e.createElement("br")));o.childNodes[t.index].replaceWith(...n)}catch(e){}}))};t.forwardTextFromContents=(e,t)=>{const o=e.querySelector(t.path),n=t.list.map((t=>({index:t.index,node:t.to?"br"===t.to.type?e.createElement("br"):e.createTextNode(t.to.value):null})));try{const e=((e,t)=>{const o=[];let n=t.shift(),r=0;for(;r{t.list.forEach((t=>{try{const n=e.querySelector(t.path),r=n.parentElement;if(r&&"PICTURE"===r.tagName){Array.from(r.children).forEach((e=>{if("SOURCE"===e.tagName)e.srcset=t.to;else if("IMG"===e.tagName){const n=e;n.srcset=t.to,n.src=t.to,o&&n.addEventListener("load",o.getCallBack())}}))}else n.srcset=t.to,n.src=t.to,o&&n.addEventListener("load",o.getCallBack())}catch(e){}}))};t.forwardRemove=(e,t)=>{t.list.forEach((t=>{try{const o=e.querySelector(t.path).childNodes[t.index],[n,r]=(e=>{if(e.id)return[`#${e.id}`,""];if(!e.parentElement)return["",""];const t=Array.from(e.parentElement.children).indexOf(e)+1;return["",`${e.tagName.toLowerCase()}:nth-child(${t})`]})(o);o.remove(),t.targetId=n,t.targetSelector=r}catch(e){}}))};t.forwardInsertElement=(e,t,o)=>{t.list.forEach((t=>{try{const n=t.to;let r;switch(n.tag){case"H":r=e.createElement("h1"),r.appendChild(e.createTextNode(n.value));break;case"P":r=e.createElement("p"),r.appendChild(e.createTextNode(n.value));break;case"BUTTON":r=e.createElement("button"),r.appendChild(e.createTextNode(n.value));break;case"IMG":{const t=e.createElement("img");t.src=n.value,o&&t.addEventListener("load",o.getCallBack()),r=t;break}}const i=e.querySelector(n.path),a=n.location.toLowerCase();i.insertAdjacentElement(a,r)}catch(e){}}))};t.forwardHref=(e,t)=>{e.querySelector(t.path).href=t.to};t.forwardClickHref=(e,t)=>{const o=e.querySelector(t.path);o.dataset.dejamClickHref=t.to,o.onclick=()=>{window.self.location.href=t.to}};t.executeOptimize=(e,o,r)=>{const i=[];o.forEach((o=>{switch(o.type){case"text":try{(0,t.forwardText)(e,o)}catch(e){}break;case"textFromContents":try{(0,t.forwardTextFromContents)(e,o)}catch(e){}break;case"img":try{(0,t.forwardImage)(e,o,r)}catch(e){}break;case"remove":try{(0,t.forwardRemove)(e,o)}catch(e){}break;case"insertElement":try{(0,t.forwardInsertElement)(e,o,r)}catch(e){}break;case"changeHref":try{(0,t.forwardHref)(e,o)}catch(e){}break;case"changeClickHref":try{(0,t.forwardClickHref)(e,o)}catch(e){}break;case"changeStyle":i.push(o);break;case"outerHtml":try{((e,t)=>{e.querySelector(t.path).outerHTML=t.to})(e,o);break}catch(e){}}}));const a=(e=>{const t=e=>{const t=e.match(/:nth-child\((\d+)\)/);return t&&t[1]?parseInt(t[1],10):null},o=(e,t)=>e.replace(/:nth-child\((\d+)\)/,((e,o)=>`:nth-child(${parseInt(o,10)+t})`)),r=new Map,i=new Map;for(let a=0;a{if("remove"!==s.type)return;const e=r.get(s.list[0].path),t=s.list[0].index,n=s.list[0].targetId,a=s.list[0].targetSelector;if(n)i.delete(n);else if(a&&e){const t=e.findIndex((e=>e.selector===a));-1!==t&&e?.splice(t,1)}e?.forEach((e=>{null===e.num||e.num{if("changeStyle"!==s.type)return;const e=s.list[0],o=()=>{const t=i.get(e.path)??new Map;t.set((0,n.camelToHyphen)(e.property),e.value),i.set(e.path,t)},a=e.path.split(">");if(1===a.length)return void o();const l=a.slice(0,-1).join(">"),d=a.slice(-1)[0],c=t(d);if(null===c)return void o();const p=r.get(l)??[{selector:d,num:c,style:new Map}];let u=p.find((e=>e.num===c));u||(u={selector:d,num:c,style:new Map},p.push(u)),u.style.set((0,n.camelToHyphen)(e.property),e.value),r.set(l,p)};(()=>{if("insertElement"!==s.type)return;const e=s.list[0].from.addedPath.split(">");if(1===e.length)return;const n=e.slice(0,-1).join(">"),i=e.slice(-1)[0],a=t(i);if(null===a)return;const l=r.get(n);l&&l.forEach((e=>{null===e.num||e.num{e.forEach((e=>{const o=`${t}>${e.selector}`,n=i.get(o)??new Map;e.style.forEach(((e,t)=>{n.set(t,e)})),i.set(o,n)}))})),i})(o);a.forEach(((t,o)=>{const n=e.createElement("style");let r="";t.forEach(((e,t)=>r=`${r} ${t}: ${e};`)),n.innerHTML=`${o} { ${r} }`,e.head.insertAdjacentElement("beforeend",n)}))}},735:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.insertScriptCodeFromCapture=t.insertScriptCode=void 0;const o=new Set;t.insertScriptCode=e=>{if(!e)return;const t=document.getElementsByTagName("script"),n=t[0],r=new Set;for(let e=0;e{if(!e.scriptPath||!e.scriptPath.startsWith("https://storage.googleapis.com/dejam-tag"))return;const a=e.scriptPath;if(o.add(a),i.has(a)&&i.delete(a),r.has(a))for(let e=0;e{if(!e)return;const t=document.getElementsByTagName("script")[0];if(!e.scriptPath||!e.scriptPath.startsWith("https://storage.googleapis.com/dejam-tag"))return;const o=e.scriptPath,n=document.createElement("script");n.src=`${o}`,n.async=!0,t.parentNode?.insertBefore(n,t)}},16:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.optimizeEditorBlocking=void 0;const o=e=>{const t=document.createElement("div");return t.style.backgroundColor="gray",t.style.opacity="0.6",t.style.position="absolute",e.insertAdjacentElement("beforeend",t),t};t.optimizeEditorBlocking=()=>{document.getElementById("id-dejam-editor").insertAdjacentHTML("beforeend",'
');const e=document.getElementById("id-dejam-blocking"),t=o(e),n=o(e),r=o(e),i=o(e),a=(e=>(e.insertAdjacentHTML("beforeend",'
\n
入力完了:Enter
改行:Shift+ Enter
\n
'),document.getElementById("id-dejam-input-info")))(e);t.style.left="0",t.style.top="0",n.style.top="0",i.style.left="0";return{showFull:()=>{const o=window.innerHeight,a=window.innerWidth;e.style.display="block",t.style.width=a/2+"px",t.style.height=o/2+"px",n.style.left=a/2+"px",n.style.width=a/2+"px",n.style.height=o/2+"px",r.style.left=a/2+"px",r.style.top=o/2+"px",r.style.width=a/2+"px",r.style.height=o/2+"px",i.style.top=o/2+"px",i.style.width=a/2+"px",i.style.height=o/2+"px"},showTarget:o=>{const s=window.innerHeight,l=window.innerWidth;e.style.display="block",t.style.width=`${o.left+o.width}px`,t.style.height=`${o.top}px`,n.style.left=`${o.left+o.width}px`,n.style.width=`${l-o.left+o.width}px`,n.style.height=`${o.top+o.height}px`,r.style.left=`${o.left}px`,r.style.top=`${o.top+o.height}px`,r.style.width=l-o.left+"px",r.style.height=s-o.top-o.height+"px",i.style.top=`${o.top}px`,i.style.width=`${o.left}px`,i.style.height=s-o.top+"px",a.style.display="flex",a.style.left=`${o.left}px`,a.style.top=o.top-58+"px"},hide:()=>{e.style.display="none",a.style.display="none"}}}},299:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.historyController=void 0;const n=o(213);t.historyController=(e,t)=>{const o={index:0,maxIndex:0,history:new Map,styleTargets:new Map};let r;const i=()=>{if(!(o.index<=0))return o.history.get(o.index-1)},a=(e,t)=>{const o=[];let n=t.shift(),r=0;for(;r{r=()=>e({current:o.index,max:o.maxIndex})},addNext:(e,t)=>{if(((e,t)=>{if("changeStyle"!==e.type||"changeStyle"!==t?.type)return;const o=e.list[0],n=t.list[0];return o.path===n.path&&o.property===n.property})(e,i())&&o.index--,o.history.set(o.index,e),o.index++,o.maxIndex=o.index,"changeStyle"===e.type&&t){const e={};for(const o of Object.keys(t))e[o]=t[o];o.styleTargets.set(o.index-1,e)}r()},getList:()=>{const e=[];let t=0;for(;t{const e=e=>{const t=e.match(/:nth-child\((\d+)\)/);return t&&t[1]?parseInt(t[1],10):null},t=(e,t)=>e.replace(/:nth-child\((\d+)\)/,((e,o)=>`:nth-child(${parseInt(o,10)+t})`)),r=new Map,i=new Map;for(let a=0;a{if("remove"!==s.type)return;const e=r.get(s.list[0].path),o=s.list[0].index,n=s.list[0].targetId,a=s.list[0].targetSelector;if(n)i.delete(n);else if(a&&e){const t=e.findIndex((e=>e.selector===a));-1!==t&&e?.splice(t,1)}e?.forEach((e=>{null===e.num||e.num{if("changeStyle"!==s.type)return;const t=s.list[0],o=()=>{const e=i.get(t.path)??new Map;e.set((0,n.camelToHyphen)(t.property),t.value),i.set(t.path,e)},a=t.path.split(">");if(1===a.length)return void o();const l=a.slice(0,-1).join(">"),d=a.slice(-1)[0],c=e(d);if(null===c)return void o();const p=r.get(l)??[{selector:d,num:c,style:new Map}];let u=p.find((e=>e.num===c));u||(u={selector:d,num:c,style:new Map},p.push(u)),u.style.set((0,n.camelToHyphen)(t.property),t.value),r.set(l,p)};(()=>{if("insertElement"!==s.type)return;const o=s.list[0].from.addedPath.split(">");if(1===o.length)return;const n=o.slice(0,-1).join(">"),i=o.slice(-1)[0],a=e(i);if(null===a)return;const l=r.get(n);l&&l.forEach((e=>{null===e.num||e.num{e.forEach((e=>{const o=`${t}>${e.selector}`,n=i.get(o)??new Map;e.style.forEach(((e,t)=>{n.set(t,e)})),i.set(o,n)}))})),i},executeBack:()=>{const n=i();if(!n)return!1;switch(o.index--,n.type){case"text":(t=>{t.list.forEach((t=>{const o=e.document.querySelector(t.path),n=t.from.map((e=>"text"===e.type?document.createTextNode(e.value):document.createElement("br")));o.childNodes[t.index].replaceWith(...n);for(let e=0;e{t.list.forEach((t=>{const o=e.document.querySelector(t.path),n=o.parentElement;n&&"PICTURE"===n.tagName?Array.from(n.children).forEach((e=>{if("SOURCE"===e.tagName)e.srcset=t.from;else if("IMG"===e.tagName){const o=e;o.srcset=t.from,o.src=t.from}})):(o.srcset=t.from,o.src=t.from)}))})(n);break;case"remove":(o=>{o.list.forEach((o=>{const n=e.document.querySelector(o.path);n.insertBefore(t.getRemoveElement(),n.childNodes[o.index])}))})(n);break;case"insertElement":(t=>{t.list.forEach((t=>{e.document.querySelector(t.from.addedPath).remove()}))})(n);break;case"textFromContents":(t=>{const o=e.document.querySelector(t.path),n=t.list.map((e=>({index:e.index,node:e.from?"br"===e.from.type?document.createElement("br"):document.createTextNode(e.from.value):null})));try{const e=a(o,n);o.replaceChildren(...e)}catch(e){}})(n);break;case"changeHref":(t=>{e.document.querySelector(t.path).href=t.from})(n);break;case"changeClickHref":(t=>{const o=e.document.querySelector(t.path);t.from?o.dataset.dejamClickHref=t.from:o.removeAttribute("data-dejam-click-href")})(n);break;case"outerHtml":(t=>{e.document.querySelector(t.path).outerHTML=t.from})(n)}return r(),!0},executeNext:()=>{const n=(()=>{if(o.index>=o.maxIndex)return;return o.history.get(o.index)})();if(!n)return!1;switch(o.index++,n.type){case"text":(t=>{t.list.forEach((t=>{try{const o=e.document.querySelector(t.path),n=t.to.map((e=>"text"===e.type?document.createTextNode(e.value):document.createElement("br")));o.childNodes[t.index].replaceWith(...n)}catch(e){}}))})(n);break;case"img":(t=>{t.list.forEach((t=>{try{const o=e.document.querySelector(t.path),n=o.parentElement;n&&"PICTURE"===n.tagName?Array.from(n.children).forEach((e=>{if("SOURCE"===e.tagName)e.srcset=t.to;else if("IMG"===e.tagName){const o=e;o.srcset=t.to,o.src=t.to}})):(o.srcset=t.to,o.src=t.to)}catch(e){}}))})(n);break;case"remove":(o=>{o.list.forEach((o=>{try{e.document.querySelector(o.path).childNodes[o.index].remove(),t.addIndex()}catch(e){}}))})(n);break;case"insertElement":(t=>{t.list.forEach((t=>{try{const o=t.to;let n;switch(o.tag){case"H":n=document.createElement("h1"),n.appendChild(document.createTextNode(o.value));break;case"P":n=document.createElement("p"),n.appendChild(document.createTextNode(o.value));break;case"BUTTON":n=document.createElement("button"),n.appendChild(document.createTextNode(o.value));break;case"IMG":{const e=document.createElement("img");e.src=o.value,n=e;break}}const r=e.document.querySelector(o.path),i=o.location.toLowerCase();r.insertAdjacentElement(i,n)}catch(e){}}))})(n);break;case"textFromContents":(t=>{const o=e.document.querySelector(t.path),n=t.list.map((e=>({index:e.index,node:e.to?"br"===e.to.type?document.createElement("br"):document.createTextNode(e.to.value):null})));try{const e=a(o,n);o.replaceChildren(...e)}catch(e){}})(n);break;case"changeHref":(t=>{e.document.querySelector(t.path).href=t.to})(n);break;case"changeClickHref":(t=>{e.document.querySelector(t.path).dataset.dejamClickHref=t.to})(n);break;case"outerHtml":(t=>{e.document.querySelector(t.path).outerHTML=t.to})(n)}return r(),!0}}}},367:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeController=void 0;t.removeController=()=>{let e=0;const t=new Map;return{getIndex:()=>e,addIndex:()=>e++,getRemoveElement:()=>t.get(--e),addRemoveElement:o=>t.set(e++,o)}}},755:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sendAllElementController=void 0;const n=o(213);t.sendAllElementController=(e,t)=>{let o=0;const r=t=>{const o=e.getComputedStyle(t),n="static"!==o.position,r="auto"!==o.zIndex?parseInt(o.zIndex):0,i="inline"===o.display,a="none"!==o.float;return{point:n&&r<0?0:a?2:i?3:n&&0===r?4:n&&r>0?5:1,isPosition:n,zIndex:r}},i=(e,t)=>{if(0===e.length)return{bases:e,results:t};const o=e[0],i=Array.from(o.children);return{bases:[...(0,n.sortArray)(i,[(e,t)=>{const o=r(e),n=r(t);return{value:o.point-n.point}},(e,t)=>{const o=r(e),n=r(t);return o.isPosition?{value:o.zIndex-n.zIndex}:{value:0}}]),...e.slice(1)],results:[...t,o]}},a=e=>{if(null===e.offsetParent&&"fixed"!==getComputedStyle(e).position)return!1;let t=e;do{const e=getComputedStyle(t);if("none"===e.display||"visible"!==e.visibility||parseFloat(e.opacity||"")<=0||parseInt(e.height||"",10)<=0||parseInt(e.width||"",10)<=0)return!1;t=t.parentElement}while(null!==t);return!0},s=()=>{const t=e.document.documentElement.scrollTop||e.scrollY,o=e.document.documentElement.scrollLeft||e.scrollX,r=(()=>{let t=[e.document.body],o=[],n=0;for(;t.length>0;){const{bases:e,results:r}=i(t,o);if(t=e,o=r,n++>1e6)break}return o})(),s=[];for(let i=0;ie.zIndex-t.zIndex))};return{delaySendParameter:async()=>{o=(o+1)%1e3;const e=o;await new Promise((e=>setTimeout(e,50))),e===o&&(t(!0,{type:"allElement",value:JSON.stringify(s())}),t(!1,{type:"allElement",value:JSON.stringify(s())}))}}}},272:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.optimizeEditorViewController=void 0;const n=o(213),r=o(16);t.optimizeEditorViewController=()=>{let e,t,o,i,a="none",s=null;const l=()=>{const o=t.querySelector(s.path),r=t.getWindow(),i=t.getBoundingClientRect(),a=i.y,l=i.x;s=(0,n.getEditorElementParameter)(r,o,a,l),e.showTarget(s)},d=()=>{e.hide(),a="none"},c=()=>{d(),t.setZIndex("0"),o.setZIndex("10"),i.setZIndex("20"),t.endTextEdit(s),s=null};return window.addEventListener("resize",(()=>{"full"===a?e.showFull():"target"===a&&l()})),window.addEventListener("keypress",(e=>{s&&("Enter"!==e.key||e.shiftKey||c())})),{initialize:(n,s,l)=>{t=n,o=s,i=l,t.setZIndex("0"),o.setZIndex("10"),i.setZIndex("20"),e=(0,r.optimizeEditorBlocking)(),e.showFull(),a="full"},hideBlocking:d,toTextEdit:e=>{t.setZIndex("10"),o.setZIndex("0"),i.setZIndex("0"),i.hide(),i.postMessage({type:"hide"}),s=e,l();t.toTextEdit(s,(()=>l()),c),a="target"},showedModal:()=>{t.setZIndex("0"),o.setZIndex("20"),i.setZIndex("10"),i.hide(),i.postMessage({type:"hide"})},hidModal:()=>{t.setZIndex("0"),o.setZIndex("10"),i.setZIndex("20")}}}},293:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mainIFrameElement=void 0;t.mainIFrameElement=e=>{const t=document.getElementById("id-dejam-main-iframe");let o=!1;const n=o=>{t.contentWindow?.postMessage({[e.editorKey]:o},e.editorOrigin)};return{initialized:()=>{t.onload=()=>{n("init"),o=!0}},getReady:()=>o,setZIndex:e=>t.style.zIndex=e,postMessage:n}}},951:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rightIFrameElement=void 0;t.rightIFrameElement=e=>{const t=document.getElementById("id-dejam-right-iframe");let o=!1;const n=()=>t.style.right="-680px",r=e=>{t.style.right=e?"0":"-340px"},i=o=>{t.contentWindow?.postMessage({[e.editorKey]:o},e.editorOrigin)};return{initialized:e=>{t.onload=()=>{setTimeout((()=>{i({type:"init",scriptCode:e}),o=!0,n()}),1e3)}},getReady:()=>o,setZIndex:e=>t.style.zIndex=e,postMessage:i,onMessage:e=>{switch(e.type){case"show":r(e.data.isCodeView??!0);break;case"hide":n();break;case"selectTarget":i({type:"selectTarget",value:e.data});break;case"preview":i({type:"preview"});break;case"save":i({type:"save"});break;case"changeDevice":i({type:"changeDevice",value:e.data})}},hide:n,show:r}}},352:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.siteIFrameElement=void 0;const n=o(917),r=o(299),i=o(367),a=o(755),s=o(213);t.siteIFrameElement=e=>{const t=document.getElementById("id-dejam-site-iframe"),o=t.contentWindow;let l=!1,d=!1,c=null;const p=(0,i.removeController)(),u=(0,a.sendAllElementController)(o,e),m=(0,r.historyController)(o,p);m.setPageChangeEvent((t=>e(!0,{type:"changeHistory",value:{...t,loadedOptimize:d}})));let h=[],f=[];const g=()=>{h.forEach((e=>e.remove())),h=[];m.getStyleMap().forEach(((e,t)=>{const n=document.createElement("style");let r="";e.forEach(((e,t)=>r=`${r} ${t}: ${e};`)),n.innerHTML=`${t} { ${r} }`,o.document.head.insertAdjacentElement("beforeend",n),h.push(n)}))},w=(e,t)=>{c=null;const o=C(e.path),n=[];let r=0;for(;o.childNodes.length&&r"BR"===e.nodeName?{type:"br",value:""}:{type:"text",value:e.textContent}));n.push({path:(0,s.getPath)(e.parentElement),index:r,from:o,to:i})}e.replaceWith(...e.childNodes),r++}if(n.length>0){const e={type:"text",list:n};m.addNext(e)}t()},y=e=>{const t=C(e.path);let o=0;const n=t.parentElement.childNodes;for(;o{const o=C(e.path),n=!!o.srcset,r=o.src;let i=0;const a=o.parentElement?o.parentElement.children:[];for(;i{if("SOURCE"===e.tagName)e.srcset=t;else if("IMG"===e.tagName){const o=e;o.srcset=t,o.src=t}}))}else{const e=o;e.srcset=t,e.src=t}n&&(o.srcset=t),o.src=t;const d={type:"img",list:[{path:(0,s.getPath)(o),index:i,from:r,to:t,isSrcset:n}]};m.addNext(d)},b=e=>{let t;switch(e.tag){case"H":t=document.createElement("h1"),t.appendChild(document.createTextNode(e.value));break;case"P":t=document.createElement("p"),t.appendChild(document.createTextNode(e.value));break;case"BUTTON":t=document.createElement("button"),t.appendChild(document.createTextNode(e.value));break;case"IMG":{const o=document.createElement("img");o.src=e.value,t=o;break}}const n=o.document.querySelector(e.path),r=e.location.toLowerCase();n.insertAdjacentElement(r,t);const i={type:"insertElement",list:[{from:{addedPath:(0,s.getPath)(t)},to:e}]};m.addNext(i),g()},v=e=>{const t={type:"changeStyle",list:[{path:e.param.path,property:e.property,value:e.toValue}]};m.addNext(t,e.param.style),g()},_=e=>{const t=C(e.param.path),o=t.href,n=e.href;t.href=n;const r={type:"changeHref",path:e.param.path,from:o,to:n};m.addNext(r)},k=e=>{const t=C(e.param.path),o=t.href,n=e.href;t.dataset.dejamClickHref=n;const r={type:"changeClickHref",path:e.param.path,from:o,to:n};m.addNext(r)},E=e=>{const t=C(e.param.path),o=t.outerHTML,n=e.outerHtml;t.outerHTML=n;const r={type:"outerHtml",path:e.param.path,from:o,to:n};m.addNext(r)},C=e=>o.document.querySelector(e);return o.addEventListener("keypress",(e=>{c&&"Enter"===e.key&&(e.shiftKey||w(c.targetParam,c.onFix))})),{initialized:()=>{t.onload=()=>{o.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation()}),!0),l=!0}},loadOptimize:e=>{const t=()=>{e.forEach((e=>{const t=()=>{switch(e.type){case"changeClickHref":case"changeHref":case"textFromContents":case"outerHtml":{const t=o.document.querySelector(e.path);return t?(0,s.getEditorElementParameter)(o,t,0,0):null}case"insertElement":{const t=o.document.querySelector(e.list[0].to.path);return t?(0,s.getEditorElementParameter)(o,t,0,0):null}case"remove":{const t=o.document.querySelector(e.list[0].path);return t?(0,s.getEditorElementParameter)(o,t.childNodes[e.list[0].index],0,0):null}default:{const t=o.document.querySelector(e.list[0].path);return t?(0,s.getEditorElementParameter)(o,t,0,0):null}}};try{switch(e.type){case"text":(0,n.forwardText)(o.document,e),m.addNext(e);break;case"textFromContents":(0,n.forwardTextFromContents)(o.document,e),m.addNext(e);break;case"img":{const o=t();if(!o)return;return void x(o,e.list[0].to)}case"remove":{const e=t();if(!e)return;y(e);break}case"insertElement":b(e.list[0].to);break;case"changeStyle":{const o=t();if(!o)return;const n={param:o,property:e.list[0].property,toValue:e.list[0].value};v(n);break}case"changeHref":{const o=t();if(!o)return;_({param:o,href:e.to});break}case"changeClickHref":{const o=t();if(!o)return;k({param:o,href:e.to});break}case"outerHtml":{const o=t();if(!o)return;E({param:o,outerHtml:e.to});break}}}catch(e){console.error(e)}})),d=!0,u.delaySendParameter()};"loading"!==o.document.readyState?t():window.addEventListener("DOMContentLoaded",t)},getReady:()=>l,getWindow:()=>o,getBoundingClientRect:()=>t.getBoundingClientRect(),setZIndex:e=>t.style.zIndex=e,querySelector:C,sendElements:()=>u.delaySendParameter(),getHistory:()=>m.getList(),endTextEdit:t=>{w(t,(()=>{e(!0,{type:"editTextEnd"}),u.delaySendParameter()}))},toTextEdit:(e,t,n)=>{c={targetParam:e,onFix:n},o.focus();const r=C(e.path);f=[];let i=null,a=!1;const s=r;for(let o=s.childNodes.length-1;o>=0;o--){const r=s.childNodes[o];if(r.nodeType===Node.ELEMENT_NODE&&(i=r),r.nodeType!==Node.TEXT_NODE)continue;f.push(r.textContent);const l=document.createElement("span");l.setAttribute("dejam_insert","true"),l.setAttribute("contenteditable","true"),l.setAttribute("tabindex","0"),l.addEventListener("input",t),l.addEventListener("keypress",(t=>{"Enter"===t.key&&(t.shiftKey||(t.preventDefault(),t.stopPropagation(),l.blur(),w(e,n)))})),l.appendChild(r),s.insertBefore(l,i),a||(l.focus(),a=!0)}},onMessage:e=>{switch(e.type){case"scroll":o.frameElement.parentElement.scrollTo({left:e.data.left}),o.scrollTo({top:e.data.top});break;case"scrollEnd":u.delaySendParameter();break;case"changeImage":{const{targetParam:t,src:o}=e.data;x(t,o),u.delaySendParameter();break}case"removeElement":y(e.data),u.delaySendParameter();break;case"nextHistory":if(!m.executeNext())break;g(),u.delaySendParameter();break;case"prevHistory":if(!m.executeBack())break;g(),u.delaySendParameter();break;case"insertElementTag":b(e.data),u.delaySendParameter();break;case"changeStyle":v(e.data),u.delaySendParameter();break;case"changeTexts":{const t=e.data;((e,t)=>{const o=C(e.path),n=[];t.forEach((e=>{const t=e.text.split("\n"),o=[];t.forEach(((e,n)=>{o.push(new Text(e)),n+1!==t.length&&o.push(document.createElement("br"))})),n.push({index:e.index,nodes:o})}));const r=[],i=[];let a=0,s=n.shift();for(;ae.nodeType===Node.TEXT_NODE?{type:"text",value:e.textContent||""}:{type:"br",value:""},l=Math.max(e.length,s.nodes.length);for(let o=0;o0){o.replaceChildren(...i);const t={type:"textFromContents",path:e.path,list:r};m.addNext(t)}})(t.param,t.changeData),u.delaySendParameter();break}case"changeHref":_(e.data),u.delaySendParameter();break;case"changeClickHref":k(e.data),u.delaySendParameter();break;case"changeOuterHtml":E(e.data);break;default:console.log(`not message.type ${e.type}`)}}}}},712:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initializeOptimize=void 0;const n=o(272),r=o(293),i=o(951),a=o(352),s=o(341),l=o(213),d=e=>{let t,o,s,l,d="",c=null,p=!1;const u=d=>{d.data[e.postKey].value===(e.r^e.param)&&(async(d,c)=>{const p=window.self.location,u=new URL(p.href);u.searchParams.set("dejam_optimize_view","true");const m=u.href,h=`${e.editorOrigin}/public/optimizeMain?dejam_optimize_on=${e.er}&dejam_index=${e.dejamIndex}&dejam_device=${e.isSp?"sp":"pc"}`,f=`${e.editorOrigin}/public/optimizeRight?dejam_optimize_on=${e.er}&dejam_index=${e.dejamIndex}`;document.body.innerHTML=((e,t)=>`\n
\n \n
\n
\n `),g.insertAdjacentHTML("beforeend",``),s=(0,i.rightIFrameElement)(e),s.initialized(c),o=(0,r.mainIFrameElement)(e),o.initialized(),t=(0,a.siteIFrameElement)(((e,t)=>{e?o.postMessage(t):s.postMessage(t)})),t.initialized(),l=(0,n.optimizeEditorViewController)(),l.initialize(t,o,s);let w=15,y=!1;for(;w-- >0;){if(o.getReady()&&t.getReady()&&s.getReady()){y=!0;break}await new Promise((e=>setTimeout(e,1e3)))}if(!y)return alert("初期化に失敗しました"),void window.close();t.loadOptimize(d),l.hideBlocking()})(d.data[e.postKey].list,d.data[e.postKey].code)},m=o=>{switch(o.to){case"right":{const e=o;if(!e.data){s.onMessage(e);break}const n=t.querySelector(e.data.path);"selectTarget"===e.type&&(e.data={...e.data,outerHtml:n?.outerHTML}),s.onMessage(e);break}case"main":break;case"site":t.onMessage(o);break;case"editor":(o=>{switch(o.type){case"back":window.close();break;case"toTextEdit":{const e=o.data;l.toTextEdit(e);break}case"changeDevice":{const n=o.data,r=window.self.location;let i=r.href.replace("dejam_device="+("pc"===n.device?"sp":"pc"),`dejam_device=${n.device}`);i.includes("dejam_device")||(i+=`&dejam_device=${n.device}`),history.replaceState(history.state,"",i),c.postMessage({[e.postKey]:{type:"updateValue",value:{list:t.getHistory(),code:n.code}}},e.editorOrigin),c.postMessage({[e.postKey]:{type:"setInterval"}},e.editorOrigin),r.reload();break}case"modal":o.data?l.showedModal():l.hidModal();break;case"copy":navigator.clipboard.writeText(o.data);break;case"preview":{d=o.data;const e=window.self.location,t=e.href.replace("dejam_optimize_view","dejam_optimize_preview"),n=new URL(t);n.searchParams.append("self","1");const r=window.open(n.href);p=!0;let i=30;const a=setInterval((()=>{i-- >0&&p?r.postMessage({},e.origin):clearInterval(a)}),500);break}case"save":{const n=o.data;c.postMessage({[e.postKey]:{type:"save",value:{list:t.getHistory(),code:n}}},e.editorOrigin),window.close();break}}})(o)}};return{setup:()=>{window.addEventListener("message",(o=>{if("source"===o.data[e.postKey])return o.origin===e.editorOrigin&&(c=o.source,void c.postMessage({[e.postKey]:{type:"init",value:{r:e.r,dk:e.dk}}},e.editorOrigin));const n=window.self.location;if(o.origin===n.origin&&o.data[e.previewKey]){p=!1;const n=`${e.previewKey}${e.param}`;if(!o.source)return;o.source.postMessage({[n]:{list:t.getHistory(),code:d}})}else{if(o.origin!==e.editorOrigin)return!1;o.data[e.postKey]?u(o):o.data[e.editorKey]&&m(o.data[e.editorKey])}}))}}};t.initializeOptimize=()=>{if(!(0,l.isOptimizeTarget)())return void(window._dejam.optimizeView="!isOptimizeTarget");const e=(0,s.getSetting)();d(e).setup()}},341:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSetting=void 0;t.getSetting=()=>{const e="tzggSsPdtrwfb736se2y",t=`dejam_${e}`,o=`dejam_preview_${e}`,n=new URL(location.href).searchParams,r=n.get("origin"),i=decodeURIComponent(window.atob(decodeURIComponent(r))),a=["https://dejam.net","https://lpo.vectorinc.co.jp","http://localhost:3000","https://app.lpo.flux.jp"].find((e=>i===e)),s=Number(n.get("dejam_optimize_view")),l="sp"===n.get("dejam_device"),d=n.get("dejam_index")||"1",c=Math.floor(99999999*Math.random()),p=Math.floor(99999999*Math.random());return{dk:e,postKey:t,previewKey:o,editorOrigin:a,param:s,isSp:l,dejamIndex:d,r:c,er:p,editorKey:714829734839^p,width:l?375:1280}}},213:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sortArray=t.camelToHyphen=t.getEditorElementParameter=t.getElementStyle=t.getIdOrSelector=t.getPath=t.isOptimizeTarget=void 0;t.isOptimizeTarget=()=>{let e;try{const t=window.self.location;e=new URL(t.href).searchParams}catch(e){return window._dejam.optimizeView="error searchParams",!1}const t=e.get("origin"),o=decodeURIComponent(window.atob(decodeURIComponent(t)));if(!["https://dejam.net","https://lpo.vectorinc.co.jp","http://localhost:3000","https://app.lpo.flux.jp"].find((e=>o===e)))return window._dejam.optimizeView="no editorOrigin",!1;if(!e.has("dejam_optimize_view"))return window._dejam.optimizeView="no searchParams",!1;try{if(void 0===e.get("dejam_optimize_view")||"true"===e.get("dejam_optimize_view"))return window._dejam.optimizeView="no param",!1;Number(e.get("dejam_optimize_view"))}catch(e){return window._dejam.optimizeView="param error",!1}return!0};const o=e=>{const t=e.replace(/([ #;?%&,+*~':"!^$[\]()=>|/@.])/g,"\\$1");return/^[0-9]/.test(t)?`\\3${t.charAt(0)} ${t.slice(1)}`:/^[a-zA-Z\\]/.test(t)?t:`\\${t}`};t.getPath=(e,n=!0)=>{if(e.id&&"string"==typeof e.id)return`#${o(e.id)}`;if("body"===e.tagName.toLowerCase())return"body";const r=Array.from(e.parentElement?.children||[]);let i=e.tagName.toLowerCase();const a=r.some((t=>t!==e&&t.tagName===e.tagName)),s=r.some((t=>t!==e&&t.className===e.className));if(a)if(!s&&e.getAttribute("class"))i=`${e.tagName.toLowerCase()}.${e.getAttribute("class").trim().split(/\s+/).map((e=>o(e))).join(".")}`;else{const t=r.indexOf(e)+1;i=`${e.tagName.toLowerCase()}:nth-child(${t})`}else i=e.tagName.toLowerCase();if(n){const t=r.indexOf(e)+1;i=`${e.tagName.toLowerCase()}:nth-child(${t})`}const l=e.parentElement?(0,t.getPath)(e.parentElement,!1):"";return l?`${l} > ${i}`:i};t.getIdOrSelector=e=>{if(e.id)return[`#${e.id}`,""];if(!e.parentElement)return["",""];const t=Array.from(e.parentElement.children).indexOf(e)+1;return["",`${e.tagName.toLowerCase()}:nth-child(${t})`]};const n=(e,t)=>{const o=e.getComputedStyle(t);let n="auto"!==o.zIndex?parseInt(o.zIndex):0;for(;t.parentElement;){const o=e.getComputedStyle(t.parentElement);n+="auto"!==o.zIndex?parseInt(o.zIndex):0,t=t.parentElement}return n};t.getElementStyle=(e,t)=>{const o=e.getComputedStyle(t);return{height:o.height,width:o.width,fontSize:o.fontSize,fontWeight:o.fontWeight,lineHeight:o.lineHeight,textAlign:o.textAlign,color:o.color,textDecorationLine:o.textDecorationLine,fontStyle:o.fontStyle,backgroundColor:o.backgroundColor,borderRadius:o.borderRadius,borderColor:o.borderColor,borderWidth:o.borderWidth,borderStyle:o.borderStyle,paddingTop:o.paddingTop,paddingBottom:o.paddingBottom,paddingLeft:o.paddingLeft,paddingRight:o.paddingRight,marginTop:o.marginTop,marginBottom:o.marginBottom,marginLeft:o.marginLeft,marginRight:o.marginRight}};t.getEditorElementParameter=(e,o,r,i)=>{const a=o.getBoundingClientRect(),s=[];let l="",d=0,c=!1;o.childNodes.forEach(((e,t)=>{if(e.nodeType!==Node.TEXT_NODE&&"BR"!==e.nodeName)return c&&s.push({index:d,text:l}),l="",d=t+1,void(c=!1);c=!0,l="BR"!==e.nodeName?`${l}${e.textContent}`:`${l}\n`})),c&&s.push({index:d,text:l});const p=o,u="BODY"!==p.tagName?p.parentElement:null;return{zIndex:n(e,o),left:a.left+i,top:a.top+r,width:a.width,height:a.height,tagName:o.tagName,path:(0,t.getPath)(p),parentPath:u?(0,t.getPath)(u):null,href:p.href||"",src:p.src||"",clickHref:p.dataset.dejamClickHref||"",textNodeList:s,style:(0,t.getElementStyle)(e,o)}};t.camelToHyphen=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();t.sortArray=(e,t)=>(e.sort(((e,o)=>{for(const n of t){const t=n(e,o);if(0!==t.value)return void 0===t.ask||t.ask?t.value:-t.value}return 0})),e)},561:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.optimizePreview=void 0;const executeOptimize_1=__webpack_require__(917),optimizePreview=()=>{let searchParams;window._dejam=window._dejam||{};const selfLocation=window.self.location;try{searchParams=new URL(selfLocation.href).searchParams}catch(e){return}const urlOrigin=searchParams.get("origin"),origin=decodeURIComponent(window.atob(decodeURIComponent(urlOrigin))),previewKey="dejam_preview_tzggSsPdtrwfb736se2y",allowedOriginList=["https://dejam.net","https://lpo.vectorinc.co.jp","http://localhost:3000","https://app.lpo.flux.jp"],editorOrigin=allowedOriginList.find((e=>origin===e));if(!editorOrigin)return;let isContentLoaded=!1,scriptCode="",isUpdated=!1,openerWindow=null;if(!searchParams.has("dejam_optimize_preview"))return;let param=0;try{if(void 0===searchParams.get("dejam_optimize_preview"))return;param=Number(searchParams.get("dejam_optimize_preview"))}catch(e){return}const changeDom=e=>{isContentLoaded&&null!==e&&!isUpdated&&(window._dejam[previewKey]=window._dejam[previewKey]?window._dejam[previewKey]+1:1,isUpdated=!0,(0,executeOptimize_1.executeOptimize)(document,e))},setPostMessage=()=>{let origin=selfLocation.origin;searchParams.has("self")||(origin=decodeURIComponent(window.atob(decodeURIComponent(urlOrigin)))),window.addEventListener("message",(event=>{if(event.origin!==editorOrigin&&event.origin!==selfLocation.origin)return;if(!openerWindow)return openerWindow=event.source,void openerWindow.postMessage({[previewKey]:!0},origin);const key=`${previewKey}${param}`;event.data[key]&&(scriptCode=event.data[key].code,changeDom(event.data[key].list),scriptCode&&scriptCode.trim()&&(_canUseEval()?eval(`(() => {${scriptCode}})()`):_appendScript(scriptCode)))}))};"loading"!==document.readyState?setTimeout((()=>{isContentLoaded||(isContentLoaded=!0,setPostMessage())}),500):window.addEventListener("DOMContentLoaded",(()=>{setTimeout((()=>{isContentLoaded||(isContentLoaded=!0,setPostMessage())}),500)}))};exports.optimizePreview=optimizePreview;const _canUseEval=()=>{try{return eval("void 0"),!0}catch(e){return!1}},_appendScript=e=>{const t=document.createElement("script");t.type="text/javascript",t.text=`(() => {${e}})()`,document.head.appendChild(t)}},429:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.popupScrollTriggerInit=void 0;const n=o(887),r=o(508);t.popupScrollTriggerInit=(e,t,o)=>{const i=[],{h:a}=(0,n.getPageSize)(document),s=a;return e.forEach((e=>{const{showLogicValue:n,showLogicUnit:a}=e,l="px"===a?n:s*(n/100);window.scrollY>=l&&((0,r.showPopup)(e,t,o),i.push(e.id))})),i}},508:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.showPopup=void 0;t.showPopup=(e,t,o)=>{const{srcPath:n,link:r,linkActionType:i}=e,a=new Image;a.addEventListener("load",(()=>{let n=document.getElementById(`dejam_${t}`);n&&n.remove();const a=window._dejam.createPopup(t,e,o);document.body.insertAdjacentHTML("beforeend",a),n=document.getElementById(`dejam_${t}`),n.addEventListener("click",(()=>n.remove()));document.getElementById(`dejam_${t}_frame`).addEventListener("click",(e=>{if(e.stopPropagation(),e.preventDefault(),r){const e=i&&"another_tab"!==i?"_self":"_blank";"anchor_link"===i&&n.remove(),window.open(r,e)}}));if(document.getElementById(`dejam_${t}_close`).addEventListener("click",(e=>{e.stopPropagation(),e.preventDefault(),n.remove()})),!r){const e=document.getElementById(`dejam_${t}_link`);e?.addEventListener("click",(e=>{e.stopPropagation(),e.preventDefault(),n.remove()}))}}),!1),a.src=n}},231:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.postController=void 0;const n=o(530),r=o(667),i=o(18),a=o(887),s=()=>{const e=(()=>{try{return{top:Math.floor(window.scrollY||document.documentElement?.scrollTop||document.body?.scrollTop||window.pageYOffset||0),left:Math.floor(window.scrollX||document.documentElement?.scrollLeft||document.body?.scrollLeft||window.pageXOffset||0)}}catch(e){return{top:0,left:0}}})();return{size:(0,a.getPageSize)(document),scrollY:e.top,scrollX:e.left}},l=e=>{const t=e.composedPath&&e.composedPath()||e.path,o=e.target;if(null!=t)return t;if(o===window)return[window];const n=(e,t)=>{t=t||[];const o=e.parentNode;return o?n(o,t.concat(o)):t};return[o].concat(n(o))},d=e=>{switch(e.tagName){case"LABEL":case"A":case"INPUT":case"BUTTON":case"TEXTAREA":case"IMG":case"VIDEO":case"IFRAME":return!0}return!1},c=e=>{const t=l(e);for(let e=t,o=0;o{if(e.id)return e.id;let t=e.parentElement;for(;t;){if(t.id)return t.id;t=t.parentElement}return""};t.postController=e=>{const t="https://tag.dejam.net";let o="load",a=!1,d=!1;const u=(0,n.allowApiController)(e),m=e=>({...e,seq:(0,r.getAndSaveSeq)(),l:(0,i.getLocation)(),ti:(new Date).getTime()}),h=(e,o,n)=>{try{return n?navigator.sendBeacon(t,JSON.stringify({data:o})):fetch(t,{method:"POST",mode:"cors",cache:"no-store",credentials:"include",headers:{"Content-Type":"text/plain"},body:JSON.stringify({data:o})})}catch(r){return o={...e,...o,pa:s(),ty:"error",message:`from:postData ${r.message}`},n?fetch(t,{method:"POST",mode:"cors",cache:"no-store",credentials:"include",headers:{"Content-Type":"text/plain"},body:JSON.stringify({data:o})}):navigator.sendBeacon(t,JSON.stringify({data:o}))}},f=(e,t=!1)=>{if(!u.isAllow())return;if(a)return;if(!t&&!u.isTarget())return;a=!0;const n={...m(e),ty:o,referrer:document.referrer,pa:s()};return h(e,n)};return{clearClickCache:()=>u.clearCache(),isLoadOrChangeTarget:()=>u.isAllow()&&u.isTarget(),setRedirect:()=>d=!0,setLoadType:e=>{d&&"change"===e||(o=e,a=!1,d=!1)},postLoadOrChange:f,postClick:(e,t)=>{if(!u.isAllow())return;const o=u.getClickCvValue(t.target,c(t));if(!u.isTarget()&&!o)return;f(e,!0);const n=c(t),r=s(),i=(e=>{const t=l(e),o=e.view||t[t.length-1],n=o?.frameElement?.getClientRects()[0]??{x:0,y:0};return{x:e.pageX+n.x,y:e.pageY+n.y}})(t),a={...m(e),ty:"click",d:{hr:n.attributes?.getNamedItem("href")?.value||"",id:n.id||"",c:n.className||"",t:n.tagName||"",topId:p(n)||"",path:o&&!0!==o&&"path"===o.category?o.value:""},pa:r,po:i};return h(e,a,!0)},postLog:(e,t,o)=>{if(u.isAllow()&&u.isTarget())return h(e,t,o)}}}},667:(e,t,o)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeSeq=t.tmpRemoveSeq=t.getAndSaveSeq=t.isPageChange=void 0;const n=o(436),r="__dp";t.isPageChange=()=>{const e=window.self.location,t=e.pathname+e.search;if(!localStorage)return 0;return(JSON.parse(localStorage.getItem(r))||{p:t,s:0}).p!==t};t.getAndSaveSeq=()=>{const e=window.self.location,t=e.pathname+e.search;if(!localStorage)return 0;const o=JSON.parse(localStorage.getItem(r))||{p:t,s:0};o.p!==t&&(o.p=t,o.s++);const n=JSON.stringify(o);return localStorage.setItem(r,n),o.s};t.tmpRemoveSeq=e=>{(0,n.removeCookieValue)(r,e)};t.removeSeq=e=>{(0,n.removeCookieValue)(r,e),localStorage&&localStorage.removeItem(r)}},495:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createStackFunc=void 0;t.createStackFunc=e=>{let t=0;const o=()=>{t>0||e()};return{getCallBack:()=>(t++,()=>{t--,o()}),execute:o}}},607:(e,t,o)=>{"use strict";t.S=void 0;const n=o(561),r=o(887),i=o(290),a=o(712),s=o(456),l=o(461);t.S=()=>{window._dejam=window._dejam||{},l(window._dejam),window._dejam.createPopup=r.createPopup,window._dejam.exists=!0;const{setCatsDataCallback:e,observeAddCatsListener:t}=(0,s.initializeCats)();(0,i.initializeHeatMap)({setCatsDataCallback:e,observeAddCatsListener:t}),(0,a.initializeOptimize)(),(0,n.optimizePreview)()},(0,t.S)()},461:e=>{ /*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */ e.exports=e=>{(function(e){"use strict";const t=(e,t,o,n)=>{let r=65535&e|0,i=e>>>16&65535|0,a=0;for(;0!==o;){a=o>2e3?2e3:o,o-=a;do{r=r+t[n++]|0,i=i+r|0}while(--a);r%=65521,i%=65521}return r|i<<16|0},o=new Uint32Array((()=>{let e;const t=[];for(let o=0;o<256;o++){e=o;for(let t=0;t<8;t++)e=1&e?3988292384^e>>>1:e>>>1;t[o]=e}return t})()),n=(e,t,n,r)=>{const i=o,a=r+n;e^=-1;for(let o=r;o>>8^i[255&(e^t[o])];return-1^e},r=16209,i=16191,a=function(e,t){let o,n,a,s,l,d,c,p,u,m,h,f,g,w,y,x,b,v,_,k,E,C,L,S;const T=e.state;o=e.next_in,L=e.input,n=o+(e.avail_in-5),a=e.next_out,S=e.output,s=a-(t-e.avail_out),l=a+(e.avail_out-257),d=T.dmax,c=T.wsize,p=T.whave,u=T.wnext,m=T.window,h=T.hold,f=T.bits,g=T.lencode,w=T.distcode,y=(1<>>24,h>>>=v,f-=v,v=b>>>16&255,0===v)S[a++]=65535&b;else{if(!(16&v)){if(0==(64&v)){b=g[(65535&b)+(h&(1<>>=v,f-=v),f<15&&(h+=L[o++]<>>24,h>>>=v,f-=v,v=b>>>16&255,!(16&v)){if(0==(64&v)){b=w[(65535&b)+(h&(1<d){e.msg="invalid distance too far back",T.mode=r;break e}if(h>>>=v,f-=v,v=a-s,k>v){if(v=k-v,v>p&&T.sane){e.msg="invalid distance too far back",T.mode=r;break e}if(E=0,C=m,0===u){if(E+=c-v,v<_){_-=v;do{S[a++]=m[E++]}while(--v);E=a-k,C=S}}else if(u2;)S[a++]=C[E++],S[a++]=C[E++],S[a++]=C[E++],_-=3;_&&(S[a++]=C[E++],_>1&&(S[a++]=C[E++]))}else{E=a-k;do{S[a++]=S[E++],S[a++]=S[E++],S[a++]=S[E++],_-=3}while(_>2);_&&(S[a++]=S[E++],_>1&&(S[a++]=S[E++]))}break}}break}}while(o>3,o-=_,f-=_<<3,h&=(1<{const y=w.bits;let x,b,v,_,k,E,C=0,L=0,S=0,T=0,j=0,P=0,N=0,$=0,I=0,O=0,R=null;const M=new Uint16Array(s+1),A=new Uint16Array(s+1);let z,U,H,D=null;for(C=0;C<=s;C++)M[C]=0;for(L=0;L=1&&0===M[T];T--);if(j>T&&(j=T),0===T)return r[i++]=20971520,r[i++]=20971520,w.bits=1,0;for(S=1;S0&&(e===c||1!==T))return-1;for(A[1]=0,C=1;Cl||e===u&&I>d)return 1;for(;;){z=C-N,a[L]+1=E?(U=D[a[L]-E],H=R[a[L]-E]):(U=96,H=0),x=1<>N)+b]=z<<24|U<<16|H|0}while(0!==b);for(x=1<>=1;if(0!==x?(O&=x-1,O+=x):O=0,L++,0==--M[C]){if(C===T)break;C=t[o+a[L]]}if(C>j&&(O&_)!==v){for(0===N&&(N=j),k+=S,P=C-N,$=1<l||e===u&&I>d)return 1;v=O&_,r[v]=j<<24|P<<16|k-i|0}}return 0!==O&&(r[k+O]=C-N<<24|64<<16|0),w.bits=j,0},y={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},x=0,b=1,v=2,{Z_FINISH:_,Z_BLOCK:k,Z_TREES:E,Z_OK:C,Z_STREAM_END:L,Z_NEED_DICT:S,Z_STREAM_ERROR:T,Z_DATA_ERROR:j,Z_MEM_ERROR:P,Z_BUF_ERROR:N,Z_DEFLATED:$}=y,I=16180,O=16181,R=16182,M=16183,A=16184,z=16185,U=16186,H=16187,D=16188,B=16189,Z=16190,F=16191,q=16192,V=16193,K=16194,W=16195,X=16196,J=16197,Y=16198,G=16199,Q=16200,ee=16201,te=16202,oe=16203,ne=16204,re=16205,ie=16206,ae=16207,se=16208,le=16209,de=16210,ce=16211,pe=852,ue=592,me=15,he=e=>(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24);function fe(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const ge=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.modece?1:0},we=e=>{if(ge(e))return T;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=I,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(pe),t.distcode=t.distdyn=new Int32Array(ue),t.sane=1,t.back=-1,C},ye=e=>{if(ge(e))return T;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,we(e)},xe=(e,t)=>{let o;if(ge(e))return T;const n=e.state;return t<0?(o=0,t=-t):(o=5+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?T:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=o,n.wbits=t,ye(e))},be=(e,t)=>{if(!e)return T;const o=new fe;e.state=o,o.strm=e,o.window=null,o.mode=I;const n=xe(e,t);return n!==C&&(e.state=null),n};let ve,_e,ke=!0;const Ee=e=>{if(ke){ve=new Int32Array(512),_e=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(w(b,e.lens,0,288,ve,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;w(v,e.lens,0,32,_e,0,e.work,{bits:5}),ke=!1}e.lencode=ve,e.lenbits=9,e.distcode=_e,e.distbits=5},Ce=(e,t,o,n)=>{let r;const i=e.state;return null===i.window&&(i.wsize=1<=i.wsize?(i.window.set(t.subarray(o-i.wsize,o),0),i.wnext=0,i.whave=i.wsize):(r=i.wsize-i.wnext,r>n&&(r=n),i.window.set(t.subarray(o-n,o-n+r),i.wnext),(n-=r)?(i.window.set(t.subarray(o-n,o),0),i.wnext=n,i.whave=i.wsize):(i.wnext+=r,i.wnext===i.wsize&&(i.wnext=0),i.whavebe(e,me),inflateInit2:be,inflate:(e,o)=>{let r,i,s,l,d,c,p,u,m,h,f,g,y,ce,pe,ue,me,fe,we,ye,xe,be,ve=0;const _e=new Uint8Array(4);let ke,Le;const Se=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(ge(e)||!e.output||!e.input&&0!==e.avail_in)return T;r=e.state,r.mode===F&&(r.mode=q),d=e.next_out,s=e.output,p=e.avail_out,l=e.next_in,i=e.input,c=e.avail_in,u=r.hold,m=r.bits,h=c,f=p,be=C;e:for(;;)switch(r.mode){case I:if(0===r.wrap){r.mode=q;break}for(;m<16;){if(0===c)break e;c--,u+=i[l++]<>>8&255,r.check=n(r.check,_e,2,0),u=0,m=0,r.mode=O;break}if(r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&u)<<8)+(u>>8))%31){e.msg="incorrect header check",r.mode=le;break}if((15&u)!==$){e.msg="unknown compression method",r.mode=le;break}if(u>>>=4,m-=4,xe=8+(15&u),0===r.wbits&&(r.wbits=xe),xe>15||xe>r.wbits){e.msg="invalid window size",r.mode=le;break}r.dmax=1<>8&1),512&r.flags&&4&r.wrap&&(_e[0]=255&u,_e[1]=u>>>8&255,r.check=n(r.check,_e,2,0)),u=0,m=0,r.mode=R;case R:for(;m<32;){if(0===c)break e;c--,u+=i[l++]<>>8&255,_e[2]=u>>>16&255,_e[3]=u>>>24&255,r.check=n(r.check,_e,4,0)),u=0,m=0,r.mode=M;case M:for(;m<16;){if(0===c)break e;c--,u+=i[l++]<>8),512&r.flags&&4&r.wrap&&(_e[0]=255&u,_e[1]=u>>>8&255,r.check=n(r.check,_e,2,0)),u=0,m=0,r.mode=A;case A:if(1024&r.flags){for(;m<16;){if(0===c)break e;c--,u+=i[l++]<>>8&255,r.check=n(r.check,_e,2,0)),u=0,m=0}else r.head&&(r.head.extra=null);r.mode=z;case z:if(1024&r.flags&&(g=r.length,g>c&&(g=c),g&&(r.head&&(xe=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(i.subarray(l,l+g),xe)),512&r.flags&&4&r.wrap&&(r.check=n(r.check,i,g,l)),c-=g,l+=g,r.length-=g),r.length))break e;r.length=0,r.mode=U;case U:if(2048&r.flags){if(0===c)break e;g=0;do{xe=i[l+g++],r.head&&xe&&r.length<65536&&(r.head.name+=String.fromCharCode(xe))}while(xe&&g>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=F;break;case B:for(;m<32;){if(0===c)break e;c--,u+=i[l++]<>>=7&m,m-=7&m,r.mode=ie;break}for(;m<3;){if(0===c)break e;c--,u+=i[l++]<>>=1,m-=1,3&u){case 0:r.mode=V;break;case 1:if(Ee(r),r.mode=G,o===E){u>>>=2,m-=2;break e}break;case 2:r.mode=X;break;case 3:e.msg="invalid block type",r.mode=le}u>>>=2,m-=2;break;case V:for(u>>>=7&m,m-=7&m;m<32;){if(0===c)break e;c--,u+=i[l++]<>>16^65535)){e.msg="invalid stored block lengths",r.mode=le;break}if(r.length=65535&u,u=0,m=0,r.mode=K,o===E)break e;case K:r.mode=W;case W:if(g=r.length,g){if(g>c&&(g=c),g>p&&(g=p),0===g)break e;s.set(i.subarray(l,l+g),d),c-=g,l+=g,p-=g,d+=g,r.length-=g;break}r.mode=F;break;case X:for(;m<14;){if(0===c)break e;c--,u+=i[l++]<>>=5,m-=5,r.ndist=1+(31&u),u>>>=5,m-=5,r.ncode=4+(15&u),u>>>=4,m-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=le;break}r.have=0,r.mode=J;case J:for(;r.have>>=3,m-=3}for(;r.have<19;)r.lens[Se[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,ke={bits:r.lenbits},be=w(x,r.lens,0,19,r.lencode,0,r.work,ke),r.lenbits=ke.bits,be){e.msg="invalid code lengths set",r.mode=le;break}r.have=0,r.mode=Y;case Y:for(;r.have>>24,ue=ve>>>16&255,me=65535&ve,!(pe<=m);){if(0===c)break e;c--,u+=i[l++]<>>=pe,m-=pe,r.lens[r.have++]=me;else{if(16===me){for(Le=pe+2;m>>=pe,m-=pe,0===r.have){e.msg="invalid bit length repeat",r.mode=le;break}xe=r.lens[r.have-1],g=3+(3&u),u>>>=2,m-=2}else if(17===me){for(Le=pe+3;m>>=pe,m-=pe,xe=0,g=3+(7&u),u>>>=3,m-=3}else{for(Le=pe+7;m>>=pe,m-=pe,xe=0,g=11+(127&u),u>>>=7,m-=7}if(r.have+g>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=le;break}for(;g--;)r.lens[r.have++]=xe}}if(r.mode===le)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=le;break}if(r.lenbits=9,ke={bits:r.lenbits},be=w(b,r.lens,0,r.nlen,r.lencode,0,r.work,ke),r.lenbits=ke.bits,be){e.msg="invalid literal/lengths set",r.mode=le;break}if(r.distbits=6,r.distcode=r.distdyn,ke={bits:r.distbits},be=w(v,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,ke),r.distbits=ke.bits,be){e.msg="invalid distances set",r.mode=le;break}if(r.mode=G,o===E)break e;case G:r.mode=Q;case Q:if(c>=6&&p>=258){e.next_out=d,e.avail_out=p,e.next_in=l,e.avail_in=c,r.hold=u,r.bits=m,a(e,f),d=e.next_out,s=e.output,p=e.avail_out,l=e.next_in,i=e.input,c=e.avail_in,u=r.hold,m=r.bits,r.mode===F&&(r.back=-1);break}for(r.back=0;ve=r.lencode[u&(1<>>24,ue=ve>>>16&255,me=65535&ve,!(pe<=m);){if(0===c)break e;c--,u+=i[l++]<>fe)],pe=ve>>>24,ue=ve>>>16&255,me=65535&ve,!(fe+pe<=m);){if(0===c)break e;c--,u+=i[l++]<>>=fe,m-=fe,r.back+=fe}if(u>>>=pe,m-=pe,r.back+=pe,r.length=me,0===ue){r.mode=re;break}if(32&ue){r.back=-1,r.mode=F;break}if(64&ue){e.msg="invalid literal/length code",r.mode=le;break}r.extra=15&ue,r.mode=ee;case ee:if(r.extra){for(Le=r.extra;m>>=r.extra,m-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=te;case te:for(;ve=r.distcode[u&(1<>>24,ue=ve>>>16&255,me=65535&ve,!(pe<=m);){if(0===c)break e;c--,u+=i[l++]<>fe)],pe=ve>>>24,ue=ve>>>16&255,me=65535&ve,!(fe+pe<=m);){if(0===c)break e;c--,u+=i[l++]<>>=fe,m-=fe,r.back+=fe}if(u>>>=pe,m-=pe,r.back+=pe,64&ue){e.msg="invalid distance code",r.mode=le;break}r.offset=me,r.extra=15&ue,r.mode=oe;case oe:if(r.extra){for(Le=r.extra;m>>=r.extra,m-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=le;break}r.mode=ne;case ne:if(0===p)break e;if(g=f-p,r.offset>g){if(g=r.offset-g,g>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=le;break}g>r.wnext?(g-=r.wnext,y=r.wsize-g):y=r.wnext-g,g>r.length&&(g=r.length),ce=r.window}else ce=s,y=d-r.offset,g=r.length;g>p&&(g=p),p-=g,r.length-=g;do{s[d++]=ce[y++]}while(--g);0===r.length&&(r.mode=Q);break;case re:if(0===p)break e;s[d++]=r.length,p--,r.mode=Q;break;case ie:if(r.wrap){for(;m<32;){if(0===c)break e;c--,u|=i[l++]<{if(ge(e))return T;const t=e.state;return t.window&&(t.window=null),e.state=null,C},inflateGetHeader:(e,t)=>{if(ge(e))return T;const o=e.state;return 0==(2&o.wrap)?T:(o.head=t,t.done=!1,C)},inflateSetDictionary:(e,o)=>{const n=o.length;let r,i,a;return ge(e)?T:(r=e.state,0!==r.wrap&&r.mode!==Z?T:r.mode===Z&&(i=1,i=t(i,o,n,0),i!==r.check)?j:(a=Ce(e,o,n,n),a?(r.mode=de,P):(r.havedict=1,C)))},inflateInfo:"pako inflate (from Nodeca project)"},Se=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Te=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const o=t.shift();if(o){if("object"!=typeof o)throw new TypeError(o+"must be non-object");for(const t in o)Se(o,t)&&(e[t]=o[t])}}return e},je={assign:Te,flattenChunks:e=>{let t=0;for(let o=0,n=e.length;o=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Ne[254]=Ne[254]=1;const $e=(e,t)=>{if(t<65534&&e.subarray&&Pe)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let o="";for(let n=0;n{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);let t,o,n,r,i;const a=e.length;let s=0;for(r=0;r>>6,t[i++]=128|63&o):o<65536?(t[i++]=224|o>>>12,t[i++]=128|o>>>6&63,t[i++]=128|63&o):(t[i++]=240|o>>>18,t[i++]=128|o>>>12&63,t[i++]=128|o>>>6&63,t[i++]=128|63&o);return t},buf2string:(e,t)=>{const o=t||e.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(e.subarray(0,t));let n,r;const i=new Array(2*o);for(r=0,n=0;n4)i[r++]=65533,n+=a-1;else{for(t&=2===a?31:3===a?15:7;a>1&&n1?i[r++]=65533:t<65536?i[r++]=t:(t-=65536,i[r++]=55296|t>>10&1023,i[r++]=56320|1023&t)}}return $e(i,r)},utf8border:(e,t)=>{(t=t||e.length)>e.length&&(t=e.length);let o=t-1;for(;o>=0&&128==(192&e[o]);)o--;return o<0||0===o?t:o+Ne[e[o]]>t?o:t}},Oe={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};function Re(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}const Me=Re;function Ae(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}const ze=Ae,Ue=Object.prototype.toString,{Z_NO_FLUSH:He,Z_FINISH:De,Z_OK:Be,Z_STREAM_END:Ze,Z_NEED_DICT:Fe,Z_STREAM_ERROR:qe,Z_DATA_ERROR:Ve,Z_MEM_ERROR:Ke}=y;function We(e){this.options=je.assign({chunkSize:65536,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Me,this.strm.avail_out=0;let o=Le.inflateInit2(this.strm,t.windowBits);if(o!==Be)throw new Error(Oe[o]);if(this.header=new ze,Le.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=Ie.string2buf(t.dictionary):"[object ArrayBuffer]"===Ue.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(o=Le.inflateSetDictionary(this.strm,t.dictionary),o!==Be)))throw new Error(Oe[o])}function Xe(e,t){const o=new We(t);if(o.push(e),o.err)throw o.msg||Oe[o.err];return o.result}function Je(e,t){return(t=t||{}).raw=!0,Xe(e,t)}We.prototype.push=function(e,t){const o=this.strm,n=this.options.chunkSize,r=this.options.dictionary;let i,a,s;if(this.ended)return!1;for(a=t===~~t?t:!0===t?De:He,"[object ArrayBuffer]"===Ue.call(e)?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;;){for(0===o.avail_out&&(o.output=new Uint8Array(n),o.next_out=0,o.avail_out=n),i=Le.inflate(o,a),i===Fe&&r&&(i=Le.inflateSetDictionary(o,r),i===Be?i=Le.inflate(o,a):i===Ve&&(i=Fe));o.avail_in>0&&i===Ze&&o.state.wrap>0&&0!==e[o.next_in];)Le.inflateReset(o),i=Le.inflate(o,a);switch(i){case qe:case Ve:case Fe:case Ke:return this.onEnd(i),this.ended=!0,!1}if(s=o.avail_out,o.next_out&&(0===o.avail_out||i===Ze))if("string"===this.options.to){const e=Ie.utf8border(o.output,o.next_out),t=o.next_out-e,r=Ie.buf2string(o.output,e);o.next_out=t,o.avail_out=n-t,t&&o.output.set(o.output.subarray(e,e+t),0),this.onData(r)}else this.onData(o.output.length===o.next_out?o.output:o.output.subarray(0,o.next_out));if(i!==Be||0!==s){if(i===Ze)return i=Le.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(0===o.avail_in)break}}return!0},We.prototype.onData=function(e){this.chunks.push(e)},We.prototype.onEnd=function(e){e===Be&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=je.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};const Ye=We,Ge=Xe,Qe=Je,et=Xe,tt=y,ot={Inflate:Ye,inflate:Ge,inflateRaw:Qe,ungzip:et,constants:tt};e.Inflate=Ye,e.constants=tt,e.default=ot,e.inflate=Ge,e.inflateRaw=Qe,e.ungzip=et,Object.defineProperty(e,"__esModule",{value:!0})})(e.pako={})}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var o=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](o,o.exports,__webpack_require__),o.exports}var __webpack_exports__=__webpack_require__(607)})();